|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[241,3,5,6,7,8,9,10,13,14,21,248],{"+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(m,T){"use strict";function b(i,a){i.cmdState.push(a)}function y(i){return i.cmdState.length>0?i.cmdState[i.cmdState.length-1]:null}function C(i){var a=i.cmdState.pop();a&&a.closeBracket()}function A(i){for(var a=i.cmdState,c=a.length-1;c>=0;c--){var h=a[c];if(h.name=="DEFAULT")continue;return h}return{styleIdentifier:function(){return null}}}function g(i,a,c){return function(){this.name=i,this.bracketNo=0,this.style=a,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=g("importmodule","tag",["string","builtin"]),e.documentclass=g("documentclass","tag",["","atom"]),e.usepackage=g("usepackage","tag",["atom"]),e.begin=g("begin","tag",["atom"]),e.end=g("end","tag",["atom"]),e.label=g("label","tag",["atom"]),e.ref=g("ref","tag",["atom"]),e.eqref=g("eqref","tag",["atom"]),e.cite=g("cite","tag",["atom"]),e.bibitem=g("bibitem","tag",["atom"]),e.Bibitem=g("Bibitem","tag",["atom"]),e.RBibitem=g("RBibitem","tag",["atom"]),e.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(i,a){i.f=a}function r(i,a){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(a,c),f(a,n),c.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return f(a,function(s,u){return l(s,u,"\\]")}),"keyword";if(i.match("\\("))return f(a,function(s,u){return l(s,u,"\\)")}),"keyword";if(i.match("$$"))return f(a,function(s,u){return l(s,u,"$$")}),"keyword";if(i.match("$"))return f(a,function(s,u){return l(s,u,"$")}),"keyword";var d=i.next();if(d=="%")return i.skipToEnd(),"comment";if(d=="}"||d=="]"){if(c=y(a),c)c.closeBracket(d),f(a,n);else return"error";return"bracket"}else return d=="{"||d=="["?(c=e.DEFAULT,c=new c,b(a,c),"bracket"):/\d/.test(d)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),c=A(a),c.name=="begin"&&(c.argument=i.current()),c.styleIdentifier())}function l(i,a,c){if(i.eatSpace())return null;if(c&&i.match(c))return f(a,r),"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,a){var c=i.peek(),h;return c=="{"||c=="["?(h=y(a),h.openBracket(c),i.eat(c),f(a,r),"bracket"):/[ \t\r]/.test(c)?(i.eat(c),null):(f(a,r),C(a),r(i,a))}return{startState:function(){var i=T.inMathMode?function(a,c){return l(a,c)}:r;return{cmdState:[],f:i}},copyState:function(i){return{cmdState:i.cmdState.slice(),f:i.f}},token:function(i,a){return a.f(i,a)},blankLine:function(i){i.f=r,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"),m={"text/plain":"Text","text/html":"Url",default:"Text"},T="Copy to clipboard: #{key}, Enter";function b(C){var A=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return C.replace(/#{\s*key\s*}/g,A)}function y(C,A){var g,e,f,r,l,n,i=!1;A||(A={}),g=A.debug||!1;try{f=M(),r=document.createRange(),l=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(),A.format)if(c.preventDefault(),typeof c.clipboardData=="undefined"){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=m[A.format]||m.default;window.clipboardData.setData(h,C)}else c.clipboardData.clearData(),c.clipboardData.setData(A.format,C);A.onCopy&&(c.preventDefault(),A.onCopy(c.clipboardData))}),document.body.appendChild(n),r.selectNodeContents(n),l.addRange(r);var a=document.execCommand("copy");if(!a)throw new Error("copy command was unsuccessful");i=!0}catch(c){g&&console.error("unable to copy using execCommand: ",c),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(A.format||"text",C),A.onCopy&&A.onCopy(window.clipboardData),i=!0}catch(h){g&&console.error("unable to copy using clipboardData: ",h),g&&console.error("falling back to prompt"),e=b("message"in A?A.message:T),window.prompt(e,C)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(r):l.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 T}),o.d(z,"g",function(){return b}),o.d(z,"h",function(){return y}),o.d(z,"e",function(){return A}),o.d(z,"b",function(){return g}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return r});class M{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(l){setTimeout(()=>{throw l.stack?new Error(l.message+`
|
|
|
|
|
|
`+l.stack):l},0)}}emit(l){this.listeners.forEach(n=>{n(l)})}onUnexpectedError(l){this.unexpectedErrorHandler(l),this.emit(l)}onUnexpectedExternalError(l){this.unexpectedErrorHandler(l)}}const m=new M;function T(l){A(l)||m.onUnexpectedError(l);return}function b(l){A(l)||m.onUnexpectedExternalError(l);return}function y(l){if(l instanceof Error){let{name:n,message:i}=l;const a=l.stacktrace||l.stack;return{$isError:!0,name:n,message:i,stack:a}}return l}const C="Canceled";function A(l){return l instanceof Error&&l.name===C&&l.message===C}function g(){const l=new Error(C);return l.name=l.message,l}function e(l){return l?new Error(`Illegal argument: ${l}`):new Error("Illegal argument")}function f(l){return l?new Error(`Illegal state: ${l}`):new Error("Illegal state")}class r extends Error{constructor(l){super("NotSupported");l&&(this.message=l)}}},"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 m=[o[0],"00"].join(":"),T="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(m,T);return b.add(1,"hours"),b.format(T)}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(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:o}});case 2:M=T.sent,M&&setDepartmentList(M.shools_name||[]);case 4:case"end":return T.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 m=serviceConfigList.map(function(T,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)({},T),{},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)):T});setServiceConfigList(m)},handleInitState=function(){var z,o,M,m,T,b,y,C,A,g,e,f,r,l,n,i,a,c,h,d,s,u,S,E,_,P,R,x,w,v,O,U,I,N,V,H,D,W,F,L,K,te,fe,de,Ce,Oe,ce,Ee,ye,ue,le,$,me,re,ae,Se,oe,ee,J,Q,ve,_e,Te,Ge,qe,ut,st,ft=(shixunsDetail==null||((z=shixunsDetail.setting)===null||z===void 0)?void 0:z.shixun)||{},gt=ft.choice_main_type,Ve=ft.main_type,ke=ft.small_type,dt=ft.choice_small_type,Bt=ft.is_secret_repository,vt=ft.standard_scripts,Rt=ft.evaluate_script,ot=ft.shixun_service_configs;if(setEvaluateScript(Rt),setServiceConfigList(ot),setStandardScripts(vt||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0)?void 0:M.windows_start_template),setWebsshCloud((m=shixunsDetail.setting)===null||m===void 0||((T=m.shixun)===null||T===void 0)?void 0:T.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||((A=C.shixun)===null||A===void 0)?void 0:A.virtual_machine),setLinuxVNC((g=shixunsDetail.setting)===null||g===void 0||((e=g.shixun)===null||e===void 0)?void 0:e.linux_vnc),setWindowsConnectionMode(((f=shixunsDetail.setting)===null||f===void 0||((r=f.shixun)===null||r===void 0)?void 0:r.windows_connection_mode)||"vnc"),setVNC((l=shixunsDetail.setting)===null||l===void 0||((n=l.shixun)===null||n===void 0)?void 0:n.vnc),setWebsshShow(!!((i=shixunsDetail.setting)!==null&&i!==void 0&&(a=i.shixun)!==null&&a!==void 0&&a.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((u=shixunsDetail.setting)===null||u===void 0||((S=u.shixun)===null||S===void 0)?void 0:S.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||((w=x.shixun)===null||w===void 0)?void 0:w.forbid_copy),setTaskPass((v=shixunsDetail.setting)===null||v===void 0||((O=v.shixun)===null||O===void 0)?void 0:O.task_pass),setTestSetPermission((U=shixunsDetail.setting)===null||U===void 0||((I=U.shixun)===null||I===void 0)?void 0:I.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&&(L=F.shixun)!==null&&L!==void 0&&L.opening_time)),setOpenTime((K=shixunsDetail.setting)===null||K===void 0||((te=K.shixun)===null||te===void 0)?void 0:te.opening_time),setSelectDepartmentList((fe=shixunsDetail.setting)===null||fe===void 0||((de=fe.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((Ce=shixunsDetail.setting)===null||Ce===void 0||((Oe=Ce.shixun)===null||Oe===void 0)?void 0:Oe.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((Ee=ce.shixun)===null||Ee===void 0)?void 0:Ee.is_disable_discuss),setterminal_count((ye=shixunsDetail.setting)===null||ye===void 0||((ue=ye.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((le=shixunsDetail.setting)===null||le===void 0||(($=le.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 Je,et;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||((Je=shixunsDetail.setting)===null||Je===void 0||((et=Je.shixun)===null||et===void 0))?void 0:et.shixun_virtual_templates))}setport((Se=shixunsDetail.setting)===null||Se===void 0||((oe=Se.shixun)===null||oe===void 0)?void 0:oe.port_mapping),(ee=shixunsDetail.setting)!==null&&ee!==void 0&&(J=ee.shixun)!==null&&J!==void 0&&J.windows_vnc||(Q=shixunsDetail.setting)!==null&&Q!==void 0&&(ve=Q.shixun)!==null&&ve!==void 0&&ve.linux_vnc||(_e=shixunsDetail.setting)!==null&&_e!==void 0&&(Te=_e.shixun)!==null&&Te!==void 0&&Te.vnc||(Ge=shixunsDetail.setting)!==null&&Ge!==void 0&&(qe=Ge.shixun)!==null&&qe!==void 0&&qe.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(ut=shixunsDetail.setting)!==null&&ut!==void 0&&(st=ut.shixun)!==null&&st!==void 0&&st.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,m,T,b,y,C,A,g,e,f,r;(k==null?void 0:k.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((M=o.shixun)===null||M===void 0||((m=M.shixun_service_configs[z])===null||m===void 0))?void 0:m.cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.lower_cpu_limit)!=((T=shixunsDetail.setting)===null||T===void 0||((b=T.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||((A=C.shixun)===null||A===void 0||((g=A.shixun_service_configs[z])===null||g===void 0))?void 0:g.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||((r=f.shixun_service_configs[z])===null||r===void 0))?void 0:r.request_limit)&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,selectDepartmentList,isOpenTime,openTime,isRadiuvalue,sshRadioValue,multiWebssh,hideCode,display_git_address,codeHidden,codeEditPermission,forbidCopy,evaluationScript,evaluateScript,serviceConfigList,disableDiscuss,webssh_cloud]);var handleUseCustomScript=function(){dispatch({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:shixunId.current}}})};function handSubmeit(){return _handSubmeit.apply(this,arguments)}function _handSubmeit(){return _handSubmeit=Object(_root_workspace_ppte5yg23_local_v8_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,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(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:m=b.sent,(m==null?void 0:m.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 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(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()}},m)}));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(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:o}});case 2:M=T.sent,M&&setEvaluateScript(M.content);case 4:case"end":return T.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,m,T,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(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(g.t0=g.sent,g.t0){g.next=5;break}g.t0={};case 5:C=g.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||((m=M.splice(0,2))===null||m===void 0)?void 0:m.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)),!!((T=C.courses)!==null&&T!==void 0&&T.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 r(){var l;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:l=i.sent,l.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()}},r)}));function f(){return e.apply(this,arguments)}return f}()});case 7:case"end":return g.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,m,T,b,y,C,A,g,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&&!((m=shixunsDetail.setting)!==null&&m!==void 0&&(T=m.shixun)!==null&&T!==void 0&&T.vnc)){var f,r;setport((f=shixunsDetail.setting)===null||f===void 0||((r=f.shixun)===null||r===void 0)?void 0:r.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&&(A=C.shixun)!==null&&A!==void 0&&A.windows_vnc)&&(g=shixunsDetail.setting)!==null&&g!==void 0&&(e=g.shixun)!==null&&e!==void 0&&e.vnc){var l,n;setport((l=shixunsDetail.setting)===null||l===void 0||((n=l.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,m,T,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 A,g;setport((A=shixunsDetail.setting)===null||A===void 0||((g=A.shixun)===null||g===void 0)?void 0:g.port_mapping)}else if(C===2&&((m=shixunsDetail.setting)===null||m===void 0||((T=m.shixun)===null||T===void 0)?void 0:T.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 r,l,n,i;setWebsshCloud((r=shixunsDetail.setting)===null||r===void 0||((l=r.shixun)===null||l===void 0)?void 0:l.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,m,T,b,y,C,A,g,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,r;setWindowVNCTemplate((f=shixunsDetail.setting)===null||f===void 0||((r=f.shixun)===null||r===void 0)?void 0:r.windows_start_template)}else if(e==="windows_vnc"&&(m=shixunsDetail.setting)!==null&&m!==void 0&&(T=m.shixun)!==null&&T!==void 0&&T.windows_vnc){var l,n;setWindowVNCTemplate((l=shixunsDetail.setting)===null||l===void 0||((n=l.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,a;setWindowVNCTemplate((i=shixunsDetail.setting)===null||i===void 0||((a=i.shixun)===null||a===void 0)?void 0:a.windows_start_template)}else{var c,h,d,s,u,S;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((u=shixunsDetail.setting)===null||u===void 0||((S=u.shixun)===null||S===void 0)?void 0:S.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||((A=C.shixun)===null||A===void 0||((g=A.shixun_virtual_templates)===null||g===void 0)))?void 0:g.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,m,T,b,y,C,A;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:((m=shixunsDetail.setting)===null||m===void 0||((T=m.shixun)===null||T===void 0)?void 0:T.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||((A=C.shixun)===null||A===void 0)?void 0:A.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(g,e,f){var r=f&&f!=M.Init;if(e&&!r)g.on("blur",y),g.on("change",C),g.on("swapDoc",C),M.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){b(g)}),C(g);else if(!e&&r){g.off("blur",y),g.off("change",C),g.off("swapDoc",C),M.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),m(g);var l=g.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}e&&!g.hasFocus()&&y(g)});function m(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function T(g){m(g);var e=g.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=g.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var f=g.getOption("placeholder");typeof f=="string"&&(f=document.createTextNode(f)),e.appendChild(f),g.display.lineSpace.insertBefore(e,g.display.lineSpace.firstChild)}function b(g){setTimeout(function(){var e=!1,f=g.getInputField();f.nodeName=="TEXTAREA"?e=!f.value:g.lineCount()==1&&(e=!/[^\u200b]/.test(f.querySelector(".CodeMirror-line").textContent)),e?T(g):m(g)},20)}function y(g){A(g)&&T(g)}function C(g){var e=g.getWrapperElement(),f=A(g);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?T(g):m(g)}function A(g){return g.lineCount()===1&&g.getLine(0)===""}})},"1Sn+":function(k,z,o){},"1eCo":function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";var m={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},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};M.defineMode("xml",function(b,y){var C=b.indentUnit,A={},g=y.htmlMode?m:T;for(var e in g)A[e]=g[e];for(var e in y)A[e]=y[e];var f,r;function l(O,U){function I(H){return U.tokenize=H,H(O,U)}var N=O.next();if(N=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?I(a("atom","]]>")):null:O.match("--")?I(a("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),I(c(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),U.tokenize=a("meta","?>"),"meta"):(f=O.eat("/")?"closeTag":"openTag",U.tokenize=n,"tag bracket");if(N=="&"){var V;return O.eat("#")?O.eat("x")?V=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):V=O.eatWhile(/[\d]/)&&O.eat(";"):V=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),V?"atom":"error"}else return O.eatWhile(/[^&<]/),null}l.isInText=!0;function n(O,U){var I=O.next();if(I==">"||I=="/"&&O.eat(">"))return U.tokenize=l,f=I==">"?"endTag":"selfcloseTag","tag bracket";if(I=="=")return f="equals",null;if(I=="<"){U.tokenize=l,U.state=u,U.tagName=U.tagStart=null;var N=U.tokenize(O,U);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(I)?(U.tokenize=i(I),U.stringStartCol=O.column(),U.tokenize(O,U)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(O){var U=function(I,N){for(;!I.eol();)if(I.next()==O){N.tokenize=n;break}return"string"};return U.isInAttribute=!0,U}function a(O,U){return function(I,N){for(;!I.eol();){if(I.match(U)){N.tokenize=l;break}I.next()}return O}}function c(O){return function(U,I){for(var N;(N=U.next())!=null;){if(N=="<")return I.tokenize=c(O+1),I.tokenize(U,I);if(N==">")if(O==1){I.tokenize=l;break}else return I.tokenize=c(O-1),I.tokenize(U,I)}return"meta"}}function h(O,U,I){this.prev=O.context,this.tagName=U,this.indent=O.indented,this.startOfLine=I,(A.doNotIndent.hasOwnProperty(U)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function d(O){O.context&&(O.context=O.context.prev)}function s(O,U){for(var I;;){if(!O.context)return;if(I=O.context.tagName,!A.contextGrabbers.hasOwnProperty(I)||!A.contextGrabbers[I].hasOwnProperty(U))return;d(O)}}function u(O,U,I){return O=="openTag"?(I.tagStart=U.column(),S):O=="closeTag"?E:u}function S(O,U,I){return O=="word"?(I.tagName=U.current(),r="tag",R):A.allowMissingTagName&&O=="endTag"?(r="tag bracket",R(O,U,I)):(r="error",S)}function E(O,U,I){if(O=="word"){var N=U.current();return I.context&&I.context.tagName!=N&&A.implicitlyClosed.hasOwnProperty(I.context.tagName)&&d(I),I.context&&I.context.tagName==N||A.matchClosing===!1?(r="tag",_):(r="tag error",P)}else return A.allowMissingTagName&&O=="endTag"?(r="tag bracket",_(O,U,I)):(r="error",P)}function _(O,U,I){return O!="endTag"?(r="error",_):(d(I),u)}function P(O,U,I){return r="error",_(O,U,I)}function R(O,U,I){if(O=="word")return r="attribute",x;if(O=="endTag"||O=="selfcloseTag"){var N=I.tagName,V=I.tagStart;return I.tagName=I.tagStart=null,O=="selfcloseTag"||A.autoSelfClosers.hasOwnProperty(N)?s(I,N):(s(I,N),I.context=new h(I,N,V==I.indented)),u}return r="error",R}function x(O,U,I){return O=="equals"?w:(A.allowMissing||(r="error"),R(O,U,I))}function w(O,U,I){return O=="string"?v:O=="word"&&A.allowUnquoted?(r="string",R):(r="error",R(O,U,I))}function v(O,U,I){return O=="string"?v:R(O,U,I)}return{startState:function(O){var U={tokenize:l,state:u,indented:O||0,tagName:null,tagStart:null,context:null};return O!=null&&(U.baseIndent=O),U},token:function(O,U){if(!U.tagName&&O.sol()&&(U.indented=O.indentation()),O.eatSpace())return null;f=null;var I=U.tokenize(O,U);return(I||f)&&I!="comment"&&(r=null,U.state=U.state(f||I,O,U),r&&(I=r=="error"?I+" error":r)),I},indent:function(O,U,I){var N=O.context;if(O.tokenize.isInAttribute)return O.tagStart==O.indented?O.stringStartCol+1:O.indented+C;if(N&&N.noIndent)return M.Pass;if(O.tokenize!=n&&O.tokenize!=l)return I?I.match(/^(\s*)/)[0].length:0;if(O.tagName)return A.multilineTagIndentPastTag!==!1?O.tagStart+O.tagName.length+2:O.tagStart+C*(A.multilineTagIndentFactor||1);if(A.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(A.implicitlyClosed.hasOwnProperty(N.tagName))N=N.prev;else break;else if(V)for(;N;){var H=A.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:O.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:A.htmlMode?"html":"xml",helperType:A.htmlMode?"html":"xml",skipAttribute:function(O){O.state==w&&(O.state=R)},xmlCurrentTag:function(O){return O.tagName?{name:O.tagName,close:O.type=="closeTag"}:null},xmlCurrentContext:function(O){for(var U=[],I=O.context;I;I=I.prev)I.tagName&&U.push(I.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 Ge}),o.d(z,"b",function(){return $e}),o.d(z,"c",function(){return Ft}),o.d(z,"a",function(){return bn});var M=o("VTBJ"),m=o("1OyB"),T=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),C=o("LK+K"),A=o("q1tI"),g=o("I8Z2"),e=o("BGR+"),f=o("wx14"),r=o("rePB"),l=o("4IlW"),n=o("2GS6"),i=o("Gytx"),a=o.n(i),c=o("TSYQ"),h=o.n(c),d=o("U8pU"),s=o("ODXe"),u=/iPhone/i,S=/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,w=/Windows Phone/i,v=/\bWindows(?:.+)ARM\b/i,O=/BlackBerry/i,U=/BB10/i,I=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function H(Et,je){return Et.test(je)}function D(Et){var je=Et||(typeof navigator!="undefined"?navigator.userAgent:""),rt=je.split("[FBAN");if(typeof rt[1]!="undefined"){var at=rt,Ae=Object(s.a)(at,1);je=Ae[0]}if(rt=je.split("Twitter"),typeof rt[1]!="undefined"){var Fe=rt,Tt=Object(s.a)(Fe,1);je=Tt[0]}var yt={apple:{phone:H(u,je)&&!H(w,je),ipod:H(S,je),tablet:!H(u,je)&&H(E,je)&&!H(w,je),device:(H(u,je)||H(S,je)||H(E,je))&&!H(w,je)},amazon:{phone:H(R,je),tablet:!H(R,je)&&H(x,je),device:H(R,je)||H(x,je)},android:{phone:!H(w,je)&&H(R,je)||!H(w,je)&&H(_,je),tablet:!H(w,je)&&!H(R,je)&&!H(_,je)&&(H(x,je)||H(P,je)),device:!H(w,je)&&(H(R,je)||H(x,je)||H(_,je)||H(P,je))||H(/\bokhttp\b/i,je)},windows:{phone:H(w,je),tablet:H(v,je),device:H(w,je)||H(v,je)},other:{blackberry:H(O,je),blackberry10:H(U,je),opera:H(I,je),firefox:H(V,je),chrome:H(N,je),device:H(O,je)||H(U,je)||H(I,je)||H(V,je)||H(N,je)},any:null,phone:null,tablet:null};return yt.any=yt.apple.device||yt.android.device||yt.windows.device||yt.other.device,yt.phone=yt.apple.phone||yt.android.phone||yt.windows.phone,yt.tablet=yt.apple.tablet||yt.android.tablet||yt.windows.tablet,yt}var W=Object(M.a)(Object(M.a)({},D()),{},{isMobile:D}),F=W;function L(){}function K(Et,je,rt){var at=je||"";return Et.key||"".concat(at,"item_").concat(rt)}function te(Et){return"".concat(Et,"-menu-")}function fe(Et,je){var rt=-1;A.Children.forEach(Et,function(at){rt+=1,at&&at.type&&at.type.isMenuItemGroup?A.Children.forEach(at.props.children,function(Ae){rt+=1,je(Ae,rt)}):je(at,rt)})}function de(Et,je,rt){if(!Et||rt.find)return;A.Children.forEach(Et,function(at){if(at){var Ae=at.type;if(!Ae||!(Ae.isSubMenu||Ae.isMenuItem||Ae.isMenuItemGroup))return;je.indexOf(at.key)!==-1?rt.find=!0:at.props.children&&de(at.props.children,je,rt)}})}var Ce=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Oe=function(je){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=je&&typeof je.getBoundingClientRect=="function"&&je.getBoundingClientRect().width;if(at){if(rt){var Ae=getComputedStyle(je),Fe=Ae.marginLeft,Tt=Ae.marginRight;at+=+Fe.replace("px","")+ +Tt.replace("px","")}at=+at.toFixed(6)}return at||0},ce=function(je,rt,at){je&&Object(d.a)(je.style)==="object"&&(je.style[rt]=at)},Ee=function(){return F.any},ye=o("KQm4"),ue=o("Ff2n"),le=o("i8i4"),$=o("bdgK"),me=o("uciX"),re=o("8XRh"),ae={adjustX:1,adjustY:1},Se={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]}},oe={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]}},ee=Se,J=0,Q={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(je,rt,at){var Ae=te(rt),Fe=je.getState();je.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},Fe.defaultActiveFirst),{},Object(r.a)({},Ae,at))})},_e=function(Et){Object(y.a)(rt,Et);var je=Object(C.a)(rt);function rt(at){var Ae;Object(m.a)(this,rt),Ae=je.call(this,at),Ae.onDestroy=function(tt){Ae.props.onDestroy(tt)},Ae.onKeyDown=function(tt){var Ut=tt.keyCode,Pt=Ae.menuInstance,an=Ae.props,nn=an.isOpen,rn=an.store;if(Ut===l.a.ENTER)return Ae.onTitleClick(tt),ve(rn,Ae.props.eventKey,!0),!0;if(Ut===l.a.RIGHT)return nn?Pt.onKeyDown(tt):(Ae.triggerOpenChange(!0),ve(rn,Ae.props.eventKey,!0)),!0;if(Ut===l.a.LEFT){var Tn;if(nn)Tn=Pt.onKeyDown(tt);else return;return Tn||(Ae.triggerOpenChange(!1),Tn=!0),Tn}return nn&&(Ut===l.a.UP||Ut===l.a.DOWN)?Pt.onKeyDown(tt):void 0},Ae.onOpenChange=function(tt){Ae.props.onOpenChange(tt)},Ae.onPopupVisibleChange=function(tt){Ae.triggerOpenChange(tt,tt?"mouseenter":"mouseleave")},Ae.onMouseEnter=function(tt){var Ut=Ae.props,Pt=Ut.eventKey,an=Ut.onMouseEnter,nn=Ut.store;ve(nn,Ae.props.eventKey,!1),an({key:Pt,domEvent:tt})},Ae.onMouseLeave=function(tt){var Ut=Ae.props,Pt=Ut.parentMenu,an=Ut.eventKey,nn=Ut.onMouseLeave;Pt.subMenuInstance=Object(b.a)(Ae),nn({key:an,domEvent:tt})},Ae.onTitleMouseEnter=function(tt){var Ut=Ae.props,Pt=Ut.eventKey,an=Ut.onItemHover,nn=Ut.onTitleMouseEnter;an({key:Pt,hover:!0}),nn({key:Pt,domEvent:tt})},Ae.onTitleMouseLeave=function(tt){var Ut=Ae.props,Pt=Ut.parentMenu,an=Ut.eventKey,nn=Ut.onItemHover,rn=Ut.onTitleMouseLeave;Pt.subMenuInstance=Object(b.a)(Ae),nn({key:an,hover:!1}),rn({key:an,domEvent:tt})},Ae.onTitleClick=function(tt){var Ut=Object(b.a)(Ae),Pt=Ut.props;if(Pt.onTitleClick({key:Pt.eventKey,domEvent:tt}),Pt.triggerSubMenuAction==="hover")return;Ae.triggerOpenChange(!Pt.isOpen,"click"),ve(Pt.store,Ae.props.eventKey,!1)},Ae.onSubMenuClick=function(tt){typeof Ae.props.onClick=="function"&&Ae.props.onClick(Ae.addKeyPath(tt))},Ae.onSelect=function(tt){Ae.props.onSelect(tt)},Ae.onDeselect=function(tt){Ae.props.onDeselect(tt)},Ae.getPrefixCls=function(){return"".concat(Ae.props.rootPrefixCls,"-submenu")},Ae.getActiveClassName=function(){return"".concat(Ae.getPrefixCls(),"-active")},Ae.getDisabledClassName=function(){return"".concat(Ae.getPrefixCls(),"-disabled")},Ae.getSelectedClassName=function(){return"".concat(Ae.getPrefixCls(),"-selected")},Ae.getOpenClassName=function(){return"".concat(Ae.props.rootPrefixCls,"-submenu-open")},Ae.saveMenuInstance=function(tt){Ae.menuInstance=tt},Ae.addKeyPath=function(tt){return Object(M.a)(Object(M.a)({},tt),{},{keyPath:(tt.keyPath||[]).concat(Ae.props.eventKey)})},Ae.triggerOpenChange=function(tt,Ut){var Pt=Ae.props.eventKey,an=function(){Ae.onOpenChange({key:Pt,item:Object(b.a)(Ae),trigger:Ut,open:tt})};Ut==="mouseenter"?Ae.mouseenterTimeout=setTimeout(function(){an()},0):an()},Ae.isChildrenSelected=function(){var tt={find:!1};return de(Ae.props.children,Ae.props.selectedKeys,tt),tt.find},Ae.isOpen=function(){return Ae.props.openKeys.indexOf(Ae.props.eventKey)!==-1},Ae.adjustWidth=function(){if(!Ae.subMenuTitle||!Ae.menuInstance)return;var tt=le.findDOMNode(Ae.menuInstance);if(tt.offsetWidth>=Ae.subMenuTitle.offsetWidth)return;tt.style.minWidth="".concat(Ae.subMenuTitle.offsetWidth,"px")},Ae.saveSubMenuTitle=function(tt){Ae.subMenuTitle=tt},Ae.getBaseProps=function(){var tt=Object(b.a)(Ae),Ut=tt.props;return{mode:Ut.mode==="horizontal"?"vertical":Ut.mode,visible:Ae.props.isOpen,level:Ut.level+1,inlineIndent:Ut.inlineIndent,focusable:!1,onClick:Ae.onSubMenuClick,onSelect:Ae.onSelect,onDeselect:Ae.onDeselect,onDestroy:Ae.onDestroy,selectedKeys:Ut.selectedKeys,eventKey:"".concat(Ut.eventKey,"-menu-"),openKeys:Ut.openKeys,motion:Ut.motion,onOpenChange:Ae.onOpenChange,subMenuOpenDelay:Ut.subMenuOpenDelay,parentMenu:Object(b.a)(Ae),subMenuCloseDelay:Ut.subMenuCloseDelay,forceSubMenuRender:Ut.forceSubMenuRender,triggerSubMenuAction:Ut.triggerSubMenuAction,builtinPlacements:Ut.builtinPlacements,defaultActiveFirst:Ut.store.getState().defaultActiveFirst[te(Ut.eventKey)],multiple:Ut.multiple,prefixCls:Ut.rootPrefixCls,id:Ae.internalMenuId,manualRef:Ae.saveMenuInstance,itemIcon:Ut.itemIcon,expandIcon:Ut.expandIcon,direction:Ut.direction}},Ae.getMotion=function(tt,Ut){var Pt=Object(b.a)(Ae),an=Pt.haveRendered,nn=Ae.props,rn=nn.motion,Tn=nn.rootPrefixCls,sn=Object(M.a)(Object(M.a)({},rn),{},{leavedClassName:"".concat(Tn,"-hidden"),removeOnLeave:!1,motionAppear:an||!Ut||tt!=="inline"});return sn};var Fe=at.store,Tt=at.eventKey,yt=Fe.getState(),Ot=yt.defaultActiveFirst;Ae.isRootMenu=!1;var Lt=!1;return Ot&&(Lt=Ot[Tt]),ve(Fe,Tt,Lt),Ae}return Object(T.a)(rt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ae=this,Fe=this.props,Tt=Fe.mode,yt=Fe.parentMenu,Ot=Fe.manualRef;if(Ot&&Ot(this),Tt!=="horizontal"||!yt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ae.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ae=this.props,Fe=Ae.onDestroy,Tt=Ae.eventKey;Fe&&Fe(Tt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ae){var Fe=this,Tt=this.getBaseProps(),yt=this.getMotion(Tt.mode,Tt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Tt.visible||Tt.forceSubMenuRender,!this.haveOpened)return A.createElement("div",null);var Ot=Tt.direction;return A.createElement(re.default,Object.assign({visible:Tt.visible},yt),function(Lt){var tt=Lt.className,Ut=Lt.style,Pt=h()("".concat(Tt.prefixCls,"-sub"),tt,Object(r.a)({},"".concat(Tt.prefixCls,"-rtl"),Ot==="rtl"));return A.createElement(ot,Object.assign({},Tt,{id:Fe.internalMenuId,className:Pt,style:Ut}),Ae)})}},{key:"render",value:function(){var Ae,Fe=Object(M.a)({},this.props),Tt=Fe.isOpen,yt=this.getPrefixCls(),Ot=Fe.mode==="inline",Lt=h()(yt,"".concat(yt,"-").concat(Fe.mode),(Ae={},Object(r.a)(Ae,Fe.className,!!Fe.className),Object(r.a)(Ae,this.getOpenClassName(),Tt),Object(r.a)(Ae,this.getActiveClassName(),Fe.active||Tt&&!Ot),Object(r.a)(Ae,this.getDisabledClassName(),Fe.disabled),Object(r.a)(Ae,this.getSelectedClassName(),this.isChildrenSelected()),Ae));this.internalMenuId||(Fe.eventKey?this.internalMenuId="".concat(Fe.eventKey,"$Menu"):(J+=1,this.internalMenuId="$__$".concat(J,"$Menu")));var tt={},Ut={},Pt={};Fe.disabled||(tt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ut={onClick:this.onTitleClick},Pt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var an={},nn=Fe.direction;Ot&&(nn==="rtl"?an.paddingRight=Fe.inlineIndent*Fe.level:an.paddingLeft=Fe.inlineIndent*Fe.level);var rn={};this.props.isOpen&&(rn={"aria-owns":this.internalMenuId});var Tn=null;Fe.mode!=="horizontal"&&(Tn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Tn=A.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var sn=A.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:an,className:"".concat(yt,"-title"),role:"button"},Pt,Ut,{"aria-expanded":Tt},rn,{"aria-haspopup":"true",title:typeof Fe.title=="string"?Fe.title:void 0}),Fe.title,Tn||A.createElement("i",{className:"".concat(yt,"-arrow")})),un=this.renderChildren(Fe.children),Jn=Fe.parentMenu.isRootMenu?Fe.parentMenu.props.getPopupContainer:function(Ur){return Ur.parentNode},kn=Q[Fe.mode],Yn=Fe.popupOffset?{offset:Fe.popupOffset}:{},tr=Fe.mode==="inline"?"":Fe.popupClassName;tr+=nn==="rtl"?" ".concat(yt,"-rtl"):"";var pr=Fe.disabled,ar=Fe.triggerSubMenuAction,mn=Fe.subMenuOpenDelay,en=Fe.forceSubMenuRender,Nn=Fe.subMenuCloseDelay,Zr=Fe.builtinPlacements;Ce.forEach(function(Ur){return delete Fe[Ur]}),delete Fe.onClick;var zr=nn==="rtl"?Object.assign({},oe,Zr):Object.assign({},Se,Zr);return delete Fe.direction,A.createElement("li",Object.assign({},Fe,tt,{className:Lt,role:"menuitem"}),Ot&&sn,Ot&&un,!Ot&&A.createElement(me.a,{prefixCls:yt,popupClassName:h()("".concat(yt,"-popup"),tr),getPopupContainer:Jn,builtinPlacements:zr,popupPlacement:kn,popupVisible:Tt,popupAlign:Yn,popup:un,action:pr?[]:[ar],mouseEnterDelay:mn,mouseLeaveDelay:Nn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:en},sn))}}]),rt}(A.Component);_e.defaultProps={onMouseEnter:L,onMouseLeave:L,onTitleMouseEnter:L,onTitleMouseLeave:L,onTitleClick:L,manualRef:L,mode:"vertical",title:""};var Te=Object(g.b)(function(Et,je){var rt=Et.openKeys,at=Et.activeKey,Ae=Et.selectedKeys,Fe=je.eventKey,Tt=je.subMenuKey;return{isOpen:rt.indexOf(Fe)>-1,active:at[Tt]===Fe,selectedKeys:Ae}})(_e);Te.isSubMenu=!0;var Ge=Te,qe="menuitem-overflowed",ut=.5,st=function(Et){Object(y.a)(rt,Et);var je=Object(C.a)(rt);function rt(){var at;return Object(m.a)(this,rt),at=je.apply(this,arguments),at.resizeObserver=null,at.mutationObserver=null,at.originalTotalWidth=0,at.overflowedItems=[],at.menuItemSizes=[],at.cancelFrameId=null,at.state={lastVisibleIndex:void 0},at.getMenuItemNodes=function(){var Ae=at.props.prefixCls,Fe=le.findDOMNode(Object(b.a)(at));return Fe?[].slice.call(Fe.children).filter(function(Tt){return Tt.className.split(" ").indexOf("".concat(Ae,"-overflowed-submenu"))<0}):[]},at.getOverflowedSubMenuItem=function(Ae,Fe,Tt){var yt=at.props,Ot=yt.overflowedIndicator,Lt=yt.level,tt=yt.mode,Ut=yt.prefixCls,Pt=yt.theme;if(Lt!==1||tt!=="horizontal")return null;var an=at.props.children[0],nn=an.props,rn=nn.children,Tn=nn.title,sn=nn.style,un=Object(ue.a)(nn,["children","title","style"]),Jn=Object(M.a)({},sn),kn="".concat(Ae,"-overflowed-indicator"),Yn="".concat(Ae,"-overflowed-indicator");Fe.length===0&&Tt!==!0?Jn=Object(M.a)(Object(M.a)({},Jn),{},{display:"none"}):Tt&&(Jn=Object(M.a)(Object(M.a)({},Jn),{},{visibility:"hidden",position:"absolute"}),kn="".concat(kn,"-placeholder"),Yn="".concat(Yn,"-placeholder"));var tr=Pt?"".concat(Ut,"-").concat(Pt):"",pr={};return Ce.forEach(function(ar){un[ar]!==void 0&&(pr[ar]=un[ar])}),A.createElement(Ge,Object.assign({title:Ot,className:"".concat(Ut,"-overflowed-submenu"),popupClassName:tr},pr,{key:kn,eventKey:Yn,disabled:!1,style:Jn}),Fe)},at.setChildrenWidthAndResize=function(){if(at.props.mode!=="horizontal")return;var Ae=le.findDOMNode(Object(b.a)(at));if(!Ae)return;var Fe=Ae.children;if(!Fe||Fe.length===0)return;var Tt=Ae.children[Fe.length-1];ce(Tt,"display","inline-block");var yt=at.getMenuItemNodes(),Ot=yt.filter(function(Lt){return Lt.className.split(" ").indexOf(qe)>=0});Ot.forEach(function(Lt){ce(Lt,"display","inline-block")}),at.menuItemSizes=yt.map(function(Lt){return Oe(Lt,!0)}),Ot.forEach(function(Lt){ce(Lt,"display","none")}),at.overflowedIndicatorWidth=Oe(Ae.children[Ae.children.length-1],!0),at.originalTotalWidth=at.menuItemSizes.reduce(function(Lt,tt){return Lt+tt},0),at.handleResize(),ce(Tt,"display","none")},at.handleResize=function(){if(at.props.mode!=="horizontal")return;var Ae=le.findDOMNode(Object(b.a)(at));if(!Ae)return;var Fe=Oe(Ae);at.overflowedItems=[];var Tt=0,yt;at.originalTotalWidth>Fe+ut&&(yt=-1,at.menuItemSizes.forEach(function(Ot){Tt+=Ot,Tt+at.overflowedIndicatorWidth<=Fe&&(yt+=1)})),at.setState({lastVisibleIndex:yt})},at}return Object(T.a)(rt,[{key:"componentDidMount",value:function(){var Ae=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Fe=le.findDOMNode(this);if(!Fe)return;this.resizeObserver=new $.default(function(Tt){Tt.forEach(function(){var yt=Ae.cancelFrameId;cancelAnimationFrame(yt),Ae.cancelFrameId=requestAnimationFrame(Ae.setChildrenWidthAndResize)})}),[].slice.call(Fe.children).concat(Fe).forEach(function(Tt){Ae.resizeObserver.observe(Tt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ae.resizeObserver.disconnect(),[].slice.call(Fe.children).concat(Fe).forEach(function(Tt){Ae.resizeObserver.observe(Tt)}),Ae.setChildrenWidthAndResize()}),this.mutationObserver.observe(Fe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ae){var Fe=this,Tt=this.state.lastVisibleIndex;return(Ae||[]).reduce(function(yt,Ot,Lt){var tt=Ot;if(Fe.props.mode==="horizontal"){var Ut=Fe.getOverflowedSubMenuItem(Ot.props.eventKey,[]);Tt!==void 0&&Fe.props.className.indexOf("".concat(Fe.props.prefixCls,"-root"))!==-1&&(Lt>Tt&&(tt=A.cloneElement(Ot,{style:{display:"none"},eventKey:"".concat(Ot.props.eventKey,"-hidden"),className:"".concat(qe)})),Lt===Tt+1&&(Fe.overflowedItems=Ae.slice(Tt+1).map(function(an){return A.cloneElement(an,{key:an.props.eventKey,mode:"vertical-left"})}),Ut=Fe.getOverflowedSubMenuItem(Ot.props.eventKey,Fe.overflowedItems)));var Pt=[].concat(Object(ye.a)(yt),[Ut,tt]);return Lt===Ae.length-1&&Pt.push(Fe.getOverflowedSubMenuItem(Ot.props.eventKey,[],!0)),Pt}return[].concat(Object(ye.a)(yt),[tt])},[])}},{key:"render",value:function(){var Ae=this.props,Fe=Ae.visible,Tt=Ae.prefixCls,yt=Ae.overflowedIndicator,Ot=Ae.mode,Lt=Ae.level,tt=Ae.tag,Ut=Ae.children,Pt=Ae.theme,an=Object(ue.a)(Ae,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),nn=tt;return A.createElement(nn,Object.assign({},an),this.renderChildren(Ut))}}]),rt}(A.Component);st.defaultProps={tag:"div",className:""};var ft=st;function gt(Et){return Et.length?Et.every(function(je){return!!je.props.disabled}):!0}function Ve(Et,je,rt){var at=Et.getState();Et.setState({activeKey:Object(M.a)(Object(M.a)({},at.activeKey),{},Object(r.a)({},je,rt))})}function ke(Et){return Et.eventKey||"0-menu-"}function dt(Et,je){var rt=je,at=Et.children,Ae=Et.eventKey;if(rt){var Fe;if(fe(at,function(Tt,yt){Tt&&Tt.props&&!Tt.props.disabled&&rt===K(Tt,Ae,yt)&&(Fe=!0)}),Fe)return rt}return rt=null,Et.defaultActiveFirst&&fe(at,function(Tt,yt){!rt&&Tt&&!Tt.props.disabled&&(rt=K(Tt,Ae,yt))}),rt}function Bt(Et){if(Et){var je=this.instanceArray.indexOf(Et);je!==-1?this.instanceArray[je]=Et:this.instanceArray.push(Et)}}var vt=function(Et){Object(y.a)(rt,Et);var je=Object(C.a)(rt);function rt(at){var Ae;return Object(m.a)(this,rt),Ae=je.call(this,at),Ae.onKeyDown=function(Fe,Tt){var yt=Fe.keyCode,Ot;if(Ae.getFlatInstanceArray().forEach(function(tt){tt&&tt.props.active&&tt.onKeyDown&&(Ot=tt.onKeyDown(Fe))}),Ot)return 1;var Lt=null;return(yt===l.a.UP||yt===l.a.DOWN)&&(Lt=Ae.step(yt===l.a.UP?-1:1)),Lt?(Fe.preventDefault(),Ve(Ae.props.store,ke(Ae.props),Lt.props.eventKey),typeof Tt=="function"&&Tt(Lt),1):void 0},Ae.onItemHover=function(Fe){var Tt=Fe.key,yt=Fe.hover;Ve(Ae.props.store,ke(Ae.props),yt?Tt:null)},Ae.onDeselect=function(Fe){Ae.props.onDeselect(Fe)},Ae.onSelect=function(Fe){Ae.props.onSelect(Fe)},Ae.onClick=function(Fe){Ae.props.onClick(Fe)},Ae.onOpenChange=function(Fe){Ae.props.onOpenChange(Fe)},Ae.onDestroy=function(Fe){Ae.props.onDestroy(Fe)},Ae.getFlatInstanceArray=function(){return Ae.instanceArray},Ae.step=function(Fe){var Tt=Ae.getFlatInstanceArray(),yt=Ae.props.store.getState().activeKey[ke(Ae.props)],Ot=Tt.length;if(!Ot)return null;Fe<0&&(Tt=Tt.concat().reverse());var Lt=-1;if(Tt.every(function(an,nn){return an&&an.props.eventKey===yt?(Lt=nn,!1):!0}),!Ae.props.defaultActiveFirst&&Lt!==-1&>(Tt.slice(Lt,Ot-1)))return;var tt=(Lt+1)%Ot,Ut=tt;do{var Pt=Tt[Ut];if(!Pt||Pt.props.disabled)Ut=(Ut+1)%Ot;else return Pt}while(Ut!==tt);return null},Ae.renderCommonMenuItem=function(Fe,Tt,yt){var Ot=Ae.props.store.getState(),Lt=Object(b.a)(Ae),tt=Lt.props,Ut=K(Fe,tt.eventKey,Tt),Pt=Fe.props;if(!Pt||typeof Fe.type=="string")return Fe;var an=Ut===Ot.activeKey,nn=Object(M.a)(Object(M.a)({mode:Pt.mode||tt.mode,level:tt.level,inlineIndent:tt.inlineIndent,renderMenuItem:Ae.renderMenuItem,rootPrefixCls:tt.prefixCls,index:Tt,parentMenu:tt.parentMenu,manualRef:Pt.disabled?void 0:Object(n.a)(Fe.ref,Bt.bind(Object(b.a)(Ae))),eventKey:Ut,active:!Pt.disabled&&an,multiple:tt.multiple,onClick:function(Tn){(Pt.onClick||L)(Tn),Ae.onClick(Tn)},onItemHover:Ae.onItemHover,motion:tt.motion,subMenuOpenDelay:tt.subMenuOpenDelay,subMenuCloseDelay:tt.subMenuCloseDelay,forceSubMenuRender:tt.forceSubMenuRender,onOpenChange:Ae.onOpenChange,onDeselect:Ae.onDeselect,onSelect:Ae.onSelect,builtinPlacements:tt.builtinPlacements,itemIcon:Pt.itemIcon||Ae.props.itemIcon,expandIcon:Pt.expandIcon||Ae.props.expandIcon},yt),{},{direction:tt.direction});return(tt.mode==="inline"||Ee())&&(nn.triggerSubMenuAction="click"),A.cloneElement(Fe,nn)},Ae.renderMenuItem=function(Fe,Tt,yt){if(!Fe)return null;var Ot=Ae.props.store.getState(),Lt={openKeys:Ot.openKeys,selectedKeys:Ot.selectedKeys,triggerSubMenuAction:Ae.props.triggerSubMenuAction,subMenuKey:yt};return Ae.renderCommonMenuItem(Fe,Tt,Lt)},at.store.setState({activeKey:Object(M.a)(Object(M.a)({},at.store.getState().activeKey),{},Object(r.a)({},at.eventKey,dt(at,at.activeKey)))}),Ae.instanceArray=[],Ae}return Object(T.a)(rt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ae){return this.props.visible||Ae.visible||this.props.className!==Ae.className||!a()(this.props.style,Ae.style)}},{key:"componentDidUpdate",value:function(Ae){var Fe=this.props,Tt="activeKey"in Fe?Fe.activeKey:Fe.store.getState().activeKey[ke(Fe)],yt=dt(Fe,Tt);if(yt!==Tt)Ve(Fe.store,ke(Fe),yt);else if("activeKey"in Ae){var Ot=dt(Ae,Ae.activeKey);yt!==Ot&&Ve(Fe.store,ke(Fe),yt)}}},{key:"render",value:function(){var Ae=this,Fe=Object(f.a)({},this.props);this.instanceArray=[];var Tt=h()(Fe.prefixCls,Fe.className,"".concat(Fe.prefixCls,"-").concat(Fe.mode)),yt={className:Tt,role:Fe.role||"menu"};Fe.id&&(yt.id=Fe.id),Fe.focusable&&(yt.tabIndex=0,yt.onKeyDown=this.onKeyDown);var Ot=Fe.prefixCls,Lt=Fe.eventKey,tt=Fe.visible,Ut=Fe.level,Pt=Fe.mode,an=Fe.overflowedIndicator,nn=Fe.theme;return Ce.forEach(function(rn){return delete Fe[rn]}),delete Fe.onClick,A.createElement(ft,Object.assign({},Fe,{prefixCls:Ot,mode:Pt,tag:"ul",level:Ut,theme:nn,visible:tt,overflowedIndicator:an},yt),A.Children.map(Fe.children,function(rn,Tn){return Ae.renderMenuItem(rn,Tn,Lt||"0-menu-")}))}}]),rt}(A.Component);vt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:L};var Rt=Object(g.b)()(vt),ot=Rt,Je=o("Kwbf");function et(Et,je,rt){var at=Et.prefixCls,Ae=Et.motion,Fe=Et.defaultMotions,Tt=Fe===void 0?{}:Fe,yt=Et.openAnimation,Ot=Et.openTransitionName,Lt=je.switchingModeFromInline;if(Ae)return Ae;if(Object(d.a)(yt)==="object"&&yt)Object(Je.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof yt=="string")return{motionName:"".concat(at,"-open-").concat(yt)};if(Ot)return{motionName:Ot};var tt=Tt[rt];return tt||(Lt?null:Tt.other)}var Me=function(Et){Object(y.a)(rt,Et);var je=Object(C.a)(rt);function rt(at){var Ae;Object(m.a)(this,rt),Ae=je.call(this,at),Ae.inlineOpenKeys=[],Ae.onSelect=function(yt){var Ot=Object(b.a)(Ae),Lt=Ot.props;if(Lt.selectable){var tt=Ae.store.getState(),Ut=tt.selectedKeys,Pt=yt.key;Lt.multiple?Ut=Ut.concat([Pt]):Ut=[Pt],"selectedKeys"in Lt||Ae.store.setState({selectedKeys:Ut}),Lt.onSelect(Object(M.a)(Object(M.a)({},yt),{},{selectedKeys:Ut}))}},Ae.onClick=function(yt){var Ot=Ae.getRealMenuMode(),Lt=Object(b.a)(Ae),tt=Lt.store,Ut=Lt.props.onOpenChange;Ot!=="inline"&&!("openKeys"in Ae.props)&&(tt.setState({openKeys:[]}),Ut([])),Ae.props.onClick(yt)},Ae.onKeyDown=function(yt,Ot){Ae.innerMenu.getWrappedInstance().onKeyDown(yt,Ot)},Ae.onOpenChange=function(yt){var Ot=Object(b.a)(Ae),Lt=Ot.props,tt=Ae.store.getState().openKeys.concat(),Ut=!1,Pt=function(nn){var rn=!1;if(nn.open)rn=tt.indexOf(nn.key)===-1,rn&&tt.push(nn.key);else{var Tn=tt.indexOf(nn.key);rn=Tn!==-1,rn&&tt.splice(Tn,1)}Ut=Ut||rn};Array.isArray(yt)?yt.forEach(Pt):Pt(yt),Ut&&("openKeys"in Ae.props||Ae.store.setState({openKeys:tt}),Lt.onOpenChange(tt))},Ae.onDeselect=function(yt){var Ot=Object(b.a)(Ae),Lt=Ot.props;if(Lt.selectable){var tt=Ae.store.getState().selectedKeys.concat(),Ut=yt.key,Pt=tt.indexOf(Ut);Pt!==-1&&tt.splice(Pt,1),"selectedKeys"in Lt||Ae.store.setState({selectedKeys:tt}),Lt.onDeselect(Object(M.a)(Object(M.a)({},yt),{},{selectedKeys:tt}))}},Ae.onMouseEnter=function(yt){Ae.restoreModeVerticalFromInline();var Ot=Ae.props.onMouseEnter;Ot&&Ot(yt)},Ae.onTransitionEnd=function(yt){var Ot=yt.propertyName==="width"&&yt.target===yt.currentTarget,Lt=yt.target.className,tt=Object.prototype.toString.call(Lt)==="[object SVGAnimatedString]"?Lt.animVal:Lt,Ut=yt.propertyName==="font-size"&&tt.indexOf("anticon")>=0;(Ot||Ut)&&Ae.restoreModeVerticalFromInline()},Ae.setInnerMenu=function(yt){Ae.innerMenu=yt},Ae.isRootMenu=!0;var Fe=at.defaultSelectedKeys,Tt=at.defaultOpenKeys;return"selectedKeys"in at&&(Fe=at.selectedKeys||[]),"openKeys"in at&&(Tt=at.openKeys||[]),Ae.store=Object(g.c)({selectedKeys:Fe,openKeys:Tt,activeKey:{"0-menu-":dt(at,at.activeKey)}}),Ae.state={switchingModeFromInline:!1},Ae}return Object(T.a)(rt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ae){this.updateOpentKeysWhenSwitchMode(Ae),this.updateMiniStore();var Fe=this.props,Tt=Fe.siderCollapsed,yt=Fe.inlineCollapsed,Ot=Fe.onOpenChange;(!Ae.inlineCollapsed&&yt||!Ae.siderCollapsed&&Tt)&&Ot([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ae){var Fe=this.props,Tt=this.store,yt=this.inlineOpenKeys,Ot=Tt.getState(),Lt={};Ae.mode==="inline"&&Fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Fe||((Fe.inlineCollapsed&&!Ae.inlineCollapsed||Fe.siderCollapsed&&!Ae.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Ot.openKeys.concat(),Lt.openKeys=[]),(!Fe.inlineCollapsed&&Ae.inlineCollapsed||!Fe.siderCollapsed&&Ae.siderCollapsed)&&(Lt.openKeys=yt,this.inlineOpenKeys=[])),Object.keys(Lt).length&&Tt.setState(Lt)}},{key:"updateMenuDisplay",value:function(){var Ae=this.props.collapsedWidth,Fe=this.store,Tt=this.prevOpenKeys,yt=this.getInlineCollapsed()&&(Ae===0||Ae==="0"||Ae==="0px");yt?(this.prevOpenKeys=Fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Tt&&(this.store.setState({openKeys:Tt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ae=this.props.mode,Fe=this.state.switchingModeFromInline,Tt=this.getInlineCollapsed();return Fe&&Tt?"inline":Tt?"vertical":Ae}},{key:"getInlineCollapsed",value:function(){var Ae=this.props,Fe=Ae.inlineCollapsed,Tt=Ae.siderCollapsed;return Tt!==void 0?Tt:Fe}},{key:"restoreModeVerticalFromInline",value:function(){var Ae=this.state.switchingModeFromInline;Ae&&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 Ae=Object(M.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Fe=this.getRealMenuMode();return Ae.className+=" ".concat(Ae.prefixCls,"-root"),Ae.direction==="rtl"&&(Ae.className+=" ".concat(Ae.prefixCls,"-rtl")),Ae=Object(M.a)(Object(M.a)({},Ae),{},{mode:Fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:et(this.props,this.state,Fe)}),delete Ae.openAnimation,delete Ae.openTransitionName,A.createElement(g.a,{store:this.store},A.createElement(ot,Object.assign({},Ae,{ref:this.setInnerMenu}),this.props.children))}}]),rt}(A.Component);Me.defaultProps={selectable:!0,onClick:L,onSelect:L,onOpenChange:L,onDeselect:L,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:A.createElement("span",null,"\xB7\xB7\xB7")};var Be=Me,Xe=function(Et){Object(y.a)(rt,Et);var je=Object(C.a)(rt);function rt(){var at;return Object(m.a)(this,rt),at=je.apply(this,arguments),at.onKeyDown=function(Ae){var Fe=Ae.keyCode;return Fe===l.a.ENTER?(at.onClick(Ae),!0):void 0},at.onMouseLeave=function(Ae){var Fe=at.props,Tt=Fe.eventKey,yt=Fe.onItemHover,Ot=Fe.onMouseLeave;yt({key:Tt,hover:!1}),Ot({key:Tt,domEvent:Ae})},at.onMouseEnter=function(Ae){var Fe=at.props,Tt=Fe.eventKey,yt=Fe.onItemHover,Ot=Fe.onMouseEnter;yt({key:Tt,hover:!0}),Ot({key:Tt,domEvent:Ae})},at.onClick=function(Ae){var Fe=at.props,Tt=Fe.eventKey,yt=Fe.multiple,Ot=Fe.onClick,Lt=Fe.onSelect,tt=Fe.onDeselect,Ut=Fe.isSelected,Pt={key:Tt,keyPath:[Tt],item:Object(b.a)(at),domEvent:Ae};Ot(Pt),yt?Ut?tt(Pt):Lt(Pt):Ut||Lt(Pt)},at.saveNode=function(Ae){at.node=Ae},at}return Object(T.a)(rt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ae=this.props;Ae.onDestroy&&Ae.onDestroy(Ae.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 Ae,Fe=Object(M.a)({},this.props),Tt=h()(this.getPrefixCls(),Fe.className,(Ae={},Object(r.a)(Ae,this.getActiveClassName(),!Fe.disabled&&Fe.active),Object(r.a)(Ae,this.getSelectedClassName(),Fe.isSelected),Object(r.a)(Ae,this.getDisabledClassName(),Fe.disabled),Ae)),yt=Object(M.a)(Object(M.a)({},Fe.attribute),{},{title:typeof Fe.title=="string"?Fe.title:void 0,className:Tt,role:Fe.role||"menuitem","aria-disabled":Fe.disabled});Fe.role==="option"?yt=Object(M.a)(Object(M.a)({},yt),{},{role:"option","aria-selected":Fe.isSelected}):(Fe.role===null||Fe.role==="none")&&(yt.role="none");var Ot={onClick:Fe.disabled?null:this.onClick,onMouseLeave:Fe.disabled?null:this.onMouseLeave,onMouseEnter:Fe.disabled?null:this.onMouseEnter},Lt=Object(M.a)({},Fe.style);Fe.mode==="inline"&&(Fe.direction==="rtl"?Lt.paddingRight=Fe.inlineIndent*Fe.level:Lt.paddingLeft=Fe.inlineIndent*Fe.level),Ce.forEach(function(Ut){return delete Fe[Ut]}),delete Fe.direction;var tt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(tt=A.createElement(this.props.itemIcon,this.props)),A.createElement("li",Object.assign({},Object(e.default)(Fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),yt,Ot,{style:Lt,ref:this.saveNode}),Fe.children,tt)}}]),rt}(A.Component);Xe.isMenuItem=!0,Xe.defaultProps={onSelect:L,onMouseEnter:L,onMouseLeave:L,manualRef:L};var Ke=Object(g.b)(function(Et,je){var rt=Et.activeKey,at=Et.selectedKeys,Ae=je.eventKey,Fe=je.subMenuKey;return{active:rt[Fe]===Ae,isSelected:at.indexOf(Ae)!==-1}})(Xe),$e=Ke,_t=function(Et){Object(y.a)(rt,Et);var je=Object(C.a)(rt);function rt(){var at;return Object(m.a)(this,rt),at=je.apply(this,arguments),at.renderInnerMenuItem=function(Ae){var Fe=at.props,Tt=Fe.renderMenuItem,yt=Fe.index;return Tt(Ae,yt,at.props.subMenuKey)},at}return Object(T.a)(rt,[{key:"render",value:function(){var Ae=Object(f.a)({},this.props),Fe=Ae.className,Tt=Fe===void 0?"":Fe,yt=Ae.rootPrefixCls,Ot="".concat(yt,"-item-group-title"),Lt="".concat(yt,"-item-group-list"),tt=Ae.title,Ut=Ae.children;return Ce.forEach(function(Pt){return delete Ae[Pt]}),delete Ae.onClick,delete Ae.direction,A.createElement("li",Object.assign({},Ae,{className:"".concat(Tt," ").concat(yt,"-item-group")}),A.createElement("div",{className:Ot,title:typeof tt=="string"?tt:void 0},tt),A.createElement("ul",{className:Lt},A.Children.map(Ut,this.renderInnerMenuItem)))}}]),rt}(A.Component);_t.isMenuItemGroup=!0,_t.defaultProps={disabled:!0};var Ft=_t,qt=function(je){var rt=je.className,at=je.rootPrefixCls,Ae=je.style;return A.createElement("li",{className:"".concat(rt," ").concat(at,"-item-divider"),style:Ae})};qt.defaultProps={disabled:!0,className:"",style:{}};var bn=qt,At=z.e=Be},"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,m,T){k.exports=z=m(o("Ib8C"),o("MlIO"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.Hasher,y=m.x64,C=y.Word,A=y.WordArray,g=m.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)],r=[];(function(){for(var n=0;n<80;n++)r[n]=e()})();var l=g.SHA512=b.extend({_doReset:function(){this._hash=new A.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 a=this._hash.words,c=a[0],h=a[1],d=a[2],s=a[3],u=a[4],S=a[5],E=a[6],_=a[7],P=c.high,R=c.low,x=h.high,w=h.low,v=d.high,O=d.low,U=s.high,I=s.low,N=u.high,V=u.low,H=S.high,D=S.low,W=E.high,F=E.low,L=_.high,K=_.low,te=P,fe=R,de=x,Ce=w,Oe=v,ce=O,Ee=U,ye=I,ue=N,le=V,$=H,me=D,re=W,ae=F,Se=L,oe=K,ee=0;ee<80;ee++){var J,Q,ve=r[ee];if(ee<16)Q=ve.high=n[i+ee*2]|0,J=ve.low=n[i+ee*2+1]|0;else{var _e=r[ee-15],Te=_e.high,Ge=_e.low,qe=(Te>>>1|Ge<<31)^(Te>>>8|Ge<<24)^Te>>>7,ut=(Ge>>>1|Te<<31)^(Ge>>>8|Te<<24)^(Ge>>>7|Te<<25),st=r[ee-2],ft=st.high,gt=st.low,Ve=(ft>>>19|gt<<13)^(ft<<3|gt>>>29)^ft>>>6,ke=(gt>>>19|ft<<13)^(gt<<3|ft>>>29)^(gt>>>6|ft<<26),dt=r[ee-7],Bt=dt.high,vt=dt.low,Rt=r[ee-16],ot=Rt.high,Je=Rt.low;J=ut+vt,Q=qe+Bt+(J>>>0<ut>>>0?1:0),J=J+ke,Q=Q+Ve+(J>>>0<ke>>>0?1:0),J=J+Je,Q=Q+ot+(J>>>0<Je>>>0?1:0),ve.high=Q,ve.low=J}var et=ue&$^~ue&re,Me=le&me^~le&ae,Be=te&de^te&Oe^de&Oe,Xe=fe&Ce^fe&ce^Ce&ce,Ke=(te>>>28|fe<<4)^(te<<30|fe>>>2)^(te<<25|fe>>>7),$e=(fe>>>28|te<<4)^(fe<<30|te>>>2)^(fe<<25|te>>>7),_t=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),Ft=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),qt=f[ee],bn=qt.high,At=qt.low,Et=oe+Ft,je=Se+_t+(Et>>>0<oe>>>0?1:0),Et=Et+Me,je=je+et+(Et>>>0<Me>>>0?1:0),Et=Et+At,je=je+bn+(Et>>>0<At>>>0?1:0),Et=Et+J,je=je+Q+(Et>>>0<J>>>0?1:0),rt=$e+Xe,at=Ke+Be+(rt>>>0<$e>>>0?1:0);Se=re,oe=ae,re=$,ae=me,$=ue,me=le,le=ye+Et|0,ue=Ee+je+(le>>>0<ye>>>0?1:0)|0,Ee=Oe,ye=ce,Oe=de,ce=Ce,de=te,Ce=fe,fe=Et+rt|0,te=je+at+(fe>>>0<Et>>>0?1:0)|0}R=c.low=R+fe,c.high=P+te+(R>>>0<fe>>>0?1:0),w=h.low=w+Ce,h.high=x+de+(w>>>0<Ce>>>0?1:0),O=d.low=O+ce,d.high=v+Oe+(O>>>0<ce>>>0?1:0),I=s.low=I+ye,s.high=U+Ee+(I>>>0<ye>>>0?1:0),V=u.low=V+le,u.high=N+ue+(V>>>0<le>>>0?1:0),D=S.low=D+me,S.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+oe,_.high=L+Se+(K>>>0<oe>>>0?1:0)},_doFinalize:function(){var n=this._data,i=n.words,a=this._nDataBytes*8,c=n.sigBytes*8;i[c>>>5]|=128<<24-c%32,i[(c+128>>>10<<5)+30]=Math.floor(a/4294967296),i[(c+128>>>10<<5)+31]=a,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});m.SHA512=b._createHelper(l),m.HmacSHA512=b._createHmacHelper(l)}(),M.SHA512})},"24hK":function(k,z,o){"use strict";o.d(z,"a",function(){return m});class M{constructor(T){this.element=T,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class m{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 T=this._first;for(;T!==M.Undefined;){const b=T.next;T.prev=M.Undefined,T.next=M.Undefined,T=b}this._first=M.Undefined,this._last=M.Undefined,this._size=0}unshift(T){return this._insert(T,!1)}push(T){return this._insert(T,!0)}_insert(T,b){const y=new M(T);if(this._first===M.Undefined)this._first=y,this._last=y;else if(b){const A=this._last;this._last=y,y.prev=A,A.next=y}else{const A=this._first;this._first=y,y.next=A,A.prev=y}this._size+=1;let C=!1;return()=>{C||(C=!0,this._remove(y))}}shift(){if(this._first===M.Undefined)return;{const T=this._first.element;return this._remove(this._first),T}}pop(){if(this._last===M.Undefined)return;{const T=this._last.element;return this._remove(this._last),T}}_remove(T){if(T.prev!==M.Undefined&&T.next!==M.Undefined){const b=T.prev;b.next=T.next,T.next.prev=b}else T.prev===M.Undefined&&T.next===M.Undefined?(this._first=M.Undefined,this._last=M.Undefined):T.next===M.Undefined?(this._last=this._last.prev,this._last.next=M.Undefined):T.prev===M.Undefined&&(this._first=this._first.next,this._first.prev=M.Undefined);this._size-=1}*[Symbol.iterator](){let T=this._first;for(;T!==M.Undefined;)yield T.element,T=T.next}}},"3/fG":function(k,z,o){"use strict";o.d(z,"a",function(){return m});function M(T,b){let y;return b.length===0?y=T:y=T.replace(/\{(\d+)\}/g,function(C,A){const g=A[0];return typeof b[g]!="undefined"?b[g]:C}),y}function m(T,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"}},"3y9D":function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.WordArray,y=T.Hasher,C=m.algo,A=[],g=C.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,f){for(var r=this._hash.words,l=r[0],n=r[1],i=r[2],a=r[3],c=r[4],h=0;h<80;h++){if(h<16)A[h]=e[f+h]|0;else{var d=A[h-3]^A[h-8]^A[h-14]^A[h-16];A[h]=d<<1|d>>>31}var s=(l<<5|l>>>27)+c+A[h];h<20?s+=(n&i|~n&a)+1518500249:h<40?s+=(n^i^a)+1859775393:h<60?s+=(n&i|n&a|i&a)-1894007588:s+=(n^i^a)-899497514,c=a,a=i,i=n<<30|n>>>2,n=l,l=s}r[0]=r[0]+l|0,r[1]=r[1]+n|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,f=e.words,r=this._nDataBytes*8,l=e.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(r/4294967296),f[(l+64>>>9<<4)+15]=r,e.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var e=y.clone.call(this);return e._hash=this._hash.clone(),e}});m.SHA1=y._createHelper(g),m.HmacSHA1=y._createHmacHelper(g)}(),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,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"},"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"),m=o("dI71"),T=o("q1tI"),b=o.n(T),y=o("YS25"),C=o("17x9"),A=o.n(C),g=o("wx14"),e=o("zLVn"),f=o("9R94"),r=function(w){Object(m.a)(v,w);function v(){for(var U,I=arguments.length,N=new Array(I),V=0;V<I;V++)N[V]=arguments[V];return U=w.call.apply(w,[this].concat(N))||this,U.history=Object(y.a)(U.props),U}var O=v.prototype;return O.render=function(){return b.a.createElement(M.c,{history:this.history,children:this.props.children})},v}(b.a.Component),l=function(w){Object(m.a)(v,w);function v(){for(var U,I=arguments.length,N=new Array(I),V=0;V<I;V++)N[V]=arguments[V];return U=w.call.apply(w,[this].concat(N))||this,U.history=Object(y.b)(U.props),U}var O=v.prototype;return O.render=function(){return b.a.createElement(M.c,{history:this.history,children:this.props.children})},v}(b.a.Component),n=function(v,O){return typeof v=="function"?v(O):v},i=function(v,O){return typeof v=="string"?Object(y.c)(v,null,null,O):v},a=function(v){return v},c=b.a.forwardRef;typeof c=="undefined"&&(c=a);function h(w){return!!(w.metaKey||w.altKey||w.ctrlKey||w.shiftKey)}var d=c(function(w,v){var O=w.innerRef,U=w.navigate,I=w.onClick,N=Object(e.a)(w,["innerRef","navigate","onClick"]),V=N.target,H=Object(g.a)({},N,{onClick:function(W){try{I&&I(W)}catch(F){throw W.preventDefault(),F}!W.defaultPrevented&&W.button===0&&(!V||V==="_self")&&!h(W)&&(W.preventDefault(),U())}});return a!==c?H.ref=v||O:H.ref=O,b.a.createElement("a",H)}),s=c(function(w,v){var O=w.component,U=O===void 0?d:O,I=w.replace,N=w.to,V=w.innerRef,H=Object(e.a)(w,["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),L=F?W.createHref(F):"",K=Object(g.a)({},H,{href:L,navigate:function(){var fe=n(N,D.location),de=I?W.replace:W.push;de(fe)}});return a!==c?K.ref=v||V:K.innerRef=V,b.a.createElement(U,K)})});if(!1)var u,S;var E=function(v){return v},_=b.a.forwardRef;typeof _=="undefined"&&(_=E);function P(){for(var w=arguments.length,v=new Array(w),O=0;O<w;O++)v[O]=arguments[O];return v.filter(function(U){return U}).join(" ")}var R=_(function(w,v){var O=w["aria-current"],U=O===void 0?"page":O,I=w.activeClassName,N=I===void 0?"active":I,V=w.activeStyle,H=w.className,D=w.exact,W=w.isActive,F=w.location,L=w.sensitive,K=w.strict,te=w.style,fe=w.to,de=w.innerRef,Ce=Object(e.a)(w,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return b.a.createElement(M.e.Consumer,null,function(Oe){Oe||Object(f.a)(!1);var ce=F||Oe.location,Ee=i(n(fe,ce),ce),ye=Ee.pathname,ue=ye&&ye.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),le=ue?Object(M.f)(ce.pathname,{path:ue,exact:D,sensitive:L,strict:K}):null,$=!!(W?W(le,ce):le),me=$?P(H,N):H,re=$?Object(g.a)({},te,{},V):te,ae=Object(g.a)({"aria-current":$&&U||null,className:me,style:re,to:Ee},Ce);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,m;function T(b,y,C){var A=function(g,e){return b.js_beautify(g,e)};return A.js=b.js_beautify,A.css=y.css_beautify,A.html=C.html_beautify,A.js_beautify=b.js_beautify,A.css_beautify=y.css_beautify,A.html_beautify=C.html_beautify,A}!(M=[o("6UM0"),o("TXwP"),o("psGv")],m=function(b,y,C){return T(b,y,C)}.apply(z,M),m!==void 0&&(k.exports=m))},"5Y4S":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var M=o("MNsG");const m=M.b.performance&&typeof M.b.performance.now=="function";class T{constructor(b){this._highResolution=m&&b,this._startTime=this._now(),this._stopTime=-1}static create(b=!0){return new T(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,m,T){k.exports=z=m(o("Ib8C"),o("MlIO"))})(this,function(M){return function(m){var T=M,b=T.lib,y=b.WordArray,C=b.Hasher,A=T.x64,g=A.Word,e=T.algo,f=[],r=[],l=[];(function(){for(var a=1,c=0,h=0;h<24;h++){f[a+5*c]=(h+1)*(h+2)/2%64;var d=c%5,s=(2*a+3*c)%5;a=d,c=s}for(var a=0;a<5;a++)for(var c=0;c<5;c++)r[a+5*c]=c+(2*a+3*c)%5*5;for(var u=1,S=0;S<24;S++){for(var E=0,_=0,P=0;P<7;P++){if(u&1){var R=(1<<P)-1;R<32?_^=1<<R:E^=1<<R-32}u&128?u=u<<1^113:u<<=1}l[S]=g.create(E,_)}})();var n=[];(function(){for(var a=0;a<25;a++)n[a]=g.create()})();var i=e.SHA3=C.extend({cfg:C.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],c=0;c<25;c++)a[c]=new g.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,c){for(var h=this._state,d=this.blockSize/2,s=0;s<d;s++){var u=a[c+2*s],S=a[c+2*s+1];u=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var E=h[s];E.high^=S,E.low^=u}for(var _=0;_<24;_++){for(var P=0;P<5;P++){for(var R=0,x=0,w=0;w<5;w++){var E=h[P+5*w];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 O=n[(P+4)%5],U=n[(P+1)%5],I=U.high,N=U.low,R=O.high^(I<<1|N>>>31),x=O.low^(N<<1|I>>>31),w=0;w<5;w++){var E=h[P+5*w];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[r[V]];F.high=R,F.low=x}var L=n[0],K=h[0];L.high=K.high,L.low=K.low;for(var P=0;P<5;P++)for(var w=0;w<5;w++){var V=P+5*w,E=h[V],te=n[V],fe=n[(P+1)%5+5*w],de=n[(P+2)%5+5*w];E.high=te.high^~fe.high&de.high,E.low=te.low^~fe.low&de.low}var E=h[0],Ce=l[_];E.high^=Ce.high,E.low^=Ce.low}},_doFinalize:function(){var a=this._data,c=a.words,h=this._nDataBytes*8,d=a.sigBytes*8,s=this.blockSize*32;c[d>>>5]|=1<<24-d%32,c[(m.ceil((d+1)/s)*s>>>5)-1]|=128,a.sigBytes=c.length*4,this._process();for(var u=this._state,S=this.cfg.outputLength/8,E=S/8,_=[],P=0;P<E;P++){var R=u[P],x=R.high,w=R.low;x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,_.push(w),_.push(x)}return new y.init(_,S)},clone:function(){for(var a=C.clone.call(this),c=a._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return a}});T.SHA3=C._createHelper(i),T.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"),m=o("rePB"),T=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),A=o("LK+K"),g=o("q1tI"),e=o.n(g),f=o("TSYQ"),r=o.n(f),l=function(R){var x,w="".concat(R.rootPrefixCls,"-item"),v=r()(w,"".concat(w,"-").concat(R.page),(x={},Object(m.a)(x,"".concat(w,"-active"),R.active),Object(m.a)(x,R.className,!!R.className),Object(m.a)(x,"".concat(w,"-disabled"),!R.page),x)),O=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:O,onKeyPress:U,tabIndex:"0"},R.itemRender(R.page,"page",e.a.createElement("a",{rel:"nofollow"},R.page)))},n=l,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},a=function(P){Object(C.a)(x,P);var R=Object(A.a)(x);function x(){var w;Object(b.a)(this,x);for(var v=arguments.length,O=new Array(v),U=0;U<v;U++)O[U]=arguments[U];return w=R.call.apply(R,[this].concat(O)),w.state={goInputText:""},w.buildOptionText=function(I){return"".concat(I," ").concat(w.props.locale.items_per_page)},w.changeSize=function(I){w.props.changeSize(Number(I))},w.handleChange=function(I){w.setState({goInputText:I.target.value})},w.handleBlur=function(I){var N=w.props,V=N.goButton,H=N.quickGo,D=N.rootPrefixCls,W=w.state.goInputText;if(V||W==="")return;if(I.relatedTarget&&(I.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||I.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;w.setState({goInputText:""}),H(w.getValidValue())},w.go=function(I){var N=w.state.goInputText;if(N==="")return;(I.keyCode===i.ENTER||I.type==="click")&&(w.setState({goInputText:""}),w.props.quickGo(w.getValidValue()))},w}return Object(y.a)(x,[{key:"getValidValue",value:function(){var v=this.state,O=v.goInputText,U=v.current;return!O||isNaN(O)?U:Number(O)}},{key:"getPageSizeOptions",value:function(){var v=this.props,O=v.pageSize,U=v.pageSizeOptions;return U.some(function(I){return I.toString()===O.toString()})?U:U.concat([O.toString()]).sort(function(I,N){var V=isNaN(Number(I))?0:Number(I),H=isNaN(Number(N))?0:Number(N);return V-H})}},{key:"render",value:function(){var v=this,O=this.props,U=O.pageSize,I=O.locale,N=O.rootPrefixCls,V=O.changeSize,H=O.quickGo,D=O.goButton,W=O.selectComponentClass,F=O.buildOptionText,L=O.selectPrefixCls,K=O.disabled,te=this.state.goInputText,fe="".concat(N,"-options"),de=W,Ce=null,Oe=null,ce=null;if(!V&&!H)return null;var Ee=this.getPageSizeOptions();if(V&&de){var ye=Ee.map(function(ue,le){return e.a.createElement(de.Option,{key:le,value:ue.toString()},(F||v.buildOptionText)(ue))});Ce=e.a.createElement(de,{disabled:K,prefixCls:L,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(U||Ee[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.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(fe,"-quick-jumper-button")},I.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Oe=e.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},I.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:te,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),I.page,ce)),e.a.createElement("li",{className:"".concat(fe)},Ce,Oe)}}]),x}(e.a.Component);a.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=a,h=o("N2Kk");function d(){}function s(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function u(P,R,x){return x}function S(P,R,x){var w=typeof P=="undefined"?R.pageSize:P;return Math.floor((x.total-1)/w)+1}var E=function(P){Object(C.a)(x,P);var R=Object(A.a)(x);function x(w){var v;Object(b.a)(this,x),v=R.call(this,w),v.getJumpPrevPage=function(){return Math.max(1,v.state.current-(v.props.showLessItems?3:5))},v.getJumpNextPage=function(){return Math.min(S(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(T.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=S(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=S(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<S(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 O=w.onChange!==d,U="current"in w;U&&!O&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var I=w.defaultCurrent;"current"in w&&(I=w.current);var N=w.defaultPageSize;return"pageSize"in w&&(N=w.pageSize),I=Math.min(I,S(N,void 0,w)),v.state={current:I,currentInputValue:I,pageSize:N},v}return Object(y.a)(x,[{key:"componentDidUpdate",value:function(v,O){var U=this.props.prefixCls;if(O.current!==this.state.current&&this.paginationNode){var I=this.paginationNode.querySelector(".".concat(U,"-item-").concat(O.current));I&&document.activeElement===I&&I.blur()}}},{key:"getValidValue",value:function(v){var O=v.target.value,U=S(void 0,this.state,this.props),I=this.state.currentInputValue,N;return O===""?N=O:isNaN(Number(O))?N=I:O>=U?N=U:N=Number(O),N}},{key:"getShowSizeChanger",value:function(){var v=this.props,O=v.showSizeChanger,U=v.total,I=v.totalBoundaryShowSizeChanger;return typeof O!="undefined"?O:U>I}},{key:"renderPrev",value:function(v){var O=this.props,U=O.prevIcon,I=O.itemRender,N=I(v,"prev",this.getItemIcon(U,"prev page")),V=!this.hasPrev();return Object(g.isValidElement)(N)?Object(g.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(v){var O=this.props,U=O.nextIcon,I=O.itemRender,N=I(v,"next",this.getItemIcon(U,"next page")),V=!this.hasNext();return Object(g.isValidElement)(N)?Object(g.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var v=this,O=this.props,U=O.prefixCls,I=O.className,N=O.style,V=O.disabled,H=O.hideOnSinglePage,D=O.total,W=O.locale,F=O.showQuickJumper,L=O.showLessItems,K=O.showTitle,te=O.showTotal,fe=O.simple,de=O.itemRender,Ce=O.showPrevNextJumpers,Oe=O.jumpPrevIcon,ce=O.jumpNextIcon,Ee=O.selectComponentClass,ye=O.selectPrefixCls,ue=O.pageSizeOptions,le=this.state,$=le.current,me=le.pageSize,re=le.currentInputValue;if(H===!0&&D<=me)return null;var ae=S(void 0,this.state,this.props),Se=[],oe=null,ee=null,J=null,Q=null,ve=null,_e=F&&F.goButton,Te=L?1:2,Ge=$-1>0?$-1:0,qe=$+1<ae?$+1:ae,ut=Object.keys(this.props).reduce(function(Me,Be){return(Be.substr(0,5)==="data-"||Be.substr(0,5)==="aria-"||Be==="role")&&(Me[Be]=v.props[Be]),Me},{});if(fe)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:r()(U,"".concat(U,"-simple"),Object(m.a)({},"".concat(U,"-disabled"),V),I),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:r()("".concat(U,"-prev"),Object(m.a)({},"".concat(U,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Ge)),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:r()("".concat(U,"-next"),Object(m.a)({},"".concat(U,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(qe)),ve);if(ae<=3+Te*2){var st={locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:K,itemRender:de};ae||Se.push(e.a.createElement(n,Object(M.a)({},st,{key:"noPager",page:ae,className:"".concat(U,"-disabled")})));for(var ft=1;ft<=ae;ft+=1){var gt=$===ft;Se.push(e.a.createElement(n,Object(M.a)({},st,{key:ft,page:ft,active:gt})))}}else{var Ve=L?W.prev_3:W.prev_5,ke=L?W.next_3:W.next_5;Ce&&(oe=e.a.createElement("li",{title:K?Ve:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(U,"-jump-prev"),Object(m.a)({},"".concat(U,"-jump-prev-custom-icon"),!!Oe))},de(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Oe,"prev page"))),ee=e.a.createElement("li",{title:K?ke:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(U,"-jump-next"),Object(m.a)({},"".concat(U,"-jump-next-custom-icon"),!!ce))},de(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),Q=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}),J=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 dt=Math.max(1,$-Te),Bt=Math.min($+Te,ae);$-1<=Te&&(Bt=1+Te*2),ae-$<=Te&&(dt=ae-Te*2);for(var vt=dt;vt<=Bt;vt+=1){var Rt=$===vt;Se.push(e.a.createElement(n,{locale:W,rootPrefixCls:U,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:vt,page:vt,active:Rt,showTitle:K,itemRender:de}))}$-1>=Te*2&&$!==1+2&&(Se[0]=Object(g.cloneElement)(Se[0],{className:"".concat(U,"-item-after-jump-prev")}),Se.unshift(oe)),ae-$>=Te*2&&$!==ae-2&&(Se[Se.length-1]=Object(g.cloneElement)(Se[Se.length-1],{className:"".concat(U,"-item-before-jump-next")}),Se.push(ee)),dt!==1&&Se.unshift(J),Bt!==ae&&Se.push(Q)}var ot=null;te&&(ot=e.a.createElement("li",{className:"".concat(U,"-total-text")},te(D,[D===0?0:($-1)*me+1,$*me>D?D:$*me])));var Je=!this.hasPrev()||!ae,et=!this.hasNext()||!ae;return e.a.createElement("ul",Object(M.a)({className:r()(U,I,Object(m.a)({},"".concat(U,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},ut),ot,e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:Je?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(U,"-prev"),Object(m.a)({},"".concat(U,"-disabled"),Je)),"aria-disabled":Je},this.renderPrev(Ge)),Se,e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:et?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(U,"-next"),Object(m.a)({},"".concat(U,"-disabled"),et)),"aria-disabled":et},this.renderNext(qe)),e.a.createElement(c,{disabled:V,locale:W,rootPrefixCls:U,selectComponentClass:Ee,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,O){var U={};if("current"in v&&(U.current=v.current,v.current!==O.current&&(U.currentInputValue=U.current)),"pageSize"in v&&v.pageSize!==O.pageSize){var I=O.current,N=S(v.pageSize,O,v);I=I>N?N:I,"current"in v||(U.current=I,U.currentInputValue=I),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:u,totalBoundaryShowSizeChanger:50};var _=E},"6RRn":function(k,z,o){"use strict";var M=o("wCXF"),m=o("n6Qo");o.d(z,"b",function(){return m.a});var T=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,m;(function(){var T;(function(){"use strict";var y=[function(e,f,r){var l=r(1).Beautifier,n=r(5).Options;function i(a,c){var h=new l(a,c);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new n}},function(e,f,r){var l=r(2).Output,n=r(3).Token,i=r(4),a=r(5).Options,c=r(7).Tokenizer,h=r(7).line_starters,d=r(7).positionable_operators,s=r(7).TOKEN;function u(L,K){return K.indexOf(L)!==-1}function S(L){return L.replace(/^\s+/g,"")}function E(L){for(var K={},te=0;te<L.length;te++)K[L[te].replace(/-/g,"_")]=L[te];return K}function _(L,K){return L&&L.type===s.RESERVED&&L.text===K}function P(L,K){return L&&L.type===s.RESERVED&&u(L.text,K)}var R=["case","return","do","if","throw","else","await","break","continue","async"],x=["before-newline","after-newline","preserve-newline"],w=E(x),v=[w.before_newline,w.preserve_newline],O={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function U(L,K){if(K.multiline_frame||K.mode===O.ForInitializer||K.mode===O.Conditional)return;L.remove_indent(K.start_line_index)}function I(L){L=L.replace(i.allLineBreaks,`
|
|
|
`);for(var K=[],te=L.indexOf(`
|
|
|
`);te!==-1;)K.push(L.substring(0,te)),L=L.substring(te+1),te=L.indexOf(`
|
|
|
`);return L.length&&K.push(L),K}function N(L){return L===O.ArrayLiteral}function V(L){return u(L,[O.Expression,O.ForInitializer,O.Conditional])}function H(L,K){for(var te=0;te<L.length;te++){var fe=L[te].trim();if(fe.charAt(0)!==K)return!1}return!0}function D(L,K){for(var te=0,fe=L.length,de;te<fe;te++)if(de=L[te],de&&de.indexOf(K)!==0)return!1;return!0}function W(L,K){K=K||{},this._source_text=L||"",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 a(K)}W.prototype.create_flags=function(L,K){var te=0;L&&(te=L.indentation_level,!this._output.just_added_newline()&&L.line_indent_level>te&&(te=L.line_indent_level));var fe={mode:K,parent:L,last_token:L?L.last_token:new n(s.START_BLOCK,""),last_word:L?L.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:te,alignment:0,line_indent_level:L?L.line_indent_level:te,start_line_index:this._output.get_line_number(),ternary_depth:0};return fe},W.prototype._reset=function(L){var K=L.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new l(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(O.BlockStatement);var te=new c(L,this._options);return this._tokens=te.tokenize(),L},W.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L,K=this._reset(this._source_text),te=this._options.eol;this._options.eol==="auto"&&(te=`
|
|
|
`,K&&i.lineBreak.test(K||"")&&(te=K.match(i.lineBreak)[0]));for(var fe=this._tokens.next();fe;)this.handle_token(fe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=fe,fe=this._tokens.next();return L=this._output.get_code(te),L},W.prototype.handle_token=function(L,K){L.type===s.START_EXPR?this.handle_start_expr(L):L.type===s.END_EXPR?this.handle_end_expr(L):L.type===s.START_BLOCK?this.handle_start_block(L):L.type===s.END_BLOCK?this.handle_end_block(L):L.type===s.WORD?this.handle_word(L):L.type===s.RESERVED?this.handle_word(L):L.type===s.SEMICOLON?this.handle_semicolon(L):L.type===s.STRING?this.handle_string(L):L.type===s.EQUALS?this.handle_equals(L):L.type===s.OPERATOR?this.handle_operator(L):L.type===s.COMMA?this.handle_comma(L):L.type===s.BLOCK_COMMENT?this.handle_block_comment(L,K):L.type===s.COMMENT?this.handle_comment(L,K):L.type===s.DOT?this.handle_dot(L):L.type===s.EOF?this.handle_eof(L):L.type===s.UNKNOWN?this.handle_unknown(L,K):this.handle_unknown(L,K)},W.prototype.handle_whitespace_and_comments=function(L,K){var te=L.newlines,fe=this._options.keep_array_indentation&&N(this._flags.mode);if(L.comments_before)for(var de=L.comments_before.next();de;)this.handle_whitespace_and_comments(de,K),this.handle_token(de,K),de=L.comments_before.next();if(fe)for(var Ce=0;Ce<te;Ce+=1)this.print_newline(Ce>0,K);else if(this._options.max_preserve_newlines&&te>this._options.max_preserve_newlines&&(te=this._options.max_preserve_newlines),this._options.preserve_newlines&&te>1){this.print_newline(!1,K);for(var Oe=1;Oe<te;Oe+=1)this.print_newline(!0,K)}};var F=["async","break","continue","return","throw","yield"];W.prototype.allow_wrap_or_preserved_newline=function(L,K){if(K=K===void 0?!1:K,this._output.just_added_newline())return;var te=this._options.preserve_newlines&&L.newlines||K,fe=u(this._flags.last_token.text,d)||u(L.text,d);if(fe){var de=u(this._flags.last_token.text,d)&&u(this._options.operator_position,v)||u(L.text,d);te=te&&de}if(te)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(L,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 te=this._tokens.peek();this._flags.mode===O.Statement&&!(this._flags.if_block&&_(te,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(L)&&(this._flags.multiline_frame=!0)},W.prototype.print_token_line_indentation=function(L){this._output.just_added_newline()&&(this._options.keep_array_indentation&&L.newlines&&(L.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(L.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(L){if(this._output.raw){this._output.add_raw_token(L);return}if(this._options.comma_first&&L.previous&&L.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(L),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(L),this._output.non_breaking_space=!0,this._output.add_token(L.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(L){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,L),this._flags=this.create_flags(this._previous_flags,L),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===O.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===O.ObjectLiteral&&this._flags.mode===O.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},W.prototype.start_of_statement=function(L){var K=!1;return K=K||P(this._flags.last_token,["var","let","const"])&&L.type===s.WORD,K=K||_(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===O.ObjectLiteral&&this._flags.mode===O.Statement)&&P(this._flags.last_token,F)&&!L.newlines,K=K||_(this._flags.last_token,"else")&&!(_(L,"if")&&!L.comments_before),K=K||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===O.ForInitializer||this._previous_flags.mode===O.Conditional),K=K||this._flags.last_token.type===s.WORD&&this._flags.mode===O.BlockStatement&&!this._flags.in_case&&!(L.text==="--"||L.text==="++")&&this._last_last_text!=="function"&&L.type!==s.WORD&&L.type!==s.RESERVED,K=K||this._flags.mode===O.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),K?(this.set_mode(O.Statement),this.indent(),this.handle_whitespace_and_comments(L,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(L,P(L,["do","for","if","while"])),!0):!1},W.prototype.handle_start_expr=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L);var K=O.Expression;if(L.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(L),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=O.ArrayLiteral,N(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),u(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=O.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=O.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&L.whitespace_before===""?this._output.space_before_token=!1:(u(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(L);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var te=this._tokens.peek(-3);if(this._options.space_after_named_function&&te){var fe=this._tokens.peek(-4);P(te,["async","function"])||te.text==="*"&&P(fe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===O.ObjectLiteral?(te.text==="{"||te.text===","||te.text==="*"&&(fe.text==="{"||fe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(L);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===O.ObjectLiteral&&u(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(L,L.newlines),this.print_token(L),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},W.prototype.handle_end_expr=function(L){for(;this._flags.mode===O.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(L,L.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(L),this.restore_mode(),U(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===O.Conditional&&(this._previous_flags.mode=O.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},W.prototype.handle_start_block=function(L){this.handle_whitespace_and_comments(L);var K=this._tokens.peek(),te=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(O.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(O.BlockStatement):te&&(u(te.text,[":",","])&&u(K.type,[s.STRING,s.WORD,s.RESERVED])||u(K.text,["get","set","..."])&&u(te.type,[s.WORD,s.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(te.text,[":",","])?this.set_mode(O.BlockStatement):this.set_mode(O.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(O.BlockStatement):u(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(O.ObjectLiteral):this.set_mode(O.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var fe=!K.comments_before&&K.text==="}",de=fe&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Ce=0,Oe=null;this._flags.inline_frame=!0;do if(Ce+=1,Oe=this._tokens.peek(Ce-1),Oe.newlines){this._flags.inline_frame=!1;break}while(Oe.type!==s.EOF&&!(Oe.type===s.END_BLOCK&&Oe.opened===L))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&L.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(L),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(L),this.indent(),!fe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},W.prototype.handle_end_block=function(L){for(this.handle_whitespace_and_comments(L);this._flags.mode===O.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(L)},W.prototype.handle_word=function(L){if(L.type===s.RESERVED){if(u(L.text,["set","get"])&&this._flags.mode!==O.ObjectLiteral)L.type=s.WORD;else if(L.text==="import"&&u(this._tokens.peek().text,["(","."]))L.type=s.WORD;else if(u(L.text,["as","from"])&&!this._flags.import_block)L.type=s.WORD;else if(this._flags.mode===O.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(L.type=s.WORD)}}if(this.start_of_statement(L)?P(this._flags.last_token,["var","let","const"])&&L.type===s.WORD&&(this._flags.declaration_statement=!0):L.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(L),this.print_newline()):this.handle_whitespace_and_comments(L),this._flags.do_block&&!this._flags.do_while)if(_(L,"while")){this._output.space_before_token=!0,this.print_token(L),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&&_(L,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===O.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(L,["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(L),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(L)),_(L,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!L.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(L),this._flags.last_word=L.text;return}var te="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?te="SPACE":P(L,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&L.newlines?te="NEWLINE":(te="SPACE",this._output.space_before_token=!0):te="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===O.BlockStatement?te="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&V(this._flags.mode)?te="SPACE":this._flags.last_token.type===s.STRING?te="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===O.ObjectLiteral&&u(this._last_last_text,["{",","]))?te="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?te="SPACE":te="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,te="NEWLINE"),P(L,h)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?te="SPACE":te="NEWLINE"),P(L,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===O.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&L.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var fe=this._output.current_line;fe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else te==="NEWLINE"?P(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(L,["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(L,["var","let","const"]))&&this._flags.last_token.text!==":"&&(_(L,"if")&&_(L.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(L,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():te==="SPACE"&&(this._output.space_before_token=!0);L.previous&&(L.previous.type===s.WORD||L.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(L),this._flags.last_word=L.text,L.type===s.RESERVED&&(L.text==="do"?this._flags.do_block=!0:L.text==="if"?this._flags.if_block=!0:L.text==="import"?this._flags.import_block=!0:this._flags.import_block&&_(L,"from")&&(this._flags.import_block=!1))},W.prototype.handle_semicolon=function(L){this.start_of_statement(L)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(L);for(var K=this._tokens.peek();this._flags.mode===O.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(L)},W.prototype.handle_string=function(L){L.text.startsWith("`")&&L.newlines===0&&L.whitespace_before===""&&(L.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(L)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(L),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(L):L.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(L.previous.text==="]"||L.previous.text===")")&&L.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(L)},W.prototype.handle_equals=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(L),this._output.space_before_token=!0},W.prototype.handle_comma=function(L){this.handle_whitespace_and_comments(L,!0),this.print_token(L),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(L)):this._flags.mode===O.ObjectLiteral||this._flags.mode===O.Statement&&this._flags.parent.mode===O.ObjectLiteral?(this._flags.mode===O.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(L)},W.prototype.handle_operator=function(L){var K=L.text==="*"&&(P(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),te=u(L.text,["-","+"])&&(u(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||u(this._flags.last_token.text,h)||this._flags.last_token.text===",");if(!this.start_of_statement(L)){var fe=!K;this.handle_whitespace_and_comments(L,fe)}if(L.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(L);return}if(L.text==="::"){this.print_token(L);return}if(this._flags.last_token.type===s.OPERATOR&&u(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(L),L.text===":"&&this._flags.in_case){this.print_token(L),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,Ce=!0,Oe=!1;if(L.text===":"?this._flags.ternary_depth===0?de=!1:(this._flags.ternary_depth-=1,Oe=!0):L.text==="?"&&(this._flags.ternary_depth+=1),!te&&!K&&this._options.preserve_newlines&&u(L.text,d)){var ce=L.text===":",Ee=ce&&Oe,ye=ce&&!Oe;switch(this._options.operator_position){case w.before_newline:this._output.space_before_token=!ye,this.print_token(L),(!ce||Ee)&&this.allow_wrap_or_preserved_newline(L),this._output.space_before_token=!0;return;case w.after_newline:this._output.space_before_token=!0,!ce||Ee?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(L):this._output.space_before_token=!1,this.print_token(L),this._output.space_before_token=!0;return;case w.preserve_newline:ye||this.allow_wrap_or_preserved_newline(L),de=!(this._output.just_added_newline()||ye),this._output.space_before_token=de,this.print_token(L),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(L),de=!1;var ue=this._tokens.peek();Ce=ue&&u(ue.type,[s.WORD,s.RESERVED])}else if(L.text==="...")this.allow_wrap_or_preserved_newline(L),de=this._flags.last_token.type===s.START_BLOCK,Ce=!1;else if(u(L.text,["--","++","!","~"])||te){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(L),de=!1,Ce=!1,L.newlines&&(L.text==="--"||L.text==="++"||L.text==="~")){var le=P(this._flags.last_token,R)&&L.newlines;le&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(le,!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==="]"&&(L.text==="--"||L.text==="++")):this._flags.last_token.type===s.OPERATOR&&(de=u(L.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(L.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(Ce=!0)),(this._flags.mode===O.BlockStatement&&!this._flags.inline_frame||this._flags.mode===O.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||de,this.print_token(L),this._output.space_before_token=Ce},W.prototype.handle_block_comment=function(L,K){if(this._output.raw){this._output.add_raw_token(L),L.directives&&L.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(L.directives){this.print_newline(!1,K),this.print_token(L),L.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(L.text)&&!L.newlines){this._output.space_before_token=!0,this.print_token(L),this._output.space_before_token=!0;return}else this.print_block_commment(L,K)},W.prototype.print_block_commment=function(L,K){var te=I(L.text),fe,de=!1,Ce=!1,Oe=L.whitespace_before,ce=Oe.length;if(this.print_newline(!1,K),this.print_token_line_indentation(L),this._output.add_token(te[0]),this.print_newline(!1,K),te.length>1){for(te=te.slice(1),de=H(te,"*"),Ce=D(te,Oe),de&&(this._flags.alignment=1),fe=0;fe<te.length;fe++)de?(this.print_token_line_indentation(L),this._output.add_token(S(te[fe]))):Ce&&te[fe]?(this.print_token_line_indentation(L),this._output.add_token(te[fe].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(te[fe])),this.print_newline(!1,K);this._flags.alignment=0}},W.prototype.handle_comment=function(L,K){L.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(L),this.print_newline(!1,K)},W.prototype.handle_dot=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L,!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(L,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(L)},W.prototype.handle_unknown=function(L,K){this.print_token(L),L.text[L.text.length-1]===`
|
|
|
`&&this.print_newline(!1,K)},W.prototype.handle_eof=function(L){for(;this._flags.mode===O.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L)},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 r(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}r.prototype.get_indent_size=function(n,i){var a=this.__base_string_length;return i=i||0,n<0&&(a=0),a+=n*this.__indent_size,a+=i,a},r.prototype.get_indent_string=function(n,i){var a=this.__base_string;return i=i||0,n<0&&(n=0,a=""),i+=n*this.__indent_size,this.__ensure_cache(i),a+=this.__cache[i],a},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,i=0,a="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,a=new Array(i+1).join(this.__indent_string)),n&&(a+=new Array(n+1).join(" ")),this.__cache.push(a)};function l(n,i){this.__indent_cache=new r(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()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},l.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.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 a=this.__lines.join(`
|
|
|
`);return n!==`
|
|
|
`&&(a=a.replace(/[\n]/g,n)),a},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.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)},l.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},l.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()},l.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(" "))},l.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()},l.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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(n,i){for(var a=this.__lines.length-2;a>=0;){var c=this.__lines[a];if(c.is_empty())break;if(c.item(0).indexOf(n)!==0&&c.item(-1)!==i){this.__lines.splice(a+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}},e.exports.Output=l},function(e){function f(r,l,n,i){this.type=r,this.text=l,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 r="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",l="\\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",a="(?:\\\\u[0-9a-fA-F]{4}|["+r+n+"])",c="(?:\\\\u[0-9a-fA-F]{4}|["+l+n+i+"])*";f.identifier=new RegExp(a+c,"g"),f.identifierStart=new RegExp(a),f.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+l+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,r){var l=r(6).Options,n=["before-newline","after-newline","preserve-newline"];function i(a){l.call(this,a,"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 l,e.exports.Options=i},function(e){function f(n,i){this.raw_options=r(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 a=this.raw_options[n],c=i||[];return typeof a=="object"?a!==null&&typeof a.concat=="function"&&(c=a.concat()):typeof a=="string"&&(c=a.split(/[^a-zA-Z0-9_\/\-]+/)),c},f.prototype._get_boolean=function(n,i){var a=this.raw_options[n],c=a===void 0?!!i:!!a;return c},f.prototype._get_characters=function(n,i){var a=this.raw_options[n],c=i||"";return typeof a=="string"&&(c=a.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),c},f.prototype._get_number=function(n,i){var a=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var c=parseInt(a,10);return isNaN(c)&&(c=i),c},f.prototype._get_selection=function(n,i,a){var c=this._get_selection_list(n,i,a);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,a){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(a=a||[i[0]],!this._is_valid_selection(a,i))throw new Error("Invalid Default Value!");var c=this._get_array(n,a);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(a){return i.indexOf(a)===-1})};function r(n,i){var a={};n=l(n);var c;for(c in n)c!==i&&(a[c]=n[c]);if(i&&n[i])for(c in n[i])a[c]=n[i][c];return a}function l(n){var i={},a;for(a in n){var c=a.replace(/-/g,"_");i[c]=n[a]}return i}e.exports.Options=f,e.exports.normalizeOpts=l,e.exports.mergeOpts=r},function(e,f,r){var l=r(8).InputScanner,n=r(9).Tokenizer,i=r(9).TOKEN,a=r(13).Directives,c=r(4),h=r(12).Pattern,d=r(14).TemplatablePattern;function s(H,D){return D.indexOf(H)!==-1}var u={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},S=new a(/\/\*/,/\*\//),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 w=new RegExp(x),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),O=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),U=new RegExp("^(?:"+O.join("|")+")$"),I,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(w),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===u.COMMENT||H.type===u.BLOCK_COMMENT||H.type===u.UNKNOWN},N.prototype._is_opening=function(H){return H.type===u.START_BLOCK||H.type===u.START_EXPR},N.prototype._is_closing=function(H,D){return(H.type===u.END_BLOCK||H.type===u.END_EXPR)&&D&&(H.text==="]"&&D.text==="["||H.text===")"&&D.text==="("||H.text==="}"&&D.text==="{")},N.prototype._reset=function(){I=!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(u.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(u.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===u.DOT||H.type===u.RESERVED&&(H.text==="set"||H.text==="get"))&&U.test(D)?(D==="in"||D==="of")&&(H.type===u.WORD||H.type===u.STRING)?this._create_token(u.OPERATOR,D):this._create_token(u.RESERVED,D):this._create_token(u.WORD,D);if(D=this.__patterns.number.read(),D!=="")return this._create_token(u.WORD,D)},N.prototype._read_singles=function(H){var D=null;return H==="("||H==="["?D=this._create_token(u.START_EXPR,H):H===")"||H==="]"?D=this._create_token(u.END_EXPR,H):H==="{"?D=this._create_token(u.START_BLOCK,H):H==="}"?D=this._create_token(u.END_BLOCK,H):H===";"?D=this._create_token(u.SEMICOLON,H):H==="."&&P.test(this._input.peek(1))?D=this._create_token(u.DOT,H):H===","&&(D=this._create_token(u.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(u.EQUALS,H):H==="?."?this._create_token(u.DOT,H):this._create_token(u.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(u.UNKNOWN,D.trim()+`
|
|
|
`);if(D=this.__patterns.include.read(),D)return this._create_token(u.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(u.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 I=!0,this._create_token(u.COMMENT,D)}}else if(I&&H==="-"&&(D=this.__patterns.html_comment_end.read(),D))return I=!1,this._create_token(u.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=S.get_directives(W);F&&F.ignore==="start"&&(W+=S.readIgnored(this._input)),W=W.replace(c.allLineBreaks,`
|
|
|
`),D=this._create_token(u.BLOCK_COMMENT,W),D.directives=F}else this._input.peek(1)==="/"&&(W=this.__patterns.comment.read(),D=this._create_token(u.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(u.STRING,D)}return null},N.prototype._allow_regexp_or_xml=function(H){return H.type===u.RESERVED&&s(H.text,["return","case","throw","else","do","typeof","yield"])||H.type===u.END_EXPR&&H.text===")"&&H.opened.previous.type===u.RESERVED&&s(H.opened.previous.text,["if","while","for"])||s(H.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},N.prototype._read_regexp=function(H,D){if(H==="/"&&this._allow_regexp_or_xml(D)){for(var W=this._input.next(),F=!1,L=!1;this._input.hasNext()&&(F||L||this._input.peek()!==H)&&!this._input.testChar(c.newline);)W+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?L=!0:this._input.peek()==="]"&&(L=!1)),this._input.next();return this._input.peek()===H&&(W+=this._input.next(),W+=this._input.read(c.identifier)),this._create_token(u.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 L=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=L.indexOf("{")===0,te=0;F;){var fe=!!F[1],de=F[2],Ce=!!F[F.length-1]||de.slice(0,8)==="![CDATA[";if(!Ce&&(de===L||K&&de.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(fe?--te:++te),W+=F[0],te<=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(u.STRING,W)}}return null};function V(H){for(var D="",W=0,F=new l(H),L=null;F.hasNext();)if(L=F.match(/([\s]|[^\\]|\\\\)+/g),L&&(D+=L[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")L=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")L=F.match(/u([0-9A-Fa-f]{4})/g);else{D+="\\",F.hasNext()&&(D+=F.next());continue}if(!L)return H;if(W=parseInt(L[1],16),W>126&&W<=255&&L[0].indexOf("x")===0)return H;if(W>=0&&W<32){D+="\\"+L[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,L;H==="'"?L=this.__patterns.single_quote:H==='"'?L=this.__patterns.double_quote:H==="`"?L=this.__patterns.template_text:H==="}"&&(L=this.__patterns.template_expression);for(var K=L.read(),te="";this._input.hasNext();){if(te=this._input.next(),te===H||!D&&c.newline.test(te)){this._input.back();break}else te==="\\"&&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(),te+=this._input.next()):W&&(W==="${"&&te==="$"&&this._input.peek()==="{"&&(te+=this._input.next()),W===te&&(H==="`"?te+=this._read_string_recursive("}",D,"`"):te+=this._read_string_recursive("`",D,"${"),this._input.hasNext()&&(te+=this._input.next())));te+=L.read(),K+=te}return K},e.exports.Tokenizer=N,e.exports.TOKEN=u,e.exports.positionable_operators=R.slice(),e.exports.line_starters=v.slice()},function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function r(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},r.prototype.peek=function(l){var n=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(n=this.__input.charAt(l)),n},r.prototype.__match=function(l,n){l.lastIndex=n;var i=l.exec(this.__input);return i&&!(f&&l.sticky)&&(i.index!==n&&(i=null)),i},r.prototype.test=function(l,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(l,n):!1},r.prototype.testChar=function(l,n){var i=this.peek(n);return l.lastIndex=0,i!==null&&l.test(i)},r.prototype.match=function(l){var n=this.__match(l,this.__position);return n?this.__position+=n[0].length:n=null,n},r.prototype.read=function(l,n,i){var a="",c;return l&&(c=this.match(l),c&&(a+=c[0])),n&&(c||!l)&&(a+=this.readUntil(n,i)),a},r.prototype.readUntil=function(l,n){var i="",a=this.__position;l.lastIndex=this.__position;var c=l.exec(this.__input);return c?(a=c.index,n&&(a+=c[0].length)):a=this.__input_length,i=this.__input.substring(this.__position,a),this.__position=a,i},r.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},r.prototype.get_regexp=function(l,n){var i=null,a="g";return n&&f&&(a="y"),typeof l=="string"&&l!==""?i=new RegExp(l,a):l&&(i=new RegExp(l.source,a)),i},r.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(l){var n=this.__position,i=this.readUntilAfter(l);return this.__position=n,i},r.prototype.lookBack=function(l){var n=this.__position-1;return n>=l.length&&this.__input.substring(n-l.length,n).toLowerCase()===l},e.exports.InputScanner=r},function(e,f,r){var l=r(8).InputScanner,n=r(3).Token,i=r(10).TokenStream,a=r(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(d,s){this._input=new l(d),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};h.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var d,s=new n(c.START,""),u=null,S=[],E=new i;s.type!==c.EOF;){for(d=this._get_next_token(s,u);this._is_comment(d);)E.add(d),d=this._get_next_token(s,u);E.isEmpty()||(d.comments_before=E,E=new i),d.parent=u,this._is_opening(d)?(S.push(u),u=d):u&&this._is_closing(d,u)&&(d.opened=u,u.closed=d,u=S.pop(),d.parent=u),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 u=this._input.read(/.+/g);return u?this._create_token(c.RAW,u):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 u=new n(d,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=h,e.exports.TOKEN=c},function(e){function f(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}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 r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},f.prototype.peek=function(r){var l=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(l=this.__tokens[r]),l},f.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},e.exports.TokenStream=f},function(e,f,r){var l=r(12).Pattern;function n(i,a){l.call(this,i,a),a?this._line_regexp=this._input.get_regexp(a._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new l,n.prototype.__set_whitespace_patterns=function(i,a){i+="\\t ",a+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+a+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+a+"]")},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 a=this.__split(this._newline_regexp,i);this.newline_count=a.length-1,this.whitespace_before_token=a[this.newline_count]}return i},n.prototype.matching=function(i,a){var c=this._create();return c.__set_whitespace_patterns(i,a),c._update(),c},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(i,a){i.lastIndex=0;for(var c=0,h=[],d=i.exec(a);d;)h.push(a.substring(c,d.index)),c=d.index+d[0].length,d=i.exec(a);return c<a.length?h.push(a.substring(c,a.length)):h.push(""),h},e.exports.WhitespacePattern=n},function(e){function f(r,l){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}f.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},f.prototype.read_match=function(){return this._input.match(this._match_pattern)},f.prototype.until_after=function(r){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(r),l._update(),l},f.prototype.until=function(r){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(r),l._update(),l},f.prototype.starting_with=function(r){var l=this._create();return l._starting_pattern=this._input.get_regexp(r,!0),l._update(),l},f.prototype.matching=function(r){var l=this._create();return l._match_pattern=this._input.get_regexp(r,!0),l._update(),l},f.prototype._create=function(){return new f(this._input,this)},f.prototype._update=function(){},e.exports.Pattern=f},function(e){function f(r,l){r=typeof r=="string"?r:r.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+l,"g")}f.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(r);n;)l[n[1]]=n[2],n=this.__directive_pattern.exec(r);return l},f.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},function(e,f,r){var l=r(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(a,c){l.call(this,a,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 l(a);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 l,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(a){var c=this._create();return c._disabled[a]=!0,c._update(),c},i.prototype.read_options=function(a){var c=this._create();for(var h in n)c._disabled[h]=a.templating.indexOf(h)===-1;return c._update(),c},i.prototype.exclude=function(a){var c=this._create();return c._excluded[a]=!0,c._update(),c},i.prototype.read=function(){var a="";this._match_pattern?a=this._input.read(this._starting_pattern):a=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),a+=c,c=this._read_template();return this._until_after&&(a+=this._input.readUntilAfter(this._until_pattern)),a},i.prototype.__set_templated_pattern=function(){var a=[];this._disabled.php||a.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||a.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||a.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(a.push(this.__patterns.django._starting_pattern.source),a.push(this.__patterns.django_value._starting_pattern.source),a.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||a.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&a.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+a.join("|")+")")},i.prototype._read_template=function(){var a="",c=this._input.peek();if(c==="<"){var h=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&h==="?"&&(a=a||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&h==="%"&&(a=a||this.__patterns.erb.read())}else c==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(a=a||this.__patterns.handlebars_comment.read(),a=a||this.__patterns.handlebars_unescaped.read(),a=a||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(a=a||this.__patterns.django_value.read()),this._excluded.django||(a=a||this.__patterns.django_comment.read(),a=a||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(a=a||this.__patterns.smarty_comment.read(),a=a||this.__patterns.smarty_literal.read(),a=a||this.__patterns.smarty.read()));return a},e.exports.TemplatablePattern=i}],C={};function A(e){var f=C[e];if(f!==void 0)return f.exports;var r=C[e]={exports:{}};return y[e](r,r.exports,A),r.exports}var g=A(0);T=g})();var b=T;!(M=[],m=function(){return{js_beautify:b}}.apply(z,M),m!==void 0&&(k.exports=m))})()},"6eGT":function(k,z,o){"use strict";function M(m){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 m}),o.d(z,"k",function(){return T}),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 A}),o.d(z,"n",function(){return g}),o.d(z,"c",function(){return e}),o.d(z,"a",function(){return f}),o.d(z,"i",function(){return r}),o.d(z,"o",function(){return l}),o.d(z,"e",function(){return a}),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 m(s){return typeof s=="string"}function T(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 A(s){return!g(s)}function g(s){return C(s)||s===null}function e(s,u){if(!s)throw new Error(u?`Unexpected type, expected '${u}'`:"Unexpected type")}function f(s){if(g(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function r(s){return typeof s=="function"}function l(s,u){const S=Math.min(s.length,u.length);for(let E=0;E<S;E++)n(s[E],u[E])}function n(s,u){if(m(u)){if(typeof s!==u)throw new Error(`argument does not match constraint: typeof ${u}`)}else if(r(u)){try{if(s instanceof u)return}catch(S){}if(!g(s)&&s.constructor===u)return;if(u.length===1&&u.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 u=[],S=Object.getPrototypeOf(s);for(;Object.prototype!==S;)u=u.concat(Object.getOwnPropertyNames(S)),S=Object.getPrototypeOf(S);return u}function a(s){const u=[];for(const S of i(s))typeof s[S]=="function"&&u.push(S);return u}function c(s,u){const S=_=>function(){const P=Array.prototype.slice.call(arguments,0);return u(_,P)};let E={};for(const _ of s)E[_]=S(_);return E}function h(s){return s===null?void 0:s}function d(s,u="Unreachable"){throw new Error(u)}},"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),m=new Uint8Array(16);function T(){if(!M)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(m)}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,A=[],g=0;g<256;++g)A.push((g+256).toString(16).substr(1));function e(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(A[n[i+0]]+A[n[i+1]]+A[n[i+2]]+A[n[i+3]]+"-"+A[n[i+4]]+A[n[i+5]]+"-"+A[n[i+6]]+A[n[i+7]]+"-"+A[n[i+8]]+A[n[i+9]]+"-"+A[n[i+10]]+A[n[i+11]]+A[n[i+12]]+A[n[i+13]]+A[n[i+14]]+A[n[i+15]]).toLowerCase();if(!C(a))throw TypeError("Stringified UUID is invalid");return a}var f=e;function r(n,i,a){n=n||{};var c=n.random||(n.rng||T)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,i){a=a||0;for(var h=0;h<16;++h)i[a+h]=c[h];return i}return f(c)}var l=z.a=r},"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 S});var M=o("k1fw"),m=o("0Owb"),T=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),C=o("Vl3Y"),A=o("tJVT"),g=o("OaEy"),e=o("2fM7"),f=o("q1tI"),r=o.n(f),l=o("VrN/"),n=o.n(l),i=o("p77/"),a=o.n(i),c=o("c5Ni"),h=o.n(c),d=e.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},u={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(A.a)(R,2),w=x[0],v=x[1];function O(I){v(u[I][1])}function U(I){_(I)}return r.a.createElement(C.a,Object(m.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:U}),r.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(e.a,{onChange:O},Object.keys(u).map(function(I){return r.a.createElement(d,{key:I,value:I},u[I][0])}))),r.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(S,{mode:w})),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(b.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function S(E){var _=E.value,P=E.onChange,R=E.mode,x=E.options,w=x===void 0?{}:x,v=Object(f.useRef)(),O=Object(f.useState)(),U=Object(A.a)(O,2),I=U[0],N=U[1];return Object(f.useEffect)(function(){if(I){function V(H){var D=H.getValue();P&&P(D)}return I.on("change",V),function(){I.off("change",V)}}},[I,P]),Object(f.useEffect)(function(){I&&I.setOption("mode",R)},[I,R]),Object(f.useEffect)(function(){I&&((_!==I.getValue()||_==="")&&setTimeout(function(){I.setValue(_||" ")},300))},[I,_]),Object(f.useEffect)(function(){if(v.current&&!I){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},w));N(V)}},[v.current,I]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:v}))}},"7ixt":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var M={adjustX:1,adjustY:1},m=[0,0],T={left:{points:["cr","cl"],overflow:M,offset:[-4,0],targetOffset:m},right:{points:["cl","cr"],overflow:M,offset:[4,0],targetOffset:m},top:{points:["bc","tc"],overflow:M,offset:[0,-4],targetOffset:m},bottom:{points:["tc","bc"],overflow:M,offset:[0,4],targetOffset:m},topLeft:{points:["bl","tl"],overflow:M,offset:[0,-4],targetOffset:m},leftTop:{points:["tr","tl"],overflow:M,offset:[-4,0],targetOffset:m},topRight:{points:["br","tr"],overflow:M,offset:[0,-4],targetOffset:m},rightTop:{points:["tl","tr"],overflow:M,offset:[4,0],targetOffset:m},bottomRight:{points:["tr","br"],overflow:M,offset:[0,4],targetOffset:m},rightBottom:{points:["bl","br"],overflow:M,offset:[4,0],targetOffset:m},bottomLeft:{points:["tl","bl"],overflow:M,offset:[0,4],targetOffset:m},leftBottom:{points:["br","bl"],overflow:M,offset:[-4,0],targetOffset:m}},b=T},"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 A}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return l}),o.d(z,"f",function(){return n}),o.d(z,"b",function(){return i});var M=o("KQm4"),m=o("VTBJ"),T=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),C=o("OZM5");function A(a,c){return a!=null?a:c}function g(){var a=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(u){var S=u.key,E=u.children;Object(y.a)(S!=null,"Tree node must have a certain key: [".concat(s).concat(S,"]"));var _=String(S);Object(y.a)(!c.has(_)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(_)),c.set(_,!0),h(E,"".concat(s).concat(_," > "))})}h(a)}function e(a){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 u=s.key,S=s.props,E=S.children,_=Object(T.a)(S,["children"]),P=Object(m.a)({key:u},_),R=c(E);return R.length&&(P.children=R),P}).filter(function(s){return s})}return c(a)}function f(){var a=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(u){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(E,_){var P=Object(C.h)(S?S.pos:"0",_),R=A(E.key,P),x=Object(m.a)(Object(m.a)({},E),{},{parent:S,pos:P,children:null,data:E,isStart:[].concat(Object(M.a)(S?S.isStart:[]),[_===0]),isEnd:[].concat(Object(M.a)(S?S.isEnd:[]),[_===u.length-1])});return d.push(x),c===!0||h.has(R)?x.children=s(E.children||[],x):x.children=[],x})}return s(a),d}function r(a,c,h){var d;h?typeof h=="string"?d=function(S){return S[h]}:typeof h=="function"&&(d=function(S){return h(S)}):d=function(S,E){return A(S.key,E)};function s(u,S,E){var _=u?u.children:a,P=u?Object(C.h)(E.pos,S):"0";if(u){var R=d(u,P),x={node:u,index:S,pos:P,key:R,parentPos:E.node?E.pos:null,level:E.level+1};c(x)}_&&_.forEach(function(w,v){s(w,v,{node:u,pos:P,level:E?E.level+1:-1})})}s(null)}function l(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=c.initWrapper,d=c.processEntity,s=c.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,S={},E={},_={posEntities:S,keyEntities:E};return h&&(_=h(_)||_),r(a,function(P){var R=P.node,x=P.index,w=P.pos,v=P.key,O=P.parentPos,U=P.level,I={node:R,index:x,key:v,pos:w,level:U},N=A(v,w);S[w]=I,E[N]=I,I.parent=S[O],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),d&&d(I,_)},u),s&&s(_),_}function n(a,c){var h=c.expandedKeys,d=c.selectedKeys,s=c.loadedKeys,u=c.loadingKeys,S=c.checkedKeys,E=c.halfCheckedKeys,_=c.dragOverNodeKey,P=c.dropPosition,R=c.keyEntities,x=R[a],w={eventKey:a,expanded:h.indexOf(a)!==-1,selected:d.indexOf(a)!==-1,loaded:s.indexOf(a)!==-1,loading:u.indexOf(a)!==-1,checked:S.indexOf(a)!==-1,halfChecked:E.indexOf(a)!==-1,pos:String(x?x.pos:""),dragOver:_===a&&P===0,dragOverGapTop:_===a&&P===-1,dragOverGapBottom:_===a&&P===1};return w}function i(a){var c=a.data,h=a.expanded,d=a.selected,s=a.checked,u=a.loaded,S=a.loading,E=a.halfChecked,_=a.dragOver,P=a.dragOverGapTop,R=a.dragOverGapBottom,x=a.pos,w=a.active,v=Object(m.a)(Object(m.a)({},c),{},{expanded:h,selected:d,checked:s,loaded:u,loading:S,halfChecked:E,dragOver:_,dragOverGapTop:P,dragOverGapBottom:R,pos:x,active:w});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`."),a}}),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 m=0;m<M.modeInfo.length;m++){var T=M.modeInfo[m];T.mimes&&(T.mime=T.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 A=0;A<C.mimes.length;A++)if(C.mimes[A]==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 A=0;A<C.ext.length;A++)if(C.ext[A]==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 A=b.lastIndexOf("."),g=A>-1&&b.substring(A+1,b.length);if(g)return M.findModeByExtension(g)},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 A=0;A<C.alias.length;A++)if(C.alias[A].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 A}),o.d(z,"e",function(){return g}),o.d(z,"c",function(){return e});var M=o("MI8n"),m=o("pmY6"),T=o("3/fG"),b=function(f,r,l,n){function i(a){return a instanceof l?a:new l(function(c){c(a)})}return new(l||(l=Promise))(function(a,c){function h(u){try{s(n.next(u))}catch(S){c(S)}}function d(u){try{s(n.throw(u))}catch(S){c(S)}}function s(u){u.done?a(u.value):i(u.value).then(h,d)}s((n=n.apply(f,r||[])).next())})};class y extends m.a{constructor(f,r="",l="",n=!0,i){super();this._onDidChange=this._register(new M.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=f,this._label=r,this._cssClass=l,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,r){return b(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(f))})}}class C extends m.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,r){return b(this,void 0,void 0,function*(){if(!f.enabled)return;this._onBeforeRun.fire({action:f});let l;try{yield this.runAction(f,r)}catch(n){l=n}this._onDidRun.fire({action:f,error:l})})}runAction(f,r){return b(this,void 0,void 0,function*(){yield f.run(r)})}}class A extends y{constructor(f){super(A.ID,f,f?"separator text":"separator");this.checked=!1,this.enabled=!1}}A.ID="vs.actions.separator";class g{constructor(f,r,l,n){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=f,this.label=r,this.class=n,this._actions=l}get actions(){return this._actions}dispose(){}run(){return b(this,void 0,void 0,function*(){})}}class e extends y{constructor(){super(e.ID,T.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"),m=o("kLXV"),T=o("5NDa"),b=o("5rEg"),y=o("miYZ"),C=o("tsqr"),A=o("k1fw"),g=o("9og8"),e=o("y8nQ"),f=o("Vl3Y"),r=o("tJVT"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),a=o.n(i),c=o("Ty5D"),h=o("9kvl"),d=o("KVXO"),s=o.n(d),u=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,w=E.title,v=E.pathList,O=v===void 0?[]:v,U=E.showInputPath,I=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(r.a)(W,1),L=F[0],K=Object(c.i)(),te=Object(c.h)(),fe=Object(i.useRef)(),de=Object(i.useState)(""),Ce=Object(r.a)(de,2),Oe=Ce[0],ce=Ce[1],Ee=Object(i.useState)(""),ye=Object(r.a)(Ee,2),ue=ye[0],le=ye[1],$=Object(i.useState)([]),me=Object(r.a)($,2),re=me[0],ae=me[1],Se=Object(i.useState)([]),oe=Object(r.a)(Se,2),ee=oe[0],J=oe[1];Object(i.useEffect)(function(){var qe,ut;fe.current=((qe=te.pathname)===null||qe===void 0||((ut=qe.split("/"))===null||ut===void 0)?void 0:ut[3])==="repository"},[]),Object(i.useEffect)(function(){if(_.actionTabs.key!=="Repository-SelectFilePath")return;var qe=O.join("/"),ut=[];O.map(function(st,ft){ft===0?ut.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(st),path:qe}):ut.push({val:"/".concat(st),path:qe})}),ae(ut),ce(qe),le(qe),Q(qe)},[_.actionTabs.key]);var Q=function(){var qe=Object(g.a)(n.a.mark(function ut(st){var ft;return n.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,x({type:fe.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:K.id,path:st}});case 2:ft=Ve.sent,ft&&J(ft.trees||[]);case 4:case"end":return Ve.stop()}},ut)}));return function(st){return qe.apply(this,arguments)}}(),ve=function(ut){var st=Oe;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),st=Oe?"".concat(Oe,"/").concat(ut.name):ut.name,ce(st)),Q(st)},_e=function(ut,st){var ft=re.filter(function(Ve,ke){return ke<=st});ae(ft);var gt=ft.filter(function(Ve,ke){return ke!==0}).map(function(Ve){return Ve.val}).join("").substr(1);ce(gt),Q(gt)},Te=function(){var qe=Object(g.a)(n.a.mark(function ut(){var st,ft,gt;return n.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(st=L==null?void 0:L.getFieldsValue(),ft=Oe?"".concat(Oe).concat(st!=null&&st.name?"/".concat(st==null?void 0:st.name):""):st==null?void 0:st.name,!V){ke.next=6;break}return D(ft),Ge(),ke.abrupt("return");case 6:if(!I){ke.next=16;break}return ke.next=9,L.validateFields();case 9:return ke.next=11,x({type:"shixunsDetail/uploadGitFolder",payload:Object(A.a)(Object(A.a)({},{id:K.id,path:ft}),fe.current?{}:{secret_repository:!0})});case 11:gt=ke.sent,D(ue),gt.status===0&&C.b.info("\u65B0\u5EFA\u6210\u529F"),ke.next=18;break;case 16:D(ft),C.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Ge();case 19:case"end":return ke.stop()}},ut)}));return function(){return qe.apply(this,arguments)}}(),Ge=function(){x({type:"shixunsDetail/setActionTabs",payload:{}}),L.resetFields()};return a.a.createElement(m.a,{centered:!0,title:w||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:_.actionTabs.key==="Repository-SelectFilePath",onOk:Te,onCancel:Ge},a.a.createElement("div",{className:s.a.wrap},a.a.createElement("div",{className:s.a.content},a.a.createElement("div",{className:s.a.mainPathWrap},!!(re!=null&&re.length)&&re.map(function(qe,ut){return a.a.createElement("a",{key:ut,onClick:function(){return _e(qe,ut)}},qe.val)})),!!(ee!=null&&ee.length)&&ee.map(function(qe,ut){return qe.type==="tree"&&a.a.createElement("a",{key:ut,onClick:function(){return ve(qe)}},a.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(s.a.colorBlue)}),qe.name)})),a.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),a.a.createElement("div",{className:"mt5 mb5"},Oe),I&&a.a.createElement(f.a,{form:L,scrollToFirstError:!0,className:"mt20"},a.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"}]},a.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(S){var E=S.shixunsDetail,_=S.loading,P=S.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_.models.index}})(u)},"8mKB":function(k,z,o){"use strict";var M=o("rePB"),m=o("1OyB"),T=o("vuIU"),b=o("Ji7U"),y=o("md7G"),C=o("foSv"),A=o("q1tI"),g=o.n(A),e=o("m+aA"),f=o("TSYQ"),r=o.n(f),l=o("4IlW");function n(w){var v=w.pageXOffset,O="scrollLeft";if(typeof v!="number"){var U=w.document;v=U.documentElement[O],typeof v!="number"&&(v=U.body[O])}return v}function i(w){var v,O,U=w.ownerDocument,I=U.body,N=U&&U.documentElement,V=w.getBoundingClientRect();return v=V.left,O=V.top,v-=N.clientLeft||I.clientLeft||0,O-=N.clientTop||I.clientTop||0,{left:v,top:O}}function a(w){var v=i(w),O=w.ownerDocument,U=O.defaultView||O.parentWindow;return v.left+=n(U),v.left}function c(w){var v=h();return function(){var U=Object(C.a)(w),I;if(v){var N=Object(C.a)(this).constructor;I=Reflect.construct(U,arguments,N)}else I=U.apply(this,arguments);return Object(y.a)(this,I)}}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(w){return!1}}var d=function(w){Object(b.a)(O,w);var v=c(O);function O(){var U;return Object(m.a)(this,O),U=v.apply(this,arguments),U.onHover=function(I){var N=U.props,V=N.onHover,H=N.index;V(I,H)},U.onClick=function(I){var N=U.props,V=N.onClick,H=N.index;V(I,H)},U.onKeyDown=function(I){var N=U.props,V=N.onClick,H=N.index;I.keyCode===13&&V(I,H)},U}return Object(T.a)(O,[{key:"getClassName",value:function(){var I=this.props,N=I.prefixCls,V=I.index,H=I.value,D=I.allowHalf,W=I.focused,F=V+1,L=N;return H===0&&V===0&&W?L+=" ".concat(N,"-focused"):D&&H+.5>=F&&H<F?(L+=" ".concat(N,"-half ").concat(N,"-active"),W&&(L+=" ".concat(N,"-focused"))):(L+=F<=H?" ".concat(N,"-full"):" ".concat(N,"-zero"),F===H&&W&&(L+=" ".concat(N,"-focused"))),L}},{key:"render",value:function(){var I=this.onHover,N=this.onClick,V=this.onKeyDown,H=this.props,D=H.disabled,W=H.prefixCls,F=H.character,L=H.characterRender,K=H.index,te=H.count,fe=H.value,de=typeof F=="function"?F(this.props):F,Ce=g.a.createElement("li",{className:this.getClassName()},g.a.createElement("div",{onClick:D?null:N,onKeyDown:D?null:V,onMouseMove:D?null:I,role:"radio","aria-checked":fe>K?"true":"false","aria-posinset":K+1,"aria-setsize":te,tabIndex:D?-1:0},g.a.createElement("div",{className:"".concat(W,"-first")},de),g.a.createElement("div",{className:"".concat(W,"-second")},de)));return L&&(Ce=L(Ce,this.props)),Ce}}]),O}(g.a.Component);function s(w,v){var O=Object.keys(w);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(w);v&&(U=U.filter(function(I){return Object.getOwnPropertyDescriptor(w,I).enumerable})),O.push.apply(O,U)}return O}function u(w){for(var v=1;v<arguments.length;v++){var O=arguments[v]!=null?arguments[v]:{};v%2?s(Object(O),!0).forEach(function(U){Object(M.a)(w,U,O[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(O)):s(Object(O)).forEach(function(U){Object.defineProperty(w,U,Object.getOwnPropertyDescriptor(O,U))})}return w}function S(w){var v=E();return function(){var U=Object(C.a)(w),I;if(v){var N=Object(C.a)(this).constructor;I=Reflect.construct(U,arguments,N)}else I=U.apply(this,arguments);return Object(y.a)(this,I)}}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(w){return!1}}function _(){}var P=function(w){Object(b.a)(O,w);var v=S(O);function O(U){var I;Object(m.a)(this,O),I=v.call(this,U),I.onHover=function(V,H){var D=I.props.onHoverChange,W=I.getStarValue(H,V.pageX),F=I.state.cleanedValue;W!==F&&I.setState({hoverValue:W,cleanedValue:null}),D(W)},I.onMouseLeave=function(){var V=I.props.onHoverChange;I.setState({hoverValue:void 0,cleanedValue:null}),V(void 0)},I.onClick=function(V,H){var D=I.props.allowClear,W=I.state.value,F=I.getStarValue(H,V.pageX),L=!1;D&&(L=F===W),I.onMouseLeave(),I.changeValue(L?0:F),I.setState({cleanedValue:L?F:null})},I.onFocus=function(){var V=I.props.onFocus;I.setState({focused:!0}),V&&V()},I.onBlur=function(){var V=I.props.onBlur;I.setState({focused:!1}),V&&V()},I.onKeyDown=function(V){var H=V.keyCode,D=I.props,W=D.count,F=D.allowHalf,L=D.onKeyDown,K=D.direction,te=K==="rtl",fe=I.state.value;H===l.a.RIGHT&&fe<W&&!te?(F?fe+=.5:fe+=1,I.changeValue(fe),V.preventDefault()):H===l.a.LEFT&&fe>0&&!te||H===l.a.RIGHT&&fe>0&&te?(F?fe-=.5:fe-=1,I.changeValue(fe),V.preventDefault()):H===l.a.LEFT&&fe<W&&te&&(F?fe+=.5:fe+=1,I.changeValue(fe),V.preventDefault()),L&&L(V)},I.saveRef=function(V){return function(H){I.stars[V]=H}},I.saveRate=function(V){I.rate=V};var N=U.value;return N===void 0&&(N=U.defaultValue),I.stars={},I.state={value:N,focused:!1,cleanedValue:null},I}return Object(T.a)(O,[{key:"componentDidMount",value:function(){var I=this.props,N=I.autoFocus,V=I.disabled;N&&!V&&this.focus()}},{key:"getStarDOM",value:function(I){return Object(e.a)(this.stars[I])}},{key:"getStarValue",value:function(I,N){var V=this.props,H=V.allowHalf,D=V.direction,W=D==="rtl",F=I+1;if(H){var L=this.getStarDOM(I),K=a(L),te=L.clientWidth;(W&&N-K>te/2||!W&&N-K<te/2)&&(F-=.5)}return F}},{key:"focus",value:function(){var I=this.props.disabled;I||this.rate.focus()}},{key:"blur",value:function(){var I=this.props.disabled;I||this.rate.blur()}},{key:"changeValue",value:function(I){var N=this.props.onChange;"value"in this.props||this.setState({value:I}),N(I)}},{key:"render",value:function(){for(var I=this.props,N=I.count,V=I.allowHalf,H=I.style,D=I.prefixCls,W=I.disabled,F=I.className,L=I.character,K=I.characterRender,te=I.tabIndex,fe=I.direction,de=this.state,Ce=de.value,Oe=de.hoverValue,ce=de.focused,Ee=[],ye=W?"".concat(D,"-disabled"):"",ue=0;ue<N;ue+=1)Ee.push(g.a.createElement(d,{ref:this.saveRef(ue),index:ue,count:N,disabled:W,prefixCls:"".concat(D,"-star"),allowHalf:V,value:Oe===void 0?Ce:Oe,onClick:this.onClick,onHover:this.onHover,key:ue,character:L,characterRender:K,focused:ce}));var le=r()(D,ye,F,Object(M.a)({},"".concat(D,"-rtl"),fe==="rtl"));return g.a.createElement("ul",{className:le,style:H,onMouseLeave:W?null:this.onMouseLeave,tabIndex:W?-1:te,onFocus:W?null:this.onFocus,onBlur:W?null:this.onBlur,onKeyDown:W?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Ee)}}],[{key:"getDerivedStateFromProps",value:function(I,N){return"value"in I&&I.value!==void 0?u(u({},N),{},{value:I.value}):N}}]),O}(g.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"),m=o("zeV3"),T=o("+L6B"),b=o("2/Rp"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),g=o("WmNS"),e=o.n(g),f=o("q1tI"),r=o.n(f),l=o("vg9a"),n=o("DlQD"),i=o.n(n),a=o("rUJ1");function c(pe,X){var q=pe.match(/^(\s+)(?:```)/);if(q===null)return X;var se=q[1];return X.split(`
|
|
|
`).map(function(De){var he=De.match(/^\s+/);if(he===null)return De;var pt=Object(A.a)(he,1),vn=pt[0];return vn.length>=se.length?De.slice(se.length):De}).join(`
|
|
|
`)}var h=[],d=["<ul>"],s=new i.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function S(){h.length=0,d=["<ul>"]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(pe,X,q,se){if(X>=pe.length||pe[X].level<=q)return X;var De=pe[X];se.push("<li><a href='#"+De.anchor+"'>"+De.text+"</a>"),X++;var he=[];return X=_(pe,X,De.level,he),he.length>0&&(se.push("<ul>"),he.forEach(function(pt){se.push(pt)}),se.push("</ul>")),se.push("</li>"),X=_(pe,X,q,se),X}function P(){return _(h,0,0,d),d.push("</ul>"),d.join("")}var R={heading:function(X){var q=u.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 se=q[0],De=c(se,q[3]||""),he=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(he)>=0){var pt=v(),vn=De;De=pt,O[pt]={type:"block",expression:vn}}return{type:"code",raw:se,lang:he,text:De}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,w=0,v=function(){return"__special_katext_id_".concat(w++,"__")},O={};function U(){return O}function I(){w=0,O={}}function N(pe){return pe=pe.replace(x,function(X,q){var se=v();return O[se]={type:"inline",expression:q},se}),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 se=(X||"").match(/\S*/)[0];return se?["latex","katex","math"].indexOf(se)>=0?"<p class='editormd-tex'>".concat(pe,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(X,'">').concat(q?pe:Object(a.escape)(pe,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(q?pe:Object(a.escape)(pe,!0))+"</code></pre>"},s.heading=function(pe,X,q){var se=this.options.headerPrefix+q.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:se,level:X,text:pe}),"<h"+X+' id="'+se+'">'+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"),L=o("ulZh"),K=o.n(L),te=o("m3rI"),fe=o("Oy/b"),de=o("p5ED"),Ce=o("ErOA");/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
purpose with or without fee is hereby granted.
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
***************************************************************************** */var Oe=function(pe,X){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,se){q.__proto__=se}||function(q,se){for(var De in se)Object.prototype.hasOwnProperty.call(se,De)&&(q[De]=se[De])})(pe,X)};function ce(pe,X){function q(){this.constructor=pe}Oe(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function Ee(pe,X,q,se){return new(q||(q=Promise))(function(De,he){function pt(dr){try{Kn(se.next(dr))}catch(on){he(on)}}function vn(dr){try{Kn(se.throw(dr))}catch(on){he(on)}}function Kn(dr){var on;dr.done?De(dr.value):(on=dr.value,on instanceof q?on:new q(function(Mn){Mn(on)})).then(pt,vn)}Kn((se=se.apply(pe,X||[])).next())})}function ye(pe,X){var q,se,De,he,pt={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return he={next:vn(0),throw:vn(1),return:vn(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function vn(Kn){return function(dr){return function(on){if(q)throw new TypeError("Generator is already executing.");for(;pt;)try{if(q=1,se&&(De=2&on[0]?se.return:on[0]?se.throw||((De=se.return)&&De.call(se),0):se.next)&&!(De=De.call(se,on[1])).done)return De;switch(se=0,De&&(on=[2&on[0],De.value]),on[0]){case 0:case 1:De=on;break;case 4:return pt.label++,{value:on[1],done:!1};case 5:pt.label++,se=on[1],on=[0];continue;case 7:on=pt.ops.pop(),pt.trys.pop();continue;default:if(!(De=pt.trys,(De=De.length>0&&De[De.length-1])||on[0]!==6&&on[0]!==2)){pt=0;continue}if(on[0]===3&&(!De||on[1]>De[0]&&on[1]<De[3])){pt.label=on[1];break}if(on[0]===6&&pt.label<De[1]){pt.label=De[1],De=on;break}if(De&&pt.label<De[2]){pt.label=De[2],pt.ops.push(on);break}De[2]&&pt.ops.pop(),pt.trys.pop();continue}on=X.call(pe,pt)}catch(Mn){on=[6,Mn],se=0}finally{q=De=0}if(5&on[0])throw on[1];return{value:on[0]?on[1]:void 0,done:!0}}([Kn,dr])}}}function ue(){for(var pe=0,X=0,q=arguments.length;X<q;X++)pe+=arguments[X].length;var se=Array(pe),De=0;for(X=0;X<q;X++)for(var he=arguments[X],pt=0,vn=he.length;pt<vn;pt++,De++)se[De]=he[pt];return se}var le=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var se=0,De=q;se<De.length;se++){var he=De[se],pt=he[0],vn=he[1];X.setAttribute(pt,vn)}},pe.createRect=function(X,q,se){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),se&&pe.setAttributes(De,se),De},pe.createLine=function(X,q,se,De,he){var pt=document.createElementNS("http://www.w3.org/2000/svg","line");return pt.setAttribute("x1",X.toString()),pt.setAttribute("y1",q.toString()),pt.setAttribute("x2",se.toString()),pt.setAttribute("y2",De.toString()),he&&pe.setAttributes(pt,he),pt},pe.createPolygon=function(X,q){var se=document.createElementNS("http://www.w3.org/2000/svg","polygon");return se.setAttribute("points",X),q&&pe.setAttributes(se,q),se},pe.createCircle=function(X,q){var se=document.createElementNS("http://www.w3.org/2000/svg","circle");return se.setAttribute("cx",(X/2).toString()),se.setAttribute("cy",(X/2).toString()),se.setAttribute("r",X.toString()),q&&pe.setAttributes(se,q),se},pe.createEllipse=function(X,q,se){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()),se&&pe.setAttributes(De,se),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,se,De,he,pt,vn){var Kn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Kn,[["id",X],["orient",q],["markerWidth",se.toString()],["markerHeight",De.toString()],["refX",he.toString()],["refY",pt.toString()]]),Kn.appendChild(vn),Kn},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 se=document.createElementNS("http://www.w3.org/2000/svg","tspan");return se.textContent=X,q&&pe.setAttributes(se,q),se},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 se=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return se.x=X,se.y=q,se},pe.createPath=function(X,q){var se=document.createElementNS("http://www.w3.org/2000/svg","path");return se.setAttribute("d",X),q&&pe.setAttributes(se,q),se},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,se){var De=this;return new Promise(function(he){var pt=se!==void 0?se:document.createElement("canvas");X===null&&(De.markersOnly=!0,De.naturalSize=!1);var vn=document.createElementNS("http://www.w3.org/2000/svg","svg");vn.setAttribute("xmlns","http://www.w3.org/2000/svg"),vn.setAttribute("width",q.width.baseVal.valueAsString),vn.setAttribute("height",q.height.baseVal.valueAsString),vn.setAttribute("viewBox","0 0 "+q.viewBox.baseVal.width.toString()+" "+q.viewBox.baseVal.height.toString()),vn.innerHTML=q.innerHTML,De.naturalSize===!0?(vn.width.baseVal.value=X.naturalWidth,vn.height.baseVal.value=X.naturalHeight):De.width!==void 0&&De.height!==void 0&&(vn.width.baseVal.value=De.width,vn.height.baseVal.value=De.height),pt.width=vn.width.baseVal.value,pt.height=vn.height.baseVal.value;var Kn=vn.outerHTML,dr=pt.getContext("2d");De.markersOnly!==!0&&dr.drawImage(X,0,0,pt.width,pt.height);var on=window.URL,Mn=new Image(pt.width,pt.height);Mn.setAttribute("crossOrigin","anonymous");var Xn=new Blob([Kn],{type:"image/svg+xml"}),$r=on.createObjectURL(Xn);Mn.onload=function(){dr.drawImage(Mn,0,0),on.revokeObjectURL($r);var ga=pt.toDataURL(De.imageType,De.imageQuality);he(ga)},Mn.src=$r})},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 Se("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Se("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Se("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new oe("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new oe("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}(),Se=function(pe,X){this.selector=pe,this.style=X},oe=function(pe,X){this.localName=pe,this.style=X},ee=function(){function pe(X,q,se,De,he){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=X,this.displayMode=q,this.markerItems=se,this.uiStyleSettings=De,this.styles=he,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return pe.prototype.show=function(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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",this.uiContainer.appendChild(se),this.addActionButton(se,'<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(se,'<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(se,'<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(se,'<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(se,'<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(se,'<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(se,'<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(se,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(he){var pt=document.createElement("div");pt.className=""+q.toolbarButtonStyleClass.name,pt.setAttribute("data-type-name",he.typeName),pt.innerHTML=he.icon,pt.addEventListener("click",function(){q.markerToolbarButtonClicked(pt,he)}),q.buttons.push(pt),q.markerButtons.push(pt)}),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,se){var De=this,he=document.createElement("div");switch(he.className=""+this.toolbarButtonStyleClass.name,he.innerHTML=q,he.setAttribute("data-action",se),he.addEventListener("click",function(){De.actionToolbarButtonClicked(he,se)}),se){case"select":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":he.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":he.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":he.style.fill=this.uiStyleSettings.closeButtonColor}X.appendChild(he),this.buttons.push(he)},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new oe("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 oe("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new oe("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new oe("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 oe("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var X=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new oe("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 oe("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new oe("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Se("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Se("."+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(se){return se("marker",q)}),this.markerButtonOverflowBlock.style.display="none"},pe.prototype.actionToolbarButtonClicked=function(X,q){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(se){return se("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(se){return se.getAttribute("data-type-name")===X});q&&this.setActiveButton(q)},pe.prototype.setCurrentMarker=function(X){var q=this;this.currentMarker=X,this.buttons.filter(function(se){return/delete|notes/.test(se.getAttribute("data-action"))}).forEach(function(se){q.currentMarker===void 0?(se.style.fillOpacity="0.4",se.style.pointerEvents="none"):(se.style.fillOpacity="1",se.style.pointerEvents="all")})},pe}(),J=function(){function pe(X,q,se,De){this.panels=[],this.panelButtons=[],this.markerjsContainer=X,this.displayMode=q,this.uiStyleSettings=se,this.styles=De,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return pe.prototype.addStyles=function(){var X;this.toolboxStyleClass=this.styles.addClass(new oe("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 oe("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var q=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new oe("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new oe("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new oe("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 oe("toolbox-panel-row_colors",`
|
|
|
background-color: `+((X=this.uiStyleSettings.toolboxBackgroundColor)!==null&&X!==void 0?X:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new oe("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 oe("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new oe("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Se("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Se("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},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,se,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+" "+((se=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(he){var pt;he.uiStyleSettings=De.uiStyleSettings;var vn=document.createElement("div");vn.className=De.toolboxButtonStyleClass.name+" "+((pt=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pt!==void 0?pt:De.toolboxButtonStyleColorsClass.name),vn.innerHTML=he.icon,vn.title=he.title,vn.addEventListener("click",function(){De.panelButtonClick(he)}),De.panelButtons.push(vn),De.buttonRow.appendChild(vn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(X){var q=this,se=-1;if(X!==this.activePanel){se=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(he,pt){var vn,Kn;he.className=q.toolboxButtonStyleClass.name+" "+(pt===se?""+((vn=q.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&vn!==void 0?vn:q.toolboxActiveButtonStyleColorsClass.name):""+((Kn=q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Kn!==void 0?Kn:q.toolboxButtonStyleColorsClass.name))})},pe}(),Q=function(pe,X){this.title=pe,this.icon=X},ve=function(pe){function X(q,se,De,he){var pt=pe.call(this,q,he||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return pt.colors=[],pt.addTransparent=!1,pt.colorBoxes=[],pt.colors=se,pt.currentColor=De,pt.setCurrentColor=pt.setCurrentColor.bind(pt),pt.getColorBox=pt.getColorBox.bind(pt),pt}return ce(X,pe),X.prototype.getUi=function(){var q=this,se=document.createElement("div");return se.style.overflow="hidden",se.style.whiteSpace="nowrap",this.colors.forEach(function(De){var he=q.getColorBox(De);se.appendChild(he),q.colorBoxes.push(he)}),se},X.prototype.getColorBox=function(q){var se=this,De=this.uiStyleSettings.toolbarHeight/4,he=this.uiStyleSettings.toolbarHeight-De,pt=document.createElement("div");pt.style.display="inline-block",pt.style.boxSizing="content-box",pt.style.width=he-2+"px",pt.style.height=he-2+"px",pt.style.padding="1px",pt.style.marginRight="2px",pt.style.marginBottom="2px",pt.style.borderWidth="2px",pt.style.borderStyle="solid",pt.style.borderRadius=(he+2)/2+"px",pt.style.borderColor=q===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pt.addEventListener("click",function(){se.setCurrentColor(q,pt)});var vn=document.createElement("div");return vn.style.display="inline-block",vn.style.width=he-2+"px",vn.style.height=he-2+"px",vn.style.backgroundColor=q,vn.style.borderRadius=he/2+"px",q==="transparent"&&(vn.style.fill=this.uiStyleSettings.toolboxAccentColor,vn.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>`),pt.appendChild(vn),pt},X.prototype.setCurrentColor=function(q,se){var De=this;this.currentColor=q,this.colorBoxes.forEach(function(he){he.style.borderColor=he===se?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(q)},X}(Q),_e=function(){function pe(X,q,se){this._state="new",this._isSelected=!1,this._container=X,this._overlayContainer=q,this.globalSettings=se,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}(),Te=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}(),Ge=function(){function pe(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.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}(),qe=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,se,De){var he=pe.call(this,q,se,De)||this;return he.left=0,he.top=0,he.width=0,he.height=0,he.defaultSize={x:50,y:20},he.offsetX=0,he.offsetY=0,he.rotationAngle=0,he.CB_DISTANCE=10,he._suppressMarkerCreateEvent=!1,he.container.transform.baseVal.appendItem(le.createTransform()),he.setupControlBox(),he}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 se=le.createTransform();this._visual.transform.baseVal.appendItem(se)},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,se){pe.prototype.pointerDown.call(this,q,se),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(se),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(se)){this.activeGrip=this.rotatorGrip;var he=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=he.x-this.width/2,this.top=he.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pt=this.container.transform.baseVal.getItem(0);pt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},X.prototype.pointerUp=function(q){var se=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",se==="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 se=this.unrotatePoint(q);this.state==="creating"?this.resize(q):this.state==="move"?(this.left=this.manipulationStartLeft+(se.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(se.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(se):this.state==="rotate"&&this.rotate(q)},X.prototype.resize=function(q){var se=this.manipulationStartLeft,De=this.manipulationStartWidth,he=this.manipulationStartTop,pt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:se=this.manipulationStartLeft+q.x-this.manipulationStartX,De=this.manipulationStartWidth+this.manipulationStartLeft-se;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:he=this.manipulationStartTop+q.y-this.manipulationStartY,pt=this.manipulationStartHeight+this.manipulationStartTop-he;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pt=this.manipulationStartHeight+q.y-this.manipulationStartY}De>=0?(this.left=se,this.width=De):(this.left=se+De,this.width=-De),pt>=0?(this.top=he,this.height=pt):(this.top=he+pt,this.height=-pt),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 se=Math.sign(q.x-this.centerX);this.rotationAngle=180*Math.atan((q.y-this.centerY)/(q.x-this.centerX))/Math.PI+90*se,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 se=this.container.getCTM(),De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(se)).x,y:De.y}},X.prototype.unrotatePoint=function(q){if(this.rotationAngle===0)return q;var se=this.container.getCTM();se=se.inverse();var De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(se)).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=le.createGroup();var q=le.createTransform();q.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(q),this.container.appendChild(this.controlBox),this.controlRect=le.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=le.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 Te,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 Ge;return q.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.controlGrips.topLeft.GRIP_SIZE,se=-q/2,De=se,he=(this.width+this.CB_DISTANCE)/2-q/2,pt=(this.height+this.CB_DISTANCE)/2-q/2,vn=this.height+this.CB_DISTANCE-q/2,Kn=this.width+this.CB_DISTANCE-q/2;this.positionGrip(this.controlGrips.topLeft.visual,se,De),this.positionGrip(this.controlGrips.topCenter.visual,he,De),this.positionGrip(this.controlGrips.topRight.visual,Kn,De),this.positionGrip(this.controlGrips.centerLeft.visual,se,pt),this.positionGrip(this.controlGrips.centerRight.visual,Kn,pt),this.positionGrip(this.controlGrips.bottomLeft.visual,se,vn),this.positionGrip(this.controlGrips.bottomCenter.visual,he,vn),this.positionGrip(this.controlGrips.bottomRight.visual,Kn,vn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,he,De-3*this.CB_DISTANCE)},X.prototype.positionGrip=function(q,se,De){var he=q.transform.baseVal.getItem(0);he.setTranslate(se,De),q.transform.baseVal.replaceItem(he,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:qe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:qe.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 se=q;this.left=se.left,this.top=se.top,this.width=se.width,this.height=se.height,this.rotationAngle=se.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(qe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,se.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(qe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,se.containerTransformMatrix))},X.prototype.scale=function(q,se){pe.prototype.scale.call(this,q,se);var De=this.rotatePoint({x:this.left,y:this.top}),he=this.unrotatePoint({x:De.x*q,y:De.y*se});this.left=he.x,this.top=he.y,this.width=this.width*q,this.height=this.height*se,this.adjustControlBox()},X}(_e),st=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.createVisual=he.createVisual.bind(he),he}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.prototype.createVisual=function(){this.visual=le.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,se){pe.prototype.pointerDown.call(this,q,se),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),le.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&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&le.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 se=q;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.opacity=se.opacity,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,se){pe.prototype.scale.call(this,q,se),this.setSize()},X.title="Rectangle marker",X}(ut),ft=function(pe){function X(q,se,De,he){var pt=pe.call(this,q,he||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return pt.widths=[],pt.widthBoxes=[],pt.widths=se,pt.currentWidth=De,pt.setCurrentWidth=pt.setCurrentWidth.bind(pt),pt}return ce(X,pe),X.prototype.getUi=function(){var q=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",this.widths.forEach(function(De){var he=document.createElement("div");he.style.display="flex",he.style.flexGrow="2",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=De===q.currentWidth?q.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){q.setCurrentWidth(De,he)}),se.appendChild(he);var pt=document.createElement("div");pt.innerText=De.toString(),pt.style.marginRight="5px",he.appendChild(pt);var vn=document.createElement("div");vn.style.minHeight="20px",vn.style.flexGrow="2",vn.style.display="flex",vn.style.alignItems="center";var Kn=document.createElement("hr");Kn.style.minWidth="20px",Kn.style.border="0px",Kn.style.borderTop=De+"px solid "+q.uiStyleSettings.toolboxColor,Kn.style.flexGrow="2",vn.appendChild(Kn),he.appendChild(vn),q.widthBoxes.push(he)}),se},X.prototype.setCurrentWidth=function(q,se){var De=this;this.currentWidth=q,this.widthBoxes.forEach(function(he){he.style.borderColor=he===se?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},X}(Q),gt=function(pe){function X(q,se,De,he){var pt=pe.call(this,q,he||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return pt.styles=[],pt.styleBoxes=[],pt.styles=se,pt.currentStyle=De,pt.setCurrentStyle=pt.setCurrentStyle.bind(pt),pt}return ce(X,pe),X.prototype.getUi=function(){var q=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",this.styles.forEach(function(De){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/q.styles.length-5+"%",he.style.borderColor=De===q.currentStyle?q.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){q.setCurrentStyle(De,he)}),se.appendChild(he);var pt=document.createElement("div");pt.style.minHeight="20px",pt.style.flexGrow="2",pt.style.overflow="hidden";var vn=`<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>`;pt.innerHTML=vn,he.appendChild(pt),q.styleBoxes.push(he)}),se},X.prototype.setCurrentStyle=function(q,se){var De=this;this.currentStyle=q,this.styleBoxes.forEach(function(he){he.style.borderColor=he===se?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},X}(Q),Ve=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.strokeColor=De.defaultColor,he.strokeWidth=De.defaultStrokeWidth,he.strokeDasharray=De.defaultStrokeDasharray,he.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new ft("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new gt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}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}(st),ke=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},dt=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.x1=0,he.y1=0,he.x2=0,he.y2=0,he.defaultLength=50,he.manipulationStartX=0,he.manipulationStartY=0,he.manipulationStartX1=0,he.manipulationStartY1=0,he.manipulationStartX2=0,he.manipulationStartY2=0,he.setupControlBox(),he}return ce(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,se){pe.prototype.pointerDown.call(this,q,se),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(se)?this.activeGrip=this.grip1:this.grip2.ownsTarget(se)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},X.prototype.pointerUp=function(q){var se=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",se==="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=le.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 Ge;return q.visual.transform.baseVal.appendItem(le.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,se,De){var he=q.transform.baseVal.getItem(0);he.setTranslate(se,De),q.transform.baseVal.replaceItem(he,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 se=q;this.x1=se.x1,this.y1=se.y1,this.x2=se.x2,this.y2=se.y2},X.prototype.scale=function(q,se){pe.prototype.scale.call(this,q,se),this.x1=this.x1*q,this.y1=this.y1*se,this.x2=this.x2*q,this.y2=this.y2*se,this.adjustVisual(),this.adjustControlBox()},X}(_e),Bt=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.strokeColor=De.defaultColor,he.strokeWidth=De.defaultStrokeWidth,he.strokeDasharray=De.defaultStrokeDasharray,he.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new ft("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new gt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}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=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.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,se){pe.prototype.pointerDown.call(this,q,se),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()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.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 se=q;this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.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}(dt),vt=function(pe){function X(q,se,De,he){var pt=pe.call(this,q,he||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return pt.fonts=[],pt.fontBoxes=[],pt.fonts=se,pt.currentFont=De,pt.setCurrentFont=pt.setCurrentFont.bind(pt),pt}return ce(X,pe),X.prototype.getUi=function(){var q=this,se=document.createElement("div");return se.style.overflow="hidden",se.style.flexGrow="2",this.fonts.forEach(function(De){var he=document.createElement("div");he.style.display="inline-block",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/q.fonts.length-5+"%",he.style.borderColor=De===q.currentFont?q.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){q.setCurrentFont(De,he)}),se.appendChild(he);var pt=document.createElement("div");pt.style.display="flex",pt.style.minHeight="20px",pt.style.flexGrow="2",pt.style.fontFamily=De,pt.style.overflow="hidden";var vn=document.createElement("div");vn.style.whiteSpace="nowrap",vn.style.overflow="hidden",vn.style.textOverflow="ellipsis",vn.innerHTML="The quick brown fox jumps over the lazy dog",pt.appendChild(vn),he.appendChild(pt),q.fontBoxes.push(he)}),se},X.prototype.setCurrentFont=function(q,se){var De=this;this.currentFont=q,this.fontBoxes.forEach(function(he){he.style.borderColor=he===se?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},X}(Q),Rt=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.color="transparent",he.padding=5,he.DEFAULT_TEXT="your text here",he.text=he.DEFAULT_TEXT,he.isMoved=!1,he.color=De.defaultColor,he.fontFamily=De.defaultFontFamily,he.defaultSize={x:100,y:30},he.setColor=he.setColor.bind(he),he.setFont=he.setFont.bind(he),he.renderText=he.renderText.bind(he),he.sizeText=he.sizeText.bind(he),he.textEditDivClicked=he.textEditDivClicked.bind(he),he.showTextEditor=he.showTextEditor.bind(he),he.setSize=he.setSize.bind(he),he.positionTextEditor=he.positionTextEditor.bind(he),he.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.fontFamilyPanel=new vt("Font",De.defaultFontFamilies,De.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he}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 se=!1;return this.textElement.childNodes.forEach(function(De){De===q&&(se=!0)}),se},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},X.prototype.pointerDown=function(q,se){pe.prototype.pointerDown.call(this,q,se),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(se){q.textElement.appendChild(le.createTSpan(se.trim()===""?" ":se.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},X.prototype.getTextScale=function(){var q=this.textElement.getBBox(),se=1;if(q.width>0&&q.height>0){var De=(1*this.width-this.width*this.padding*2/100)/q.width,he=(1*this.height-this.height*this.padding*2/100)/q.height;se=Math.min(De,he)}return se},X.prototype.getTextPosition=function(q){var se=this.textElement.getBBox(),De=0,he=0;return se.width>0&&se.height>0&&(De=(this.width-se.width*q)/2,he=this.height/2-se.height*q/2),{x:De,y:he}},X.prototype.sizeText=function(){var q=this.textElement.getBBox(),se=this.getTextScale(),De=this.getTextPosition(se);De.y-=q.y*se,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+De.x+"px, "+De.y+"px) scale("+se+", "+se+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(De.x,De.y),this.textElement.transform.baseVal.getItem(1).setScale(se,se))},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&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},X.prototype.pointerUp=function(q){var se=this.state;se==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,q),this.setSize(),(se==="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(se){se.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var se=Number.parseFloat(q.textEditor.style.fontSize);q.textEditor.clientWidth>=Number.parseInt(q.textEditor.style.maxWidth)&&se>.9;)se-=.1,q.textEditor.style.fontSize=Math.max(se,.9)+"em"}),this.textEditor.addEventListener("keyup",function(se){se.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(se){if(se.clipboardData){var De=se.clipboardData.getData("text"),he=window.getSelection();if(!he.rangeCount)return!1;he.deleteFromDocument(),he.getRangeAt(0).insertNode(document.createTextNode(De)),se.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(),se=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),De=this.textElement.getBBox(),he={x:De.width*q,y:De.height*q};se.x-=he.x/2,se.y-=he.y/2,this.textEditor.style.top=se.y+"px",this.textEditor.style.left=se.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-se.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,se){pe.prototype.dblClick.call(this,q,se),this.showTextEditor()},X.prototype.setColor=function(q){this.textElement&&le.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&&le.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 se=q;this.color=se.color,this.fontFamily=se.fontFamily,this.padding=se.padding,this.text=se.text,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,se){pe.prototype.scale.call(this,q,se),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),ot=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.color="transparent",he.lineWidth=3,he.drawing=!1,he.pixelRatio=1,he.color=De.defaultColor,he.lineWidth=De.defaultStrokeWidth,he.pixelRatio=De.freehandPixelRatio,he.setColor=he.setColor.bind(he),he.addCanvas=he.addCanvas.bind(he),he.finishCreation=he.finishCreation.bind(he),he.setLineWidth=he.setLineWidth.bind(he),he.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.lineWidthPanel=new ft("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),he.lineWidthPanel.onWidthChanged=he.setLineWidth,he}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=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var q=le.createTransform();this.visual.transform.baseVal.appendItem(q),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,se){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,se)},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),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.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),se=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],De=se[0],he=se[1],pt=se[2],vn=se[3],Kn=!1,dr=0;dr<this.canvasElement.height;dr++)for(var on=0;on<this.canvasElement.width;on++)q.data[dr*this.canvasElement.width*4+4*on+3]>0&&(Kn=!0,dr<he&&(he=dr),on<De&&(De=on),dr>vn&&(vn=dr),on>pt&&(pt=on));if(Kn){this.left=De/this.pixelRatio,this.top=he/this.pixelRatio,this.width=(pt-De)/this.pixelRatio,this.height=(vn-he)/this.pixelRatio;var Mn=document.createElement("canvas");Mn.width=pt-De,Mn.height=vn-he,Mn.getContext("2d").putImageData(this.canvasContext.getImageData(De,he,pt-De,vn-he),0,0),this.drawingImgUrl=Mn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.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,se){pe.prototype.scale.call(this,q,se),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),Je=function(pe){function X(q,se,De){var he=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 he.typeBoxes=[],he.currentType=se,he.setCurrentType=he.setCurrentType.bind(he),he}return ce(X,pe),X.prototype.getUi=function(){var q=this,se=document.createElement("div");se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2";for(var De=function(vn){var Kn="both";switch(vn){case 0:Kn="both";break;case 1:Kn="start";break;case 2:Kn="end";break;case 3:Kn="none"}var dr=document.createElement("div");if(dr.style.display="flex",dr.style.flexGrow="2",dr.style.alignItems="center",dr.style.justifyContent="space-between",dr.style.padding="5px",dr.style.borderWidth="2px",dr.style.borderStyle="solid",dr.style.borderColor=Kn===he.currentType?he.uiStyleSettings.toolboxAccentColor:"transparent",dr.addEventListener("click",function(){q.setCurrentType(Kn,dr)}),se.appendChild(dr),Kn==="both"||Kn==="start"){var on=document.createElement("div");on.style.display="flex",on.style.alignItems="center",on.style.minHeight="20px",on.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,on.style.marginLeft="5px",dr.appendChild(on)}var Mn=document.createElement("div");Mn.style.display="flex",Mn.style.alignItems="center",Mn.style.minHeight="20px",Mn.style.flexGrow="2";var Xn=document.createElement("hr");if(Xn.style.minWidth="20px",Xn.style.border="0px",Xn.style.borderTop="3px solid "+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee"),Xn.style.flexGrow="2",Mn.appendChild(Xn),dr.appendChild(Mn),Kn==="both"||Kn==="end"){var $r=document.createElement("div");$r.style.display="flex",$r.style.alignItems="center",$r.style.minHeight="20px",$r.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,$r.style.marginRight="5px",dr.appendChild($r)}he.typeBoxes.push(dr)},he=this,pt=0;pt<4;pt++)De(pt);return se},X.prototype.setCurrentType=function(q,se){var De=this;this.currentType=q,this.typeBoxes.forEach(function(he){he.style.borderColor=he===se?De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},X}(Q),et=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.arrowType="end",he.arrowBaseHeight=10,he.arrowBaseWidth=10,he.getArrowPoints=he.getArrowPoints.bind(he),he.setArrowType=he.setArrowType.bind(he),he.arrowTypePanel=new Je("Arrow type","end"),he.arrowTypePanel.onArrowTypeChanged=he.setArrowType,he}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,se){var De=this.arrowBaseWidth+2*this.strokeWidth,he=this.arrowBaseHeight+2*this.strokeWidth;return q-De/2+","+(se+he/2)+" "+q+","+(se-he/2)+" "+(q+De/2)+","+(se+he/2)},X.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},X.prototype.pointerDown=function(q,se){pe.prototype.pointerDown.call(this,q,se),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",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.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),se=this.arrow1.transform.baseVal.getItem(0);se.setRotate(q,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(se,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 se=q;this.arrowType=se.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}(Bt),Me=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.fillColor=De.defaultFillColor,he.strokeWidth=0,he.fillPanel=new ve("Color",De.defaultColorSet,De.defaultFillColor),he.fillPanel.onColorChanged=he.setFillColor,he}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}(st),Be=function(pe){function X(q,se,De,he){var pt=pe.call(this,q,he||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return pt.opacities=[],pt.opacityBoxes=[],pt.opacities=se,pt.currentOpacity=De,pt.setCurrentOpacity=pt.setCurrentOpacity.bind(pt),pt}return ce(X,pe),X.prototype.getUi=function(){var q=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",se.style.justifyContent="space-between",this.opacities.forEach(function(De){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="center",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=De===q.currentOpacity?q.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){q.setCurrentOpacity(De,he)}),se.appendChild(he);var pt=document.createElement("div");pt.innerText=100*De+"%",he.appendChild(pt),q.opacityBoxes.push(he)}),se},X.prototype.setCurrentOpacity=function(q,se){var De=this;this.currentOpacity=q,this.opacityBoxes.forEach(function(he){he.style.borderColor=he===se?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},X}(Q),Xe=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.setOpacity=he.setOpacity.bind(he),he.fillColor=De.defaultHighlightColor,he.strokeWidth=0,he.opacity=De.defaultHighlightOpacity,he.fillPanel=new ve("Color",De.defaultColorSet,he.fillColor),he.fillPanel.onColorChanged=he.setFillColor,he.opacityPanel=new Be("Opacity",De.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return ce(X,pe),X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&le.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}(Me),Ke='<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>',$e=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.bgColor="transparent",he.tipPosition={x:0,y:0},he.tipBase1Position={x:0,y:0},he.tipBase2Position={x:0,y:0},he.tipMoving=!1,he.color=De.defaultStrokeColor,he.bgColor=De.defaultFillColor,he.fontFamily=De.defaultFontFamily,he.defaultSize={x:100,y:30},he.setBgColor=he.setBgColor.bind(he),he.getTipPoints=he.getTipPoints.bind(he),he.positionTip=he.positionTip.bind(he),he.setTipPoints=he.setTipPoints.bind(he),he.colorPanel=new ve("Text color",De.defaultColorSet,he.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),he.colorPanel.onColorChanged=he.setColor,he.bgColorPanel=new ve("Fill color",De.defaultColorSet,he.bgColor,Ke),he.bgColorPanel.onColorChanged=he.setBgColor,he.fontFamilyPanel=new vt("Font",De.defaultFontFamilies,De.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he.tipGrip=new Ge,he.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),he.controlBox.appendChild(he.tipGrip.visual),he}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(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},X.prototype.pointerDown=function(q,se){this.state==="new"&&pe.prototype.pointerDown.call(this,q,se),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(se)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):pe.prototype.pointerDown.call(this,q,se)},X.prototype.pointerUp=function(q){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,q);else{var se=this.state==="creating";pe.prototype.pointerUp.call(this,q),this.setTipPoints(se),this.positionTip()}},X.prototype.manipulate=function(q){if(this.tipMoving){var se=this.unrotatePoint(q);this.tipPosition={x:se.x-this.manipulationStartLeft,y:se.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,q)},X.prototype.setBgColor=function(q){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",q]]),le.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 se=Math.min(this.height/2,15),De=this.height/5;q&&(this.tipPosition={x:se+De/2,y:this.height+20});var he=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(De=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:0},this.tipBase2Position={x:se+De,y:0}):(this.tipBase1Position={x:0,y:se},this.tipBase2Position={x:0,y:se+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(De=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-De,y:0},this.tipBase2Position={x:this.width-se,y:0}):(this.tipBase1Position={x:this.width,y:se},this.tipBase2Position={x:this.width,y:se+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?he<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(De=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-De,y:this.height},this.tipBase2Position={x:this.width-se,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-se-De},this.tipBase2Position={x:this.width,y:this.height-se}):he<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(De=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:this.height},this.tipBase2Position={x:se+De,y:this.height}):(this.tipBase1Position={x:0,y:this.height-se},this.tipBase2Position={x:0,y:this.height-se-De})},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.positionTip()},X.prototype.positionTip=function(){le.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 se=q;this.bgColor=se.bgColor,this.tipPosition=se.tipPosition,pe.prototype.restoreState.call(this,q),this.createTip(),this.setTipPoints()},X.prototype.scale=function(q,se){pe.prototype.scale.call(this,q,se),this.tipPosition={x:this.tipPosition.x*q,y:this.tipPosition.y*se},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}(Rt),_t=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.strokeColor=De.defaultColor,he.strokeWidth=De.defaultStrokeWidth,he.strokeDasharray=De.defaultStrokeDasharray,he.fillColor=De.defaultFillColor,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.setOpacity=he.setOpacity.bind(he),he.createVisual=he.createVisual.bind(he),he.strokePanel=new ve("Line color",ue(De.defaultColorSet,["transparent"]),De.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.fillPanel=new ve("Fill color",ue(De.defaultColorSet,["transparent"]),he.fillColor,Ke),he.fillPanel.onColorChanged=he.setFillColor,he.strokeWidthPanel=new ft("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new gt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he.opacityPanel=new Be("Opacity",De.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}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=le.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,se){pe.prototype.pointerDown.call(this,q,se),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),le.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&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(q),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&le.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 se=q;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.opacity=se.opacity,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,se){pe.prototype.scale.call(this,q,se),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),Ft=function(pe){function X(q,se,De){return pe.call(this,q,se,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=le.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(le.createTransform()),this.visual.appendChild(this.tip1),this.tip2=le.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(le.createTransform()),this.visual.appendChild(this.tip2)},X.prototype.pointerDown=function(q,se){pe.prototype.pointerDown.call(this,q,se),this.state==="creating"&&this.createTips()},X.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(le.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()]]),le.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),se=this.tip1.transform.baseVal.getItem(0);se.setRotate(q,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(se,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}(Bt),qt=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.strokePanel.colors=De.defaultColorSet,he.fillColor="transparent",he}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}(_t),bn=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}(),At=function(pe){function X(q,se,De){var he=pe.call(this,q,se,De)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.curveX=0,he.curveY=0,he.manipulationStartCurveX=0,he.manipulationStartCurveY=0,he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.positionGrips=he.positionGrips.bind(he),he.addControlGrips=he.addControlGrips.bind(he),he.adjustVisual=he.adjustVisual.bind(he),he.setupControlBox=he.setupControlBox.bind(he),he.resize=he.resize.bind(he),he.strokeColor=De.defaultColor,he.strokeWidth=De.defaultStrokeWidth,he.strokeDasharray=De.defaultStrokeDasharray,he.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new ft("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new gt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}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=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.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,se){pe.prototype.pointerDown.call(this,q,se),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(se)&&(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()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.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,se){this.curveX=this.curveX*q,this.curveY=this.curveY*se,pe.prototype.scale.call(this,q,se)},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 se=q;this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.curveX=se.curveX,this.curveY=se.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}(dt),Et=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}(),je=function(pe){function X(q,se,De){var he=pe.call(this,q,!1)||this;return he.dataUrl=se,he.state=De,he}return ce(X,pe),X}(Et),rt=function(pe){function X(q,se,De){De===void 0&&(De=!1);var he=pe.call(this,q,De)||this;return he.marker=se,he}return ce(X,pe),X}(Et),at=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 se=this[X].indexOf(q);se>-1&&this[X].splice(se,1)},pe}(),Ae=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 ke,this._isOpen=!1,this.undoRedoManager=new bn,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 at,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,ot,et,Rt,qt,_t,Xe,$e,Ft,Me,Bt,At]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ve,ot,et,Rt,_t,Xe,$e]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ve,ot,et,Rt,Xe]},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(se){if(typeof se=="string"){var De=q.ALL_MARKER_TYPES.find(function(he){return he.typeName===se});De!==void 0&&q._availableMarkerTypes.push(De)}else q._availableMarkerTypes.push(se)})},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 Et(X))})},pe.prototype.render=function(){return Ee(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 se=!1;X||this.eventListeners.beforeclose.forEach(function(De){var he=new Et(q,!0);De(he),he.defaultPrevented&&(se=!0)}),se||(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 Et(q))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var X,q=[],se=0;se<arguments.length;se++)q[se]=arguments[se];(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,se=q<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/X;this.resize(q,se)},pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},pe.prototype.resize=function(X,q){this._isResizing=!0;var se=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(se,De),this._isResizing=!1},pe.prototype.scaleMarkers=function(X,q){var se,De=this;this._currentMarker&&this._currentMarker instanceof Rt?this._currentMarker.scale(X,q):(se=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(he){he!==De._currentMarker&&he.scale(X,q)}),se!==void 0&&this.setCurrentMarker(se)},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=[],se=0;se<arguments.length;se++)q[se]=arguments[se];this.defs=le.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 ee(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new J(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.removeMarker=function(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 he=new rt(X,X._currentMarker,!0);De(he),he.defaultPrevented&&(q=!0)}),!q){var se=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 rt(X,se))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pt){var vn=new rt(X,void 0,!0);pt(vn),vn.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var se=function(pt){var vn=De.markers[pt];De.setCurrentMarker(De.markers[pt]),De._currentMarker.dispose(),De.markerImage.removeChild(De._currentMarker.container),De.markers.splice(De.markers.indexOf(De._currentMarker),1),De.eventListeners.markerdelete.forEach(function(Kn){return Kn(new rt(X,vn))})},De=this,he=this.markers.length-1;he>=0;he--)se(he);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(),se=this.undoRedoManager.getLastUndoStep();if(!se||se.width===q.width&&se.height===q.height){var De=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(q),De<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(he){return he(new Et(X))})}else this.undoRedoManager.replaceLastUndoStep(q),this.eventListeners.statechange.forEach(function(he){return he(new Et(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(se){return se(new Et(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(se){return se(new Et(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 Ee(this,void 0,void 0,function(){var X,q,se=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(he){return he(new je(se,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(se){return q.markers.push(se.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(se){var De=q._availableMarkerTypes.find(function(pt){return pt.typeName===se.typeName});if(De!==void 0){var he=q.addNewMarker(De);he.restoreState(se),q.markers.push(he)}}),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(se){return se(new Et(q))})},pe.prototype.addNewMarker=function(X){var q=le.createGroup();return this.markerImage.appendChild(q),new X(q,this.overlayContainer,this.settings)},pe.prototype.createNewMarker=function(X){var q,se=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 rt(se,se._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 ot&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ot):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(se){return se(new rt(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(se){return se(new rt(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(se){return se(new rt(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(se){return se(new rt(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(se){return se.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(se){return se.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 se=this.markerImage.getBoundingClientRect();return{x:(X-se.left)/this.zoomLevel,y:(q-se.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 Et(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 Et(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 Fe=function(pe,X){return(Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,se){q.__proto__=se}||function(q,se){for(var De in se)Object.prototype.hasOwnProperty.call(se,De)&&(q[De]=se[De])})(pe,X)};function Tt(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}Fe(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function yt(pe,X,q,se){return new(q||(q=Promise))(function(De,he){function pt(dr){try{Kn(se.next(dr))}catch(on){he(on)}}function vn(dr){try{Kn(se.throw(dr))}catch(on){he(on)}}function Kn(dr){var on;dr.done?De(dr.value):(on=dr.value,on instanceof q?on:new q(function(Mn){Mn(on)})).then(pt,vn)}Kn((se=se.apply(pe,X||[])).next())})}function Ot(pe,X){var q,se,De,he,pt={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return he={next:vn(0),throw:vn(1),return:vn(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function vn(Kn){return function(dr){return function(on){if(q)throw new TypeError("Generator is already executing.");for(;pt;)try{if(q=1,se&&(De=2&on[0]?se.return:on[0]?se.throw||((De=se.return)&&De.call(se),0):se.next)&&!(De=De.call(se,on[1])).done)return De;switch(se=0,De&&(on=[2&on[0],De.value]),on[0]){case 0:case 1:De=on;break;case 4:return pt.label++,{value:on[1],done:!1};case 5:pt.label++,se=on[1],on=[0];continue;case 7:on=pt.ops.pop(),pt.trys.pop();continue;default:if(!(De=pt.trys,(De=De.length>0&&De[De.length-1])||on[0]!==6&&on[0]!==2)){pt=0;continue}if(on[0]===3&&(!De||on[1]>De[0]&&on[1]<De[3])){pt.label=on[1];break}if(on[0]===6&&pt.label<De[1]){pt.label=De[1],De=on;break}if(De&&pt.label<De[2]){pt.label=De[2],pt.ops.push(on);break}De[2]&&pt.ops.pop(),pt.trys.pop();continue}on=X.call(pe,pt)}catch(Mn){on=[6,Mn],se=0}finally{q=De=0}if(5&on[0])throw on[1];return{value:on[0]?on[1]:void 0,done:!0}}([Kn,dr])}}}var Lt=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}(),tt=function(){function pe(){}return pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},pe.setAttributes=function(X,q){for(var se=0,De=q;se<De.length;se++){var he=De[se],pt=he[0],vn=he[1];X.setAttribute(pt,vn)}},pe.createRect=function(X,q,se){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",X.toString()),De.setAttribute("height",q.toString()),se&&pe.setAttributes(De,se),De},pe.createLine=function(X,q,se,De,he){var pt=document.createElementNS("http://www.w3.org/2000/svg","line");return pt.setAttribute("x1",X.toString()),pt.setAttribute("y1",q.toString()),pt.setAttribute("x2",se.toString()),pt.setAttribute("y2",De.toString()),he&&pe.setAttributes(pt,he),pt},pe.createPolygon=function(X,q){var se=document.createElementNS("http://www.w3.org/2000/svg","polygon");return se.setAttribute("points",X),q&&pe.setAttributes(se,q),se},pe.createCircle=function(X,q){var se=document.createElementNS("http://www.w3.org/2000/svg","circle");return se.setAttribute("cx",(X/2).toString()),se.setAttribute("cy",(X/2).toString()),se.setAttribute("r",X.toString()),q&&pe.setAttributes(se,q),se},pe.createEllipse=function(X,q,se){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()),se&&pe.setAttributes(De,se),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,se,De,he,pt,vn){var Kn=document.createElementNS("http://www.w3.org/2000/svg","marker");return pe.setAttributes(Kn,[["id",X],["orient",q],["markerWidth",se.toString()],["markerHeight",De.toString()],["refX",he.toString()],["refY",pt.toString()]]),Kn.appendChild(vn),Kn},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 se=document.createElementNS("http://www.w3.org/2000/svg","tspan");return se.textContent=X,q&&pe.setAttributes(se,q),se},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 se=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return se.x=X,se.y=q,se},pe.createPath=function(X,q){var se=document.createElementNS("http://www.w3.org/2000/svg","path");return se.setAttribute("d",X),q&&pe.setAttributes(se,q),se},pe.createElement=function(X,q){var se=document.createElementNS("http://www.w3.org/2000/svg",X);return q&&pe.setAttributes(se,q),se},pe.getHollowRectanglePath=function(X,q,se,De,he,pt,vn,Kn){return"M"+X+","+q+"V"+(q+De)+"H"+(X+se)+"V"+q+"H"+he+"V"+pt+"H"+(he+vn)+"V"+(pt+Kn)+"H"+he+"V"+q+"Z"},pe}(),Ut=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 Pt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Pt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Pt("@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}(),Pt=function(pe,X){this.selector=pe,this.style=X},an=function(pe,X){this.localName=pe,this.style=X},nn=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}(),rn=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}(),Tn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.buttons=[],q}return Tt(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(se){return q.appendChild(se.getUI())}),q},X}(rn),sn=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}(),un=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.elements=[],q}return Tt(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(se){return q.appendChild(se)}),q},X}(rn),Jn=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}(),kn=function(){function pe(){}return pe.getIcon=function(X,q){if(X>0&&q>0){var se=new Jn(X,q),De=se.ratio>=1?20:se.getHorizontalLength(20),he=se.ratio<1?20:se.getVerticalLength(20),pt=document.createElementNS("http://www.w3.org/2000/svg","svg");pt.setAttribute("xmlns","http://www.w3.org/2000/svg"),pt.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(pt);var vn=tt.createDefs();pt.appendChild(vn);var Kn=tt.createElement("clipPath",[["id","text-bg-clip"]]);vn.appendChild(Kn);var dr=tt.createPath(tt.getHollowRectanglePath((24-De)/2,(24-he)/2,De,he,(24-De)/2+2,(24-he)/2+2,De-4,he-4));pt.appendChild(dr);var on=tt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);on.appendChild(tt.createTSpan(X+":"+q)),pt.appendChild(on);var Mn=on.getBBox();tt.setAttributes(on,[["x",((24-Mn.width)/2).toString()],["y",((24-Mn.height)/2-Mn.y).toString()]]);var Xn=tt.createPath(tt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Mn.width))/2,(24-Math.ceil(Mn.height))/2,Math.ceil(Mn.width),Math.ceil(Mn.height)));return Kn.appendChild(Xn),tt.setAttributes(dr,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(pt),pt.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}(),Yn=function(pe){function X(q,se,De){var he=pe.call(this,q,se)||this;return he.isDropdownOpen=!1,he.onClick=he.dropdownButtonClicked,he.dropdownButtons=De,he}return Tt(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(se){se.className=q.className,se.colorsClassName=q.colorsClassName,q.dropdownBlock.appendChild(se.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}(sn),tr=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=tt.createGroup(),this.visual.appendChild(tt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(tt.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(se){return tt.setAttributes(se,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),pr=function(){function pe(X,q,se,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=se,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&&tt.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=tt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=tt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var q=0;q<this.numberOfGridLines;q++)this.horizontalGridLines.push(tt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(tt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(se){return X.gridContainer.appendChild(se)}),this.verticalGridLines.forEach(function(se){return X.gridContainer.appendChild(se)}),this.cropRectElement=tt.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new tr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new tr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new tr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new tr(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),tt.setAttributes(this.cropRectElement,[["x",q.x.toString()],["y",q.y.toString()],["width",q.width.toString()],["height",q.height.toString()]]);var se=q.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(he,pt){var vn=q.y+se*(pt+1);tt.setAttributes(he,[["x1",""+q.x],["y1",""+vn],["x2",""+(q.x+q.width)],["y2",""+vn]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(he,pt){var vn=q.x+De*(pt+1);tt.setAttributes(he,[["x1",""+vn],["y1",""+q.y],["x2",""+vn],["y2",""+(q.y+q.height)]])}),tt.setAttributes(this.cropShadeElement,[["d",tt.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 se=this.container.getBoundingClientRect();return{x:X-se.left+this.margin,y:q-se.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,se=X.y-this.previousPoint.y;this.zoomFactor!==1&&(q=-q/this.zoomFactor,se=-se/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+se),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),se=X.x-this.previousPoint.x,De=X.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:q.x+se<this.margin&&(se=this.margin-q.x),q.x+=se,q.width=this.cropRect.x+this.cropRect.width-q.x;break;case this.bottomRightGrip:case this.topRightGrip:q.width+se>this.canvasWidth*this.zoomFactor&&(se=this.canvasWidth*this.zoomFactor-q.width),q.width+=se}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(se),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,se=this.aspectRatio.getHorizontalLength(this.cropRect.height),De=this.aspectRatio.getVerticalLength(this.cropRect.width);se/this.canvasWidth<De/this.canvasHeight?this.cropRect.width=se: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,se,De,he,pt){var vn=se/X,Kn=De/q;return{x:(he.x-pt)*vn+pt,y:(he.y-pt)*Kn+pt,width:he.width*vn,height:he.height*Kn}},pe.prototype.scaleCanvas=function(X,q){var se=this.getRescaledRect(this.canvasWidth,this.canvasHeight,X,q,this.cropRect,this.margin);this.canvasWidth=X,this.canvasHeight=q,this.onCropChange&&this.onCropChange(se),this.setCropRectangle(se)},pe}(),ar=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();tt.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,se=1;se<=this.width/5+10;se++){var De=se%5==0?this.height/3:this.height/6;q+="h4v"+-De+"h1v"+De}q+="v1H0Z",this.scaleShape=tt.createPath(q);var he=tt.createTransform();this.scaleShape.transform.baseVal.appendItem(he),X.appendChild(this.scaleShape),this.angleLabelElement=tt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=tt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var pt=tt.createTSpan("");return pt.innerHTML="°",this.angleLabelElement.appendChild(pt),X.appendChild(this.angleLabelElement),document.body.removeChild(X),X},pe}(),mn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(X,q,se,De,he,pt,vn){var Kn=this;return new Promise(function(dr){var on=document.createElement("canvas");on.width=X.width.baseVal.value-2*De,on.height=X.height.baseVal.value-2*De;var Mn=1,Xn=1;Kn.naturalSize===!0?(Mn=q.naturalWidth/(X.width.baseVal.value-2*De)/pt,Xn=q.naturalHeight/(X.height.baseVal.value-2*De)/vn,on.width=q.naturalWidth/pt,on.height=q.naturalHeight/vn):Kn.width!==void 0&&Kn.height!==void 0&&(Mn=Kn.width/se.width,Xn=Kn.height/se.height,on.width*=Mn,on.height*=Xn);var $r=on.getContext("2d");$r.translate(on.width/2,on.height/2),$r.rotate(he*Math.PI/180),$r.scale(pt,vn),$r.translate(-on.width/2,-on.height/2),$r.drawImage(q,0,0,on.width,on.height);var ga=document.createElement("canvas");ga.width=se.width*Mn,ga.height=se.height*Xn,ga.getContext("2d").putImageData($r.getImageData((se.x-De)*Mn,(se.y-De)*Xn,se.width*Mn,se.height*Xn),0,0),dr(ga.toDataURL(Kn.imageType,Kn.imageQuality))})},pe}(),en=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 Ut(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,se=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,se)}},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",tt.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();tt.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=tt.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=tt.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=tt.createGroup(),this.editingTargetRotationScaleContainer=tt.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var X=tt.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(X);var q=tt.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(q),this.editingTargetContainer=tt.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=tt.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new pr(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 nn,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 Tn;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var se=[];this.aspectRatios.forEach(function(Xn){var $r=new sn(kn.getIcon(Xn.horizontal,Xn.vertical),Xn.horizontal===0&&Xn.vertical===0?"FREE":Xn.horizontal+":"+Xn.vertical);$r.onClick=function(){return X.ratioButtonClicked(Xn)},se.push($r)}),this.aspectRatioButton=new Yn(kn.getIcon(0,0),"Aspect ratio",se),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 sn('<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 he=new sn('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(he.isActive=this.zoomToCropEnabled,he.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,he.isActive=X.zoomToCropEnabled},q.addButton(he),!Lt.isLicensed){var pt=new un;this.topToolbar.addElementBlock(pt);var vn=document.createElement("div");vn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Kn=document.createElement("a");Kn.style.color="currentColor",Kn.href="https://markerjs.com/products/cropro",Kn.target="_blank",Kn.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>',vn.appendChild(Kn),pt.addElement(vn)}var dr=new Tn;dr.minWidth=3*this.toolbarHeight+"px",dr.contentAlign="end",this.topToolbar.addButtonBlock(dr);var on=new sn('<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");on.onClick=this.startRenderAndClose,dr.addButton(on),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(on.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Mn=new sn('<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");Mn.onClick=this.close,dr.addButton(Mn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Mn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new nn,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 Tn;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var se=new sn('<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");se.onClick=this.rotateLeftButtonClicked,q.addButton(se);var De=new sn('<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 he=new un;he.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(he),this.straightener=new ar("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(dr){X.rotateBy(dr),X.straightener.angle=X.rotationAngle},he.addElement(this.straightener.getUI());var pt=new Tn;pt.minWidth=2*this.toolbarHeight+"px",pt.contentAlign="end",this.bottomToolbar.addButtonBlock(pt);var vn=new sn('<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");vn.onClick=this.flipHorizontallyButtonClicked,pt.addButton(vn);var Kn=new sn('<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");Kn.onClick=this.flipVerticallyButtonClicked,pt.addButton(Kn)},pe.prototype.ratioButtonClicked=function(X){this.aspectRatio=X,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=kn.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 Jn(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 se=this.cropImage.getBoundingClientRect();return{x:X-se.left,y:q-se.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 se=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/se.width,this.imageHeight/se.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 yt(this,void 0,void 0,function(){var X,q;return Ot(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return X=se.sent(),q=this.getState(),this.renderEventListeners.forEach(function(De){return De(X,q)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return yt(this,void 0,void 0,function(){var X;return Ot(this,function(q){switch(q.label){case 0:return(X=new mn).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.width=this.renderWidth,X.height=this.renderHeight,this.unzoomFromCrop(),tt.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 Pt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Pt("."+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}(),Nn=o("8hTe"),Zr=o.n(Nn),zr=/<pre[^>]*>/g;function Ur(pe){var X=document.createElement("div");return X.innerHTML=pe,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var Dr=z.a=function(pe){var X=pe.value,q=X===void 0?"":X,se=pe.edit,De=se===void 0?!1:se,he=pe.className,pt=pe.showTextOnly,vn=pe.showLines,Kn=pe.replaces,dr=pe.zoomImg,on=pe.hasMask,Mn=pe.style,Xn=Mn===void 0?{}:Mn,$r=pe.stylesPrev,ga=$r===void 0?{}:$r,pa=String(q),fr=Object(f.useRef)(),za=Object(f.useRef)(),ja=Object(f.useState)(""),Ra=Object(A.a)(ja,2),Ha=Ra[0],wa=Ra[1],Ja=Object(f.useState)("office"),ka=Object(A.a)(Ja,2),li=ka[0],oi=ka[1],ua=function(){var Nt=new en(za.current);Nt.displayMode="popup",Nt.addRenderEventListener(function(){var Vt=Object(C.a)(e.a.mark(function $t(En){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return fr.current.style.display="none",An.next=3,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:En}});case 3:gn=An.sent,gn!=null&&gn.id&&Kn(za.current.getAttribute("src").replace(te.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 5:case"end":return An.stop()}},$t)}));return function($t){return Vt.apply(this,arguments)}}()),Nt.show()},fa=function(){var Nt=new Ae(za.current);Nt.settings.displayMode="popup",Nt.addEventListener("render",function(){var Vt=Object(C.a)(e.a.mark(function $t(En){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(fr.current.style.display="none",!za.current){An.next=6;break}return An.next=4,Object(Ce.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:En.dataUrl}});case 4:gn=An.sent,gn!=null&&gn.id&&Kn(za.current.getAttribute("src").replace(te.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 6:case"end":return An.stop()}},$t)}));return function($t){return Vt.apply(this,arguments)}}()),Nt.show(),window.markerArea=Nt},oa=Object(f.useMemo)(function(){fr.current&&(fr.current.style.zIndex=-1);try{var Ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;pa=pa.replace(Ht,"("+te.a.API_SERVER+"/api/attachments/").replace(Nt,'"'+te.a.API_SERVER+"/api/attachments/").replace(Vt,'"'+te.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(Un){}var $t=W(pa),En=U();if(pa.match(/\[TOC\]/)&&($t=$t.replace("<p>[TOC]</p>",P()),S()),$t=$t.replace(/(__special_katext_id_\d+__)/g,function(Un,An){var tn=En[An],Pn=tn.type,yn=tn.expression;return Object(fe.renderToString)(Ur(yn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),$t=$t.replace(/▁/g,"\u2581\u2581\u2581"),I(),pt){var gn=document.createElement("div");return gn.innerHTML=$t,gn.innerText}return setTimeout(function(){return Mt()},500),$t},[pa]),xe=Object(f.useRef)();E.WebkitLineClamp=vn,vn&&(Xn=Object(y.a)(Object(y.a)({},Xn),E));function lt(Ht){var Nt=Ht.target;if(Nt.tagName.toUpperCase()==="IMG"){if(dr){var Vt=Nt.getAttribute("src");wa(Vt),oi("image")}}else if(Nt.tagName.toUpperCase()==="A"){var $t=Nt.getAttribute("href");if($t.indexOf("office")>-1)Ht.preventDefault(),wa($t),oi("office");else if($t.indexOf("application/pdf")>-1)Ht.preventDefault(),wa($t),oi("pdf");else if($t.indexOf("text/html")>-1)Ht.preventDefault(),wa($t),oi("html");else if($t.startsWith("#")){Ht.preventDefault();var En=document.getElementById($t.replace("#",""));En&&En.scrollIntoView(!0)}}}var Mt=function(){var Nt,Vt=(Nt=xe.current)===null||Nt===void 0?void 0:Nt.querySelectorAll("video");Vt==null||Vt.forEach(function($t){if($t.oncontextmenu=function(){return!1},$t.src.indexOf(".m3u8")>-1&&!$t.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var En=new K.a;En.loadSource($t.src),En.attachMedia($t)}}})};Object(f.useEffect)(function(){if(xe.current&&oa&&(oa.match(zr)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",lt),function(){xe.current.removeEventListener("click",lt),I(),S()}},[oa,xe.current,lt]);var wt=function(Nt){if(!De)return;Nt.target.nodeName==="IMG"?(fr.current.style.zIndex=1,fr.current.style.display="flex",fr.current.style.width=Nt.target.clientWidth+"px",fr.current.style.height=Nt.target.clientHeight+"px",fr.current.style.top=Nt.target.offsetTop+"px",fr.current.style.left=Nt.target.offsetLeft+"px",za.current.src=Nt.target.getAttribute("src")):fr.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:xe,style:Object(y.a)({},Xn),className:"".concat(he||""," markdown-body ").concat(Zr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:oa}}),r.a.createElement("div",{ref:fr,className:Zr.a.button},r.a.createElement(m.a,null,r.a.createElement(b.a,{onClick:function(){return ua()}},"\u88C1\u526A"),r.a.createElement(b.a,{onClick:function(){return fa()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:za,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),r.a.createElement(de.a,{close:!0,data:Ha,type:Ha!=null&&Ha.length?li:"",style:Object(y.a)({},ga),onClose:function(){return wa("")}}))}},"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,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CTR=function(){var m=M.lib.BlockCipherMode.extend(),T=m.Encryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,g=this._iv,e=this._counter;g&&(e=this._counter=g.slice(0),this._iv=void 0);var f=e.slice(0);C.encryptBlock(f,0),e[A-1]=e[A-1]+1|0;for(var r=0;r<A;r++)b[y+r]^=f[r]}});return m.Decryptor=T,m}(),M.mode.CTR})},"9VGf":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var M=o("q1tI"),m=o.n(M);function T(b,y){var C=Object(M.useRef)();Object(M.useEffect)(function(){C.current=b}),Object(M.useEffect)(function(){function A(){C.current()}if(y!==null){var g=setInterval(A,y);return function(){return clearInterval(g)}}},[y])}},"9ZNV":function(k,z,o){"use strict";o.d(z,"a",function(){return f});var M=o("0Owb"),m=o("+L6B"),T=o("2/Rp"),b=o("q1tI"),y=o.n(b),C=o("UUDw"),A=o.n(C),g=o("TSYQ"),e=o.n(g),f=function(l){var n=l.cancelText,i=n===void 0?"\u53D6\u6D88":n,a=l.okText,c=a===void 0?"\u786E\u5B9A":a,h=l.loading,d=h===void 0?!1:h,s=l.hasOkBtn,u=s===void 0?!0:s,S=l.okButtonProps,E=S===void 0?{}:S,_=l.onCancel,P=_===void 0?function(){}:_,R=l.onOk,x=R===void 0?function(){}:R,w=l.className,v=w===void 0?"":w;return y.a.createElement("div",{className:e()(A.a.buttonFixed,v)},y.a.createElement("div",{className:A.a.buttonWrap},y.a.createElement(T.a,{size:"large",className:"".concat(A.a.button," mr20"),onClick:P},i),u&&y.a.createElement(T.a,Object(M.a)({size:"large",type:"primary",className:"".concat(A.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,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CFB=function(){var m=M.lib.BlockCipherMode.extend();m.Encryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize;T.call(this,b,y,A,C),this._prevBlock=b.slice(y,y+A)}}),m.Decryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,g=b.slice(y,y+A);T.call(this,b,y,A,C),this._prevBlock=g}});function T(b,y,C,A){var g,e=this._iv;e?(g=e.slice(0),this._iv=void 0):g=this._prevBlock,A.encryptBlock(g,0);for(var f=0;f<C;f++)b[y+f]^=g[f]}return m}(),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"),m="rc-util-key";function T(A){if(A.attachTo)return A.attachTo;var g=document.querySelector("head");return g||document.body}function b(A){var g,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(M.a)())return null;var f=document.createElement("style");if((g=e.csp)===null||g===void 0?void 0:g.nonce){var r;f.nonce=(r=e.csp)===null||r===void 0?void 0:r.nonce}f.innerHTML=A;var l=T(e),n=l.firstChild;return e.prepend&&l.prepend?l.prepend(f):e.prepend&&n?l.insertBefore(f,n):l.appendChild(f),f}var y=new Map;function C(A,g){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=T(e);if(!y.has(f)){var r=b("",e),l=r.parentNode;y.set(f,l),l.removeChild(r)}var n=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[m]===g});if(n){var i,a;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&n.nonce!==((a=e.csp)===null||a===void 0?void 0:a.nonce)){var c;n.nonce=(c=e.csp)===null||c===void 0?void 0:c.nonce}return n.innerHTML!==A&&(n.innerHTML=A),n}var h=b(A,e);return h[m]=g,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,r){if(r!=M.Init&&r&&e.removeKeyMap("autoCloseTags"),!f)return;var l={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(l["'/'"]=function(n){return C(n)}),(typeof f!="object"||f.whenOpening!==!1)&&(l["'>'"]=function(n){return b(n)}),e.addKeyMap(l)});var m=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["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(),r=[],l=e.getOption("autoCloseTags"),n=0;n<f.length;n++){if(!f[n].empty())return M.Pass;var i=f[n].head,a=e.getTokenAt(i),c=M.innerMode(e.getMode(),a.state),h=c.state,d=c.mode.xmlCurrentTag&&c.mode.xmlCurrentTag(h),s=d&&d.name;if(!s)return M.Pass;var u=c.mode.configuration=="html",S=typeof l=="object"&&l.dontCloseTags||u&&m,E=typeof l=="object"&&l.indentTags||u&&T;a.end>i.ch&&(s=s.slice(0,s.length-a.end+i.ch));var _=s.toLowerCase();if(!s||a.type=="string"&&(a.end!=i.ch||!/[\"\']/.test(a.string.charAt(a.string.length-1))||a.string.length==1)||a.type=="tag"&&d.close||a.string.indexOf("/")==i.ch-a.start-1||S&&A(S,_)>-1||g(e,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(h)||[],s,i,!0))return M.Pass;var P=typeof l=="object"&&l.emptyTags;if(P&&A(P,s)>-1){r[n]={text:"/>",newPos:M.Pos(i.line,i.ch+2)};continue}var R=E&&A(E,_)>-1;r[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 l=="object"&&l.dontIndentOnAutoClose,n=f.length-1;n>=0;n--){var w=r[n];e.replaceRange(w.text,f[n].head,f[n].anchor,"+insert");var v=e.listSelections().slice(0);v[n]={head:w.newPos,anchor:w.newPos},e.setSelections(v),!x&&w.indent&&(e.indentLine(w.newPos.line,null,!0),e.indentLine(w.newPos.line+1,null,!0))}}function y(e,f){for(var r=e.listSelections(),l=[],n=f?"/":"</",i=e.getOption("autoCloseTags"),a=typeof i=="object"&&i.dontIndentOnSlash,c=0;c<r.length;c++){if(!r[c].empty())return M.Pass;var h=r[c].head,d=e.getTokenAt(h),s=M.innerMode(e.getMode(),d.state),u=s.state;if(f&&(d.type=="string"||d.string.charAt(0)!="<"||d.start!=h.ch-1))return M.Pass;var S,E=s.mode.name!="xml"&&e.getMode().name=="htmlmixed";if(E&&s.mode.name=="javascript")S=n+"script";else if(E&&s.mode.name=="css")S=n+"style";else{var _=s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(u);if(!_||_.length&&g(e,_,_[_.length-1],h))return M.Pass;S=n+_[_.length-1]}e.getLine(h.line).charAt(d.end)!=">"&&(S+=">"),l[c]=S}if(e.replaceSelections(l),r=e.listSelections(),!a)for(var c=0;c<r.length;c++)(c==r.length-1||r[c].head.line<r[c+1].head.line)&&e.indentLine(r[c].head.line)}function C(e){return e.getOption("disableInput")?M.Pass:y(e,!0)}M.commands.closeTag=function(e){return y(e)};function A(e,f){if(e.indexOf)return e.indexOf(f);for(var r=0,l=e.length;r<l;++r)if(e[r]==f)return r;return-1}function g(e,f,r,l,n){if(!M.scanForClosingTag)return!1;var i=Math.min(e.lastLine()+1,l.line+500),a=M.scanForClosingTag(e,l,null,i);if(!a||a.tag!=r)return!1;for(var c=n?1:0,h=f.length-1;h>=0&&f[h]==r;h--)++c;l=a.to;for(var h=1;h<c;h++){var d=M.scanForClosingTag(e,l,null,i);if(!d||d.tag!=r)return!1;l=d.to}return!0}})},BdwD:function(k,z,o){"use strict";var M=o("+L6B"),m=o("2/Rp"),T=o("0Owb"),b=o("k1fw"),y=o("q1tI"),C=o.n(y),A=o("FOrL"),g=o.n(A),e=function(r){var l=r.buttonProps,n=l===void 0?{}:l,i=r.styles,a=i===void 0?{}:i,c=r.customText,h=r.ButtonText,d=r.ButtonClick,s=r.Buttonclass,u=r.ButtonTwo;return C.a.createElement("section",{className:"tc animated fadeIn",style:Object(b.a)(Object(b.a)({},{color:"#999",margin:"200px auto"}),a)},C.a.createElement("img",{src:g.a}),C.a.createElement("p",{className:"mt20 font14"},c||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),h&&C.a.createElement(m.a,Object(T.a)({className:s,onClick:d},n),h),u&&u)};z.a=e},BjJ7:function(k,z,o){"use strict";o.d(z,"d",function(){return m}),o.d(z,"c",function(){return T}),o.d(z,"e",function(){return b}),o.d(z,"b",function(){return y}),o.d(z,"a",function(){return A});var M=o("m3rI");function m(g){var e=!0;if(g.length>0){for(var f=0;f<g.length;f++)if(g[f].compile_success==0||!g[f].compile_success){e=!1;break}}else e=!1;return e}function T(g){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",f=[],r=0;r<g.length;r++){var l=g[r],n=e?"".concat(e,"/").concat(l.name):"".concat(l.name);f.push({title:l.name,isLeaf:!(l.type==="tree"),key:n})}return f}function b(g,e,f){for(var r=0;r<g.length;r++){var l=g[r];if(l.key===e){l.children=f;break}l.children&&b(l.children,e,f)}return g}function y(g,e,f){var r;return function(){var l=this,n=arguments,i=function(){r=null,f||g.apply(l,n)},a=f&&!r;clearTimeout(r),r=setTimeout(i,e),a&&g.apply(l,n)}}var C=!0,A=M.a.API_SERVER},Bq7L:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"C+DQ":function(k,z,o){},"C/vA":function(k,z,o){"use strict";o.d(z,"a",function(){return M});function M(m){const T=this;let b=!1,y;return function(){return b||(b=!0,y=m.apply(T,arguments)),y}}},"Cg/j":function(k,z,o){"use strict";o.d(z,"b",function(){return M}),o.d(z,"a",function(){return m}),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 A(g){return g[C.DI_DEPENDENCIES]||[]}C.getServiceDependencies=A})(M||(M={}));const m=b("instantiationService");function T(C,A,g,e){A[M.DI_TARGET]===A?A[M.DI_DEPENDENCIES].push({id:C,index:g,optional:e}):(A[M.DI_DEPENDENCIES]=[{id:C,index:g,optional:e}],A[M.DI_TARGET]=A)}function b(C){if(M.serviceIds.has(C))return M.serviceIds.get(C);const A=function(g,e,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");T(A,g,f,!1)};return A.toString=()=>C,M.serviceIds.set(C,A),A}function y(C){return function(A,g,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");T(C,A,e,!0)}}},"DDK+":function(k,z,o){"use strict";var M=o("+L6B"),m=o("2/Rp"),T=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),C=o("/ezw"),A=o("rAM+"),g=o("9og8"),e=o("tJVT"),f=o("7Kak"),r=o("9yH6"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),a=o.n(i),c=o("ErOA"),h=o("2qtc"),d=o("kLXV"),s=o("k1fw"),u=o("Se0u"),S=o("pUFm"),E=o.n(S);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 w($){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 O($){return Object(c.b)("teach_groups/".concat($,".json"))}var U=o("5NDa"),I=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,Se=$.id,oe=$.name;function ee(_e){me(_e)}var J=b.a.useForm(),Q=Object(e.a)(J,1),ve=Q[0];return Object(i.useEffect)(function(){ve.setFieldsValue({name:oe})},[oe]),a.a.createElement(d.a,{centered:!0,title:Se?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ae,footer:null},a.a.createElement(b.a,{layout:"vertical",form:ve,initialValues:{name:oe},onFinish:ee},a.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"}]},a.a.createElement(I.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),a.a.createElement(b.a.Item,null,a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(m.a,{type:"ghost",onClick:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",a.a.createElement(m.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,Se=$.onChangeGroupName,oe=$.onPlusMember,ee=$.onDelMember,J=$.onExitGroup,Q=Object(i.useState)(0),ve=Object(e.a)(Q,2),_e=ve[0],Te=ve[1],Ge=Object(i.useState)(0),qe=Object(e.a)(Ge,2),ut=qe[0],st=qe[1];function ft(ke){var dt=parseInt(ke.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(dt)}})}function gt(ke){var dt=parseInt(ke.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(){J(dt)}})}function Ve(ke,dt){d.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){ee(ke,dt)}})}return a.a.createElement("ul",{className:"teaching-list"},me.map(function(ke,dt){return a.a.createElement("li",{key:ke.id,onClick:function(){return Te(dt)}},a.a.createElement("div",{className:"item-group"},a.a.createElement("span",null,ke.name," \xA0"," ",dt!==_e&&a.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),a.a.createElement("div",{className:"action-group"},re?a.a.createElement("a",{onClick:function(){Se(ke)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,ke.is_creat?a.a.createElement("a",{id:ke.id+"",className:"c-grey-c",onClick:ft},"\u89E3\u6563"):a.a.createElement("a",{id:ke.id+"",className:"c-grey-c",onClick:gt},"\u9000\u51FA"))),dt===_e?a.a.createElement("ul",{className:"info"},ke.memers.map(function(Bt){return a.a.createElement("li",{key:Bt.id||Bt.name,onClick:function(){st(Bt.id)},className:ut===Bt.id?"active":""},a.a.createElement("div",null,Bt.name),ke.is_creat&&Bt.id&&ut===Bt.id?a.a.createElement("a",{className:"btn-del",onClick:function(Rt){Rt.preventDefault(),Rt.stopPropagation(),Ve(ke.id,ut)}},a.a.createElement(H.a,null)):null)}),re?a.a.createElement("li",null,a.a.createElement(m.a,{type:"link",disabled:ke.memers.length>=50,title:ke.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){oe(ke)}}," ",a.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},L=o("9kvl"),K=o("ju9d");function te($){var me=$.children;return a.a.createElement("div",{className:"no-data"},a.a.createElement("img",{src:E.a,alt:"no-data",width:300}),me)}var fe={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 Ce($,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 Oe($){var me,re=$.user,ae=Object(i.useReducer)(Ce,fe),Se=Object(e.a)(ae,2),oe=Se[0],ee=Se[1],J=oe.data,Q=oe.index,ve=oe.loading,_e=oe.showFormPanel,Te=oe.selectedGroup,Ge=oe.showMemberPanel,qe=(me=re.userInfo)===null||me===void 0?void 0:me.role,ut=Object(i.useMemo)(function(){var Ft=[],qt=[],bn=Object(A.a)(J),At;try{for(bn.s();!(At=bn.n()).done;){var Et=At.value;Et.is_creat?Ft.push(Et):qt.push(Et)}}catch(je){bn.e(je)}finally{bn.f()}return[Ft,qt]},[J]);Object(i.useEffect)(function(){qe===15&&ee({type:de.SETINDEX,payload:1})},[qe]);function st(){return ft.apply(this,arguments)}function ft(){return ft=Object(g.a)(n.a.mark(function Ft(){var qt;return n.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,_();case 2:qt=At.sent,ee({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:qt.groups}});case 4:case"end":return At.stop()}},Ft)})),ft.apply(this,arguments)}Object(i.useEffect)(function(){st()},[]);function gt(Ft){return Ve.apply(this,arguments)}function Ve(){return Ve=Object(g.a)(n.a.mark(function Ft(qt){return n.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(!Te.id){At.next=5;break}return At.next=3,R(Te.id,qt);case 3:At.next=7;break;case 5:return At.next=7,P(qt);case 7:st();case 8:case"end":return At.stop()}},Ft)})),Ve.apply(this,arguments)}function ke(){ee({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function dt(Ft){ee({type:de.SELECTGROUP,payload:Ft})}function Bt(){ee({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function vt(){ee({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Rt(Ft){ee({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Ft}})}function ot(Ft,qt){return Je.apply(this,arguments)}function Je(){return Je=Object(g.a)(n.a.mark(function Ft(qt,bn){return n.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,v(qt,bn);case 2:st();case 3:case"end":return Et.stop()}},Ft)})),Je.apply(this,arguments)}function et(Ft){return Me.apply(this,arguments)}function Me(){return Me=Object(g.a)(n.a.mark(function Ft(qt){return n.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,O(qt);case 2:st();case 3:case"end":return At.stop()}},Ft)})),Me.apply(this,arguments)}function Be(Ft){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(g.a)(n.a.mark(function Ft(qt){return n.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,w(qt);case 2:st();case 3:case"end":return At.stop()}},Ft)})),Xe.apply(this,arguments)}function Ke(Ft){ee({type:de.SETINDEX,payload:parseInt(Ft.target.id,10)})}function $e(Ft,qt){return _t.apply(this,arguments)}function _t(){return _t=Object(g.a)(n.a.mark(function Ft(qt,bn){return n.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return vt(),Et.next=3,x({user_ids:qt,group_id:bn});case 3:st();case 4:case"end":return Et.stop()}},Ft)})),_t.apply(this,arguments)}return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"teaching-circling-container"},a.a.createElement("h3",null," ","\u6559\u7814\u56E2\u961F"," ",qe<=12&&a.a.createElement(m.a,{type:"primary",disabled:J.length>=50,title:J.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:ke},"\u65B0\u5EFA")," "),a.a.createElement("div",{className:"teaching-circling-body"},qe===15?null:a.a.createElement("ul",{className:"navs"},a.a.createElement("li",{className:Q===0?"active":""},a.a.createElement("a",{id:"0",onClick:Ke},"\u6211\u521B\u5EFA\u7684")),a.a.createElement("li",{className:Q===1?"active":""},a.a.createElement("a",{id:"1",onClick:Ke},"\u6211\u52A0\u5165\u7684"))),a.a.createElement("div",{className:ut[Q].length===0?"nodata-content":"main-content"},ut[Q].length===0?a.a.createElement(te,null,qe<=12?a.a.createElement(a.a.Fragment,null," ",a.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",a.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):a.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):a.a.createElement(F,{onExitGroup:Be,onPlusMember:Rt,onDelMember:ot,onDelGroup:et,isAdminOrTeacher:qe<=12,onChangeGroupName:dt,data:ut[Q]}))),a.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," ","* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"," ")),a.a.createElement(N,{callback:gt,visible:_e,onCancel:Bt,id:Te.id,name:Te.name}),a.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Ge,onCancel:vt,footer:null,width:1100,bodyStyle:{minHeight:200}},a.a.createElement(K.a,{container_id:Te.id,container_type:4,onSelect:$e,onCancel:vt})))}var ce=Object(L.a)(function($){var me=$.user;return{user:me}})(Oe),Ee=o("SLjR"),ye=o("55Ip"),ue=r.a.Group,le=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),Se=Object(e.a)(ae,2),oe=Se[0],ee=Se[1],J=Object(i.useState)(!0),Q=Object(e.a)(J,2),ve=Q[0],_e=Q[1];Object(i.useEffect)(function(){function qe(){return ut.apply(this,arguments)}function ut(){return ut=Object(g.a)(n.a.mark(function st(){var ft,gt;return n.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(c.c)("teach_groups/my.json");case 2:ft=ke.sent,gt=ft.groups,ee(gt),_e(!1);case 6:case"end":return ke.stop()}},st)})),ut.apply(this,arguments)}qe()},[]);var Te=Object(i.useMemo)(function(){var qe=[],ut=[],st=Object(A.a)(oe),ft;try{for(st.s();!(ft=st.n()).done;){var gt=ft.value;gt.is_creat?qe.push(gt):ut.push(gt)}}catch(Ve){st.e(Ve)}finally{st.f()}return[qe,ut]},[oe]);function Ge(qe){me(qe)}return a.a.createElement(b.a,{className:"select-teach-group",onFinish:Ge},ve?a.a.createElement(C.a,{paragraph:!0}):oe.length===0?a.a.createElement(te,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",a.a.createElement(ye.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):a.a.createElement(a.a.Fragment,null,a.a.createElement(b.a.Item,{name:"group_id"},a.a.createElement(ue,null,a.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),a.a.createElement("ul",{className:"groups"},Te[0].map(function(qe){return a.a.createElement("li",{key:qe.id},a.a.createElement(r.a,{value:qe.id},qe.name))})),a.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),a.a.createElement("ul",{className:"groups"},Te[1].map(function(qe){return a.a.createElement("li",{key:qe.id},a.a.createElement(r.a,{value:qe.id},qe.name))})))),a.a.createElement("div",{className:"btn-actions"},a.a.createElement(m.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),a.a.createElement(m.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(k,z,o){(function(M,m){k.exports=m()})(this,function(){"use strict";function M(ot,Je){for(var et=0;et<Je.length;et++){var Me=Je[et];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(ot,Me.key,Me)}}function m(ot,Je,et){return Je&&M(ot.prototype,Je),et&&M(ot,et),ot}function T(ot,Je){if(!ot)return;if(typeof ot=="string")return b(ot,Je);var et=Object.prototype.toString.call(ot).slice(8,-1);if(et==="Object"&&ot.constructor&&(et=ot.constructor.name),et==="Map"||et==="Set")return Array.from(ot);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return b(ot,Je)}function b(ot,Je){(Je==null||Je>ot.length)&&(Je=ot.length);for(var et=0,Me=new Array(Je);et<Je;et++)Me[et]=ot[et];return Me}function y(ot,Je){var et;if(typeof Symbol=="undefined"||ot[Symbol.iterator]==null){if(Array.isArray(ot)||(et=T(ot))||Je&&ot&&typeof ot.length=="number"){et&&(ot=et);var Me=0;return function(){return Me>=ot.length?{done:!0}:{done:!1,value:ot[Me++]}}}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 et=ot[Symbol.iterator](),et.next.bind(et)}function C(ot,Je){return Je={exports:{}},ot(Je,Je.exports),Je.exports}var A=C(function(ot){function Je(){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 et(Me){ot.exports.defaults=Me}ot.exports={defaults:Je(),getDefaults:Je,changeDefaults:et}}),g=A.defaults,e=A.getDefaults,f=A.changeDefaults,r=/[&<>"']/,l=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,a={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(Je){return a[Je]};function h(ot,Je){if(Je){if(r.test(ot))return ot.replace(l,c)}else if(n.test(ot))return ot.replace(i,c);return ot}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(ot){return ot.replace(d,function(Je,et){return et=et.toLowerCase(),et==="colon"?":":et.charAt(0)==="#"?et.charAt(1)==="x"?String.fromCharCode(parseInt(et.substring(2),16)):String.fromCharCode(+et.substring(1)):""})}var u=/(^|[^\[])\^/g;function S(ot,Je){ot=ot.source||ot,Je=Je||"";var et={replace:function(Be,Xe){return Xe=Xe.source||Xe,Xe=Xe.replace(u,"$1"),ot=ot.replace(Be,Xe),et},getRegex:function(){return new RegExp(ot,Je)}};return et}var E=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(ot,Je,et){if(ot){var Me;try{Me=decodeURIComponent(s(et)).replace(E,"").toLowerCase()}catch(Be){return null}if(Me.indexOf("javascript:")===0||Me.indexOf("vbscript:")===0||Me.indexOf("data:")===0)return null}Je&&!_.test(et)&&(et=O(Je,et));try{et=encodeURI(et).replace(/%25/g,"%")}catch(Be){return null}return et}var R={},x=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function O(ot,Je){R[" "+ot]||(x.test(ot)?R[" "+ot]=ot+"/":R[" "+ot]=V(ot,"/",!0)),ot=R[" "+ot];var et=ot.indexOf(":")===-1;return Je.substring(0,2)==="//"?et?Je:ot.replace(w,"$1")+Je:Je.charAt(0)==="/"?et?Je:ot.replace(v,"$1")+Je:ot+Je}var U={exec:function(){}};function I(ot){for(var Je=1,et,Me;Je<arguments.length;Je++){et=arguments[Je];for(Me in et)Object.prototype.hasOwnProperty.call(et,Me)&&(ot[Me]=et[Me])}return ot}function N(ot,Je){var et=ot.replace(/\|/g,function(Xe,Ke,$e){for(var _t=!1,Ft=Ke;--Ft>=0&&$e[Ft]==="\\";)_t=!_t;return _t?"|":" |"}),Me=et.split(/ \|/),Be=0;if(Me.length>Je)Me.splice(Je);else for(;Me.length<Je;)Me.push("");for(;Be<Me.length;Be++)Me[Be]=Me[Be].trim().replace(/\\\|/g,"|");return Me}function V(ot,Je,et){var Me=ot.length;if(Me===0)return"";for(var Be=0;Be<Me;){var Xe=ot.charAt(Me-Be-1);if(Xe===Je&&!et)Be++;else if(Xe!==Je&&et)Be++;else break}return ot.substr(0,Me-Be)}function H(ot,Je){if(ot.indexOf(Je[1])===-1)return-1;for(var et=ot.length,Me=0,Be=0;Be<et;Be++)if(ot[Be]==="\\")Be++;else if(ot[Be]===Je[0])Me++;else if(ot[Be]===Je[1]&&(Me--,Me<0))return Be;return-1}function D(ot){ot&&ot.sanitize&&!ot.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:S,cleanUrl:P,resolveUrl:O,noopTest:U,merge:I,splitCells:N,rtrim:V,findClosingBracket:H,checkSanitizeDeprecation:D},F=A.defaults,L=W.rtrim,K=W.splitCells,te=W.escape,fe=W.findClosingBracket;function de(ot,Je,et){var Me=Je.href,Be=Je.title?te(Je.title):null,Xe=ot[1].replace(/\\([\[\]])/g,"$1");return ot[0].charAt(0)!=="!"?{type:"link",raw:et,href:Me,title:Be,text:Xe}:{type:"image",raw:et,href:Me,title:Be,text:te(Xe)}}function Ce(ot,Je){var et=ot.match(/^(\s+)(?:```)/);if(et===null)return Je;var Me=et[1];return Je.split(`
|
|
|
`).map(function(Be){var Xe=Be.match(/^\s+/);if(Xe===null)return Be;var Ke=Xe[0];return Ke.length>=Me.length?Be.slice(Me.length):Be}).join(`
|
|
|
`)}var Oe=function(){function ot(et){this.options=et||F}var Je=ot.prototype;return Je.space=function(Me){var Be=this.rules.block.newline.exec(Me);if(Be)return Be[0].length>1?{type:"space",raw:Be[0]}:{raw:`
|
|
|
`}},Je.code=function(Me,Be){var Xe=this.rules.block.code.exec(Me);if(Xe){var Ke=Be[Be.length-1];if(Ke&&Ke.type==="paragraph")return{raw:Xe[0],text:Xe[0].trimRight()};var $e=Xe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Xe[0],codeBlockStyle:"indented",text:this.options.pedantic?$e:L($e,`
|
|
|
`)}}},Je.fences=function(Me){var Be=this.rules.block.fences.exec(Me);if(Be){var Xe=Be[0],Ke=Ce(Xe,Be[3]||"");return{type:"code",raw:Xe,lang:Be[2]?Be[2].trim():Be[2],text:Ke}}},Je.heading=function(Me){var Be=this.rules.block.heading.exec(Me);if(Be)return{type:"heading",raw:Be[0],depth:Be[1].length,text:Be[2]}},Je.nptable=function(Me){var Be=this.rules.block.nptable.exec(Me);if(Be){var Xe={type:"table",header:K(Be[1].replace(/^ *| *\| *$/g,"")),align:Be[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Be[3]?Be[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:Be[0]};if(Xe.header.length===Xe.align.length){var Ke=Xe.align.length,$e;for($e=0;$e<Ke;$e++)/^ *-+: *$/.test(Xe.align[$e])?Xe.align[$e]="right":/^ *:-+: *$/.test(Xe.align[$e])?Xe.align[$e]="center":/^ *:-+ *$/.test(Xe.align[$e])?Xe.align[$e]="left":Xe.align[$e]=null;for(Ke=Xe.cells.length,$e=0;$e<Ke;$e++)Xe.cells[$e]=K(Xe.cells[$e],Xe.header.length);return Xe}}},Je.hr=function(Me){var Be=this.rules.block.hr.exec(Me);if(Be)return{type:"hr",raw:Be[0]}},Je.blockquote=function(Me){var Be=this.rules.block.blockquote.exec(Me);if(Be){var Xe=Be[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Be[0],text:Xe}}},Je.list=function(Me){var Be=this.rules.block.list.exec(Me);if(Be){for(var Xe=Be[0],Ke=Be[2],$e=Ke.length>1,_t=Ke[Ke.length-1]===")",Ft={type:"list",raw:Xe,ordered:$e,start:$e?+Ke.slice(0,-1):"",loose:!1,items:[]},qt=Be[0].match(this.rules.block.item),bn=!1,At,Et,je,rt,at,Ae,Fe,Tt=qt.length,yt=0;yt<Tt;yt++)At=qt[yt],Xe=At,Et=At.length,At=At.replace(/^ *([*+-]|\d+[.)]) */,""),~At.indexOf(`
|
|
|
`)&&(Et-=At.length,At=this.options.pedantic?At.replace(/^ {1,4}/gm,""):At.replace(new RegExp("^ {1,"+Et+"}","gm"),"")),yt!==Tt-1&&(je=this.rules.block.bullet.exec(qt[yt+1])[0],($e?je.length===1||!_t&&je[je.length-1]===")":je.length>1||this.options.smartLists&&je!==Ke)&&(rt=qt.slice(yt+1).join(`
|
|
|
`),Ft.raw=Ft.raw.substring(0,Ft.raw.length-rt.length),yt=Tt-1)),at=bn||/\n\n(?!\s*$)/.test(At),yt!==Tt-1&&(bn=At.charAt(At.length-1)===`
|
|
|
`,at||(at=bn)),at&&(Ft.loose=!0),Ae=/^\[[ xX]\] /.test(At),Fe=void 0,Ae&&(Fe=At[1]!==" ",At=At.replace(/^\[[ xX]\] +/,"")),Ft.items.push({type:"list_item",raw:Xe,task:Ae,checked:Fe,loose:at,text:At});return Ft}},Je.html=function(Me){var Be=this.rules.block.html.exec(Me);if(Be)return{type:this.options.sanitize?"paragraph":"html",raw:Be[0],pre:!this.options.sanitizer&&(Be[1]==="pre"||Be[1]==="script"||Be[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):te(Be[0]):Be[0]}},Je.def=function(Me){var Be=this.rules.block.def.exec(Me);if(Be){Be[3]&&(Be[3]=Be[3].substring(1,Be[3].length-1));var Xe=Be[1].toLowerCase().replace(/\s+/g," ");return{tag:Xe,raw:Be[0],href:Be[2],title:Be[3]}}},Je.table=function(Me){var Be=this.rules.block.table.exec(Me);if(Be){var Xe={type:"table",header:K(Be[1].replace(/^ *| *\| *$/g,"")),align:Be[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Be[3]?Be[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(Xe.header.length===Xe.align.length){Xe.raw=Be[0];var Ke=Xe.align.length,$e;for($e=0;$e<Ke;$e++)/^ *-+: *$/.test(Xe.align[$e])?Xe.align[$e]="right":/^ *:-+: *$/.test(Xe.align[$e])?Xe.align[$e]="center":/^ *:-+ *$/.test(Xe.align[$e])?Xe.align[$e]="left":Xe.align[$e]=null;for(Ke=Xe.cells.length,$e=0;$e<Ke;$e++)Xe.cells[$e]=K(Xe.cells[$e].replace(/^ *\| *| *\| *$/g,""),Xe.header.length);return Xe}}},Je.lheading=function(Me){var Be=this.rules.block.lheading.exec(Me);if(Be)return{type:"heading",raw:Be[0],depth:Be[2].charAt(0)==="="?1:2,text:Be[1]}},Je.paragraph=function(Me){var Be=this.rules.block.paragraph.exec(Me);if(Be)return{type:"paragraph",raw:Be[0],text:Be[1].charAt(Be[1].length-1)===`
|
|
|
`?Be[1].slice(0,-1):Be[1]}},Je.text=function(Me,Be){var Xe=this.rules.block.text.exec(Me);if(Xe){var Ke=Be[Be.length-1];return Ke&&Ke.type==="text"?{raw:Xe[0],text:Xe[0]}:{type:"text",raw:Xe[0],text:Xe[0]}}},Je.escape=function(Me){var Be=this.rules.inline.escape.exec(Me);if(Be)return{type:"escape",raw:Be[0],text:te(Be[1])}},Je.tag=function(Me,Be,Xe){var Ke=this.rules.inline.tag.exec(Me);if(Ke)return!Be&&/^<a /i.test(Ke[0])?Be=!0:Be&&/^<\/a>/i.test(Ke[0])&&(Be=!1),!Xe&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ke[0])?Xe=!0:Xe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ke[0])&&(Xe=!1),{type:this.options.sanitize?"text":"html",raw:Ke[0],inLink:Be,inRawBlock:Xe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ke[0]):te(Ke[0]):Ke[0]}},Je.link=function(Me){var Be=this.rules.inline.link.exec(Me);if(Be){var Xe=fe(Be[2],"()");if(Xe>-1){var Ke=Be[0].indexOf("!")===0?5:4,$e=Ke+Be[1].length+Xe;Be[2]=Be[2].substring(0,Xe),Be[0]=Be[0].substring(0,$e).trim(),Be[3]=""}var _t=Be[2],Ft="";if(this.options.pedantic){var qt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(_t);qt?(_t=qt[1],Ft=qt[3]):Ft=""}else Ft=Be[3]?Be[3].slice(1,-1):"";_t=_t.trim().replace(/^<([\s\S]*)>$/,"$1");var bn=de(Be,{href:_t&&_t.replace(this.rules.inline._escapes,"$1"),title:Ft&&Ft.replace(this.rules.inline._escapes,"$1")},Be[0]);return bn}},Je.reflink=function(Me,Be){var Xe;if((Xe=this.rules.inline.reflink.exec(Me))||(Xe=this.rules.inline.nolink.exec(Me))){var Ke=(Xe[2]||Xe[1]).replace(/\s+/g," ");if(Ke=Be[Ke.toLowerCase()],!Ke||!Ke.href){var $e=Xe[0].charAt(0);return{type:"text",raw:$e,text:$e}}var _t=de(Xe,Ke,Xe[0]);return _t}},Je.strong=function(Me,Be,Xe){Xe===void 0&&(Xe="");var Ke=this.rules.inline.strong.start.exec(Me);if(Ke&&(!Ke[1]||Ke[1]&&(Xe===""||this.rules.inline.punctuation.exec(Xe)))){Be=Be.slice(-1*Me.length);var $e=Ke[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;$e.lastIndex=0;for(var _t;(Ke=$e.exec(Be))!=null;)if(_t=this.rules.inline.strong.middle.exec(Be.slice(0,Ke.index+3)),_t)return{type:"strong",raw:Me.slice(0,_t[0].length),text:Me.slice(2,_t[0].length-2)}}},Je.em=function(Me,Be,Xe){Xe===void 0&&(Xe="");var Ke=this.rules.inline.em.start.exec(Me);if(Ke&&(!Ke[1]||Ke[1]&&(Xe===""||this.rules.inline.punctuation.exec(Xe)))){Be=Be.slice(-1*Me.length);var $e=Ke[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;$e.lastIndex=0;for(var _t;(Ke=$e.exec(Be))!=null;)if(_t=this.rules.inline.em.middle.exec(Be.slice(0,Ke.index+2)),_t)return{type:"em",raw:Me.slice(0,_t[0].length),text:Me.slice(1,_t[0].length-1)}}},Je.codespan=function(Me){var Be=this.rules.inline.code.exec(Me);if(Be){var Xe=Be[2].replace(/\n/g," "),Ke=/[^ ]/.test(Xe),$e=Xe.startsWith(" ")&&Xe.endsWith(" ");return Ke&&$e&&(Xe=Xe.substring(1,Xe.length-1)),Xe=te(Xe,!0),{type:"codespan",raw:Be[0],text:Xe}}},Je.br=function(Me){var Be=this.rules.inline.br.exec(Me);if(Be)return{type:"br",raw:Be[0]}},Je.del=function(Me){var Be=this.rules.inline.del.exec(Me);if(Be)return{type:"del",raw:Be[0],text:Be[1]}},Je.autolink=function(Me,Be){var Xe=this.rules.inline.autolink.exec(Me);if(Xe){var Ke,$e;return Xe[2]==="@"?(Ke=te(this.options.mangle?Be(Xe[1]):Xe[1]),$e="mailto:"+Ke):(Ke=te(Xe[1]),$e=Ke),{type:"link",raw:Xe[0],text:Ke,href:$e,tokens:[{type:"text",raw:Ke,text:Ke}]}}},Je.url=function(Me,Be){var Xe;if(Xe=this.rules.inline.url.exec(Me)){var Ke,$e;if(Xe[2]==="@")Ke=te(this.options.mangle?Be(Xe[0]):Xe[0]),$e="mailto:"+Ke;else{var _t;do _t=Xe[0],Xe[0]=this.rules.inline._backpedal.exec(Xe[0])[0];while(_t!==Xe[0]);Ke=te(Xe[0]),Xe[1]==="www."?$e="http://"+Ke:$e=Ke}return{type:"link",raw:Xe[0],text:Ke,href:$e,tokens:[{type:"text",raw:Ke,text:Ke}]}}},Je.inlineText=function(Me,Be,Xe){var Ke=this.rules.inline.text.exec(Me);if(Ke){var $e;return Be?$e=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ke[0]):te(Ke[0]):Ke[0]:$e=te(this.options.smartypants?Xe(Ke[0]):Ke[0]),{type:"text",raw:Ke[0],text:$e}}},ot}(),ce=W.noopTest,Ee=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=Ee(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=Ee(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=Ee(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=Ee(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=Ee(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=Ee(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=Ee(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=Ee(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:Ee(`^ *(?: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:Ee(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 le={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])/};le._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",le.punctuation=Ee(le.punctuation).replace(/punctuation/g,le._punctuation).getRegex(),le._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",le._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",le.em.start=Ee(le.em.start).replace(/punctuation/g,le._punctuation).getRegex(),le.em.middle=Ee(le.em.middle).replace(/punctuation/g,le._punctuation).replace(/overlapSkip/g,le._overlapSkip).getRegex(),le.em.endAst=Ee(le.em.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.em.endUnd=Ee(le.em.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.start=Ee(le.strong.start).replace(/punctuation/g,le._punctuation).getRegex(),le.strong.middle=Ee(le.strong.middle).replace(/punctuation/g,le._punctuation).replace(/blockSkip/g,le._blockSkip).getRegex(),le.strong.endAst=Ee(le.strong.endAst,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.strong.endUnd=Ee(le.strong.endUnd,"g").replace(/punctuation/g,le._punctuation).getRegex(),le.blockSkip=Ee(le._blockSkip,"g").getRegex(),le.overlapSkip=Ee(le._overlapSkip,"g").getRegex(),le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,le._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])?)+(?![-_])/,le.autolink=Ee(le.autolink).replace("scheme",le._scheme).replace("email",le._email).getRegex(),le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,le.tag=Ee(le.tag).replace("comment",ue._comment).replace("attribute",le._attribute).getRegex(),le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,le._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,le.link=Ee(le.link).replace("label",le._label).replace("href",le._href).replace("title",le._title).getRegex(),le.reflink=Ee(le.reflink).replace("label",le._label).getRegex(),le.reflinkSearch=Ee(le.reflinkSearch,"g").replace("reflink",le.reflink).replace("nolink",le.nolink).getRegex(),le.normal=ye({},le),le.pedantic=ye({},le.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",le._label).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",le._label).getRegex()}),le.gfm=ye({},le.normal,{escape:Ee(le.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),le.gfm.url=Ee(le.gfm.url,"i").replace("email",le.gfm._extended_email).getRegex(),le.breaks=ye({},le.gfm,{br:Ee(le.br).replace("{2,}","*").getRegex(),text:Ee(le.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var $={block:ue,inline:le},me=A.defaults,re=$.block,ae=$.inline;function Se(ot){return ot.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 oe(ot){var Je="",et,Me,Be=ot.length;for(et=0;et<Be;et++)Me=ot.charCodeAt(et),Math.random()>.5&&(Me="x"+Me.toString(16)),Je+="&#"+Me+";";return Je}var ee=function(){function ot(et){this.tokens=[],this.tokens.links=Object.create(null),this.options=et||me,this.options.tokenizer=this.options.tokenizer||new Oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Me={block:re.normal,inline:ae.normal};this.options.pedantic?(Me.block=re.pedantic,Me.inline=ae.pedantic):this.options.gfm&&(Me.block=re.gfm,this.options.breaks?Me.inline=ae.breaks:Me.inline=ae.gfm),this.tokenizer.rules=Me}ot.lex=function(Me,Be){var Xe=new ot(Be);return Xe.lex(Me)};var Je=ot.prototype;return Je.lex=function(Me){return Me=Me.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Me,this.tokens,!0),this.inline(this.tokens),this.tokens},Je.blockTokens=function(Me,Be,Xe){Be===void 0&&(Be=[]),Xe===void 0&&(Xe=!0),Me=Me.replace(/^ +$/gm,"");for(var Ke,$e,_t,Ft;Me;){if(Ke=this.tokenizer.space(Me)){Me=Me.substring(Ke.raw.length),Ke.type&&Be.push(Ke);continue}if(Ke=this.tokenizer.code(Me,Be)){Me=Me.substring(Ke.raw.length),Ke.type?Be.push(Ke):(Ft=Be[Be.length-1],Ft.raw+=`
|
|
|
`+Ke.raw,Ft.text+=`
|
|
|
`+Ke.text);continue}if(Ke=this.tokenizer.fences(Me)){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Ke=this.tokenizer.heading(Me)){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Ke=this.tokenizer.nptable(Me)){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Ke=this.tokenizer.hr(Me)){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Ke=this.tokenizer.blockquote(Me)){Me=Me.substring(Ke.raw.length),Ke.tokens=this.blockTokens(Ke.text,[],Xe),Be.push(Ke);continue}if(Ke=this.tokenizer.list(Me)){for(Me=Me.substring(Ke.raw.length),_t=Ke.items.length,$e=0;$e<_t;$e++)Ke.items[$e].tokens=this.blockTokens(Ke.items[$e].text,[],!1);Be.push(Ke);continue}if(Ke=this.tokenizer.html(Me)){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Xe&&(Ke=this.tokenizer.def(Me))){Me=Me.substring(Ke.raw.length),this.tokens.links[Ke.tag]||(this.tokens.links[Ke.tag]={href:Ke.href,title:Ke.title});continue}if(Ke=this.tokenizer.table(Me)){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Ke=this.tokenizer.lheading(Me)){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Xe&&(Ke=this.tokenizer.paragraph(Me))){Me=Me.substring(Ke.raw.length),Be.push(Ke);continue}if(Ke=this.tokenizer.text(Me,Be)){Me=Me.substring(Ke.raw.length),Ke.type?Be.push(Ke):(Ft=Be[Be.length-1],Ft.raw+=`
|
|
|
`+Ke.raw,Ft.text+=`
|
|
|
`+Ke.text);continue}if(Me){var qt="Infinite loop on byte: "+Me.charCodeAt(0);if(this.options.silent){console.error(qt);break}else throw new Error(qt)}}return Be},Je.inline=function(Me){var Be,Xe,Ke,$e,_t,Ft,qt=Me.length;for(Be=0;Be<qt;Be++){Ft=Me[Be];switch(Ft.type){case"paragraph":case"text":case"heading":{Ft.tokens=[],this.inlineTokens(Ft.text,Ft.tokens);break}case"table":{for(Ft.tokens={header:[],cells:[]},$e=Ft.header.length,Xe=0;Xe<$e;Xe++)Ft.tokens.header[Xe]=[],this.inlineTokens(Ft.header[Xe],Ft.tokens.header[Xe]);for($e=Ft.cells.length,Xe=0;Xe<$e;Xe++)for(_t=Ft.cells[Xe],Ft.tokens.cells[Xe]=[],Ke=0;Ke<_t.length;Ke++)Ft.tokens.cells[Xe][Ke]=[],this.inlineTokens(_t[Ke],Ft.tokens.cells[Xe][Ke]);break}case"blockquote":{this.inline(Ft.tokens);break}case"list":{for($e=Ft.items.length,Xe=0;Xe<$e;Xe++)this.inline(Ft.items[Xe].tokens);break}}}return Me},Je.inlineTokens=function(Me,Be,Xe,Ke,$e){Be===void 0&&(Be=[]),Xe===void 0&&(Xe=!1),Ke===void 0&&(Ke=!1),$e===void 0&&($e="");var _t,Ft=Me,qt;if(this.tokens.links){var bn=Object.keys(this.tokens.links);if(bn.length>0)for(;(qt=this.tokenizer.rules.inline.reflinkSearch.exec(Ft))!=null;)bn.includes(qt[0].slice(qt[0].lastIndexOf("[")+1,-1))&&(Ft=Ft.slice(0,qt.index)+"["+"a".repeat(qt[0].length-2)+"]"+Ft.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qt=this.tokenizer.rules.inline.blockSkip.exec(Ft))!=null;)Ft=Ft.slice(0,qt.index)+"["+"a".repeat(qt[0].length-2)+"]"+Ft.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Me;){if(_t=this.tokenizer.escape(Me)){Me=Me.substring(_t.raw.length),Be.push(_t);continue}if(_t=this.tokenizer.tag(Me,Xe,Ke)){Me=Me.substring(_t.raw.length),Xe=_t.inLink,Ke=_t.inRawBlock,Be.push(_t);continue}if(_t=this.tokenizer.link(Me)){Me=Me.substring(_t.raw.length),_t.type==="link"&&(_t.tokens=this.inlineTokens(_t.text,[],!0,Ke)),Be.push(_t);continue}if(_t=this.tokenizer.reflink(Me,this.tokens.links)){Me=Me.substring(_t.raw.length),_t.type==="link"&&(_t.tokens=this.inlineTokens(_t.text,[],!0,Ke)),Be.push(_t);continue}if(_t=this.tokenizer.strong(Me,Ft,$e)){Me=Me.substring(_t.raw.length),_t.tokens=this.inlineTokens(_t.text,[],Xe,Ke),Be.push(_t);continue}if(_t=this.tokenizer.em(Me,Ft,$e)){Me=Me.substring(_t.raw.length),_t.tokens=this.inlineTokens(_t.text,[],Xe,Ke),Be.push(_t);continue}if(_t=this.tokenizer.codespan(Me)){Me=Me.substring(_t.raw.length),Be.push(_t);continue}if(_t=this.tokenizer.br(Me)){Me=Me.substring(_t.raw.length),Be.push(_t);continue}if(_t=this.tokenizer.del(Me)){Me=Me.substring(_t.raw.length),_t.tokens=this.inlineTokens(_t.text,[],Xe,Ke),Be.push(_t);continue}if(_t=this.tokenizer.autolink(Me,oe)){Me=Me.substring(_t.raw.length),Be.push(_t);continue}if(!Xe&&(_t=this.tokenizer.url(Me,oe))){Me=Me.substring(_t.raw.length),Be.push(_t);continue}if(_t=this.tokenizer.inlineText(Me,Ke,Se)){Me=Me.substring(_t.raw.length),$e=_t.raw.slice(-1),Be.push(_t);continue}if(Me){var At="Infinite loop on byte: "+Me.charCodeAt(0);if(this.options.silent){console.error(At);break}else throw new Error(At)}}return Be},m(ot,null,[{key:"rules",get:function(){return{block:re,inline:ae}}}]),ot}(),J=A.defaults,Q=W.cleanUrl,ve=W.escape,_e=function(){function ot(et){this.options=et||J}var Je=ot.prototype;return Je.code=function(Me,Be,Xe){var Ke=(Be||"").match(/\S*/)[0];if(this.options.highlight){var $e=this.options.highlight(Me,Ke);$e!=null&&$e!==Me&&(Xe=!0,Me=$e)}return Ke?'<pre><code class="'+this.options.langPrefix+ve(Ke,!0)+'">'+(Xe?Me:ve(Me,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(Xe?Me:ve(Me,!0))+`</code></pre>
|
|
|
`},Je.blockquote=function(Me){return`<blockquote>
|
|
|
`+Me+`</blockquote>
|
|
|
`},Je.html=function(Me){return Me},Je.heading=function(Me,Be,Xe,Ke){return this.options.headerIds?"<h"+Be+' id="'+this.options.headerPrefix+Ke.slug(Xe)+'">'+Me+"</h"+Be+`>
|
|
|
`:"<h"+Be+">"+Me+"</h"+Be+`>
|
|
|
`},Je.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Je.list=function(Me,Be,Xe){var Ke=Be?"ol":"ul",$e=Be&&Xe!==1?' start="'+Xe+'"':"";return"<"+Ke+$e+`>
|
|
|
`+Me+"</"+Ke+`>
|
|
|
`},Je.listitem=function(Me){return"<li>"+Me+`</li>
|
|
|
`},Je.checkbox=function(Me){return"<input "+(Me?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Je.paragraph=function(Me){return"<p>"+Me+`</p>
|
|
|
`},Je.table=function(Me,Be){return Be&&(Be="<tbody>"+Be+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Me+`</thead>
|
|
|
`+Be+`</table>
|
|
|
`},Je.tablerow=function(Me){return`<tr>
|
|
|
`+Me+`</tr>
|
|
|
`},Je.tablecell=function(Me,Be){var Xe=Be.header?"th":"td",Ke=Be.align?"<"+Xe+' align="'+Be.align+'">':"<"+Xe+">";return Ke+Me+"</"+Xe+`>
|
|
|
`},Je.strong=function(Me){return"<strong>"+Me+"</strong>"},Je.em=function(Me){return"<em>"+Me+"</em>"},Je.codespan=function(Me){return"<code>"+Me+"</code>"},Je.br=function(){return this.options.xhtml?"<br/>":"<br>"},Je.del=function(Me){return"<del>"+Me+"</del>"},Je.link=function(Me,Be,Xe){if(Me=Q(this.options.sanitize,this.options.baseUrl,Me),Me===null)return Xe;var Ke='<a href="'+ve(Me)+'"';return Be&&(Ke+=' title="'+Be+'"'),Ke+=">"+Xe+"</a>",Ke},Je.image=function(Me,Be,Xe){if(Me=Q(this.options.sanitize,this.options.baseUrl,Me),Me===null)return Xe;var Ke='<img src="'+Me+'" alt="'+Xe+'"';return Be&&(Ke+=' title="'+Be+'"'),Ke+=this.options.xhtml?"/>":">",Ke},Je.text=function(Me){return Me},ot}(),Te=function(){function ot(){}var Je=ot.prototype;return Je.strong=function(Me){return Me},Je.em=function(Me){return Me},Je.codespan=function(Me){return Me},Je.del=function(Me){return Me},Je.html=function(Me){return Me},Je.text=function(Me){return Me},Je.link=function(Me,Be,Xe){return""+Xe},Je.image=function(Me,Be,Xe){return""+Xe},Je.br=function(){return""},ot}(),Ge=function(){function ot(){this.seen={}}var Je=ot.prototype;return Je.slug=function(Me){var Be=Me.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Be)){var Xe=Be;do this.seen[Xe]++,Be=Xe+"-"+this.seen[Xe];while(this.seen.hasOwnProperty(Be))}return this.seen[Be]=0,Be},ot}(),qe=A.defaults,ut=W.unescape,st=function(){function ot(et){this.options=et||qe,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Ge}ot.parse=function(Me,Be){var Xe=new ot(Be);return Xe.parse(Me)};var Je=ot.prototype;return Je.parse=function(Me,Be){Be===void 0&&(Be=!0);var Xe="",Ke,$e,_t,Ft,qt,bn,At,Et,je,rt,at,Ae,Fe,Tt,yt,Ot,Lt,tt,Ut=Me.length;for(Ke=0;Ke<Ut;Ke++){rt=Me[Ke];switch(rt.type){case"space":continue;case"hr":{Xe+=this.renderer.hr();continue}case"heading":{Xe+=this.renderer.heading(this.parseInline(rt.tokens),rt.depth,ut(this.parseInline(rt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Xe+=this.renderer.code(rt.text,rt.lang,rt.escaped);continue}case"table":{for(Et="",At="",Ft=rt.header.length,$e=0;$e<Ft;$e++)At+=this.renderer.tablecell(this.parseInline(rt.tokens.header[$e]),{header:!0,align:rt.align[$e]});for(Et+=this.renderer.tablerow(At),je="",Ft=rt.cells.length,$e=0;$e<Ft;$e++){for(bn=rt.tokens.cells[$e],At="",qt=bn.length,_t=0;_t<qt;_t++)At+=this.renderer.tablecell(this.parseInline(bn[_t]),{header:!1,align:rt.align[_t]});je+=this.renderer.tablerow(At)}Xe+=this.renderer.table(Et,je);continue}case"blockquote":{je=this.parse(rt.tokens),Xe+=this.renderer.blockquote(je);continue}case"list":{for(at=rt.ordered,Ae=rt.start,Fe=rt.loose,Ft=rt.items.length,je="",$e=0;$e<Ft;$e++)yt=rt.items[$e],Ot=yt.checked,Lt=yt.task,Tt="",yt.task&&(tt=this.renderer.checkbox(Ot),Fe?yt.tokens.length>0&&yt.tokens[0].type==="text"?(yt.tokens[0].text=tt+" "+yt.tokens[0].text,yt.tokens[0].tokens&&yt.tokens[0].tokens.length>0&&yt.tokens[0].tokens[0].type==="text"&&(yt.tokens[0].tokens[0].text=tt+" "+yt.tokens[0].tokens[0].text)):yt.tokens.unshift({type:"text",text:tt}):Tt+=tt),Tt+=this.parse(yt.tokens,Fe),je+=this.renderer.listitem(Tt,Lt,Ot);Xe+=this.renderer.list(je,at,Ae);continue}case"html":{Xe+=this.renderer.html(rt.text);continue}case"paragraph":{Xe+=this.renderer.paragraph(this.parseInline(rt.tokens));continue}case"text":{for(je=rt.tokens?this.parseInline(rt.tokens):rt.text;Ke+1<Ut&&Me[Ke+1].type==="text";)rt=Me[++Ke],je+=`
|
|
|
`+(rt.tokens?this.parseInline(rt.tokens):rt.text);Xe+=Be?this.renderer.paragraph(je):je;continue}default:{var Pt='Token with "'+rt.type+'" type was not found.';if(this.options.silent){console.error(Pt);return}else throw new Error(Pt)}}}return Xe},Je.parseInline=function(Me,Be){Be=Be||this.renderer;var Xe="",Ke,$e,_t=Me.length;for(Ke=0;Ke<_t;Ke++){$e=Me[Ke];switch($e.type){case"escape":{Xe+=Be.text($e.text);break}case"html":{Xe+=Be.html($e.text);break}case"link":{Xe+=Be.link($e.href,$e.title,this.parseInline($e.tokens,Be));break}case"image":{Xe+=Be.image($e.href,$e.title,$e.text);break}case"strong":{Xe+=Be.strong(this.parseInline($e.tokens,Be));break}case"em":{Xe+=Be.em(this.parseInline($e.tokens,Be));break}case"codespan":{Xe+=Be.codespan($e.text);break}case"br":{Xe+=Be.br();break}case"del":{Xe+=Be.del(this.parseInline($e.tokens,Be));break}case"text":{Xe+=Be.text($e.text);break}default:{var Ft='Token with "'+$e.type+'" type was not found.';if(this.options.silent){console.error(Ft);return}else throw new Error(Ft)}}}return Xe},ot}(),ft=W.merge,gt=W.checkSanitizeDeprecation,Ve=W.escape,ke=A.getDefaults,dt=A.changeDefaults,Bt=A.defaults;function vt(ot,Je,et){if(typeof ot=="undefined"||ot===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ot!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ot)+", string expected");if(typeof Je=="function"&&(et=Je,Je=null),Je=ft({},vt.defaults,Je||{}),gt(Je),et){var Me=Je.highlight,Be;try{Be=ee.lex(ot,Je)}catch(_t){return et(_t)}var Xe=function(Ft){var qt;if(!Ft)try{qt=st.parse(Be,Je)}catch(bn){Ft=bn}return Je.highlight=Me,Ft?et(Ft):et(null,qt)};if(!Me||Me.length<3)return Xe();if(delete Je.highlight,!Be.length)return Xe();var Ke=0;vt.walkTokens(Be,function(_t){_t.type==="code"&&(Ke++,setTimeout(function(){Me(_t.text,_t.lang,function(Ft,qt){if(Ft)return Xe(Ft);qt!=null&&qt!==_t.text&&(_t.text=qt,_t.escaped=!0),Ke--,Ke===0&&Xe()})},0))}),Ke===0&&Xe();return}try{var $e=ee.lex(ot,Je);return Je.walkTokens&&vt.walkTokens($e,Je.walkTokens),st.parse($e,Je)}catch(_t){if(_t.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Je.silent)return"<p>An error occurred:</p><pre>"+Ve(_t.message+"",!0)+"</pre>";throw _t}}vt.options=vt.setOptions=function(ot){return ft(vt.defaults,ot),dt(vt.defaults),vt},vt.getDefaults=ke,vt.defaults=Bt,vt.use=function(ot){var Je=ft({},ot);if(ot.renderer&&function(){var Me=vt.defaults.renderer||new _e,Be=function($e){var _t=Me[$e];Me[$e]=function(){for(var Ft=arguments.length,qt=new Array(Ft),bn=0;bn<Ft;bn++)qt[bn]=arguments[bn];var At=ot.renderer[$e].apply(Me,qt);return At===!1&&(At=_t.apply(Me,qt)),At}};for(var Xe in ot.renderer)Be(Xe);Je.renderer=Me}(),ot.tokenizer&&function(){var Me=vt.defaults.tokenizer||new Oe,Be=function($e){var _t=Me[$e];Me[$e]=function(){for(var Ft=arguments.length,qt=new Array(Ft),bn=0;bn<Ft;bn++)qt[bn]=arguments[bn];var At=ot.tokenizer[$e].apply(Me,qt);return At===!1&&(At=_t.apply(Me,qt)),At}};for(var Xe in ot.tokenizer)Be(Xe);Je.tokenizer=Me}(),ot.walkTokens){var et=vt.defaults.walkTokens;Je.walkTokens=function(Me){ot.walkTokens(Me),et&&et(Me)}}vt.setOptions(Je)},vt.walkTokens=function(ot,Je){for(var et=y(ot),Me;!(Me=et()).done;){var Be=Me.value;Je(Be);switch(Be.type){case"table":{for(var Xe=y(Be.tokens.header),Ke;!(Ke=Xe()).done;){var $e=Ke.value;vt.walkTokens($e,Je)}for(var _t=y(Be.tokens.cells),Ft;!(Ft=_t()).done;)for(var qt=Ft.value,bn=y(qt),At;!(At=bn()).done;){var Et=At.value;vt.walkTokens(Et,Je)}break}case"list":{vt.walkTokens(Be.items,Je);break}default:Be.tokens&&vt.walkTokens(Be.tokens,Je)}}},vt.Parser=st,vt.parser=st.parse,vt.Renderer=_e,vt.TextRenderer=Te,vt.Lexer=ee,vt.lexer=ee.lex,vt.Tokenizer=Oe,vt.Slugger=Ge,vt.parse=vt;var Rt=vt;return Rt})},E4JC:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.StreamCipher,y=m.algo,C=[],A=[],g=[],e=y.Rabbit=b.extend({_doReset:function(){for(var r=this._key.words,l=this.cfg.iv,n=0;n<4;n++)r[n]=(r[n]<<8|r[n]>>>24)&16711935|(r[n]<<24|r[n]>>>8)&4278255360;var i=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],a=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var n=0;n<4;n++)f.call(this);for(var n=0;n<8;n++)a[n]^=i[n+4&7];if(l){var c=l.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,S=s>>>16|u&4294901760,E=u<<16|s&65535;a[0]^=s,a[1]^=S,a[2]^=u,a[3]^=E,a[4]^=s,a[5]^=S,a[6]^=u,a[7]^=E;for(var n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(r,l){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,r[l+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var r=this._X,l=this._C,n=0;n<8;n++)A[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<A[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<A[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<A[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<A[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<A[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<A[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<A[6]>>>0?1:0)|0,this._b=l[7]>>>0<A[7]>>>0?1:0;for(var n=0;n<8;n++){var i=r[n]+l[n],a=i&65535,c=i>>>16,h=((a*a>>>17)+a*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);g[n]=h^d}r[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,r[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,r[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,r[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,r[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,r[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,r[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,r[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}m.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,m=[],T=0;T<o.rangeCount;T++)m.push(o.getRangeAt(T));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||m.forEach(function(b){o.addRange(b)}),M&&M.focus()}}},EGTK:function(k,z,o){"use strict";var M=o("R9oj"),m=o("ECub"),T=o("T2oS"),b=o("W9HT"),y=o("5NDa"),C=o("5rEg"),A=o("k1fw"),g=o("9og8"),e=o("tJVT"),f=o("WmNS"),r=o.n(f),l=o("q1tI"),n=o.n(l),i=o("TSYQ"),a=o.n(i),c=o("dGDm"),h=o.n(c),d=o("Lai7"),s=o.n(d),u=o("ErOA"),S=o("LvDl"),E=o.n(S),_=function(x){var w=x.className,v=x.dispatch,O=x.skin,U=O===void 0?"white":O,I=x.value,N=I===void 0?null:I,V=x.loading,H=V===void 0?!1:V,D=x.data,W=D===void 0?[]:D,F=x.otherData,L=F===void 0?[]:F,K=x.tags,te=K===void 0?[]:K,fe=x.onChange,de=fe===void 0?function(){}:fe,Ce=Object(l.useState)(""),Oe=Object(e.a)(Ce,2),ce=Oe[0],Ee=Oe[1],ye=Object(l.useState)(!1),ue=Object(e.a)(ye,2),le=ue[0],$=ue[1],me=Object(l.useState)([]),re=Object(e.a)(me,2),ae=re[0],Se=re[1],oe=Object(l.useState)(0),ee=Object(e.a)(oe,2),J=ee[0],Q=ee[1],ve=Object(l.useRef)(null),_e=Object(l.useRef)(String(Math.floor(Math.random()*1e6))).current,Te=Object(l.useRef)(),Ge=Object(l.useRef)(null),qe=Object(l.useRef)(0),ut=Object(l.useRef)([]);Object(l.useEffect)(function(){return window.addEventListener("keydown",st),function(){window.removeEventListener("keydown",st)}},[ce,le,ae]);var st=function($e){if(!le||$e.keyCode!==40&&$e.keyCode!==38)return;var _t=0;$e.keyCode===40&&le&&(J<ae.length-1?_t=J+1:_t=0,console.log("\u4E0B"),ke(_t,"down")),$e.keyCode===38&&le&&(J===0?_t=ae.length-1:_t=J-1,ke(_t,"up")),Q(_t),gt(ce,_t,!0)},ft=function($e,_t){var Ft=function(At){var Et=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,je={};return je["^"]="\\^",je["."]="\\.",je["\\"]="\\\\",je["|"]="\\|",je["("]="\\(",je[")"]="\\)",je["*"]="\\*",je["+"]="\\+",je["-"]="\\-",je.$="$",je["["]="\\[",je["]"]="\\]",je["?"]="\\?",At=At.replace(Et,function(rt){return je[rt]}),At},qt=new RegExp(Ft(_t),"gi");return $e=$e.replace(qt,function(bn){return"<span style='color:#0152d9;'>"+bn+"</span>"}),$e},gt=function(){var Ke=Object(g.a)(r.a.mark(function $e(_t,Ft,qt){var bn,At,Et;return r.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(bn=qe.current+1,qe.current=bn,At=function(Ae){var Fe=Ae==null?void 0:Ae.map(function(Tt,yt){var Ot=Tt.id,Lt=Tt.name,tt=Object(A.a)(Object(A.a)({},Tt),{},{label:n.a.createElement("ul",{id:"search-".concat(_e,"-").concat(yt),onClick:function(){return vt(Ot,tt)},className:yt===Ft?h.a.searchListActive:h.a.searchList},n.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:ft(Lt,_t)}}),Tt.private&&n.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return tt});return Fe},!qt){rt.next=7;break}return Et=At(ut.current),Se(Et),rt.abrupt("return");case 7:clearTimeout(Ge.current),Ge.current=setTimeout(Object(g.a)(r.a.mark(function at(){var Ae,Fe,Tt,yt;return r.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,Object(u.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:_t,page:1,limit:1e5}});case 2:Ae=Lt.sent,(Ae==null?void 0:Ae.status)===0&&(Tt=At((Ae==null||((Fe=Ae.data)===null||Fe===void 0)?void 0:Fe.mirrors)||[]),bn===qe.current&&(Se(Tt),ut.current=Object(S.cloneDeep)((Ae==null||((yt=Ae.data)===null||yt===void 0)?void 0:yt.mirrors)||[])));case 4:case"end":return Lt.stop()}},at)})),300);case 9:case"end":return rt.stop()}},$e)}));return function(_t,Ft,qt){return Ke.apply(this,arguments)}}(),Ve=function($e){var _t=document.getElementById("scroll-".concat(_e,"-").concat($e));if(!_t)return;var Ft=document.getElementById("scroll-".concat(_e));Ft.scrollTo(0,_t.offsetTop)},ke=function($e,_t){var Ft=document.getElementById("search-".concat(_e,"-").concat($e));if(!Ft)return;var qt=document.getElementById("search-".concat(_e)),bn=Ft.offsetTop-qt.scrollTop>0&&Ft.offsetTop-qt.scrollTop<qt.clientHeight;if(bn)return;_t==="down"?qt.scrollTo(0,Ft.offsetTop-qt.clientHeight+Ft.clientHeight):qt.scrollTo(0,Ft.offsetTop)},dt=function($e){gt($e,0),Ee($e)},Bt=function($e){var _t,Ft;if(!ae.length)return;var qt=ae==null||((_t=ae[J])===null||_t===void 0)?void 0:_t.id;de(qt),Se([]),Q(0),Ee(ae==null||((Ft=ae[J])===null||Ft===void 0)?void 0:Ft.name),Ve(qt),Te.current.blur()},vt=function($e,_t){de($e),Se([]),Q(0),Ee(_t==null?void 0:_t.name),Ve($e)},Rt=function(){Se([]),Ee("")},ot=function($e){de($e),Se([]),Ee("")},Je=function(){return ce===""?n.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):n.a.createElement("i",{onClick:Rt,className:"iconfont icon-shanchu4 c-grey-c"})},et=function(){v({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Me=function(){v({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},Be=function(){ve.current=setTimeout(function(){$(!1),Q(0)},200)},Xe=!(W!=null&&W.length)&&!(L!=null&&L.length);return n.a.createElement("div",{className:a()(U==="night"?h.a.darklySelectEnvironment:h.a.selectEnvironment,w)},!Xe&&n.a.createElement("div",{className:h.a.search},n.a.createElement(C.a,{suffix:Je(),bordered:!1,ref:Te,value:ce,onKeyDown:function($e){($e.keyCode===40||$e.keyCode===38)&&$e.preventDefault()},size:"large",onFocus:function(){clearTimeout(ve.current),dt(ce),$(!0)},onBlur:Be,onChange:function($e){return dt($e.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:Bt}),le&&n.a.createElement("div",{id:"search-".concat(_e),className:h.a.searchListWrap},ae.map(function(Ke,$e){return n.a.createElement(n.a.Fragment,{key:$e}," ",Ke.label)}))),H?n.a.createElement(b.a,{className:h.a.spin}):n.a.createElement(n.a.Fragment,null,Xe&&n.a.createElement(m.a,{style:{margin:"60px 0"},image:s.a,description:n.a.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),!!te.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},te.map(function(Ke,$e){return n.a.createElement("li",{key:$e,onClick:function(){return ot(Ke.id)},className:N===Ke.id?"".concat(h.a.tag," ").concat(h.a.tagActive):h.a.tag},Ke.name)}))),n.a.createElement("aside",{className:h.a.wrap,id:"scroll-".concat(_e)},W.map(function(Ke,$e){var _t;return Ke!=null&&(_t=Ke.image)!==null&&_t!==void 0&&_t.length?n.a.createElement(P,{key:$e,data:Ke,id:N,handleClick:function(qt){return ot(qt)}}):null}),n.a.createElement("ul",{className:h.a.allList},L.map(function(Ke){return n.a.createElement("li",{key:"key-".concat(Ke.id),id:"scroll-".concat(_e,"-").concat(Ke.id),className:Ke.id===N?"".concat(h.a.item," ").concat(h.a.itemActive):h.a.item,onClick:function(){return de(Ke.id)}},n.a.createElement("div",{className:h.a.name},Ke.name),Ke.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:et}," ","\u7533\u8BF7\u65B0\u5EFA"),n.a.createElement("span",{className:h.a.p2,onClick:Me}," ","\u5728\u7EBF\u521B\u5EFA")))},P=function(x){var w=x.data,v=x.id,O=x.handleClick,U=Object(l.useState)(!0),I=Object(e.a)(U,2),N=I[0],V=I[1],H=w.name,D=w.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 O(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 m={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=M.Pos;M.defineOption("autoCloseBrackets",!1,function(a,c,h){h&&h!=M.Init&&(a.removeKeyMap(y),a.state.closeBrackets=null),c&&(C(b(c,"pairs")),a.state.closeBrackets=c,a.addKeyMap(y))});function b(a,c){return c=="pairs"&&typeof a=="string"?a:typeof a=="object"&&a[c]!=null?a[c]:m[c]}var y={Backspace:e,Enter:f};function C(a){for(var c=0;c<a.length;c++){var h=a.charAt(c),d="'"+h+"'";y[d]||(y[d]=A(h))}}C(m.pairs+"`");function A(a){return function(c){return l(c,a)}}function g(a){var c=a.state.closeBrackets;if(!c||c.override)return c;var h=a.getModeAt(a.getCursor());return h.closeBrackets||c}function e(a){var c=g(a);if(!c||a.getOption("disableInput"))return M.Pass;for(var h=b(c,"pairs"),d=a.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return M.Pass;var u=n(a,d[s].head);if(!u||h.indexOf(u)%2!=0)return M.Pass}for(var s=d.length-1;s>=0;s--){var S=d[s].head;a.replaceRange("",T(S.line,S.ch-1),T(S.line,S.ch+1),"+delete")}}function f(a){var c=g(a),h=c&&b(c,"explode");if(!h||a.getOption("disableInput"))return M.Pass;for(var d=a.listSelections(),s=0;s<d.length;s++){if(!d[s].empty())return M.Pass;var u=n(a,d[s].head);if(!u||h.indexOf(u)%2!=0)return M.Pass}a.operation(function(){var S=a.lineSeparator()||`
|
|
|
`;a.replaceSelection(S+S,null),a.execCommand("goCharLeft"),d=a.listSelections();for(var E=0;E<d.length;E++){var _=d[E].head.line;a.indentLine(_,null,!0),a.indentLine(_+1,null,!0)}})}function r(a){var c=M.cmpPos(a.anchor,a.head)>0;return{anchor:new T(a.anchor.line,a.anchor.ch+(c?-1:1)),head:new T(a.head.line,a.head.ch+(c?1:-1))}}function l(a,c){var h=g(a);if(!h||a.getOption("disableInput"))return M.Pass;var d=b(h,"pairs"),s=d.indexOf(c);if(s==-1)return M.Pass;for(var u=b(h,"closeBefore"),S=b(h,"triples"),E=d.charAt(s+1)==c,_=a.listSelections(),P=s%2==0,R,x=0;x<_.length;x++){var w=_[x],v=w.head,O,U=a.getRange(v,T(v.line,v.ch+1));if(P&&!w.empty())O="surround";else if((E||!P)&&U==c)E&&i(a,v)?O="both":S.indexOf(c)>=0&&a.getRange(v,T(v.line,v.ch+3))==c+c+c?O="skipThree":O="skip";else if(E&&v.ch>1&&S.indexOf(c)>=0&&a.getRange(T(v.line,v.ch-2),v)==c+c){if(v.ch>2&&/\bstring/.test(a.getTokenTypeAt(T(v.line,v.ch-2))))return M.Pass;O="addFour"}else if(E){var I=v.ch==0?" ":a.getRange(T(v.line,v.ch-1),v);if(!M.isWordChar(U)&&I!=c&&!M.isWordChar(I))O="both";else return M.Pass}else if(P&&(U.length===0||/\s/.test(U)||u.indexOf(U)>-1))O="both";else return M.Pass;if(!R)R=O;else if(R!=O)return M.Pass}var N=s%2?d.charAt(s-1):c,V=s%2?c:d.charAt(s+1);a.operation(function(){if(R=="skip")a.execCommand("goCharRight");else if(R=="skipThree")for(var H=0;H<3;H++)a.execCommand("goCharRight");else if(R=="surround"){for(var D=a.getSelections(),H=0;H<D.length;H++)D[H]=N+D[H]+V;a.replaceSelections(D,"around"),D=a.listSelections().slice();for(var H=0;H<D.length;H++)D[H]=r(D[H]);a.setSelections(D)}else R=="both"?(a.replaceSelection(N+V,null),a.triggerElectric(N+V),a.execCommand("goCharLeft")):R=="addFour"&&(a.replaceSelection(N+N+N+N,"before"),a.execCommand("goCharRight"))})}function n(a,c){var h=a.getRange(T(c.line,c.ch-1),T(c.line,c.ch+1));return h.length==2?h:null}function i(a,c){var h=a.getTokenAt(T(c.line,c.ch+1));return/\bstring/.test(h.type)&&h.start==c.ch&&(c.ch==0||!/\bstring/.test(a.getTokenTypeAt(c)))}})},ELcG:function(k,z,o){(function(M,m){k.exports=z=m(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(m){var T=M,b=T.lib,y=b.WordArray,C=b.Hasher,A=T.algo,g=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]),r=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=y.create([0,1518500249,1859775393,2400959708,2840853838]),n=y.create([1352829926,1548603684,1836072691,2053994217,0]),i=A.RIPEMD160=C.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,E){for(var _=0;_<16;_++){var P=E+_,R=S[P];S[P]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var x=this._hash.words,w=l.words,v=n.words,O=g.words,U=e.words,I=f.words,N=r.words,V,H,D,W,F,L,K,te,fe,de;L=V=x[0],K=H=x[1],te=D=x[2],fe=W=x[3],de=F=x[4];for(var Ce,_=0;_<80;_+=1)Ce=V+S[E+O[_]]|0,_<16?Ce+=a(H,D,W)+w[0]:_<32?Ce+=c(H,D,W)+w[1]:_<48?Ce+=h(H,D,W)+w[2]:_<64?Ce+=d(H,D,W)+w[3]:Ce+=s(H,D,W)+w[4],Ce=Ce|0,Ce=u(Ce,I[_]),Ce=Ce+F|0,V=F,F=W,W=u(D,10),D=H,H=Ce,Ce=L+S[E+U[_]]|0,_<16?Ce+=s(K,te,fe)+v[0]:_<32?Ce+=d(K,te,fe)+v[1]:_<48?Ce+=h(K,te,fe)+v[2]:_<64?Ce+=c(K,te,fe)+v[3]:Ce+=a(K,te,fe)+v[4],Ce=Ce|0,Ce=u(Ce,N[_]),Ce=Ce+de|0,L=de,de=fe,fe=u(te,10),te=K,K=Ce;Ce=x[1]+D+fe|0,x[1]=x[2]+W+de|0,x[2]=x[3]+F+L|0,x[3]=x[4]+V+K|0,x[4]=x[0]+H+te|0,x[0]=Ce},_doFinalize:function(){var S=this._data,E=S.words,_=this._nDataBytes*8,P=S.sigBytes*8;E[P>>>5]|=128<<24-P%32,E[(P+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,S.sigBytes=(E.length+1)*4,this._process();for(var R=this._hash,x=R.words,w=0;w<5;w++){var v=x[w];x[w]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return R},clone:function(){var S=C.clone.call(this);return S._hash=this._hash.clone(),S}});function a(S,E,_){return S^E^_}function c(S,E,_){return S&E|~S&_}function h(S,E,_){return(S|~E)^_}function d(S,E,_){return S&_|E&~_}function s(S,E,_){return S^(E|~_)}function u(S,E){return S<<E|S>>>32-E}T.RIPEMD160=C._createHelper(i),T.HmacRIPEMD160=C._createHmacHelper(i)}(Math),M.RIPEMD160})},ETIr:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.WordArray,y=m.enc,C=y.Base64={stringify:function(g){var e=g.words,f=g.sigBytes,r=this._map;g.clamp();for(var l=[],n=0;n<f;n+=3)for(var i=e[n>>>2]>>>24-n%4*8&255,a=e[n+1>>>2]>>>24-(n+1)%4*8&255,c=e[n+2>>>2]>>>24-(n+2)%4*8&255,h=i<<16|a<<8|c,d=0;d<4&&n+d*.75<f;d++)l.push(r.charAt(h>>>6*(3-d)&63));var s=r.charAt(64);if(s)for(;l.length%4;)l.push(s);return l.join("")},parse:function(g){var e=g.length,f=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var l=0;l<f.length;l++)r[f.charCodeAt(l)]=l}var n=f.charAt(64);if(n){var i=g.indexOf(n);i!==-1&&(e=i)}return A(g,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function A(g,e,f){for(var r=[],l=0,n=0;n<e;n++)if(n%4){var i=f[g.charCodeAt(n-1)]<<n%4*2,a=f[g.charCodeAt(n)]>>>6-n%4*2,c=i|a;r[l>>>2]|=c<<24-l%4*8,l++}return b.create(r,l)}}(),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,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){if(typeof ArrayBuffer!="function")return;var m=M,T=m.lib,b=T.WordArray,y=b.init,C=b.init=function(A){if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),(A instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)&&(A=new Uint8Array(A.buffer,A.byteOffset,A.byteLength)),A instanceof Uint8Array){for(var g=A.byteLength,e=[],f=0;f<g;f++)e[f>>>2]|=A[f]<<24-f%4*8;y.call(this,e,g)}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(m,T){if(!m)throw new Error(T?`Assertion failed (${T})`:"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"),m=o("2/Rp"),T=o("DZo9"),b=o("8z0m"),y=o("miYZ"),C=o("tsqr"),A=o("9og8"),g=o("2qtc"),e=o("kLXV"),f=o("y8nQ"),r=o("Vl3Y"),l=o("tJVT"),n=o("PpiC"),i=o("5NDa"),a=o("5rEg"),c=o("WmNS"),h=o.n(c),d=o("q1tI"),s=o.n(d),u=o("9kvl"),S=o("m3rI"),E=o("FPkq"),_=o.n(E),P=o("qB8g"),R=o.n(P),x=a.a.TextArea,w=function(O){var U=O.newShixuns,I=O.globalSetting,N=O.loading,V=O.dispatch,H=Object(n.a)(O,["newShixuns","globalSetting","loading","dispatch"]),D=r.a.useForm(),W=Object(l.a)(D,1),F=W[0],L=Object(d.useState)([]),K=Object(l.a)(L,2),te=K[0],fe=K[1],de=function(ue){var le=["uploading","done","removed"];le.includes(ue.file.status)&&fe(ue.fileList)},Ce=function(ue){if(!ue.percent||ue.percent==100){var le,$=(le=ue.response)===null||le===void 0?void 0:le.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(A.a)(h.a.mark(function ae(){var Se;return h.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,V({type:"newShixuns/deleteAttachment",payload:{id:$}});case 2:Se=ee.sent,Se&&fe(te.filter(function(J){var Q;return((Q=J.response)===null||Q===void 0?void 0:Q.id)!==$}));case 4:case"end":return ee.stop()}},ae)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Oe=function(ue){if(te.length)return!1;var le=ue.size/1024/1024>50;return le?(C.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var ye=Object(A.a)(h.a.mark(function ue(le){var $,me,re,ae,Se,oe,ee,J;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=le||{},ae=re.language,Se=re.env,oe=re.mode,ee=re.code,ve.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ae,runtime:Se,run_method:oe,attachment_id:te==null||(($=te[0])===null||$===void 0||((me=$.response)===null||me===void 0))?void 0:me.id}});case 3:J=ve.sent,V({type:"newShixuns/setActionTabs",payload:{}}),J&&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(le){return ye.apply(this,arguments)}}(),Ee=function(){F.resetFields(),fe([])};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:Ee},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(r.a,{className:R.a.formWrap,form:F,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(r.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(r.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},s.a.createElement(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(r.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},s.a.createElement(x,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(r.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:R.a.upload},s.a.createElement(b.a,{fileList:te,action:"".concat(S.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:Ce,beforeUpload:Oe,withCredentials:!0},s.a.createElement("span",{className:"".concat(R.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(R.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:R.a.footerWrap},s.a.createElement(r.a.Item,null,s.a.createElement(m.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(m.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};z.a=Object(u.a)(function(v){var O=v.newShixuns,U=v.loading,I=v.globalSetting;return{newShixuns:O,globalSetting:I,loading:U.effects}})(w)},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,m,T){k.exports=z=m(o("Ib8C"),o("lPiR"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.WordArray,y=m.algo,C=y.SHA256,A=y.SHA224=C.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var g=C._doFinalize.call(this);return g.sigBytes-=4,g}});m.SHA224=C._createHelper(A),m.HmacSHA224=C._createHmacHelper(A)}(),M.SHA224})},GfqC:function(k,z,o){"use strict";var M=o("q1tI"),m=o.n(M),T=o("TSYQ"),b=o.n(T);function y(W,F){var L="cannot "+W.method+" "+W.action+" "+F.status+"'",K=new Error(L);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(L){return F}}function A(W){var F=new XMLHttpRequest;W.onProgress&&F.upload&&(F.upload.onprogress=function(fe){fe.total>0&&(fe.percent=fe.loaded/fe.total*100),W.onProgress(fe)});var L=new FormData;W.data&&Object.keys(W.data).forEach(function(te){var fe=W.data[te];if(Array.isArray(fe)){fe.forEach(function(de){L.append(te+"[]",de)});return}L.append(te,W.data[te])}),W.file instanceof Blob?L.append(W.filename,W.file,W.file.name):L.append(W.filename,W.file),F.onerror=function(fe){W.onError(fe)},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(te){K[te]!==null&&F.setRequestHeader(te,K[te])}),F.send(L),{abort:function(){F.abort()}}}var g=+new Date,e=0;function f(){return"rc-upload-"+g+"-"+ ++e}function r(W,F){return W.indexOf(F,W.length-F.length)!==-1}var l=function(W,F){if(W&&F){var L=Array.isArray(F)?F:F.split(","),K=W.name||"",te=W.type||"",fe=te.replace(/\/.*$/,"");return L.some(function(de){var Ce=de.trim();return Ce.charAt(0)==="."?r(K.toLowerCase(),Ce.toLowerCase()):/\/\*$/.test(Ce)?fe===Ce.replace(/\/.*$/,""):te===Ce})}return!0};function n(W,F){var L=W.createReader(),K=[];function te(){L.readEntries(function(fe){var de=Array.prototype.slice.apply(fe);K=K.concat(de);var Ce=!de.length;Ce?F(K):te()})}te()}var i=function(F,L,K){var te=function fe(de,Ce){Ce=Ce||"",de.isFile?de.file(function(Oe){K(Oe)&&(de.fullPath&&!Oe.webkitRelativePath&&(Object.defineProperties(Oe,{webkitRelativePath:{writable:!0}}),Oe.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Oe,{webkitRelativePath:{writable:!1}})),L([Oe]))}):de.isDirectory&&n(de,function(Oe){Oe.forEach(function(ce){fe(ce,""+Ce+de.name+"/")})})};F.forEach(function(fe){te(fe.webkitGetAsEntry())})},a=i,c=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var L=arguments[F];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(W[K]=L[K])}return W},h=function(){function W(F,L){var K=[],te=!0,fe=!1,de=void 0;try{for(var Ce=F[Symbol.iterator](),Oe;!(te=(Oe=Ce.next()).done)&&!(K.push(Oe.value),L&&K.length===L);te=!0);}catch(ce){fe=!0,de=ce}finally{try{!te&&Ce.return&&Ce.return()}finally{if(fe)throw de}}return K}return function(F,L){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return W(F,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(F,L){for(var K=0;K<L.length;K++){var te=L[K];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(F,te.key,te)}}return function(F,L,K){return L&&W(F.prototype,L),K&&W(F,K),F}}();function s(W,F,L){return F in W?Object.defineProperty(W,F,{value:L,enumerable:!0,configurable:!0,writable:!0}):W[F]=L,W}function u(W,F){var L={};for(var K in W){if(F.indexOf(K)>=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;L[K]=W[K]}return L}function S(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(L,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(L[K]=F[K]),L},{})},R=function(W){_(F,W);function F(){var L,K,te,fe;S(this,F);for(var de=arguments.length,Ce=Array(de),Oe=0;Oe<de;Oe++)Ce[Oe]=arguments[Oe];return fe=(K=(te=E(this,(L=F.__proto__||Object.getPrototypeOf(F)).call.apply(L,[this].concat(Ce))),te),te.state={uid:f()},te.reqs={},te.onChange=function(ce){var Ee=ce.target.files;te.uploadFiles(Ee),te.reset()},te.onClick=function(ce){var Ee=te.fileInput;if(!Ee)return;var ye=te.props,ue=ye.children,le=ye.onClick;ue&&ue.type==="button"&&(Ee.parentNode.focus(),Ee.parentNode.querySelector("button").blur()),Ee.click(),le&&le(ce)},te.onKeyDown=function(ce){ce.key==="Enter"&&te.onClick()},te.onFileDrop=function(ce){var Ee=te.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(te.props.directory)a(Array.prototype.slice.call(ce.dataTransfer.items),te.uploadFiles,function(ue){return l(ue,te.props.accept)});else{var ye=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(ue){return l(ue,te.props.accept)});Ee===!1&&(ye=ye.slice(0,1)),te.uploadFiles(ye)}},te.uploadFiles=function(ce){var Ee=Array.prototype.slice.call(ce);Ee.map(function(ye){return ye.uid=f(),ye}).forEach(function(ye){te.upload(ye,Ee)})},te.saveFileInput=function(ce){te.fileInput=ce},K),E(te,fe)}return d(F,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(K,te){var fe=this,de=this.props;if(!de.beforeUpload)return setTimeout(function(){return fe.post(K)},0);var Ce=de.beforeUpload(K,te);Ce&&Ce.then?Ce.then(function(Oe){var ce=Object.prototype.toString.call(Oe);return ce==="[object File]"||ce==="[object Blob]"?fe.post(Oe):fe.post(K)}).catch(function(Oe){console.log(Oe)}):Ce!==!1&&setTimeout(function(){return fe.post(K)},0);return}},{key:"post",value:function(K){var te=this;if(!this._isMounted)return;var fe=this.props,de=fe.onStart,Ce=fe.onProgress,Oe=fe.transformFile,ce=Oe===void 0?function(Ee){return Ee}:Oe;new Promise(function(Ee){var ye=fe.action;return typeof ye=="function"&&(ye=ye(K)),Ee(ye)}).then(function(Ee){var ye=K.uid,ue=fe.customRequest||A,le=Promise.resolve(ce(K)).then(function($){var me=fe.data;return typeof me=="function"&&(me=me($)),Promise.all([$,me])}).catch(function($){console.error($)});le.then(function($){var me=h($,2),re=me[0],ae=me[1],Se={action:Ee,filename:fe.name,data:ae,file:re,headers:fe.headers,withCredentials:fe.withCredentials,method:fe.method||"post",onProgress:Ce?function(oe){Ce(oe,K)}:null,onSuccess:function(ee,J){delete te.reqs[ye],fe.onSuccess(ee,K,J)},onError:function(ee,J){delete te.reqs[ye],fe.onError(ee,J,K)}};de(K),te.reqs[ye]=ue(Se)})})}},{key:"reset",value:function(){this.setState({uid:f()})}},{key:"abort",value:function(K){var te=this.reqs;if(K){var fe=K;K&&K.uid&&(fe=K.uid),te[fe]&&te[fe].abort&&te[fe].abort(),delete te[fe]}else Object.keys(te).forEach(function(de){te[de]&&te[de].abort&&te[de].abort(),delete te[de]})}},{key:"render",value:function(){var K,te=this.props,fe=te.component,de=te.prefixCls,Ce=te.className,Oe=te.disabled,ce=te.id,Ee=te.style,ye=te.multiple,ue=te.accept,le=te.children,$=te.directory,me=te.openFileDialogOnClick,re=te.onMouseEnter,ae=te.onMouseLeave,Se=u(te,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),oe=b()((K={},s(K,de,!0),s(K,de+"-disabled",Oe),s(K,Ce,Ce),K)),ee=Oe?{}:{onClick:me?this.onClick:function(){},onKeyDown:me?this.onKeyDown:function(){},onMouseEnter:re,onMouseLeave:ae,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return m.a.createElement(fe,c({},ee,{className:oe,role:"button",style:Ee}),m.a.createElement("input",c({},P(Se),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(Q){return Q.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ue,directory:$?"directory":null,webkitdirectory:$?"webkitdirectory":null,multiple:ye,onChange:this.onChange})),le)}}]),F}(M.Component),x=R,w=Object.assign||function(W){for(var F=1;F<arguments.length;F++){var L=arguments[F];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(W[K]=L[K])}return W},v=function(){function W(F,L){for(var K=0;K<L.length;K++){var te=L[K];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(F,te.key,te)}}return function(F,L,K){return L&&W(F.prototype,L),K&&W(F,K),F}}();function O(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 I(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){I(F,W);function F(){var L,K,te,fe;O(this,F);for(var de=arguments.length,Ce=Array(de),Oe=0;Oe<de;Oe++)Ce[Oe]=arguments[Oe];return fe=(K=(te=U(this,(L=F.__proto__||Object.getPrototypeOf(F)).call.apply(L,[this].concat(Ce))),te),te.saveUploader=function(ce){te.uploader=ce},K),U(te,fe)}return v(F,[{key:"abort",value:function(K){this.uploader.abort(K)}},{key:"render",value:function(){return m.a.createElement(x,w({},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,m,T,b){var y=T?T.call(b,M,m):void 0;if(y!==void 0)return!!y;if(M===m)return!0;if(typeof M!="object"||!M||typeof m!="object"||!m)return!1;var C=Object.keys(M),A=Object.keys(m);if(C.length!==A.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(m),e=0;e<C.length;e++){var f=C[e];if(!g(f))return!1;var r=M[f],l=m[f];if(y=T?T.call(b,r,l,f):void 0,y===!1||y===void 0&&r!==l)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"},m=M;z.default=m},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 a});var M=o("q1tI"),m=function(){var c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var S in u)u.hasOwnProperty(S)&&(s[S]=u[S])},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)}}(),T=M.createContext(null),b=function(c){m(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.render=function(){return M.createElement(T.Provider,{value:this.props.store},this.props.children)},h}(M.Component),y=o("Gytx"),C=o.n(y),A=o("2mql"),g=o.n(A),e=function(){var c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var S in u)u.hasOwnProperty(S)&&(s[S]=u[S])},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 u in h)Object.prototype.hasOwnProperty.call(h,u)&&(c[u]=h[u])}return c},f.apply(this,arguments)};function r(c){return c.displayName||c.name||"Component"}var l=function(){return{}};function n(c,h){h===void 0&&(h={});var d=!!c,s=c||l;return function(S){var E=function(P){e(R,P);function R(x,w){var v=P.call(this,x,w)||this;return v.unsubscribe=null,v.handleChange=function(){if(!v.unsubscribe)return;var O=s(v.store.getState(),v.props);v.setState({subscribed:O})},v.store=v.context,v.state={subscribed:s(v.store.getState(),x),store:v.store,props:x},v}return R.getDerivedStateFromProps=function(x,w){return c&&c.length===2&&x!==w.props?{subscribed:s(w.store.getState(),x),props:x}:{props:x}},R.prototype.componentDidMount=function(){this.trySubscribe()},R.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},R.prototype.shouldComponentUpdate=function(x,w){return!C()(this.props,x)||!C()(this.state.subscribed,w.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(S,f({},x,{ref:this.props.miniStoreForwardedRef}))},R.displayName="Connect("+r(S)+")",R.contextType=T,R}(M.Component);if(h.forwardRef){var _=M.forwardRef(function(P,R){return M.createElement(E,f({},P,{miniStoreForwardedRef:R}))});return g()(_,S)}return g()(E,S)}}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 u in h)Object.prototype.hasOwnProperty.call(h,u)&&(c[u]=h[u])}return c},i.apply(this,arguments)};function a(c){var h=c,d=[];function s(E){h=i(i({},h),E);for(var _=0;_<d.length;_++)d[_]()}function u(){return h}function S(E){return d.push(E),function(){var P=d.indexOf(E);d.splice(P,1)}}return{setState:s,getState:u,subscribe:S}}},IBYe:function(k,z,o){"use strict";function M(m){return null}z.a=M},Ib8C:function(k,z,o){(function(M){(function(m,T){k.exports=z=T()})(this,function(){var m=m||function(T,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.")},A=Object.create||function(){function s(){}return function(u){var S;return s.prototype=u,S=new s,s.prototype=null,S}}(),g={},e=g.lib={},f=e.Base=function(){return{extend:function(s){var u=A(this);return s&&u.mixIn(s),(!u.hasOwnProperty("init")||this.init===u.init)&&(u.init=function(){u.$super.init.apply(this,arguments)}),u.init.prototype=u,u.$super=this,u},create:function(){var s=this.extend();return s.init.apply(s,arguments),s},init:function(){},mixIn:function(s){for(var u in s)s.hasOwnProperty(u)&&(this[u]=s[u]);s.hasOwnProperty("toString")&&(this.toString=s.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),r=e.WordArray=f.extend({init:function(s,u){s=this.words=s||[],u!=b?this.sigBytes=u:this.sigBytes=s.length*4},toString:function(s){return(s||n).stringify(this)},concat:function(s){var u=this.words,S=s.words,E=this.sigBytes,_=s.sigBytes;if(this.clamp(),E%4)for(var P=0;P<_;P++){var R=S[P>>>2]>>>24-P%4*8&255;u[E+P>>>2]|=R<<24-(E+P)%4*8}else for(var x=0;x<_;x+=4)u[E+x>>>2]=S[x>>>2];return this.sigBytes+=_,this},clamp:function(){var s=this.words,u=this.sigBytes;s[u>>>2]&=4294967295<<32-u%4*8,s.length=T.ceil(u/4)},clone:function(){var s=f.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var u=[],S=0;S<s;S+=4)u.push(C());return new r.init(u,s)}}),l=g.enc={},n=l.Hex={stringify:function(s){for(var u=s.words,S=s.sigBytes,E=[],_=0;_<S;_++){var P=u[_>>>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 u=s.length,S=[],E=0;E<u;E+=2)S[E>>>3]|=parseInt(s.substr(E,2),16)<<24-E%8*4;return new r.init(S,u/2)}},i=l.Latin1={stringify:function(s){for(var u=s.words,S=s.sigBytes,E=[],_=0;_<S;_++){var P=u[_>>>2]>>>24-_%4*8&255;E.push(String.fromCharCode(P))}return E.join("")},parse:function(s){for(var u=s.length,S=[],E=0;E<u;E++)S[E>>>2]|=(s.charCodeAt(E)&255)<<24-E%4*8;return new r.init(S,u)}},a=l.Utf8={stringify:function(s){try{return decodeURIComponent(escape(i.stringify(s)))}catch(u){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 r.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=a.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var u,S=this._data,E=S.words,_=S.sigBytes,P=this.blockSize,R=P*4,x=_/R;s?x=T.ceil(x):x=T.max((x|0)-this._minBufferSize,0);var w=x*P,v=T.min(w*4,_);if(w){for(var O=0;O<w;O+=P)this._doProcessBlock(E,O);u=E.splice(0,w),S.sigBytes-=v}return new r.init(u,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 u=this._doFinalize();return u},blockSize:512/32,_createHelper:function(s){return function(u,S){return new s.init(S).finalize(u)}},_createHmacHelper:function(s){return function(u,S){return new d.HMAC.init(s,S).finalize(u)}}}),d=g.algo={};return g}(Math);return m})}).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(m){function T(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}m.is=T;const b=Object.freeze([]);function y(){return b}m.empty=y;function*C(u){yield u}m.single=C;function A(u){return u||b}m.from=A;function g(u){return!u||u[Symbol.iterator]().next().done===!0}m.isEmpty=g;function e(u){return u[Symbol.iterator]().next().value}m.first=e;function f(u,S){for(const E of u)if(S(E))return!0;return!1}m.some=f;function r(u,S){for(const E of u)if(S(E))return E;return}m.find=r;function*l(u,S){for(const E of u)S(E)&&(yield E)}m.filter=l;function*n(u,S){let E=0;for(const _ of u)yield S(_,E++)}m.map=n;function*i(...u){for(const S of u)for(const E of S)yield E}m.concat=i;function*a(u){for(const S of u)for(const E of S)yield E}m.concatNested=a;function c(u,S,E){let _=E;for(const P of u)_=S(_,P);return _}m.reduce=c;function*h(u,S,E=u.length){for(S<0&&(S+=u.length),E<0?E+=u.length:E>u.length&&(E=u.length);S<E;S++)yield u[S]}m.slice=h;function d(u,S=Number.POSITIVE_INFINITY){const E=[];if(S===0)return[E,u];const _=u[Symbol.iterator]();for(let P=0;P<S;P++){const R=_.next();if(R.done)return[E,m.empty()];E.push(R.value)}return[E,{[Symbol.iterator](){return _}}]}m.consume=d;function s(u,S,E=(_,P)=>_===P){const _=u[Symbol.iterator](),P=S[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}}m.equals=s})(M||(M={}))},JeFH:function(k,z){k.exports="data:image/png;base64,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"},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,m,T){k.exports=z=m(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.Base,y=T.WordArray,C=m.algo,A=C.MD5,g=C.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:A,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var r,l=this.cfg,n=l.hasher.create(),i=y.create(),a=i.words,c=l.keySize,h=l.iterations;a.length<c;){r&&n.update(r),r=n.update(e).finalize(f),n.reset();for(var d=1;d<h;d++)r=n.finalize(r),n.reset();i.concat(r)}return i.sigBytes=c*4,i}});m.EvpKDF=function(e,f,r){return g.create(r).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"),m=o("miYZ"),T=o("tsqr"),b=o("oBTY"),y=o("tJVT"),C=o("PpiC"),A=o("k1fw"),g=o("9og8"),e=o("DZo9"),f=o("8z0m"),r=o("WmNS"),l=o.n(r),n=o("q1tI"),i=o.n(n),a=o("ErOA"),c=o("NFKh"),h=o.n(c),d=o("7Cbv"),s=o("9kvl"),u=o("mxV5"),S=o.n(u),E=f.a.Dragger,_=function(O){var U="bf3c199c2470cb477d907b1e0917c17b",I="5183666c72eec9e4",N=h.a.enc.Utf8.parse(U),V=h.a.enc.Utf8.parse(I),H=h.a.AES.decrypt(O,N,{iv:V,mode:h.a.mode.CBC});return H.toString(h.a.enc.Utf8)},P,R=function(){var v=Object(g.a)(l.a.mark(function O(U){var I,N,V,H,D,W,F,L,K,te,fe;return l.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return F=U.identifier,L=U.oldFilename,K=U.newFilename,Ce.next=3,Object(a.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return te=Ce.sent,te.data=JSON.parse(_(te.data)),fe=new S.a({endpoint:te==null||((I=te.data)===null||I===void 0)?void 0:I.end_point,region:te==null||((N=te.data)===null||N===void 0)?void 0:N.region,accessKeyId:te==null||((V=te.data)===null||V===void 0)?void 0:V.access_key_id,accessKeySecret:te==null||((H=te.data)===null||H===void 0)?void 0:H.access_key_secret,bucket:te==null||((D=te.data)===null||D===void 0)?void 0:D.bucket,stsToken:te==null||((W=te.data)===null||W===void 0)?void 0:W.security_token}),Ce.abrupt("return",new Promise(function(Oe,ce){console.log(11111,"".concat(F,"/").concat(L),"".concat(F,"/").concat(K),te.data),fe.copy("/".concat(F,"/").concat(L),"/".concat(F,"/").concat(K)).then(function(Ee){console.log("\u62F7\u8D1D\u6210\u529F",Ee)}).catch(function(Ee){console.log(Ee)})}));case 7:case"end":return Ce.stop()}},O)}));return function(U){return v.apply(this,arguments)}}(),x=function(){var v=Object(g.a)(l.a.mark(function O(U,I,N){var V,H,D,W,F,L,K,te,fe,de;return l.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return I.file_name=U.name,Oe.next=3,Object(a.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return K=Oe.sent,console.log("decrypt(res.data):",_(K.data)),K.data=JSON.parse(_(K.data)),te=U.name.split("."),te.pop(),fe=I.realFileName?te:Object(d.a)(),de=new S.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||((L=K.data)===null||L===void 0)?void 0:L.security_token}),Oe.abrupt("return",new Promise(function(ce,Ee){var ye;de.multipartUpload("".concat(fe),new Blob([U],{type:U.type}),Object(A.a)(Object(A.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(a.e)(I)}})).then(function(ue){var le;U.response=(le=ue.data)===null||le===void 0?void 0:le.data,ce(ue==null?void 0:ue.data)}).catch(function(ue){Ee(ue),console.log("err:",ue)})}));case 11:case"end":return Oe.stop()}},O)}));return function(U,I,N){return v.apply(this,arguments)}}(),w=function(O){var U=O.user,I=O.cancelUpload,N=Object(C.a)(O,["user","cancelUpload"]),V=Object(n.useState)([]),H=Object(y.a)(V,2),D=H[0],W=H[1],F=Object(n.useState)(),L=Object(y.a)(F,2),K=L[0],te=L[1],fe={onRemove:function(Oe){W(Object(b.a)(D.filter(function(ce){return ce.name!==Oe.name}))),N.onChange(D.filter(function(ce){return ce.name!==Oe.name}))},disabled:N.disabled,multiple:!0,fileList:D==null?void 0:D.map(function(Ce){return Ce.file}),customRequest:function(){},beforeUpload:function(){var Ce=Object(g.a)(l.a.mark(function ce(Ee){var ye;return l.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(ye=N.maxSize||1024*1024*1024*1,!D.filter(function($){return $.name===Ee.name}).length){le.next=4;break}return T.b.info("".concat(Ee.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),le.abrupt("return");case 4:if(!((Ee==null?void 0:Ee.size)>ye)){le.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ye/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),le.abrupt("return",!1);case 7:return D.push({name:Ee.name,file:Ee}),W(Object(b.a)(D)),N.onChange(D),le.abrupt("return",!1);case 11:case"end":return le.stop()}},ce)}));function Oe(ce){return Ce.apply(this,arguments)}return Oe}()},de=function(){var Ce=Object(g.a)(l.a.mark(function Oe(ce,Ee){var ye,ue,le,$,me,re,ae,Se,oe,ee;return l.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Ee.file_name=ce.name,ae=ce.name,Q.next=4,Object(a.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(Se=Q.sent,Se.data=JSON.parse(_(Se.data)),!((Se==null?void 0:Se.status)!==0)){Q.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),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Q.abrupt("return");case 12:return K=new S.a({endpoint:Se==null||((ye=Se.data)===null||ye===void 0)?void 0:ye.end_point,region:Se==null||((ue=Se.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:Se==null||((le=Se.data)===null||le===void 0)?void 0:le.access_key_id,accessKeySecret:Se==null||(($=Se.data)===null||$===void 0)?void 0:$.access_key_secret,bucket:Se==null||((me=Se.data)===null||me===void 0)?void 0:me.bucket,stsToken:Se==null||((re=Se.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),te(K),oe=ce.name.split("."),oe.pop(),ee=Ee.realFileName?oe:Object(d.a)(),Q.abrupt("return",new Promise(function(ve,_e){try{var Te;K.multipartUpload("".concat(N.identifier,"/").concat(ee).concat(ae.indexOf(".")>-1?"."+ae.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(qe,ut,st){try{console.log("\u8FDB\u5EA6",qe,ut,st);var ft=D.findIndex(function(gt){return gt.name===ae});D[ft].file.percent=qe*100,D[ft].tempCheckpoint=ut,W(Object(b.a)(D))}catch(gt){}},checkpoint:D[D.findIndex(function(Ge){return Ge.name===ae})].tempCheckpoint,callback:{customValue:{id:ae+""},url:Se==null||((Te=Se.data)===null||Te===void 0)?void 0:Te.callback_url,host:Se==null?void 0:Se.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(a.e)(Ee)}}).then(function(Ge){var qe,ut=D.findIndex(function(ke){return ke.name===ae}),st="done";if(((qe=Ge.data)===null||qe===void 0?void 0:qe.status)===0){var ft;ce.response=(ft=Ge.data)===null||ft===void 0?void 0:ft.data;var gt=D.findIndex(function(ke){return ke.name===ae});D[gt].status="done",D[gt].file.status="done"}else{var Ve;T.b.warn((Ve=Ge.data)===null||Ve===void 0?void 0:Ve.message),st="error"}D[ut].status=st,D[ut].file.status=st,N.onChange(D),ve(Ge==null?void 0:Ge.data)}).catch(function(Ge){D[D.findIndex(function(qe){return qe.name===ae})].status="error",D[D.findIndex(function(qe){return qe.name===ae})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),W(Object(b.a)(D)),N.onChange(D),_e(Ge),console.log("err:",Ge)})}catch(Ge){}}));case 19:case"end":return Q.stop()}},Oe)}));return function(ce,Ee){return Ce.apply(this,arguments)}}();return Object(n.useEffect)(function(){D.every(function(Ce){return Ce==="done"||Ce==="error"})&&N.onComplete(D)},[D]),Object(n.useEffect)(function(){if(I){var Ce;(Ce=K)===null||Ce===void 0||Ce.cancel()}},[I]),Object(n.useEffect)(function(){N.uploading&&D.map(function(){var Ce=Object(g.a)(l.a.mark(function Oe(ce){var Ee,ye;return l.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!((!ce.status||ce.status==="error")&&!I)){le.next=6;break}return ce.status="uploading",ce.file.status="uploading",le.next=5,de(ce,{login:U==null||((Ee=U.userInfo)===null||Ee===void 0)?void 0:Ee.login,container_type:N.container_type,container_id:N.container_id,description:N.description,realFileName:N.realFileName});case 5:ye=le.sent;case 6:case"end":return le.stop()}},Oe)}));return function(Oe){return Ce.apply(this,arguments)}}())},[N.uploading]),i.a.createElement(E,Object(M.a)({},fe,{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 O=v.loading,U=v.globalSetting,I=v.user;return{globalSetting:U,loading:O.models.competitions,user:I}})(w)},KmYQ:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.ZeroPadding={pad:function(m,T){var b=T*4;m.clamp(),m.sigBytes+=b-(m.sigBytes%b||b)},unpad:function(m){for(var T=m.words,b=m.sigBytes-1,b=m.sigBytes-1;b>=0;b--)if(T[b>>>2]>>>24-b%4*8&255){m.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 l(n,i){for(var a=0;a<i.length;a++){var c=i[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,c.key,c)}}return function(n,i,a){return i&&l(n.prototype,i),a&&l(n,a),n}}(),m=o("q1tI"),T=C(m),b=o("17x9"),y=C(b);function C(l){return l&&l.__esModule?l:{default:l}}function A(l,n){var i={};for(var a in l){if(n.indexOf(a)>=0)continue;if(!Object.prototype.hasOwnProperty.call(l,a))continue;i[a]=l[a]}return i}function g(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")}function e(l,n){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:l}function f(l,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);l.prototype=Object.create(n&&n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(l,n):l.__proto__=n)}var r=function(l){f(n,l);function n(i){g(this,n);var a=e(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,i));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}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 a=this.getParentElement(this.scrollComponent);a.scrollTop=a.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var a=!1,c={get passive(){a=!0}};try{document.addEventListener("test",null,c),document.removeEventListener("test",null,c)}catch(h){}return a}},{key:"eventListenerOptions",value:function(){var a=this.props.useCapture;return this.isPassiveSupported()&&(a={useCapture:this.props.useCapture,passive:!0}),a}},{key:"setDefaultLoader",value:function(a){this.defaultLoader=a}},{key:"detachMousewheelListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.scrollComponent.parentNode),a.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.getParentElement(this.scrollComponent)),a.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(a){var c=this.props.getScrollParent&&this.props.getScrollParent();return c!=null?c:a&&a.parentNode}},{key:"filterProps",value:function(a){return a}},{key:"attachScrollListener",value:function(){var a=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!a)return;var c=window;this.props.useWindow===!1&&(c=a),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(a){a.deltaY===1&&!this.isPassiveSupported()&&a.preventDefault()}},{key:"scrollListener",value:function(){var a=this.scrollComponent,c=window,h=this.getParentElement(a),d=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,u=c.pageYOffset!==void 0?c.pageYOffset:s.scrollTop;this.props.isReverse?d=u:d=this.calculateOffset(a,u)}else this.props.isReverse?d=h.scrollTop:d=a.scrollHeight-h.scrollTop-h.clientHeight;d<Number(this.props.threshold)&&a&&a.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(a,c){return a?this.calculateTopPosition(a)+(a.offsetHeight-c-window.innerHeight):0}},{key:"calculateTopPosition",value:function(a){return a?a.offsetTop+this.calculateTopPosition(a.offsetParent):0}},{key:"render",value:function(){var a=this,c=this.filterProps(this.props),h=c.children,d=c.element,s=c.hasMore,u=c.initialLoad,S=c.isReverse,E=c.loader,_=c.loadMore,P=c.pageStart,R=c.ref,x=c.threshold,w=c.useCapture,v=c.useWindow,O=c.getScrollParent,U=A(c,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);U.ref=function(N){a.scrollComponent=N,R&&R(N)};var I=[h];return s&&(E?S?I.unshift(E):I.push(E):this.defaultLoader&&(S?I.unshift(this.defaultLoader):I.push(this.defaultLoader))),T.default.createElement(d,U,I)}}]),n}(m.Component);r.propTypes={children:y.default.node.isRequired,element:y.default.node,hasMore:y.default.bool,initialLoad:y.default.bool,isReverse:y.default.bool,loader:y.default.node,loadMore:y.default.func.isRequired,pageStart:y.default.number,ref:y.default.func,getScrollParent:y.default.func,threshold:y.default.number,useCapture:y.default.bool,useWindow:y.default.bool},r.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},z.default=r,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 u}),o.d(z,"a",function(){return E});var M=o("1OyB"),m=o("vuIU"),T=o("Ji7U"),b=o("LK+K"),y=o("q1tI"),C=o("rePB"),A=o("Ff2n"),g=o("ODXe"),e=o("4IlW"),f=o("bX4T"),r=o("YrtM"),l=o("TSYQ"),n=o.n(l),i=o("+nKL"),a=o("8OUc"),c=function(K,te){var fe=K.prefixCls,de=K.id,Ce=K.flattenOptions,Oe=K.childrenAsData,ce=K.values,Ee=K.searchValue,ye=K.multiple,ue=K.defaultActiveFirstOption,le=K.height,$=K.itemHeight,me=K.notFoundContent,re=K.open,ae=K.menuItemSelectedIcon,Se=K.virtual,oe=K.onSelect,ee=K.onToggleOpen,J=K.onActiveValue,Q=K.onScroll,ve=K.onMouseEnter,_e="".concat(fe,"-item"),Te=Object(r.a)(function(){return Ce},[re,Ce],function(Rt,ot){return ot[0]&&Rt[1]!==ot[1]}),Ge=y.useRef(null),qe=function(ot){ot.preventDefault()},ut=function(ot){Ge.current&&Ge.current.scrollTo({index:ot})},st=function(ot){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,et=Te.length,Me=0;Me<et;Me+=1){var Be=(ot+Me*Je+et)%et,Xe=Te[Be],Ke=Xe.group,$e=Xe.data;if(!Ke&&!$e.disabled)return Be}return-1},ft=y.useState(function(){return st(0)}),gt=Object(g.a)(ft,2),Ve=gt[0],ke=gt[1],dt=function(ot){ke(ot);var Je=Te[ot];if(!Je){J(null,-1);return}J(Je.data.value,ot)};y.useEffect(function(){dt(ue!==!1?st(0):-1)},[Te.length,Ee]),y.useEffect(function(){var Rt=setTimeout(function(){if(!ye&&re&&ce.size===1){var ot=Array.from(ce)[0],Je=Te.findIndex(function(et){var Me=et.data;return Me.value===ot});dt(Je),ut(Je)}});return function(){return clearTimeout(Rt)}},[re]);var Bt=function(ot){ot!==void 0&&oe(ot,{selected:!ce.has(ot)}),ye||ee(!1)};if(y.useImperativeHandle(te,function(){return{onKeyDown:function(ot){var Je=ot.which;switch(Je){case e.a.UP:case e.a.DOWN:{var et=0;if(Je===e.a.UP?et=-1:Je===e.a.DOWN&&(et=1),et!==0){var Me=st(Ve+et,et);ut(Me),dt(Me)}break}case e.a.ENTER:{var Be=Te[Ve];Be&&!Be.data.disabled?Bt(Be.data.value):Bt(void 0),re&&ot.preventDefault();break}case e.a.ESC:ee(!1)}},onKeyUp:function(){},scrollTo:function(ot){ut(ot)}}}),Te.length===0)return y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),className:"".concat(_e,"-empty"),onMouseDown:qe},me);function vt(Rt){var ot=Te[Rt];if(!ot)return null;var Je=ot.data||{},et=Je.value,Me=Je.label,Be=Je.children,Xe=Object(f.a)(Je,!0),Ke=Oe?Be:Me;return ot?y.createElement("div",Object.assign({"aria-label":typeof Ke=="string"?Ke:null},Xe,{key:Rt,role:"option",id:"".concat(de,"_list_").concat(Rt),"aria-selected":ce.has(et)}),et):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(de,"_list"),style:{height:0,width:0,overflow:"hidden"}},vt(Ve-1),vt(Ve),vt(Ve+1)),y.createElement(i.a,{itemKey:"key",ref:Ge,data:Te,height:le,itemHeight:$,fullHeight:!1,onMouseDown:qe,onScroll:Q,virtual:Se,onMouseEnter:ve},function(Rt,ot){var Je,et=Rt.group,Me=Rt.groupOption,Be=Rt.data,Xe=Be.label,Ke=Be.key;if(et)return y.createElement("div",{className:n()(_e,"".concat(_e,"-group"))},Xe!==void 0?Xe:Ke);var $e=Be.disabled,_t=Be.value,Ft=Be.title,qt=Be.children,bn=Be.style,At=Be.className,Et=Object(A.a)(Be,["disabled","value","title","children","style","className"]),je=ce.has(_t),rt="".concat(_e,"-option"),at=n()(_e,rt,At,(Je={},Object(C.a)(Je,"".concat(rt,"-grouped"),Me),Object(C.a)(Je,"".concat(rt,"-active"),Ve===ot&&!$e),Object(C.a)(Je,"".concat(rt,"-disabled"),$e),Object(C.a)(Je,"".concat(rt,"-selected"),je),Je)),Ae=Oe?qt:Xe,Fe=!ae||typeof ae=="function"||je;return y.createElement("div",Object.assign({},Et,{"aria-selected":je,className:at,title:Ft,onMouseMove:function(){if(Ve===ot||$e)return;dt(ot)},onClick:function(){$e||Bt(_t)},style:bn}),y.createElement("div",{className:"".concat(rt,"-content")},Ae||_t),y.isValidElement(ae)||je,Fe&&y.createElement(a.a,{className:"".concat(_e,"-option-state"),customizeIcon:ae,customizeIconProps:{isSelected:je}},je?"\u2713":null))}))},h=y.forwardRef(c);h.displayName="OptionList";var d=h,s=function(){return null};s.isSelectOption=!0;var u=s,S=function(){return null};S.isSelectOptGroup=!0;var E=S,_=o("VTBJ"),P=o("Zm9Q");function R(L){var K=L.key,te=L.props,fe=te.children,de=te.value,Ce=Object(A.a)(te,["children","value"]);return Object(_.a)({key:K,value:de!==void 0?de:K,children:fe},Ce)}function x(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(L).map(function(te,fe){if(!y.isValidElement(te)||!te.type)return null;var de=te.type.isSelectOptGroup,Ce=te.key,Oe=te.props,ce=Oe.children,Ee=Object(A.a)(Oe,["children"]);return K||!de?R(te):Object(_.a)(Object(_.a)({key:"__RC_SELECT_GRP__".concat(Ce===null?fe:Ce,"__"),label:Ce},Ee),{},{options:x(ce)})}).filter(function(te){return te})}var w=o("2Qr1"),v=o("qNPg"),O=o("U8pU"),U=o("Kwbf"),I=o("WKfj");function N(L){var K=L.mode,te=L.options,fe=L.children,de=L.backfill,Ce=L.allowClear,Oe=L.placeholder,ce=L.getInputElement,Ee=L.showSearch,ye=L.onSearch,ue=L.defaultOpen,le=L.autoFocus,$=L.labelInValue,me=L.value,re=L.inputValue,ae=L.optionLabelProp,Se=K==="multiple"||K==="tags",oe=Ee!==void 0?Ee:Se||K==="combobox",ee=te||x(fe);if(Object(U.a)(K!=="tags"||ee.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 J=ee.some(function(_e){return _e.options?_e.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(U.a)(!J,"`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||!Ce||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!oe&&K!=="combobox"&&K!=="tags"&&Object(U.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(U.b)(!ue||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),me!=null){var Q=Object(I.d)(me);Object(U.a)(!$||Q.every(function(_e){return Object(O.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)(!Se||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(fe){var ve=null;Object(P.a)(fe).some(function(_e){if(!y.isValidElement(_e)||!_e.type)return!1;var Te=_e.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var Ge=Object(P.a)(_e.props.children).every(function(qe){return!y.isValidElement(qe)||!_e.type||qe.type.isSelectOption?!0:(ve=qe.type,!1)});return!Ge}return ve=Te,!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:w.d,getLabeledValue:w.e,filterOptions:w.b,isValueDisabled:w.g,findValueOption:w.c,warningProps:V,fillOptionsWithMissingValue:w.a}),D=function(L){Object(T.a)(te,L);var K=Object(b.a)(te);function te(){var fe;return Object(M.a)(this,te),fe=K.apply(this,arguments),fe.selectRef=y.createRef(),fe.focus=function(){fe.selectRef.current.focus()},fe.blur=function(){fe.selectRef.current.blur()},fe}return Object(m.a)(te,[{key:"render",value:function(){return y.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),te}(y.Component);D.Option=u,D.OptGroup=E;var W=D,F=z.c=W},Lf5v:function(k,z,o){"use strict";var M=o("5NDa"),m=o("5rEg"),T=o("2qtc"),b=o("kLXV"),y=o("k1fw"),C=o("oBTY"),A=o("9og8"),g=o("miYZ"),e=o("tsqr"),f=o("y8nQ"),r=o("Vl3Y"),l=o("tJVT"),n=o("DZo9"),i=o("8z0m"),a=o("WmNS"),c=o.n(a),h=o("q1tI"),d=o.n(h),s=o("m3rI"),u=o("ErOA"),S=o("sckv"),E=o.n(S),_=o("KhGG"),P=o("1vsH"),R=i.a.Dragger,x=function(v){var O,U=v.dispatch,I=v.id,N=v.onClose,V=v.onOK,H=v.visible,D=v.wrapClassName,W=v.local,F=v.containerId,L=v.rootIdentifier,K=Object(h.useState)({}),te=Object(l.a)(K,2),fe=te[0],de=te[1],Ce=Object(h.useState)([]),Oe=Object(l.a)(Ce,2),ce=Oe[0],Ee=Oe[1],ye=Object(h.useState)([]),ue=Object(l.a)(ye,2),le=ue[0],$=ue[1],me=Object(h.useState)(0),re=Object(l.a)(me,2),ae=re[0],Se=re[1],oe=Object(h.useState)(!1),ee=Object(l.a)(oe,2),J=ee[0],Q=ee[1],ve=Object(h.useState)(!1),_e=Object(l.a)(ve,2),Te=_e[0],Ge=_e[1],qe=r.a.useForm(),ut=Object(l.a)(qe,1),st=ut[0],ft=Object(h.useState)([]),gt=Object(l.a)(ft,2),Ve=gt[0],ke=gt[1],dt=Object(h.useRef)([]);Object(h.useEffect)(function(){H&&(st.resetFields(),ke([]),$([]),Ee([]),Se(0),Ge(!1),Q(!1))},[H]);var Bt=function(je){if(je.file.status==="done"||je.file.status==="uploading"){var rt,at,Ae;if(ke(je.fileList),!je.file.response)return;if((rt=je.file.response)!==null&&rt!==void 0&&rt.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}ke(Ve.filter(function(Fe){return Fe.uid!==je.file.uid})),((at=je.file.response)===null||at===void 0?void 0:at.message)&&e.b.info((Ae=je.file.response)===null||Ae===void 0?void 0:Ae.message)}},vt=function(){var Et=Object(A.a)(c.a.mark(function je(rt){var at,Ae,Fe;return c.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(ae){yt.next=8;break}return Ae=Ve.filter(function(Ot){return Ot.uid!==rt.uid}),ke(Ae),dt.current=Object(C.a)(Ae),Ee(ce.filter(function(Ot){return Ot!==rt.name})),e.b.info("\u5220\u9664\u6210\u529F"),Ae.length||(st.setFieldsValue({file:void 0}),st.validateFields()),yt.abrupt("return");case 8:if(rt.response){yt.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),yt.abrupt("return");case 11:return yt.next=13,Object(u.a)("/api/shixuns/".concat(I,"/destroy_data_sets.json"),{method:"Delete",body:{id:[rt==null||((at=rt.response)===null||at===void 0)?void 0:at.id]}});case 13:Fe=yt.sent,Fe.status===0&&(ke(Ve.filter(function(Ot){return Ot.uid!==rt.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return yt.stop()}},je)}));return function(rt){return Et.apply(this,arguments)}}(),Rt=function(je){if(Ve!=null&&Ve.some(function(at){return at.name===je.name}))return e.b.info("".concat(je.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var rt={name:je.name,uid:je.uid,file:je,percent:0};return Ve.push(rt),dt.current=Object(C.a)(Ve),ke(Object(C.a)(Ve)),!1},ot={height:300,multiple:!0,disabled:ae>0,withCredentials:!0,fileList:Ve,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:Bt,onRemove:vt,beforeUpload:Rt},Je=function(je,rt,at,Ae,Fe,Tt){debugger;var yt=new FormData;Object.keys(je).forEach(function(Lt){yt.append(Lt,je[Lt])});var Ot=new window.XMLHttpRequest;return Ot.withCredentials=!0,Ot.addEventListener("load",function(Lt){var tt;debugger;at(JSON.parse(Lt==null||((tt=Lt.target)===null||tt===void 0)?void 0:tt.response))},!1),Ot.addEventListener("error",function(Lt){debugger;Fe&&Fe(Lt)},!1),Ot.upload.onprogress=function(Lt){Ae&&Ae(Lt)},Ot.open("POST",rt),Ot.send(yt),Ot},et=function(je,rt){if(je.lengthComputable){var at=Math.floor(je.loaded/je.total*100),Ae=Object(y.a)(Object(y.a)({},rt),{},{percent:at,status:at===100?"done":"uploading"});console.log(dt.current,333),dt.current=dt.current.map(function(Fe){return Fe.uid===rt.uid?Ae:Fe}),ke(dt.current)}},Me=function(je,rt){debugger;var at=Object(y.a)(Object(y.a)({},rt),{},{status:"error"});e.b.warn("\u4E0A\u4F20\u5931\u8D25"),dt.current=dt.current.map(function(Ae){return Ae.uid===rt.uid?at:Ae}),dt.current.every(function(Ae){return Ae.status==="done"||Ae.status==="error"})&&(Ge(!1),Se(2)),ke(dt.current)},Be=function(je,rt){var at=Object(y.a)(Object(y.a)({},rt),{},{status:"done"});if(je.status===0||(at=Object(y.a)(Object(y.a)({},rt),{},{status:"error"}),e.b.error(je==null?void 0:je.message)),dt.current=dt.current.map(function(Ae){return Ae.uid===rt.uid?at:Ae}),dt.current.every(function(Ae){return Ae.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ft(!0);return}dt.current.every(function(Ae){return Ae.status==="done"||Ae.status==="error"})&&(Ge(!1),Se(2)),ke(dt.current)},Xe=function(){var je=!0;return window.navigator.onLine==!0?je=!0:je=!1,je},Ke=function(){var Et=Object(A.a)(c.a.mark(function je(rt){var at,Ae,Fe,Tt,yt,Ot,Lt,tt;return c.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(Ge(!0),!(ae===3)){Pt.next=4;break}return Se(2),Pt.abrupt("return");case 4:if(!(ae===2||ae===1)){Pt.next=7;break}return $e(),Pt.abrupt("return");case 7:return at=rt||{},Ae=at.commitMessage,Fe=Ae===void 0?"":Ae,Tt=at.fileOss,yt=Tt===void 0?[]:Tt,Ot=W?Ve:yt,Lt=Ot.map(function(an){return an.name}),Pt.next=12,Object(u.a)("/api/shixuns/".concat(I,"/check_data_sets"),{method:"post",body:{files_name:Lt}});case 12:if(tt=Pt.sent,!(tt.status===-3)){Pt.next=17;break}return Ee(tt==null?void 0:tt.exist_files),Ge(!1),Pt.abrupt("return");case 17:if(!(JSON.stringify(tt)==="{}")){Pt.next=21;break}return Ge(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Pt.abrupt("return");case 21:tt.status===0&&(Ve.forEach(function(an){var nn=Je({file:an.file,description:Fe,message:tt.message},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(I,"/upload_data_sets.json"),function(rn){return Be(rn,an)},function(rn){return et(rn,an)},function(rn){return Me(rn,an)});le.push(nn)}),Se(1));case 22:case"end":return Pt.stop()}},je)}));return function(rt){return Et.apply(this,arguments)}}(),$e=function(){var je=Object(y.a)({},st.getFieldsValue())||{},rt=je.commitMessage,at=rt===void 0?"":rt,Ae=dt.current.filter(function(Tt){return Tt.status==="error"}),Fe=dt.current.map(function(Tt){return Object(y.a)(Object(y.a)({},Tt),{},{status:Tt.status==="error"?"uploading":Tt.status})});ke(Fe),Ae.forEach(function(Tt){var yt=Je({file:Tt.file,description:at},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(I,"/upload_data_sets.json"),function(Ot){return Be(Ot,Tt)},function(Ot){return et(Ot,Tt)},function(Ot){return Me(Ot,Tt)});le.push(yt)})},_t=function(je){if(console.log(je,"changedValues"),"fileOss"in je){var rt,at;if(je!=null&&je.fileOss.every(function(Ae){return Ae.status==="done"})&&je!==null&&je!==void 0&&(rt=je.fileOss)!==null&&rt!==void 0&&rt.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Ft(!0);return}if(je!=null&&je.fileOss.every(function(Ae){return Ae.status==="done"||Ae.status==="error"})&&je!==null&&je!==void 0&&(at=je.fileOss)!==null&&at!==void 0&&at.length){Se(3),Ge(!1);return}Ee(ce.filter(function(Ae){var Fe;return je==null||((Fe=je.fileOss)===null||Fe===void 0)?void 0:Fe.some(function(Tt){return Tt.name===Ae})}))}de(Object(y.a)({},st.getFieldsValue()))},Ft=function(je){je||(Q(!0),le.forEach(function(rt){rt.abort()})),V(),N()},qt=function(){var je=Object(y.a)({},st.getFieldsValue())||{},rt=je.fileOss,at=rt===void 0?[]:rt,Ae=Ve==null?void 0:Ve.every(function(Tt){return Tt.status==="done"}),Fe=at==null?void 0:at.every(function(Tt){return Tt.status==="done"});if(!Ae||!Fe){b.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Ft()}});return}Ft()},bn=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")))},At=function(je){console.log(je,444)};return d.a.createElement(b.a,{visible:H,wrapClassName:D,onOk:function(){Object(P.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),st.submit()},centered:!0,okText:ae===0?"\u786E\u5B9A":ae===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Te},onCancel:qt,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},d.a.createElement("div",{className:E.a.wrap},d.a.createElement(r.a,{className:"mt10",form:st,scrollToFirstError:!0,layout:"vertical",onFinish:Ke,onValuesChange:_t},W?d.a.createElement(r.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,ot," ",bn())):d.a.createElement(r.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:L,cancelUpload:J,container_type:"Shixun",container_id:F,uploading:ae<3?ae:0,disabled:ae>0,height:300,maxSize:100*1024*1024*1024,description:fe.commitMessage||"",text:bn(),onComplete:At,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(r.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},d.a.createElement(m.a,{bordered:!1,disabled:ae>0,maxLength:100,suffix:"".concat(((O=fe.commitMessage)===null||O===void 0?void 0:O.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};z.a=x},M8RZ:function(k,z,o){"use strict";o.d(z,"a",function(){return e});var M=o("fWQN"),m=o("mtLc"),T=o("yKVA"),b=o("879j"),y=o("q1tI"),C=o.n(y),A=o("i8i4"),g=o.n(A),e=function(f){Object(T.a)(l,f);var r=Object(b.a)(l);function l(n){var i;Object(M.a)(this,l),i=r.call(this,n);var a=window.document;return i.node=a.createElement("div"),a.body.appendChild(i.node),i}return Object(m.a)(l,[{key:"render",value:function(){var i=this.props.children;return Object(A.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),l}(C.a.Component)},MEgm:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},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 r}),o.d(z,"d",function(){return l}),o.d(z,"f",function(){return n});var M=o("/cxE"),m=o("pmY6"),T=o("24hK"),b=o("5Y4S"),y;(function(i){i.None=()=>m.a.None;function a(N){return(V,H=null,D)=>{let W=!1,F;return F=N(L=>W?void 0:(F?F.dispose():W=!0,V.call(H,L)),null,D),W&&F.dispose(),F}}i.once=a;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 u(...N){return(V,H=null,D)=>Object(m.e)(...N.map(W=>W(F=>V.call(H,F),null,D)))}i.any=u;function S(N,V,H){let D=H;return c(N,W=>(D=V(D,W),D))}i.reduce=S;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,L,K,te=0;const fe=new e({leakWarningThreshold:W,onFirstListenerAdd(){F=N(de=>{te++,L=V(L,de),D&&!K&&(fe.fire(L),L=void 0),clearTimeout(K),K=setTimeout(()=>{const Ce=L;L=void 0,K=void 0,(!D||te>1)&&fe.fire(Ce),te=0},H)})},onLastListenerRemove(){F.dispose()}});return fe.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):L.fire(K)});const F=()=>{D&&D.forEach(K=>L.fire(K)),D=null},L=new e({onFirstListenerAdd(){W||(W=N(K=>L.fire(K)))},onFirstListenerDidAdd(){D&&(V?setTimeout(F):F())},onLastListenerRemove(){W&&W.dispose(),W=null}});return L.event}i.buffer=x;class w{constructor(N){this.event=N}map(N){return new w(c(this.event,N))}forEach(N){return new w(h(this.event,N))}filter(N){return new w(d(this.event,N))}reduce(N,V){return new w(S(this.event,N,V))}latch(){return new w(P(this.event))}debounce(N,V=100,H=!1,D){return new w(_(this.event,N,V,H,D))}on(N,V,H){return this.event(N,V,H)}once(N,V,H){return a(this.event)(N,V,H)}}function v(N){return new w(N)}i.chain=v;function O(N,V,H=D=>D){const D=(...K)=>L.fire(H(...K)),W=()=>N.on(V,D),F=()=>N.removeListener(V,D),L=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return L.event}i.fromNodeEventEmitter=O;function U(N,V,H=D=>D){const D=(...K)=>L.fire(H(...K)),W=()=>N.addEventListener(V,D),F=()=>N.removeEventListener(V,D),L=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return L.event}i.fromDOMEventEmitter=U;function I(N){return new Promise(V=>a(N)(V))}i.toPromise=I})(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 A=-1;class g{constructor(i,a=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=a,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i){let a=A;if(typeof this.customThreshold=="number"&&(a=this.customThreshold),a<=0||i<a)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=a*.5;let d,s=0;for(const[u,S]of this._stacks)(!d||s<S)&&(d=u,s=S);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 a;this._disposed=!1,this._options=i,this._leakageMon=A>0?new g(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((a=this._options)===null||a===void 0?void 0:a._profName)?new C(this._options._profName):void 0}get event(){return this._event||(this._event=(i,a,c)=>{var h;this._listeners||(this._listeners=new T.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(a?[i,a]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,a);const u=(h=this._leakageMon)===null||h===void 0?void 0:h.check(this._listeners.size),S=Object(m.i)(()=>{if(u&&u(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return c instanceof m.b?c.add(S):Array.isArray(c)&&c.push(S),S}),this._event}fire(i){var a,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.a);for(let h of this._listeners)this._deliveryQueue.push([h,i]);for((a=this._perfMon)===null||a===void 0||a.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,a,c,h,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(a=this._deliveryQueue)===null||a===void 0||a.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 T.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 r extends f{constructor(i){var a;super(i);this._delay=(a=i.delay)!==null&&a!==void 0?a:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class l{constructor(){this.buffers=[]}wrapEvent(i){return(a,c,h)=>i(d=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>a.call(c,d)):a.call(c,d)},void 0,h)}bufferEvents(i){const a=[];this.buffers.push(a);const c=i();return this.buffers.pop(),a.forEach(h=>h()),c}}class n{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=m.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,m){o.d(z,"b",function(){return c}),o.d(z,"i",function(){return u}),o.d(z,"f",function(){return S}),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 w}),o.d(z,"a",function(){return v}),o.d(z,"e",function(){return I});var T;const b="en";let y=!1,C=!1,A=!1,g=!1,e=!1,f=!1,r=!1,l,n=b,i,a;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 m!="undefined"&&(h=m);const d=typeof((T=h==null?void 0:h.versions)===null||T===void 0?void 0:T.electron)=="string"&&h.type==="renderer";if(typeof navigator=="object"&&!d)a=navigator.userAgent,y=a.indexOf("Windows")>=0,C=a.indexOf("Macintosh")>=0,r=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,A=a.indexOf("Linux")>=0,f=!0,l=navigator.language,n=l;else if(typeof h=="object"){y=h.platform==="win32",C=h.platform==="darwin",A=h.platform==="linux",g=A&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,l=b,n=b;const N=h.env.VSCODE_NLS_CONFIG;if(N)try{const V=JSON.parse(N),H=V.availableLanguages["*"];l=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:A&&(s=2);const u=y,S=C,E=A,_=e,P=f,R=r,x=a,w=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,L=H.length;F<L;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||r?2:y?1:3;let O=!0,U=!1;function I(){if(!U){U=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2;const V=new Uint16Array(N.buffer);O=V[0]===(2<<8)+1}return O}}).call(this,o("IyRk"),o("Q2Ig"))},MlIO:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(m){var T=M,b=T.lib,y=b.Base,C=b.WordArray,A=T.x64={},g=A.Word=y.extend({init:function(f,r){this.high=f,this.low=r}}),e=A.WordArray=y.extend({init:function(f,r){f=this.words=f||[],r!=m?this.sigBytes=r:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,r=f.length,l=[],n=0;n<r;n++){var i=f[n];l.push(i.high),l.push(i.low)}return C.create(l,this.sigBytes)},clone:function(){for(var f=y.clone.call(this),r=f.words=this.words.slice(0),l=r.length,n=0;n<l;n++)r[n]=r[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 T}),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 A}),o.d(z,"O",function(){return g}),o.d(z,"p",function(){return e}),o.d(z,"T",function(){return f}),o.d(z,"q",function(){return r}),o.d(z,"N",function(){return l}),o.d(z,"M",function(){return n}),o.d(z,"Q",function(){return i}),o.d(z,"u",function(){return a}),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 u}),o.d(z,"i",function(){return S}),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 w}),o.d(z,"E",function(){return v}),o.d(z,"F",function(){return O}),o.d(z,"j",function(){return U}),o.d(z,"z",function(){return I}),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 L}),o.d(z,"A",function(){return te}),o.d(z,"a",function(){return fe}),o.d(z,"n",function(){return de}),o.d(z,"l",function(){return Ce}),o.d(z,"D",function(){return Oe}),o.d(z,"B",function(){return ce}),o.d(z,"b",function(){return Ee}),o.d(z,"S",function(){return ye}),o.d(z,"o",function(){return ue}),o.d(z,"P",function(){return le}),o.d(z,"w",function(){return $}),o.d(z,"c",function(){return me}),o.d(z,"y",function(){return Se});function M(Q){return!Q||typeof Q!="string"?!0:Q.trim().length===0}const m=/{(\d+)}/g;function T(Q,...ve){return ve.length===0?Q:Q.replace(m,function(_e,Te){const Ge=parseInt(Te,10);return isNaN(Ge)||Ge<0||Ge>=ve.length?_e:ve[Ge]})}function b(Q){return Q.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function y(Q){return Q.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function C(Q,ve=" "){const _e=A(Q,ve);return g(_e,ve)}function A(Q,ve){if(!Q||!ve)return Q;const _e=ve.length;if(_e===0||Q.length===0)return Q;let Te=0;for(;Q.indexOf(ve,Te)===Te;)Te=Te+_e;return Q.substring(Te)}function g(Q,ve){if(!Q||!ve)return Q;const _e=ve.length,Te=Q.length;if(_e===0||Te===0)return Q;let Ge=Te,qe=-1;for(;!(qe=Q.lastIndexOf(ve,Ge-1),qe===-1||qe+_e!==Ge);){if(qe===0)return"";Ge=qe}return Q.substring(0,Ge)}function e(Q){return Q.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(Q){return Q.replace(/\*/g,"")}function r(Q,ve,_e={}){if(!Q)throw new Error("Cannot create regex from empty string");ve||(Q=y(Q)),_e.wholeWord&&(/\B/.test(Q.charAt(0))||(Q="\\b"+Q),/\B/.test(Q.charAt(Q.length-1))||(Q=Q+"\\b"));let Te="";return _e.global&&(Te+="g"),_e.matchCase||(Te+="i"),_e.multiline&&(Te+="m"),_e.unicode&&(Te+="u"),new RegExp(Q,Te)}function l(Q){if(Q.source==="^"||Q.source==="^$"||Q.source==="$"||Q.source==="^\\s*$")return!1;const ve=Q.exec("");return!!(ve&&Q.lastIndex===0)}function n(Q){return(Q.global?"g":"")+(Q.ignoreCase?"i":"")+(Q.multiline?"m":"")+(Q.unicode?"u":"")}function i(Q){return Q.split(/\r\n|\r|\n/)}function a(Q){for(let ve=0,_e=Q.length;ve<_e;ve++){const Te=Q.charCodeAt(ve);if(Te!==32&&Te!==9)return ve}return-1}function c(Q,ve=0,_e=Q.length){for(let Te=ve;Te<_e;Te++){const Ge=Q.charCodeAt(Te);if(Ge!==32&&Ge!==9)return Q.substring(ve,Te)}return Q.substring(ve,_e)}function h(Q,ve=Q.length-1){for(let _e=ve;_e>=0;_e--){const Te=Q.charCodeAt(_e);if(Te!==32&&Te!==9)return _e}return-1}function d(Q,ve){return Q<ve?-1:Q>ve?1:0}function s(Q,ve,_e=0,Te=Q.length,Ge=0,qe=ve.length){for(;_e<Te&&Ge<qe;_e++,Ge++){let ft=Q.charCodeAt(_e),gt=ve.charCodeAt(Ge);if(ft<gt)return-1;if(ft>gt)return 1}const ut=Te-_e,st=qe-Ge;return ut<st?-1:ut>st?1:0}function u(Q,ve){return S(Q,ve,0,Q.length,0,ve.length)}function S(Q,ve,_e=0,Te=Q.length,Ge=0,qe=ve.length){for(;_e<Te&&Ge<qe;_e++,Ge++){let ft=Q.charCodeAt(_e),gt=ve.charCodeAt(Ge);if(ft===gt)continue;if(ft>=128||gt>=128)return s(Q.toLowerCase(),ve.toLowerCase(),_e,Te,Ge,qe);E(ft)&&(ft-=32),E(gt)&&(gt-=32);const Ve=ft-gt;if(Ve===0)continue;return Ve}const ut=Te-_e,st=qe-Ge;return ut<st?-1:ut>st?1:0}function E(Q){return Q>=97&&Q<=122}function _(Q){return Q>=65&&Q<=90}function P(Q,ve){return Q.length===ve.length&&S(Q,ve)===0}function R(Q,ve){const _e=ve.length;return ve.length>Q.length?!1:S(Q,ve,0,_e)===0}function x(Q,ve){let _e,Te=Math.min(Q.length,ve.length);for(_e=0;_e<Te;_e++)if(Q.charCodeAt(_e)!==ve.charCodeAt(_e))return _e;return Te}function w(Q,ve){let _e,Te=Math.min(Q.length,ve.length);const Ge=Q.length-1,qe=ve.length-1;for(_e=0;_e<Te;_e++)if(Q.charCodeAt(Ge-_e)!==ve.charCodeAt(qe-_e))return _e;return Te}function v(Q){return 55296<=Q&&Q<=56319}function O(Q){return 56320<=Q&&Q<=57343}function U(Q,ve){return(Q-55296<<10)+(ve-56320)+65536}function I(Q,ve,_e){const Te=Q.charCodeAt(_e);if(v(Te)&&_e+1<ve){const Ge=Q.charCodeAt(_e+1);if(O(Ge))return U(Te,Ge)}return Te}function N(Q,ve){const _e=Q.charCodeAt(ve-1);if(O(_e)&&ve>1){const Te=Q.charCodeAt(ve-2);if(v(Te))return U(Te,_e)}return _e}function V(Q,ve){const _e=re.getInstance(),Te=ve,Ge=Q.length,qe=I(Q,Ge,ve);ve+=qe>=65536?2:1;let ut=_e.getGraphemeBreakType(qe);for(;ve<Ge;){const st=I(Q,Ge,ve),ft=_e.getGraphemeBreakType(st);if(me(ut,ft))break;ve+=st>=65536?2:1,ut=ft}return ve-Te}function H(Q,ve){const _e=re.getInstance(),Te=ve,Ge=N(Q,ve);ve-=Ge>=65536?2:1;let qe=_e.getGraphemeBreakType(Ge);for(;ve>0;){const ut=N(Q,ve),st=_e.getGraphemeBreakType(ut);if(me(st,qe))break;ve-=ut>=65536?2:1,qe=st}return Te-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(Q){return D.test(Q)}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 L(Q){return F.test(Q)}const K=/^[\t\n\r\x20-\x7E]*$/;function te(Q){return K.test(Q)}const fe=/[\u2028\u2029]/;function de(Q){return fe.test(Q)}function Ce(Q){for(let ve=0,_e=Q.length;ve<_e;ve++)if(Oe(Q.charCodeAt(ve)))return!0;return!1}function Oe(Q){return Q=+Q,Q>=11904&&Q<=55215||Q>=63744&&Q<=64255||Q>=65281&&Q<=65374}function ce(Q){return Q>=127462&&Q<=127487||Q===8986||Q===8987||Q===9200||Q===9203||Q>=9728&&Q<=10175||Q===11088||Q===11093||Q>=127744&&Q<=128591||Q>=128640&&Q<=128764||Q>=128992&&Q<=129003||Q>=129280&&Q<=129535||Q>=129648&&Q<=129750}const Ee=String.fromCharCode(65279);function ye(Q){return!!(Q&&Q.length>0&&Q.charCodeAt(0)===65279)}function ue(Q,ve=!1){return Q?(ve&&(Q=Q.replace(/\\./g,"")),Q.toLowerCase()!==Q):!1}function le(Q){const ve=90-65+1;return Q=Q%(2*ve),Q<ve?String.fromCharCode(97+Q):String.fromCharCode(65+Q-ve)}function $(Q){const ve=re.getInstance();return ve.getGraphemeBreakType(Q)}function me(Q,ve){return Q===0?ve!==5&&ve!==7:Q===2&&ve===3?!1:Q===4||Q===2||Q===3||(ve===4||ve===2||ve===3)?!0:Q===8&&(ve===8||ve===9||ve===11||ve===12)||((Q===11||Q===9)&&(ve===9||ve===10)||((Q===12||Q===10)&&ve===10||(ve===5||ve===13||(ve===7||(Q===1||Q===13&&ve===14)))))?!1:!(Q===6&&ve===6)}class re{constructor(){this._data=ae()}static getInstance(){return re._INSTANCE||(re._INSTANCE=new re),re._INSTANCE}getGraphemeBreakType(Q){if(Q<32)return Q===10?3:Q===13?2:4;if(Q<127)return 0;const ve=this._data,_e=ve.length/3;let Te=1;for(;Te<=_e;)if(Q<ve[3*Te])Te=2*Te;else if(Q>ve[3*Te+1])Te=2*Te+1;else return ve[3*Te+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 Se(Q,ve){if(Q===0)return 0;const _e=oe(Q,ve);if(_e!==void 0)return _e;const Te=N(ve,Q);return Q-=ee(Te),Q}function oe(Q,ve){let _e=N(ve,Q);for(Q-=ee(_e);J(_e)||_e===65039||_e===8419;){if(Q===0)return;_e=N(ve,Q),Q-=ee(_e)}if(!ce(_e))return;if(Q>=0){const Te=N(ve,Q);Te===8205&&(Q-=ee(Te))}return Q}function ee(Q){return Q>=65536?2:1}function J(Q){return 127995<=Q&&Q<=127999}},N3QO:function(k,z,o){"use strict";var M=o("2qtc"),m=o("kLXV"),T=o("tJVT"),b=o("q1tI"),y=o.n(b),C=o("9kvl"),A=o("FPkq"),g=o.n(A),e=function(r){var l,n=r.newShixuns,i=r.dispatch,a=r.user,c=Object(b.useState)(!1),h=Object(T.a)(c,2),d=h[0],s=h[1];Object(b.useEffect)(function(){n.actionTabs.key==="Create-Environment"&&S()},[n==null||((l=n.actionTabs)===null||l===void 0)?void 0:l.key]);var u=function(){i({type:"newShixuns/setActionTabs",payload:{}})},S=function(){var _,P,R;u(),((_=a.userInfo)===null||_===void 0?void 0:_.mirror_marker_status)===0?s(!0):((P=a.userInfo)===null||P===void 0?void 0:P.mirror_marker_status)===1?C.d.push("/shixuns/new/CreateImg"):((R=a.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===2&&m.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 w;C.d.push("/users/".concat((w=a.userInfo)===null||w===void 0?void 0:w.login,"/experiment-img"))}})};return y.a.createElement(m.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:g.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};z.a=Object(C.a)(function(f){var r=f.newShixuns,l=f.user,n=f.globalSetting;return{newShixuns:r,globalSetting:n,user:l}})(e)},NFKh:function(k,z,o){(function(M,m,T){k.exports=z=m(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 u}),o.d(z,"c",function(){return S}),o.d(z,"a",function(){return E}),o.d(z,"b",function(){return _});var M=o("miYZ"),m=o("tsqr"),T=o("9og8"),b=o("2qtc"),y=o("kLXV"),C=o("WmNS"),A=o.n(C),g=o("q1tI"),e=o.n(g),f=o("9kvl"),r=o("xKgJ"),l=o("1vsH"),n=o("RCxd"),i=o("yTi+"),a=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(r.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,w=Object(f.c)()._store.getState(),v=w.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)},u=function(){var R,x=Object(f.c)()._store.getState(),w=x.user;return(R=w.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(l.S)("/account/certification")}}),!1)},S=function(){var R;if(Object(r.a)())return!0;var x=Object(f.c)()._store.getState(),w=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 w;if(R)return!0;var v=Object(f.c)()._store.getState(),O=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||((w=U.setting)===null||w===void 0)?void 0:w.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(l.S)("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]:"",w=Object(f.c)()._store.getState(),v=w.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:a.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(T.a)(A.a.mark(function N(){var V;return A.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&&(m.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 I(){return U.apply(this,arguments)}return I}()})}}),!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 g}),o.d(z,"h",function(){return a}),o.d(z,"l",function(){return s}),o.d(z,"e",function(){return R}),o.d(z,"i",function(){return O}),o.d(z,"j",function(){return ue}),o.d(z,"c",function(){return Q}),o.d(z,"b",function(){return qe}),o.d(z,"g",function(){return gt}),o.d(z,"f",function(){return Bt}),o.d(z,"k",function(){return Ke}),o.d(z,"d",function(){return qt});var M=o("q1tI"),m=o.n(M),T=o("NQs2"),b=o.n(T),y=o("ygoZ"),C=o.n(y),A=function(At){var Et=At.dataSource,je=Et===void 0?[]:Et,rt=At.img,at=At.imgWidth,Ae=at===void 0?346:at,Fe=At.title,Tt=At.sunTitle,yt=At.bannerExtraContent;return m.a.createElement("div",{className:b.a.banner},m.a.createElement("div",{className:b.a.content},m.a.createElement("aside",null,m.a.createElement("p",null,m.a.createElement("b",null,Fe),m.a.createElement("span",null,Tt)),je.length>0&&m.a.createElement("div",{className:b.a.btns},je.map(function(Ot,Lt){return m.a.createElement("div",{key:Lt,onClick:Ot.click},Ot.name,Ot.sign?m.a.createElement("img",{src:C.a,width:39}):null)})),yt),m.a.createElement("img",{style:{marginTop:33,marginRight:38},src:rt,width:Ae})))},g=A,e=o("tJVT"),f=o("6nfa"),r=o.n(f),l=o("TSYQ"),n=o.n(l),i=function(At){var Et=At.dataSource,je=Et===void 0?[]:Et,rt=At.value,at=At.onChange,Ae=At.className,Fe=At.title,Tt=At.titleWidth,yt=Tt===void 0?41:Tt,Ot=At.style,Lt=Ot===void 0?{}:Ot,tt=At.fontColor,Ut=tt===void 0?"#6A7283":tt,Pt=Object(M.useState)(0),an=Object(e.a)(Pt,2),nn=an[0],rn=an[1],Tn=Object(M.useState)(!1),sn=Object(e.a)(Tn,2),un=sn[0],Jn=sn[1],kn=Object(M.useRef)(null);return Object(M.useEffect)(function(){if(je.length!==0){var Yn;(kn==null||((Yn=kn.current)===null||Yn===void 0)?void 0:Yn.clientHeight)>92?rn(1):rn(0)}je.length===0&&rn(0)},[je]),m.a.createElement("div",{className:n()(r.a.row,Ae),style:Lt},m.a.createElement("div",{style:{width:yt,marginTop:un?12:4},className:r.a.title},Fe),m.a.createElement("div",{className:un?"".concat(r.a.tagsWrap," ").concat(r.a.tagsBorderWrap):r.a.tagsWrap},m.a.createElement("div",{className:r.a.bar,style:nn>0?{height:nn===1?92:"auto",overflow:nn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},m.a.createElement("div",{className:r.a.name,ref:kn},je==null?void 0:je.map(function(Yn){return m.a.createElement("span",{onClick:function(){return at(Yn.id)},key:Yn.id,title:Yn.name,style:{color:Ut},className:rt===Yn.id?r.a.active:""},Yn.name)}))),!!nn&&m.a.createElement(M.Fragment,null,nn===1?m.a.createElement("div",{onClick:function(){var tr;rn(2),(kn==null||((tr=kn.current)===null||tr===void 0)?void 0:tr.clientHeight)>205?Jn(!0):Jn(!1)},className:r.a.action},"\u5C55\u5F00",m.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):m.a.createElement("div",{onClick:function(){rn(1),Jn(!1)},className:r.a.action},"\u6536\u8D77",m.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},a=i,c=o("cz0n"),h=o.n(c),d=function(At){var Et=At.dataSource,je=Et===void 0?[]:Et,rt=At.value,at=At.onChange,Ae=At.className;return m.a.createElement("div",{className:n()(h.a.tabs,Ae)},je.map(function(Fe){return m.a.createElement("span",{onClick:function(){return at(Fe.id)},className:rt===Fe.id?h.a.active:"",key:Fe.id},Fe.name)}))},s=d,u=o("5NDa"),S=o("5rEg"),E=o("KOXS"),_=o.n(E),P=function(At){var Et,je=At.dataSource,rt=je===void 0?[]:je,at=At.value,Ae=At.onChange,Fe=At.className,Tt=At.style,yt=Tt===void 0?{}:Tt,Ot=At.placeholder,Lt=Object(M.useState)(""),tt=Object(e.a)(Lt,2),Ut=tt[0],Pt=tt[1],an=Object(M.useState)(""),nn=Object(e.a)(an,2),rn=nn[0],Tn=nn[1];Object(M.useEffect)(function(){var Jn;(Jn=JSON.stringify(at))!==null&&Jn!==void 0&&Jn.includes("{")?(Pt(at.id),Tn(at.value)):Tn(at)},[at]);var sn=function(){Ae(rn||null,Ut||"")},un=function(kn){if(kn===Ut)return;Pt(kn),Ae(rn,kn)};return m.a.createElement("div",{className:n()(_.a.input,Fe),style:yt},!!rt.length&&m.a.createElement("div",{className:_.a.dropdown},m.a.createElement("div",{className:_.a.text},(Et=rt.find(function(Jn){return Jn.id===Ut}))===null||Et===void 0?void 0:Et.name,m.a.createElement("i",{className:"iconfont icon-zhankai4"}),m.a.createElement("b",{className:_.a.b1}),m.a.createElement("b",{className:_.a.b2})),m.a.createElement("div",{className:_.a.menu},rt.map(function(Jn,kn){return m.a.createElement("div",{key:kn,onClick:function(){return un(Jn.id)}},Jn.name)}))),m.a.createElement(S.a,{onPressEnter:sn,value:rn,onChange:function(kn){return Tn(kn.target.value||"")},bordered:!1,placeholder:Ot}),m.a.createElement("i",{onClick:sn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,x=o("f9pc"),w=o.n(x),v=function(At){var Et=At.value,je=At.onChange,rt=At.className,at=At.total,Ae=At.pageSize,Fe=At.style,Tt=Fe===void 0?{}:Fe,yt=Et<2,Ot=Et>=Math.ceil(at/Ae);return at<=Ae?m.a.createElement(m.a.Fragment,null):m.a.createElement("div",{className:n()(w.a.quickPager,rt),style:Tt},m.a.createElement("div",{onClick:function(){yt||je(Et-1,"prev")},className:yt?w.a.disabled:""},"\u4E0A\u4E00\u9875"),m.a.createElement("div",{onClick:function(){Ot||je(Et+1,"next")},className:Ot?w.a.disabled:""},"\u4E0B\u4E00\u9875"))},O=v,U=o("T2oS"),I=o("W9HT"),N=o("pC0b"),V=o("GzdX"),H=o("5Dmo"),D=o("3S7+"),W=o("Oe0F"),F=o.n(W),L=o("m3rI"),K=o("1vsH"),te=o("JAbv"),fe=o.n(te),de=o("Bq7L"),Ce=o.n(de),Oe=o("MEgm"),ce=o.n(Oe),Ee=o("BdwD"),ye=function(At){var Et=At.className,je=At.dataSource,rt=je===void 0?[]:je,at=At.col,Ae=at===void 0?4:at,Fe=At.right,Tt=At.bottom,yt=Tt===void 0?23:Tt,Ot=At.precision,Lt=Ot===void 0?0:Ot,tt=At.wrapWidth,Ut=tt===void 0?1200:tt,Pt=At.trackEventItems,an=At.loading,nn=Math.floor((Ut-(Ae-1)*Fe)/Ae);return m.a.createElement(I.a,{spinning:an},m.a.createElement("div",{className:n()(F.a.list,Et)},!!rt.length&&rt.map(function(rn,Tn){var sn=rn.name,un=rn.id,Jn=rn.identifier,kn=rn.power,Yn=rn.cover_image_id,tr=rn.pic;return m.a.createElement("div",{className:F.a.wrap,key:un,style:{width:nn,marginRight:(1+Tn)%Ae===0?0:Fe+Lt,marginBottom:yt}},m.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Jn,"/challenges"),className:F.a.li,onClick:function(ar){ar.preventDefault(),Pt&&Object(K.cb)([Pt]),kn&&Object(K.S)("/shixuns/".concat(Jn,"/challenges"))}},m.a.createElement("div",{className:F.a.img},m.a.createElement("img",{className:F.a.cover,src:Yn?"".concat(L.a.API_SERVER,"/api/attachments/").concat(Yn):"".concat(L.a.IMG_SERVER,"/").concat(tr)}),rn.is_jupyter&&m.a.createElement("img",{className:F.a.sign,src:fe.a}),rn.is_jupyter_lab&&m.a.createElement("img",{className:F.a.sign,src:Ce.a}),rn.is_unity_3d&&m.a.createElement("img",{className:F.a.sign,src:ce.a})),m.a.createElement("div",{className:F.a.name},m.a.createElement(D.a,{title:sn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},m.a.createElement("span",{className:F.a.e},sn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),m.a.createElement("div",{className:F.a.tags},m.a.createElement(D.a,{placement:"bottom",title:"\u5173\u5361\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),m.a.createElement("span",null,rn.challenges_count))),!!rn.myshixuns_count&&m.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),m.a.createElement("span",null,rn.myshixuns_count))),m.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},m.a.createElement("span",null,m.a.createElement("span",null,rn.level))),m.a.createElement("div",{className:F.a.rate},m.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:rn.score_info}),m.a.createElement("span",null,"\xA0",rn.score_info?"".concat(rn.score_info,"\u5206"):"5\u5206")))),!kn&&m.a.createElement("div",{className:F.a.lockWrap},m.a.createElement("img",{src:"".concat(L.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),m.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rt.length&&m.a.createElement(Ee.a,null)))},ue=ye,le=o("ZJlW"),$=o.n(le),me=o("z4EP"),re=o.n(me),ae=o("+GGh"),Se=o.n(ae),oe=o("cFMs"),ee=o.n(oe),J=function(At){var Et=At.className,je=At.dataSource,rt=je===void 0?[]:je,at=At.col,Ae=at===void 0?4:at,Fe=At.right,Tt=At.bottom,yt=Tt===void 0?23:Tt,Ot=At.precision,Lt=Ot===void 0?0:Ot,tt=At.wrapWidth,Ut=tt===void 0?1200:tt,Pt=At.trackEventItems,an=At.loading,nn=Math.floor((Ut-(Ae-1)*Fe)/Ae);return m.a.createElement(I.a,{spinning:an},m.a.createElement("div",{className:n()($.a.list,Et)},!!rt.length&&rt.map(function(rn,Tn){var sn=rn.name,un=rn.id,Jn=rn.identifier,kn=rn.featured,Yn=rn.school_name,tr=rn.image_url,pr=rn.excellent;return m.a.createElement("div",{key:un,className:$.a.wrap,style:{width:nn,marginRight:(1+Tn)%Ae===0?0:Fe+Lt,marginBottom:yt}},m.a.createElement("a",{target:"_blank",href:"/paths/".concat(Jn),className:$.a.li,onClick:function(mn){mn.preventDefault(),Pt&&Object(K.cb)([Pt]),Object(K.S)("/paths/".concat(Jn))}},m.a.createElement("div",{className:$.a.img},m.a.createElement("img",{className:$.a.cover,src:"".concat(L.a.IMG_SERVER,"/").concat(tr)}),kn===1&&m.a.createElement("img",{className:$.a.sign,src:re.a}),kn===2&&m.a.createElement("img",{className:$.a.sign,src:""}),kn===3&&m.a.createElement("img",{className:$.a.sign,src:Se.a}),kn===4&&m.a.createElement("img",{className:$.a.sign,src:""}),kn===5&&m.a.createElement("img",{className:$.a.sign,src:ee.a})),m.a.createElement("div",{className:$.a.name},m.a.createElement(D.a,{title:sn},m.a.createElement("span",{className:$.a.e},sn))),m.a.createElement(D.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Yn)},m.a.createElement("div",{className:$.a.unit},m.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Yn)),m.a.createElement("div",{className:$.a.tags},m.a.createElement(D.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),m.a.createElement("span",null,rn.stages_count))),m.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),m.a.createElement("span",null,rn.members_count))),pr&&m.a.createElement("div",{className:$.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!rt.length&&m.a.createElement(Ee.a,null)))},Q=J,ve=o("iL++"),_e=o.n(ve),Te=o("xiVL"),Ge=function(At){var Et=At.className,je=At.dataSource,rt=je===void 0?[]:je,at=At.col,Ae=at===void 0?4:at,Fe=At.right,Tt=At.bottom,yt=Tt===void 0?23:Tt,Ot=At.precision,Lt=Ot===void 0?0:Ot,tt=At.wrapWidth,Ut=tt===void 0?1200:tt,Pt=At.trackEventItems,an=At.loading,nn=Math.floor((Ut-(Ae-1)*Fe)/Ae);return m.a.createElement(I.a,{spinning:an},m.a.createElement("div",{className:n()(_e.a.list,Et)},!!rt.length&&rt.map(function(rn,Tn){var sn=rn.subject_identifier,un=rn.id,Jn=rn.identifier,kn=rn.power,Yn=rn.is_public!=0&&rn.is_public;return m.a.createElement("div",{className:_e.a.wrap,key:un,style:{width:nn,marginRight:(1+Tn)%Ae===0?0:Fe+Lt,marginBottom:yt}},m.a.createElement("a",{className:_e.a.li,onClick:function(pr){pr.preventDefault()}},m.a.createElement("div",{className:_e.a.top},m.a.createElement(D.a,{title:rn.name},m.a.createElement("div",{className:_e.a.name},rn.name)),m.a.createElement("img",{className:_e.a.img,src:L.a.IMG_SERVER+"/images/"+rn.avatar_url}),m.a.createElement("div",{className:_e.a.text},rn.creator),sn&&m.a.createElement("div",{className:_e.a.btns},m.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),m.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Yn&&m.a.createElement("div",{className:_e.a.sign},"\u516C\u5F00")),m.a.createElement("div",{className:_e.a.bottom},rn.visits>0&&m.a.createElement(D.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-liulanyan"}),m.a.createElement("span",null,rn.visits))),rn.course_members_count>0&&m.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-chengyuan"}),rn.course_members_count)),rn.tasks_count>0&&m.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-zuoye"}),rn.tasks_count)),rn.is_end?m.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):m.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),m.a.createElement("div",{className:_e.a.lockWrap},rn.is_accessible?m.a.createElement(m.a.Fragment,null,sn&&m.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(sn))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),m.a.createElement("div",{onClick:function(pr){Pt&&Object(K.cb)([Pt]),Object(K.S)(rn.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(L.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),m.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!rt.length&&m.a.createElement(Ee.a,null)))},qe=Ge,ut=o("f0W+"),st=o.n(ut),ft=function(At){var Et=At.dataSource,je=Et===void 0?[]:Et,rt=At.value,at=At.onChange,Ae=At.className,Fe=At.style,Tt=Fe===void 0?{}:Fe,yt=At.tabBarExtraContent;return m.a.createElement("div",{className:n()(st.a.tabs,Ae),style:Tt},m.a.createElement("div",{className:st.a.tabsWrap},je.map(function(Ot,Lt){return m.a.createElement("div",{onClick:function(){return at(Ot.id)},className:rt===Ot.id?st.a.active:"",key:Lt},Ot.name)})),m.a.createElement("div",{className:st.a.tabBar},yt))},gt=ft,Ve=o("9JIy"),ke=o.n(Ve),dt=function(At){var Et=At.className,je=At.style,rt=je===void 0?{}:je,at=At.children;return m.a.createElement("div",{className:n()(ke.a.table,Et),style:rt},at)},Bt=dt,vt=o("qVdP"),Rt=o("jsC+"),ot=o("lUTK"),Je=o("BvKs"),et=o("8WcF"),Me=o.n(et),Be=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],Xe=function(At){var Et,je=At.sortValue,rt=At.dropValue,at=At.className,Ae=At.onSort,Fe=At.onDrop,Tt=At.dataSource,yt=Tt===void 0?Be:Tt;return m.a.createElement("div",{className:n()(Me.a.orderWrap,at)},m.a.createElement(Rt.a,{overlay:m.a.createElement(Je.a,null,yt.map(function(Ot,Lt){return m.a.createElement(Je.a.Item,{key:Lt,onClick:function(){return Fe(Ot.id)}},Ot.name)}))},m.a.createElement("span",{className:Me.a.orderTextWrap},(Et=yt.find(function(Ot){return rt===Ot.id}))===null||Et===void 0?void 0:Et.name)),m.a.createElement("span",{className:Me.a.orderIconWrap},m.a.createElement("span",{className:Me.a.orderAsc},m.a.createElement("i",{className:je==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Me.a.cursorPointer," ").concat(Me.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Me.a.cursorPointer),onClick:function(){return Ae(je==="asc"?"desc":"asc")}})),m.a.createElement("span",{className:Me.a.orderDesc},m.a.createElement("i",{className:je==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Me.a.cursorPointer," ").concat(Me.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Me.a.cursorPointer),onClick:function(){return Ae(je==="asc"?"desc":"asc")}}))))},Ke=Xe,$e=o("siWv"),_t=o.n($e),Ft=function(At){var Et=At.className,je=At.style,rt=At.children,at=At.onClick;return m.a.createElement("div",{onClick:at,className:n()(_t.a.btn,Et),style:je},rt)},qt=Ft},Nmxd:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:function(k,z,o){"use strict";o.d(z,"a",function(){return C});var M=o("Kwbf");function m(A,g){var e=new Set;return A.forEach(function(f){g.has(f)||e.add(f)}),e}function T(A){var g=A||{},e=g.disabled,f=g.disableCheckbox,r=g.checkable;return!!(e||f)||r===!1}function b(A,g,e,f){for(var r=new Set(A),l=new Set,n=0;n<=e;n+=1){var i=g.get(n)||new Set;i.forEach(function(d){var s=d.key,u=d.node,S=d.children,E=S===void 0?[]:S;r.has(s)&&!f(u)&&E.filter(function(_){return!f(_.node)}).forEach(function(_){r.add(_.key)})})}for(var a=new Set,c=e;c>=0;c-=1){var h=g.get(c)||new Set;h.forEach(function(d){var s=d.parent,u=d.node;if(f(u)||!d.parent||a.has(d.parent.key))return;if(f(d.parent.node)){a.add(s.key);return}var S=!0,E=!1;(s.children||[]).filter(function(_){return!f(_.node)}).forEach(function(_){var P=_.key,R=r.has(P);S&&!R&&(S=!1),!E&&(R||l.has(P))&&(E=!0)}),S&&r.add(s.key),E&&l.add(s.key),a.add(s.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(m(l,r))}}function y(A,g,e,f,r){for(var l=new Set(A),n=new Set(g),i=0;i<=f;i+=1){var a=e.get(i)||new Set;a.forEach(function(s){var u=s.key,S=s.node,E=s.children,_=E===void 0?[]:E;!l.has(u)&&!n.has(u)&&!r(S)&&_.filter(function(P){return!r(P.node)}).forEach(function(P){l.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 u=s.parent,S=s.node;if(r(S)||!s.parent||c.has(s.parent.key))return;if(r(s.parent.node)){c.add(u.key);return}var E=!0,_=!1;(u.children||[]).filter(function(P){return!r(P.node)}).forEach(function(P){var R=P.key,x=l.has(R);E&&!x&&(E=!1),!_&&(x||n.has(R))&&(_=!0)}),E||l.delete(u.key),_&&n.add(u.key),c.add(u.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(m(n,l))}}function C(A,g,e,f){var r=[],l;f?l=f:l=T;var n=new Set(A.filter(function(h){var d=!!e[h];return d||r.push(h),d})),i=new Map,a=0;Object.keys(e).forEach(function(h){var d=e[h],s=d.level,u=i.get(s);u||(u=new Set,i.set(s,u)),u.add(d),a=Math.max(a,s)}),Object(M.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var c;return g===!0?c=b(n,i,a,l):c=y(n,g.halfCheckedKeys,i,a,l),c}},OLES:function(k,z,o){"use strict";var M=o("U8pU"),m=o("VTBJ"),T=o("Ff2n"),b=o("q1tI"),y=o("uciX"),C=o("7ixt"),A=function(n){var i=n.overlay,a=n.prefixCls,c=n.id,h=n.overlayInnerStyle;return b.createElement("div",{className:"".concat(a,"-inner"),id:c,role:"tooltip",style:h},typeof i=="function"?i():i)},g=A,e=function(n,i){var a=n.overlayClassName,c=n.trigger,h=c===void 0?["hover"]:c,d=n.mouseEnterDelay,s=d===void 0?0:d,u=n.mouseLeaveDelay,S=u===void 0?.1:u,E=n.overlayStyle,_=n.prefixCls,P=_===void 0?"rc-tooltip":_,R=n.children,x=n.onVisibleChange,w=n.afterVisibleChange,v=n.transitionName,O=n.animation,U=n.placement,I=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,L=n.overlayInnerStyle,K=Object(T.a)(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),te=Object(b.useRef)(null);Object(b.useImperativeHandle)(i,function(){return te.current});var fe=Object(m.a)({},K);"visible"in n&&(fe.popupVisible=n.visible);var de=function(){var ye=n.arrowContent,ue=ye===void 0?null:ye,le=n.overlay,$=n.id;return[b.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},ue),b.createElement(g,{key:"content",prefixCls:P,id:$,overlay:le,overlayInnerStyle:L})]},Ce=!1,Oe=!1;if(typeof D=="boolean")Ce=D;else if(D&&Object(M.a)(D)==="object"){var ce=D.keepParent;Ce=ce===!0,Oe=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:a,prefixCls:P,popup:de,action:h,builtinPlacements:C.a,popupPlacement:I,ref:te,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:x,afterPopupVisibleChange:w,popupTransitionName:v,popupAnimation:O,defaultPopupVisible:W,destroyPopupOnHide:Ce,autoDestroy:Oe,mouseLeaveDelay:S,popupStyle:E,mouseEnterDelay:s},fe),R)},f=Object(b.forwardRef)(e),r=z.a=f},OLod:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("K3mO"))})(this,function(M){M.lib.Cipher||function(m){var T=M,b=T.lib,y=b.Base,C=b.WordArray,A=b.BufferedBlockAlgorithm,g=T.enc,e=g.Utf8,f=g.Base64,r=T.algo,l=r.EvpKDF,n=b.Cipher=A.extend({cfg:y.extend(),createEncryptor:function(v,O){return this.create(this._ENC_XFORM_MODE,v,O)},createDecryptor:function(v,O){return this.create(this._DEC_XFORM_MODE,v,O)},init:function(v,O,U){this.cfg=this.cfg.extend(U),this._xformMode=v,this._key=O,this.reset()},reset:function(){A.reset.call(this),this._doReset()},process:function(v){return this._append(v),this._process()},finalize:function(v){v&&this._append(v);var O=this._doFinalize();return O},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function v(O){return typeof O=="string"?w:P}return function(O){return{encrypt:function(U,I,N){return v(I).encrypt(O,U,I,N)},decrypt:function(U,I,N){return v(I).decrypt(O,U,I,N)}}}}()}),i=b.StreamCipher=n.extend({_doFinalize:function(){var v=this._process(!0);return v},blockSize:1}),a=T.mode={},c=b.BlockCipherMode=y.extend({createEncryptor:function(v,O){return this.Encryptor.create(v,O)},createDecryptor:function(v,O){return this.Decryptor.create(v,O)},init:function(v,O){this._cipher=v,this._iv=O}}),h=a.CBC=function(){var v=c.extend();v.Encryptor=v.extend({processBlock:function(U,I){var N=this._cipher,V=N.blockSize;O.call(this,U,I,V),N.encryptBlock(U,I),this._prevBlock=U.slice(I,I+V)}}),v.Decryptor=v.extend({processBlock:function(U,I){var N=this._cipher,V=N.blockSize,H=U.slice(I,I+V);N.decryptBlock(U,I),O.call(this,U,I,V),this._prevBlock=H}});function O(U,I,N){var V,H=this._iv;H?(V=H,this._iv=m):V=this._prevBlock;for(var D=0;D<N;D++)U[I+D]^=V[D]}return v}(),d=T.pad={},s=d.Pkcs7={pad:function(v,O){for(var U=O*4,I=U-v.sigBytes%U,N=I<<24|I<<16|I<<8|I,V=[],H=0;H<I;H+=4)V.push(N);var D=C.create(V,I);v.concat(D)},unpad:function(v){var O=v.words[v.sigBytes-1>>>2]&255;v.sigBytes-=O}},u=b.BlockCipher=n.extend({cfg:n.cfg.extend({mode:h,padding:s}),reset:function(){var v;n.reset.call(this);var O=this.cfg,U=O.iv,I=O.mode;this._xformMode==this._ENC_XFORM_MODE?v=I.createEncryptor:(v=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,U&&U.words):(this._mode=v.call(I,this,U&&U.words),this._mode.__creator=v)},_doProcessBlock:function(v,O){this._mode.processBlock(v,O)},_doFinalize:function(){var v,O=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(O.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),O.unpad(v)),v},blockSize:128/32}),S=b.CipherParams=y.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),E=T.format={},_=E.OpenSSL={stringify:function(v){var O,U=v.ciphertext,I=v.salt;return I?O=C.create([1398893684,1701076831]).concat(I).concat(U):O=U,O.toString(f)},parse:function(v){var O,U=f.parse(v),I=U.words;return I[0]==1398893684&&I[1]==1701076831&&(O=C.create(I.slice(2,4)),I.splice(0,4),U.sigBytes-=16),S.create({ciphertext:U,salt:O})}},P=b.SerializableCipher=y.extend({cfg:y.extend({format:_}),encrypt:function(v,O,U,I){I=this.cfg.extend(I);var N=v.createEncryptor(U,I),V=N.finalize(O),H=N.cfg;return S.create({ciphertext:V,key:U,iv:H.iv,algorithm:v,mode:H.mode,padding:H.padding,blockSize:v.blockSize,formatter:I.format})},decrypt:function(v,O,U,I){I=this.cfg.extend(I),O=this._parse(O,I.format);var N=v.createDecryptor(U,I).finalize(O.ciphertext);return N},_parse:function(v,O){return typeof v=="string"?O.parse(v,this):v}}),R=T.kdf={},x=R.OpenSSL={execute:function(v,O,U,I){I||(I=C.random(64/8));var N=l.create({keySize:O+U}).compute(v,I),V=C.create(N.words.slice(O),U*4);return N.sigBytes=O*4,S.create({key:N,iv:V,salt:I})}},w=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:x}),encrypt:function(v,O,U,I){I=this.cfg.extend(I);var N=I.kdf.execute(U,v.keySize,v.ivSize);I.iv=N.iv;var V=P.encrypt.call(this,v,O,N.key,I);return V.mixIn(N),V},decrypt:function(v,O,U,I){I=this.cfg.extend(I),O=this._parse(O,I.format);var N=I.kdf.execute(U,v.keySize,v.ivSize,O.salt);I.iv=N.iv;var V=P.decrypt.call(this,v,O,N.key,I);return V}})}()})},OZM5:function(k,z,o){"use strict";o.d(z,"b",function(){return f}),o.d(z,"a",function(){return r}),o.d(z,"k",function(){return l}),o.d(z,"h",function(){return n}),o.d(z,"i",function(){return i}),o.d(z,"g",function(){return a}),o.d(z,"c",function(){return c}),o.d(z,"d",function(){return h}),o.d(z,"j",function(){return u}),o.d(z,"e",function(){return S}),o.d(z,"f",function(){return E});var M=o("KQm4"),m=o("U8pU"),T=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("Kwbf"),A=o("WaYH"),g=.25,e=2;function f(_,P){var R=_.slice(),x=R.indexOf(P);return x>=0&&R.splice(x,1),R}function r(_,P){var R=_.slice();return R.indexOf(P)===-1&&R.push(P),R}function l(_){return _.split("-")}function n(_,P){return"".concat(_,"-").concat(P)}function i(_){return _&&_.type&&_.type.isTreeNode}function a(_,P){var R=[_],x=P[_];function w(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];v.forEach(function(O){var U=O.key,I=O.children;R.push(U),w(I)})}return w(x.children),R}function c(_,P){var R=_.clientY,x=P.selectHandle.getBoundingClientRect(),w=x.top,v=x.bottom,O=x.height,U=Math.max(O*g,e);return R<=w+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,w=x===void 0?d:x,v=Array.isArray(_)?_:[_];return v.map(function(O){var U=O.children,I=Object(T.a)(O,["children"]),N=s(U,P);return y.a.createElement(A.a,Object.assign({},w(I)),N)})}function u(_){if(!_)return null;var P;if(Array.isArray(_))P={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(m.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 S(_,P){var R=new Set;function x(w){if(R.has(w))return;var v=P[w];if(!v)return;R.add(w);var O=v.parent,U=v.node;if(U.disabled)return;O&&x(O.key)}return(_||[]).forEach(function(w){x(w)}),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"),m=o("kLXV"),T=o("rAM+"),b=o("miYZ"),y=o("tsqr"),C=o("9og8"),A=o("tJVT"),g=o("jrin"),e=o("WmNS"),f=o.n(e),r=o("q1tI"),l=o.n(r),n=o("VrN/"),i=o.n(n),a=o("bdgK"),c=o("p77/"),h=o("Bd2K"),d=o("ELLl"),s=o("19Vz"),u=o("lZu9"),S=o("+NIl"),E=o("kSUc"),_=o("9Bee"),P=function($e){var _t=$e.value,Ft=_t===void 0?"":_t,qt=$e.className,bn=$e.showTextOnly,At=$e.showLines,Et=$e.style,je=Et===void 0?{}:Et,rt=Object(r.useMemo)(function(){return""},[Ft]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:rt}}))},R=o("0Owb"),x=o("dejd"),w=o("C+DQ"),v=o("1vsH"),O=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 I($e){var _t=$e.onActionCallback,Ft=$e.title,qt=$e.icon,bn=$e.actionName,At=$e.className,Et=At===void 0?"":At,je=$e.children;function rt(){_t(bn)}return l.a.createElement("a",{title:Ft,className:Et,onClick:rt},l.a.createElement("i",{className:"md-iconfont ".concat(qt)}),je)}var N=function($e){var _t=$e.watch,Ft=$e.showNullButton,qt=$e.onActionCallback,bn=$e.fullScreen,At=$e.insertTemp,Et=$e.hidetoolBar,je=$e.uuid,rt=$e.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(v.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(v.F)("_educoder_session"),"&key=").concat(je,"&api=").concat(encodeURIComponent(O.a.PROXY_SERVER)));var at=[].concat(U,[{title:"".concat(_t?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(_t?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!Et&&at.map(function(Ae,Fe){return l.a.createElement("li",{key:Fe},Ae.actionName?l.a.createElement(I,Object(R.a)({},Ae,{onActionCallback:qt})):l.a.createElement("span",{className:"v-line"}))}),Ft?l.a.createElement("li",null,l.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qt},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,At&&l.a.createElement("li",null,l.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(At),onActionCallback:qt},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(I,{icon:"".concat(bn?"icon-shrink":"icon-enlarge"),title:bn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qt})))},V=o("M8RZ"),H=o("+L6B"),D=o("2/Rp"),W=o("y8nQ"),F=o("Vl3Y"),L=o("5NDa"),K=o("5rEg"),te={labelCol:{span:4},wrapperCol:{span:20}},fe=function($e){var _t=$e.callback,Ft=$e.onCancel;function qt(bn){_t(bn)}return l.a.createElement(F.a,Object(R.a)({},te,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:qt}),l.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(K.a,null)),l.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(K.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Ft},"\u53D6\u6D88")))},de=o("7ahc"),Ce=o("HmJG"),Oe=o("BjJ7"),ce=F.a.useForm,Ee={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}},ue=function($e){var _t=$e.callback,Ft=$e.onCancel,qt=ce(),bn=Object(A.a)(qt,1),At=bn[0];function Et(at){_t(at)}function je(at,Ae){if(at.status===-1){y.b.error(at.message);return}At.setFieldsValue({src:"/api/attachments/".concat(at.id),type:Ae.type})}function rt(at){var Ae=at.target.files[0];$(Ae,je)}return l.a.createElement(F.a,Object(R.a)({form:At},ye,{className:"upload-image-panel",onFinish:Et}),l.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(K.a,{style:Ee})),l.a.createElement(le,{onFileChange:rt}))),l.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},l.a.createElement(K.a,{style:{width:264}})),l.a.createElement(F.a.Item,{style:{textAlign:"right"}},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Ft},"\u53D6\u6D88")))};function le($e){var _t=$e.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:_t}))}function $($e,_t){if(!$e)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ft=new FormData;Ft.append("editormd-image-file",$e),Ft.append("file_param_name","editormd-image-file"),Ft.append("byxhr","true");var qt=new window.XMLHttpRequest;qt.withCredentials=!0,qt.addEventListener("load",function(bn){_t(JSON.parse(bn.target.responseText),$e)},!1),qt.addEventListener("error",function(bn){console.error(bn)},!1),qt.open("POST","".concat(Oe.a,"/api/attachments.json")),qt.send(Ft)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),Se=o("9yH6"),oe=Se.a.Group,ee={margin:"0 8px"},J=function($e){var _t=$e.callback,Ft=$e.onCancel;function qt(bn){_t(bn)}return l.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:qt},l.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},l.a.createElement("span",{style:ee},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:ee},"\u884C\u6570"),l.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(re.a,null)),l.a.createElement("span",{style:ee},"\u5217\u6570"),l.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(re.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},l.a.createElement("span",{style:ee},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(F.a.Item,{name:"align"},l.a.createElement(oe,null,l.a.createElement(Se.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Se.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Se.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Se.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Ft},"\u53D6\u6D88")))},Q=o("ErOA"),ve=o("7Cbv"),_e="link",Te="upload-image",Ge="code-block",qe="add-table",ut="------------",st={default:ut,left:":".concat(ut),center:":".concat(ut,":"),right:"".concat(ut,":")},ft=o("9VGf"),gt,Ve;function ke(){}var dt=0,Bt=1e4,vt="\u2581",Rt=`
|
|
|
**\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 ot($e){return/^\d+$/.test($e)?"".concat($e,"px"):$e}var Je=navigator.platform.toUpperCase().indexOf("MAC")>=0,et=Je?"Cmd":"Ctrl",Me=["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"],Be=(gt={},Object(g.a)(gt,et+"-B","bold"),Object(g.a)(gt,et+"-I","italic"),gt),Xe=(Ve={},Object(g.a)(Ve,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(g.a)(Ve,Ge,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(g.a)(Ve,Te,"\u6DFB\u52A0\u6587\u4EF6"),Object(g.a)(Ve,qe,"\u6DFB\u52A0\u8868\u683C"),Ve),Ke=z.a=function($e){var _t=$e.defaultValue,Ft=_t===void 0?"":_t,qt=$e.onChange,bn=$e.width,At=bn===void 0?"100%":bn,Et=$e.height,je=Et===void 0?400:Et,rt=$e.miniToolbar,at=rt===void 0?!1:rt,Ae=$e.isFocus,Fe=Ae===void 0?!1:Ae,Tt=$e.watch,yt=$e.insertTemp,Ot=$e.mode,Lt=Ot===void 0?"markdown":Ot,tt=$e.id,Ut=tt===void 0?"markdown-editor-id":tt,Pt=$e.showResizeBar,an=Pt===void 0?!1:Pt,nn=$e.noStorage,rn=nn===void 0?!1:nn,Tn=$e.showNullButton,sn=Tn===void 0?!1:Tn,un=$e.hidetoolBar,Jn=un===void 0?!1:un,kn=$e.fullScreen,Yn=kn===void 0?!1:kn,tr=$e.onBlur,pr=$e.onCMBeforeChange,ar=$e.onFullScreen,mn=$e.className,en=mn===void 0?"":mn,Nn=$e.disablePaste,Zr=Nn===void 0?!1:Nn,zr=$e.placeholder,Ur=zr===void 0?"":zr,Dr=$e.values,pe=Dr===void 0?"":Dr,X=Object(r.useState)(null),q=Object(A.a)(X,2),se=q[0],De=q[1],he=Object(r.useState)(Ft),pt=Object(A.a)(he,2),vn=pt[0],Kn=pt[1],dr=Object(r.useState)(Tt),on=Object(A.a)(dr,2),Mn=on[0],Xn=on[1],$r=Object(r.useState)(Yn),ga=Object(A.a)($r,2),pa=ga[0],fr=ga[1],za=Object(r.useState)(""),ja=Object(A.a)(za,2),Ra=ja[0],Ha=ja[1],wa=Object(r.useState)(0),Ja=Object(A.a)(wa,2),ka=Ja[0],li=Ja[1],oi=Object(r.useState)(je),ua=Object(A.a)(oi,2),fa=ua[0],oa=ua[1],xe=Object(r.useState)(!1),lt=Object(A.a)(xe,2),Mt=lt[0],wt=lt[1],Ht=Object(r.useRef)(Object(ve.a)()),Nt=Object(r.useRef)(!1),Vt=Object(r.useRef)(),$t=Object(r.useRef)(),En=Object(r.useRef)(),gn=Object(r.useRef)(),Un=Object(r.useRef)(),An=function(){var Qt=Object(C.a)(f.a.mark(function Sn(){var _n,In;return f.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Object(Q.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ht.current}});case 2:In=or.sent,In!=null&&(_n=In.attachments)!==null&&_n!==void 0&&_n.length&&(console.log("cm:",se,$t),In.attachments.map(function($n){$n.content_type.indexOf("image")>-1?se.replaceSelection(".concat($n.content_type,")")):$n.content_type.indexOf("video")>-1?se.replaceSelection('<video width="100%" controls src="'.concat(O.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):$n.content_type.indexOf("pdf")>-1?se.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat($n.id,"?type=").concat($n.content_type,'&disposition=inline" target="_blank">').concat($n.name,"</a>")):se.replaceSelection("[".concat($n.name,"](").concat(O.a.API_SERVER,"/api/attachments/").concat($n.id,"?type=").concat($n.content_type,")"))}));case 4:case"end":return or.stop()}},Sn)}));return function(){return Qt.apply(this,arguments)}}();Object(r.useEffect)(function(){Kn(pe),se==null||se.setValue(pe)},[pe]),Object(r.useEffect)(function(){ar==null||ar(pa)},[pa]),Object(r.useEffect)(function(){if($t.current){var Qt=i.a.fromTextArea($t.current,{mode:Lt,lineNumbers:!at,lineWrapping:!0,value:Ft,autoCloseTags:!0,autoCloseBrackets:!0});Fe&&Qt.focus();function Sn(_n,In){if(Zr){In.preventDefault();return}var Bn=In.clipboardData;if(Bn){var or=Bn.types.toString(),$n=Bn.items;if(or==="Files"||Bn.types.indexOf("Files")>-1){if(In.preventDefault(),Lt=="stex")return;try{var Or,Pr=$n[1];((Or=$n[0])===null||Or===void 0?void 0:Or.kind)==="file"&&(Pr=$n[0]);var Zn=Pr.getAsFile(),Tr=Zn.name.split(".").pop();$(Zn,function(vr){if(vr.id){var Hr,Mr,qr;(Zn==null||((Hr=Zn.type)===null||Hr===void 0)?void 0:Hr.indexOf("image"))>-1?Qt.replaceSelection(".concat(vr.content_type,")")):(Zn==null||((Mr=Zn.type)===null||Mr===void 0)?void 0:Mr.indexOf("video"))>-1?Qt.replaceSelection('<video width="100%" controls src="'.concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):(Zn==null||((qr=Zn.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?Qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(Zn.type,'&disposition=inline" target="_blank">').concat(Zn.name,"</a>")):Me.includes(Tr)?Qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat(Zn.name,"</a>")):Qt.replaceSelection("[".concat(Zn.name,"](").concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})}catch(vr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Qt.on("paste",Sn),Qt.on("dragleave",function(_n,In){En.current.classList.remove("mouse-hover-md")}),Qt.on("dragover",function(_n,In){En.current.classList.add("mouse-hover-md")}),Qt.on("drop",function(_n,In){En.current.classList.add("mouse-hover-md");var Bn;if(Bn=In.dataTransfer.files,Bn.length>0){In.preventDefault(),In.stopPropagation();for(var or=function(Pr){var Zn=Bn[Pr],Tr=Zn.name.split(".").pop();$(Zn,function(vr){if(vr.id){var Hr,Mr,qr;(Zn==null||((Hr=Zn.type)===null||Hr===void 0)?void 0:Hr.indexOf("image"))>-1?Qt.replaceSelection(".concat(vr.content_type,")")):(Zn==null||((Mr=Zn.type)===null||Mr===void 0)?void 0:Mr.indexOf("video"))>-1?Qt.replaceSelection('<video width="100%" controls src="'.concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,'"></video>')):(Zn==null||((qr=Zn.type)===null||qr===void 0)?void 0:qr.indexOf("pdf"))>-1?Qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(Zn.type,'&disposition=inline" target="_blank">').concat(Zn.name,"</a>")):Me.includes(Tr)?Qt.replaceSelection('<a href="'.concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,'?type=office&disposition=inline" target="_blank">').concat(Zn.name,"</a>")):Qt.replaceSelection("[".concat(Zn.name,"](").concat(O.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})},$n=0;$n<Bn.length;$n++)or($n)}}),De(Qt),function(){Qt.off("paste",Sn)}}},[]);var tn=Object(r.useCallback)(function(){if(En.current)try{}catch(Qt){console.log(Qt,"---- to set md editor body height")}},[fa,En,pa]);Object(r.useEffect)(function(){function Qt(){var _n=new a.default(function(In){var Bn=Object(T.a)(In),or;try{for(Bn.s();!(or=Bn.n()).done;){var $n=or.value;($n.target.offsetHeight>0||$n.target.offsetWidth>0)&&(tn(),se.setSize("100%","100%"),se.refresh())}}catch(Or){Bn.e(Or)}finally{Bn.f()}});return _n.observe($t.current.parentElement),_n}if(se){var Sn=Qt();return function(){Sn.unobserve($t.current.parentElement)}}},[se,tn]),Object(r.useEffect)(function(){if(se){for(var Qt=[],Sn=function(){var $n=In[_n];Bn=Object(A.a)($n,2);var Or=Bn[0],Pr=Bn[1],Zn=Object(g.a)({},Or,function(){Pn(Pr)});Qt.push(Zn),se.addKeyMap(Zn)},_n=0,In=Object.entries(Be);_n<In.length;_n++){var Bn;Sn()}return Vt.current=setInterval(function(){Nt.current&&An()},4e3),function(){clearInterval(Vt.current);var or=Object(T.a)(Qt),$n;try{for(or.s();!($n=or.n()).done;){var Or=$n.value;se.removeKeyMap(Or)}}catch(Pr){or.e(Pr)}finally{or.f()}}}},[se]),Object(r.useEffect)(function(){Yn!==pa&&fr(Yn)},[Yn]),Object(ft.a)(function(){if(!rn&&ka>0){var Qt=new Date().getTime(),Sn=window.sessionStorage.getItem(Ut);Qt>=ka+Bt&&(!Sn||Sn!==vn)&&(window.sessionStorage.setItem(Ut,vn),wt(!0))}},Bt),Object(r.useEffect)(function(){Xn(Tt)},[se,Tt]),Object(r.useEffect)(function(){se&&(Fe&&se.focus())},[se,Fe]),Object(r.useEffect)(function(){if(Mn&&se){var Qt=se.getScrollerElement();function Sn(_n){var In=_n.target;if(Un.current){var Bn=In.scrollTop/In.scrollHeight;Un.current.scrollTop=Un.current.scrollHeight*Bn}}return Qt.addEventListener("scroll",Sn),function(){Qt.removeEventListener("scroll",Sn)}}},[se,Mn]),Object(r.useEffect)(function(){if(se&&pr){function Qt(Sn,_n){pr(Sn,_n)}return se.on("beforeChange",Qt),function(){se.off("beforeChange",Qt)}}},[se,pr]),Object(r.useEffect)(function(){if(se&&tr){function Qt(){tr(se.getValue())}return se.on("blur",Qt),function(){se.off("blur",Qt)}}},[se,tr]),Object(r.useEffect)(function(){if(se){function Qt(Sn){var _n=Sn.getValue();Kn(_n),li(new Date().getTime()),Sn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qt&&qt(_n)}return se.on("change",Qt),function(){se.off("change",Qt)}}},[se,qt]),Object(r.useEffect)(function(){se&&(Ft==null?(se.setValue(""),Kn("")):Ft!==se.getValue()&&(se.setValue(Ft),Kn(Ft),se.setCursor(se.lineCount(),0)))},[se,Ft]);var Pn=Object(r.useCallback)(function(Qt){var Sn=se.getCursor(),_n=se.getSelection(),In=_n.split(`
|
|
|
`);switch(Qt){case"bold":return se.replaceSelection("**"+_n+"**"),_n===""&&se.setCursor(Sn.line,Sn.ch+2),se.focus();case"italic":return se.replaceSelection("*"+_n+"*"),_n===""&&se.setCursor(Sn.line,Sn.ch+1),se.focus();case"code":return se.replaceSelection("`"+_n+"`"),_n===""&&se.setCursor(Sn.line,Sn.ch+1),se.focus();case"inline-latex":return se.replaceSelection("`$$"+_n+"$$`"),_n===""&&se.setCursor(Sn.line,Sn.ch+3),se.focus();case"latex":return se.replaceSelection("```latex\n"+_n+"\n```"),se.setCursor(Sn.line+1,_n.length+1),se.focus();case"line-break":return se.replaceSelection(`<br/>
|
|
|
`),se.focus();case"list-ul":return _n===""?se.replaceSelection("- "+_n):se.replaceSelection(In.map(function(Bn){return Bn===""?"":"- ".concat(Bn)}).join(`
|
|
|
`)),se.focus();case"list-ol":return _n===""?se.replaceSelection("1. "+_n):se.replaceSelection(In.map(function(Bn,or){return Bn===""?"":"".concat(or+1,". ").concat(Bn)}).join(`
|
|
|
`)),se.focus();case"add-null-ch":return _n===""&&se.setCursor(Sn.line,Sn.ch+1),se.replaceSelection(vt),se.focus();case"inster-template-1":return _n===""&&se.setCursor(Sn.line,Sn.ch),se.replaceSelection(Rt),se.focus();case"eraser":return se.setValue(""),se.focus();case"trigger-watch":return Xn(!Mn),se.focus();case"trigger-full-screen":return fr(!pa),se.focus();case _e:Ha(_e);return;case Ge:Ha(Ge);return;case Te:Ha(Te);return;case qe:Ha(qe);return;default:throw new Error}},[se,Mn,pa]),yn=Object(r.useCallback)(function(Qt){Ha("");switch(Ra){case _e:var Sn=Qt.title,_n=Qt.link;return se.replaceSelection("[".concat(Sn,"](").concat(_n,")")),se.focus();case Ge:var In=Qt.language,Bn=Qt.content;return se.replaceSelection(["```"+In,Bn,"```"].join(`
|
|
|
`)),se.focus();case Te:var or=Qt.src,$n=Qt.alt;return $n?se.replaceSelection(".concat(or,' "').concat($n,'" )')):se.replaceSelection("")),se.focus();case qe:for(var Or=Qt.row,Pr=Qt.col,Zn=Qt.align,Tr=`
|
|
|
`,vr=0;vr<Or;vr++){for(var Hr=[],Mr=[],qr=0;qr<Pr;qr++)vr===1&&Mr.push(st[Zn]),Hr.push(" ");vr===1&&(Tr+="| ".concat(Mr.join(" | "),` |
|
|
|
`)),Tr+="| ".concat(Hr.join(Pr===1?"":" | "),` |
|
|
|
`)}return se.replaceSelection(Tr+`
|
|
|
`),se.focus();default:throw new Error}},[se,Ra]),jn=Object(r.useMemo)(function(){switch(Ra){case _e:return l.a.createElement(fe,{callback:yn,onCancel:Rn});case Ge:return l.a.createElement(de.b,{callback:yn,onCancel:Rn});case Te:return l.a.createElement(ue,{callback:yn,onCancel:Rn});case qe:return l.a.createElement(J,{callback:yn,onCancel:Rn});default:return null}},[Ra]);function Rn(){Ha("")}Object(r.useEffect)(function(){if(gn.current){var Qt=gn.current,Sn=!1,_n=0;function In($n){Sn=!0,_n=$n.pageY}function Bn(){Sn=!1}function or($n){if(Sn){var Or=$n.pageY-_n;Or<0&&(Or=0),Or>300&&(Or=300);var Pr=je+Or+"px";oa(Pr)}}return Qt.addEventListener("mousedown",In),document.addEventListener("mousemove",or),document.addEventListener("mouseup",Bn),function(){Qt.removeEventListener("mousedown",In),document.removeEventListener("mousemove",or),document.removeEventListener("mouseup",Bn)}}},[se,gn]),Object(r.useEffect)(function(){oa(je)},[je]);var Qn=ot(At),mr=ot(fa),kr={width:Qn,height:mr},wn=Object(r.useMemo)(function(){if(ka){var Qt=new Date(ka),Sn=Qt.getHours(),_n=Qt.getMinutes(),In=Qt.getSeconds();return Sn=Sn<10?"0"+Sn:Sn,_n=_n<10?"0"+_n:_n,In=In<10?"0"+In:In,"".concat(Sn,":").concat(_n,":").concat(In)}return 0},[ka]);function Xt(){window.sessionStorage.removeItem(Ut),wt(!1),li(0)}function fn(){wt(!1),li(0),se.setValue(window.sessionStorage.getItem(Ut))}function Dn(Qt,Sn){var _n=se.getValue();_n=_n.replace(Qt,Sn),Kn(_n),se==null||se.setValue(_n)}return l.a.createElement(r.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:En},l.a.createElement("div",{className:"markdown-editor-container ".concat(en," ").concat(Mn?"on-preview":""," ").concat(at?"mini":""," ").concat(pa?"full-screen":""),style:kr},l.a.createElement(N,{insertTemp:yt,watch:Mn,fullScreen:pa,showNullButton:sn,onActionCallback:Pn,hidetoolBar:Jn,uuid:Ht.current,setOpenPhones:function(){Nt.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:$t,placeholder:Ur})),Mn?l.a.createElement("div",{ref:Un,className:"preview-container"},Lt==="stex"&&l.a.createElement(P,{value:vn}),Lt!=="stex"&&l.a.createElement(_.a,{edit:!0,value:vn,replaces:Dn})):null))),an?l.a.createElement("a",{ref:gn,className:"editor-resize"}):null,l.a.createElement(V.a,null,Xe[Ra]?l.a.createElement(m.a,{centered:!0,title:Xe[Ra],visible:!0,onCancel:Rn,footer:null,className:"markdown-popup-form"},jn):null))}},P5Jw:function(k,z,o){"use strict";var M=o("rHrb"),m=M.CopyToClipboard;m.CopyToClipboard=m,k.exports=m},PVpz:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.StreamCipher,y=m.algo,C=[],A=[],g=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var r=this._key.words,l=this.cfg.iv,n=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],i=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var a=0;a<4;a++)f.call(this);for(var a=0;a<8;a++)i[a]^=n[a+4&7];if(l){var c=l.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,S=s>>>16|u&4294901760,E=u<<16|s&65535;i[0]^=s,i[1]^=S,i[2]^=u,i[3]^=E,i[4]^=s,i[5]^=S,i[6]^=u,i[7]^=E;for(var a=0;a<4;a++)f.call(this)}},_doProcessBlock:function(r,l){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,r[l+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var r=this._X,l=this._C,n=0;n<8;n++)A[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<A[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<A[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<A[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<A[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<A[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<A[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<A[6]>>>0?1:0)|0,this._b=l[7]>>>0<A[7]>>>0?1:0;for(var n=0;n<8;n++){var i=r[n]+l[n],a=i&65535,c=i>>>16,h=((a*a>>>17)+a*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);g[n]=h^d}r[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,r[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,r[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,r[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,r[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,r[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,r[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,r[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}m.RabbitLegacy=b._createHelper(e)}(),M.RabbitLegacy})},QNag:function(k,z,o){"use strict";var M=o("2qtc"),m=o("kLXV"),T=o("+L6B"),b=o("2/Rp"),y=o("9og8"),C=o("y8nQ"),A=o("Vl3Y"),g=o("tJVT"),e=o("PpiC"),f=o("5NDa"),r=o("5rEg"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),a=o.n(i),c=o("9kvl"),h=o("JFl9"),d=o.n(h),s=r.a.TextArea,u=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,w=E.onFinish,v=w===void 0?function(){}:w,O=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=A.a.useForm(),I=Object(g.a)(U,1),N=I[0],V=function(){var D=Object(y.a)(n.a.mark(function W(F){var L,K;return n.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,x({type:"shixunsDetail/getCustomScript",payload:{id:(L=_.actionTabs.params)===null||L===void 0?void 0:L.id,compile:F.execute,excutive:F.compile}});case 2:K=fe.sent,H(),K&&v(K==null?void 0:K.shixun_script);case 5:case"end":return fe.stop()}},W)}));return function(F){return D.apply(this,arguments)}}(),H=function(){x({type:"shixunsDetail/setActionTabs",payload:{}})};return a.a.createElement(m.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:_.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:H},a.a.createElement(A.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},a.a.createElement(A.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},a.a.createElement(s,{rows:4})),a.a.createElement(A.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},a.a.createElement(s,{rows:4})),a.a.createElement("div",{className:d.a.footerWrap},a.a.createElement(A.a.Item,null,a.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),a.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(S){var E=S.shixunsDetail,_=S.loading,P=S.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_}})(u)},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"),m=o("uciX"),T=o("2W6z"),b=o.n(T),y=o("4IlW"),C=o("uK0f"),A=o.n(C);function g(Ee,ye){if(Ee===ye)return!0;if(!Ee||!ye)return!1;var ue=Ee.length;if(ye.length!==ue)return!1;for(var le=0;le<ue;le++)if(Ee[le]!==ye[le])return!1;return!0}function e(Ee){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(Ee)}function f(Ee,ye){if(!(Ee instanceof ye))throw new TypeError("Cannot call a class as a function")}function r(Ee,ye){for(var ue=0;ue<ye.length;ue++){var le=ye[ue];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(Ee,le.key,le)}}function l(Ee,ye,ue){return ye&&r(Ee.prototype,ye),ue&&r(Ee,ue),Ee}function n(Ee,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");Ee.prototype=Object.create(ye&&ye.prototype,{constructor:{value:Ee,writable:!0,configurable:!0}}),ye&&i(Ee,ye)}function i(Ee,ye){return i=Object.setPrototypeOf||function(le,$){return le.__proto__=$,le},i(Ee,ye)}function a(Ee){var ye=d();return function(){var ue=s(Ee),le;if(ye){var $=s(this).constructor;le=Reflect.construct(ue,arguments,$)}else le=ue.apply(this,arguments);return c(this,le)}}function c(Ee,ye){return ye&&(e(ye)==="object"||typeof ye=="function")?ye:h(Ee)}function h(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}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(Ee){return!1}}function s(Ee){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},s(Ee)}var u=function(){var Ee=function(ye){n(le,ye);var ue=a(le);function le(){var $;return f(this,le),$=ue.apply(this,arguments),$.menuItems={},$.saveMenuItem=function(me){return function(re){$.menuItems[me]=re}},$}return l(le,[{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,Se=re.defaultFieldNames;return ae[me]||Se[me]}},{key:"getOption",value:function(me,re){var ae=this.props,Se=ae.prefixCls,oe=ae.expandTrigger,ee=ae.expandIcon,J=ae.loadingIcon,Q=this.props.onSelect.bind(this,me,re),ve=this.props.onItemDoubleClick.bind(this,me,re),_e={onClick:Q,onDoubleClick:ve},Te="".concat(Se,"-menu-item"),Ge=null,qe=me[this.getFieldName("children")]&&me[this.getFieldName("children")].length>0;(qe||me.isLeaf===!1)&&(Te+=" ".concat(Se,"-menu-item-expand"),me.loading||(Ge=M.createElement("span",{className:"".concat(Se,"-menu-item-expand-icon")},ee))),oe==="hover"&&(qe||me.isLeaf===!1)&&(_e={onMouseEnter:this.delayOnSelect.bind(this,Q),onMouseLeave:this.delayOnSelect.bind(this),onClick:Q}),this.isActiveOption(me,re)&&(Te+=" ".concat(Se,"-menu-item-active"),_e.ref=this.saveMenuItem(re)),me.disabled&&(Te+=" ".concat(Se,"-menu-item-disabled"));var ut=null;me.loading&&(Te+=" ".concat(Se,"-menu-item-loading"),ut=J||null);var st="";return"title"in me?st=me.title:typeof me[this.getFieldName("label")]=="string"&&(st=me[this.getFieldName("label")]),M.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Te,title:st},_e,{role:"menuitem",onMouseDown:function(gt){return gt.preventDefault()}}),me[this.getFieldName("label")],Ge,ut)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Se=me||this.props.activeValue;return A()(ae,function(oe,ee){return oe[re.getFieldName("value")]===Se[ee]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ae=this.getActiveOptions().map(function(Se){return Se[me.getFieldName("children")]}).filter(function(Se){return!!Se});return ae.unshift(re),ae}},{key:"delayOnSelect",value:function(me){for(var re=this,ae=arguments.length,Se=new Array(ae>1?ae-1:0),oe=1;oe<ae;oe++)Se[oe-1]=arguments[oe];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof me=="function"&&(this.delayTimer=window.setTimeout(function(){me(Se),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,Se=ae===void 0?[]:ae;return Se[re]===me[this.getFieldName("value")]}},{key:"render",value:function(){var me=this,re=this.props,ae=re.prefixCls,Se=re.dropdownMenuColumnStyle;return M.createElement("div",null,this.getShowOptions().map(function(oe,ee){return M.createElement("ul",{className:"".concat(ae,"-menu"),key:ee,style:Se},oe.map(function(J){return me.getOption(J,ee)}))}))}}]),le}(M.Component);return Ee.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Ee}(),S=u,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(Ee){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(Ee)}function R(Ee,ye){if(Ee==null)return{};var ue=x(Ee,ye),le,$;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(Ee);for($=0;$<me.length;$++){if(le=me[$],ye.indexOf(le)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ee,le))continue;ue[le]=Ee[le]}}return ue}function x(Ee,ye){if(Ee==null)return{};var ue={},le=Object.keys(Ee),$,me;for(me=0;me<le.length;me++){if($=le[me],ye.indexOf($)>=0)continue;ue[$]=Ee[$]}return ue}function w(Ee){return I(Ee)||U(Ee)||O(Ee)||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 O(Ee,ye){if(!Ee)return;if(typeof Ee=="string")return N(Ee,ye);var ue=Object.prototype.toString.call(Ee).slice(8,-1);if(ue==="Object"&&Ee.constructor&&(ue=Ee.constructor.name),ue==="Map"||ue==="Set")return Array.from(Ee);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(Ee,ye)}function U(Ee){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Ee))return Array.from(Ee)}function I(Ee){if(Array.isArray(Ee))return N(Ee)}function N(Ee,ye){(ye==null||ye>Ee.length)&&(ye=Ee.length);for(var ue=0,le=new Array(ye);ue<ye;ue++)le[ue]=Ee[ue];return le}function V(Ee,ye){if(!(Ee instanceof ye))throw new TypeError("Cannot call a class as a function")}function H(Ee,ye){for(var ue=0;ue<ye.length;ue++){var le=ye[ue];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(Ee,le.key,le)}}function D(Ee,ye,ue){return ye&&H(Ee.prototype,ye),ue&&H(Ee,ue),Ee}function W(Ee,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");Ee.prototype=Object.create(ye&&ye.prototype,{constructor:{value:Ee,writable:!0,configurable:!0}}),ye&&F(Ee,ye)}function F(Ee,ye){return F=Object.setPrototypeOf||function(le,$){return le.__proto__=$,le},F(Ee,ye)}function L(Ee){var ye=fe();return function(){var ue=de(Ee),le;if(ye){var $=de(this).constructor;le=Reflect.construct(ue,arguments,$)}else le=ue.apply(this,arguments);return K(this,le)}}function K(Ee,ye){return ye&&(P(ye)==="object"||typeof ye=="function")?ye:te(Ee)}function te(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function fe(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Ee){return!1}}function de(Ee){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},de(Ee)}var Ce=function(){var Ee=function(ye){W(le,ye);var ue=L(le);function le($){var me;V(this,le),me=ue.call(this,$),me.setPopupVisible=function(ae){var Se=me.state.value;"popupVisible"in me.props||me.setState({popupVisible:ae}),ae&&!me.state.popupVisible&&me.setState({activeValue:Se}),me.props.onPopupVisibleChange(ae)},me.handleChange=function(ae,Se,oe){var ee=Se.visible;(oe.type!=="keydown"||oe.keyCode===y.a.ENTER)&&(me.props.onChange(ae.map(function(J){return J[me.getFieldName("value")]}),ae),me.setPopupVisible(ee))},me.handlePopupVisibleChange=function(ae){me.setPopupVisible(ae)},me.handleMenuSelect=function(ae,Se,oe){var ee=me.trigger.getRootDomNode();ee&&ee.focus&&ee.focus();var J=me.props,Q=J.changeOnSelect,ve=J.loadData,_e=J.expandTrigger;if(!ae||ae.disabled)return;var Te=me.state.activeValue;Te=Te.slice(0,Se+1),Te[Se]=ae[me.getFieldName("value")];var Ge=me.getActiveOptions(Te);if(ae.isLeaf===!1&&!ae[me.getFieldName("children")]&&ve){Q&&me.handleChange(Ge,{visible:!0},oe),me.setState({activeValue:Te}),ve(Ge);return}var qe={};!ae[me.getFieldName("children")]||!ae[me.getFieldName("children")].length?(me.handleChange(Ge,{visible:!1},oe),qe.value=Te):Q&&(oe.type==="click"||oe.type==="keydown")&&(_e==="hover"?me.handleChange(Ge,{visible:!1},oe):me.handleChange(Ge,{visible:!0},oe),qe.value=Te),qe.activeValue=Te,("value"in me.props||oe.type==="keydown"&&oe.keyCode!==y.a.ENTER)&&delete qe.value,me.setState(qe)},me.handleItemDoubleClick=function(){var ae=me.props.changeOnSelect;ae&&me.setPopupVisible(!1)},me.handleKeyDown=function(ae){var Se=me.props.children;if(Se&&Se.props.onKeyDown){Se.props.onKeyDown(ae);return}var oe=w(me.state.activeValue),ee=oe.length-1<0?0:oe.length-1,J=me.getCurrentLevelOptions(),Q=J.map(function(Ge){return Ge[me.getFieldName("value")]}).indexOf(oe[ee]);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=Q;ve!==-1?ae.keyCode===y.a.DOWN?(ve+=1,ve=ve>=J.length?0:ve):(ve-=1,ve=ve<0?J.length-1:ve):ve=0,oe[ee]=J[ve][me.getFieldName("value")]}else if(ae.keyCode===y.a.LEFT||ae.keyCode===y.a.BACKSPACE)ae.preventDefault(),oe.splice(oe.length-1,1);else if(ae.keyCode===y.a.RIGHT)ae.preventDefault(),J[Q]&&J[Q][me.getFieldName("children")]&&oe.push(J[Q][me.getFieldName("children")][0][me.getFieldName("value")]);else if(ae.keyCode===y.a.ESC||ae.keyCode===y.a.TAB){me.setPopupVisible(!1);return}(!oe||oe.length===0)&&me.setPopupVisible(!1);var _e=me.getActiveOptions(oe),Te=_e[_e.length-1];me.handleMenuSelect(Te,_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(le,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ae=this.props,Se=ae.fieldNames,oe=ae.filedNames;return"filedNames"in this.props?oe[me]||re[me]:Se[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,Se=this.state.activeValue,oe=Se===void 0?[]:Se,ee=A()(ae,function(J,Q){return J[me.getFieldName("value")]===oe[Q]},{childrenKeyName:this.getFieldName("children")});return ee[ee.length-2]?ee[ee.length-2][this.getFieldName("children")]:w(ae).filter(function(J){return!J.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return A()(this.props.options||[],function(ae,Se){return ae[re.getFieldName("value")]===me[Se]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ae=me.transitionName,Se=me.popupClassName,oe=me.options,ee=oe===void 0?[]:oe,J=me.disabled,Q=me.builtinPlacements,ve=me.popupPlacement,_e=me.children,Te=me.dropdownRender,Ge=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),qe=M.createElement("div",null),ut="";ee&&ee.length>0?qe=M.createElement(S,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 st=qe;return Te&&(st=Te(qe)),M.createElement(m.a,Object.assign({ref:this.saveTrigger},Ge,{popupPlacement:ve,builtinPlacements:Q,popupTransitionName:ae,action:J?[]:["click"],popupVisible:J?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:Se+ut,popup:st}),M.cloneElement(_e,{onKeyDown:this.handleKeyDown,tabIndex:J?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ae=re.prevProps,Se=ae===void 0?{}:ae,oe={prevProps:me};return"value"in me&&!g(Se.value,me.value)&&(oe.value=me.value||[],"loadData"in me||(oe.activeValue=me.value||[])),"popupVisible"in me&&(oe.popupVisible=me.popupVisible),oe}}]),le}(M.Component);return Ee.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:">"},Ee}(),Oe=Ce,ce=z.a=Oe},S6kV:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.OFB=function(){var m=M.lib.BlockCipherMode.extend(),T=m.Encryptor=m.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,g=this._iv,e=this._keystream;g&&(e=this._keystream=g.slice(0),this._iv=void 0),C.encryptBlock(e,0);for(var f=0;f<A;f++)b[y+f]^=e[f]}});return m.Decryptor=T,m}(),M.mode.OFB})},"SA+Z":function(k,z,o){var M=o("wTVA"),m=o("EbDI"),T=o("ZhPi"),b=o("wkBT");function y(C){return M(C)||m(C)||T(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,m,T=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var C,A;(function(){var g=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"],r=[f,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],l=[r,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],n=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],i=[r,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],a="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=[r,"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"],u=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],S=[l,i,n,c,h,d,s,u],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",w="lit",v="pun",O="pln",U="tag",I="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(oe){for(var ee=0,J=!1,Q=!1,ve=0,_e=oe.length;ve<_e;++ve){var Te=oe[ve];if(Te.ignoreCase)Q=!0;else if(/[a-z]/i.test(Te.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){J=!0,Q=!1;break}}var Ge={b:8,t:9,n:10,v:11,f:12,r:13};function qe(Ve){var ke=Ve.charCodeAt(0);if(ke!==92)return ke;var dt=Ve.charAt(1);return ke=Ge[dt],ke||("0"<=dt&&dt<="7"?parseInt(Ve.substring(1),8):dt==="u"||dt==="x"?parseInt(Ve.substring(2),16):Ve.charCodeAt(1))}function ut(Ve){if(Ve<32)return(Ve<16?"\\x0":"\\x")+Ve.toString(16);var ke=String.fromCharCode(Ve);return ke==="\\"||ke==="-"||ke==="]"||ke==="^"?"\\"+ke:ke}function st(Ve){var ke=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")),dt=[],Bt=ke[0]==="^",vt=["["];Bt&&vt.push("^");for(var Rt=Bt?1:0,ot=ke.length;Rt<ot;++Rt){var Je=ke[Rt];if(/\\[bdsw]/i.test(Je))vt.push(Je);else{var et=qe(Je),Me;Rt+2<ot&&ke[Rt+1]==="-"?(Me=qe(ke[Rt+2]),Rt+=2):Me=et,dt.push([et,Me]),Me<65||et>122||(Me<65||et>90||dt.push([Math.max(65,et)|32,Math.min(Me,90)|32]),Me<97||et>122||dt.push([Math.max(97,et)&~32,Math.min(Me,122)&~32]))}}dt.sort(function($e,_t){return $e[0]-_t[0]||_t[1]-$e[1]});for(var Be=[],Xe=[],Rt=0;Rt<dt.length;++Rt){var Ke=dt[Rt];Ke[0]<=Xe[1]+1?Xe[1]=Math.max(Xe[1],Ke[1]):Be.push(Xe=Ke)}for(var Rt=0;Rt<Be.length;++Rt){var Ke=Be[Rt];vt.push(ut(Ke[0])),Ke[1]>Ke[0]&&(Ke[1]+1>Ke[0]&&vt.push("-"),vt.push(ut(Ke[1])))}return vt.push("]"),vt.join("")}function ft(Ve){for(var ke=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")),dt=ke.length,Bt=[],vt=0,Rt=0;vt<dt;++vt){var ot=ke[vt];if(ot==="(")++Rt;else if(ot.charAt(0)==="\\"){var Je=+ot.substring(1);Je&&(Je<=Rt?Bt[Je]=-1:ke[vt]=ut(Je))}}for(var vt=1;vt<Bt.length;++vt)Bt[vt]===-1&&(Bt[vt]=++ee);for(var vt=0,Rt=0;vt<dt;++vt){var ot=ke[vt];if(ot==="(")++Rt,Bt[Rt]||(ke[vt]="(?:");else if(ot.charAt(0)==="\\"){var Je=+ot.substring(1);Je&&Je<=Rt&&(ke[vt]="\\"+Bt[Je])}}for(var vt=0;vt<dt;++vt)ke[vt]==="^"&&ke[vt+1]!=="^"&&(ke[vt]="");if(Ve.ignoreCase&&J)for(var vt=0;vt<dt;++vt){var ot=ke[vt],et=ot.charAt(0);ot.length>=2&&et==="["?ke[vt]=st(ot):et!=="\\"&&(ke[vt]=ot.replace(/[a-zA-Z]/g,function(Xe){var Ke=Xe.charCodeAt(0);return"["+String.fromCharCode(Ke&~32,Ke|32)+"]"}))}return ke.join("")}for(var gt=[],ve=0,_e=oe.length;ve<_e;++ve){var Te=oe[ve];if(Te.global||Te.multiline)throw new Error(""+Te);gt.push("(?:"+ft(Te)+")")}return new RegExp(gt.join("|"),Q?"gi":"g")}function L(oe,ee){var J=/(?:^|\s)nocode(?:\s|$)/,Q=[],ve=0,_e=[],Te=0;function Ge(qe){var ut=qe.nodeType;if(ut==1){if(J.test(qe.className))return;for(var st=qe.firstChild;st;st=st.nextSibling)Ge(st);var ft=qe.nodeName.toLowerCase();(ft==="br"||ft==="li")&&(Q[Te]=`
|
|
|
`,_e[Te<<1]=ve++,_e[Te++<<1|1]=qe)}else if(ut==3||ut==4){var gt=qe.nodeValue;gt.length&&(ee?gt=gt.replace(/\r\n?/g,`
|
|
|
`):gt=gt.replace(/[ \t\r\n]+/g," "),Q[Te]=gt,_e[Te<<1]=ve,ve+=gt.length,_e[Te++<<1|1]=qe)}}return Ge(oe),{sourceCode:Q.join("").replace(/\n$/,""),spans:_e}}function K(oe,ee,J,Q,ve){if(!J)return;var _e={sourceNode:oe,pre:1,langExtension:null,numberLines:null,sourceCode:J,spans:null,basePos:ee,decorations:null};Q(_e),ve.push.apply(ve,_e.decorations)}var te=/\S/;function fe(oe){for(var ee=void 0,J=oe.firstChild;J;J=J.nextSibling){var Q=J.nodeType;ee=Q===1?ee?oe:J:Q===3&&te.test(J.nodeValue)?oe:ee}return ee===oe?void 0:ee}function de(oe,ee){var J={},Q;(function(){for(var Te=oe.concat(ee),Ge=[],qe={},ut=0,st=Te.length;ut<st;++ut){var ft=Te[ut],gt=ft[3];if(gt)for(var Ve=gt.length;--Ve>=0;)J[gt.charAt(Ve)]=ft;var ke=ft[1],dt=""+ke;qe.hasOwnProperty(dt)||(Ge.push(ke),qe[dt]=null)}Ge.push(/[\0-\uffff]/),Q=F(Ge)})();var ve=ee.length,_e=function(Te){for(var Ge=Te.sourceCode,qe=Te.basePos,ut=Te.sourceNode,st=[qe,O],ft=0,gt=Ge.match(Q)||[],Ve={},ke=0,dt=gt.length;ke<dt;++ke){var Bt=gt[ke],vt=Ve[Bt],Rt=void 0,ot;if(typeof vt=="string")ot=!1;else{var Je=J[Bt.charAt(0)];if(Je)Rt=Bt.match(Je[1]),vt=Je[0];else{for(var et=0;et<ve;++et)if(Je=ee[et],Rt=Bt.match(Je[1]),Rt){vt=Je[0];break}Rt||(vt=O)}ot=vt.length>=5&&vt.substring(0,5)==="lang-",ot&&!(Rt&&typeof Rt[1]=="string")&&(ot=!1,vt=N),ot||(Ve[Bt]=vt)}var Me=ft;if(ft+=Bt.length,!ot)st.push(qe+Me,vt);else{var Be=Rt[1],Xe=Bt.indexOf(Be),Ke=Xe+Be.length;Rt[2]&&(Ke=Bt.length-Rt[2].length,Xe=Ke-Be.length);var $e=vt.substring(5);K(ut,qe+Me,Bt.substring(0,Xe),_e,st),K(ut,qe+Me+Xe,Be,le($e,Be),st),K(ut,qe+Me+Ke,Bt.substring(Ke),_e,st)}}Te.decorations=st};return _e}function Ce(oe){var ee=[],J=[];oe.tripleQuotedStrings?ee.push([_,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?ee.push([_,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ee.push([_,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&J.push([_,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Q=oe.hashComments;Q&&(oe.cStyleComments?(Q>1?ee.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ee.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),J.push([_,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ee.push([R,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(J.push([R,/^\/\/[^\r\n]*/,null]),J.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=oe.regexLiterals;if(ve){var _e=ve>1?"":`
|
|
|
\r`,Te=_e?".":"[\\S\\s]",Ge="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";J.push(["lang-regex",RegExp("^"+W+"("+Ge+")")])}var qe=oe.types;qe&&J.push([x,qe]);var ut=(""+oe.keywords).replace(/^ | $/g,"");ut.length&&J.push([P,new RegExp("^(?:"+ut.replace(/[\s,]+/g,"|")+")\\b"),null]),ee.push([O,/^\s+/,null,` \r
|
|
|
\xA0`]);var st="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(st+="(?!s*/)"),J.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[x,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[O,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[O,/^\\[\s\S]?/,null],[v,new RegExp(st),null]),de(ee,J)}var Oe=Ce({keywords:S,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(oe,ee,J){for(var Q=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,_e=oe.ownerDocument,Te=_e.createElement("li");oe.firstChild;)Te.appendChild(oe.firstChild);var Ge=[Te];function qe(ke){var dt=ke.nodeType;if(dt==1&&!Q.test(ke.className))if(ke.nodeName==="br")ut(ke),ke.parentNode&&ke.parentNode.removeChild(ke);else for(var Bt=ke.firstChild;Bt;Bt=Bt.nextSibling)qe(Bt);else if((dt==3||dt==4)&&J){var vt=ke.nodeValue,Rt=vt.match(ve);if(Rt){var ot=vt.substring(0,Rt.index);ke.nodeValue=ot;var Je=vt.substring(Rt.index+Rt[0].length);if(Je){var et=ke.parentNode;et.insertBefore(_e.createTextNode(Je),ke.nextSibling)}ut(ke),ot||ke.parentNode.removeChild(ke)}}}function ut(ke){for(;!ke.nextSibling;)if(ke=ke.parentNode,!ke)return;function dt(Rt,ot){var Je=ot?Rt.cloneNode(!1):Rt,et=Rt.parentNode;if(et){var Me=dt(et,1),Be=Rt.nextSibling;Me.appendChild(Je);for(var Xe=Be;Xe;Xe=Be)Be=Xe.nextSibling,Me.appendChild(Xe)}return Je}for(var Bt=dt(ke.nextSibling,0),vt;(vt=Bt.parentNode)&&vt.nodeType===1;)Bt=vt;Ge.push(Bt)}for(var st=0;st<Ge.length;++st)qe(Ge[st]);ee===(ee|0)&&Ge[0].setAttribute("value",ee);var ft=_e.createElement("ol");ft.className="linenums";for(var gt=Math.max(0,ee-1|0)||0,st=0,Ve=Ge.length;st<Ve;++st)Te=Ge[st],Te.className="L"+(st+gt)%10,Te.firstChild||Te.appendChild(_e.createTextNode("\xA0")),ft.appendChild(Te);oe.appendChild(ft)}function Ee(oe){var ee=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ee=ee&&+ee[1]<=8;var J=/\n/g,Q=oe.sourceCode,ve=Q.length,_e=0,Te=oe.spans,Ge=Te.length,qe=0,ut=oe.decorations,st=ut.length,ft=0;ut[st]=ve;var gt,Ve;for(Ve=gt=0;Ve<st;)ut[Ve]!==ut[Ve+2]?(ut[gt++]=ut[Ve++],ut[gt++]=ut[Ve++]):Ve+=2;for(st=gt,Ve=gt=0;Ve<st;){for(var ke=ut[Ve],dt=ut[Ve+1],Bt=Ve+2;Bt+2<=st&&ut[Bt+1]===dt;)Bt+=2;ut[gt++]=ke,ut[gt++]=dt,Ve=Bt}st=ut.length=gt;var vt=oe.sourceNode,Rt="";vt&&(Rt=vt.style.display,vt.style.display="none");try{for(var ot=null;qe<Ge;){var Je=Te[qe],et=Te[qe+2]||ve,Me=ut[ft+2]||ve,Bt=Math.min(et,Me),Be=Te[qe+1],Xe;if(Be.nodeType!==1&&(Xe=Q.substring(_e,Bt))){ee&&(Xe=Xe.replace(J,"\r")),Be.nodeValue=Xe;var Ke=Be.ownerDocument,$e=Ke.createElement("span");$e.className=ut[ft+1];var _t=Be.parentNode;_t.replaceChild($e,Be),$e.appendChild(Be),_e<et&&(Te[qe+1]=Be=Ke.createTextNode(Q.substring(Bt,et)),_t.insertBefore(Be,$e.nextSibling))}_e=Bt,_e>=et&&(qe+=2),_e>=Me&&(ft+=2)}}finally{vt&&(vt.style.display=Rt)}}var ye={};function ue(oe,ee){for(var J=ee.length;--J>=0;){var Q=ee[J];ye.hasOwnProperty(Q)?g.console&&console.warn("cannot override language handler %s",Q):ye[Q]=oe}}function le(oe,ee){return oe&&ye.hasOwnProperty(oe)||(oe=/^\s*</.test(ee)?"default-markup":"default-code"),ye[oe]}ue(Oe,["default-code"]),ue(de([],[[O,/^[^<?]+/],[I,/^<!\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([[O,/^[\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(Ce({keywords:l,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Ce({keywords:"null,true,false"}),["json"]),ue(Ce({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Ce({keywords:n,cStyleComments:!0}),["java"]),ue(Ce({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Ce({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Ce({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Ce({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Ce({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Ce({keywords:a,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[_,/^[\s\S]+/]]),["regex"]);function $(oe){var ee=oe.langExtension;try{var J=L(oe.sourceNode,oe.pre),Q=J.sourceCode;oe.sourceCode=Q,oe.spans=J.spans,oe.basePos=0,le(ee,Q)(oe),Ee(oe)}catch(ve){g.console&&console.log(ve&&ve.stack||ve)}}function me(oe,ee,J){var Q=J||!1,ve=ee||null,_e=document.createElement("div");_e.innerHTML="<pre>"+oe+"</pre>",_e=_e.firstChild,Q&&ce(_e,Q,!0);var Te={langExtension:ve,numberLines:Q,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return $(Te),_e.innerHTML}function re(oe,ee){var J=ee||document.body,Q=J.ownerDocument||document;function ve(Je){return J.getElementsByTagName(Je)}for(var _e=[ve("pre"),ve("code"),ve("xmp")],Te=[],Ge=0;Ge<_e.length;++Ge)for(var qe=0,ut=_e[Ge].length;qe<ut;++qe)Te.push(_e[Ge][qe]);_e=null;var st=Date;st.now||(st={now:function(){return+new Date}});var ft=0,gt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ve=/\bprettyprint\b/,ke=/\bprettyprinted\b/,dt=/pre|xmp/i,Bt=/^code$/i,vt=/^(?:pre|code|xmp)$/i,Rt={};function ot(){for(var Je=g.PR_SHOULD_USE_CONTINUATION?st.now()+250:Infinity;ft<Te.length&&st.now()<Je;ft++){for(var et=Te[ft],Me=Rt,Be=et;Be=Be.previousSibling;){var Xe=Be.nodeType,Ke=(Xe===7||Xe===8)&&Be.nodeValue;if(Ke?!/^\??prettify\b/.test(Ke):Xe!==3||/\S/.test(Be.nodeValue))break;if(Ke){Me={},Ke.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Tt,yt,Ot){Me[yt]=Ot});break}}var $e=et.className;if((Me!==Rt||Ve.test($e))&&!ke.test($e)){for(var _t=!1,Ft=et.parentNode;Ft;Ft=Ft.parentNode){var qt=Ft.tagName;if(vt.test(qt)&&Ft.className&&Ve.test(Ft.className)){_t=!0;break}}if(!_t){et.className+=" prettyprinted";var bn=Me.lang;if(!bn){bn=$e.match(gt);var At;!bn&&(At=fe(et))&&Bt.test(At.tagName)&&(bn=At.className.match(gt)),bn&&(bn=bn[1])}var Et;if(dt.test(et.tagName))Et=1;else{var je=et.currentStyle,rt=Q.defaultView,at=je?je.whiteSpace:rt&&rt.getComputedStyle?rt.getComputedStyle(et,null).getPropertyValue("white-space"):0;Et=at&&at.substring(0,3)==="pre"}var Ae=Me.linenums;(Ae=Ae==="true"||+Ae)||(Ae=$e.match(/\blinenums\b(?::(\d+))?/),Ae=Ae?Ae[1]&&Ae[1].length?+Ae[1]:!0:!1),Ae&&ce(et,Ae,Et);var Fe={langExtension:bn,sourceNode:et,numberLines:Ae,pre:Et,sourceCode:null,basePos:null,spans:null,decorations:null};$(Fe)}}}ft<Te.length?g.setTimeout(ot,250):typeof oe=="function"&&oe()}ot()}var ae=g.PR={createSimpleLexer:de,registerLangHandler:ue,sourceDecorator:Ce,PR_ATTRIB_NAME:V,PR_ATTRIB_VALUE:H,PR_COMMENT:R,PR_DECLARATION:I,PR_KEYWORD:P,PR_LITERAL:w,PR_NOCODE:D,PR_PLAIN:O,PR_PUNCTUATION:v,PR_SOURCE:N,PR_STRING:_,PR_TAG:U,PR_TYPE:x,prettyPrintOne:T?g.prettyPrintOne=me:C=me,prettyPrint:A=T?g.prettyPrint=re:A=re},Se=g.define;typeof Se=="function"&&Se.amd&&Se("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 A}),o.d(z,"e",function(){return g}),o.d(z,"c",function(){return v}),o.d(z,"b",function(){return O}),o.d(z,"d",function(){return U}),o.d(z,"f",function(){return V});var M=o("MNsG"),m=o("N0LK"),T=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 A{static has(D){return l.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 w.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 w.create(F.map(L=>this._deserializeAndExpression(L,W)),null,!0)}static _deserializeAndExpression(D,W){let F=D.split("&&");return x.create(F.map(L=>this._deserializeOne(L,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 u.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 S.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(D)?h.create(D.substr(1).trim()):l.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(m.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("/"),L=D.lastIndexOf("/");if(F===L||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,L),te=D[L+1]==="i"?"i":"";try{return new RegExp(K,te)}catch(fe){if(W)throw new Error(`bad regexp-value '${D}', parse error: ${fe}`);return console.warn(`bad regexp-value '${D}', parse error: ${fe}`),null}}}function g(D,W){const F=D?D.substituteConstants():void 0,L=W?W.substituteConstants():void 0;return!F&&!L?!0:!F||!L?!1:F.equals(L)}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 r.INSTANCE}}f.INSTANCE=new f;class r{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}}r.INSTANCE=new r;class l{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?r.INSTANCE:f.INSTANCE:new l(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:I(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?r.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?l.create(D,F):h.create(D,F);const L=y.get(D);if(typeof L=="boolean"){const K=L?"true":"false";return W===K?r.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?r.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=a.create(this)),this.negated}}class a{constructor(D){this._actual=D,this.type=11}static create(D){return new a(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):l.create(D,F);const L=y.get(D);if(typeof L=="boolean"){const K=L?"true":"false";return W===K?f.INSTANCE:r.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:r.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:r.INSTANCE:new h(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:I(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:r.INSTANCE:this}evaluate(D){return!D.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.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,L=>new s(D,L,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 u{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,L=>new u(D,L,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 S{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,L=>new S(D,L,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=u.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,L=>new E(D,L,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,L=D.length;F<L;F++){const K=D[F].substituteConstants();if(D[F]!==K&&W===null){W=[];for(let te=0;te<F;te++)W[te]=D[te]}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 L=e(this.expr[W],D.expr[W]);if(L!==0)return L}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 L=!1;for(const K of D){if(!K)continue;if(K.type===1){L=!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&&L)return r.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 te=F.pop(),fe=F.length===0,de=w.create(K.expr.map(Ce=>x.create([Ce,te],null)),null,fe);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=w.create(D,this,!0)}return this.negated}}class w{constructor(D,W){this.expr=D,this.negated=W,this.type=9}static create(D,W,F){return w._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 L=e(this.expr[W],D.expr[W]);if(L!==0)return L}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:w.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 L=[],K=!1;if(D){for(let te=0,fe=D.length;te<fe;te++){const de=D[te];if(!de)continue;if(de.type===0){K=!0;continue}if(de.type===1)return r.INSTANCE;if(de.type===9){L=L.concat(de.expr);continue}L.push(de)}if(L.length===0&&K)return f.INSTANCE;L.sort(e)}if(L.length===0)return;if(L.length===1)return L[0];for(let te=1;te<L.length;te++)L[te-1].equals(L[te])&&(L.splice(te,1),te--);if(L.length===1)return L[0];if(F){for(let te=0;te<L.length;te++)for(let fe=te+1;fe<L.length;fe++)V(L[te],L[fe])&&(L.splice(fe,1),fe--);if(L.length===1)return L[0]}return new w(L,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(),L=[];for(const te of H(W))for(const fe of H(F))L.push(x.create([te,fe],null));const K=D.length===0;D.unshift(w.create(L,null,K))}this.negated=D[0]}return this.negated}}class v extends l{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 O=Object(T.c)("contextKeyService"),U="setContext";function I(D,W){return D<W?-1:D>W?1:0}function N(D,W,F,L){return D<F?-1:D>F?1:W<L?-1:W>L?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(),L=H(F).concat(H(W));L.sort(e);for(let K=0;K<L.length;K++){const te=L[K],fe=te.negate();for(let de=K+1;de<L.length;de++){const Ce=L[de];if(fe.equals(Ce))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"},THsj:function(k,z,o){k.exports=o.p+"static/school_logo.c14f7c37.png"},TXwP:function(k,z,o){var M,m;(function(){var T;(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 r(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}r.prototype.get_indent_size=function(n,i){var a=this.__base_string_length;return i=i||0,n<0&&(a=0),a+=n*this.__indent_size,a+=i,a},r.prototype.get_indent_string=function(n,i){var a=this.__base_string;return i=i||0,n<0&&(n=0,a=""),i+=n*this.__indent_size,this.__ensure_cache(i),a+=this.__cache[i],a},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,i=0,a="";this.__indent_size&&n>=this.__indent_size&&(i=Math.floor(n/this.__indent_size),n-=i*this.__indent_size,a=new Array(i+1).join(this.__indent_string)),n&&(a+=new Array(n+1).join(" ")),this.__cache.push(a)};function l(n,i){this.__indent_cache=new r(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()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(n,i){return this.__indent_cache.get_indent_string(n,i)},l.prototype.get_indent_size=function(n,i){return this.__indent_cache.get_indent_size(n,i)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.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 a=this.__lines.join(`
|
|
|
`);return n!==`
|
|
|
`&&(a=a.replace(/[\n]/g,n)),a},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.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)},l.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},l.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()},l.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(" "))},l.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()},l.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},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(n,i){for(var a=this.__lines.length-2;a>=0;){var c=this.__lines[a];if(c.is_empty())break;if(c.item(0).indexOf(n)!==0&&c.item(-1)!==i){this.__lines.splice(a+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}},e.exports.Output=l},,,,function(e){function f(n,i){this.raw_options=r(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 a=this.raw_options[n],c=i||[];return typeof a=="object"?a!==null&&typeof a.concat=="function"&&(c=a.concat()):typeof a=="string"&&(c=a.split(/[^a-zA-Z0-9_\/\-]+/)),c},f.prototype._get_boolean=function(n,i){var a=this.raw_options[n],c=a===void 0?!!i:!!a;return c},f.prototype._get_characters=function(n,i){var a=this.raw_options[n],c=i||"";return typeof a=="string"&&(c=a.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),c},f.prototype._get_number=function(n,i){var a=this.raw_options[n];i=parseInt(i,10),isNaN(i)&&(i=0);var c=parseInt(a,10);return isNaN(c)&&(c=i),c},f.prototype._get_selection=function(n,i,a){var c=this._get_selection_list(n,i,a);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,a){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(a=a||[i[0]],!this._is_valid_selection(a,i))throw new Error("Invalid Default Value!");var c=this._get_array(n,a);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(a){return i.indexOf(a)===-1})};function r(n,i){var a={};n=l(n);var c;for(c in n)c!==i&&(a[c]=n[c]);if(i&&n[i])for(c in n[i])a[c]=n[i][c];return a}function l(n){var i={},a;for(a in n){var c=a.replace(/-/g,"_");i[c]=n[a]}return i}e.exports.Options=f,e.exports.normalizeOpts=l,e.exports.mergeOpts=r},,function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function r(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},r.prototype.peek=function(l){var n=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(n=this.__input.charAt(l)),n},r.prototype.__match=function(l,n){l.lastIndex=n;var i=l.exec(this.__input);return i&&!(f&&l.sticky)&&(i.index!==n&&(i=null)),i},r.prototype.test=function(l,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(l,n):!1},r.prototype.testChar=function(l,n){var i=this.peek(n);return l.lastIndex=0,i!==null&&l.test(i)},r.prototype.match=function(l){var n=this.__match(l,this.__position);return n?this.__position+=n[0].length:n=null,n},r.prototype.read=function(l,n,i){var a="",c;return l&&(c=this.match(l),c&&(a+=c[0])),n&&(c||!l)&&(a+=this.readUntil(n,i)),a},r.prototype.readUntil=function(l,n){var i="",a=this.__position;l.lastIndex=this.__position;var c=l.exec(this.__input);return c?(a=c.index,n&&(a+=c[0].length)):a=this.__input_length,i=this.__input.substring(this.__position,a),this.__position=a,i},r.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},r.prototype.get_regexp=function(l,n){var i=null,a="g";return n&&f&&(a="y"),typeof l=="string"&&l!==""?i=new RegExp(l,a):l&&(i=new RegExp(l.source,a)),i},r.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(l){var n=this.__position,i=this.readUntilAfter(l);return this.__position=n,i},r.prototype.lookBack=function(l){var n=this.__position-1;return n>=l.length&&this.__input.substring(n-l.length,n).toLowerCase()===l},e.exports.InputScanner=r},,,,,function(e){function f(r,l){r=typeof r=="string"?r:r.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+l,"g")}f.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(r);n;)l[n[1]]=n[2],n=this.__directive_pattern.exec(r);return l},f.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},,function(e,f,r){var l=r(16).Beautifier,n=r(17).Options;function i(a,c){var h=new l(a,c);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new n}},function(e,f,r){var l=r(17).Options,n=r(2).Output,i=r(8).InputScanner,a=r(13).Directives,c=new a(/\/\*/,/\*\//),h=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,s=/\s/,u=/(?:\s|\n)+/g,S=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,E=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function _(P,R){this._source_text=P||"",this._options=new l(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 w=0,v=!1,O=!1,U=!1,I=!1,N=!1,V=!1,H=this._ch,D=!1,W,F,L;W=this._input.read(u),F=W!=="",L=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(S),te=c.get_directives(K);te&&te.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 fe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);fe.match(/[ :]$/)&&(fe=this.eatString(": ").replace(/\s$/,""),this.print_string(fe),this._output.space_before_token=!0),fe=fe.replace(/\s$/,""),fe==="extend"?I=!0:fe==="import"&&(N=!0),fe in this.NESTED_AT_RULE?(this._nestedLevel+=1,fe in this.CONDITIONAL_GROUP_RULE&&(U=!0)):!v&&w===0&&fe.indexOf(":")!==-1&&(O=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")O&&(O=!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)):(L==="("?this._output.space_before_token=!1:L!==","&&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(),L==="{"&&this._output.trim(!0),N=!1,I=!1,O&&(this.outdent(),O=!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("(")&&!I&&w===0?(this.print_string(":"),O||(O=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ce=L==='"'||L==="'";this.preserveSingleSpace(Ce||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,w===0?(O&&(this.outdent(),O=!1),I=!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(),w++,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(")")),w&&(w--,this.outdent()));else{var Oe=!1;this._input.lookBack("with")&&(Oe=!0),this.preserveSingleSpace(F||Oe),this.print_string(this._ch),O&&L==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),V=!0):(this.eatWhitespace(),w++,this.indent())}else if(this._ch===")")w&&(w--,this.outdent()),V&&this._input.peek()===";"&&this._options.selector_separator_newline&&(V=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!O||V)&&w===0&&!N&&!I?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!O&&w===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=L==='"'||L==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&D&&this._output.add_new_line()}var Ee=this._output.get_code(R);return Ee},e.exports.Beautifier=_},function(e,f,r){var l=r(6).Options;function n(i){l.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 a=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||a;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 l,e.exports.Options=n}],C={};function A(e){var f=C[e];if(f!==void 0)return f.exports;var r=C[e]={exports:{}};return y[e](r,r.exports,A),r.exports}var g=A(15);T=g})();var b=T;!(M=[],m=function(){return{css_beautify:b}}.apply(z,M),m!==void 0&&(k.exports=m))})()},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(T){var b=document.createElement("textarea");return b.value=T,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 A}),o.d(z,"a",function(){return g});var M=o("MI8n");class m{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 T=new m,b=T;function y(e,f){return new A(e,f)}function C(e){return e?e.replace(/\$\((.*?)\)/g,(f,r)=>` ${r} `).trim():""}class A{constructor(e,f,r){this.id=e,this.definition=f,this.description=r,T.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var g;(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 r(i){if(i instanceof A)return["codicon","codicon-"+i.id];const a=f.exec(i.id);if(!a)return r(A.error);let[,c,h]=a;const d=["codicon","codicon-"+c];return h&&d.push("codicon-modifier-"+h.substr(1)),d}e.asClassNameArray=r;function l(i){return r(i).join(" ")}e.asClassName=l;function n(i){return"."+r(i).join(".")}e.asCSSSelector=n})(g||(g={})),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"})}(A||(A={}))},"VrN/":function(k,z,o){(function(M,m){k.exports=m()})(this,function(){"use strict";var M=navigator.userAgent,m=navigator.platform,T=/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),A=b||y||C,g=A&&(b?document.documentMode||6:+(C||y)[1]),e=!C&&/WebKit\//.test(M),f=e&&/Qt\/\d+\.\d+/.test(M),r=!C&&/Chrome\//.test(M),l=/Opera\//.test(M),n=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(M),a=/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(m),u=/\bCrOS\b/.test(M),S=/win/i.test(m),E=l&&M.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(l=!1,e=!0);var _=s&&(f||l&&(E==null||E<12.11)),P=T||A&&g>=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 w(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function v(t,p){return w(t).appendChild(p)}function O(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=O(t,p,B,j);return G.setAttribute("role","presentation"),G}var I;document.createRange?I=function(t,p,B,j){var G=document.createRange();return G.setEnd(j||t,B),G.setStart(t,p),G}:I=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}:A&&(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 L(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 te=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};te.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},te.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 fe(t,p){for(var B=0;B<t.length;++B)if(t[B]==p)return B;return-1}var de=50,Ce={toString:function(){return"CodeMirror.Pass"}},Oe={scroll:!1},ce={origin:"*mouse"},Ee={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 le(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 Se(t,p){var B;return Object.create?B=Object.create(t):(ae.prototype=t,B=new ae),p&&L(p,B),B}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||oe.test(t))}function J(t,p){return p?p.source.indexOf("\\w")>-1&&ee(t)?!0:p.test(t):ee(t)}function Q(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 Te(t,p,B){for(;(B<0?p>0:p<t.length)&&_e(t.charAt(p));)p+=B;return p}function Ge(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 qe(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 st(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 ft=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function B(Ue){return Ue<=247?t.charAt(Ue):1424<=Ue&&Ue<=1524?"R":1536<=Ue&&Ue<=1785?p.charAt(Ue-1536):1774<=Ue&&Ue<=2220?"r":8192<=Ue&&Ue<=8203?"w":Ue==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,we=/[1n]/;function Re(Ue,mt,Dt){this.level=Ue,this.from=mt,this.to=Dt}return function(Ue,mt){var Dt=mt=="ltr"?"L":"R";if(Ue.length==0||mt=="ltr"&&!j.test(Ue))return!1;for(var Zt=Ue.length,Gt=[],On=0;On<Zt;++On)Gt.push(B(Ue.charCodeAt(On)));for(var Wn=0,qn=Dt;Wn<Zt;++Wn){var yr=Gt[Wn];yr=="m"?Gt[Wn]=qn:qn=yr}for(var Lr=0,Er=Dt;Lr<Zt;++Lr){var Gr=Gt[Lr];Gr=="1"&&Er=="r"?Gt[Lr]="n":ne.test(Gr)&&(Er=Gr,Gr=="r"&&(Gt[Lr]="R"))}for(var aa=1,ea=Gt[0];aa<Zt-1;++aa){var Ca=Gt[aa];Ca=="+"&&ea=="1"&&Gt[aa+1]=="1"?Gt[aa]="1":Ca==","&&ea==Gt[aa+1]&&(ea=="1"||ea=="n")&&(Gt[aa]=ea),ea=Ca}for(var Va=0;Va<Zt;++Va){var vi=Gt[Va];if(vi==",")Gt[Va]="N";else if(vi=="%"){var ti=void 0;for(ti=Va+1;ti<Zt&&Gt[ti]=="%";++ti);for(var zi=Va&&Gt[Va-1]=="!"||ti<Zt&&Gt[ti]=="1"?"1":"N",Ui=Va;Ui<ti;++Ui)Gt[Ui]=zi;Va=ti-1}}for(var ci=0,ji=Dt;ci<Zt;++ci){var Ci=Gt[ci];ji=="L"&&Ci=="1"?Gt[ci]="L":ne.test(Ci)&&(ji=Ci)}for(var pi=0;pi<Zt;++pi)if(G.test(Gt[pi])){var di=void 0;for(di=pi+1;di<Zt&&G.test(Gt[di]);++di);for(var ii=(pi?Gt[pi-1]:Dt)=="L",Bi=(di<Zt?Gt[di]:Dt)=="L",Ts=ii==Bi?ii?"L":"R":Dt,es=pi;es<di;++es)Gt[es]=Ts;pi=di-1}for(var Oi=[],Po,_i=0;_i<Zt;)if(ge.test(Gt[_i])){var ru=_i;for(++_i;_i<Zt&&ge.test(Gt[_i]);++_i);Oi.push(new Re(0,ru,_i))}else{var Fo=_i,ds=Oi.length,fs=mt=="rtl"?1:0;for(++_i;_i<Zt&&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 mt=="ltr"&&(Oi[0].level==1&&(Po=Ue.match(/^\s+/))&&(Oi[0].from=Po[0].length,Oi.unshift(new Re(0,0,Po[0].length))),$(Oi).level==1&&(Po=Ue.match(/\s+$/))&&($(Oi).to-=Po[0].length,Oi.push(new Re(0,Zt-Po[0].length,Zt)))),mt=="rtl"?Oi.reverse():Oi}}();function gt(t,p){var B=t.order;return B==null&&(B=t.order=ft(t.text,p)),B}var Ve=[],ke=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 dt(t,p){return t._handlers&&t._handlers[p]||Ve}function Bt(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=fe(G,B);ne>-1&&(j[p]=G.slice(0,ne).concat(G.slice(ne+1)))}}}function vt(t,p){var B=dt(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 Rt(t,p,B){return typeof p=="string"&&(p={type:p,preventDefault:function(){this.defaultPrevented=!0}}),vt(t,B||p.type,t,p),Xe(p)||p.codemirrorIgnore}function ot(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)fe(B,p[j])==-1&&B.push(p[j])}function Je(t,p){return dt(t,p).length>0}function et(t){t.prototype.on=function(p,B){ke(this,p,B)},t.prototype.off=function(p,B){Bt(this,p,B)}}function Me(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Be(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Xe(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ke(t){Me(t),Be(t)}function $e(t){return t.target||t.srcElement}function _t(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 Ft=function(){if(A&&g<9)return!1;var t=O("div");return"draggable"in t||"dragDrop"in t}(),qt;function bn(t){if(qt==null){var p=O("span","\u200B");v(t,O("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(qt=p.offsetWidth<=1&&p.offsetHeight>2&&!(A&&g<8))}var B=qt?O("span","\u200B"):O("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var At;function Et(t){if(At!=null)return At;var p=v(t,document.createTextNode("A\u062EA")),B=I(p,0,1).getBoundingClientRect(),j=I(p,1,2).getBoundingClientRect();return w(t),!B||B.left==B.right?!1:At=j.right-B.right<3}var je=`
|
|
|
|
|
|
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/)},rt=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},at=function(){var t=O("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Ae=null;function Fe(t){if(Ae!=null)return Ae;var p=v(t,O("span","x")),B=p.getBoundingClientRect(),j=I(p,0,1).getBoundingClientRect();return Ae=Math.abs(B.left-j.left)>1}var Tt={},yt={};function Ot(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),Tt[t]=p}function Lt(t,p){yt[t]=p}function tt(t){if(typeof t=="string"&&yt.hasOwnProperty(t))t=yt[t];else if(t&&typeof t.name=="string"&&yt.hasOwnProperty(t.name)){var p=yt[t.name];typeof p=="string"&&(p={name:p}),t=Se(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return tt("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return tt("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Ut(t,p){p=tt(p);var B=Tt[p.name];if(!B)return Ut(t,"text/plain");var j=B(t,p);if(Pt.hasOwnProperty(p.name)){var G=Pt[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 Pt={};function an(t,p){var B=Pt.hasOwnProperty(t)?Pt[t]:Pt[t]={};L(p,B)}function nn(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 rn(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 Tn(t,p,B){return t.startState?t.startState(p,B):!0}var sn=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};sn.prototype.eol=function(){return this.pos>=this.string.length},sn.prototype.sol=function(){return this.pos==this.lineStart},sn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sn.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},sn.prototype.eatWhile=function(t){for(var p=this.pos;this.eat(t););return this.pos>p},sn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},sn.prototype.skipToEnd=function(){this.pos=this.string.length},sn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},sn.prototype.backUp=function(t){this.pos-=t},sn.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)},sn.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},sn.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)}},sn.prototype.current=function(){return this.string.slice(this.start,this.pos)},sn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},sn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},sn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function un(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 Jn(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 kn(t,p,B){var j=[];return t.iter(p,B,function(G){j.push(G.text)}),j}function Yn(t,p){var B=p-t.height;if(B)for(var j=t;j;j=j.parent)j.height+=B}function tr(t){if(t.parent==null)return null;for(var p=t.parent,B=fe(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 pr(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 ar(t,p){return p>=t.first&&p<t.first+t.size}function mn(t,p){return String(t.lineNumberFormatter(p+t.firstLineNumber))}function en(t,p,B){if(B===void 0&&(B=null),!(this instanceof en))return new en(t,p,B);this.line=t,this.ch=p,this.sticky=B}function Nn(t,p){return t.line-p.line||t.ch-p.ch}function Zr(t,p){return t.sticky==p.sticky&&Nn(t,p)==0}function zr(t){return en(t.line,t.ch)}function Ur(t,p){return Nn(t,p)<0?p:t}function Dr(t,p){return Nn(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 en(t.first,0);var B=t.first+t.size-1;return p.line>B?en(B,un(t,B).text.length):q(p,un(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?en(t.line,p):B<0?en(t.line,0):t}function se(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},he=function(t,p,B,j){this.state=p,this.doc=t,this.line=B,this.maxLookAhead=j||0,this.baseTokens=null,this.baseTokenPos=1};he.prototype.lookAhead=function(t){var p=this.doc.getLine(this.line+t);return p!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),p},he.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}},he.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},he.fromSaved=function(t,p,B){return p instanceof De?new he(t,nn(t.mode,p.state),B,p.lookAhead):new he(t,nn(t.mode,p),B)},he.prototype.save=function(t){var p=t!==!1?nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new De(p,this.maxLookAhead):p};function pt(t,p,B,j){var G=[t.state.modeGen],ne={};pa(t,p.text,t.doc.mode,B,function(Ue,mt){return G.push(Ue,mt)},ne,j);for(var ge=B.state,we=function(Ue){B.baseTokens=G;var mt=t.state.overlays[Ue],Dt=1,Zt=0;B.state=!0,pa(t,p.text,mt.mode,B,function(Gt,On){for(var Wn=Dt;Zt<Gt;){var qn=G[Dt];qn>Gt&&G.splice(Dt,1,Gt,G[Dt+1],qn),Dt+=2,Zt=Math.min(Gt,qn)}if(!On)return;if(mt.opaque)G.splice(Wn,Dt-Wn,Gt,"overlay "+On),Dt=Wn+2;else for(;Wn<Dt;Wn+=2){var yr=G[Wn+1];G[Wn+1]=(yr?yr+" ":"")+"overlay "+On}},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 vn(t,p,B){if(!p.styles||p.styles[0]!=t.state.modeGen){var j=Kn(t,tr(p)),G=p.text.length>t.options.maxHighlightLength&&nn(t.doc.mode,j.state),ne=pt(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 Kn(t,p,B){var j=t.doc,G=t.display;if(!j.mode.startState)return new he(j,!0,p);var ne=fr(t,p,B),ge=ne>j.first&&un(j,ne-1).stateAfter,we=ge?he.fromSaved(j,ge,ne):new he(j,Tn(j.mode),ne);return j.iter(ne,p,function(Re){dr(t,Re.text,we);var Ue=we.line;Re.stateAfter=Ue==p-1||Ue%5==0||Ue>=G.viewFrom&&Ue<G.viewTo?we.save():null,we.nextLine()}),B&&(j.modeFrontier=we.line),we}function dr(t,p,B,j){var G=t.doc.mode,ne=new sn(p,t.options.tabSize,B);for(ne.start=ne.pos=j||0,p==""&&on(G,B.state);!ne.eol();)Mn(G,ne,B.state),ne.start=ne.pos}function on(t,p){if(t.blankLine)return t.blankLine(p);if(!t.innerMode)return;var B=rn(t,p);if(B.mode.blankLine)return B.mode.blankLine(B.state)}function Mn(t,p,B,j){for(var G=0;G<10;G++){j&&(j[0]=rn(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 Xn=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function $r(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=un(G,p.line),Re=Kn(t,p.line,B),Ue=new sn(we.text,t.options.tabSize,Re),mt;for(j&&(mt=[]);(j||Ue.pos<p.ch)&&!Ue.eol();)Ue.start=Ue.pos,ge=Mn(ne,Ue,Re.state),j&&mt.push(new Xn(Ue,ge,nn(G.mode,Re.state)));return j?mt:new Xn(Ue,ge,Re.state)}function ga(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 pa(t,p,B,j,G,ne,ge){var we=B.flattenSpans;we==null&&(we=t.options.flattenSpans);var Re=0,Ue=null,mt=new sn(p,t.options.tabSize,j),Dt,Zt=t.options.addModeClass&&[null];for(p==""&&ga(on(B,j.state),ne);!mt.eol();){if(mt.pos>t.options.maxHighlightLength?(we=!1,ge&&dr(t,p,j,mt.pos),mt.pos=p.length,Dt=null):Dt=ga(Mn(B,mt,j.state,Zt),ne),Zt){var Gt=Zt[0].name;Gt&&(Dt="m-"+(Dt?Gt+" "+Dt:Gt))}if(!we||Ue!=Dt){for(;Re<mt.start;)Re=Math.min(mt.start,Re+5e3),G(Re,Ue);Ue=Dt}mt.start=mt.pos}for(;Re<mt.pos;){var On=Math.min(mt.pos,Re+5e3);G(On,Ue),Re=On}}function fr(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=un(ne,we-1),Ue=Re.stateAfter;if(Ue&&(!B||we+(Ue instanceof De?Ue.lookAhead:0)<=ne.modeFrontier))return we;var mt=K(Re.text,null,t.options.tabSize);(G==null||j>mt)&&(G=we-1,j=mt)}return G}function za(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=un(t,j).stateAfter;if(G&&(!(G instanceof De)||j+G.lookAhead<p)){B=j+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,B)}var ja=!1,Ra=!1;function Ha(){ja=!0}function wa(){Ra=!0}function Ja(t,p,B){this.marker=t,this.from=p,this.to=B}function ka(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 ua(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 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.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 oa(t,p){if(p.full)return null;var B=ar(t,p.from.line)&&un(t,p.from.line).markedSpans,j=ar(t,p.to.line)&&un(t,p.to.line).markedSpans;if(!B&&!j)return null;var G=p.from.ch,ne=p.to.ch,ge=Nn(p.from,p.to)==0,we=ua(B,G,ge),Re=fa(j,ne,ge),Ue=p.text.length==1,mt=$(p.text).length+(Ue?G:0);if(we)for(var Dt=0;Dt<we.length;++Dt){var Zt=we[Dt];if(Zt.to==null){var Gt=ka(Re,Zt.marker);Gt?Ue&&(Zt.to=Gt.to==null?null:Gt.to+mt):Zt.to=G}}if(Re)for(var On=0;On<Re.length;++On){var Wn=Re[On];if(Wn.to!=null&&(Wn.to+=mt),Wn.from==null){var qn=ka(we,Wn.marker);qn||(Wn.from=mt,Ue&&(we||(we=[])).push(Wn))}else Wn.from+=mt,Ue&&(we||(we=[])).push(Wn)}we&&(we=xe(we)),Re&&Re!=we&&(Re=xe(Re));var yr=[we];if(!Ue){var Lr=p.text.length-2,Er;if(Lr>0&&we)for(var Gr=0;Gr<we.length;++Gr)we[Gr].to==null&&(Er||(Er=[])).push(new Ja(we[Gr].marker,null,null));for(var aa=0;aa<Lr;++aa)yr.push(Er);yr.push(Re)}return yr}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 On=0;On<Gt.markedSpans.length;++On){var Wn=Gt.markedSpans[On].marker;Wn.readOnly&&(!j||fe(j,Wn)==-1)&&(j||(j=[])).push(Wn)}}),!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 Ue=G[Re];if(Nn(Ue.to,we.from)<0||Nn(Ue.from,we.to)>0)continue;var mt=[Re,1],Dt=Nn(Ue.from,we.from),Zt=Nn(Ue.to,we.to);(Dt<0||!ge.inclusiveLeft&&!Dt)&&mt.push({from:Ue.from,to:we.from}),(Zt>0||!ge.inclusiveRight&&!Zt)&&mt.push({from:we.to,to:Ue.to}),G.splice.apply(G,mt),Re+=mt.length-3}return G}function Mt(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 Ht(t){return t.inclusiveLeft?-1:0}function Nt(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=Nn(j.from,G.from)||Ht(t)-Ht(p);if(ne)return-ne;var ge=Nn(j.to,G.to)||Nt(t)-Nt(p);return ge||p.id-t.id}function $t(t,p){var B=Ra&&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 En(t){return $t(t,!0)}function gn(t){return $t(t,!1)}function Un(t,p){var B=Ra&&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 An(t,p,B,j,G){var ne=un(t,p),ge=Ra&&ne.markedSpans;if(ge)for(var we=0;we<ge.length;++we){var Re=ge[we];if(!Re.marker.collapsed)continue;var Ue=Re.marker.find(0),mt=Nn(Ue.from,B)||Ht(Re.marker)-Ht(G),Dt=Nn(Ue.to,j)||Nt(Re.marker)-Nt(G);if(mt>=0&&Dt<=0||mt<=0&&Dt>=0)continue;if(mt<=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?Nn(Ue.to,B)>=0:Nn(Ue.to,B)>0)||mt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?Nn(Ue.from,j)<=0:Nn(Ue.from,j)<0))return!0}}function tn(t){for(var p;p=En(t);)t=p.find(-1,!0).line;return t}function Pn(t){for(var p;p=gn(t);)t=p.find(1,!0).line;return t}function yn(t){for(var p,B;p=gn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function jn(t,p){var B=un(t,p),j=tn(B);return B==j?p:tr(j)}function Rn(t,p){if(p>t.lastLine())return p;var B=un(t,p),j;if(!Qn(t,B))return p;for(;j=gn(B);)B=j.find(1,!0).line;return tr(B)+1}function Qn(t,p){var B=Ra&&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&&mr(t,p,j))return!0}}function mr(t,p,B){if(B.to==null){var j=B.marker.find(1,!0);return mr(t,j.line,ka(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)&&mr(t,p,G))return!0}function kr(t){t=tn(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 wn(t){if(t.height==0)return 0;for(var p=t.text.length,B,j=t;B=En(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=un(B,B.first),p.maxLineLength=wn(p.maxLine),p.maxLineChanged=!0,B.iter(function(j){var G=wn(j);G>p.maxLineLength&&(p.maxLineLength=G,p.maxLine=j)})}var fn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};fn.prototype.lineNo=function(){return tr(this)},et(fn);function Dn(t,p,B,j){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Mt(t),wt(t,B);var G=j?j(t):1;G!=t.height&&Yn(t,G)}function Qt(t){t.parent=null,Mt(t)}var Sn={},_n={};function In(t,p){if(!t||/^\s*$/.test(t))return null;var B=p.addModeClass?_n:Sn;return B[t]||(B[t]=t.replace(/\S+/g,"cm-$&"))}function Bn(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=$n,Et(t.display.measure)&&(ge=gt(ne,t.doc.direction))&&(j.addToken=Pr(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&tr(ne);Tr(ne,j,vn(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(bn(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 vt(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function or(t){var p=O("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function $n(t,p,B,j,G,ne,ge){if(!p)return;var we=t.splitSpaces?Or(p,t.trailingSpace):p,Re=t.cm.state.specialChars,Ue=!1,mt;if(!Re.test(p))t.col+=p.length,mt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,mt),A&&g<9&&(Ue=!0),t.pos+=p.length;else{mt=document.createDocumentFragment();for(var Dt=0;;){Re.lastIndex=Dt;var Zt=Re.exec(p),Gt=Zt?Zt.index-Dt:p.length-Dt;if(Gt){var On=document.createTextNode(we.slice(Dt,Dt+Gt));A&&g<9?mt.appendChild(O("span",[On])):mt.appendChild(On),t.map.push(t.pos,t.pos+Gt,On),t.col+=Gt,t.pos+=Gt}if(!Zt)break;Dt+=Gt+1;var Wn=void 0;if(Zt[0]==" "){var qn=t.cm.options.tabSize,yr=qn-t.col%qn;Wn=mt.appendChild(O("span",le(yr),"cm-tab")),Wn.setAttribute("role","presentation"),Wn.setAttribute("cm-text"," "),t.col+=yr}else Zt[0]=="\r"||Zt[0]==`
|
|
|
`?(Wn=mt.appendChild(O("span",Zt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Wn.setAttribute("cm-text",Zt[0]),t.col+=1):(Wn=t.cm.options.specialCharPlaceholder(Zt[0]),Wn.setAttribute("cm-text",Zt[0]),A&&g<9?mt.appendChild(O("span",[Wn])):mt.appendChild(Wn),t.col+=1);t.map.push(t.pos,t.pos+1,Wn),t.pos++}}if(t.trailingSpace=we.charCodeAt(p.length-1)==32,B||j||G||Ue||ne||ge){var Lr=B||"";j&&(Lr+=j),G&&(Lr+=G);var Er=O("span",[mt],Lr,ne);if(ge)for(var Gr in ge)ge.hasOwnProperty(Gr)&&Gr!="style"&&Gr!="class"&&Er.setAttribute(Gr,ge[Gr]);return t.content.appendChild(Er)}t.content.appendChild(mt)}function Or(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 Pr(t,p){return function(B,j,G,ne,ge,we,Re){G=G?G+" cm-force-border":"cm-force-border";for(var Ue=B.pos,mt=Ue+j.length;;){for(var Dt=void 0,Zt=0;Zt<p.length&&!(Dt=p[Zt],Dt.to>Ue&&Dt.from<=Ue);Zt++);if(Dt.to>=mt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,Dt.to-Ue),G,ne,null,we,Re),ne=null,j=j.slice(Dt.to-Ue),Ue=Dt.to}}}function Zn(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 Tr(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]),In(B[ge+1],p.cm.options));return}for(var we=G.length,Re=0,Ue=1,mt="",Dt,Zt,Gt=0,On,Wn,qn,yr,Lr;;){if(Gt==Re){On=Wn=qn=Zt="",Lr=null,yr=null,Gt=Infinity;for(var Er=[],Gr=void 0,aa=0;aa<j.length;++aa){var ea=j[aa],Ca=ea.marker;if(Ca.type=="bookmark"&&ea.from==Re&&Ca.widgetNode)Er.push(Ca);else if(ea.from<=Re&&(ea.to==null||ea.to>Re||Ca.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&Gt>ea.to&&(Gt=ea.to,Wn=""),Ca.className&&(On+=" "+Ca.className),Ca.css&&(Zt=(Zt?Zt+";":"")+Ca.css),Ca.startStyle&&ea.from==Re&&(qn+=" "+Ca.startStyle),Ca.endStyle&&ea.to==Gt&&(Gr||(Gr=[])).push(Ca.endStyle,ea.to),Ca.title&&((Lr||(Lr={})).title=Ca.title),Ca.attributes)for(var Va in Ca.attributes)(Lr||(Lr={}))[Va]=Ca.attributes[Va];Ca.collapsed&&(!yr||Vt(yr.marker,Ca)<0)&&(yr=ea)}else ea.from>Re&&Gt>ea.from&&(Gt=ea.from)}if(Gr)for(var vi=0;vi<Gr.length;vi+=2)Gr[vi+1]==Gt&&(Wn+=" "+Gr[vi]);if(!yr||yr.from==Re)for(var ti=0;ti<Er.length;++ti)Zn(p,0,Er[ti]);if(yr&&(yr.from||0)==Re){if(Zn(p,(yr.to==null?we+1:yr.to)-Re,yr.marker,yr.from==null),yr.to==null)return;yr.to==Re&&(yr=!1)}}if(Re>=we)break;for(var zi=Math.min(we,Gt);;){if(mt){var Ui=Re+mt.length;if(!yr){var ci=Ui>zi?mt.slice(0,zi-Re):mt;p.addToken(p,ci,Dt?Dt+On:On,qn,Re+ci.length==Gt?Wn:"",Zt,Lr)}if(Ui>=zi){mt=mt.slice(zi-Re),Re=zi;break}Re=Ui,qn=""}mt=G.slice(ne,ne=B[Ue++]),Dt=In(B[Ue++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=yn(p),this.size=this.rest?tr($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Qn(t,p)}function Hr(t,p,B){for(var j=[],G,ne=p;ne<B;ne=G){var ge=new vr(t.doc,un(t.doc,ne),ne);G=ne+ge.size,j.push(ge)}return j}var Mr=null;function qr(t){Mr?Mr.ops.push(t):t.ownsGroup=Mr={ops:[t],delayedCallbacks:[]}}function rr(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{rr(B)}finally{Mr=null,p(B)}}var Jt=null;function Yt(t,p){var B=dt(t,p);if(!B.length)return;var j=Array.prototype.slice.call(arguments,2),G;Mr?G=Mr.delayedCallbacks:Jt?G=Jt:(G=Jt=[],setTimeout(Vn,0));for(var ne=function(we){G.push(function(){return B[we].apply(null,j)})},ge=0;ge<B.length;++ge)ne(ge)}function Vn(){var t=Jt;Jt=null;for(var p=0;p<t.length;++p)t[p]()}function er(t,p,B,j){for(var G=0;G<p.changes.length;G++){var ne=p.changes[G];ne=="text"?sr(t,p):ne=="gutter"?lr(t,p,B,j):ne=="class"?Qr(t,p):ne=="widget"&&la(t,p,j)}p.changes=null}function Ln(t){return t.node==t.text&&(t.node=O("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),A&&g<8&&(t.node.style.zIndex=2)),t.node}function ir(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=Ln(p);p.background=j.insertBefore(O("div",null,B),j.firstChild),t.display.input.setUneditable(p.background)}}function cr(t,p){var B=t.display.externalMeasured;return B&&B.line==p.line?(t.display.externalMeasured=null,p.measure=B.measure,B.built):Bn(t,p)}function sr(t,p){var B=p.text.className,j=cr(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){ir(t,p),p.line.wrapClass?Ln(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 lr(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=Ln(p);p.gutterBackground=O("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=Ln(p),we=p.gutter=O("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(O("div",mn(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 Ue=t.display.gutterSpecs[Re].className,mt=ne.hasOwnProperty(Ue)&&ne[Ue];mt&&we.appendChild(O("div",[mt],"CodeMirror-gutter-elt","left: "+j.gutterLeft[Ue]+"px; width: "+j.gutterWidth[Ue]+"px"))}}}function la(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);_r(t,p,B)}function Vr(t,p,B,j){var G=cr(t,p);return p.text=p.node=G.pre,G.bgClass&&(p.bgClass=G.bgClass),G.textClass&&(p.textClass=G.textClass),Qr(t,p),lr(t,p,B,j),_r(t,p,j),p.node}function _r(t,p,B){if(Cr(t,p.line,p,B,!0),p.rest)for(var j=0;j<p.rest.length;j++)Cr(t,p.rest[j],p,B,!1)}function Cr(t,p,B,j,G){if(!p.widgets)return;for(var ne=Ln(B),ge=0,we=p.widgets;ge<we.length;++ge){var Re=we[ge],Ue=O("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||Ue.setAttribute("cm-ignore-events","true"),Fr(Re,Ue,B,j),t.display.input.setUneditable(Ue),G&&Re.above?ne.insertBefore(Ue,B.gutter||B.text):ne.appendChild(Ue),Yt(Re,"redraw")}}function Fr(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 Xr(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,O("div",[t.node],null,B))}return t.height=t.node.parentNode.offsetHeight}function Sa(t,p){for(var B=$e(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 va(t){return t.lineSpace.offsetTop}function Ye(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function ct(t){if(t.cachedPaddingH)return t.cachedPaddingH;var p=v(t.measure,O("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 bt(t){return de-t.display.nativeBarWidth}function nt(t){return t.display.scroller.clientWidth-bt(t)-t.display.barWidth}function Pe(t){return t.display.scroller.clientHeight-bt(t)-t.display.barHeight}function ze(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],Ue=ge[we+1];Math.abs(Re.bottom-Ue.bottom)>2&&ne.push((Re.bottom+Ue.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(tr(t.rest[G])>B)return{map:t.measure.maps[G],cache:t.measure.caches[G],before:!0}}function Ze(t,p){p=tn(p);var B=tr(p),j=t.display.externalMeasured=new vr(t.doc,p,B);j.lineN=B;var G=j.built=Bn(t,j);return j.text=G.pre,v(t.display.lineMeasure,G.pre),j}function Qe(t,p,B,j){return It(t,it(t,p),B,j)}function ht(t,p){if(p>=t.display.viewFrom&&p<t.display.viewTo)return t.display.view[ha(t,p)];var B=t.display.externalMeasured;if(B&&p>=B.lineN&&p<B.lineN+B.size)return B}function it(t,p){var B=tr(p),j=ht(t,B);j&&!j.text?j=null:j&&j.changes&&(er(t,j,B,nr(t)),t.curOp.forceUpdate=!0),j||(j=Ze(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 It(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||(ze(t,p.view,p.rect),p.hasHeights=!0),ge=dn(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 hn(t,p,B){for(var j,G,ne,ge,we,Re,Ue=0;Ue<t.length;Ue+=3)if(we=t[Ue],Re=t[Ue+1],p<we?(G=0,ne=1,ge="left"):p<Re?(G=p-we,ne=G+1):(Ue==t.length-3||p==Re&&t[Ue+3]>p)&&(ne=Re-we,G=ne-1,p>=Re&&(ge="right")),G!=null){if(j=t[Ue+2],we==Re&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;Ue&&t[Ue-2]==t[Ue-3]&&t[Ue-1].insertLeft;)j=t[(Ue-=3)+2],ge="left";if(B=="right"&&G==Re-we)for(;Ue<t.length-3&&t[Ue+3]==t[Ue+4]&&!t[Ue+5].insertLeft;)j=t[(Ue+=3)+2],ge="right";break}return{node:j,start:G,end:ne,collapse:ge,coverStart:we,coverEnd:Re}}function ln(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 dn(t,p,B,j){var G=hn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=G.collapse,Ue;if(ne.nodeType==3){for(var mt=0;mt<4;mt++){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(A&&g<9&&ge==0&&we==G.coverEnd-G.coverStart?Ue=ne.parentNode.getBoundingClientRect():Ue=ln(I(ne,ge,we).getClientRects(),j),Ue.left||Ue.right||ge==0)break;we=ge,ge=ge-1,Re="right"}A&&g<11&&(Ue=cn(t.display.measure,Ue))}else{ge>0&&(Re=j="right");var Dt;t.options.lineWrapping&&(Dt=ne.getClientRects()).length>1?Ue=Dt[j=="right"?Dt.length-1:0]:Ue=ne.getBoundingClientRect()}if(A&&g<9&&!ge&&(!Ue||!Ue.left&&!Ue.right)){var Zt=ne.parentNode.getClientRects()[0];Zt?Ue={left:Zt.left,right:Zt.left+Rr(t.display),top:Zt.top,bottom:Zt.bottom}:Ue=zt}for(var Gt=Ue.top-p.rect.top,On=Ue.bottom-p.rect.top,Wn=(Gt+On)/2,qn=p.view.measure.heights,yr=0;yr<qn.length-1&&!(Wn<qn[yr]);yr++);var Lr=yr?qn[yr-1]:0,Er=qn[yr],Gr={left:(Re=="right"?Ue.right:Ue.left)-p.rect.left,right:(Re=="left"?Ue.left:Ue.right)-p.rect.left,top:Lr,bottom:Er};return!Ue.left&&!Ue.right&&(Gr.bogus=!0),t.options.singleCursorHeightPerLine||(Gr.rtop=Gt,Gr.rbottom=On),Gr}function cn(t,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Fe(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 Hn(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 Cn(t){t.display.externalMeasure=null,w(t.display.lineMeasure);for(var p=0;p<t.display.view.length;p++)Hn(t.display.view[p])}function Nr(t){Cn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ar(){return r&&h?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Yr(){return r&&h?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function jr(t){var p=0;if(t.widgets)for(var B=0;B<t.widgets.length;++B)t.widgets[B].above&&(p+=Xr(t.widgets[B]));return p}function ta(t,p,B,j,G){if(!G){var ne=jr(p);B.top+=ne,B.bottom+=ne}if(j=="line")return B;j||(j="local");var ge=kr(p);if(j=="local"?ge+=va(t.display):ge-=t.display.viewOffset,j=="page"||j=="window"){var we=t.display.lineSpace.getBoundingClientRect();ge+=we.top+(j=="window"?0:Yr());var Re=we.left+(j=="window"?0:Ar());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-=Ar(),G-=Yr();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=un(t.doc,p.line)),ta(t,j,Qe(t,j,p.ch,G),B)}function zn(t,p,B,j,G,ne){j=j||un(t.doc,p.line),G||(G=it(t,j));function ge(On,Wn){var qn=It(t,G,On,Wn?"right":"left",ne);return Wn?qn.left=qn.right:qn.right=qn.left,ta(t,j,qn,B)}var we=gt(j,t.doc.direction),Re=p.ch,Ue=p.sticky;if(Re>=j.text.length?(Re=j.text.length,Ue="before"):Re<=0&&(Re=0,Ue="after"),!we)return ge(Ue=="before"?Re-1:Re,Ue=="before");function mt(On,Wn,qn){var yr=we[Wn],Lr=yr.level==1;return ge(qn?On-1:On,Lr!=qn)}var Dt=st(we,Re,Ue),Zt=ut,Gt=mt(Re,Dt,Ue=="before");return Zt!=null&&(Gt.other=mt(Re,Zt,Ue!="before")),Gt}function xn(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Rr(t.display)*p.ch);var j=un(t.doc,p.line),G=kr(j)+va(t.display);return{left:B,right:B,top:G,bottom:G+j.height}}function Fn(t,p,B,j,G){var ne=en(t,p,B);return ne.xRel=G,j&&(ne.outside=j),ne}function Kr(t,p,B){var j=t.doc;if(B+=t.display.viewOffset,B<0)return Fn(j.first,0,null,-1,-1);var G=pr(j,B),ne=j.first+j.size-1;if(G>ne)return Fn(j.first+j.size-1,un(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=un(j,G);;){var we=Ea(t,ge,G,p,B),Re=Un(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var Ue=Re.find(1);if(Ue.line==G)return Ue;ge=un(j,G=Ue.line)}}function sa(t,p,B,j){j-=jr(p);var G=p.text.length,ne=Ge(function(ge){return It(t,B,ge-1).bottom<=j},G,0);return G=Ge(function(ge){return It(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function hr(t,p,B,j){B||(B=it(t,p));var G=ta(t,p,It(t,B,j),"line").top;return sa(t,p,B,G)}function ra(t,p,B,j){return t.bottom<=B?!1:t.top>B?!0:(j?t.left:t.right)>p}function Ea(t,p,B,j,G){G-=kr(p);var ne=it(t,p),ge=jr(p),we=0,Re=p.text.length,Ue=!0,mt=gt(p,t.doc.direction);if(mt){var Dt=(t.options.lineWrapping?xa:ca)(t,p,B,ne,mt,j,G);Ue=Dt.level!=1,we=Ue?Dt.from:Dt.to-1,Re=Ue?Dt.to:Dt.from-1}var Zt=null,Gt=null,On=Ge(function(aa){var ea=It(t,ne,aa);return ea.top+=ge,ea.bottom+=ge,ra(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(Zt=aa,Gt=ea),!0):!1},we,Re),Wn,qn,yr=!1;if(Gt){var Lr=j-Gt.left<Gt.right-j,Er=Lr==Ue;On=Zt+(Er?0:1),qn=Er?"after":"before",Wn=Lr?Gt.left:Gt.right}else{!Ue&&(On==Re||On==we)&&On++,qn=On==0?"after":On==p.text.length?"before":It(t,ne,On-(Ue?1:0)).bottom+ge<=G==Ue?"after":"before";var Gr=zn(t,en(B,On,qn),"line",p,ne);Wn=Gr.left,yr=G<Gr.top?-1:G>=Gr.bottom?1:0}return On=Te(p.text,On,1),Fn(B,On,qn,yr,j-Wn)}function ca(t,p,B,j,G,ne,ge){var we=Ge(function(Dt){var Zt=G[Dt],Gt=Zt.level!=1;return ra(zn(t,en(B,Gt?Zt.to:Zt.from,Gt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var Ue=Re.level!=1,mt=zn(t,en(B,Ue?Re.from:Re.to,Ue?"after":"before"),"line",p,j);ra(mt,ne,ge,!0)&&mt.top>ge&&(Re=G[we-1])}return Re}function xa(t,p,B,j,G,ne,ge){var we=sa(t,p,j,ge),Re=we.begin,Ue=we.end;/\s/.test(p.text.charAt(Ue-1))&&Ue--;for(var mt=null,Dt=null,Zt=0;Zt<G.length;Zt++){var Gt=G[Zt];if(Gt.from>=Ue||Gt.to<=Re)continue;var On=Gt.level!=1,Wn=It(t,j,On?Math.min(Ue,Gt.to)-1:Math.max(Re,Gt.from)).right,qn=Wn<ne?ne-Wn+1e9:Wn-ne;(!mt||Dt>qn)&&(mt=Gt,Dt=qn)}return mt||(mt=G[G.length-1]),mt.from<Re&&(mt={from:Re,to:mt.to,level:mt.level}),mt.to>Ue&&(mt={from:mt.from,to:Ue,level:mt.level}),mt}var Sr;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Sr==null){Sr=O("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Sr.appendChild(document.createTextNode("x")),Sr.appendChild(O("br"));Sr.appendChild(document.createTextNode("x"))}v(t.measure,Sr);var B=Sr.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),w(t.measure),B||1}function Rr(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=O("span","xxxxxxxxxx"),B=O("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 nr(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:da(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:B,gutterWidth:j,wrapperWidth:p.wrapper.clientWidth}}function da(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ya(t){var p=br(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Rr(t.display)-3);return function(G){if(Qn(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 _a(t){var p=t.doc,B=ya(t);p.iter(function(j){var G=B(j);G!=j.height&&Yn(j,G)})}function Ta(t,p,B,j){var G=t.display;if(!B&&$e(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(Dt){return null}var Re=Kr(t,ne,ge),Ue;if(j&&Re.xRel>0&&(Ue=un(t.doc,Re.line).text).length==Re.ch){var mt=K(Ue,Ue.length,t.options.tabSize)-Ue.length;Re=en(Re.line,Math.max(0,Math.round((ne-ct(t.display).left)/Rr(t.display))-mt))}return Re}function ha(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 La(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)Ra&&jn(t.doc,p)<G.viewTo&&Ba(t);else if(B<=G.viewFrom)Ra&&Rn(t.doc,B+j)>G.viewFrom?Ba(t):(G.viewFrom+=j,G.viewTo+=j);else if(p<=G.viewFrom&&B>=G.viewTo)Ba(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):Ba(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):Ba(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(Hr(t,we.lineN,Re.lineN)).concat(G.view.slice(Re.index)),G.viewTo+=j):Ba(t)}var Ue=G.externalMeasured;Ue&&(B<Ue.lineN?Ue.lineN+=j:p<Ue.lineN+Ue.size&&(G.externalMeasured=null))}function Na(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[ha(t,p)];if(ne.node==null)return;var ge=ne.changes||(ne.changes=[]);fe(ge,B)==-1&&ge.push(B)}function Ba(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=ha(t,p),ne,ge=t.display.view;if(!Ra||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(;jn(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=Hr(t,p,B),j.viewFrom=p):(j.viewFrom>p?j.view=Hr(t,p,j.viewFrom).concat(j.view):j.viewFrom<p&&(j.view=j.view.slice(ha(t,p))),j.viewFrom=p,j.viewTo<B?j.view=j.view.concat(Hr(t,j.viewTo,B)):j.viewTo>B&&(j.view=j.view.slice(0,ha(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 Ia(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)&&wi(t,we.head,G),Re||Pa(t,we,ne)}return j}function wi(t,p,B){var j=zn(t,p,"div",null,null,!t.options.singleCursorHeightPerLine),G=B.appendChild(O("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(O("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 Ua(t,p){return t.top-p.top||t.left-p.left}function Pa(t,p,B){var j=t.display,G=t.doc,ne=document.createDocumentFragment(),ge=ct(t.display),we=ge.left,Re=Math.max(j.sizerWidth,nt(t)-j.sizer.offsetLeft)-ge.right,Ue=G.direction=="ltr";function mt(Er,Gr,aa,ea){Gr<0&&(Gr=0),Gr=Math.round(Gr),ea=Math.round(ea),ne.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+Er+`px;
|
|
|
top: `+Gr+"px; width: "+(aa==null?Re-Er:aa)+`px;
|
|
|
height: `+(ea-Gr)+"px"))}function Dt(Er,Gr,aa){var ea=un(G,Er),Ca=ea.text.length,Va,vi;function ti(ci,ji){return wr(t,en(Er,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=hr(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=gt(ea,G.direction);return qe(Ui,Gr||0,aa==null?Ca:aa,function(ci,ji,Ci,pi){var di=Ci=="ltr",ii=ti(ci,di?"left":"right"),Bi=ti(ji-1,di?"right":"left"),Ts=Gr==null&&ci==0,es=aa==null&&ji==Ca,Oi=pi==0,Po=!Ui||pi==Ui.length-1;if(Bi.top-ii.top<=3){var _i=(Ue?Ts:es)&&Oi,ru=(Ue?es:Ts)&&Po,Fo=_i?we:(di?ii:Bi).left,ds=ru?Re:(di?Bi:ii).right;mt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,Os,au;di?(fs=Ue&&Ts&&Oi?we:ii.left,Mi=Ue?Re:zi(ci,Ci,"before"),Os=Ue?we:zi(ji,Ci,"after"),au=Ue&&es&&Po?Re:Bi.right):(fs=Ue?zi(ci,Ci,"before"):we,Mi=!Ue&&Ts&&Oi?Re:ii.right,Os=!Ue&&es&&Po?we:Bi.left,au=Ue?zi(ji,Ci,"after"):Re),mt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom<Bi.top&&mt(we,ii.bottom,null,Bi.top),mt(Os,Bi.top,au-Os,Bi.bottom)}(!Va||Ua(ii,Va)<0)&&(Va=ii),Ua(Bi,Va)<0&&(Va=Bi),(!vi||Ua(ii,vi)<0)&&(vi=ii),Ua(Bi,vi)<0&&(vi=Bi)}),{start:Va,end:vi}}var Zt=p.from(),Gt=p.to();if(Zt.line==Gt.line)Dt(Zt.line,Zt.ch,Gt.ch);else{var On=un(G,Zt.line),Wn=un(G,Gt.line),qn=tn(On)==tn(Wn),yr=Dt(Zt.line,Zt.ch,qn?On.text.length+1:null).end,Lr=Dt(Gt.line,qn?0:null,Gt.ch).start;qn&&(yr.top<Lr.top-2?(mt(yr.right,yr.top,null,yr.bottom),mt(we,Lr.top,Lr.left,Lr.bottom)):mt(yr.right,yr.top,Lr.left-yr.right,yr.bottom)),yr.bottom<Lr.top&&mt(we,yr.bottom,null,Lr.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||(vt(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&&(vt(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(A&&g<8){var Re=G.node.offsetTop+G.node.offsetHeight;ge=Re-B,B=Re}else{var Ue=G.node.getBoundingClientRect();ge=Ue.bottom-Ue.top,!ne&&G.text.firstChild&&(we=G.text.firstChild.getBoundingClientRect().right-Ue.left-1)}var mt=G.line.height-ge;if((mt>.005||mt<-.005)&&(Yn(G.line,ge),mi(G.line),G.rest))for(var Dt=0;Dt<G.rest.length;Dt++)mi(G.rest[Dt]);if(we>t.display.sizerWidth){var Zt=Math.ceil(we/Rr(t.display));Zt>t.display.maxLineLength&&(t.display.maxLineLength=Zt,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-va(t));var G=B&&B.bottom!=null?B.bottom:j+t.wrapper.clientHeight,ne=pr(p,j),ge=pr(p,G);if(B&&B.ensure){var we=B.ensure.from.line,Re=B.ensure.to.line;we<ne?(ne=we,ge=pr(p,kr(un(p,we))+t.wrapper.clientHeight)):Math.min(Re,p.lastLine())>=ge&&(ne=pr(p,kr(un(p,Re))-t.wrapper.clientHeight),ge=Re)}return{from:ne,to:Math.max(ge,ne+1)}}function Io(t,p){if(Rt(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&&!a){var ne=O("div","\u200B",null,`position: absolute;
|
|
|
top: `+(p.top-B.viewOffset-va(t.display))+`px;
|
|
|
height: `+(p.bottom-p.top+bt(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?en(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?en(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 Ue=Vi(t,G),mt=t.doc.scrollTop,Dt=t.doc.scrollLeft;if(Ue.scrollTop!=null&&(Ji(t,Ue.scrollTop),Math.abs(t.doc.scrollTop-mt)>1&&(ge=!0)),Ue.scrollLeft!=null&&(ei(t,Ue.scrollLeft),Math.abs(t.doc.scrollLeft-Dt)>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=br(t.display);p.top<0&&(p.top=0);var G=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:B.scroller.scrollTop,ne=Pe(t),ge={};p.bottom-p.top>ne&&(p.bottom=p.top+ne);var we=t.doc.height+Ye(B),Re=p.top<j,Ue=p.bottom>we-j;if(p.top<G)ge.scrollTop=Re?0:p.top;else if(p.bottom>G+ne){var mt=Math.min(p.top,(Ue?we:p.bottom)-ne);mt!=G&&(ge.scrollTop=mt)}var Dt=t.options.fixedGutter?0:B.gutters.offsetWidth,Zt=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:B.scroller.scrollLeft-Dt,Gt=nt(t)-B.gutters.offsetWidth,On=p.right-p.left>Gt;return On&&(p.right=p.left+Gt),p.left<10?ge.scrollLeft=0:p.left<Zt?ge.scrollLeft=Math.max(0,p.left+Dt-(On?0:10)):p.right>Gt+Zt-3&&(ge.scrollLeft=p.right+(On?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=xn(t,p.from),j=xn(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;T||fo(t,{top:p}),Qi(t,p,!0),T&&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,ba(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+Ye(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+bt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),ke(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),ke(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&g<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 te,this.disableVert=new te},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),ke(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},qr(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++)wo(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 wo(t){var p=t.cm,B=p.display;t.updatedDisplay&&ro(p),t.barMeasure=Li(p),B.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=Qe(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+bt(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&&Oa(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||vt(ne[we],"hide");if(ge)for(var Re=0;Re<ge.length;++Re)ge[Re].lines.length&&vt(ge[Re],"unhide");B.wrapper.offsetHeight&&(j.scrollTop=p.display.scroller.scrollTop),t.changeObjs&&vt(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 Wa(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(So,t))}function So(t){var p=t.doc;if(p.highlightFrontier>=t.display.viewTo)return;var B=+new Date+t.options.workTime,j=Kn(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?nn(p.mode,j.state):null,Re=pt(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var Ue=ne.styleClasses,mt=Re.classes;mt?ne.styleClasses=mt:Ue&&(ne.styleClasses=null);for(var Dt=!ge||ge.length!=ne.styles.length||Ue!=mt&&(!Ue||!mt||Ue.bgClass!=mt.bgClass||Ue.textClass!=mt.textClass),Zt=0;!Dt&&Zt<ge.length;++Zt)Dt=ge[Zt]!=ne.styles[Zt];Dt&&G.push(j.line),ne.stateAfter=j.save(),j.nextLine()}else ne.text.length<=t.options.maxHighlightLength&&dr(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++)Na(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=nr(t),this.events=[]};yi.prototype.signal=function(t,p){Je(t,p)&&this.events.push(arguments)},yi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)vt.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=bt(t)+"px",p.sizer.style.marginBottom=-p.nativeBarWidth+"px",p.sizer.style.borderRightWidth=bt(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 Ba(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;Ka(t)&&(Ba(t),p.dims=nr(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)),Ra&&(ne=jn(t.doc,ne),ge=Rn(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=kr(un(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 Ue=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(Ue),w(B.cursorDiv),w(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+Ye(t.display)-Pe(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);Ia(t),Ri(t,G),Oa(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);Ia(t),Ri(t,j),Oa(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(On){var Wn=On.nextSibling;return e&&s&&t.display.currentWheelTarget==On?On.style.display="none":On.parentNode.removeChild(On),Wn}for(var Re=j.view,Ue=j.viewFrom,mt=0;mt<Re.length;mt++){var Dt=Re[mt];if(!Dt.hidden)if(!Dt.node||Dt.node.parentNode!=ne){var Zt=Vr(t,Dt,Ue,B);ne.insertBefore(Zt,ge)}else{for(;ge!=Dt.node;)ge=we(ge);var Gt=G&&p!=null&&p<=Ue&&Dt.lineNumber;Dt.changes&&(fe(Dt.changes,"gutter")>-1&&(Gt=!1),er(t,Dt,Ue,B)),Gt&&(w(Dt.lineNumber),Dt.lineNumber.appendChild(document.createTextNode(mn(t.options,Ue)))),ge=Dt.node.nextSibling}Ue+=Dt.size}for(;ge;)ge=we(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Oa(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+bt(t)+"px"}function ba(t){var p=t.display,B=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var j=da(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 Ka(t){if(!t.options.lineNumbers)return!1;var p=t.doc,B=mn(t.options,p.first+p.size-1),j=t.display;if(B.length!=j.lineNumChars){var G=j.measure.appendChild(O("div",[O("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;w(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(O("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),La(t),ba(t)}function ho(t,p,B,j){var G=this;this.input=B,G.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),G.scrollbarFiller.setAttribute("cm-not-content","true"),G.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),G.gutterFiller.setAttribute("cm-not-content","true"),G.lineDiv=U("div",null,"CodeMirror-code"),G.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),G.cursorDiv=O("div",null,"CodeMirror-cursors"),G.measure=O("div",null,"CodeMirror-measure"),G.lineMeasure=O("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=O("div",[ne],null,"position: relative"),G.sizer=O("div",[G.mover],"CodeMirror-sizer"),G.sizerWidth=null,G.heightForcer=O("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),G.gutters=O("div",null,"CodeMirror-gutters"),G.lineGutter=null,G.scroller=O("div",[G.sizer,G.heightForcer,G.gutters],"CodeMirror-scroll"),G.scroller.setAttribute("tabIndex","-1"),G.wrapper=O("div",[G.scrollbarFiller,G.gutterFiller,G.scroller],"CodeMirror"),A&&g<8&&(G.gutters.style.zIndex=-1,G.scroller.style.paddingRight=0),!e&&!(T&&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 Si=0,qa=null;A?qa=-.53:T?qa=15:r?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 Ue=p.target,mt=ne.view;Ue!=ge;Ue=Ue.parentNode)for(var Dt=0;Dt<mt.length;Dt++)if(mt[Dt].node==Ue){t.display.currentWheelTarget=Ue;break e}}if(j&&!T&&!l&&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)&&Me(p),ne.wheelStartX=null;return}if(G&&qa!=null){var Zt=G*qa,Gt=t.doc.scrollTop,On=Gt+ne.wrapper.clientHeight;Zt<0?Gt=Math.max(0,Gt+Zt-50):On=Math.min(t.doc.height,On+Zt+50),fo(t,{top:Gt,bottom:On})}Si<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 Wn=ge.scrollLeft-ne.wheelStartX,qn=ge.scrollTop-ne.wheelStartY,yr=qn&&ne.wheelDY&&qn/ne.wheelDY||Wn&&ne.wheelDX&&Wn/ne.wheelDX;if(ne.wheelStartX=ne.wheelStartY=null,!yr)return;qa=(qa*Si+yr)/(Si+1),++Si},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(!Zr(B.anchor,j.anchor)||!Zr(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 Da(zr(this.ranges[p].anchor),zr(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(Nn(p,j.from())>=0&&Nn(t,j.to())<=0)return B}return-1};var Da=function(t,p){this.anchor=t,this.head=p};Da.prototype.from=function(){return Dr(this.anchor,this.head)},Da.prototype.to=function(){return Ur(this.anchor,this.head)},Da.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ia(t,p,B){var j=t&&t.options.selectionsMayTouch,G=p[B];p.sort(function(Zt,Gt){return Nn(Zt.from(),Gt.from())}),B=fe(p,G);for(var ne=1;ne<p.length;ne++){var ge=p[ne],we=p[ne-1],Re=Nn(we.to(),ge.from());if(j&&!ge.empty()?Re>0:Re>=0){var Ue=Dr(we.from(),ge.from()),mt=Ur(we.to(),ge.to()),Dt=we.empty()?ge.from()==ge.head:we.from()==we.head;ne<=B&&--B,p.splice(--ne,2,new Da(Dt?mt:Ue,Dt?Ue:mt))}}return new hi(p,B)}function xr(t,p){return new hi([new Da(t,p||t)],0)}function Jr(t){return t.text?en(t.from.line+t.text.length-1,$(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function ma(t,p){if(Nn(t,p.from)<0)return t;if(Nn(t,p.to)<=0)return Jr(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+=Jr(p).ch-p.to.ch),en(B,j)}function Fa(t,p){for(var B=[],j=0;j<t.sel.ranges.length;j++){var G=t.sel.ranges[j];B.push(new Da(ma(G.anchor,p),ma(G.head,p)))}return ia(t.cm,B,t.sel.primIndex)}function Ei(t,p,B){return t.line==p.line?en(B.line,t.ch-p.ch+B.ch):en(B.line+(t.line-p.line),t.ch)}function Pi(t,p,B){for(var j=[],G=en(t.first,0),ne=G,ge=0;ge<p.length;ge++){var we=p[ge],Re=Ei(we.from,G,ne),Ue=Ei(Jr(we),G,ne);if(G=we.to,ne=Ue,B=="around"){var mt=t.sel.ranges[ge],Dt=Nn(mt.head,mt.anchor)<0;j[ge]=new Da(Dt?Ue:Re,Dt?Re:Ue)}else j[ge]=new Da(Re,Re)}return new hi(j,t.sel.primIndex)}function $a(t){t.doc.mode=Ut(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&&La(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(Lr){return B?B[Lr]:null}function ne(Lr,Er,Gr){Dn(Lr,Er,Gr,j),Yt(Lr,"change",Lr,p)}function ge(Lr,Er){for(var Gr=[],aa=Lr;aa<Er;++aa)Gr.push(new fn(Ue[aa],G(aa),j));return Gr}var we=p.from,Re=p.to,Ue=p.text,mt=un(t,we.line),Dt=un(t,Re.line),Zt=$(Ue),Gt=G(Ue.length-1),On=Re.line-we.line;if(p.full)t.insert(0,ge(0,Ue.length)),t.remove(Ue.length,t.size-Ue.length);else if(Ki(t,p)){var Wn=ge(0,Ue.length-1);ne(Dt,Dt.text,Gt),On&&t.remove(we.line,On),Wn.length&&t.insert(we.line,Wn)}else if(mt==Dt)if(Ue.length==1)ne(mt,mt.text.slice(0,we.ch)+Zt+mt.text.slice(Re.ch),Gt);else{var qn=ge(1,Ue.length-1);qn.push(new fn(Zt+mt.text.slice(Re.ch),Gt,j)),ne(mt,mt.text.slice(0,we.ch)+Ue[0],G(0)),t.insert(we.line+1,qn)}else if(Ue.length==1)ne(mt,mt.text.slice(0,we.ch)+Ue[0]+Dt.text.slice(Re.ch),G(0)),t.remove(we.line+1,On);else{ne(mt,mt.text.slice(0,we.ch)+Ue[0],G(0)),ne(Dt,Zt+Dt.text.slice(Re.ch),Gt);var yr=ge(1,Ue.length-1);On>1&&t.remove(we.line+1,On-1),t.insert(we.line+1,yr)}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 Ue=ge&&Re.sharedHist;if(B&&!Ue)continue;p(Re.doc,Ue),j(Re.doc,G,Ue)}}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,_a(t),$a(t),Ys(t),t.options.lineWrapping||Xt(t),t.options.mode=p.modeOption,La(t)}function Ys(t){(t.doc.direction=="rtl"?H:x)(t.display.lineDiv,"CodeMirror-rtl")}function Pl(t){fi(t,function(){Ys(t),La(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:zr(p.from),to:Jr(p),text:Jn(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),Nn(p.from,p.to)==0&&Nn(p.from,we.to)==0?we.to=Jr(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||vt(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=oa(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],Ue=0;Ue<ne.length;++Ue)if(ne[Ue].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 Ue=ge[Re],mt=void 0;if(we.push({from:Ue.from,to:Ue.to,text:Ue.text}),p)for(var Dt in Ue)(mt=Dt.match(/^spans_(\d+)$/))&&(fe(p,Number(mt[1]))>-1&&($(we)[Dt]=Ue[Dt],delete Ue[Dt]))}}return j}function vs(t,p,B,j){if(j){var G=t.anchor;if(B){var ne=Nn(p,G)<0;ne!=Nn(B,G)<0?(G=p,p=B):ne!=Nn(p,B)<0&&(p=B)}return new Da(G,p)}else return new Da(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=ia(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,ia(t.cm,G,t.sel.primIndex),j)}function el(t,p,B,j){gi(t,xr(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 Da(X(t,G[ne].anchor),X(t,G[ne].head))},origin:B&&B.origin};return vt(t,"beforeSelectionChange",t,j),t.cm&&vt(t.cm,"beforeSelectionChange",t.cm,j),j.ranges!=p.ranges?ia(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){(Je(t,"beforeSelectionChange")||t.cm&&Je(t.cm,"beforeSelectionChange"))&&(p=Ll(t,p,B));var j=B&&B.bias||(Nn(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,ot(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),Ue=bs(t,ge.head,we&&we.head,B,j);(G||Re!=ge.anchor||Ue!=ge.head)&&(G||(G=p.ranges.slice(0,ne)),G[ne]=new Da(Re,Ue))}return G?ia(t.cm,G,p.primIndex):p}function Go(t,p,B,j,G){var ne=un(t,p.line);if(ne.markedSpans)for(var ge=0;ge<ne.markedSpans.length;++ge){var we=ne.markedSpans[ge],Re=we.marker,Ue="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,mt="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((we.from==null||(Ue?we.from<=p.ch:we.from<p.ch))&&(we.to==null||(mt?we.to>=p.ch:we.to>p.ch))){if(G&&(vt(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(B){var Dt=Re.find(j<0?1:-1),Zt=void 0;if((j<0?mt:Ue)&&(Dt=il(t,Dt,-j,Dt&&Dt.line==p.line?ne:null)),Dt&&Dt.line==p.line&&(Zt=Nn(Dt,B))&&(j<0?Zt<0:Zt>0))return Go(t,Dt,p,j,G)}var Gt=Re.find(j<0?-1:1);return(j<0?Ue:mt)&&(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,en(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,en(p.line-1)):null:B>0&&p.ch==(j||un(t,p.line)).text.length?p.line<t.first+t.size-1?en(p.line+1,0):null:new en(p.line,p.ch+B)}function ol(t){t.setSelection(en(t.firstLine(),0),en(t.lastLine()),Oe)}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)}),vt(t,"beforeChange",t,j),t.cm&&vt(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 Wa(t.cm,zo)(t,p,B);if(t.cm.state.suppressEdits)return}if((Je(t,"beforeChange")||t.cm&&Je(t.cm,"beforeChange"))&&(p=Ms(t,p,!0),!p))return;var j=ja&&!B&<(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]==""&&Nn(p.from,p.to)==0)return;var B=Fa(t,p);Qs(t,p,B,t.cm?t.cm.curOp.id:NaN),Vo(t,p,B,oa(t,p));var j=[];Qa(t,function(G,ne){!ne&&fe(j,G.history)==-1&&(dl(G.history,p),j.push(G.history)),Vo(G,p,null,oa(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,Ue=0;Ue<we.length&&!(ne=we[Ue],B?ne.ranges&&!ne.equals(t.sel):!ne.ranges);Ue++);if(Ue==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 mt=[];ms(ge,Re),Re.push({changes:mt,generation:G.generation}),G.generation=ne.generation||++G.maxGeneration;for(var Dt=Je(t,"beforeChange")||t.cm&&Je(t.cm,"beforeChange"),Zt=function(Wn){var qn=ne.changes[Wn];if(qn.origin=p,Dt&&!Ms(t,qn,!1))return we.length=0,{};mt.push(Ds(t,qn));var yr=Wn?Fa(t,qn):$(we);Vo(t,qn,yr,Ps(t,qn)),!Wn&&t.cm&&t.cm.scrollIntoView({from:qn.from,to:Jr(qn)});var Lr=[];Qa(t,function(Er,Gr){!Gr&&fe(Lr,Er.history)==-1&&(dl(Er.history,qn),Lr.push(Er.history)),Vo(Er,qn,null,Ps(Er,qn))})},Gt=ne.changes.length-1;Gt>=0;--Gt){var On=Zt(Gt);if(On)return On.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 Da(en(G.anchor.line+p,G.anchor.ch),en(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){La(t.cm,t.first,t.first-p,p);for(var B=t.cm.display,j=B.viewFrom;j<B.viewTo;j++)Na(t.cm,j,"gutter")}}function Vo(t,p,B,j){if(t.cm&&!t.cm.curOp)return Wa(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:en(t.first,0),to:en(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:en(ne,un(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=Jn(t,p.from,p.to),B||(B=Fa(t,p)),t.cm?Nl(t.cm,p,j):go(t,p,j),Ko(t,B,Oe),t.cantEdit&&bs(t,en(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=tr(tn(un(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&&ot(t),go(j,p,B,ya(t)),t.options.lineWrapping||(j.iter(Re,ne.line+p.text.length,function(Gt){var On=wn(Gt);On>G.maxLineLength&&(G.maxLine=Gt,G.maxLineLength=On,G.maxLineChanged=!0,we=!1)}),we&&(t.curOp.updateMaxLine=!0)),za(j,ne.line),ai(t,400);var Ue=p.text.length-(ge.line-ne.line)-1;p.full?La(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?Na(t,ne.line,"text"):La(t,ne.line,ge.line+1,Ue);var mt=Je(t,"changes"),Dt=Je(t,"change");if(Dt||mt){var Zt={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};Dt&&Yt(t,"change",t,Zt),mt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Zt)}t.display.selForContextMenu=null}function Xo(t,p,B,j,G){var ne;j||(j=B),Nn(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 Ue=ne.changes[Re];if(B<Ue.from.line)Ue.from=en(Ue.from.line+j,Ue.from.ch),Ue.to=en(Ue.to.line+j,Ue.to.ch);else if(p<=Ue.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=un(t,pe(t,p)):G=tr(p),G==null?null:(j(ne,G)&&t.cm&&Na(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,Qt(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=fe(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=tr(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=Xr(this);Yn(B,Math.max(0,B.height-ne)),t&&(fi(t,function(){fl(t,B,-ne),Na(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=Xr(this)-p;if(!G)return;Qn(this.doc,j)||Yn(j,j.height+G),B&&fi(B,function(){B.curOp.forceUpdate=!0,fl(B,j,G),Yt(B,"lineWidgetChanged",B,t,tr(j))})},et(ns);function fl(t,p,B){kr(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&&!Qn(t,ge)){var Re=kr(ge)<t.scrollTop;Yn(ge,ge.height+Xr(G)),Re&&co(ne,G.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Yt(ne,"lineWidgetAdded",ne,G,typeof p=="number"?p:tr(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),Je(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=ka(ge.markedSpans,this);t&&!this.collapsed?Na(t,tr(ge),"text"):t&&(we.to!=null&&(G=tr(ge)),we.from!=null&&(j=tr(ge))),ge.markedSpans=li(ge.markedSpans,we),we.from==null&&this.collapsed&&!Qn(this.doc,ge)&&t&&Yn(ge,br(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var Ue=tn(this.lines[Re]),mt=wn(Ue);mt>t.display.maxLineLength&&(t.display.maxLine=Ue,t.display.maxLineLength=mt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&La(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=ka(ne.markedSpans,this);if(ge.from!=null&&(B=en(p?ne:tr(ne),ge.from),t==-1))return B;if(ge.to!=null&&(j=en(p?ne:tr(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=tr(p.line),ge=ht(j,ne);if(ge&&(Hn(ge),j.curOp.selectionChanged=j.curOp.forceUpdate=!0),j.curOp.updateMaxLine=!0,!Qn(B.doc,G)&&B.height!=null){var we=B.height;B.height=null;var Re=Xr(B)-we;Re&&Yn(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||fe(p.maybeHiddenMarkers,this)==-1)&&(p.maybeUnhiddenMarkers||(p.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Gi.prototype.detachLine=function(t){if(this.lines.splice(fe(this.lines,t),1),!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(p.maybeHiddenMarkers||(p.maybeHiddenMarkers=[])).push(this)}},et(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 Wa(t.cm,Jo)(t,p,B,j,G);var ne=new Gi(t,G),ge=Nn(p,B);if(j&&L(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(An(t,p.line,p,B,ne)||p.line!=B.line&&An(t,B.line,p,B,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");wa()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var we=p.line,Re=t.cm,Ue;if(t.iter(we,B.line+1,function(Dt){Re&&ne.collapsed&&!Re.options.lineWrapping&&tn(Dt)==Re.display.maxLine&&(Ue=!0),ne.collapsed&&we!=p.line&&Yn(Dt,0),oi(Dt,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(Dt){Qn(t,Dt)&&Yn(Dt,0)}),ne.clearOnEnter&&ke(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(Ha(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ne.collapsed&&(ne.id=++hl,ne.atomic=!0),Re){if(Ue&&(Re.curOp.updateMaxLine=!0),ne.collapsed)La(Re,p.line,B.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var mt=p.line;mt<=B.line;mt++)Na(Re,mt,"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)},et(Qo);function Ul(t,p,B,j,G){j=L(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 Ue=0;Ue<Re.linked.length;++Ue)if(Re.linked[Ue].isParent)return;ge=$(ne)}),new Qo(ne,ge)}function pl(t){return t.findMarks(en(t.first,0),t.clipPos(en(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(Nn(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];fe(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 fn("",null)])]),this.first=B,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=B;var ne=en(B,0);this.sel=xr(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,xr(ne),Oe)};Ti.prototype=Se(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=kn(this,this.first,this.first+this.size);return t===!1?p:p.join(t||this.lineSeparator())},setValue:Xa(function(t){var p=en(this.first,0),B=this.first+this.size-1;zo(this,{from:p,to:en(B,un(this,B).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),gi(this,xr(p),Oe)}),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=Jn(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(ar(this,t))return un(this,t)},getLineNumber:function(t){return tr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=un(this,t)),tn(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"?en(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,se(this,t),p)}),extendSelectionsBy:Xa(function(t,p){var B=me(this.sel.ranges,t);$s(this,se(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 Da(X(this,t[G].anchor),X(this,t[G].head));p==null&&(p=Math.min(t.length-1,this.sel.primIndex)),gi(this,ia(this.cm,j,p),B)}),addSelection:Xa(function(t,p,B){var j=this.sel.ranges.slice(0);j.push(new Da(X(this,t),X(this,p||t))),gi(this,ia(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=Jn(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=Jn(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&&Q(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,Q(B.gutterMarkers)&&(B.gutterMarkers=null),!0})})}),lineInfo:function(t){var p;if(typeof t=="number"){if(!ar(this,t))return null;if(p=t,t=un(this,t),!t)return null}else if(p=tr(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=un(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,en(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(kn(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(kn(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):je(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),Rt(p,t)||Sa(p.display,t))return;Me(t),A&&(ml=+new Date);var B=Ta(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&&Wa(p,function(){B=X(p.doc,B);var Gt={from:B,to:B,text:p.doc.splitLines(ne.filter(function(On){return On!=null}).join(p.doc.lineSeparator())),origin:"paste"};zo(p.doc,Gt),tl(p.doc,xr(X(p.doc,B),X(p.doc,Jr(Gt))))})()},Re=function(Gt,On){if(p.options.allowDropFileTypes&&fe(p.options.allowDropFileTypes,Gt.type)==-1){we();return}var Wn=new FileReader;Wn.onerror=function(){return we()},Wn.onload=function(){var qn=Wn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(qn)){we();return}ne[On]=qn,we()},Wn.readAsText(Gt)},Ue=0;Ue<j.length;Ue++)Re(j[Ue],Ue);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 mt=t.dataTransfer.getData("Text");if(mt){var Dt;if(p.state.draggingText&&!p.state.draggingText.copy&&(Dt=p.listSelections()),Ko(p.doc,xr(B,B)),Dt)for(var Zt=0;Zt<Dt.length;++Zt)Xo(p.doc,"",Dt[Zt].anchor,Dt[Zt].head,"drag");p.replaceSelection(mt,"around","paste"),p.display.input.focus()}}catch(Gt){}}}function gl(t,p){if(A&&(!t.state.draggingText||+new Date-ml<100)){Ke(p);return}if(Rt(t,p)||Sa(t.display,p))return;if(p.dataTransfer.setData("Text",t.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!n){var B=O("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l&&(B.width=B.height=1,t.display.wrapper.appendChild(B),B._top=B.offsetTop),p.dataTransfer.setDragImage(B,0,0),l&&B.parentNode.removeChild(B)}}function Fl(t,p){var B=Ta(t,p);if(!B)return;var j=document.createDocumentFragment();wi(t,B,j),t.display.dragCursor||(t.display.dragCursor=O("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;ke(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,vl(Wl)},100))}),ke(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 Ue in p)t[Ue]=p[Ue];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(l&&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&&Nn(ne.from,$(j).to)<=0;){var ge=j.pop();if(Nn(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=Te(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 en(p.line,j,B<0?"after":"before")}function Bs(t,p,B,j,G){if(t){p.doc.direction=="rtl"&&(G=-G);var ne=gt(B,p.doc.direction);if(ne){var ge=G<0?$(ne):ne[0],we=G<0==(ge.level==1),Re=we?"after":"before",Ue;if(ge.level>0||p.doc.direction=="rtl"){var mt=it(p,B);Ue=G<0?B.text.length-1:0;var Dt=It(p,mt,Ue).top;Ue=Ge(function(Zt){return It(p,mt,Zt).top==Dt},G<0==(ge.level==1)?ge.from:ge.to-1,Ue),Re=="before"&&(Ue=Us(B,Ue,1))}else Ue=G<0?ge.to:ge.from;return new en(j,Ue,Re)}}return new en(j,G<0?B.text.length:0,G<0?"before":"after")}function Fs(t,p,B,j){var G=gt(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=st(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(yr,Lr){return Us(p,yr instanceof en?yr.ch:yr,Lr)},Re,Ue=function(yr){return t.options.lineWrapping?(Re=Re||it(t,p),hr(t,p,Re,yr)):{begin:0,end:p.text.length}},mt=Ue(B.sticky=="before"?we(B,-1):B.ch);if(t.doc.direction=="rtl"||ge.level==1){var Dt=ge.level==1==j<0,Zt=we(B,Dt?1:-1);if(Zt!=null&&(Dt?Zt<=ge.to&&Zt<=mt.end:Zt>=ge.from&&Zt>=mt.begin)){var Gt=Dt?"before":"after";return new en(B.line,Zt,Gt)}}var On=function(yr,Lr,Er){for(var Gr=function(Va,vi){return vi?new en(B.line,we(Va,1),"before"):new en(B.line,Va,"after")};yr>=0&&yr<G.length;yr+=Lr){var aa=G[yr],ea=Lr>0==(aa.level!=1),Ca=ea?Er.begin:we(Er.end,-1);if(aa.from<=Ca&&Ca<aa.to)return Gr(Ca,ea);if(Ca=ea?aa.from:we(aa.to,-1),Er.begin<=Ca&&Ca<Er.end)return Gr(Ca,ea)}},Wn=On(ne+j,j,mt);if(Wn)return Wn;var qn=j>0?mt.end:we(mt.begin,-1);return qn!=null&&!(j>0&&qn==p.text.length)&&(Wn=On(j>0?0:G.length-1,j,Ue(qn)),Wn)?Wn:null}var qo={selectAll:ol,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Oe)},killLine:function(t){return Zo(t,function(p){if(p.empty()){var B=un(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line<t.lastLine()?{from:p.head,to:en(p.head.line+1,0)}:{from:p.head,to:en(p.head.line,B)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(t){return Zo(t,function(p){return{from:en(p.from().line,0),to:X(t.doc,en(p.to().line+1,0))}})},delLineLeft:function(t){return Zo(t,function(p){return{from:en(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(en(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(en(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")},Ee)},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")},Ee)},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},Ee)},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(le(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=un(t.doc,G.line).text;if(ne){if(G.ch==ne.length&&(G=new en(G.line,G.ch-1)),G.ch>0)G=new en(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),en(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=un(t.doc,G.line-1).text;ge&&(G=new en(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),en(G.line-1,ge.length-1),G,"+transpose"))}}B.push(new Da(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=un(t.doc,p),j=tn(B);return j!=B&&(p=tr(j)),Bs(!0,t,j,p,1)}function Ws(t,p){var B=un(t.doc,p),j=Pn(B);return j!=B&&(p=tr(j)),Bs(!0,t,B,p,-1)}function yl(t,p){var B=Cs(t,p.line),j=un(t.doc,B.line),G=gt(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 en(B.line,ge?0:ne,B.sticky)}return B}function ws(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)!=Ce}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 te;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")&&(Me(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 ws(t,j,!0)})||ss(t,B,p,function(j){if(typeof j=="string"?/^go[A-Z]/.test(j):j.motion)return ws(t,j)}):ss(t,B,p,function(j){return ws(t,j)}):!1}function zl(t,p,B){return ss(t,"'"+B+"'",p,function(j){return ws(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(),Rt(p,t))return;A&&g<11&&t.keyCode==27&&(t.returnValue=!1);var B=t.keyCode;p.display.shift=B==16||t.shiftKey;var j=El(p,t);l&&(Ks=j?B:null,!j&&B==88&&!at&&(s?t.metaKey:t.ctrlKey)&&p.replaceSelection("",null,"cut")),T&&!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"),Bt(document,"keyup",B),Bt(document,"mouseover",B))}ke(document,"keyup",B),ke(document,"mouseover",B)}function Cl(t){t.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,t)}function wl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(Sa(p.display,t)||Rt(p,t)||t.ctrlKey&&!t.altKey||s&&t.metaKey)return;var B=t.keyCode,j=t.charCode;if(l&&B==Ks){Ks=null,Me(t);return}if(l&&(!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&&Nn(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(Rt(p,t)||B.activeTouch&&B.input.supportsTouch())return;if(B.input.ensurePolled(),B.shift=t.shiftKey,Sa(B,t)){e||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(Xs(p,t))return;var j=Ta(p,t),G=_t(t),ne=j?Yl(j,G):"single";if(window.focus(),G==1&&p.state.selectingText&&p.state.selectingText(t),j&&Sl(p,G,j,ne,t))return;G==1?j?Ql(p,j,ne,t):$e(t)==B.scroller&&Me(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 Sl(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)!=Ce}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=u?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){A?setTimeout(F(to,t),0):t.curOp.focus=V();var G=Jl(t,B,j),ne=t.doc.sel,ge;t.options.dragDrop&&Ft&&!t.isReadOnly()&&B=="single"&&(ge=ne.contains(p))>-1&&(Nn((ge=ne.ranges[ge]).from(),p)<0||p.xRel>0)&&(Nn(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=Wa(t,function(Ue){e&&(G.scroller.draggable=!1),t.state.draggingText=!1,Bt(G.wrapper.ownerDocument,"mouseup",ge),Bt(G.wrapper.ownerDocument,"mousemove",we),Bt(G.scroller,"dragstart",Re),Bt(G.scroller,"drop",ge),ne||(Me(Ue),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!n||A&&g==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),we=function(Ue){ne=ne||Math.abs(p.clientX-Ue.clientX)+Math.abs(p.clientY-Ue.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(),ke(G.wrapper.ownerDocument,"mouseup",ge),ke(G.wrapper.ownerDocument,"mousemove",we),ke(G.scroller,"dragstart",Re),ke(G.scroller,"drop",ge),Mo(t),setTimeout(function(){return G.input.focus()},20)}function Vs(t,p,B){if(B=="char")return new Da(p,p);if(B=="word")return t.findWordAt(p);if(B=="line")return new Da(en(p.line,0),X(t.doc,en(p.line+1,0)));var j=B(t,p);return new Da(j.from,j.to)}function ql(t,p,B,j){var G=t.display,ne=t.doc;Me(p);var ge,we,Re=ne.sel,Ue=Re.ranges;if(j.addNew&&!j.extend?(we=ne.sel.contains(B),we>-1?ge=Ue[we]:ge=new Da(B,B)):(ge=ne.sel.primary(),we=ne.sel.primIndex),j.unit=="rectangle")j.addNew||(ge=new Da(B,B)),B=Ta(t,p,!0,!0),we=-1;else{var mt=Vs(t,B,j.unit);j.extend?ge=vs(ge,mt.anchor,mt.head,j.extend):ge=mt}j.addNew?we==-1?(we=Ue.length,gi(ne,ia(t,Ue.concat([ge]),we),{scroll:!1,origin:"*mouse"})):Ue.length>1&&Ue[we].empty()&&j.unit=="char"&&!j.extend?(gi(ne,ia(t,Ue.slice(0,we).concat(Ue.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 Dt=B;function Zt(Er){if(Nn(Dt,Er)==0)return;if(Dt=Er,j.unit=="rectangle"){for(var Gr=[],aa=t.options.tabSize,ea=K(un(ne,B.line).text,B.ch,aa),Ca=K(un(ne,Er.line).text,Er.ch,aa),Va=Math.min(ea,Ca),vi=Math.max(ea,Ca),ti=Math.min(B.line,Er.line),zi=Math.min(t.lastLine(),Math.max(B.line,Er.line));ti<=zi;ti++){var Ui=un(ne,ti).text,ci=ye(Ui,Va,aa);Va==vi?Gr.push(new Da(en(ti,ci),en(ti,ci))):Ui.length>ci&&Gr.push(new Da(en(ti,ci),en(ti,ye(Ui,vi,aa))))}Gr.length||Gr.push(new Da(B,B)),gi(ne,ia(t,Re.ranges.slice(0,we).concat(Gr),we),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Er)}else{var ji=ge,Ci=Vs(t,Er,j.unit),pi=ji.anchor,di;Nn(Ci.anchor,pi)>0?(di=Ci.head,pi=Dr(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=Ur(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[we]=$l(t,new Da(X(ne,pi),di)),gi(ne,ia(t,ii,we),ce)}}var Gt=G.wrapper.getBoundingClientRect(),On=0;function Wn(Er){var Gr=++On,aa=Ta(t,Er,!0,j.unit=="rectangle");if(!aa)return;if(Nn(aa,Dt)!=0){t.curOp.focus=V(),Zt(aa);var ea=uo(G,ne);(aa.line>=ea.to||aa.line<ea.from)&&setTimeout(Wa(t,function(){On==Gr&&Wn(Er)}),150)}else{var Ca=Er.clientY<Gt.top?-20:Er.clientY>Gt.bottom?20:0;Ca&&setTimeout(Wa(t,function(){if(On!=Gr)return;G.scroller.scrollTop+=Ca,Wn(Er)}),50)}}function qn(Er){t.state.selectingText=!1,On=Infinity,Er&&(Me(Er),G.input.focus()),Bt(G.wrapper.ownerDocument,"mousemove",yr),Bt(G.wrapper.ownerDocument,"mouseup",Lr),ne.history.lastSelOrigin=null}var yr=Wa(t,function(Er){Er.buttons===0||!_t(Er)?qn(Er):Wn(Er)}),Lr=Wa(t,qn);t.state.selectingText=Lr,ke(G.wrapper.ownerDocument,"mousemove",yr),ke(G.wrapper.ownerDocument,"mouseup",Lr)}function $l(t,p){var B=p.anchor,j=p.head,G=un(t.doc,B.line);if(Nn(B,j)==0&&B.sticky==j.sticky)return p;var ne=gt(G);if(!ne)return p;var ge=st(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 Ue;if(j.line!=B.line)Ue=(j.line-B.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var mt=st(ne,j.ch,j.sticky),Dt=mt-ge||(j.ch-B.ch)*(we.level==1?-1:1);mt==Re-1||mt==Re?Ue=Dt<0:Ue=Dt>0}var Zt=ne[Re+(Ue?-1:0)],Gt=Ue==(Zt.level==1),On=Gt?Zt.from:Zt.to,Wn=Gt?"after":"before";return B.ch==On&&B.sticky==Wn?p:new Da(new en(B.line,On,Wn),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(Zt){return!1}if(G>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;j&&Me(p);var ge=t.display,we=ge.lineDiv.getBoundingClientRect();if(ne>we.bottom||!Je(t,B))return Xe(p);ne-=we.top-ge.viewOffset;for(var Re=0;Re<t.display.gutterSpecs.length;++Re){var Ue=ge.gutters.childNodes[Re];if(Ue&&Ue.getBoundingClientRect().right>=G){var mt=pr(t.doc,ne),Dt=t.display.gutterSpecs[Re];return vt(t,B,t,mt,Dt.className,p),Xe(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(Sa(t.display,p)||Al(t,p))return;if(Rt(t,p,"contextmenu"))return;P||t.display.input.onContextMenu(p)}function Al(t,p){return Je(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-"),Nr(t)}var $o={toString:function(){return"CodeMirror.Init"}},Ss={},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,Ue){Ue!=$o&&ne(we,Re,Ue)}: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),Nr(j),La(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 Ue=0;;){var mt=Re.text.indexOf(G,Ue);if(mt==-1)break;Ue=mt+G.length,ne.push(en(ge,mt))}ge++});for(var we=ne.length-1;we>=0;we--)Xo(j.doc,G,ne[we],en(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",or,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",!S),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?da(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,Ia,!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,Ia,!0),B("singleCursorHeightPerLine",!0,Ia,!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?ke:Bt;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)),_a(t),La(t),Nr(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?L(p):{},L(Ss,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 te,keySeq:null,specialChars:null},p.autofocus&&!d&&ne.input.focus(),A&&g<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);Ka(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=Ss,Ya.optionHandlers=cs;function Rl(t){var p=t.display;ke(p.scroller,"mousedown",Wa(t,zs)),A&&g<11?ke(p.scroller,"dblclick",Wa(t,function(Re){if(Rt(t,Re))return;var Ue=Ta(t,Re);if(!Ue||Xs(t,Re)||Sa(t.display,Re))return;Me(Re);var mt=t.findWordAt(Ue);_s(t.doc,mt.anchor,mt.head)})):ke(p.scroller,"dblclick",function(Re){return Rt(t,Re)||Me(Re)}),ke(p.scroller,"contextmenu",function(Re){return Ol(t,Re)}),ke(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 Ue=Re.touches[0];return Ue.radiusX<=1&&Ue.radiusY<=1}function ge(Re,Ue){if(Ue.left==null)return!0;var mt=Ue.left-Re.left,Dt=Ue.top-Re.top;return mt*mt+Dt*Dt>20*20}ke(p.scroller,"touchstart",function(Re){if(!Rt(t,Re)&&!ne(Re)&&!Xs(t,Re)){p.input.ensurePolled(),clearTimeout(B);var Ue=+new Date;p.activeTouch={start:Ue,moved:!1,prev:Ue-j.end<=300?j:null},Re.touches.length==1&&(p.activeTouch.left=Re.touches[0].pageX,p.activeTouch.top=Re.touches[0].pageY)}}),ke(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),ke(p.scroller,"touchend",function(Re){var Ue=p.activeTouch;if(Ue&&!Sa(p,Re)&&Ue.left!=null&&!Ue.moved&&new Date-Ue.start<300){var mt=t.coordsChar(p.activeTouch,"page"),Dt;!Ue.prev||ge(Ue,Ue.prev)?Dt=new Da(mt,mt):!Ue.prev.prev||ge(Ue,Ue.prev.prev)?Dt=t.findWordAt(mt):Dt=new Da(en(mt.line,0),X(t.doc,en(mt.line+1,0))),t.setSelection(Dt.anchor,Dt.head),t.focus(),Me(Re)}G()}),ke(p.scroller,"touchcancel",G),ke(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ei(t,p.scroller.scrollLeft,!0),vt(t,"scroll",t))}),ke(p.scroller,"mousewheel",function(Re){return mo(t,Re)}),ke(p.scroller,"DOMMouseScroll",function(Re){return mo(t,Re)}),ke(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Re){Rt(t,Re)||Ke(Re)},over:function(Re){Rt(t,Re)||(Fl(t,Re),Ke(Re))},start:function(Re){return gl(t,Re)},drop:Wa(t,Bl),leave:function(Re){Rt(t,Re)||Ls(t)}};var we=p.input.getField();ke(we,"keyup",function(Re){return Cl.call(t,Re)}),ke(we,"keydown",Wa(t,xl)),ke(we,"keypress",Wa(t,wl)),ke(we,"focus",function(Re){return Ii(t,Re)}),ke(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=Kn(t,p).state:B="prev");var ge=t.options.tabSize,we=un(G,p),Re=K(we.text,null,ge);we.stateAfter&&(we.stateAfter=null);var Ue=we.text.match(/^\s*/)[0],mt;if(!j&&!/\S/.test(we.text))mt=0,B="not";else if(B=="smart"&&(mt=G.mode.indent(ne,we.text.slice(Ue.length),we.text),mt==Ce||mt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?mt=K(un(G,p-1).text,null,ge):mt=0:B=="add"?mt=Re+t.options.indentUnit:B=="subtract"?mt=Re-t.options.indentUnit:typeof B=="number"&&(mt=Re+B),mt=Math.max(0,mt);var Dt="",Zt=0;if(t.options.indentWithTabs)for(var Gt=Math.floor(mt/ge);Gt;--Gt)Zt+=ge,Dt+=" ";if(Zt<mt&&(Dt+=le(mt-Zt)),Dt!=Ue)return Xo(G,Dt,en(p,0),en(p,Ue.length),"+input"),we.stateAfter=null,!0;for(var On=0;On<G.sel.ranges.length;On++){var Wn=G.sel.ranges[On];if(Wn.head.line==p&&Wn.head.ch<Ue.length){var qn=en(p,Ue.length);Ao(G,On,new Da(qn,qn));break}}}var ie=null;function be(t){ie=t}function Le(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=je(p),Ue=null;if(we&&j.ranges.length>1)if(ie&&ie.text.join(`
|
|
|
`)==p){if(j.ranges.length%ie.text.length==0){Ue=[];for(var mt=0;mt<ie.text.length;mt++)Ue.push(ne.splitLines(ie.text[mt]))}}else Re.length==j.ranges.length&&t.options.pasteLinesPerSelection&&(Ue=me(Re,function(yr){return[yr]}));for(var Dt=t.curOp.updateInput,Zt=j.ranges.length-1;Zt>=0;Zt--){var Gt=j.ranges[Zt],On=Gt.from(),Wn=Gt.to();Gt.empty()&&(B&&B>0?On=en(On.line,On.ch-B):t.state.overwrite&&!we?Wn=en(Wn.line,Math.min(un(ne,Wn.line).text.length,Wn.ch+$(Re).length)):we&&ie&&ie.lineWise&&ie.text.join(`
|
|
|
`)==Re.join(`
|
|
|
`)&&(On=Wn=en(On.line,0)));var qn={from:On,to:Wn,text:Ue?Ue[Zt%Ue.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,qn),Yt(t,"inputRead",t,qn)}p&&!we&&We(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=Dt),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ne(t,p){var B=t.clipboardData&&t.clipboardData.getData("Text");if(B)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Le(p,B,0,null,"paste")}),!0}function We(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(un(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 He(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:en(G,0),head:en(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 jt(){var t=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),p=O("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 Wt(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)&&Wa(this,p[j])(this,G,ge),vt(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++,La(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++,La(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"),ar(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(),Ue=we.to(),mt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var Dt=mt;Dt<ne;++Dt)Z(this,Dt,j);var Zt=this.doc.sel.ranges;Re.ch==0&&G.length==Zt.length&&Zt[ge].from().ch>0&&Ao(this.doc,ge,new Da(Re,Zt[ge].to()),Oe)}}}),getTokenAt:function(j,G){return $r(this,j,G)},getLineTokens:function(j,G){return $r(this,en(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=vn(this,un(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var Ue=ne+ge>>1;if((Ue?G[Ue*2-1]:0)>=we)ge=Ue;else if(G[Ue*2+1]<we)ne=Ue+1;else{Re=G[Ue*2+2];break}}var mt=Re?Re.indexOf("overlay "):-1;return mt<0?Re:mt==0?null:Re.slice(0,mt-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 Ue=ge[we[G][Re]];Ue&&ne.push(Ue)}else we.helperType&&ge[we.helperType]?ne.push(ge[we.helperType]):ge[we.name]&&ne.push(ge[we.name]);for(var mt=0;mt<ge._global.length;mt++){var Dt=ge._global[mt];Dt.pred(we,this)&&fe(ne,Dt.val)==-1&&ne.push(Dt.val)}return ne},getStateAfter:function(j,G){var ne=this.doc;return j=pe(ne,j==null?ne.first+ne.size-1:j),Kn(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"),Kr(this,j.left,j.top)},lineAtHeight:function(j,G){return j=Gn(this,{top:j,left:0},G||"page").top,pr(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=un(this.doc,j)}else we=j;return ta(this,we,{top:0,left:0},G||"page",ne||ge).top+(ge?this.doc.height-kr(we):0)},defaultTextHeight:function(){return br(this.display)},defaultCharWidth:function(){return Rr(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 Ue=j.bottom,mt=j.left;if(G.style.position="absolute",G.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(G),Re.sizer.appendChild(G),ge=="over")Ue=j.top;else if(ge=="above"||ge=="near"){var Dt=Math.max(Re.wrapper.clientHeight,this.doc.height),Zt=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>Dt)&&j.top>G.offsetHeight?Ue=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=Dt&&(Ue=j.bottom),mt+G.offsetWidth>Zt&&(mt=Zt-G.offsetWidth)}G.style.top=Ue+"px",G.style.left=G.style.right="",we=="right"?(mt=Re.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(we=="left"?mt=0:we=="middle"&&(mt=(Re.sizer.clientWidth-G.offsetWidth)/2),G.style.left=mt+"px"),ne&&bo(this,{left:mt,top:Ue,right:mt+G.offsetWidth,bottom:Ue+G.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(wl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(j){if(qo.hasOwnProperty(j))return qo[j].call(null,this)},triggerElectric:ri(function(j){We(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),Ue=0;Ue<G&&!(Re=St(this.doc,Re,we,ne,ge),Re.hitSide);++Ue);return Re},moveH:ri(function(j,G){var ne=this;this.extendSelectionsBy(function(ge){return ne.display.shift||ne.doc.extend||ge.empty()?St(ne.doc,ge.head,j,G,ne.options.rtlMoveVisually):j<0?ge.from():ge.to()},Ee)}),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=St(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 Ue=X(this.doc,j),mt=0;mt<G;++mt){var Dt=zn(this,Ue,"div");if(Re==null?Re=Dt.left:Dt.left=Re,Ue=Ct(this,Dt,we,ne),Ue.hitSide)break}return Ue},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(mt){if(Re)return j<0?mt.from():mt.to();var Dt=zn(ne,mt.head,"div");mt.goalColumn!=null&&(Dt.left=mt.goalColumn),we.push(Dt.left);var Zt=Ct(ne,Dt,j,G);return G=="page"&&mt==ge.sel.primary()&&co(ne,wr(ne,Zt,"div").top-Dt.top),Zt},Ee),we.length)for(var Ue=0;Ue<ge.sel.ranges.length;Ue++)ge.sel.ranges[Ue].goalColumn=we[Ue]}),findWordAt:function(j){var G=this.doc,ne=un(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 Ue=ne.charAt(ge),mt=J(Ue,Re)?function(Dt){return J(Dt,Re)}:/\s/.test(Ue)?function(Dt){return/\s/.test(Dt)}:function(Dt){return!/\s/.test(Dt)&&!J(Dt)};ge>0&&mt(ne.charAt(ge-1));)--ge;for(;we<ne.length&&mt(ne.charAt(we));)++we}return new Da(en(j.line,ge),en(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"),vt(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-bt(this)-this.display.barHeight,width:j.scrollWidth-bt(this)-this.display.barWidth,clientHeight:Pe(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:en(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&&Cn(this);var we=this.display.viewFrom;this.doc.iter(we,this.display.viewTo,function(Re){if(Re.widgets){for(var Ue=0;Ue<Re.widgets.length;Ue++)if(Re.widgets[Ue].noHScroll){Na(ne,we,"widget");break}}++we}),this.curOp.forceUpdate=!0,vt(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;La(this),this.curOp.forceUpdate=!0,Nr(this),Yi(this,this.doc.scrollLeft,this.doc.scrollTop),lo(this.display),(j==null||Math.abs(j-br(this.display))>.5||this.options.lineWrapping)&&_a(this),vt(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),Nr(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}},et(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 St(t,p,B,j,G){var ne=p,ge=B,we=un(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function Ue(){var Lr=p.line+Re;return Lr<t.first||Lr>=t.first+t.size?!1:(p=new en(Lr,p.ch,p.sticky),we=un(t,Lr))}function mt(Lr){var Er;if(j=="codepoint"){var Gr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Gr)?Er=null:Er=new en(p.line,Math.max(0,Math.min(we.text.length,p.ch+B*(Gr>=55296&&Gr<56320?2:1))),-B)}else G?Er=Fs(t.cm,we,p,B):Er=js(we,p,B);if(Er==null)if(!Lr&&Ue())p=Bs(G,t.cm,we,p.line,Re);else return!1;else p=Er;return!0}if(j=="char"||j=="codepoint")mt();else if(j=="column")mt(!0);else if(j=="word"||j=="group")for(var Dt=null,Zt=j=="group",Gt=t.cm&&t.cm.getHelper(p,"wordChars"),On=!0;!(B<0&&!mt(!On));On=!1){var Wn=we.text.charAt(p.ch)||`
|
|
|
`,qn=J(Wn,Gt)?"w":Zt&&Wn==`
|
|
|
`?"n":!Zt||/\s/.test(Wn)?null:"p";if(Zt&&!On&&!qn&&(qn="s"),Dt&&Dt!=qn){B<0&&(B=1,mt(),p.sticky="after");break}if(qn&&(Dt=qn),B>0&&!mt(!On))break}var yr=bs(t,p,ne,ge,!0);return Zr(ne,yr)&&(yr.hitSide=!0),yr}function Ct(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*br(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 Ue;!(Ue=Kr(t,ne,ge),!Ue.outside);){if(B<0?ge<=0:ge>=G.height){Ue.hitSide=!0;break}ge+=B*5}return Ue}var kt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new te,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kt.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}ke(G,"paste",function(we){if(!ne(we)||Rt(j,we)||Ne(we,j))return;g<=11&&setTimeout(Wa(j,function(){return p.updateFromDOM()}),20)}),ke(G,"compositionstart",function(we){p.composing={data:we.data,done:!1}}),ke(G,"compositionupdate",function(we){p.composing||(p.composing={data:we.data,done:!1})}),ke(G,"compositionend",function(we){p.composing&&(we.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),ke(G,"touchstart",function(){return B.forceCompositionEnd()}),ke(G,"input",function(){p.composing||p.readFromDOMSoon()});function ge(we){if(!ne(we)||Rt(j,we))return;if(j.somethingSelected())be({lineWise:!1,text:j.getSelections()}),we.type=="cut"&&j.replaceSelection("",null,"cut");else if(j.options.lineWiseCopyCut){var Re=He(j);be({lineWise:!0,text:Re.text}),we.type=="cut"&&j.operation(function(){j.setSelections(Re.ranges,0,Oe),j.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var Ue=ie.text.join(`
|
|
|
`);if(we.clipboardData.setData("Text",Ue),we.clipboardData.getData("Text")==Ue){we.preventDefault();return}}var mt=jt(),Dt=mt.firstChild;j.display.lineSpace.insertBefore(mt,j.display.lineSpace.firstChild),Dt.value=ie.text.join(`
|
|
|
`);var Zt=document.activeElement;W(Dt),setTimeout(function(){j.display.lineSpace.removeChild(mt),Zt.focus(),Zt==G&&B.showPrimarySelection()},50)}ke(G,"copy",ge),ke(G,"cut",ge)},kt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var t=bi(this.cm,!1);return t.focus=document.activeElement==this.div,t},kt.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.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=Wr(p,t.anchorNode,t.anchorOffset),ge=Wr(p,t.focusNode,t.focusOffset);if(ne&&!ne.bad&&ge&&!ge.bad&&Nn(Dr(ne,ge),j)==0&&Nn(Ur(ne,ge),G)==0)return;var we=p.display.view,Re=j.line>=p.display.viewFrom&&pn(p,j)||{node:we[0].measure.map[2],offset:0},Ue=G.line<p.display.viewTo&&pn(p,G);if(!Ue){var mt=we[we.length-1].measure,Dt=mt.maps?mt.maps[mt.maps.length-1]:mt.map;Ue={node:Dt[Dt.length-1],offset:Dt[Dt.length-2]-Dt[Dt.length-3]}}if(!Re||!Ue){t.removeAllRanges();return}var Zt=t.rangeCount&&t.getRangeAt(0),Gt;try{Gt=I(Re.node,Re.offset,Ue.offset,Ue.node)}catch(On){}Gt&&(!T&&p.state.focused?(t.collapse(Re.node,Re.offset),Gt.collapsed||(t.removeAllRanges(),t.addRange(Gt))):(t.removeAllRanges(),t.addRange(Gt)),Zt&&t.anchorNode==null?t.addRange(Zt):T&&this.startGracePeriod()),this.rememberSelection()},kt.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)},kt.prototype.showMultipleSelections=function(t){v(this.cm.display.cursorDiv,t.cursors),v(this.cm.display.selectionDiv,t.selection)},kt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},kt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var p=t.getRangeAt(0).commonAncestorContainer;return N(this.div,p)},kt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},kt.prototype.blur=function(){this.div.blur()},kt.prototype.getField=function(){return this.div},kt.prototype.supportsTouch=function(){return!0},kt.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)},kt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},kt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),p=this.cm;if(h&&r&&this.cm.display.gutterSpecs.length&&ur(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=Wr(p,t.anchorNode,t.anchorOffset),j=Wr(p,t.focusNode,t.focusOffset);B&&j&&fi(p,function(){gi(p.doc,xr(B,j),Oe),(B.bad||j.bad)&&(p.curOp.selectionChanged=!0)})},kt.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=en(j.line-1,un(t.doc,j.line-1).length)),G.ch==un(t.doc,G.line).text.length&&G.line<t.lastLine()&&(G=en(G.line+1,0)),j.line<p.viewFrom||G.line>p.viewTo-1)return!1;var ne,ge,we;j.line==p.viewFrom||(ne=ha(t,j.line))==0?(ge=tr(p.view[0].line),we=p.view[0].node):(ge=tr(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ha(t,G.line),Ue,mt;if(Re==p.view.length-1?(Ue=p.viewTo-1,mt=p.lineDiv.lastChild):(Ue=tr(p.view[Re+1].line)-1,mt=p.view[Re+1].node.previousSibling),!we)return!1;for(var Dt=t.doc.splitLines(Ir(t,we,mt,ge,Ue)),Zt=Jn(t.doc,en(ge,0),en(Ue,un(t.doc,Ue).text.length));Dt.length>1&&Zt.length>1;)if($(Dt)==$(Zt))Dt.pop(),Zt.pop(),Ue--;else if(Dt[0]==Zt[0])Dt.shift(),Zt.shift(),ge++;else break;for(var Gt=0,On=0,Wn=Dt[0],qn=Zt[0],yr=Math.min(Wn.length,qn.length);Gt<yr&&Wn.charCodeAt(Gt)==qn.charCodeAt(Gt);)++Gt;for(var Lr=$(Dt),Er=$(Zt),Gr=Math.min(Lr.length-(Dt.length==1?Gt:0),Er.length-(Zt.length==1?Gt:0));On<Gr&&Lr.charCodeAt(Lr.length-On-1)==Er.charCodeAt(Er.length-On-1);)++On;if(Dt.length==1&&Zt.length==1&&ge==j.line)for(;Gt&&Gt>j.ch&&Lr.charCodeAt(Lr.length-On-1)==Er.charCodeAt(Er.length-On-1);)Gt--,On++;Dt[Dt.length-1]=Lr.slice(0,Lr.length-On).replace(/^\u200b+/,""),Dt[0]=Dt[0].slice(Gt).replace(/\u200b+$/,"");var aa=en(ge,Gt),ea=en(Ue,Zt.length?$(Zt).length-On:0);if(Dt.length>1||Dt[0]||Nn(aa,ea))return Xo(t.doc,Dt,aa,ea,"+input"),!0},kt.prototype.ensurePolled=function(){this.forceCompositionEnd()},kt.prototype.reset=function(){this.forceCompositionEnd()},kt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},kt.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)},kt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return La(t.cm)})},kt.prototype.setUneditable=function(t){t.contentEditable="false"},kt.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Wa(this.cm,Le)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},kt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},kt.prototype.onContextMenu=function(){},kt.prototype.resetPosition=function(){},kt.prototype.needsContentAttribute=!0;function pn(t,p){var B=ht(t,p.line);if(!B||B.hidden)return null;var j=un(t.doc,p.line),G=Ie(B,j,p.line),ne=gt(j,t.doc.direction),ge="left";if(ne){var we=st(ne,p.ch);ge=we%2?"right":"left"}var Re=hn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function ur(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function gr(t,p){return p&&(t.bad=!0),t}function Ir(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function Ue(Gt){return function(On){return On.id==Gt}}function mt(){ge&&(ne+=we,Re&&(ne+=we),ge=Re=!1)}function Dt(Gt){Gt&&(mt(),ne+=Gt)}function Zt(Gt){if(Gt.nodeType==1){var On=Gt.getAttribute("cm-text");if(On){Dt(On);return}var Wn=Gt.getAttribute("cm-marker"),qn;if(Wn){var yr=t.findMarks(en(j,0),en(G+1,0),Ue(+Wn));yr.length&&(qn=yr[0].find(0))&&Dt(Jn(t.doc,qn.from,qn.to).join(we));return}if(Gt.getAttribute("contenteditable")=="false")return;var Lr=/^(pre|div|p|li|table|br)$/i.test(Gt.nodeName);if(!/^br$/i.test(Gt.nodeName)&&Gt.textContent.length==0)return;Lr&&mt();for(var Er=0;Er<Gt.childNodes.length;Er++)Zt(Gt.childNodes[Er]);/^(pre|p)$/i.test(Gt.nodeName)&&(Re=!0),Lr&&(ge=!0)}else Gt.nodeType==3&&Dt(Gt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Zt(p),p==B);)p=p.nextSibling,Re=!1;return ne}function Wr(t,p,B){var j;if(p==t.display.lineDiv){if(j=t.display.lineDiv.childNodes[B],!j)return gr(t.clipPos(en(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 gr(en(tr(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 gr(en(tr(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,Ue=Re.maps;function mt(qn,yr,Lr){for(var Er=-1;Er<(Ue?Ue.length:0);Er++)for(var Gr=Er<0?Re.map:Ue[Er],aa=0;aa<Gr.length;aa+=3){var ea=Gr[aa+2];if(ea==qn||ea==yr){var Ca=tr(Er<0?t.line:t.rest[Er]),Va=Gr[aa]+Lr;return(Lr<0||ea!=qn)&&(Va=Gr[aa+(Lr?1:0)]),en(Ca,Va)}}}var Dt=mt(ge,we,B);if(Dt)return gr(Dt,G);for(var Zt=we.nextSibling,Gt=ge?ge.nodeValue.length-B:0;Zt;Zt=Zt.nextSibling){if(Dt=mt(Zt,Zt.firstChild,0),Dt)return gr(en(Dt.line,Dt.ch-Gt),G);Gt+=Zt.textContent.length}for(var On=we.previousSibling,Wn=B;On;On=On.previousSibling){if(Dt=mt(On,On.firstChild,-1),Dt)return gr(en(Dt.line,Dt.ch+Wn),G);Wn+=On.textContent.length}}var Br=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new te,this.hasSelection=!1,this.composing=null};Br.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"),ke(G,"input",function(){A&&g>=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),ke(G,"paste",function(ge){if(Rt(j,ge)||Ne(ge,j))return;j.state.pasteIncoming=+new Date,B.fastPoll()});function ne(ge){if(Rt(j,ge))return;if(j.somethingSelected())be({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=He(j);be({lineWise:!0,text:we.text}),ge.type=="cut"?j.setSelections(we.ranges,null,Oe):(B.prevInput="",G.value=we.text.join(`
|
|
|
`),W(G))}else return;ge.type=="cut"&&(j.state.cutIncoming=+new Date)}ke(G,"cut",ne),ke(G,"copy",ne),ke(t.scroller,"paste",function(ge){if(Sa(t,ge)||Rt(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)}),ke(t.lineSpace,"selectstart",function(ge){Sa(t,ge)||Me(ge)}),ke(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"})}}),ke(G,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},Br.prototype.createField=function(t){this.wrapper=jt(),this.textarea=this.wrapper.firstChild},Br.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Br.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},Br.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")},Br.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),A&&g>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",A&&g>=9&&(this.hasSelection=null))},Br.prototype.getField=function(){return this.textarea},Br.prototype.supportsTouch=function(){return!1},Br.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||V()!=this.textarea))try{this.textarea.focus()}catch(t){}},Br.prototype.blur=function(){this.textarea.blur()},Br.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Br.prototype.receivedFocus=function(){this.slowPoll()},Br.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()})},Br.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)},Br.prototype.poll=function(){var t=this,p=this.cm,B=this.textarea,j=this.prevInput;if(this.contextMenuPending||!p.state.focused||rt(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(A&&g>=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(){Le(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},Br.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Br.prototype.onKeyPress=function(){A&&g>=9&&(this.hasSelection=null),this.fastPoll()},Br.prototype.onContextMenu=function(t){var p=this,B=p.cm,j=B.display,G=p.textarea;p.contextMenuPending&&p.contextMenuPending();var ne=Ta(B,t),ge=j.scroller.scrollTop;if(!ne||l)return;var we=B.options.resetSelectionOnContextMenu;we&&B.doc.sel.contains(ne)==-1&&Wa(B,gi)(B.doc,xr(ne),Oe);var Re=G.style.cssText,Ue=p.wrapper.style.cssText,mt=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",G.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(t.clientY-mt.top-5)+"px; left: "+(t.clientX-mt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(A?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Dt;e&&(Dt=window.scrollY),j.input.focus(),e&&window.scrollTo(null,Dt),j.input.reset(),B.somethingSelected()||(G.value=p.prevInput=" "),p.contextMenuPending=Gt,j.selForContextMenu=B.doc.sel,clearTimeout(j.detectingSelectAll);function Zt(){if(G.selectionStart!=null){var Wn=B.somethingSelected(),qn="\u200B"+(Wn?G.value:"");G.value="\u21DA",G.value=qn,p.prevInput=Wn?"":"\u200B",G.selectionStart=1,G.selectionEnd=qn.length,j.selForContextMenu=B.doc.sel}}function Gt(){if(p.contextMenuPending!=Gt)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=Ue,G.style.cssText=Re,A&&g<9&&j.scrollbars.setScrollTop(j.scroller.scrollTop=ge),G.selectionStart!=null){(!A||A&&g<9)&&Zt();var Wn=0,qn=function(){j.selForContextMenu==B.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&p.prevInput=="\u200B"?Wa(B,ol)(B):Wn++<10?j.detectingSelectAll=setTimeout(qn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(qn,200)}}if(A&&g>=9&&Zt(),P){Ke(t);var On=function(){Bt(window,"mouseup",On),setTimeout(Gt,20)};ke(window,"mouseup",On)}else setTimeout(Gt,50)},Br.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Br.prototype.setUneditable=function(){},Br.prototype.needsContentAttribute=!1;function Ma(t,p){if(p=p?L(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&&(ke(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&&(Bt(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 Aa(t){t.off=Bt,t.on=ke,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=je,t.countColumn=K,t.findColumn=ye,t.isWordChar=ee,t.Pass=Ce,t.signal=vt,t.Line=fn,t.changeEnd=Jr,t.scrollbarModel=xo,t.Pos=en,t.cmpPos=Nn,t.modes=Tt,t.mimeModes=yt,t.resolveMode=tt,t.getMode=Ut,t.modeExtensions=Pt,t.extendMode=an,t.copyState=nn,t.startState=Tn,t.innerMode=rn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=sn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Me,t.e_stopPropagation=Be,t.e_stop=Ke,t.addClass=H,t.contains=N,t.rmClass=x,t.keyNames=Ro}eu(Ya),Wt(Ya);var Ga="iter insert remove copy getEditor constructor".split(" ");for(var si in Ti.prototype)Ti.prototype.hasOwnProperty(si)&&fe(Ga,si)<0&&(Ya.prototype[si]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ti.prototype[si]));return et(Ti),Ya.inputStyles={textarea:Br,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Ot.apply(this,arguments)},Ya.defineMIME=Lt,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=Ma,Aa(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"),m=o("PpiC"),T=o("q1tI"),b=o.n(T),y=o("EkPF"),C=o.n(y),A=o("miYZ"),g=o("tsqr"),e=o("2qtc"),f=o("kLXV"),r=o("9og8"),l=o("WmNS"),n=o.n(l),i=o("auZk"),a=o.n(i),c=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),u=o("ErOA"),S=o("Ty5D"),E=o("9kvl"),_=function(Xt){var fn,Dn,Qt=Xt.globalSetting,Sn=Xt.loading,_n=Xt.dispatch,In=Xt.practiceSetting,Bn=Xt.shixunsDetail,or=Object(m.a)(Xt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),$n=Object(S.h)(),Or=Object(T.useRef)(""),Pr=Object(S.i)(),Zn=In.title,Tr=In.base_info_warning,vr=In.challenges_warning,Hr=In.service_warning,Mr=In.repository_warning,qr=In.mirror_warning;Object(T.useEffect)(function(){var cr;Or.current=(cr=$n.pathname.split("/"))===null||cr===void 0?void 0:cr[2],_n({type:"practiceSetting/setParams",payload:{id:Or.current}}),_n({type:"practiceSetting/getCommonData",payload:{id:Or.current}})},[$n.pathname]),Object(T.useEffect)(function(){return Object(c.X)(Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(c.X)()}});var rr=function(){var cr=Object(r.a)(n.a.mark(function sr(){return n.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Kt();case 2:E.d.push("/shixuns/".concat(Or.current,"/challenges"));case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),Kt=function(){return new Promise(function(sr,Qr){var lr;In!=null&&(lr=In.sideBar)!==null&&lr!==void 0&&lr.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(){_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),sr()},onCancel:function(){Qr()}}):sr()})},Jt=function(sr){var Qr;if(sr===(In==null?void 0:In.sideBar.tabsActive))return;var lr=function(){E.d.push("/shixuns/".concat(Or.current,"/edit?tabId=").concat(sr)),_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:sr,selectPath:"",confirmLeave:!1}})};In!=null&&(Qr=In.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(){lr()}}):lr()},Yt=function cr(sr){var Qr;sr=(Qr=sr)!==null&&Qr!==void 0&&Qr.includes(".json")?sr:"".concat(sr,".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 lr=Object(r.a)(n.a.mark(function Vr(){var _r,Cr;return n.a.wrap(function(Xr){for(;;)switch(Xr.prev=Xr.next){case 0:return Xr.next=2,Object(u.a)("/api"+sr,{method:"get"});case 2:if(_r=Xr.sent,_r){Xr.next=5;break}return Xr.abrupt("return");case 5:return g.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Xr.next=8,Object(s.E)({id:_r.shixun_identifier});case 8:if(Cr=Xr.sent,!(Cr!=null&&Cr.game_identifier)){Xr.next=12;break}return Object(c.S)("/tasks/".concat(Cr.game_identifier)),Xr.abrupt("return");case 12:(Cr==null?void 0:Cr.status)===2?cr(Cr==null?void 0:Cr.message):(Cr==null?void 0:Cr.status)===3&&Vn(Cr==null?void 0:Cr.message);case 13:case"end":return Xr.stop()}},Vr)}));function la(){return lr.apply(this,arguments)}return la}()})},Vn=function(sr){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",sr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},er=function(){var cr=Object(r.a)(n.a.mark(function sr(Qr,lr){var la,Vr,_r;return n.a.wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:return Fr.next=2,Kt();case 2:if(Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((la=Bn.detail)!==null&&la!==void 0&&la.is_jupyter||(Vr=Bn.detail)!==null&&Vr!==void 0&&Vr.is_jupyter_lab)){Fr.next=6;break}return _n({type:"shixunsDetail/execJupyter",payload:{id:Or.current}}).then(function(Xr){Xr!=null&&Xr.identifier&&(E.d===null||E.d===void 0||E.d.push("/tasks/".concat(Xr.identifier,"/jupyter")))}),Fr.abrupt("return");case 6:if(_n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!lr){Fr.next=13;break}return Fr.next=10,Object(s.D)({id:Qr});case 10:Fr.t0=Fr.sent,Fr.next=16;break;case 13:return Fr.next=15,Object(s.E)({id:Qr});case 15:Fr.t0=Fr.sent;case 16:if(_r=Fr.t0,_n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(_r!=null&&_r.game_identifier||_r!=null&&_r.identifier)){Fr.next=21;break}return Object(c.S)(lr?"/tasks/".concat(_r==null?void 0:_r.identifier,"/jupyter"):"/tasks/".concat(_r.game_identifier)),Fr.abrupt("return");case 21:(_r==null?void 0:_r.status)===-3?Object(c.q)():(_r==null?void 0:_r.status)===2?Yt(_r==null?void 0:_r.message):(_r==null?void 0:_r.status)===3&&Vn(_r==null?void 0:_r.message);case 22:case"end":return Fr.stop()}},sr)}));return function(Qr,lr){return cr.apply(this,arguments)}}(),Ln=function(){var cr=Object(r.a)(n.a.mark(function sr(){return n.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Kt();case 2:_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),ir=function(sr){var Qr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===sr?"#0152d9":"transparent"};return Qr};return b.a.createElement("div",{className:a.a.header},b.a.createElement("aside",{className:a.a.title},b.a.createElement("i",{onClick:rr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:a.a.edit},Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:Ln,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:a.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:ir("information"),className:a.a.clickWarp,onClick:function(){return Jt("information")}},Tr?b.a.createElement("span",{className:a.a.num},"1"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:a.a.subject},"\u57FA\u672C\u4FE1\u606F")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:ir("warehouse"),className:a.a.clickWarp,onClick:function(){return Jt("warehouse")}},Mr?b.a.createElement("span",{className:a.a.num},"2"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:a.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Bn==null?void 0:Bn.detail)&&!(Bn!=null&&(fn=Bn.detail)!==null&&fn!==void 0&&fn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:ir("level"),className:a.a.clickWarp,onClick:function(){return Jt("level")}},vr?b.a.createElement("span",{className:a.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:a.a.subject},"\u4EFB\u52A1\u5173\u5361")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Bn==null?void 0:Bn.detail)&&(Bn==null||((Dn=Bn.detail)===null||Dn===void 0)?void 0:Dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:ir("service"),className:a.a.clickWarp,onClick:function(){return Jt("service")}},Hr?b.a.createElement("span",{className:a.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:a.a.subject},"\u670D\u52A1")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:ir("environment"),className:a.a.clickWarp,onClick:function(){return Jt("environment")}},qr?b.a.createElement("span",{className:a.a.num},"4"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:a.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:a.a.btns},b.a.createElement("div",{className:a.a.simulate,onClick:function(){return er(Or.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(E.a)(function(wn){var Xt=wn.loading,fn=wn.globalSetting,Dn=wn.practiceSetting,Qt=wn.shixunsDetail;return{globalSetting:fn,loading:Xt,practiceSetting:Dn,shixunsDetail:Qt}})(_),R=o("sRBo"),x=o("kaz8"),w=o("14J3"),v=o("BMrR"),O=o("jCWc"),U=o("kPKH"),I=o("DZo9"),N=o("8z0m"),V=o("6UJt"),H=o("DFOY"),D=o("5NDa"),W=o("5rEg"),F=o("+L6B"),L=o("2/Rp"),K=o("k1fw"),te=o("y8nQ"),fe=o("Vl3Y"),de=o("tJVT"),Ce=o("h/E3"),Oe=o.n(Ce),ce=o("Ot1p"),Ee=o("oBTY"),ye=o("+Xk9"),ue=o.n(ye),le=o("FTkQ"),$=o.n(le),me=function(Xt){var fn=Xt.InputRight,Dn=Xt.value,Qt=Dn===void 0?[]:Dn,Sn=Xt.onChange,_n=Object(m.a)(Xt,["InputRight","value","onChange"]),In=Object(T.useState)(),Bn=Object(de.a)(In,2),or=Bn[0],$n=Bn[1],Or=function(Tr){var vr=Qt.filter(function(Hr,Mr){return Mr!==Tr});Sn(vr)},Pr=function(Tr){if(Tr.preventDefault(),!or)return;if(Qt.findIndex(function(vr){return vr.name===or})>-1){g.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}Sn([].concat(Object(Ee.a)(Qt),[{id:null,name:or}])),$n(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(M.a)({bordered:!1,style:{width:600},value:or,onChange:function(Tr){return $n(Tr.target.value)},onPressEnter:Pr,onBlur:Pr},_n)),fn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},Qt==null?void 0:Qt.map(function(Zn,Tr){return b.a.createElement("div",{key:Tr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Zn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Or(Tr)}}))})))},re=me,ae=o("LvDl"),Se=o("m3rI"),oe=o("hW5Z"),ee=o.n(oe),J=function(Xt){var fn=Xt.dispatch,Dn=Xt.onCancel,Qt=Xt.onSave,Sn=Xt.loading,_n=Sn===void 0?!1:Sn;return b.a.createElement("div",{className:ee.a.complete},b.a.createElement("div",{onClick:Dn,className:ee.a.cancel},"\u53D6\u6D88"),b.a.createElement(L.a,{type:"primary",loading:_n,onClick:Qt,className:ee.a.save},"\u4FDD\u5B58"))},Q=Object(E.a)()(J),ve=o("UqFu"),_e=o("z7Xi"),Te=o("jN4g"),Ge=function(Xt){var fn,Dn,Qt=Xt.globalSetting,Sn=Xt.loading,_n=Xt.dispatch,In=Xt.practiceSetting,Bn=Xt.problemset,or=Xt.shixunsDetail,$n=Object(m.a)(Xt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Or=fe.a.useForm(),Pr=Object(de.a)(Or,1),Zn=Pr[0],Tr=Object(T.useState)({}),vr=Object(de.a)(Tr,2),Hr=vr[0],Mr=vr[1],qr=Object(T.useState)(!1),rr=Object(de.a)(qr,2),Kt=rr[0],Jt=rr[1],Yt=Object(T.useState)(!1),Vn=Object(de.a)(Yt,2),er=Vn[0],Ln=Vn[1],ir=Object(T.useState)(""),cr=Object(de.a)(ir,2),sr=cr[0],Qr=cr[1],lr=Object(T.useState)(""),la=Object(de.a)(lr,2),Vr=la[0],_r=la[1],Cr=Object(T.useRef)({}),Fr=Object(T.useRef)(""),Xr=Object(T.useRef)(null),Sa=Object(T.useRef)(Object(ae.throttle)(function(){return Pe()},2e3,{leading:!0,trailing:!1})).current,va=In.id;Object(T.useEffect)(function(){if(!va)return;ct()},[va]),Object(T.useEffect)(function(){return JSON.stringify(Hr)!=="{}"&&Ye(),function(){clearTimeout(Xr.current)}},[Hr,sr,Vr]);var Ye=function(){clearTimeout(Xr.current),Xr.current=setTimeout(function(){!Object(ae.isEqual)(Hr,Cr.current)||sr!==Fr.current||Vr!==Fr.current?_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},ct=function(){var dn=Object(r.a)(n.a.mark(function cn(){var Hn,Cn,Nr,Ar,Yr,jr,ta,Gn,wr;return n.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return _n({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),xn.next=3,Object(u.a)("/api/shixuns/".concat(va,"/edit_base_info.json"),{method:"get"});case 3:Hn=xn.sent,Hn.status===0&&(Gn=Object(K.a)(Object(K.a)({},Hn.data),{},{description:Object(ve.a)(Hn.data.description)}),wr={description:Gn.description,shixun_tags:Gn.shixun_tags,name:Gn.name,course:(Gn==null||((Cn=Gn.disciplines)===null||Cn===void 0)?void 0:Cn.length)>0?[Gn==null||((Nr=Gn.disciplines)===null||Nr===void 0||((Ar=Nr[0])===null||Ar===void 0))?void 0:Ar.id,Gn==null||((Yr=Gn.disciplines)===null||Yr===void 0||((jr=Yr[0])===null||jr===void 0||((ta=jr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:Hn.data.jupyter_show_description},Zn.setFieldsValue(wr),Cr.current=Object(K.a)({},wr),Fr.current=Gn.attachment_id||"",Mr(Object(K.a)({},wr)),Qr(Gn.attachment_id||""),_r(Gn.cover_image_id||""));case 5:case"end":return xn.stop()}},cn)}));return function(){return dn.apply(this,arguments)}}(),bt=function(cn,Hn){Mr(Object(K.a)({},Hn))},nt=function(){Ie()},Pe=function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Zn.submit()},ze=function(cn){var Hn,Cn=cn.name,Nr=cn.description,Ar=cn.shixun_tags,Yr=cn.course,jr=cn.jupyter_show_description,ta=jr===void 0?!1:jr,Gn={name:Cn,description:Nr,shixun_tags:Ar,attachment_id:sr,cover_image_id:Vr,sub_discipline_ids:Yr[1]};(Hn=or.detail)!==null&&Hn!==void 0&&Hn.is_jupyter_lab&&(Gn=Object(K.a)(Object(K.a)({},Gn),{},{jupyter_show_description:ta}));var wr=Object(u.a)("/api/shixuns/".concat(va,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},Gn)}});wr.then(function(zn){zn.status===0&&(g.b.success("\u4FDD\u5B58\u6210\u529F"),_n({type:"practiceSetting/getCommonData",payload:{id:va}}),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Cr.current={description:Hr.description,shixun_tags:Hr.shixun_tags,name:Hr.name},Fr.current=sr)})},Ie=function(){var cn,Hn=function(){E.d.push("/shixuns/".concat(va,"/challenges")),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(cn=In.sideBar)!==null&&cn!==void 0&&cn.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(){Hn()}}):Hn()};function Ze(dn){var cn=dn.type==="image/jpeg"||dn.type==="image/png";return cn||g.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),cn}var Qe=b.a.createElement(L.a,{loading:Kt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),ht=b.a.createElement(L.a,{loading:er,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function it(dn,cn){var Hn=new FileReader;Hn.addEventListener("load",function(){return cn(Hn.result)}),Hn.readAsDataURL(dn)}var It=function(cn){if(cn.file.status==="uploading"){Jt(!0);return}if(cn.file.status==="done"){var Hn,Cn;Jt(!1),Qr(cn==null||((Hn=cn.file)===null||Hn===void 0||((Cn=Hn.response)===null||Cn===void 0))?void 0:Cn.id)}},zt=function(){return b.a.createElement("div",{className:Oe.a.img},b.a.createElement("img",{src:Se.a.API_SERVER+"/api/attachments/"+sr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Te.a,{onClick:function(){return Qr("")},style:{fontSize:"16px",color:"red"}})))},hn=function(cn){if(cn.file.status==="uploading"){Ln(!0);return}if(cn.file.status==="done"){var Hn,Cn;Ln(!1),_r(cn==null||((Hn=cn.file)===null||Hn===void 0||((Cn=Hn.response)===null||Cn===void 0))?void 0:Cn.id)}},ln=function(){return b.a.createElement("div",{className:Oe.a.img},b.a.createElement("img",{src:Se.a.API_SERVER+"/api/attachments/"+Vr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Te.a,{onClick:function(){return _r("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:Oe.a.information},b.a.createElement("section",{className:Oe.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:Oe.a.formWrap}," ",b.a.createElement(fe.a,{form:Zn,scrollToFirstError:!0,layout:"vertical",onValuesChange:bt,onFinish:ze},b.a.createElement(fe.a.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.a.createElement(W.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((fn=Hr.name)===null||fn===void 0?void 0:fn.length)||0,"/60")})),b.a.createElement(fe.a.Item,{className:"customAddTags",name:"shixun_tags",label:b.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",b.a.createElement("span",{className:"pl10 font14 c-light-black"},"\u5B66\u5458\u901A\u8FC7\u6240\u6709\u4EFB\u52A1\u5173\u5361\uFF0C\u5C06\u83B7\u5F97\u6280\u80FD\u6807\u7B7E")),rules:[{required:!0,message:"\u8BF7\u9009\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},b.a.createElement(re,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),b.a.createElement(fe.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Bn.courseOptions})),b.a.createElement(v.a,null,b.a.createElement(U.a,null,b.a.createElement(fe.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},sr?zt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Se.a.API_SERVER,"/api/attachments.json"),beforeUpload:Ze,onChange:It},Qe))),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(fe.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Vr?ln():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Se.a.API_SERVER,"/api/attachments.json"),beforeUpload:Ze,onChange:hn},ht))),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(fe.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:Hr.description||"",watch:!0})),((Dn=or.detail)===null||Dn===void 0?void 0:Dn.is_jupyter_lab)&&b.a.createElement(fe.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(Q,{onSave:Sa,onCancel:nt,loading:Kt||er}))},qe=Object(E.a)(function(wn){var Xt=wn.problemset,fn=wn.loading,Dn=wn.globalSetting,Qt=wn.practiceSetting,Sn=wn.shixunsDetail;return{globalSetting:Dn,loading:fn,practiceSetting:Qt,problemset:Xt,shixunsDetail:Sn}})(Ge),ut=o("ch0t"),st=o("R9oj"),ft=o("ECub"),gt=o("T2oS"),Ve=o("W9HT"),ke=o("bKvZ"),dt=o.n(ke),Bt=o("KeGQ"),vt=o.n(Bt),Rt=o("NLgs"),ot=o("ngQI"),Je=function(Xt){var fn=Xt.globalSetting,Dn=Xt.dispatch,Qt=Xt.practiceSetting,Sn=Object(m.a)(Xt,["globalSetting","dispatch","practiceSetting"]),_n=Object(T.useState)(!1),In=Object(de.a)(_n,2),Bn=In[0],or=In[1],$n=Object(T.useState)({}),Or=Object(de.a)($n,2),Pr=Or[0],Zn=Or[1],Tr=Object(T.useState)(!0),vr=Object(de.a)(Tr,2),Hr=vr[0],Mr=vr[1],qr=Object(T.useState)(!1),rr=Object(de.a)(qr,2),Kt=rr[0],Jt=rr[1],Yt=Object(T.useState)(null),Vn=Object(de.a)(Yt,2),er=Vn[0],Ln=Vn[1],ir=Object(T.useRef)(!1),cr=Qt.id,sr=Qt.updateIndex,Qr=Qt.is_published,lr=Qt.newQuestion,la=Pr.challenge_list,Vr=la===void 0?[]:la;Object(T.useEffect)(function(){return cr?(Cr(),function(){Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[cr,sr]),Object(T.useEffect)(function(){_r()},[Sn.location]);var _r=function(){var Ze,Qe=Sn.location,ht=Qe.pathname.split("/");(ht.includes("newquestion")||ht.includes("new")||Qe!=null&&(Ze=Qe.query)!==null&&Ze!==void 0&&Ze.tabId)&&(ir.current=!0)},Cr=function(){var Ie=Object(r.a)(n.a.mark(function Ze(){var Qe,ht,it,It,zt,hn,ln;return n.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return Mr(!0),cn.next=3,Object(s.J)({id:cr});case 3:it=cn.sent,it!=null&&(Qe=it.challenge_list)!==null&&Qe!==void 0&&Qe.length&&(It=Sn.location.pathname.split("/"),zt=it.challenge_list.find(function(Hn){return String(Hn.challenge_id)===It[4]}),It.includes("newquestion")||It.includes("new")?(ln=it.challenge_list[((hn=it.challenge_list)===null||hn===void 0?void 0:hn.length)-1],Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:It.includes("new")?0:1,name:""}}}),Ln(void 0),Ye(ln)):It[4]&&zt?Fr(zt,!1):Fr(it.challenge_list[0])),it!=null&&(ht=it.challenge_list)!==null&&ht!==void 0&&ht.length||Ln(null),Zn(it),Mr(!1);case 8:case"end":return cn.stop()}},Ze)}));return function(){return Ie.apply(this,arguments)}}(),Fr=function(Ze){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Ln(Ze.challenge_id),Ye(Ze),Qe){var ht="/shixuns/".concat(cr,"/edit/").concat(Ze.challenge_id,"/").concat(Ze.st===1?"editquestion":"editcheckpoint");E.d.push(ht)}},Xr=function(Ze,Qe){Qe.stopPropagation();var ht=Ze.challenge_id,it=function(){var It=Object(r.a)(n.a.mark(function zt(){var hn,ln,dn,cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.v)({id:cr,challengesId:ht});case 2:if(hn=Cn.sent,!(hn.status===1)){Cn.next=12;break}return Cn.next=6,Object(s.J)({id:cr});case 6:if(cn=Cn.sent,Zn(cn),!(ht===er&&(ln=cn.challenge_list)!==null&&ln!==void 0&&ln.length)){Cn.next=11;break}return Fr(cn.challenge_list[0]),Cn.abrupt("return");case 11:(dn=cn.challenge_list)!==null&&dn!==void 0&&dn.length||(Ln(null),ir.current=!0,Ye({}),E.d.push("/shixuns/".concat(cr,"/edit?tabId=level")));case 12:case"end":return Cn.stop()}},zt)}));return function(){return It.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:it})},Sa=function(Ze,Qe,ht){var it=Array.from(Ze),It=it.splice(Qe,1),zt=Object(de.a)(It,1),hn=zt[0];return it.splice(ht,0,hn),it},va=function(Ze,Qe){if(!Ze.destination)return;var ht=Sa(Qe,Ze.source.index,Ze.destination.index);Zn(Object(K.a)(Object(K.a)({},Pr),{},{challenge_list:ht}));var it=ht.map(function(It){return It.challenge_id});Object(s.Kb)({id:cr,ids:it}).then(function(It){It.status!==0&&Zn(Object(K.a)(Object(K.a)({},Pr),{},{challenge_list:Qe}))})},Ye=function(Ze){Dn({type:"practiceSetting/setParams",payload:{selectQuestionParams:Ze}})},ct=function(){var Ie=Object(r.a)(n.a.mark(function Ze(Qe,ht){var it;return n.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(!(Qe===er)){zt.next=2;break}return zt.abrupt("return");case 2:return zt.next=4,bt();case 4:Ln(Qe),Ye(ht),Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),it="/shixuns/".concat(cr,"/edit/").concat(Qe,"/").concat(ht.st===1?"editquestion":"editcheckpoint"),E.d.push(it);case 9:case"end":return zt.stop()}},Ze)}));return function(Qe,ht){return Ie.apply(this,arguments)}}(),bt=function(){return new Promise(function(Ze,Qe){var ht;Qt!=null&&(ht=Qt.sideBar)!==null&&ht!==void 0&&ht.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(){Dn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Ze()},onCancel:function(){Qe()}}):Ze()})},nt=function(Ze){return b.a.createElement(b.a.Fragment,null,b.a.createElement(ot.a,{onDragEnd:function(ht){return va(ht,Ze)}},b.a.createElement(ot.c,{droppableId:"droppable"},function(Qe,ht){return b.a.createElement("div",Object(M.a)({ref:Qe.innerRef},Qe.droppableProps,{style:{width:"100%"}}),Ze.map(function(it,It){var zt=it.st,hn=it.name,ln=it.challenge_id;return b.a.createElement(ot.b,{key:ln,draggableId:ln.toString(),index:It,isDragDisabled:Qr},function(dn,cn){return b.a.createElement("div",Object(M.a)({ref:dn.innerRef},dn.draggableProps,dn.dragHandleProps,{className:er===ln?dt.a.listActive:dt.a.list,onClick:function(){return ct(ln,it)}}),b.a.createElement("span",{className:dt.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:dt.a.s2},"\u7B2C",It+1,"\u5173: ",hn),!Qr&&b.a.createElement("span",{className:dt.a.s3,onClick:function(Cn){return Xr(it,Cn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),lr&&b.a.createElement("div",{className:dt.a.listActive},b.a.createElement("span",{className:dt.a.s1},(lr==null?void 0:lr.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:dt.a.s2},"\u7B2C",Ze.length+1,"\u5173: ",lr==null?void 0:lr.name)),!Qr&&b.a.createElement("div",{className:dt.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Pe=function(){var Ie=Object(r.a)(n.a.mark(function Ze(Qe){return n.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,bt();case 2:Qe==="new"?E.d.push("/shixuns/".concat(cr,"/edit/new")):E.d.push("/shixuns/".concat(cr,"/edit/newquestion")),or(!1),Ln(void 0),Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:Qe==="new"?0:1,name:""}}});case 6:case"end":return it.stop()}},Ze)}));return function(Qe){return Ie.apply(this,arguments)}}(),ze=function(){if(Object(Rt.b)(Dn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;or(!Bn)};return b.a.createElement("div",{className:dt.a.level},b.a.createElement("aside",{className:dt.a.left,style:{width:Kt?"0":"25%"}},b.a.createElement("div",{className:dt.a.container},b.a.createElement("div",{className:dt.a.title},"\u4EFB\u52A1\u5173\u5361(",Vr.length,")"),b.a.createElement("div",{className:dt.a.listWrap},Hr?b.a.createElement(Ve.a,{size:"large"}):!!Vr.length||!!lr?nt(Vr):b.a.createElement(ft.a,{image:vt.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Kt&&b.a.createElement("div",{className:dt.a.btns},b.a.createElement("aside",{className:dt.a.btnsWrap},b.a.createElement("div",{style:{transform:Bn?"rotate(45deg)":"rotate(0deg)"},className:dt.a.icon,onClick:ze},"+"),b.a.createElement("div",{className:dt.a.btn,style:{left:Bn?20:-154}},b.a.createElement("div",{className:dt.a.d1,onClick:function(){return Pe("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:dt.a.d2,onClick:function(){return Pe("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Kt?dt.a.elseShrink:dt.a.shrink,onClick:function(){return Jt(!Kt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:dt.a.right,id:"modal-level-question"},er===null&&ir.current?b.a.createElement("div",{className:dt.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):Sn.children))},et=Object(E.a)(function(wn){var Xt=wn.globalSetting,fn=wn.practiceSetting;return{globalSetting:Xt,practiceSetting:fn}})(Je),Me=o("DjyN"),Be=o("NUBc"),Xe=o("cWXX"),Ke=o("/ezw"),$e=o("qVdP"),_t=o("jsC+"),Ft=o("lUTK"),qt=o("BvKs"),bn=o("7Kak"),At=o("9yH6"),Et=o("Qvpy"),je=o.n(Et),rt=function(Xt){var fn=Xt.shixunsDetail,Dn=Xt.globalSetting,Qt=Xt.loading,Sn=Xt.dispatch,_n=Xt.onReloadData,In=Object(m.a)(Xt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Bn=Object(T.useState)(),or=Object(de.a)(Bn,2),$n=or[0],Or=or[1],Pr=Object(T.useState)([]),Zn=Object(de.a)(Pr,2),Tr=Zn[0],vr=Zn[1];Object(T.useEffect)(function(){fn.actionTabs.key==="Collaborators-ChangeManager"&&Hr()},[fn.actionTabs.key]);var Hr=function(){var Kt=Object(r.a)(n.a.mark(function Jt(){var Yt,Vn;return n.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,Sn({type:"shixunsDetail/getChangeManager",payload:{id:(Yt=fn.actionTabs.params)===null||Yt===void 0?void 0:Yt.id}});case 2:Vn=Ln.sent,vr(Vn||[]);case 4:case"end":return Ln.stop()}},Jt)}));return function(){return Kt.apply(this,arguments)}}(),Mr=function(){var Jt;Sn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Jt=fn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}}})},qr=function(){var Kt=Object(r.a)(n.a.mark(function Jt(){var Yt,Vn;return n.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if($n){Ln.next=3;break}return g.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),Ln.abrupt("return");case 3:return Ln.next=5,Sn({type:"shixunsDetail/changeManager",payload:{id:(Yt=fn.actionTabs.params)===null||Yt===void 0?void 0:Yt.id,user_id:$n}});case 5:Vn=Ln.sent,rr(),Vn&&(_n(),g.b.info(Vn.message));case 8:case"end":return Ln.stop()}},Jt)}));return function(){return Kt.apply(this,arguments)}}(),rr=function(){Sn({type:"shixunsDetail/setActionTabs",payload:{}}),Or(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:fn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:Qt.effects["shixunsDetail/changeManager"],onOk:qr,onCancel:rr},b.a.createElement("div",null,b.a.createElement("div",{className:je.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",b.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),b.a.createElement("div",{className:je.a.content},Tr.length?b.a.createElement(At.a.Group,{value:$n,onChange:function(Jt){return Or(Jt.target.value)}},Tr.map(function(Kt,Jt){return b.a.createElement(At.a,{className:je.a.radio,key:Jt,value:Kt.user_id},Kt.name)})):b.a.createElement("div",{className:je.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:je.a.colorBlue,onClick:Mr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},at=Object(E.a)(function(wn){var Xt=wn.shixunsDetail,fn=wn.loading,Dn=wn.globalSetting;return{shixunsDetail:Xt,globalSetting:Dn,loading:fn}})(rt),Ae=o("Znn+"),Fe=o("ZTPi"),Tt=o("ju9d"),yt=o("DDK+"),Ot=Fe.a.TabPane,Lt=function(wn){var Xt=wn.visible,fn=wn.onCancel,Dn=wn.onSelectGroup,Qt=wn.shixunId,Sn=wn.onSelectCollaborator;return b.a.createElement(f.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Xt,width:1100,centered:!0,keyboard:!1,onCancel:fn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Fe.a,{defaultActiveKey:"1"},b.a.createElement(Ot,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(Tt.a,{onCancel:fn,container_type:2,container_id:Qt,onSelect:Sn})),b.a.createElement(Ot,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(yt.a,{onCancel:fn,onSelect:Dn}))))},tt=o("oaGz"),Ut=o.n(tt),Pt=o("8Skl"),an=o("ruvs"),nn=function(Xt){var fn,Dn,Qt,Sn,_n,In,Bn=Xt.shixunsDetail,or=Xt.globalSetting,$n=Xt.loading,Or=Xt.user,Pr=Xt.dispatch,Zn=Object(m.a)(Xt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Tr=Object(T.useRef)(),vr=Object(T.useState)(0),Hr=Object(de.a)(vr,2),Mr=Hr[0],qr=Hr[1],rr=Object(T.useState)([]),Kt=Object(de.a)(rr,2),Jt=Kt[0],Yt=Kt[1],Vn=Object(T.useState)({id:null,page:1}),er=Object(de.a)(Vn,2),Ln=er[0],ir=er[1],cr=(fn=Or.userInfo)===null||fn===void 0||((Dn=fn.shixun)===null||Dn===void 0)?void 0:Dn.editable,sr=((Qt=Or.userInfo)===null||Qt===void 0?void 0:Qt.role)<=2||((Sn=Or.userInfo)===null||Sn===void 0||((_n=Sn.shixun)===null||_n===void 0)?void 0:_n.is_creator);Object(T.useEffect)(function(){Tr.current=Zn.match.params.id,Ln.id=Tr.current,ir(Ln),Qr(Ln)},[]);var Qr=function(){var Ye=Object(r.a)(n.a.mark(function ct(bt){var nt;return n.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,Pr({type:"shixunsDetail/getCollaboratorsData",payload:bt});case 2:nt=ze.sent,nt&&(Yt(nt.members||[]),qr(nt.member_count));case 4:case"end":return ze.stop()}},ct)}));return function(bt){return Ye.apply(this,arguments)}}(),lr=function(){var Ye=Object(r.a)(n.a.mark(function ct(){var bt;return n.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Ln.page=1,ir(Ln),bt=Object(an.b)(),Pe.next=5,Pr({type:"user/getUserInfo",payload:bt});case 5:return Pe.next=7,Qr(Ln);case 7:case"end":return Pe.stop()}},ct)}));return function(){return Ye.apply(this,arguments)}}(),la=function(ct){Ln.page=ct,ir(Ln),Qr(Ln)},Vr=function(ct){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Ut.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var bt=Object(r.a)(n.a.mark(function Pe(){var ze,Ie;return n.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return Qe.next=2,Pr({type:"shixunsDetail/deleteCollaborators",payload:{id:Tr.current,userId:ct}});case 2:if(Ie=Qe.sent,!(((ze=Or.userInfo)===null||ze===void 0?void 0:ze.user_id)===ct)){Qe.next=6;break}return E.d.push("/shixuns"),Qe.abrupt("return");case 6:g.b.info(Ie==null?void 0:Ie.message),Ln.page=1,ir(Ln),Qr(Ln);case 10:case"end":return Qe.stop()}},Pe)}));function nt(){return bt.apply(this,arguments)}return nt}()})},_r=function(){Pr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Tr.current}}})};function Cr(Ye,ct,bt,nt){return Fr.apply(this,arguments)}function Fr(){return Fr=Object(r.a)(n.a.mark(function Ye(ct,bt,nt,Pe){return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Pr({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:ct,user_id:bt,editable:nt?0:1}});case 2:Qr(Ln);case 3:case"end":return Ie.stop()}},Ye)})),Fr.apply(this,arguments)}var Xr=function(){Pr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Tr.current}}})};function Sa(){Pr({type:"shixunsDetail/setActionTabs",payload:{}})}var va={visible:Bn.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Sa,shixunId:Tr.current,onSelectCollaborator:function(){var Ye=Object(r.a)(n.a.mark(function bt(nt){var Pe;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Sa(),Ie.next=3,Pr({type:"shixunsDetail/addCollaborator",payload:{id:Tr.current,user_ids:nt}});case 3:Pe=Ie.sent,Pe&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Ie.stop()}},bt)}));function ct(bt){return Ye.apply(this,arguments)}return ct}(),onSelectGroup:function(){var Ye=Object(r.a)(n.a.mark(function bt(nt){var Pe;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Sa(),Ie.next=3,Pr({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Tr.current,group_id:nt.group_id}});case 3:Pe=Ie.sent,Pe&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Ie.stop()}},bt)}));function ct(bt){return Ye.apply(this,arguments)}return ct}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Ut.a.wrap},b.a.createElement("div",{className:Ut.a.content},((In=Bn.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Ut.a.head},b.a.createElement("span",{className:Ut.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Mr,"\u4EBA\uFF09"),b.a.createElement("div",null,sr&&b.a.createElement(L.a,{type:"primary",ghost:!0,className:Ut.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),cr&&b.a.createElement(L.a,{type:"primary",className:Ut.a.button,style:{marginRight:"40px"},onClick:Xr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Ut.a.list},b.a.createElement(Ke.a,{loading:$n.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Jt.map(function(Ye,ct){var bt,nt,Pe,ze,Ie,Ze,Qe,ht;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Ut.a.itemWrap,key:ct},b.a.createElement("a",{href:(bt=Ye.user)===null||bt===void 0?void 0:bt.user_url,target:"_blank",className:Ut.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Ut.a.img,src:"".concat(Se.a.IMG_SERVER,"/images/").concat((nt=Ye.user)===null||nt===void 0?void 0:nt.image_url)}),((Pe=Ye.user)===null||Pe===void 0?void 0:Pe.shixun_manager)&&b.a.createElement("span",{className:Ut.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Ut.a.itemContent},b.a.createElement("p",{className:Ut.a.nameWrap},b.a.createElement("a",{href:Ye.user.user_url,target:"_blank",className:Ut.a.name},(ze=Ye.user)===null||ze===void 0?void 0:ze.name,Ye.user.user_id===((Ie=Or.userInfo)===null||Ie===void 0?void 0:Ie.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Ut.a.actionGroup},sr?(Ze=Ye.user)!==null&&Ze!==void 0&&Ze.shixun_manager?null:b.a.createElement(_t.a,{overlay:b.a.createElement(qt.a,{selectedKeys:[Ye.editable?"1":"2"],onClick:function(){var It;Cr(Bn.detail.identifier,Ye.user.user_id,Ye.editable,(It=Ye.user)===null||It===void 0?void 0:It.name)}},b.a.createElement(qt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(qt.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,Ye.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(Pt.a,{style:{fontSize:"14px",color:"#888888"}}))):Ye.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((Qe=Ye.user)!==null&&Qe!==void 0&&Qe.shixun_manager)&&cr?b.a.createElement("a",{className:Ut.a.deletetitle,onClick:function(){var It;return Vr((It=Ye.user)===null||It===void 0?void 0:It.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Ut.a.schoolWrap},b.a.createElement("span",{className:Ut.a.school},(ht=Ye.user)===null||ht===void 0?void 0:ht.school_name)))))})))),Mr>10&&b.a.createElement("div",{className:Ut.a.countWrap},b.a.createElement(Be.a,{showQuickJumper:!1,showSizeChanger:!1,total:Mr,onChange:function(ct){return la(ct)},pageSize:10,current:Ln.page}))),b.a.createElement(at,{onReloadData:lr}),b.a.createElement(Lt,va))},rn=Object(E.a)(function(wn){var Xt=wn.shixunsDetail,fn=wn.loading,Dn=wn.globalSetting,Qt=wn.user;return{shixunsDetail:Xt,globalSetting:Dn,user:Qt,loading:fn}})(nn),Tn=o("11/R"),sn=o("Q9mQ"),un=o("diRs"),Jn=o("jrin"),kn=o("OaEy"),Yn=o("2fM7"),tr=o("ZW9T"),pr=o("RCxd"),ar=o("4SAo"),mn=o.n(ar),en=W.a.TextArea,Nn=function(Xt){var fn=Xt.shixunsDetail,Dn=Xt.globalSetting,Qt=Xt.loading,Sn=Xt.dispatch,_n=Xt.onFinish,In=_n===void 0?function(){}:_n,Bn=Object(m.a)(Xt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),or=fe.a.useForm(),$n=Object(de.a)(or,1),Or=$n[0],Pr=function(){var Tr=Object(r.a)(n.a.mark(function vr(Hr){var Mr,qr;return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,Sn({type:"shixunsDetail/getCustomScript",payload:{id:(Mr=fn.actionTabs.params)===null||Mr===void 0?void 0:Mr.id,compile:Hr.execute,excutive:Hr.compile}});case 2:qr=Kt.sent,Zn(),qr&&In(qr==null?void 0:qr.shixun_script);case 5:case"end":return Kt.stop()}},vr)}));return function(Hr){return Tr.apply(this,arguments)}}(),Zn=function(){Sn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:fn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Zn},b.a.createElement(fe.a,{form:Or,scrollToFirstError:!0,layout:"vertical",onFinish:Pr},b.a.createElement(fe.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement(en,{rows:4})),b.a.createElement(fe.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(en,{rows:4})),b.a.createElement("div",{className:mn.a.footerWrap},b.a.createElement(fe.a.Item,null,b.a.createElement(L.a,{className:"mr5",size:"large",onClick:Zn},"\u53D6\u6D88"),b.a.createElement(L.a,{size:"large",type:"primary",htmlType:"submit",loading:Qt.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Zr=Object(E.a)(function(wn){var Xt=wn.shixunsDetail,fn=wn.loading,Dn=wn.globalSetting;return{shixunsDetail:Xt,globalSetting:Dn,loading:fn}})(Nn),zr=o("Lai7"),Ur=o.n(zr),Dr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),se=o("9Bee"),De=o("N3QO"),he=Yn.a.Option,pt=function(Xt){var fn,Dn,Qt=Xt.practiceSetting,Sn=Xt.dispatch,_n=Xt.shixunsDetail,In=Xt.user,Bn=Object(T.useState)(null),or=Object(de.a)(Bn,2),$n=or[0],Or=or[1],Pr=Object(T.useState)([]),Zn=Object(de.a)(Pr,2),Tr=Zn[0],vr=Zn[1],Hr=Object(T.useState)(!0),Mr=Object(de.a)(Hr,2),qr=Mr[0],rr=Mr[1],Kt=Object(T.useState)({}),Jt=Object(de.a)(Kt,2),Yt=Jt[0],Vn=Jt[1],er=Object(T.useState)([]),Ln=Object(de.a)(er,2),ir=Ln[0],cr=Ln[1],sr=Object(T.useState)(),Qr=Object(de.a)(sr,2),lr=Qr[0],la=Qr[1],Vr=Object(T.useState)(),_r=Object(de.a)(Vr,2),Cr=_r[0],Fr=_r[1],Xr=Object(T.useState)([]),Sa=Object(de.a)(Xr,2),va=Sa[0],Ye=Sa[1],ct=Object(T.useState)({}),bt=Object(de.a)(ct,2),nt=bt[0],Pe=bt[1],ze=Object(T.useRef)(null),Ie=Object(T.useRef)(!0),Ze=Object(T.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),Qe=Object(T.useRef)(null),ht=Qt.id,it=Qt.is_published,It=nt.frequence_image,zt=It===void 0?[]:It,hn=nt.environments,ln=hn===void 0?[]:hn,dn=nt.choice_small_type,cn=dn===void 0?[]:dn,Hn=nt.other_image,Cn=Hn===void 0?[]:Hn,Nr=Yt.name,Ar=Yt.description,Yr=Yt.authorization,jr=Yt.small_type,ta=jr===void 0?[]:jr;Object(T.useEffect)(function(){if($n===null)return;zn(),ze.current.scrollTop=0},[$n]),Object(T.useEffect)(function(){if(!ht)return;wr()},[ht]),Object(T.useEffect)(function(){return $n===null?void 0:(Gn(),function(){clearTimeout(Qe.current)})},[$n,Tr,ir,lr,Cr]);var Gn=function(){clearTimeout(Qe.current),Qe.current=setTimeout(function(){!Object(ae.isEqual)(Ze.current.activeId,$n)||!Object(ae.isEqual)(Ze.current.selectId,Tr)||!Object(ae.isEqual)(Ze.current.serviceConfigList,ir)||!Object(ae.isEqual)(Ze.current.evaluateScript,lr)||!Object(ae.isEqual)(Ze.current.evaluationScript,Cr)?Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},wr=function(){var Sr=Object(r.a)(n.a.mark(function br(){var Rr,nr,da,ya;return n.a.wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:return rr(!0),Ta.next=3,Object(u.a)("/api/shixuns/".concat(ht,"/edit_environment_info.json"),{method:"get"});case 3:Rr=Ta.sent,Rr.status===0&&(Pe(Object(K.a)({},Rr.data)),rr(!1),Rr!=null&&(nr=Rr.data)!==null&&nr!==void 0&&nr.id?(Ze.current.activeId=Rr==null||((da=Rr.data)===null||da===void 0)?void 0:da.id,Or(Rr==null||((ya=Rr.data)===null||ya===void 0)?void 0:ya.id)):Or(null));case 5:case"end":return Ta.stop()}},br)}));return function(){return Sr.apply(this,arguments)}}(),zn=function(){var Sr=Object(r.a)(n.a.mark(function br(){var Rr,nr,da,ya,_a;return n.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(u.a)("/api/shixuns/".concat(ht,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:$n}});case 2:_a=ha.sent,Vn(_a.data),Ze.current.selectId=(Rr=_a.data)===null||Rr===void 0?void 0:Rr.choice_small_type,vr((nr=_a.data)===null||nr===void 0?void 0:nr.choice_small_type),Ze.current.serviceConfigList=(da=_a.data)===null||da===void 0?void 0:da.shixun_service_configs,cr((ya=_a.data)===null||ya===void 0?void 0:ya.shixun_service_configs),Ze.current.evaluateScript=_a.data.evaluate_script,la(_a.data.evaluate_script),Ze.current.evaluationScript=_a.data.choice_standard_scripts,Fr(_a.data.choice_standard_scripts),Ye(_a.data.standard_scripts);case 13:case"end":return ha.stop()}},br)}));return function(){return Sr.apply(this,arguments)}}(),xn=function(){var br,Rr=function(){E.d.push("/shixuns/".concat(ht,"/challenges")),Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};Qt!=null&&(br=Qt.sideBar)!==null&&br!==void 0&&br.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(){Rr()}}):Rr()},Fn=function(){var Sr=Object(r.a)(n.a.mark(function br(){var Rr,nr,da,ya=arguments;return n.a.wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:if(Rr=ya.length>0&&ya[0]!==void 0?ya[0]:!1,!Object(Rt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Ta.next=3;break}return Ta.abrupt("return");case 3:return nr={sub_type:Tr,main_type:$n,shixun:{mirror_script_id:Cr},shixun_info:{evaluate_script:lr},shixun_service_configs:ir.map(function(ha){return{mirror_repository_id:ha.mirror_repository_id,cpu_limit:ha.cpu_limit,lower_cpu_limit:ha.lower_cpu_limit,memory_limit:ha.memory_limit,request_limit:ha.request_limit,resource_limit:ha.resource_limit}})},Ta.next=6,Object(u.a)("/api/shixuns/".concat(ht),{method:"put",body:nr});case 6:da=Ta.sent,da.status===0&&(g.b.success("\u7F16\u8F91\u6210\u529F"),Ze.current={activeId:$n,selectId:Tr,serviceConfigList:ir,evaluateScript:lr,evaluationScript:Cr},Sn({type:"practiceSetting/getCommonData",payload:{id:ht}}),Sn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Ta.stop()}},br)}));return function(){return Sr.apply(this,arguments)}}(),Kr=ta.filter(function(Sr){return Tr.includes(Sr.id)}),sa=function(){xn()},hr=function(br,Rr,nr){var da=ir.map(function(ya,_a){return _a===nr?Object(K.a)(Object(K.a)({},ya),{},Object(Jn.a)({},Rr,br)):ya});cr(da)},ra=function(){if(Object(Rt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;Sn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:ht}}})},Ea=function(){var Sr=Object(r.a)(n.a.mark(function br(Rr){var nr;return n.a.wrap(function(ya){for(;;)switch(ya.prev=ya.next){case 0:return ya.next=2,Sn({type:"shixunsDetail/getScriptContent",payload:{id:ht,script_id:Rr}});case 2:nr=ya.sent,nr&&la(nr.content);case 4:case"end":return ya.stop()}},br)}));return function(Rr){return Sr.apply(this,arguments)}}(),ca=function(br){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 Rr=Object(r.a)(n.a.mark(function da(){return n.a.wrap(function(_a){for(;;)switch(_a.prev=_a.next){case 0:return _a.next=2,Ea(br);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 _a.stop()}},da)}));function nr(){return Rr.apply(this,arguments)}return nr}()})},xa=function(br,Rr){var nr=ir[0]?[ir[0]]:[];Rr.forEach(function(da){var ya=ir.find(function(ha){return ha.mirror_repository_id===Number(da.key)});if(ya)nr.push(ya);else{var _a=ta.find(function(ha){return ha.id===Number(da.key)});if(_a.mirror_name){var Ta={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(da.key),name:_a.mirror_name,request_limit:10};nr.push(Ta)}}}),cr(nr),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(Dr.a,{loading:qr,skin:"night",className:X.a.left,dispatch:Sn,value:$n,data:ln,otherData:Cn,tags:zt,onChange:function(br){return Or(br)}}),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",$n===null?"\u2014 \u2014":Nr)),b.a.createElement("div",{className:X.a.content,ref:ze},$n===null&&b.a.createElement(ft.a,{image:Ur.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),$n!==null&&b.a.createElement("div",{className:X.a.des},b.a.createElement("div",{className:X.a.mainBody},b.a.createElement(se.a,{value:Ar})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(Yn.a,{onChange:function(br,Rr){return xa(br,Rr)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Tr,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Sr,br){return b.a.createElement(he,{key:Sr.id,value:Sr.id},Sr.type_name)})),b.a.createElement("div",{className:X.a.smallType},Kr.map(function(Sr){return Sr.description?b.a.createElement("span",{key:Sr.id},Sr.description):null}))),!(_n!=null&&(fn=_n.detail)!==null&&fn!==void 0&&fn.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},it&&b.a.createElement("div",{onClick:function(){if(Object(Rt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:X.a.mask}),b.a.createElement(Yn.a,{style:{width:400},bordered:!1,getPopupContainer:function(br){return br.parentNode},value:Cr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(br){ca(br),Fr(br)}},(va||[]).map(function(Sr,br){return b.a.createElement(he,{value:parseInt(Sr.id),name:Sr.scptname,key:br},Sr.scptname)})),b.a.createElement("span",{className:X.a.evaluatingS1,onClick:ra},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(un.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(pr.a,null)))),b.a.createElement(tr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:lr,onChange:function(br){if(Ie.current){Ie.current=!1;return}la(br),Object(Rt.b)(Sn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,la(Ze.current.evaluateScript)},200)}}))),((Dn=_n.detail)===null||Dn===void 0?void 0:Dn.identity)<3&&!!ir.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},ir==null?void 0:ir.map(function(Sr,br){return b.a.createElement("div",{key:br,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Sr.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:Sr.cpu_limit,disabled:it,onChange:function(nr){return hr(nr.target.value,"cpu_limit",br)}})),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:Sr.lower_cpu_limit,disabled:it,onChange:function(nr){return hr(nr.target.value,"lower_cpu_limit",br)}})),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:Sr.memory_limit,disabled:it,onChange:function(nr){return hr(nr.target.value,"memory_limit",br)}})),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:Sr.request_limit,style:{width:300},disabled:it,onChange:function(nr){return hr(nr.target.value,"request_limit",br)}}),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:Sr.resource_limit,style:{width:300},disabled:it,maxLength:8,onChange:function(nr){var da=nr.target.value,ya=/^\d*(\.\d*)?$/;da.match(ya)&&hr(nr.target.value,"resource_limit",br)}})))}))))),b.a.createElement("div",{className:X.a.btns},b.a.createElement(L.a,{size:"large",style:{marginRight:20},onClick:sa},"\u53D6\u6D88"),b.a.createElement(L.a,{size:"large",type:"primary",disabled:$n===null,onClick:function(){return Fn()}},"\u4FDD\u5B58"))),b.a.createElement(q.a,null),b.a.createElement(Zr,{onFinish:function(br){return la(br)}}),b.a.createElement(De.a,null))},vn=Object(E.a)(function(wn){var Xt=wn.practiceSetting,fn=wn.globalSetting,Dn=wn.shixunsDetail,Qt=wn.user;return{practiceSetting:Xt,globalSetting:fn,shixunsDetail:Dn,user:Qt}})(pt),Kn=o("g9YV"),dr=o("wCAj"),on=o("5Dmo"),Mn=o("3S7+"),Xn=o("P5Jw"),$r=o("wd/R"),ga=o.n($r),pa=o("3d99"),fr=o.n(pa),za=o("Lf5v"),ja=o("xKgJ"),Ra=o("lzim"),Ha=b.a.Fragment,wa=function(Xt){var fn,Dn,Qt,Sn,_n=Xt.globalSetting,In=Xt.dispatch,Bn=Xt.practiceSetting,or=Xt.shixunsDetail,$n=Xt.user,Or=Object(m.a)(Xt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Pr=Bn.id,Zn=Object(T.useState)([]),Tr=Object(de.a)(Zn,2),vr=Tr[0],Hr=Tr[1],Mr=Object(T.useState)({}),qr=Object(de.a)(Mr,2),rr=qr[0],Kt=qr[1],Jt=Object(T.useState)(!1),Yt=Object(de.a)(Jt,2),Vn=Yt[0],er=Yt[1],Ln=Object(T.useState)(!0),ir=Object(de.a)(Ln,2),cr=ir[0],sr=ir[1],Qr=Object(T.useState)(!1),lr=Object(de.a)(Qr,2),la=lr[0],Vr=lr[1],_r=Object(T.useState)(!1),Cr=Object(de.a)(_r,2),Fr=Cr[0],Xr=Cr[1],Sa=Object(T.useState)([]),va=Object(de.a)(Sa,2),Ye=va[0],ct=va[1],bt=Object(T.useState)(!1),nt=Object(de.a)(bt,2),Pe=nt[0],ze=nt[1],Ie=Object(T.useState)({}),Ze=Object(de.a)(Ie,2),Qe=Ze[0],ht=Ze[1],it=Object(T.useState)({page:1,limit:10,total:0}),It=Object(de.a)(it,2),zt=It[0],hn=It[1];Object(T.useEffect)(function(){if(!Pr)return;dn()},[Pr]);var ln=function(wr){var zn=Object(K.a)(Object(K.a)({},zt),{},{page:wr});ct([]),hn(zn),dn(zn)},dn=function(){var Gn=Object(r.a)(n.a.mark(function wr(zn){var xn,Fn,Kr;return n.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return xn={page:1,limit:10,total:0},Fn=zn||xn,er(!0),hr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},Fn),{},{id:Pr})});case 5:Kr=hr.sent,Kr!=null&&Kr.data_sets&&(er(!1),Hr(Object(Ee.a)(Kr.data_sets)),hn(Object(K.a)(Object(K.a)({},Fn),{},{total:Kr==null?void 0:Kr.data_sets_count})),sr(!1),Kt(Object(K.a)({},Kr)));case 7:case"end":return hr.stop()}},wr)}));return function(zn){return Gn.apply(this,arguments)}}(),cn=function(){return b.a.createElement("div",{className:fr.a.empty},b.a.createElement("img",{src:Ra.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},Hn=function(wr){console.log("selectedRowKeys changed: ",wr),ct(wr)},Cn={selectedRowKeys:Ye,columnWidth:70,onChange:Hn},Nr=function(wr){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var zn=wr?[wr]:Ye;f.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var xn=Object(r.a)(n.a.mark(function Kr(){var sa,hr;return n.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:return Ea.next=2,Object(u.a)("/api/shixuns/".concat(Pr,"/destroy_data_sets.json"),{method:"Delete",body:{id:zn}});case 2:sa=Ea.sent,sa.status===0&&(hr=zn.length===vr.length&&zt.page>1?zt.page-1:zt.page,g.b.success("\u5220\u9664\u6210\u529F"),dn(Object(K.a)(Object(K.a)({},zt),{},{page:hr})),ct([]));case 4:case"end":return Ea.stop()}},Kr)}));function Fn(){return xn.apply(this,arguments)}return Fn}()})},Ar=function(){var Gn=Object(r.a)(n.a.mark(function wr(){var zn,xn,Fn,Kr,sa;return n.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:if(zn=Qe.title,xn=null,console.log(zn,"title"),!(zn==="")){ra.next=7;break}return xn="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",ht(Object(K.a)(Object(K.a)({},Qe),{},{errorDes:xn})),ra.abrupt("return");case 7:if(Fn=vr.find(function(Ea){return Ea.id===(Qe==null?void 0:Qe.id)}).title,!(zn===Fn.substring(0,Fn.lastIndexOf("."))||zn===Fn)){ra.next=12;break}return xn="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",ht(Object(K.a)(Object(K.a)({},Qe),{},{errorDes:xn})),ra.abrupt("return");case 12:return Kr=Fn.includes(".")?Fn.substring(Fn.lastIndexOf("."),Fn.length):"",ra.next=15,Object(u.a)("/api/shixuns/".concat(Pr,"/rename_data_sets.json"),{method:"post",body:{id:Qe==null?void 0:Qe.id,new_file_name:zn+Kr}});case 15:sa=ra.sent,sa.status===0&&(g.b.success("\u91CD\u547D\u540D\u6210\u529F"),dn(zt),Vr(!1),ht({}));case 17:case"end":return ra.stop()}},wr)}));return function(){return Gn.apply(this,arguments)}}(),Yr=function(){var wr=Qe.download_url;jr(wr),g.b.success("\u590D\u5236\u6210\u529F"),Xr(!1),ht({})},jr=function(wr){var zn=wr,xn=document.createElement("input");xn.value=zn,document.body.appendChild(xn),xn.select(),document.execCommand("Copy"),xn.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(Mn.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(Mn.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 ga()(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:fr.a.path},b.a.createElement(Mn.a,{title:wr},b.a.createElement("span",{className:fr.a.text},wr)),b.a.createElement(Xn.CopyToClipboard,{text:wr,onCopy:function(){return g.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(Mn.a,{title:"\u590D\u5236"},b.a.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:Object(ja.v)()?200:120,render:function(wr,zn){return b.a.createElement("div",{className:fr.a.actionsBtns},b.a.createElement(Mn.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var Fn;ht(Object(ae.clone)(Object(K.a)(Object(K.a)({},zn),{},{title:zn!=null&&zn.title.includes(".")?zn==null||((Fn=zn.title)===null||Fn===void 0)?void 0:Fn.substring(0,zn.title.lastIndexOf(".")):zn==null?void 0:zn.title}))),Vr(!0),Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(ja.v)()&&b.a.createElement(Mn.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),ht(Object(ae.clone)(zn)),Xr(!0)}})),Object(ja.v)()&&b.a.createElement(Mn.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(c.x)(zn.title,zn==null?void 0:zn.download_url)}})),b.a.createElement(Mn.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),Nr(zn.id)}})))}}];return b.a.createElement("div",{className:fr.a.dataset},b.a.createElement("div",{className:fr.a.header},b.a.createElement("div",{className:fr.a.title},"\u6570\u636E\u96C6(",zt.total,")"),b.a.createElement("div",{className:fr.a.dataPath},b.a.createElement("span",{className:fr.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:rr==null?void 0:rr.folder_name,disabled:!0}),b.a.createElement(Xn.CopyToClipboard,{text:rr==null?void 0:rr.folder_name,onCopy:function(){return g.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(Mn.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:fr.a.btns},b.a.createElement(L.a,{type:"primary",ghost:!0,onClick:function(){return Nr()},disabled:!Ye.length},"\u5220\u9664"),b.a.createElement(L.a,{type:"primary",onClick:function(){return ze(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:fr.a.content},b.a.createElement(Ke.a,{loading:cr,active:!0,paragraph:{rows:5}},zt.total?b.a.createElement(dr.a,{rowSelection:Cn,className:fr.a.customTable,dataSource:vr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:fr.a.row,columns:ta,loading:Vn,pagination:{pageSize:zt.limit,total:zt.total,current:zt.page,onChange:ln,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):cn())),b.a.createElement(za.a,{rootIdentifier:or==null||((fn=or.detail)===null||fn===void 0)?void 0:fn.root_identifier,wrapClassName:fr.a.uploadFileModal,id:Pr,containerId:or==null||((Dn=or.detail)===null||Dn===void 0)?void 0:Dn.id,local:_n==null||((Qt=_n.setting)===null||Qt===void 0)?void 0:Qt.is_local,dispatch:In,visible:Pe,onClose:function(){return ze(!1)},onOK:dn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:la,onOk:Ar,centered:!0,wrapClassName:fr.a.renameModal,onCancel:function(){Vr(!1),ht({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:fr.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:Qe==null?void 0:Qe.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){ht(Object(K.a)(Object(K.a)({},Qe),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((Qe==null||((Sn=Qe.title)===null||Sn===void 0)?void 0:Sn.length)||0,"/60")}),(Qe==null?void 0:Qe.errorDes)&&b.a.createElement("div",{className:fr.a.errorDes},Qe==null?void 0:Qe.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Fr,onOk:Yr,centered:!0,wrapClassName:fr.a.shareModal,onCancel:function(){Xr(!1),ht({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:fr.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:Qe==null?void 0:Qe.download_url}))))},Ja=Object(E.a)(function(wn){var Xt=wn.globalSetting,fn=wn.shixunsDetail,Dn=wn.practiceSetting,Qt=wn.user;return{globalSetting:Xt,shixunsDetail:fn,user:Qt,practiceSetting:Dn}})(wa),ka=o("aHsQ"),li=o("sGsY"),oi=o("fKo2"),ua=o.n(oi),fa=o("BMKw"),oa=o.n(fa),xe=function(Xt){return Xt!=null&&Xt.length?Xt.filter(function(fn,Dn){return Dn!==0}).map(function(fn){return fn.val}).join("").substr(1):""},lt=function(Xt){var fn=Xt.shixunsDetail,Dn=Xt.globalSetting,Qt=Xt.loading,Sn=Xt.dispatch,_n=Xt.fileType,In=Xt.path,Bn=Xt.onFinish,or=Bn===void 0?function(){}:Bn,$n=Object(S.i)(),Or=Object(T.useState)(""),Pr=Object(de.a)(Or,2),Zn=Pr[0],Tr=Pr[1],vr=Object(T.useState)([]),Hr=Object(de.a)(vr,2),Mr=Hr[0],qr=Hr[1],rr=Object(T.useState)([]),Kt=Object(de.a)(rr,2),Jt=Kt[0],Yt=Kt[1],Vn=[Vt.OriginalPicturePath,Vt.ExpectPicturePath,Vt.PicturePath],er=Vn.includes(_n);Object(T.useEffect)(function(){if(fn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Tr(In||""),Ln()},[fn.actionTabs.key]);var Ln=function(){var Vr=Object(r.a)(n.a.mark(function _r(){var Cr,Fr,Xr,Sa,va=arguments;return n.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Fr=va.length>0&&va[0]!==void 0?va[0]:"",ct.next=3,Sn({type:"shixunsDetail/getRepository",payload:{id:$n.id,path:Fr}});case 3:Xr=ct.sent,Fr===""&&!(Xr!=null&&(Cr=Xr.trees)!==null&&Cr!==void 0&&Cr.length)&&g.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Xr!=null&&Xr.trees&&(Sa=Xr.trees.map(function(bt){return Object(K.a)(Object(K.a)({},bt),{name:bt.name,val:bt.name})}),Yt(Sa||[]));case 6:case"end":return ct.stop()}},_r)}));return function(){return Vr.apply(this,arguments)}}(),ir=function(_r){var Cr=xe(Mr),Fr="".concat(Cr&&"".concat(Cr,"/")).concat(_r);_n===Vt.Path?!(Zn!=null&&Zn.includes("".concat(Fr,"\uFF1B")))&&Tr("".concat(Zn).concat(Fr,"\uFF1B")):_n===Vt.ExecPath&&Tr(Fr)},cr=function(_r){if(_r.type==="tree"){Mr.length?Mr.push({val:"/".concat(_r.val),path:_r.val}):Mr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(_r.val),path:_r.val}),qr(Mr);var Cr=xe(Mr);er&&Tr(Cr),Ln(Cr)}},sr=function(_r,Cr){var Fr=Mr.filter(function(Sa,va){return va<=Cr});qr(Fr);var Xr=xe(Fr);er&&Tr(Xr),Ln(Xr)},Qr=function(){var Vr=Object(r.a)(n.a.mark(function _r(){return n.a.wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:or(Zn),lr();case 2:case"end":return Fr.stop()}},_r)}));return function(){return Vr.apply(this,arguments)}}(),lr=function(){Tr(""),qr([]),Yt([]),Sn({type:"shixunsDetail/setActionTabs",payload:{}})},la=xe(Mr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:fn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:Qr,onCancel:lr},b.a.createElement("div",{className:oa.a.wrap},b.a.createElement("div",{className:oa.a.content},b.a.createElement("div",{className:oa.a.mainPathWrap},!!(Mr!=null&&Mr.length)&&Mr.map(function(Vr,_r){return b.a.createElement("a",{key:_r,onClick:function(){return sr(Vr,_r)}},Vr.val)})),!!(Jt!=null&&Jt.length)&&Jt.map(function(Vr,_r){return Vr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return cr(Vr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(oa.a.colorBlue)}),la&&"".concat(la,"/"),Vr.name):b.a.createElement("a",{key:_r,onClick:function(){return ir("".concat(Vr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(oa.a.colorBlue)}),la&&"".concat(la,"/"),Vr.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:Zn,onChange:function(_r){return Tr(_r.target.value)}})))},Mt=Object(E.a)(function(wn){var Xt=wn.shixunsDetail,fn=wn.loading,Dn=wn.globalSetting;return{shixunsDetail:Xt,globalSetting:Dn,loading:fn.models.index}})(lt),wt=o("dhSg"),Ht=li.a.Countdown,Nt;(function(wn){wn[wn.LoadingFail=1]="LoadingFail",wn[wn.Loading=2]="Loading",wn[wn.Finish=3]="Finish"})(Nt||(Nt={}));var Vt;(function(wn){wn.Path="path",wn.ExecPath="exec_path",wn.OriginalPicturePath="original_picture_path",wn.ExpectPicturePath="expect_picture_path",wn.PicturePath="picture_path"})(Vt||(Vt={}));var $t=function(Xt){var fn=Xt.globalSetting,Dn=Xt.loading,Qt=Xt.dispatch,Sn=Xt.practiceSetting,_n=Xt.shixunsDetail,In=Object(m.a)(Xt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Bn=Object(T.useState)(),or=Object(de.a)(Bn,2),$n=or[0],Or=or[1],Pr=Object(T.useState)(),Zn=Object(de.a)(Pr,2),Tr=Zn[0],vr=Zn[1],Hr=Object(T.useRef)(),Mr=Object(T.useState)(),qr=Object(de.a)(Mr,2),rr=qr[0],Kt=qr[1],Jt=Object(T.useState)(),Yt=Object(de.a)(Jt,2),Vn=Yt[0],er=Yt[1],Ln=Object(T.useState)(),ir=Object(de.a)(Ln,2),cr=ir[0],sr=ir[1],Qr=Object(T.useRef)(!0),lr=Object(T.useState)(!0),la=Object(de.a)(lr,2),Vr=la[0],_r=la[1],Cr=Object(T.useState)(700),Fr=Object(de.a)(Cr,2),Xr=Fr[0],Sa=Fr[1],va=Object(T.useState)(""),Ye=Object(de.a)(va,2),ct=Ye[0],bt=Ye[1],nt=Object(T.useRef)(),Pe=Object(S.i)();Object(T.useEffect)(function(){Ie()},[]);var ze=function(){var ln=Object(r.a)(n.a.mark(function dn(){var cn,Hn,Cn;return n.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Ar.next=2,Qt({type:"shixunsDetail/updateRepositoryFile",payload:{id:Pe.id,path:_n==null||((cn=_n.fileContent)===null||cn===void 0||((Hn=cn.params)===null||Hn===void 0))?void 0:Hn.path,content:$n,secret_repository:Vr?null:!0}});case 2:Cn=Ar.sent,Cn!=null&&Cn.content&&(g.b.info("\u4FDD\u5B58\u6210\u529F"),Qt({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},Sn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Ar.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),Ie=function(){var ln=Object(r.a)(n.a.mark(function dn(){var cn,Hn,Cn,Nr,Ar;return n.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,Object(s.X)({identifier:Pe.id});case 2:if(Cn=jr.sent,!(Cn!=null&&(cn=Cn.data)!==null&&cn!==void 0&&(Hn=cn.data_list)!==null&&Hn!==void 0&&Hn.length)){jr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:Cn==null||((Nr=Cn.data)===null||Nr===void 0)?void 0:Nr.identifier,data_list:Cn==null||((Ar=Cn.data)===null||Ar===void 0)?void 0:Ar.data_list}),jr.abrupt("return");case 6:Cn!=null&&Cn.url&&bt(Cn==null?void 0:Cn.url);case 7:case"end":return jr.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),Ze=function(){var ln=Object(r.a)(n.a.mark(function dn(){var cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.rb)({identifier:Pe.id});case 2:if(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=5;break}return Cn.abrupt("return");case 5:cn!=null&&cn.remainingSeconds?(Kt(Date.now()+cn.remainingSeconds*1e3),er(cn.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(cn.remainingSeconds-300)*1e3)):Qe();case 6:case"end":return Cn.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),Qe=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 dn=Object(r.a)(n.a.mark(function Hn(){return n.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:ht();case 1:case"end":return Nr.stop()}},Hn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},ht=function(){var ln=Object(r.a)(n.a.mark(function dn(){var cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return vr(Nt.Loading),Cn.next=3,Object(s.Cb)({identifier:Pe.id});case 3:if(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=6;break}return Cn.abrupt("return");case 6:vr(Nt.Finish),bt(cn.url),Hr.current=cn.port,g.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Cn.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),it=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(Ht,{value:rr,format:"HH:mm:ss",onFinish:It})),"\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 dn=Object(r.a)(n.a.mark(function Hn(){var Cn;return n.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Ar.next=2,Object(s.a)({identifier:Pe.id});case 2:if(Cn=Ar.sent,!(Cn.status===0)){Ar.next=7;break}return Ar.next=6,Ze();case 6:g.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Ar.stop()}},Hn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},It=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(){ht()}})},zt=function(dn){Qt({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},hn=function(){var ln=Object(r.a)(n.a.mark(function dn(cn){return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.Pb)({id:Pe.id,startup_file:cn});case 2:Ie(),Qt({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Pe)});case 4:case"end":return Cn.stop()}},dn)}));return function(cn){return ln.apply(this,arguments)}}();return b.a.createElement("div",{className:ua.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:ct})),b.a.createElement(U.a,{flex:"1"},b.a.createElement(L.a,{type:"primary",className:"ml10",onClick:function(){return zt(Vt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(dn){},src:ct,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(Mt,{fileType:"path",path:"",onFinish:function(dn){return hn(dn)}}))},En=Object(E.a)(function(wn){var Xt=wn.loading,fn=wn.globalSetting,Dn=wn.practiceSetting,Qt=wn.shixunsDetail;return{globalSetting:fn,loading:Xt,practiceSetting:Dn,shixunsDetail:Qt}})($t),gn=function(Xt){var fn=Xt.tabsActive,Dn=Object(m.a)(Xt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,fn==="information"&&b.a.createElement(qe,null),fn==="warehouse"&&b.a.createElement(ut.default,null),fn==="level"&&b.a.createElement(et,Dn),fn==="collaborate"&&b.a.createElement(rn,Dn),fn==="setting"&&b.a.createElement(Tn.a,null),fn==="environment"&&b.a.createElement(vn,Dn),fn==="dataset"&&b.a.createElement(Ja,null),fn==="service"&&b.a.createElement(En,Dn))},Un=gn,An=o("Jv0p"),tn=o.n(An),Pn=o("luix"),yn=o.n(Pn),jn=[{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"}],Rn=function(Xt){var fn,Dn=Xt.globalSetting,Qt=Xt.loading,Sn=Xt.dispatch,_n=Xt.shixunsDetail,In=Xt.practiceSetting,Bn=Object(m.a)(Xt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),or=In.base_info_warning,$n=In.challenges_warning,Or=In.id,Pr=In.repository_warning,Zn=In.sideBar,Tr=In.service_warning,vr=Object(S.h)(),Hr=Object(S.i)();Object(T.useEffect)(function(){var rr,Kt,Jt=vr==null||((rr=vr.query)===null||rr===void 0)?void 0:rr.tabId,Yt=vr.pathname.split("/").length,Vn=_n!=null&&(Kt=_n.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?jn.filter(function(Ln){return Ln.tabId!=="dataset"}):jn,er=Vn.map(function(Ln){return Ln.tabId}).includes(Jt);if(Jt&&er){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Jt}});return}if(Yt>4){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!Jt||Jt&&!er){Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[_n==null||((fn=_n.detail)===null||fn===void 0)?void 0:fn.windows_vnc]),Object(T.useEffect)(function(){return function(){Sn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},In.sideBar),{},{selectPath:""})})}},[Hr.id]);var Mr=function(Kt){var Jt;if(Kt===Zn.tabsActive)return;var Yt=function(){E.d.push("/shixuns/".concat(Or,"/edit?tabId=").concat(Kt)),Sn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Kt,selectPath:"",confirmLeave:!1}})};In!=null&&(Jt=In.sideBar)!==null&&Jt!==void 0&&Jt.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()},qr=function(){var Kt,Jt=_n!=null&&(Kt=_n.detail)!==null&&Kt!==void 0&&Kt.windows_vnc?jn.filter(function(Yt){return Yt.tabId!=="dataset"}):jn;return Jt.filter(function(Yt){var Vn;return _n!=null&&(Vn=_n.detail)!==null&&Vn!==void 0&&Vn.is_jupyter_lab?Yt.tabId!=="level":Yt.tabId!=="service"}).map(function(Yt){var Vn=Yt.name,er=Yt.icon,Ln=Yt.tabId;return b.a.createElement("div",{key:Ln,className:In.sideBar.tabsActive===Ln?tn.a.itemActive:tn.a.item,onClick:function(){return Mr(Ln)}},er,b.a.createElement("span",{className:tn.a.name},Vn),Ln==="information"&&or&&b.a.createElement(Mn.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="level"&&$n&&b.a.createElement(Mn.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="service"&&Tr&&b.a.createElement(Mn.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="warehouse"&&Pr&&b.a.createElement(Mn.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:yn.a,alt:""})))})};return b.a.createElement("div",{className:tn.a.sidebar},b.a.createElement("div",{className:tn.a.items},qr()),b.a.createElement("div",{className:tn.a.question},b.a.createElement(Mn.a,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},b.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){return window.open("https://www.educoder.net/forums/4692")}},b.a.createElement("img",{src:Ra.t,height:44,width:44,alt:""})))))},Qn=Object(E.a)(function(wn){var Xt=wn.loading,fn=wn.globalSetting,Dn=wn.shixunsDetail,Qt=wn.practiceSetting;return{globalSetting:fn,loading:Xt,practiceSetting:Qt,shixunsDetail:Dn}})(Rn),mr=function(Xt){var fn=Xt.globalSetting,Dn=Xt.loading,Qt=Xt.dispatch,Sn=Xt.practiceSetting,_n=Object(m.a)(Xt,["globalSetting","loading","dispatch","practiceSetting"]),In=Sn.sideBar,Bn=In.tabsActive,or=Object(S.i)();return Object(T.useEffect)(function(){return Qt({type:"globalSetting/headerFooterToggle",payload:!1}),Qt({type:"shixunsDetail/getShixunsDetail",payload:or}),Qt({type:"shixunsDetail/getSettingsData",payload:or}),function(){Qt({type:"globalSetting/headerFooterToggle",payload:!0}),Qt({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(Qn,null)),b.a.createElement("div",{className:C.a.wrapContent},b.a.createElement(Un,Object(M.a)({},_n,{tabsActive:Sn.sideBar.tabsActive})))))},kr=z.default=Object(E.a)(function(wn){var Xt=wn.loading,fn=wn.globalSetting,Dn=wn.practiceSetting;return{globalSetting:fn,loading:Xt,practiceSetting:Dn}})(mr)},WYAk:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){(function(){var m=M,T=m.lib,b=T.Base,y=m.enc,C=y.Utf8,A=m.algo,g=A.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=C.parse(f));var r=e.blockSize,l=r*4;f.sigBytes>l&&(f=e.finalize(f)),f.clamp();for(var n=this._oKey=f.clone(),i=this._iKey=f.clone(),a=n.words,c=i.words,h=0;h<r;h++)a[h]^=1549556828,c[h]^=909522486;n.sigBytes=i.sigBytes=l,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,r=f.finalize(e);f.reset();var l=f.finalize(this._oKey.clone().concat(r));return l}})})()})},WaYH:function(k,z,o){"use strict";var M=o("rePB"),m=o("Ff2n"),T=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),C=o("JX7q"),A=o("Ji7U"),g=o("LK+K"),e=o("q1tI"),f=o("TSYQ"),r=o.n(f),l=o("sboe"),n=o("OZM5"),i=function(P){var R=P.prefixCls,x=P.level,w=P.isStart,v=P.isEnd;if(!x)return null;for(var O="".concat(R,"-indent-unit"),U=[],I=0;I<x;I+=1){var N;U.push(e.createElement("span",{key:I,className:r()(O,(N={},Object(M.a)(N,"".concat(O,"-start"),w[I+1]),Object(M.a)(N,"".concat(O,"-end"),v[I+1]),Object(M.a)(N,"".concat(O,"-end-first-level"),!I&&v[0]),N))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},U)},a=i,c=o("815F"),h="open",d="close",s="---",u=function(_){Object(A.a)(R,_);var P=Object(g.a)(R);function R(){var x;return Object(b.a)(this,R),x=P.apply(this,arguments),x.state={dragNodeHighlight:!1},x.onSelectorClick=function(w){var v=x.props.context.onNodeClick;v(w,Object(c.b)(x.props)),x.isSelectable()?x.onSelect(w):x.onCheck(w)},x.onSelectorDoubleClick=function(w){var v=x.props.context.onNodeDoubleClick;v(w,Object(c.b)(x.props))},x.onSelect=function(w){if(x.isDisabled())return;var v=x.props.context.onNodeSelect;w.preventDefault(),v(w,Object(c.b)(x.props))},x.onCheck=function(w){if(x.isDisabled())return;var v=x.props,O=v.disableCheckbox,U=v.checked,I=x.props.context.onNodeCheck;if(!x.isCheckable()||O)return;w.preventDefault();var N=!U;I(w,Object(c.b)(x.props),N)},x.onMouseEnter=function(w){var v=x.props.context.onNodeMouseEnter;v(w,Object(c.b)(x.props))},x.onMouseLeave=function(w){var v=x.props.context.onNodeMouseLeave;v(w,Object(c.b)(x.props))},x.onContextMenu=function(w){var v=x.props.context.onNodeContextMenu;v(w,Object(c.b)(x.props))},x.onDragStart=function(w){var v=x.props.context.onNodeDragStart;w.stopPropagation(),x.setState({dragNodeHighlight:!0}),v(w,Object(C.a)(x));try{w.dataTransfer.setData("text/plain","")}catch(O){}},x.onDragEnter=function(w){var v=x.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),v(w,Object(C.a)(x))},x.onDragOver=function(w){var v=x.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),v(w,Object(C.a)(x))},x.onDragLeave=function(w){var v=x.props.context.onNodeDragLeave;w.stopPropagation(),v(w,Object(C.a)(x))},x.onDragEnd=function(w){var v=x.props.context.onNodeDragEnd;w.stopPropagation(),x.setState({dragNodeHighlight:!1}),v(w,Object(C.a)(x))},x.onDrop=function(w){var v=x.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),x.setState({dragNodeHighlight:!1}),v(w,Object(C.a)(x))},x.onExpand=function(w){var v=x.props.context.onNodeExpand;v(w,Object(c.b)(x.props))},x.setSelectHandle=function(w){x.selectHandle=w},x.getNodeState=function(){var w=x.props.expanded;return x.isLeaf()?null:w?h:d},x.hasChildren=function(){var w=x.props.eventKey,v=x.props.context.keyEntities,O=v[w]||{},U=O.children;return!!(U||[]).length},x.isLeaf=function(){var w=x.props,v=w.isLeaf,O=w.loaded,U=x.props.context.loadData,I=x.hasChildren();return v===!1?!1:v||!U&&!I||U&&O&&!I},x.isDisabled=function(){var w=x.props.disabled,v=x.props.context.disabled;return!!(v||w)},x.isCheckable=function(){var w=x.props.checkable,v=x.props.context.checkable;return!v||w===!1?!1:v},x.syncLoadData=function(w){var v=w.expanded,O=w.loading,U=w.loaded,I=x.props.context,N=I.loadData,V=I.onNodeLoad;if(O)return;N&&v&&!x.isLeaf()&&(!x.hasChildren()&&!U&&V(Object(c.b)(x.props)))},x.renderSwitcher=function(){var w=x.props,v=w.expanded,O=w.switcherIcon,U=x.props.context,I=U.prefixCls,N=U.switcherIcon,V=O||N;if(x.isLeaf())return e.createElement("span",{className:r()("".concat(I,"-switcher"),"".concat(I,"-switcher-noop"))},typeof V=="function"?V(Object(T.a)(Object(T.a)({},x.props),{},{isLeaf:!0})):V);var H=r()("".concat(I,"-switcher"),"".concat(I,"-switcher_").concat(v?h:d));return e.createElement("span",{onClick:x.onExpand,className:H},typeof V=="function"?V(Object(T.a)(Object(T.a)({},x.props),{},{isLeaf:!1})):V)},x.renderCheckbox=function(){var w=x.props,v=w.checked,O=w.halfChecked,U=w.disableCheckbox,I=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:r()("".concat(I,"-checkbox"),v&&"".concat(I,"-checkbox-checked"),!v&&O&&"".concat(I,"-checkbox-indeterminate"),(N||U)&&"".concat(I,"-checkbox-disabled")),onClick:x.onCheck},H)},x.renderIcon=function(){var w=x.props.loading,v=x.props.context.prefixCls;return e.createElement("span",{className:r()("".concat(v,"-iconEle"),"".concat(v,"-icon__").concat(x.getNodeState()||"docu"),w&&"".concat(v,"-icon_loading"))})},x.renderSelector=function(){var w=x.state.dragNodeHighlight,v=x.props,O=v.title,U=v.selected,I=v.icon,N=v.loading,V=v.data,H=x.props.context,D=H.prefixCls,W=H.showIcon,F=H.icon,L=H.draggable,K=H.loadData,te=H.titleRender,fe=x.isDisabled(),de="".concat(D,"-node-content-wrapper"),Ce;if(W){var Oe=I||F;Ce=Oe?e.createElement("span",{className:r()("".concat(D,"-iconEle"),"".concat(D,"-icon__customize"))},typeof Oe=="function"?Oe(x.props):Oe):x.renderIcon()}else K&&N&&(Ce=x.renderIcon());var ce;typeof O=="function"?ce=O(V):te?ce=te(V):ce=O;var Ee=e.createElement("span",{className:"".concat(D,"-title")},ce);return e.createElement("span",{ref:x.setSelectHandle,title:typeof O=="string"?O:"",className:r()("".concat(de),"".concat(de,"-").concat(x.getNodeState()||"normal"),!fe&&(U||w)&&"".concat(D,"-node-selected"),!fe&&L&&"draggable"),draggable:!fe&&L||void 0,"aria-grabbed":!fe&&L||void 0,onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onContextMenu:x.onContextMenu,onClick:x.onSelectorClick,onDoubleClick:x.onSelectorDoubleClick,onDragStart:L?x.onDragStart:void 0},Ce,Ee)},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 w=this.props.selectable,v=this.props.context.selectable;return typeof w=="boolean"?w:v}},{key:"render",value:function(){var w,v=this.props,O=v.eventKey,U=v.className,I=v.style,N=v.dragOver,V=v.dragOverGapTop,H=v.dragOverGapBottom,D=v.isLeaf,W=v.isStart,F=v.isEnd,L=v.expanded,K=v.selected,te=v.checked,fe=v.halfChecked,de=v.loading,Ce=v.domRef,Oe=v.active,ce=v.onMouseMove,Ee=Object(m.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,le=ye.filterTreeNode,$=ye.draggable,me=ye.keyEntities,re=this.isDisabled(),ae=Object(n.f)(Ee),Se=me[O]||{},oe=Se.level,ee=F[F.length-1];return e.createElement("div",Object.assign({ref:Ce,className:r()(U,"".concat(ue,"-treenode"),(w={},Object(M.a)(w,"".concat(ue,"-treenode-disabled"),re),Object(M.a)(w,"".concat(ue,"-treenode-switcher-").concat(L?"open":"close"),!D),Object(M.a)(w,"".concat(ue,"-treenode-checkbox-checked"),te),Object(M.a)(w,"".concat(ue,"-treenode-checkbox-indeterminate"),fe),Object(M.a)(w,"".concat(ue,"-treenode-selected"),K),Object(M.a)(w,"".concat(ue,"-treenode-loading"),de),Object(M.a)(w,"".concat(ue,"-treenode-active"),Oe),Object(M.a)(w,"".concat(ue,"-treenode-leaf-last"),ee),Object(M.a)(w,"drag-over",!re&&N),Object(M.a)(w,"drag-over-gap-top",!re&&V),Object(M.a)(w,"drag-over-gap-bottom",!re&&H),Object(M.a)(w,"filter-node",le&&le(Object(c.b)(this.props))),w)),style:I,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(a,{prefixCls:ue,level:oe,isStart:W,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(e.Component),S=function(P){return e.createElement(l.a.Consumer,null,function(R){return e.createElement(u,Object.assign({},P,{context:R}))})};S.displayName="TreeNode",S.defaultProps={title:s},S.isTreeNode=1;var E=z.a=S},XIdC:function(k,z,o){"use strict";var M=o("rePB"),m=o("ODXe"),T=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("TSYQ"),A=o.n(C),g=o("6cGi"),e=o("4IlW"),f=b.forwardRef(function(r,l){var n,i=r.prefixCls,a=i===void 0?"rc-switch":i,c=r.className,h=r.checked,d=r.defaultChecked,s=r.disabled,u=r.loadingIcon,S=r.checkedChildren,E=r.unCheckedChildren,_=r.onClick,P=r.onChange,R=r.onKeyDown,x=Object(T.a)(r,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),w=Object(g.a)(!1,{value:h,defaultValue:d}),v=Object(m.a)(w,2),O=v[0],U=v[1];function I(D,W){var F=O;return s||(F=D,U(F),P==null||P(F,W)),F}function N(D){D.which===e.a.LEFT?I(!1,D):D.which===e.a.RIGHT&&I(!0,D),R==null||R(D)}function V(D){var W=I(!O,D);_==null||_(W,D)}var H=A()(a,c,(n={},Object(M.a)(n,"".concat(a,"-checked"),O),Object(M.a)(n,"".concat(a,"-disabled"),s),n));return b.createElement("button",Object.assign({},x,{type:"button",role:"switch","aria-checked":O,disabled:s,className:H,ref:l,onKeyDown:N,onClick:V}),u,b.createElement("span",{className:"".concat(a,"-inner")},O?S: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 fe});var M=o("wx14"),m=o("1OyB"),T=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),A=o("VTBJ"),g=o("rePB"),e=o("Zm9Q"),f=o("Kwbf"),r=o("c+Xe"),l=o("m+aA"),n=o("bdgK"),i=new Map;function a(Oe){Oe.forEach(function(ce){var Ee,ye=ce.target;(Ee=i.get(ye))===null||Ee===void 0||Ee.forEach(function(ue){return ue(ye)})})}var c=new n.default(a),h=null,d=null;function s(Oe,ce){i.has(Oe)||(i.set(Oe,new Set),c.observe(Oe)),i.get(Oe).add(ce)}function u(Oe,ce){i.has(Oe)&&(i.get(Oe).delete(ce),i.get(Oe).size||(c.unobserve(Oe),i.delete(Oe)))}var S=function(Oe){Object(b.a)(Ee,Oe);var ce=Object(y.a)(Ee);function Ee(){return Object(m.a)(this,Ee),ce.apply(this,arguments)}return Object(T.a)(Ee,[{key:"render",value:function(){return this.props.children}}]),Ee}(C.Component),E=C.createContext(null);function _(Oe){var ce=Oe.children,Ee=Oe.onBatchResize,ye=C.useRef(0),ue=C.useRef([]),le=C.useContext(E),$=C.useCallback(function(me,re,ae){ye.current+=1;var Se=ye.current;ue.current.push({size:me,element:re,data:ae}),Promise.resolve().then(function(){Se===ye.current&&(Ee==null||Ee(ue.current),ue.current=[])}),le==null||le(me,re,ae)},[Ee,le]);return C.createElement(E.Provider,{value:$},ce)}function P(Oe){var ce=Oe.children,Ee=Oe.disabled,ye=C.useRef(null),ue=C.useRef(null),le=C.useContext(E),$=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),me=C.isValidElement(ce)&&Object(r.c)(ce),re=me?ce.ref:null,ae=C.useMemo(function(){return Object(r.a)(re,ye)},[re,ye]),Se=C.useRef(Oe);Se.current=Oe;var oe=C.useCallback(function(ee){var J=Se.current,Q=J.onResize,ve=J.data,_e=ee.getBoundingClientRect(),Te=_e.width,Ge=_e.height,qe=ee.offsetWidth,ut=ee.offsetHeight,st=Math.floor(Te),ft=Math.floor(Ge);if($.current.width!==st||$.current.height!==ft||$.current.offsetWidth!==qe||$.current.offsetHeight!==ut){var gt={width:st,height:ft,offsetWidth:qe,offsetHeight:ut};$.current=gt;var Ve=qe===Math.round(Te)?Te:qe,ke=ut===Math.round(Ge)?Ge:ut,dt=Object(A.a)(Object(A.a)({},gt),{},{offsetWidth:Ve,offsetHeight:ke});le==null||le(dt,ee,ve),Q&&Promise.resolve().then(function(){Q(dt,ee)})}},[]);return C.useEffect(function(){var ee=Object(l.a)(ye.current)||Object(l.a)(ue.current);return ee&&!Ee&&s(ee,oe),function(){return u(ee,oe)}},[ye.current,Ee]),C.createElement(S,{ref:ue},me?C.cloneElement(ce,{ref:ae}):ce)}var R="rc-observer-key";function x(Oe){var ce=Oe.children,Ee=Object(e.a)(ce);return Ee.map(function(ye,ue){var le=(ye==null?void 0:ye.key)||"".concat(R,"-").concat(ue);return C.createElement(P,Object(M.a)({},Oe,{key:le}),ye)})}x.Collection=_;var w=x,v=o("bT9E"),O=o("TSYQ"),U=o.n(O),I=`
|
|
|
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(Oe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=Oe.getAttribute("id")||Oe.getAttribute("data-reactid")||Oe.getAttribute("name");if(ce&&V[Ee])return V[Ee];var ye=window.getComputedStyle(Oe),ue=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),le=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:le,borderSize:$,boxSizing:ue};return ce&&Ee&&(V[Ee]=re),re}function W(Oe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=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)),Oe.getAttribute("wrap")?H.setAttribute("wrap",Oe.getAttribute("wrap")):H.removeAttribute("wrap");var ue=D(Oe,ce),le=ue.paddingSize,$=ue.borderSize,me=ue.boxSizing,re=ue.sizingStyle;H.setAttribute("style","".concat(re,";").concat(I)),H.value=Oe.value||Oe.placeholder||"";var ae=Number.MIN_SAFE_INTEGER,Se=Number.MAX_SAFE_INTEGER,oe=H.scrollHeight,ee;if(me==="border-box"?oe+=$:me==="content-box"&&(oe-=le),Ee!==null||ye!==null){H.value=" ";var J=H.scrollHeight-le;Ee!==null&&(ae=J*Ee,me==="border-box"&&(ae=ae+le+$),oe=Math.max(ae,oe)),ye!==null&&(Se=J*ye,me==="border-box"&&(Se=Se+le+$),ee=oe>Se?"":"hidden",oe=Math.min(Se,oe))}return{height:oe,minHeight:ae,maxHeight:Se,overflowY:ee,resize:"none"}}var F=o("Gytx"),L=o.n(F),K;(function(Oe){Oe[Oe.NONE=0]="NONE",Oe[Oe.RESIZING=1]="RESIZING",Oe[Oe.RESIZED=2]="RESIZED"})(K||(K={}));var te=function(Oe){Object(b.a)(Ee,Oe);var ce=Object(y.a)(Ee);function Ee(ye){var ue;return Object(m.a)(this,Ee),ue=ce.call(this,ye),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(le){ue.textArea=le},ue.handleResize=function(le){var $=ue.state.resizeStatus,me=ue.props,re=me.autoSize,ae=me.onResize;if($!==K.NONE)return;typeof ae=="function"&&ae(le),re&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var le=ue.props.autoSize;if(!le||!ue.textArea)return;var $=le.minRows,me=le.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 le=ue.props,$=le.prefixCls,me=$===void 0?"rc-textarea":$,re=le.autoSize,ae=le.onResize,Se=le.className,oe=le.disabled,ee=ue.state,J=ee.textareaStyles,Q=ee.resizeStatus,ve=Object(v.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),_e=U()(me,Se,Object(g.a)({},"".concat(me,"-disabled"),oe));"value"in ve&&(ve.value=ve.value||"");var Te=Object(A.a)(Object(A.a)(Object(A.a)({},ue.props.style),J),Q===K.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return C.createElement(w,{onResize:ue.handleResize,disabled:!(re||ae)},C.createElement("textarea",Object(M.a)({},ve,{className:_e,style:Te,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:K.NONE},ue}return Object(T.a)(Ee,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!L()(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,le=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,le)}}catch($){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ee}(C.Component),fe=te,de=function(Oe){Object(b.a)(Ee,Oe);var ce=Object(y.a)(Ee);function Ee(ye){var ue;Object(m.a)(this,Ee),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 le=typeof ye.value=="undefined"||ye.value===null?ye.defaultValue:ye.value;return ue.state={value:le},ue}return Object(T.a)(Ee,[{key:"setValue",value:function(ue,le){"value"in this.props||this.setState({value:ue},le)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return C.createElement(fe,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}}]),Ee}(C.Component),Ce=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"),m=o("oBTY"),T=o("miYZ"),b=o("tsqr"),y=o("rAM+"),C=o("tJVT"),A=o("PpiC"),g=o("q1tI"),e=o.n(g),f=o("bdgK"),r=o("9og8"),l=o("WmNS"),n=o.n(l),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"]},a={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),u={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"]}},S=function(K,te){return te.map(function(fe){return{label:fe,kind:K.languages.CompletionItemKind.Keyword,insertText:fe}})},E=function(K){return Object.keys(u.tables).map(function(te){return{label:te,kind:K.languages.CompletionItemKind.Variable,insertText:te}})},_=function(K,te){var fe=u.tables[K];return fe?fe.map(function(de){return{label:de,kind:te.languages.CompletionItemKind.Field,insertText:de}}):[]};function P(L,K,te,fe,de){var Ce=K.getWordUntilPosition(te),Oe={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},ce=fe.map(function(Ee){return{label:Ee,kind:L.languages.CompletionItemKind.Keyword,insertText:Ee,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}});return de.map(function(Ee){ce.push(Object(M.a)(Object(M.a)({},Ee),{},{range:Oe}))}),ce}var R=function(L){u.languages.map(function(de){return L.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits:function(Oe,ce,Ee){return Object(r.a)(n.a.mark(function ye(){var ue;return n.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return ue=s()(Oe.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:Oe.getFullModelRange(),text:ue}]);case 2:case"end":return $.stop()}},ye)}))()}}),de});var K=c.quickKey.map(function(de){return{label:de.label,kind:L.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),te=h.quickKey.map(function(de){return{label:de.label,kind:L.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),fe=a.quickKey.map(function(de){return{label:de.label,kind:L.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}});L.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ce,Oe){var ce=Ce.getWordUntilPosition(Oe),Ee={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Ce.getLineContent(Oe.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(m.a)(c.keywords.map(function(ue){return{label:ue,kind:L.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}})),Object(m.a)(c.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}})))}}}),L.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ce,Oe){var ce=Ce.getWordUntilPosition(Oe),Ee={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(m.a)(i.keywords.map(function(ye){return{label:ye,kind:L.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}}))}}}),L.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ce,Oe){var ce=Ce.getWordUntilPosition(Oe),Ee={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Ce.getLineContent(Oe.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(m.a)(a.keywords.map(function(ue){return{label:ue,kind:L.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}})),Object(m.a)(a.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}})))}}}),L.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ce,Oe){var ce=Ce.getWordUntilPosition(Oe),Ee={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=Ce.getLineContent(Oe.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(m.a)(h.keywords.map(function(ue){return{label:ue,kind:L.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}})),Object(m.a)(h.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}})))}}})},x="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",w=o("fjLI"),v=o("LvDl"),O=o("+ua5");function U(L){return/^\d+$/.test(L)?"".concat(L,"px"):L}function I(){}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 L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=L;if(Array.isArray(L)){for(var te=0;te<L.length;te++){var fe=V[L[te]];if(fe)return fe}return K[0]}return V[K]||K}var D=null,W=z.b=function(L){var K=L.width,te=K===void 0?"100%":K,fe=L.height,de=fe===void 0?"100%":fe,Ce=L.value,Oe=L.language,ce=Oe===void 0?"javascript":Oe,Ee=L.style,ye=Ee===void 0?{}:Ee,ue=L.options,le=ue===void 0?{}:ue,$=L.overrideServices,me=$===void 0?{}:$,re=L.theme,ae=re===void 0?"vs-dark":re,Se=L.onEditBlur,oe=L.onSave,ee=L.autoHeight,J=ee===void 0?!1:ee,Q=L.forbidCopy,ve=Q===void 0?!1:Q,_e=L.onChange,Te=_e===void 0?I:_e,Ge=L.editorDidMount,qe=Ge===void 0?I:Ge,ut=L.onFocus,st=ut===void 0?I:ut,ft=L.filename,gt=ft===void 0?"educoder.txt":ft,Ve=L.errorLine,ke=L.errorContent,dt=ke===void 0?"":ke,Bt=Object(A.a)(L,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),vt=Object(g.useRef)(),Rt=Object(g.useRef)({}),ot=Object(g.useRef)(),Je=Object(g.useRef)(),et=Object(g.useRef)(!1),Me=Object(g.useRef)(),Be=Object(g.useState)(!1),Xe=Object(C.a)(Be,2),Ke=Xe[0],$e=Xe[1];function _t(){var Pt;return vt.current&&(Pt=new f.default(function(an){var nn=Object(y.a)(an),rn;try{for(nn.s();!(rn=nn.n()).done;){var Tn=rn.value;(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&Rt.current.instance.layout()}}catch(sn){nn.e(sn)}finally{nn.f()}}),Pt.observe(vt.current)),Pt}function Ft(){b.b.warn(decodeURIComponent(x))}var qt=function(){var an=Rt.current.instance;if(Ce!=null&&an&&Ke){var nn=an.getModel();nn&&Ce!==nn.getValue()&&(N=!0,nn.setValue(Ce),an.layout(),N=!1)}};Object(g.useEffect)(function(){Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){qt()},500)},[Ce,Ke,Rt.current]),Object(g.useEffect)(function(){if(Ve&&Rt.current&&Rt.current.instance){var Pt=Rt.current.instance;Pt.changeViewZones(function(nn){var rn=document.createElement("div");rn.style.padding="10px 20px",rn.style.width="calc(100% - 20px)",rn.className="my-error-line-wrp",rn.innerHTML=dt,nn.addZone({afterLineNumber:Ve||11,heightInLines:3,domNode:rn})});var an={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}};Pt.addOverlayWidget(an),Pt.revealPositionInCenter({lineNumber:20,column:1})}},[Ve,Rt.current,Ke]);function bn(){var Pt=Rt.current.instance;if(Pt){var an=Pt.getSelection(),nn=Rt.current.pastePos||{},rn=new D.Range(nn.startLineNumber||an.endLineNumber,nn.startColumn||an.endColumn,nn.endLineNumber||an.endLineNumber,nn.endColumn||an.endColumn);setTimeout(function(){Pt.executeEdits("",[{range:rn,text:""}])},300)}}function At(Pt){(window.navigator.platform.match("Mac")?Pt.metaKey:Pt.ctrlKey)&&Pt.keyCode==83&&(Pt.preventDefault(),oe())}var Et=function(){if(J&&Rt.current.instance){var an=Rt.current.instance.getContentHeight();tt(an<de?de:an)}else tt(de)};function je(Pt){var an=document.createEvent("MouseEvents");an.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Pt.dispatchEvent(an)}function rt(Pt,an){var nn=window.URL||window.webkitURL||window,rn=new Blob([an]),Tn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Tn.href=nn.createObjectURL(rn),Tn.download=Pt,je(Tn)}Object(g.useEffect)(function(){Et()},[Et]),Object(g.useEffect)(function(){vt.current&&!Ke&&Promise.all([o.e(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(Pt){try{D=Pt,Rt.current.instance=D.editor.create(vt.current,{value:Ce,language:H(ce),theme:ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},me);var an=Rt.current.instance,nn=w.d._menuItems,rn=Object(m.a)(nn).find(function(kn){return kn[0]._debugName=="EditorContext"}),Tn=rn[1],sn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],un=function(Yn,tr){var pr=Yn._first;do{var ar,mn,en=tr.includes((ar=pr.element)===null||ar===void 0||((mn=ar.command)===null||mn===void 0)?void 0:mn.id);en&&Yn._remove(pr)}while(pr=pr.next)};if(qe(an,D),setTimeout(function(){Et(),Rt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){rt(gt||"educoder.txt",an.getValue())}}),an.getDomNode().addEventListener("input",function(){ot.current.autoFormat&&an.getAction("editor.action.formatDocument").run()})},500),Rt.current.subscription=an.onDidChangeModelContent(function(kn){et.current?clearTimeout(Me.current):(Et(),Te(an.getValue(),kn)),Me.current=setTimeout(function(){et.current=!1},500)}),window.Monaco||R(D,H(ce)),ve&&(un(Tn,sn),vt.current.classList.add("noCopyPaste"),an.onKeyDown(function(kn){var Yn=kn.keyCode,tr=kn.ctrlKey,pr=kn.metaKey;(Yn===33||Yn===52)&&(pr||tr)&&(Ft(),kn.preventDefault())})),window.Monaco=D,Se&&an.onDidBlurEditorWidget(function(){Se(an.getValue())}),st&&an.onDidFocusEditorText(function(){st(an.getValue())}),ve){an.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_V,function(){return Ft(),null}),an.onDidPaste(function(kn){Rt.current.pastePos=kn});try{window.addEventListener("paste",bn)}catch(kn){}}var Jn=_t();return $e(!0),function(){var kn=Rt.current.instance;kn.dispose();var Yn=kn.getModel();Yn&&Yn.dispose(),Rt.current.subscription&&Rt.current.subscription.dispose(),ve&&window.removeEventListener("paste",bn),Jn.unobserve(vt.current)}}catch(kn){}})},[]),Object(g.useEffect)(function(){var Pt=Rt.current.instance;if(Pt&&Ke)return document.addEventListener("keydown",At,!1),function(){document.removeEventListener("keydown",At)}},[oe,Ke]),Object(g.useEffect)(function(){var Pt=Rt.current.instance;if(Pt&&Ke){var an=H(ce);D.editor.setModelLanguage(Pt.getModel(),an),console.log("language:",ce,Pt.getModel(),an)}},[ce,Ke]),Object(g.useEffect)(function(){var Pt=Rt.current.instance;Pt&&Ke&&D.editor.setTheme(ae)},[ae,Ke]),Object(g.useEffect)(function(){var Pt=Rt.current.instance;ot.current=le,Pt&&Ke&&(Pt.updateOptions(Object(M.a)({},le)),setTimeout(function(){Pt.getModel().updateOptions(Object(M.a)({},le))},200))},[JSON.stringify(le),Ke]),Object(g.useEffect)(function(){var Pt=Rt.current.instance;Pt&&Ke&&Pt.layout()},[te,de,Ke]);var at=Object(g.useState)(U(te)),Ae=Object(C.a)(at,2),Fe=Ae[0],Tt=Ae[1],yt=Object(g.useState)(U(de)),Ot=Object(C.a)(yt,2),Lt=Ot[0],tt=Ot[1],Ut=Object(M.a)(Object(M.a)({},ye),{},{width:Fe,height:Lt});return e.a.createElement("div",{className:"my-monaco-editor",ref:vt,style:Ut})};function F(L){var K=L.width,te=K===void 0?"100%":K,fe=L.height,de=fe===void 0?"100%":fe,Ce=L.original,Oe=L.modified,ce=L.language,Ee=L.options,ye=Ee===void 0?{}:Ee,ue=Object(g.useRef)(),le=Object(g.useState)(null),$=Object(C.a)(le,2),me=$[0],re=$[1];function ae(J){var Q;return ue.current&&(Q=new f.default(function(ve){var _e=Object(y.a)(ve),Te;try{for(_e.s();!(Te=_e.n()).done;){var Ge=Te.value;(Ge.target.offsetHeight>0||Ge.target.offsetWidth>0)&&J.layout()}}catch(qe){_e.e(qe)}finally{_e.f()}}),Q.observe(ue.current)),Q}Object(g.useEffect)(function(){ue.current&&Promise.all([o.e(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(J){D=J;var Q=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(Q);var ve=ae(Q);return function(){Q.dispose();var _e=Q.getModel();_e&&_e.dispose(),ve.unobserve(ue.current)}})},[]),Object(g.useEffect)(function(){me&&me.setModel({original:D.editor.createModel(Ce,ce),modified:D.editor.createModel(Oe,ce)})},[Ce,Oe,ce,me]);var Se=U(te),oe=U(de),ee={width:Se,height:oe};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:ee})}},ZpRC:function(k,z,o){"use strict";function M(r){return typeof r=="object"&&r!=null&&r.nodeType===1}function m(r,l){return(!l||r!=="hidden")&&r!=="visible"&&r!=="clip"}function T(r,l){if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){var n=getComputedStyle(r,null);return m(n.overflowY,l)||m(n.overflowX,l)||function(i){var a=function(c){if(!c.ownerDocument||!c.ownerDocument.defaultView)return null;try{return c.ownerDocument.defaultView.frameElement}catch(h){return null}}(i);return!!a&&(a.clientHeight<i.scrollHeight||a.clientWidth<i.scrollWidth)}(r)}return!1}function b(r,l,n,i,a,c,h,d){return c<r&&h>l||c>r&&h<l?0:c<=r&&d<=n||h>=l&&d>=n?c-r-i:h>l&&d<n||c<r&&d>n?h-l+a:0}var y=function(r,l){var n=window,i=l.scrollMode,a=l.block,c=l.inline,h=l.boundary,d=l.skipOverflowHiddenElements,s=typeof h=="function"?h:function(J){return J!==h};if(!M(r))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,S=[],E=r;M(E)&&s(E);){if((E=E.parentElement)===u){S.push(E);break}E!=null&&E===document.body&&T(E)&&!T(document.documentElement)||E!=null&&T(E,d)&&S.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,w=r.getBoundingClientRect(),v=w.height,O=w.width,U=w.top,I=w.right,N=w.bottom,V=w.left,H=a==="start"||a==="nearest"?U:a==="end"?N:U+v/2,D=c==="center"?V+O/2:c==="end"?I:V,W=[],F=0;F<S.length;F++){var L=S[F],K=L.getBoundingClientRect(),te=K.height,fe=K.width,de=K.top,Ce=K.right,Oe=K.bottom,ce=K.left;if(i==="if-needed"&&U>=0&&V>=0&&N<=P&&I<=_&&U>=de&&N<=Oe&&V>=ce&&I<=Ce)return W;var Ee=getComputedStyle(L),ye=parseInt(Ee.borderLeftWidth,10),ue=parseInt(Ee.borderTopWidth,10),le=parseInt(Ee.borderRightWidth,10),$=parseInt(Ee.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in L?L.offsetWidth-L.clientWidth-ye-le:0,Se="offsetHeight"in L?L.offsetHeight-L.clientHeight-ue-$:0;if(u===L)me=a==="start"?H:a==="end"?H-P:a==="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,le,R+D,R+D+O,O),me=Math.max(0,me+x),re=Math.max(0,re+R);else{me=a==="start"?H-de-ue:a==="end"?H-Oe+$+Se:a==="nearest"?b(de,Oe,te,ue,$+Se,H,H+v,v):H-(de+te/2)+Se/2,re=c==="start"?D-ce-ye:c==="center"?D-(ce+fe/2)+ae/2:c==="end"?D-Ce+le+ae:b(ce,Ce,fe,ye,le+ae,D,D+O,O);var oe=L.scrollLeft,ee=L.scrollTop;H+=ee-(me=Math.max(0,Math.min(ee+me,L.scrollHeight-te+Se))),D+=oe-(re=Math.max(0,Math.min(oe+re,L.scrollWidth-fe+ae)))}W.push({el:L,top:me,left:re})}return W};function C(r){return r===Object(r)&&Object.keys(r).length!==0}function A(r,l){l===void 0&&(l="auto");var n="scrollBehavior"in document.body.style;r.forEach(function(i){var a=i.el,c=i.top,h=i.left;a.scroll&&n?a.scroll({top:c,left:h,behavior:l}):(a.scrollTop=c,a.scrollLeft=h)})}function g(r){return r===!1?{block:"end",inline:"nearest"}:C(r)?r:{block:"start",inline:"nearest"}}function e(r,l){var n=!r.ownerDocument.documentElement.contains(r);if(C(l)&&typeof l.behavior=="function")return l.behavior(n?[]:y(r,l));if(n)return;var i=g(l);return A(y(r,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var M;(function(m){var T=/^\s+/,b=/\s+$/,y=0,C=m.round,A=m.min,g=m.max,e=m.random;function f($,me){if($=$||"",me=me||{},$ instanceof f)return $;if(!(this instanceof f))return new f($,me);var re=r($);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,Se,oe,ee;return me=$.r/255,re=$.g/255,ae=$.b/255,me<=.03928?Se=me/12.92:Se=m.pow((me+.055)/1.055,2.4),re<=.03928?oe=re/12.92:oe=m.pow((re+.055)/1.055,2.4),ae<=.03928?ee=ae/12.92:ee=m.pow((ae+.055)/1.055,2.4),.2126*Se+.7152*oe+.0722*ee},setAlpha:function($){return this._a=W($),this._roundA=C(100*this._a)/100,this},toHsv:function(){var $=a(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=a(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 Se=f($);re="#"+s(Se._r,Se._g,Se._b,Se._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,Se=!me&&ae&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return Se?$==="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(u,arguments)},saturate:function(){return this._applyModification(S,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(I,arguments)},complement:function(){return this._applyCombination(w,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(O,arguments)}},f.fromRatio=function($,me){if(typeof $=="object"){var re={};for(var ae in $)$.hasOwnProperty(ae)&&(ae==="a"?re[ae]=$[ae]:re[ae]=Ce($[ae]));$=re}return f($,me)};function r($){var me={r:0,g:0,b:0},re=1,ae=null,Se=null,oe=null,ee=!1,J=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(ye($.r)&&ye($.g)&&ye($.b)?(me=l($.r,$.g,$.b),ee=!0,J=String($.r).substr(-1)==="%"?"prgb":"rgb"):ye($.h)&&ye($.s)&&ye($.v)?(ae=Ce($.s),Se=Ce($.v),me=c($.h,ae,Se),ee=!0,J="hsv"):ye($.h)&&ye($.s)&&ye($.l)&&(ae=Ce($.s),oe=Ce($.l),me=i($.h,ae,oe),ee=!0,J="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:ee,format:$.format||J,r:A(255,g(me.r,0)),g:A(255,g(me.g,0)),b:A(255,g(me.b,0)),a:re}}function l($,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=g($,me,re),Se=A($,me,re),oe,ee,J=(ae+Se)/2;if(ae==Se)oe=ee=0;else{var Q=ae-Se;ee=J>.5?Q/(2-ae-Se):Q/(ae+Se);switch(ae){case $:oe=(me-re)/Q+(me<re?6:0);break;case me:oe=(re-$)/Q+2;break;case re:oe=($-me)/Q+4;break}oe/=6}return{h:oe,s:ee,l:J}}function i($,me,re){var ae,Se,oe;$=F($,360),me=F(me,100),re=F(re,100);function ee(ve,_e,Te){return Te<0&&(Te+=1),Te>1&&(Te-=1),Te<1/6?ve+(_e-ve)*6*Te:Te<1/2?_e:Te<2/3?ve+(_e-ve)*(2/3-Te)*6:ve}if(me===0)ae=Se=oe=re;else{var J=re<.5?re*(1+me):re+me-re*me,Q=2*re-J;ae=ee(Q,J,$+1/3),Se=ee(Q,J,$),oe=ee(Q,J,$-1/3)}return{r:ae*255,g:Se*255,b:oe*255}}function a($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=g($,me,re),Se=A($,me,re),oe,ee,J=ae,Q=ae-Se;if(ee=ae===0?0:Q/ae,ae==Se)oe=0;else{switch(ae){case $:oe=(me-re)/Q+(me<re?6:0);break;case me:oe=(re-$)/Q+2;break;case re:oe=($-me)/Q+4;break}oe/=6}return{h:oe,s:ee,v:J}}function c($,me,re){$=F($,360)*6,me=F(me,100),re=F(re,100);var ae=m.floor($),Se=$-ae,oe=re*(1-me),ee=re*(1-Se*me),J=re*(1-(1-Se)*me),Q=ae%6,ve=[re,ee,oe,oe,J,re][Q],_e=[J,re,re,ee,oe,oe][Q],Te=[oe,oe,J,re,re,ee][Q];return{r:ve*255,g:_e*255,b:Te*255}}function h($,me,re,ae){var Se=[de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16))];return ae&&Se[0].charAt(0)==Se[0].charAt(1)&&Se[1].charAt(0)==Se[1].charAt(1)&&Se[2].charAt(0)==Se[2].charAt(1)?Se[0].charAt(0)+Se[1].charAt(0)+Se[2].charAt(0):Se.join("")}function d($,me,re,ae,Se){var oe=[de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16)),de(Oe(ae))];return Se&&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[3].charAt(0)==oe[3].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0)+oe[3].charAt(0):oe.join("")}function s($,me,re,ae){var Se=[de(Oe(ae)),de(C($).toString(16)),de(C(me).toString(16)),de(C(re).toString(16))];return Se.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 u($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s-=me/100,re.s=L(re.s),f(re)}function S($,me){me=me===0?0:me||10;var re=f($).toHsl();return re.s+=me/100,re.s=L(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=L(re.l),f(re)}function P($,me){me=me===0?0:me||10;var re=f($).toRgb();return re.r=g(0,A(255,re.r-C(255*-(me/100)))),re.g=g(0,A(255,re.g-C(255*-(me/100)))),re.b=g(0,A(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=L(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 w($){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 O($){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 I($,me,re){me=me||6,re=re||30;var ae=f($).toHsl(),Se=360/re,oe=[f($)];for(ae.h=(ae.h-(Se*me>>1)+720)%360;--me;)ae.h=(ae.h+Se)%360,oe.push(f(ae));return oe}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Se=re.s,oe=re.v,ee=[],J=1/me;me--;)ee.push(f({h:ae,s:Se,v:oe})),oe=(oe+J)%1;return ee}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Se=f(me).toRgb(),oe=re/100,ee={r:(Se.r-ae.r)*oe+ae.r,g:(Se.g-ae.g)*oe+ae.g,b:(Se.b-ae.b)*oe+ae.b,a:(Se.a-ae.a)*oe+ae.a};return f(ee)},f.readability=function($,me){var re=f($),ae=f(me);return(m.max(re.getLuminance(),ae.getLuminance())+.05)/(m.min(re.getLuminance(),ae.getLuminance())+.05)},f.isReadable=function($,me,re){var ae=f.readability($,me),Se,oe;oe=!1,Se=le(re);switch(Se.level+Se.size){case"AAsmall":case"AAAlarge":oe=ae>=4.5;break;case"AAlarge":oe=ae>=3;break;case"AAAsmall":oe=ae>=7;break}return oe},f.mostReadable=function($,me,re){var ae=null,Se=0,oe,ee,J,Q;re=re||{},ee=re.includeFallbackColors,J=re.level,Q=re.size;for(var ve=0;ve<me.length;ve++)oe=f.readability($,me[ve]),oe>Se&&(Se=oe,ae=f(me[ve]));return f.isReadable($,ae,{level:J,size:Q})||!ee?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){te($)&&($="100%");var re=fe($);return $=A(me,g(0,parseFloat($))),re&&($=parseInt($*me,10)/100),m.abs($-me)<1e-6?1:$%me/parseFloat(me)}function L($){return A(1,g(0,$))}function K($){return parseInt($,16)}function te($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function fe($){return typeof $=="string"&&$.indexOf("%")!=-1}function de($){return $.length==1?"0"+$:""+$}function Ce($){return $<=1&&($=$*100+"%"),$}function Oe($){return m.round(parseFloat($)*255).toString(16)}function ce($){return K($)/255}var Ee=function(){var $="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+$+")",ae="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Se="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+Se),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+Se),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+Se),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!!Ee.CSS_UNIT.exec($)}function ue($){$=$.replace(T,"").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=Ee.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=Ee.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=Ee.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=Ee.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=Ee.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=Ee.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=Ee.hex8.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=Ee.hex6.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),format:me?"name":"hex"}:(re=Ee.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=Ee.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 le($){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,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return function(m){var T=M,b=T.lib,y=b.CipherParams,C=T.enc,A=C.Hex,g=T.format,e=g.Hex={stringify:function(f){return f.ciphertext.toString(A)},parse:function(f){var r=A.parse(f);return y.create({ciphertext:r})}}}(),M.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return m});var M=o("VTBJ");function m(T,b){var y=Object(M.a)({},T);return Array.isArray(b)&&b.forEach(function(C){delete y[C]}),y}},biw7:function(k,z,o){"use strict";var M=o("q1tI"),m=o.n(M),T=M.createContext(null);z.a=T},c5Ni:function(k,z,o){},cFMs:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF61XQl4VdW1/m9GIAlhDGEIBATB2aetvCfYwYoDqKioVZGi4vxq9VlHVNSqtCA+obaKoBat4gRiHVBQBH2aiG3VKgIhYQhhyEQIhAwkuee8b49n7X32ubkRe7+PL3c4e5999vr3v/619jqHGH7gl+/7qdhSdAI8nAJgFHx/FHwUwPdyAOQAfgZ8X55V/mWf2b8YxF/+Ir/xj+R7/V4ed6jt2blUn3ocpG91fjU+dQwdl++RmWT9qWug79Wl0WPJ5fL+AcTYG/aKyXlhf8VH4zt1jB4faWfblfZL+1LHGedVX6r+aGd6kMEYla1CWIqJIR/qy/f/kY6y9vGAdzmAcfC83BBAFGgMoBAj6AtVxrYARo2r+yJANABJjGqDIQRkBV4FYPbZ08MXb+hY1Htybn5NtH1UG8cxDEzqawUs/Vl1G5OLT9lUmk0BRYNDfS87UH0rYKohG1anHxxwMPqmA3Oghp+PXKNaE98XYH5FUVe04BYg9lv4fm8+UzYD8YsiKzaKiZSROgIA/Z1eTKg9WZr2OUNglTOvgaJWqQSfcU0EYOq6ovpTzKIRROdHAdsCDycpxVgWkCij0bUVAqYFGj5nDiDp7+n1WgxqgEP2QQ5PjJ3vyWDcDW4tvgLx2IPw/YHBSeTKDRneYgn1u3aJFkNo9xLlGhOxheNctmtzAVODgYJN9tVhe6uNa6FRluPvCbC065NLnjKaAoHxHXGXDrekCF5IDgIY7Ro5iknLKEcW5SJVU4o0N+o67SL9suKz4GMOfP9IE1jyUxRbUQMaLsW1qi33aOsx24AuQCvXRsFK+0nEpGpWlLbTFiPjss8Zs8dsu16q81y+ygE44zDLVFGAc7GSC0yU1ZwgtKHRSahId5l0K9/3Yyj7/GHAnx6sCqV1HG6QA5q5RuWXbV2iACnFvecFi0oZzwkCFRDIfg2Xahk50p2yc9FxRTBlVHuXy3O5YY8GLnKuFBtSt6bGwr+jwp61TyGyg4KQuk/SRoPS9Z1kriiXyU2iaY+wn0t7RbGXyWRJAcyvXpeN/ftfhIeJ2jBGP8qwDq3l1C8ECNpNRrjRRMa09ZrNjIncnmYlAq4O2yvOltdpXBvRa6FrshZTSJyr3+VfKs5D7EIBQLWVBSgFlhCjJcNMiY5JWoBpuCbUaf7W4kLE8RY8/xgNbg50wiDU9VD3EqlFyIQ7XRkBmzaGbdREuiciMqSAo7pKgS3S1dLxqAjNEQCEtKUFXg08xkQ04iIGNZiNaCgKSjX/iq2oPRQLBnkNMdkKqAbglMa02DCECAcPOSLGoFkAwoQMxsHV7q+FjzxjQkLsFaFNDIAlEN+dzXkpoFCm4OeyQWe5bheYE7EQ687luu28mZ5ZK8XCh0NZXTGUAzhKJ6lrsN2lYXSaF1NujRyQlKay27mgQNgyIQ2pvswUBXO3kQATbrGhKMxcNOVjpSX06vABQ38kcH+GdlHBjZX41Mzjcq0Oce0EgCuZSwBA2ctuT9nOALXFtEYuTAHLGp+d93JFiS7GcUWWxnHEveoFSNMdSgMqk0eZXupAzYBG6NkhzPgBhN2cZ+GCfnPxMqG5CKD4qooQ9s5kpJoVR6TIumLsoMFPDeGIIrWLoEDpQPPZGs0FVGeEqiyXDHjpNVKfZYOPZAaou+LpiiQy9i4tpq4vxBPUrAmAZLtLmyWdrpIKftd7s5EbYKXFj8D3pxtodIl66pa08RLoH3pMR+LdyQZWtMcH6NrmkRGrAiV3c66ok7TngE9mu8oBOuYGncKeMi7J2CtAaL1KVn1UZt8+Vq9Mh74yosSICFPjgLjBhNFlR+TlFv8hgIk8l79ch6sUpDyEJmJb92kxFNU6RmRmiWWaKrBdlAKjqz0/r0yBaIBZaQDKVprJCMOEUiBEPzjTIwnA7NJxNvhDKQiVACUeQbEZFejUNWqXSEDlZBnlFiwRT1MQFKBGQJBIllsgcgp9qtt8k1t5hr7s82/MJCr1qfaKlHt2odVr6w5HxEUBFBLrltaKOjYqrWAb3OkaLcBEJWGVAem57PxYwut37CNG6S7Dw0pD8z/yPW2no00rVZEIhNrNEl1FXW+Ui0wYMSZmNgOufmnRNADPBIAmmivKBeiL7mi/ka5U4sK0YSPa265Xj8OqUoisZnC4VRssNgD1mBKAkDKUcq/U7dN51/qR7jPKA7Qek5+NPUPrGM06DoB06N4os9igiNJsLreX7HdiYeie+cZ1c6wUMQy0d8RD+kIZmRMNdS1K66hqBPFb/dqVqPt0OXr/9FzknvgzcXWuLSXNDB52L3sGDev/iUGX3oRuQ4+Q2WzbjTmCAQoWO68VxTTONInFoqovi732r/8a3UceDaSmmiU/el4ogxFWoq4vBEACIG4nOwigFRhA+4H9aKrYjO6HHx+MQ+OJvbGTsBQktktM5CIVMN16S/xq/hYArLTobgAzzfycGhhlATu3FOH+iNFqP3wd1e8vRv45U9HrJ+ca4PLbWuHH20L1YLten4/9675AwZRbkXXYkWYZiO8jJbMLWYbhtEbNqjfQsnu7VXYTReeUXYGugwrR55Qz5UIgUaK6JhkM1Hy8HDX/twLdCoahYNKVSO2WZSy4HW+8gPaGvQl8SNiYsbQMDJn834rOgrYSc/HGA2itq0br3ho0VWxDU0UpDtbV8OMGX3wdsocfjR1Ln8HB2srEvkv+mtl3AAZdcE34fA6wuDtMDDZ+hbyeq7RtN2LoLdiFMAXtNeSGyOTrVejDP9iMhvX/QPbhxyGlaxZqVy0JAHbKOWhYtxa7ly1E4bUzULNqKfZ9/VlSk0EPGnnXE0jN6W6BQDKq72P7ojk4sHl9p/tlDXJGHI2CS663CiDDubzWPdWoeG0hN3BGbi8MvuRaZPTuq+evbP4f0Lq3FrGUVGMcvhcX5nN8n5rRBSN/+wdJBmKBt1TuwK7lr6Btby3irS2ha2Jtug4ail4n/gTZI47Blmf/gJaqHUhJz7DKdOia9OG1taJrvwIMnca4hY+og8UQgQvVKqoezC/9fCJ8703du0Gvdg7LEb1pUAomaCz5CuULH8SQq2cga9TxqP3QBFjdJ2+h8p0XMHLGs2hY/wWad2wOgbqx9Fu+UnNGHY+03F5kJYtUQr8zLkFKBmMxC+TyswJY/vhL0a3gMDqzBJTmhDVu3YiqD5YJgF16vTyO/YnWl15zM3b+7a9o2LwBadk5KJx8IzJ65/Fhlc3/Pdrq9+CIu+YEhvaBTfPug9fWhlG3MSAFebDSJ+6H19qKkfz7wODtDfuw6YkZ3PxpOT04cA7WVaPboKHIH3chuvQrAFJUIABseW4WB9hh19wDxlCkHFb3y+a2bP4DEmAsI2W5ZX1+OkcSGEmLfqnB/NLiJQAmBWXL5Pqo9rDFLz+M6iDx3mtsQMmMKeh7xmXoc9ok1K5aajBY5bJnsO/LTzDyoUVWKbTsz/ex8+U/Yt83n2PIVXcha/jRZoLXlUMzQO5j+/OPcQYbfPktyD78aHGeUOLVXDwNG79GxatPBwwWcX0GwzNW93wOsn0bvkZ6Ti6GX3cXYukZAcDufoxUrQKb5kqA3T7LAFLpH2cIgBkMJjDYuqcG6bk9EUtL59e1/dX5yD3qRxg4cSo1Fj9YMdhh10xHZp8BjmJDH611NRbAEpBX5E+2lgszXEymJvbA93Odm9mGiFfRn/yrTuzIG22e9Wtk5g3CoCvusAB2NsoXPAivpRlDb5rJe9iz5i3Emw8Y+oUJ/IPVO5F7zH8ivVdfeSZxAT2OH4MMvTLd+jAA2M3IHsEAai0Gx5gbSv4VAIwxWFR+S4FV98m2xjzsfOtFZA8dhdxjT+JGLXtqJndrhVNvJiaKYfsrT3PdOWTyr43vK15j33sYeZsCHrVs4L5CANPkI1xqwGDTkdlX1YOaUaTJYMxFWu4xxFKJtJYDgaoezN9SdBLisbV6deuIgxjOmSwN2IaPTWXB+dcedr3yBBrLvsWIe56WGuxl5J/zK/T8rzNRMmMqep0yAXlnXsonpGz2b7g7TPZVMPlm5Bx5AoksSQJYMpkG2JRbkD38KDMKdSZePQiALQgYjGfoSd1YiAHpHEnpQOQFAxjTYJ15aQ2mS3Zkh3xtiYg0zGBmlKgZ7OrpyMyTAKMgBCSD3U9cpBqlDaQoYEWxlxVF+qXFtwL+Y3SBB0zmytBb2Xg9e+ax9UUrsOuN+Rh5/3PYu/YDVL8vAJbZvxDlC36HwuvuF+mHGBA/sB9gwpcEF7uWPYuGDSxN8WtkFY6SBCQYLKVrN8RS0yz3bEa3JoMdZbQP9lNphAg0bPwKFa8ulAC7ztHG2kpyMlyQluAabG8t+o07PyDQGFC95l0wod/v5+ca7otFpexlMJgPxFua0bZvj57ppootqPxgKbIPOwJ5Pz1bs09GrzyuSxXAco/6MdJ4ZCvBSXRWvKUJ9d+udQCso+XQOSaL+aXFC+H7VxvdhvJFasvBlb+yE6iC2VprdqJ+7Sr0/sk52PvFhxpgPU8ah4aN/0T3o04CUmm1ppkQ3bn4Cez7lmmwO4UGC2lBtbKJuyYA3b7oMRzYsh49TzgFmXn5EZGxmaxtqdqF+n99TgDmqOqAj6ZtpfBaDxJdKOghezhbMCma9bTIv/t/ye1nfiDyb58txyVAqTUYc5EkN7bv2y+w852XOrI8Ci+7Cd0KR2qAddgAiABYEiBKth7M31T0CWLsHkZKxVbyVI3UuUfnSH5aCU4u8le8jPyzf4Vep7AVJwx3YONX2L7IpTc6npou/QZh2E2sgpvqQQkIlqZ44fFDTFMwBnNUgcDHlgWz0VKzOzTII+6chVgKY1aRHOUajEeRj5E7hZjIv1dEkRxgwQ0cpX+8T4r8WcY9kI3bSrDn81X6fK11tWjdtwdp2d3RpW9/zWD9Tj0Pmf0G8fyfWAD0RTVWoMdYPrFL/uBQgtRkPcqAUbZxgTKGmL+peCtifiFNPIu9alc9k5yNRLehxYA9q99E7UdL9UhYMtVrb+PhNYuC2KtL/8HoN2EKaj9aFjFiFZ1qdBvHpffojX7jhYbjL0sn7l/3d27c4OXYDA8FMOLojJ59kDPy2KBfzejiXMyVte3fp130vu++hB+P44g7Zunr49py/u+5BuuaX2CMvaV6Jx8vWyT01VK9Cylp6Rh5m2Q2O4Mvgbv1L4+iefd2MBc48NxfuW9JC4FLIdkU+87JTzoNEWE6Wg/mbyqu5QnW77NBrNpQA/g+6j59F3s+fkufPd50AF5rC1K7ZsncFdAlvwAFV95JXAGNUGXTyE3lKKBb+5OOFEooxaDxS/UYBW0YvAGoxSIsmXsf4s3NCBhMuLxti+ah1QC5OBmbD3aGtG7ZIQulZGZi+A0zIpKeMbRUVWDLs7P1Qhh6xe18XtWrrb7W2L1z355m57xiSO/ZJwIt9OvkhL3Rwi8tPgjfzxDRUoKbGQRNRNxYqwziaM9W8qyb0FpXhX5nXobePzvXZBUAe4tXonVPlSNpqq0ftPGBXqNPRXqvPIfIt+7iUa1U2bPh4uX18D8u8e6QCfwrAkRpp5LH7xUAUwzGzyNdkoOFNs0jLpLuE6oNa3UKoz5f9Ff53iuo+yrY+eg6YAgKJ/8GsfQu/Do2PTGd70129nXkXU8BKa5WSegx3sx9HBP5AmAKQGrCQ4CyAGYYJZo5GtZ9gYoXHuW9sRVbeOPDyOiTb4CjfMFDaNy6Iek5KbzqDnQbKiNLDnpg/zdrUfdFoFN0ZwYogN4nj0POqOO4Mao+eAPNO7bKQwmg6Eh8oPfon4o2em5U0lYYPQQwPeGK/WRkKcEUAEzMi5563p2VjyJgY1Jj07x7kNGzL5qrKpA1eASYu+3afzAGX3wDkJqGXW8/j3hzkzGXTI81bi9FLDUV2Sxy168AFAUX3ShdLXWh9pxYIEqmHky4SL+3WJiKoSwXYYPN6bosAMq+yp9+AI1bxJ4gA1gqB9lD/K/STeULHuYAG3r9A1z/6LHQ2WfZ/SVPc+FeeOXt6DZMVViIg+qK3kfl+693CNIBEy5DjxPHcENWLP4TGso63q/sf8Yk9DxxrMmYZK5L5koGu3M2F/lt++qwb92XYiwUL5zYYqgt+oBrtr5j5Ya6Pia404hpwMw+/QOxzxLSRR+g+pN30f/Mi7Fr+ctcg3UfdTwqli5E9yP+A4POm2YEE2oArbWVKFvwO6Rl5eDwm4V77dTrEDQZEfkd5Lw4fqhOkZ+d2y8CbC07t2DLvDvRbfAING0vRd7pF6P+H2uQ1r0nhlxzr9zs9SEYbCOG3/oYMvqIfTzTFYnzVvz1cZ4MNQEmfqv7bAUqV7zO0xK9x4wT86eEv++j9tMVPAURAAyoWPxnDrABZ1/G9/WClxTzn7yHfeu/Qv/TJ6Hnj8eQISmXKlpogN0xG7G0NJ7G2Lb4qU7Z0D540MSp6H7Uj+TXPg7WVGLrc7M5k+YePRrbX31SiPyJU7HrnRdR/83nyD9tEnqddKpsEyC7tXY3yhY8lABgySRT1Qjd0aIl/PQYYjxNAZ89asnUItrIDsGrRL1Lu6jfPA/bnryXJwlzjz8Z1StfQ/7ZU5CZPxjlzzyC3ONOxsBLRFmKAlhG734ygarm1aRoxgwsWOAA4y4y+L2uaAVnsD5jzkSeTmzK32NA1YrXsad4FQZMuBQ9JBtVvPQkGjav5+UxWcNGkTvRhZasfO811H1ZBMFgJwegpXXzIYClg21OB5Ucwj367XFUrX4bXfrmo6WmEn68HV37D0Hz7nL0O3UiUjIyjNxX1pDDkd6jj2Awz8OWv8zhG9hDp94GliSlAPNamrDtr3Mx5LLfIDWLVZiYIj7MYIl0VTKaK/n2Mb+seCE872onO+no0GIvmudSbtUCW/Xyl1C75k0MvOgGtO3fi+oVr3CA9Ro7Hjtf+RMv0Rlw3jT0GH2qBli3wcORkp5pLWYFcKClshztTY0EYAHT1X32PipXLBEAO/18k23go2rFEp5L4gx2wsnccBWLn+QMxgE2dKRmC7XYNMBOvwA9f8TcKgW+rILgGuweGUUKF2k+yYa1iaF69dvYs/YjDLvqdpQv/jPPgw2bdgc2L/w9ehw7Gv3P/KWzHWtd88k7qPl0BboffiwGXXgtDmz+DttffUoy2BViuG2tfIP9YNUOVK8JInj2G9dgFWVCg6ldETLL/SdMQVp2roNxDx1sTOTfCs8T2/2UmcSwrQy4FUVqAmFvAiA0bvwS25+bibQefTDi9rmo/fhtVK98FflnX45eY8Yj3lCPrU/dj8LrH0Ba9x7ERc5BRp9+QeWDZlXqIr8JMxhLjRSt5C5SM5gF+KqVS0wG830BMMZgl90oGMy4Zh+V770uGIwDbGzgcq07fwKAPYpYLIb9G75Gd7ZXKo9r2r6Zg4rpuPxxk7hQF+U6j6L647dRW/QhCi68GjmHy9ybWjdS+5T+aQb3BMOvuwdpOT1xYMsGwmACYOIVQ1N5Cba9NM8BluivRtzwO6T37GvdbW4fnwTYXPVg/ubPfow4vqB6xdiLVEY2ckoO8Cm943nY9Mh1aG+ox5CrpiNr5HGoXfWGATDWv9fUiJQuXflVlC9kIn8jBlwwDem5oubRSB1I7FavWsqjPu0iSXKVu0jOYGcgb9wFpiBnEePKpZLBpIukAJt8o2Awi5kDgJ0vAKYNH2CRvVMabNStj2Dn314E23IacdMD3GDewWZsXjgbfnsbhl9/D1IyuxoAY8xTtmAm/LaDGDbtLl7vJRgwcHPVq//GA6Reo0/jJz6wmQHsz1qD0UjCb29HvLlRA469aa2r5KBjfQybdk8ISGnMraa4chQ2qOTnpEU/y+SzO4lKi0S5TqLEJM2UuxKsGohAxbOPIDWnBwZcdAM3GsvWcwabcDl3kYYg9H0NsGSXXeGVtwVpCjkWE2DMRRLtyDUYc5EfCQ3GXCQLGhY/RRiMAkykPjjAvmIMdj568sjTvmlD1MaXzBUuMqtgGBortqBr/wIMnXIz2hr3Y8fS59BcuQMDJ1yK3GNHc+NumjtdbhXN4XPRsGkddixZyBdXwcXXIpNv/whGYv23NzaITWu5zymqKZTIVwxmpTdUe7YvHBlFRiVOk7VEx+35qPxNny6B70/SzKGWqrNawGav8H5d05YNPFOfwiYlCmCELRSDDZx0LXeZZG6MaLLmwzfAKgk4wAqVZhJsx13kSsVgqnohGFvVB0sDF8kAxhjs5fkmwCxJULmcAIy7SDufGIPf3oqSx+/jW2Hs1X3UcRh47mQ0VWzFzjefR3tzE/qOPR19fzJBs1IAMJYHE6mJ+n8VY/fyV/hOx8DzpvLa+uBlgicEME12lPnsKLKTaYofqh6Mw6X0s4mIs5Jpc9VH7fOFbnqlwQA1kgRRiMGsPBqLKnma4n8elWkKxzgYIF6ah4aSb1B4xW3oxqO+QPvVfSYAxurcWarAfjHXwUpkBoxnLtJkMLb/53IRzK35nkcYLPx8rvqv12LX8lf56fqc/Avk/exsDuTqj9/l05nPUhwsaiUJU4PBSPaeVY/sevdl3lfezyei9+hfkFLr4P7HMIMJYDFZYoJSII/V2m17aa50keKGfTPzHuN7qGLLKcIthmY0ir3M9oLB2E0fm1p2w/fEc1bFl+ZfsQMe/i0UaYbb1X70pukirbvDyxcqgM0W9eyKQdm+XeN+eAdbuKHLF83hG9iH3Xg/rxow0hTJAky7SCbymYvcwDeY3QAToOQuUjOYeQsZu7tny8JH0f+si5B7zEl85DveWIQDZd9h4MTLkTPyeCNZyn7XALvt0dATpfet+zvPa3U/8kQMnHhFUOajDRyTBYdKg10pfonHsX7WTSEYJPsFu+Vt0IWyBi5hoyTEvgVzYc6ST++GF5+pM886SalA7Xg+V0iXkbwVca8BwCaj15izyOmFCyt/ZqZksFlguTAK8IYNX6Ji8RO6DdsmGX7LzFDEK1zkUvQZczryTiMaTC4KIfI/woDxv0SPE8bINIUA2JBLb0DWMKnBxJLj46p8bwnqviqWDDbWWvTSBflMRNcig5d1C5Zp31/Pqyi6DRkh3aoJyk3ziAZTDCZPy9ozhsoaMiKozKDbAT5kFKkAJjWY52Pr82TrKVlkyeOyhoxE3qlSWkTsKxpdJlsPphrxG2+b4qXwvIGmCLfvqIlwo3JPMJTa8D3U/3019q79EL3HnoXuxzGxbN6AUfXuS2iprMDAC6/hWX4azbEkYtX7r3HjdskbgJyjTpQ5G5MpD1bvQsuurbxEmOk/bRO50d2ysxwHa3ah66Bh+tayxq0laN+/F1lDRyEth+WBzK2y5p3laK2tAttQzugrixbtDWgKEAUS9tc4jn+h7bNz2SK+VTToQlrnSXQW1VS6/0BftVRuR+2n7/EdEpG5jxL4HYvwADQuZjr09sbI/I0fi0cHsIlO6vlezCbkyTJ6YhyVoDbb6bFL16t3DpSHdFdmGFUf3KBJtKf5PVo1otuTfvSKI/X4Vt6L6imRTqF3WgfMpokg1J48T4Im3fl71p6IdefvapBU1JPvOufFwlyXdBoigiZpPRg9hKcsNn7yDcCeIO1IqhqGkjd60AQtNVgy7V2pD3uXgDIjBZRxLgoQu7DQUekR0peBWzTZ29bCFDxqY1pVSkiWcrg8kyVUjo8+pTCKgWwD0uMinsma0DUmJ8yju+h8+9CV+SVrzkKcPb6J6in7ZlvqC9x166K5I1Cw9y/5YfYjoSw3bD+tOQQuyTauuq9IliL3Eugx2axpRY06ElQZBwfgDLZKEnSUBWn9GLe06/lelMESsZlyzcSWkeiJor1k6dB9nGvpwC9Z8wg89rhyq3zHNpaOIBNUYrhyaTTytNMa9LdQoOGIZG2mjGRRylL2ToEygAI2kTUkvcBto9yYzVTclhbD6LGQejCVTNPuMBFL0d/svqnvTAQ4uw8CtiTquczRWSBKor0bYOwRmhvWLIPvTVSLKACbzUwRLKUmV51BgdUFIG05aXgblNpQCc6l+nCdx9XedveKcfW55cD5H/NpNgHI5PRTYDlZThpGg1OBUblzNUlRx7lox2LPSGZSuw/JsFhEJ4egyZwA4/aoXp2NPV4RPBzjdHXJaqNIhrK0EdVjum+LdaJcrg0gDbYk27NZYG5YYkln7FV0psjCAIg0BmU0dryeUTK1TraiAKFbjw4WNOwepdeiGM0GlsuVdcY9dq59JMC4aTasLoQXX8sSy85ynoSJVxeAkmA/ChbFKgoAybCfbk/AZbej7GWzp1XrJUBHBDkFmQFI8kRnV2Rp6yy1iDT7uUS7QhYNCNRJKepc7jMhpZn7wSEAd8R2UYCkExKs10QjESDz42/B847RB7p0VUi8W+7MFTHqQCIiUKBgoedU5zLAaOsohzvVzEYnMLiXMrhRw2FYykJGbooyGWln02FkdKmYLOJ/RHOxl+v8TismAgIdaxSgDr19QgZTQ/DXrc5GSvxFeN5Eg8kSaSU7FRDSPAQQdmpCBxeE8SiYQixFj7PTK2TynCAn22JaL9qTb/3PHK68mNJqdCjKPrZGM4IBG5QUsJTVokxFvk8yux7JKP+G9kkBTNjTj2H9qofhxaebhYnS9+uIz34UOElDKGCEXJS0ig0AZSBbn6l+FDCN/qzVqNtGBAhUX2lbWy7JYC+apVe6jQQB3EuoabV0Fk2gGkDsSK8p12OD0aW7KHxsBpKfkxbth94+aYBpNvtuBXvM+Rz4sJKxNKtuswYBENVDTlZyaLdI9rMy8LYbVS4xkv1IukIZnM6p1l7B3T6h/yxU29MCiQJapGtUoIkCiUtX2d8lAlMkT5EfjItNoMui+uq4facBJtksFetWXgE//iBgPTQ42ac9O8GgDE7YRgl9Gyyu9gZ4HTcJG25bnYMgy3Zpap24XBr/LcF/KhraH9SdC2tpXFlukALSBV5jIzqB+X6geq4AWsnoMYpdcV3fC2CazdjpYOl4AAABHElEQVQGef2+WwD8Fl5c1jrTUh/rf9igUacerzJ0xH8LE3Kn7HgHQ7rcq/P/a1TAkwMwojsJGjvi0yC3/tsXDZQIkITYS/VvJ2Uj0hTUNRtgs1kvEZNEASOqTYRbDJFYcu0PCWAaaKye7Nva8fDbpsCPnQYkU36trEMBScEToZlCbs/qx45mXdEnZTI7TWCwkmubJoFeoqykJ0ftCthTbTGarc94e/sY9V0y7i8Zt/Z9+ukck/0gAKPD5Bvm371zItoxFr5/BGIeq20ugOfnIIYcePIxBQYz2WCKqG4Q/lmczsVsdjRKE7b204I0Li02sMtsFIsYwYC6ZY3sZ9Jcmcr869k168GE35A/0tOHGCsBKP8NEV+n3GGS5/9/aODhUXT7opcAAAAASUVORK5CYII="},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"),m=o("2/Rp"),T=o("T2oS"),b=o("W9HT"),y=o("14J3"),C=o("BMrR"),A=o("2qtc"),g=o("kLXV"),e=o("jCWc"),f=o("kPKH"),r=o("qVdP"),l=o("jsC+"),n=o("k1fw"),i=o("lUTK"),a=o("BvKs"),c=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),u=o("3S7+"),S=o("tJVT"),E=o("PpiC"),_=o("Znn+"),P=o("ZTPi"),R=o("WmNS"),x=o.n(R),w=o("q1tI"),v=o.n(w),O=o("B6bo"),U=o.n(O),I=o("Ty5D"),N=o("9kvl"),V=o("BoS7"),H=o("Sdc0"),D=o("oBTY"),W=o("ozfa"),F=o("MJZm"),L=o("P5Jw"),K=o("5NDa"),te=o("5rEg"),fe=o("y8nQ"),de=o("Vl3Y"),Ce=o("aBPH"),Oe=o.n(Ce),ce=function(je){var rt=je.shixunsDetail,at=je.globalSetting,Ae=je.loading,Fe=je.user,Tt=je.dispatch,yt=je.isRepository,Ot=Object(E.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Lt=Object(I.h)(),tt=Object(I.i)(),Ut=Object(w.useState)({}),Pt=Object(S.a)(Ut,2),an=Pt[0],nn=Pt[1],rn=Object(w.useRef)(),Tn=de.a.useForm(),sn=Object(S.a)(Tn,1),un=sn[0],Jn=Object(w.useState)(""),kn=Object(S.a)(Jn,2),Yn=kn[0],tr=kn[1];Object(w.useEffect)(function(){Ot.visible&&un.resetFields()},[Ot.visible]),Object(w.useEffect)(function(){var mn=sessionStorage.getItem("pathArray");if(mn){var en=mn.split(",").join("/"),Nn=en.indexOf("/")===0?en.substr(1):en;tr(Nn)}},[]),Object(w.useEffect)(function(){var mn,en;rn.current=(mn=Lt.pathname)===null||mn===void 0||((en=mn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var pr=function(){var mn=Object(c.a)(x.a.mark(function en(){var Nn,Zr,zr=arguments;return x.a.wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:return Nn=zr.length>0&&zr[0]!==void 0?zr[0]:{},Dr.next=3,Tt({type:"shixunsDetail/addRepositoryFile",payload:{id:tt.id,message:Nn.commitMessage,content:"",path:(Ot.defaultPath?Ot.defaultPath+"/":"")+Nn.path+"/"+(Nn.file||".gitkeep"),secret_repository:yt?void 0:!0}});case 3:Zr=Dr.sent,Zr!=null&&Zr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+Nn.path+"/"+(Nn.file||".gitkeep"),name:Nn.path.split("/")[Nn.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return Dr.stop()}},en)}));return function(){return mn.apply(this,arguments)}}(),ar=function(){var en,Nn;N.d.push("/shixuns/".concat(rn.current,"/").concat((en=Lt.pathname)===null||en===void 0||((Nn=en.split("/"))===null||Nn===void 0)?void 0:Nn[3]).concat(Yn?"/master/shixun_show/".concat(Yn):""))};return v.a.createElement(g.a,{width:"60%",centered:!0,visible:Ot.visible,wrapClassName:Oe.a.modal,onOk:function(){un.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},v.a.createElement("section",{className:Oe.a.bg},v.a.createElement("div",{className:Oe.a.wrap},v.a.createElement(de.a,{className:"mt10",form:un,scrollToFirstError:!0,layout:"vertical",onFinish:pr,onChange:function(){var en,Nn,Zr,zr,Ur=Object(n.a)({},un.getFieldsValue()),Dr=Ur==null||((en=Ur.path)===null||en===void 0)?void 0:en.split(""),pe=Ur==null||((Nn=Ur.file)===null||Nn===void 0)?void 0:Nn.split("");Dr!=null&&(Zr=Dr.filter(function(X){return X=="/"}))!==null&&Zr!==void 0&&Zr.length&&(Ur.path=Ur.path.substring(0,Ur.path.length-1)),pe!=null&&(zr=pe.filter(function(X){return X=="/"}))!==null&&zr!==void 0&&zr.length&&(Ur.file=Ur.file.substring(0,Ur.path.length-1)),un.setFieldsValue(Object(n.a)({},Ur)),nn(Ur)}},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:Oe.a.filePath},Ot.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(te.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(te.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(te.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"}))))))},Ee=Object(N.a)(function(Et){var je=Et.shixunsDetail,rt=Et.loading,at=Et.globalSetting,Ae=Et.user;return{shixunsDetail:je,globalSetting:at,user:Ae,loading:rt.models.index}})(ce),ye=o("7ahc"),ue=function(je){var rt=je.shixunsDetail,at=je.globalSetting,Ae=je.loading,Fe=je.user,Tt=je.dispatch,yt=je.isRepository,Ot=Object(E.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Lt=Object(I.h)(),tt=Object(I.i)(),Ut=Object(w.useState)({}),Pt=Object(S.a)(Ut,2),an=Pt[0],nn=Pt[1],rn=Object(w.useRef)(),Tn=de.a.useForm(),sn=Object(S.a)(Tn,1),un=sn[0],Jn=Object(w.useState)(""),kn=Object(S.a)(Jn,2),Yn=kn[0],tr=kn[1];Object(w.useEffect)(function(){Ot.visible&&un.resetFields()},[Ot.visible]),Object(w.useEffect)(function(){var mn=sessionStorage.getItem("pathArray");if(mn){var en=mn.split(",").join("/"),Nn=en.indexOf("/")===0?en.substr(1):en;tr(Nn)}},[]),Object(w.useEffect)(function(){var mn,en;rn.current=(mn=Lt.pathname)===null||mn===void 0||((en=mn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var pr=function(){var mn=Object(c.a)(x.a.mark(function en(){var Nn,Zr,zr=arguments;return x.a.wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:return Nn=zr.length>0&&zr[0]!==void 0?zr[0]:{},Dr.next=3,Tt({type:"shixunsDetail/addRepositoryFile",payload:{id:tt.id,message:Nn.commitMessage,content:Nn.codeMirror,path:(Ot.defaultPath?Ot.defaultPath+"/":"")+Nn.path,secret_repository:yt?void 0:!0}});case 3:Zr=Dr.sent,Zr!=null&&Zr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+Nn.path,name:Nn.path.split("/")[Nn.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return Dr.stop()}},en)}));return function(){return mn.apply(this,arguments)}}(),ar=function(){var en,Nn;N.d.push("/shixuns/".concat(rn.current,"/").concat((en=Lt.pathname)===null||en===void 0||((Nn=en.split("/"))===null||Nn===void 0)?void 0:Nn[3]).concat(Yn?"/master/shixun_show/".concat(Yn):""))};return v.a.createElement(g.a,{width:"60%",visible:Ot.visible,wrapClassName:Oe.a.modal,centered:!0,onOk:function(){un.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},v.a.createElement("section",{className:Oe.a.bg},v.a.createElement("div",{className:Oe.a.wrap},v.a.createElement(de.a,{className:"mt10",form:un,scrollToFirstError:!0,layout:"vertical",onFinish:pr,onChange:function(){var en,Nn,Zr=Object(n.a)({},un.getFieldsValue()),zr=Zr==null||((en=Zr.path)===null||en===void 0)?void 0:en.split("");(zr==null||((Nn=zr.filter(function(Ur){return Ur=="/"}))===null||Nn===void 0)?void 0:Nn.length)>1&&(Zr.path=Zr.path.substring(0,Zr.path.length-1)),un.setFieldsValue(Object(n.a)({},Zr)),nn(Zr)}},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:Oe.a.filePath},Ot.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(te.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(te.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"]}})))))))},le=Object(N.a)(function(Et){var je=Et.shixunsDetail,rt=Et.loading,at=Et.globalSetting,Ae=Et.user;return{shixunsDetail:je,globalSetting:at,user:Ae,loading:rt.models.index}})(ue),$=function(je){var rt=je.shixunsDetail,at=je.globalSetting,Ae=je.loading,Fe=je.user,Tt=je.dispatch,yt=je.isRepository,Ot=Object(E.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Lt=Object(I.h)(),tt=Object(I.i)(),Ut=Object(w.useState)({}),Pt=Object(S.a)(Ut,2),an=Pt[0],nn=Pt[1],rn=Object(w.useRef)(),Tn=de.a.useForm(),sn=Object(S.a)(Tn,1),un=sn[0],Jn=Object(w.useState)(""),kn=Object(S.a)(Jn,2),Yn=kn[0],tr=kn[1],pr=Object(w.useState)(""),ar=Object(S.a)(pr,2),mn=ar[0],en=ar[1];Object(w.useEffect)(function(){Ot.visible&&un.resetFields()},[Ot.visible]),Object(w.useEffect)(function(){var zr=Ot.defaultPath.split("/");zr.length===1?(tr(""),en(Ot.defaultPath)):(en(zr.pop()),tr(zr.join("/")+"/"))},[Ot.defaultPath]),Object(w.useEffect)(function(){var zr,Ur;rn.current=(zr=Lt.pathname)===null||zr===void 0||((Ur=zr.split("/"))===null||Ur===void 0)?void 0:Ur[2]},[]);var Nn=function(){var zr=Object(c.a)(x.a.mark(function Ur(){var Dr,pe,X=arguments;return x.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return Dr=X.length>0&&X[0]!==void 0?X[0]:{},se.next=3,Tt({type:"shixunsDetail/moveGitFile",payload:{id:tt.id,from:Ot.defaultPath,to:Yn+Dr.path,message:Dr.commitMessage||"".concat(Ot.defaultPath," rename to ").concat(Yn).concat(Dr.path," "),secret_repository:yt}});case 3:pe=se.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:Dr.path,name:Dr.path}),Ot.onClose());case 5:case"end":return se.stop()}},Ur)}));return function(){return zr.apply(this,arguments)}}(),Zr=function(){var Ur,Dr;N.d.push("/shixuns/".concat(rn.current,"/").concat((Ur=Lt.pathname)===null||Ur===void 0||((Dr=Ur.split("/"))===null||Dr===void 0)?void 0:Dr[3]).concat(Yn?"/master/shixun_show/".concat(Yn):""))};return v.a.createElement(g.a,{width:"40%",visible:Ot.visible,wrapClassName:Oe.a.modal,centered:!0,onOk:function(){un.submit()},onCancel:Ot.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},v.a.createElement("section",{className:Oe.a.bg},v.a.createElement("div",{className:Oe.a.wrap},v.a.createElement(de.a,{className:"mt10",form:un,scrollToFirstError:!0,layout:"vertical",onFinish:Nn,onChange:function(){var Ur,Dr,pe=Object(n.a)({},un.getFieldsValue()),X=pe==null||((Ur=pe.path)===null||Ur===void 0)?void 0:Ur.split("");(X==null||((Dr=X.filter(function(q){return q=="/"}))===null||Dr===void 0)?void 0:Dr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),un.setFieldsValue(Object(n.a)({},pe)),nn(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(te.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:mn}))))),v.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},v.a.createElement(te.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Ot.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Et){var je=Et.shixunsDetail,rt=Et.loading,at=Et.globalSetting,Ae=Et.user;return{shixunsDetail:je,globalSetting:at,user:Ae,loading:rt.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Se=o("m3rI"),oe=o("8j3D"),ee=o("RC3E"),J=o.n(ee),Q=ae.a.Dragger,ve=function(je){var rt=je.shixunsDetail,at=je.globalSetting,Ae=je.loading,Fe=je.user,Tt=je.dispatch,yt=je.isRepository,Ot=Object(E.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Lt=Object(I.h)(),tt=Object(I.i)(),Ut=Object(w.useState)({}),Pt=Object(S.a)(Ut,2),an=Pt[0],nn=Pt[1],rn=Object(w.useRef)(),Tn=de.a.useForm(),sn=Object(S.a)(Tn,1),un=sn[0],Jn=Object(w.useState)([]),kn=Object(S.a)(Jn,2),Yn=kn[0],tr=kn[1],pr=Object(w.useState)(),ar=Object(S.a)(pr,2),mn=ar[0],en=ar[1],Nn;Object(w.useEffect)(function(){Ot.visible&&(un.resetFields(),tr([]))},[Ot.visible]),Object(w.useEffect)(function(){rn.current=tt.id},[]),Object(w.useEffect)(function(){var X=sessionStorage.getItem("pathArray");if(X){var q=X.split(",").join("/"),se=q.indexOf("/")===0?q.substr(1):q;en(se)}},[]);var Zr=function(q){if(Nn=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var se,De,he;if(tr(q.fileList),!q.file.response)return;if(((se=q.file.response)===null||se===void 0?void 0:se.status)===0){d.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}tr(Yn.filter(function(pt){return pt.uid!==q.file.uid})),((De=q.file.response)===null||De===void 0?void 0:De.message)&&d.b.info((he=q.file.response)===null||he===void 0?void 0:he.message)}},zr=function(){var X=Object(c.a)(x.a.mark(function q(se){var De;return x.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(se.response){pt.next=3;break}return d.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),pt.abrupt("return");case 3:return pt.next=5,Tt({type:"shixunsDetail/deleteGitFile",payload:{id:tt.id,path:mn?"".concat(mn,"/").concat(se.name):se.name,message:un.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(mn?"".concat(mn,"/").concat(se.name):se.name),secret_repository:yt?null:!0}});case 5:De=pt.sent,De.status===0&&(tr(Yn.filter(function(vn){return vn.uid!==se.uid})),d.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return pt.stop()}},q)}));return function(se){return X.apply(this,arguments)}}(),Ur={height:300,multiple:!0,withCredentials:!0,data:function(){var X=Object(c.a)(x.a.mark(function se(){return x.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.abrupt("return",new Promise(function(){var pt=Object(c.a)(x.a.mark(function vn(Kn,dr){return x.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:setTimeout(Object(c.a)(x.a.mark(function Xn(){var $r,ga;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,un.getFieldsValue();case 2:$r=fr.sent,ga=Object(n.a)(Object(n.a)({},{path:Ot.defaultPath?Ot.defaultPath:"",message:an.commitMessage||"\u4E0A\u4F20\u4E86".concat(Nn)}),yt?{}:{secret_repository:!0}),Kn(ga);case 5:case"end":return fr.stop()}},Xn)})),200);case 1:case"end":return Mn.stop()}},vn)}));return function(vn,Kn){return pt.apply(this,arguments)}}()));case 1:case"end":return he.stop()}},se)}));function q(){return X.apply(this,arguments)}return q}(),fileList:Yn,method:"post",action:"".concat(Se.a.API_SERVER,"/api/shixuns/").concat(rn.current,"/upload_git_file.json"),onChange:Zr,onRemove:zr,beforeUpload:function(q){Nn=q.name}},Dr=function(){var X=Object(c.a)(x.a.mark(function q(se){return x.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,un.validateFields();case 2:Ot.onClose(),Ot.onOK({path:Ot.defaultPath}),pe();case 5:case"end":return he.stop()}},q)}));return function(se){return X.apply(this,arguments)}}(),pe=function(){var q,se;N.d.push("/shixuns/".concat(rn.current,"/").concat((q=Lt.pathname)===null||q===void 0||((se=q.split("/"))===null||se===void 0)?void 0:se[3]).concat(mn?"/master/shixun_show/".concat(mn):""))};return v.a.createElement(g.a,{visible:Ot.visible,onOk:Dr,centered:!0,onCancel:Ot.onClose,width:"70%"},v.a.createElement("section",{className:J.a.bg},v.a.createElement("div",{className:J.a.wrap},v.a.createElement("div",{className:J.a.title},"\u4E0A\u4F20\u6587\u4EF6"),v.a.createElement(de.a,{className:"mt10",form:un,scrollToFirstError:!0,layout:"vertical",onFinish:Dr,onValuesChange:function(){return nn(Object(n.a)({},un.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(te.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(Q,Ur,v.a.createElement("div",null,v.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(J.a.colorBlue)})),v.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",v.a.createElement("span",{className:"".concat(J.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),v.a.createElement(oe.a,{onFinish:function(q){return en(q)}})))},_e=Object(N.a)(function(Et){var je=Et.shixunsDetail,rt=Et.loading,at=Et.globalSetting,Ae=Et.user;return{shixunsDetail:je,globalSetting:at,user:Ae,loading:rt.models.index}})(ve),Te=o("Bbdw"),Ge=o.n(Te),qe=o("HpfO"),ut=o.n(qe),st=function(je){var rt=je.shixunsDetail,at=je.globalSetting,Ae=je.loading,Fe=je.dispatch,Tt=je.title,yt=je.pathList,Ot=yt===void 0?[]:yt,Lt=je.showInputPath,tt=Lt===void 0?!1:Lt,Ut=je.isMergeSelectFile,Pt=Ut===void 0?!1:Ut,an=je.onFinish,nn=an===void 0?function(){}:an,rn=de.a.useForm(),Tn=Object(S.a)(rn,1),sn=Tn[0],un=Object(I.i)(),Jn=Object(I.h)(),kn=Object(w.useRef)(),Yn=Object(w.useState)(""),tr=Object(S.a)(Yn,2),pr=tr[0],ar=tr[1],mn=Object(w.useState)(""),en=Object(S.a)(mn,2),Nn=en[0],Zr=en[1],zr=Object(w.useState)([]),Ur=Object(S.a)(zr,2),Dr=Ur[0],pe=Ur[1],X=Object(w.useState)([]),q=Object(S.a)(X,2),se=q[0],De=q[1];Object(w.useEffect)(function(){var on,Mn;kn.current=((on=Jn.pathname)===null||on===void 0||((Mn=on.split("/"))===null||Mn===void 0)?void 0:Mn[3])==="repository"},[]),Object(w.useEffect)(function(){if(rt.actionTabs.key!=="Repository-SelectFilePath")return;var on=Ot.join("/"),Mn=[];Ot.map(function(Xn,$r){$r===0?Mn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Xn),path:on}):Mn.push({val:"/".concat(Xn),path:on})}),pe(Mn),ar(on),Zr(on),he(on)},[rt.actionTabs.key]);var he=function(){var on=Object(c.a)(x.a.mark(function Mn(Xn){var $r;return x.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,Fe({type:kn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:un.id,path:Xn}});case 2:$r=pa.sent,$r&&De($r.trees||[]);case 4:case"end":return pa.stop()}},Mn)}));return function(Xn){return on.apply(this,arguments)}}(),pt=function(Mn){var Xn=pr;Mn.type==="tree"&&(Dr.length?Dr.push({val:"/".concat(Mn.name),path:Mn.name}):Dr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Mn.name),path:Mn.name}),pe(Dr),Xn=pr?"".concat(pr,"/").concat(Mn.name):Mn.name,ar(Xn)),he(Xn)},vn=function(Mn,Xn){var $r=Dr.filter(function(pa,fr){return fr<=Xn});pe($r);var ga=$r.filter(function(pa,fr){return fr!==0}).map(function(pa){return pa.val}).join("").substr(1);ar(ga),he(ga)},Kn=function(){var on=Object(c.a)(x.a.mark(function Mn(){var Xn,$r,ga;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(Xn=sn==null?void 0:sn.getFieldsValue(),$r=pr?"".concat(pr).concat(Xn!=null&&Xn.name?"/".concat(Xn==null?void 0:Xn.name):""):Xn==null?void 0:Xn.name,!Pt){fr.next=6;break}return nn($r),dr(),fr.abrupt("return");case 6:if(!tt){fr.next=16;break}return fr.next=9,sn.validateFields();case 9:return fr.next=11,Fe({type:"shixunsDetail/uploadGitFolder",payload:Object(n.a)(Object(n.a)({},{id:un.id,path:$r}),kn.current?{}:{secret_repository:!0})});case 11:ga=fr.sent,nn(Nn),ga.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),fr.next=18;break;case 16:nn($r),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:dr();case 19:case"end":return fr.stop()}},Mn)}));return function(){return on.apply(this,arguments)}}(),dr=function(){Fe({type:"shixunsDetail/setActionTabs",payload:{}}),sn.resetFields()};return v.a.createElement(g.a,{centered:!0,title:Tt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:rt.actionTabs.key==="Repository-SelectFilePath",onOk:Kn,onCancel:dr},v.a.createElement("div",{className:ut.a.wrap},v.a.createElement("div",{className:ut.a.content},v.a.createElement("div",{className:ut.a.mainPathWrap},!!(Dr!=null&&Dr.length)&&Dr.map(function(on,Mn){return v.a.createElement("a",{key:Mn,onClick:function(){return vn(on,Mn)}},on.val)})),!!(se!=null&&se.length)&&se.map(function(on,Mn){return on.type==="tree"&&v.a.createElement("a",{key:Mn,onClick:function(){return pt(on)}},v.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ut.a.colorBlue)}),on.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"},pr),tt&&v.a.createElement(de.a,{form:sn,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(te.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},ft=Object(N.a)(function(Et){var je=Et.shixunsDetail,rt=Et.loading,at=Et.globalSetting;return{shixunsDetail:je,globalSetting:at,loading:rt.models.index}})(st),gt=o("GZ0F"),Ve=o("8Skl"),ke=o("HBuW"),dt=o("1vsH"),Bt=o("NLgs"),vt=o("lzim"),Rt=F.a.DirectoryTree,ot=function(je){var rt,at,Ae,Fe,Tt,yt,Ot,Lt=je.shixunsDetail,tt=je.globalSetting,Ut=je.loading,Pt=je.user,an=je.activeKey,nn=je.dispatch,rn=je.practiceSetting,Tn=je.isRepository,sn=je.treeData,un=je.setTreeData,Jn=Object(E.a)(je,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),kn=Object(I.i)(),Yn=Object(I.h)(),tr=Object(w.useState)(),pr=Object(S.a)(tr,2),ar=pr[0],mn=pr[1],en=Object(w.useState)(!1),Nn=Object(S.a)(en,2),Zr=Nn[0],zr=Nn[1],Ur=Object(w.useState)(!1),Dr=Object(S.a)(Ur,2),pe=Dr[0],X=Dr[1],q=Object(w.useState)(!1),se=Object(S.a)(q,2),De=se[0],he=se[1],pt=Object(w.useState)(!1),vn=Object(S.a)(pt,2),Kn=vn[0],dr=vn[1],on=Object(w.useState)(""),Mn=Object(S.a)(on,2),Xn=Mn[0],$r=Mn[1],ga=Object(w.useState)([]),pa=Object(S.a)(ga,2),fr=pa[0],za=pa[1],ja=Object(w.useState)([]),Ra=Object(S.a)(ja,2),Ha=Ra[0],wa=Ra[1],Ja=Object(w.useState)([]),ka=Object(S.a)(Ja,2),li=ka[0],oi=ka[1],ua=Object(w.useState)(!1),fa=Object(S.a)(ua,2),oa=fa[0],xe=fa[1],lt=Object(w.useState)(),Mt=Object(S.a)(lt,2),wt=Mt[0],Ht=Mt[1],Nt=Object(w.useState)(),Vt=Object(S.a)(Nt,2),$t=Vt[0],En=Vt[1],gn=Object(w.useState)(""),Un=Object(S.a)(gn,2),An=Un[0],tn=Un[1],Pn=Object(w.useState)(),yn=Object(S.a)(Pn,2),jn=yn[0],Rn=yn[1],Qn=Object(w.useState)(!1),mr=Object(S.a)(Qn,2),kr=mr[0],wn=mr[1];Object(w.useEffect)(function(){un([]),Bn(""),localStorage.warehouseHideTip||xe(!0)},[Yn.pathname,Tn]);var Xt=function(){var rr=Object(c.a)(x.a.mark(function Kt(){var Jt,Yt,Vn=arguments;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Jt=Vn.length>0&&Vn[0]!==void 0?Vn[0]:"",Ln.next=3,Object(ke.Gb)({id:kn.id,secret_dir_path:Jt});case 3:Yt=Ln.sent,Yt&&Rn(Jt);case 5:case"end":return Ln.stop()}},Kt)}));return function(){return rr.apply(this,arguments)}}(),fn=function(Kt){var Jt;return v.a.createElement(a.a,{className:Ge.a.menu,onClick:function(Vn){$r(Kt.path||"");switch(Vn.key){case"1":Object(dt.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),zr(!0);break;case"2":Object(dt.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),he(!0);break;case"3":Object(dt.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),dr(!0);break;case"4":Object(dt.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),X(!0);break;case"5":Object(dt.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Or(Kt.path,Kt.name,Kt);break;case"6":Object(dt.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Pr(Kt);break}}},(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(a.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(a.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Kt.type==="topTree"||Kt.type==="tree")&&v.a.createElement(a.a.Item,{key:"3"},"\u4E0A\u4F20"),Kt.type!=="topTree"&&Kt.type!=="tree"&&(Lt==null||((Jt=Lt.detail)===null||Jt===void 0)?void 0:Jt.public)<2&&v.a.createElement(a.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Kt.type!=="topTree"&&v.a.createElement(L.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Tn?"":"secret/").concat(Kt==null?void 0:Kt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(a.a.Item,{key:"6"},v.a.createElement(v.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Kt.type!=="topTree"&&v.a.createElement(a.a.Item,{key:"5"},"\u5220\u9664"))},Dn=function(Kt,Jt){return Kt.map(function(Yt){return Jt==""?Yt.path=Jt+Yt.name:Yt.path=Jt+"/"+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(l.a,{overlay:fn(Yt),className:Ge.a.ellipsis},v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Yt.disableCheckbox=ar&&ar!==Yt.name,Yt.className=Yt.type==="tree"?Ge.a.pl23:"",Yt.checkable=Yt.type!=="tree",Yt.isLeaf=Yt.type!=="tree",Yt.children=Yt.type==="tree"&&[],Yt.key=Yt.path,Yt})},Qt=function(Kt){nn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Kt}})},Sn=function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt,Yt){var Vn;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Vn=Jt.split("/"),Ln.next=3,Bn(Xn);case 3:setTimeout(function(){Qt(Jt),fr=[Vn[0]||""],Ha=[Jt],wa(Object(D.a)(Ha)),za(Object(D.a)(fr))},150);case 4:case"end":return Ln.stop()}},Kt)}));return function(Jt,Yt){return rr.apply(this,arguments)}}(),_n=function(Kt,Jt){if(Jt=="")sn=Object(D.a)(Kt),un(Object(D.a)(Kt));else{var Yt=In(sn,Jt,Kt);sn=Yt,un(Object(D.a)(Yt))}};function In(rr,Kt,Jt){return rr.map(function(Yt){return Yt.key===Kt?(Yt.children=Object(D.a)(Jt),Object(n.a)({},Yt)):Yt.children?Object(n.a)(Object(n.a)({},Yt),{},{children:In(Yt.children,Kt,Jt)}):Yt})}var Bn=function(){var rr=Object(c.a)(x.a.mark(function Kt(){var Jt,Yt,Vn,er,Ln,ir=arguments;return x.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return Jt=ir.length>0&&ir[0]!==void 0?ir[0]:"",sr.next=3,nn({type:Tn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:kn.id,path:Jt}});case 3:return Yt=sr.sent,Yt&&((Vn=Yt.trees)!==null&&Vn!==void 0&&Vn.length?(Ln=Dn(Object(D.a)(Yt.trees),Jt),_n(Ln,Jt),oi(Yt.trees||[]),En(Jt||""),console.log("handleGetRepository:",Ln,Jt),setTimeout(function(){return console.log(sn,Yt.trees,Jt,999999)},2e3)):Jt==""&&un([]),Ht(((er=Yt.commits)===null||er===void 0?void 0:er[0])||{})),sr.abrupt("return",Yt);case 6:case"end":return sr.stop()}},Kt)}));return function(){return rr.apply(this,arguments)}}(),or=function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt){return x.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.abrupt("return",new Promise(function(){var er=Object(c.a)(x.a.mark(function Ln(ir,cr){return x.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return Jt.children.length&&ir(),tn(Jt.path),Qr.next=4,Bn(Jt.path);case 4:ir();case 5:case"end":return Qr.stop()}},Ln)}));return function(Ln,ir){return er.apply(this,arguments)}}()));case 1:case"end":return Vn.stop()}},Kt)}));return function(Jt){return rr.apply(this,arguments)}}(),$n=function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt,Yt){var Vn,er;return x.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(console.log("handleSelectTree",Jt,Yt.nativeEvent.target.nodeName,Yt),Vn=function(){Qt(Yt.node.path),Jt=[Yt.node.path],wa(Object(D.a)(Jt))},!(Yt.nativeEvent.target.nodeName==="svg"||Yt.nativeEvent.target.nodeName==="LI"||Yt.nativeEvent.target.nodeName==="I")){ir.next=4;break}return ir.abrupt("return");case 4:Yt.node.type==="blob"&&(rn!=null&&(er=rn.sideBar)!==null&&er!==void 0&&er.confirmLeave?g.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(),nn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Vn());case 5:case"end":return ir.stop()}},Kt)}));return function(Jt,Yt){return rr.apply(this,arguments)}}(),Or=function(Kt,Jt,Yt){g.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 Vn=Object(c.a)(x.a.mark(function Ln(){var ir,cr,sr;return x.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,nn({type:"shixunsDetail/deleteGitFile",payload:{id:kn.id,path:Kt,message:"\u5220\u9664".concat(Kt),secret_repository:Tn?null:!0}});case 2:if(ir=lr.sent,cr=Kt.split("/"),!((ir==null?void 0:ir.status)===0)){lr.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),cr.splice(cr.length-1,1),lr.next=9,Bn(cr.length>1?cr.join("/"):"");case 9:if(sr=lr.sent,!(sr!=null&&sr.trees)){lr.next=13;break}lr.next=16;break;case 13:return cr.splice(cr.length-1,1),lr.next=16,Bn(cr.length>1?cr.join("/"):"");case 16:return Qt(""),lr.abrupt("return",!0);case 20:(ir==null?void 0:ir.status)===-3&&g.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(kn.id,"/edit/").concat(ir==null?void 0:ir.message,"/tab=2")}});case 21:case"end":return lr.stop()}},Ln)}));function er(){return Vn.apply(this,arguments)}return er}()})},Pr=function(Kt){console.log(Kt,"item")},Zn=function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt,Yt){return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(console.log("handleExpand",Yt),!(Yt.nativeEvent.target.nodeName==="svg"||Yt.nativeEvent.target.nodeName==="path"||Yt.nativeEvent.target.nodeName==="LI")){er.next=5;break}return er.abrupt("return",!0);case 5:return er.next=7,or(Yt.node);case 7:fr.includes(Yt.node.path)?fr.splice(fr.indexOf(Yt.node.path),1):fr.push(Yt.node.path);case 8:za(Object(D.a)(fr));case 9:case"end":return er.stop()}},Kt)}));return function(Jt,Yt){return rr.apply(this,arguments)}}(),Tr=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt){var Yt,Vn,er,Ln,ir;return x.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:er="",sr.t0=Tn,sr.next=sr.t0===!0?4:sr.t0===!1?9:11;break;case 4:return er="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",ir="\u4E0D\u5F00\u542F",Vn=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"),sr.abrupt("break",11);case 9:return Lt!=null&&(Yt=Lt.detail)!==null&&Yt!==void 0&&Yt.secret_repository?(er="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",ir="\u53D6\u6D88",Vn=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")):(er="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u4E0D\u4F7F\u7528",ir="\u4F7F\u7528",Vn=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")),sr.abrupt("break",11);case 11:if(!(!Tn&&Object(Bt.b)(nn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){sr.next=13;break}return sr.abrupt("return");case 13:g.a.confirm({title:er,okText:Ln,cancelText:ir,content:Vn,onOk:function(){var lr;Object(dt.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",er]),!Tn&&!(Lt!=null&&(lr=Lt.detail)!==null&&lr!==void 0&&lr.secret_repository)||Hr(Jt)},onCancel:function(){var lr;!Tn&&!(Lt!=null&&(lr=Lt.detail)!==null&&lr!==void 0&&lr.secret_repository)&&Hr(Jt)}});case 14:case"end":return sr.stop()}},Kt)}));return function(Jt){return rr.apply(this,arguments)}}(),Hr=function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt){return x.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:if(!Tn){Vn.next=6;break}return Vn.next=3,Object(ke.r)(Object(n.a)({},kn));case 3:nn({type:"practiceSetting/getCommonData",payload:Object(n.a)({},kn)}),Vn.next=8;break;case 6:return Vn.next=8,Object(ke.t)(Object(n.a)(Object(n.a)({},kn),{},{is_secret_repository:Jt}));case 8:Bn(),nn({type:"shixunsDetail/getShixunsDetail",payload:{id:kn.id}});case 10:case"end":return Vn.stop()}},Kt)}));return function(Jt){return rr.apply(this,arguments)}}(),Mr=function(Kt){console.log(Kt)},qr=function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt){var Yt,Vn,er,Ln,ir,cr,sr,Qr,lr,la,Vr;return x.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:if(console.log(Jt),Yt=Jt.node.key,Vn=Jt.dragNode.key,er=Jt.node.pos.split("-"),Ln=Jt.dropPosition-Number(er[er.length-1]),!(Jt.dragNode.type==="tree")){Cr.next=8;break}return d.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Cr.abrupt("return");case 8:if(!(Jt.node.type!=="tree")){Cr.next=11;break}return d.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Cr.abrupt("return");case 11:return Cr.next=13,nn({type:"shixunsDetail/moveGitFile",payload:{id:kn.id,from:Jt.dragNode.path,to:Jt.node.path+"/"+Jt.dragNode.name,message:"".concat(Jt.dragNode.path," move to ").concat(Jt.node.path+"/"+Jt.dragNode.name," ")}});case 13:if(ir=Cr.sent,!(ir.status===0)){Cr.next=26;break}return Qt(""),Cr.next=18,Bn("");case 18:cr=0;case 19:if(!(cr<fr.length)){Cr.next=26;break}if(!(fr[cr]!="")){Cr.next=23;break}return Cr.next=23,Bn(fr[cr]);case 23:cr++,Cr.next=19;break;case 26:return Cr.abrupt("return");case 32:case"end":return Cr.stop()}},Kt)}));return function(Jt){return rr.apply(this,arguments)}}();return v.a.createElement("section",{className:Ge.a.bg},v.a.createElement("div",{className:Ge.a.contentbg},v.a.createElement("div",{className:Ge.a.wrap},v.a.createElement(C.a,{className:Ge.a.gitCode},v.a.createElement(f.a,{flex:"1"},v.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),Tn?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",v.a.createElement(H.a,{className:Tn&&Lt!==null&&Lt!==void 0&&(rt=Lt.detail)!==null&&rt!==void 0&&rt.init_repository?"hide":"ml10",checked:Tn?Lt==null||((Ae=Lt.detail)===null||Ae===void 0)?void 0:Ae.init_repository:Lt==null||((at=Lt.detail)===null||at===void 0)?void 0:at.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:vr})),v.a.createElement(f.a,null,v.a.createElement(l.a,{overlay:fn({type:"topTree"}),className:"current"},v.a.createElement(u.a,{visible:oa,title:v.a.createElement("div",{className:"font16"},v.a.createElement(gt.a,{style:{position:"relative",left:-35},onClick:function(){return Tr()}}),"\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 Tr()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:Ge.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},Tn&&(Lt==null||((Fe=Lt.detail)===null||Fe===void 0)?void 0:Fe.init_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!Tn&&(Lt==null||((Tt=Lt.detail)===null||Tt===void 0)?void 0:Tt.secret_repository)&&v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!sn.length&&!Tn&&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")),sn.length?v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:Ge.a.content},an==="1"&&v.a.createElement("div",{className:Ge.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(Rt,{disabled:!!Ut.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:sn,switcherIcon:v.a.createElement(Ve.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:Zn,expandedKeys:fr,selectedKeys:Ha,onSelect:$n,draggable:!0,onDragEnter:Mr,onDrop:qr,allowDrop:function(Kt){var Jt=Kt.dropNode,Yt=Kt.dropPosition;return!1}}))):"",!sn.length&&Tn&&(Lt==null||((yt=Lt.detail)===null||yt===void 0)?void 0:yt.init_repository)&&v.a.createElement(Je,null),!sn.length&&!Tn&&(Lt==null||((Ot=Lt.detail)===null||Ot===void 0)?void 0:Ot.secret_repository)&&v.a.createElement(Je,null))),v.a.createElement(me,{visible:pe,defaultPath:Xn,onClose:function(){return X(!1)},isRepository:!Tn,onOK:function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt){var Yt;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return Yt=Xn.split("/"),Yt.pop(),er.next=4,Bn(Yt.join("/"));case 4:Qt("");case 5:case"end":return er.stop()}},Kt)}));return function(Kt){return rr.apply(this,arguments)}}()}),v.a.createElement(le,{visible:Zr,defaultPath:Xn,onClose:function(){return zr(!1)},isRepository:Tn,onOK:function(Kt){Sn(Kt.path,Kt.name)}}),v.a.createElement(Ee,{visible:De,defaultPath:Xn,onClose:function(){return he(!1)},isRepository:Tn,onOK:function(Kt){Sn(Kt.path,Kt.name)}}),v.a.createElement(_e,{defaultPath:Xn,visible:Kn,isRepository:Tn,onClose:function(){return dr(!1)},onOK:function(){var rr=Object(c.a)(x.a.mark(function Kt(Jt){var Yt;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return Yt=Xn.split("/"),er.next=3,Bn(Xn);case 3:fr=[Yt[0]||""],Ha=[Xn],wa(Object(D.a)(Ha)),za(Object(D.a)(fr));case 7:case"end":return er.stop()}},Kt)}));return function(Kt){return rr.apply(this,arguments)}}()}),v.a.createElement(ft,{pathList:Xn==null?void 0:Xn.split("/"),showInputPath:!0,isMergeSelectFile:kr,onFinish:function(Kt){kr?Xt(Kt):Bn(Kt),wn(!1)}}))},Je=function(){return v.a.createElement("div",{className:"mt20 pb50 ".concat(Ge.a.nodata)},v.a.createElement("div",{className:Ge.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:vt.u}))},et=Object(N.a)(function(Et){var je=Et.shixunsDetail,rt=Et.loading,at=Et.globalSetting,Ae=Et.practiceSetting,Fe=Et.user;return{shixunsDetail:je,globalSetting:at,user:Fe,practiceSetting:Ae,loading:rt}})(ot),Me=o("/zsF"),Be=o("PArb"),Xe=o("yDYP"),Ke=o.n(Xe),$e=function(je){var rt=je.shixunsDetail,at=je.globalSetting,Ae=je.loading,Fe=je.user,Tt=je.dispatch,yt=je.isRepository,Ot=Object(E.a)(je,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Lt=Object(I.i)(),tt=Object(w.useState)([]),Ut=Object(S.a)(tt,2),Pt=Ut[0],an=Ut[1];Object(w.useEffect)(function(){nn()},[yt]);var nn=function(){var rn=Object(c.a)(x.a.mark(function Tn(){var sn;return x.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.next=2,Tt({type:"shixunsDetail/getRepositoryCommit",payload:{id:Lt.id,secret_repository:yt?void 0:!0}});case 2:sn=Jn.sent,sn&&an(sn.commits||[]);case 4:case"end":return Jn.stop()}},Tn)}));return function(){return rn.apply(this,arguments)}}();return v.a.createElement(v.a.Fragment,null,Pt==""&&v.a.createElement("div",{className:Ke.a.empty},v.a.createElement("img",{src:vt.k,width:"258"}),v.a.createElement("br",null),v.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Pt!=""&&v.a.createElement("section",{className:Ke.a.bg},v.a.createElement("div",{className:Ke.a.wrap},v.a.createElement("div",{className:Ke.a.content},Pt==null?void 0:Pt.map(function(rn){var Tn,sn;return v.a.createElement("div",null,v.a.createElement(C.a,{align:"middle",className:"c-white font16"},v.a.createElement(f.a,null,rn.title)),v.a.createElement(C.a,{align:"middle",className:"mt20 "},v.a.createElement(f.a,null,v.a.createElement("img",{className:Ke.a.imageUrl,src:Se.a.IMG_SERVER+"/"+((Tn=rn.author)===null||Tn===void 0?void 0:Tn.image_url)})),v.a.createElement(f.a,{className:Ke.a.blueLight},v.a.createElement("span",{className:"ml20"},(sn=rn.author)===null||sn===void 0?void 0:sn.username)),v.a.createElement(f.a,null,v.a.createElement("span",{className:"ml20 ".concat(Ke.a.blueLight)},"\u63D0\u4EA4\u4E8E"),v.a.createElement("span",{className:"ml20 ".concat(Ke.a.blueLight)},rn.time))),v.a.createElement(Be.a,{className:Ke.a.divider}))})))))},_t=Object(N.a)(function(Et){var je=Et.shixunsDetail,rt=Et.loading,at=Et.globalSetting,Ae=Et.user;return{shixunsDetail:je,globalSetting:at,user:Ae,loading:rt.models.index}})($e),Ft=o("p5ED"),qt=P.a.TabPane,bn=function(je){var rt,at,Ae,Fe,Tt,yt,Ot,Lt,tt,Ut,Pt,an,nn,rn,Tn,sn,un,Jn,kn,Yn=je.globalSetting,tr=je.loading,pr=je.dispatch,ar=je.practiceSetting,mn=je.shixunsDetail,en=Object(E.a)(je,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Nn=Object(w.useState)("1"),Zr=Object(S.a)(Nn,2),zr=Zr[0],Ur=Zr[1],Dr=Object(w.useState)("1"),pe=Object(S.a)(Dr,2),X=pe[0],q=pe[1],se=Object(w.useState)(),De=Object(S.a)(se,2),he=De[0],pt=De[1],vn=Object(w.useRef)(),Kn=Object(w.useState)(!0),dr=Object(S.a)(Kn,2),on=dr[0],Mn=dr[1],Xn=Object(w.useState)(["2","1"]),$r=Object(S.a)(Xn,2),ga=$r[0],pa=$r[1],fr=Object(w.useState)([]),za=Object(S.a)(fr,2),ja=za[0],Ra=za[1],Ha=Object(w.useRef)(),wa=Object(I.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(u.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(w.useEffect)(function(){try{var ua,fa,oa,xe,lt;if(!!(mn!=null&&(ua=mn.fileContent)!==null&&ua!==void 0&&(fa=ua.content)!==null&&fa!==void 0&&(oa=fa.content)!==null&&oa!==void 0&&oa.length)||(mn==null||((xe=mn.fileContent)===null||xe===void 0||((lt=xe.content)===null||lt===void 0))?void 0:lt.content)==""){var Mt;if((mn==null||((Mt=mn.fileContent)===null||Mt===void 0)?void 0:Mt.file_type)==="txt"){var wt,Ht,Nt,Vt;vn.current=window.decodeURIComponent(escape(window.atob(mn==null||((wt=mn.fileContent)===null||wt===void 0||((Ht=wt.content)===null||Ht===void 0))?void 0:Ht.content))),he=window.decodeURIComponent(escape(window.atob(mn==null||((Nt=mn.fileContent)===null||Nt===void 0||((Vt=Nt.content)===null||Vt===void 0))?void 0:Vt.content))),pt(he)}else{var $t,En,gn,Un;vn.current=mn==null||(($t=mn.fileContent)===null||$t===void 0||((En=$t.content)===null||En===void 0))?void 0:En.content,he=mn==null||((gn=mn.fileContent)===null||gn===void 0||((Un=gn.content)===null||Un===void 0))?void 0:Un.content,pt(he)}}}catch(jn){var An,tn,Pn,yn;vn.current=window.atob(mn==null||((An=mn.fileContent)===null||An===void 0||((tn=An.content)===null||tn===void 0))?void 0:tn.content),he=window.atob(mn==null||((Pn=mn.fileContent)===null||Pn===void 0||((yn=Pn.content)===null||yn===void 0))?void 0:yn.content),pt(he),d.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",mn.fileContent.content)},[mn==null||((rt=mn.fileContent)===null||rt===void 0)?void 0:rt.content]),Object(w.useEffect)(function(){var ua,fa=ar==null||((ua=ar.sideBar)===null||ua===void 0)?void 0:ua.selectPath.split("/");pa(fa)},[ar==null||((at=ar.sideBar)===null||at===void 0)?void 0:at.selectPath]);var ka=function(fa){pt(fa);var oa=-1;fa===vn.current?oa=0:oa=1,oa!==-1,pr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!oa}})};Object(w.useEffect)(function(){new Promise(function(){var ua=Object(c.a)(x.a.mark(function fa(oa,xe){var lt,Mt,wt,Ht;return x.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!((ar==null||((lt=ar.sideBar)===null||lt===void 0)?void 0:lt.selectPath)!==""&&ar!==null&&ar!==void 0&&(Mt=ar.sideBar)!==null&&Mt!==void 0&&Mt.selectPath)){Vt.next=5;break}return Vt.next=3,pr({type:"shixunsDetail/getFileContent",payload:{id:wa.id,path:ar==null||((wt=ar.sideBar)===null||wt===void 0)?void 0:wt.selectPath,secret_repository:on?null:!0}});case 3:Ht=Vt.sent,Ht!=null&&Ht.content||(Ht==null?void 0:Ht.content)==""||pr({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Vt.stop()}},fa)}));return function(fa,oa){return ua.apply(this,arguments)}}())},[ar==null||((Ae=ar.sideBar)===null||Ae===void 0)?void 0:Ae.selectPath]);var li=v.a.createElement(a.a,{className:U.a.menu,onClick:function(fa){var oa;!(mn!=null&&(oa=mn.detail)!==null&&oa!==void 0&&oa.secret_repository)&&fa.key==="2"&&q("1"),Ur(fa.key),fa.key==="1"?Mn(!0):Mn(!1)}},v.a.createElement(a.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ja.filter(function(ua){var fa,oa;return!(mn!=null&&(fa=mn.detail)!==null&&fa!==void 0&&fa.init_repository)||mn!=null&&(oa=mn.detail)!==null&&oa!==void 0&&oa.is_jupyter_lab?ua.id!=="2":ua}).map(function(ua,fa){return v.a.createElement(a.a.Item,{className:"leaveClick",key:ua.id},ua.name)})),oi=function(){var ua=Object(c.a)(x.a.mark(function fa(){var oa,xe,lt;return x.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,pr({type:"shixunsDetail/updateRepositoryFile",payload:{id:wa.id,path:mn==null||((oa=mn.fileContent)===null||oa===void 0||((xe=oa.params)===null||xe===void 0))?void 0:xe.path,content:he,secret_repository:on?null:!0}});case 2:lt=wt.sent,lt!=null&<.content&&(d.b.info("\u4FDD\u5B58\u6210\u529F"),pr({type:"practiceSetting/setSideBarTabs",payload:Object(n.a)(Object(n.a)({},ar.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return wt.stop()}},fa)}));return function(){return ua.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(l.a,{overlay:li,className:U.a.menu},v.a.createElement("span",{className:"font16 c-white current ml20"},Ja.find(function(ua){return ua.id===zr}).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(fa){var oa;ar!=null&&(oa=ar.sideBar)!==null&&oa!==void 0&&oa.confirmLeave?g.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(fa),pr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(q(fa),pr({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},v.a.createElement(qt,{tab:v.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),on&&(mn==null||((Fe=mn.detail)===null||Fe===void 0)?void 0:Fe.init_repository)&&v.a.createElement(qt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!on&&(mn==null||((Tt=mn.detail)===null||Tt===void 0)?void 0:Tt.secret_repository)&&v.a.createElement(qt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(on&&(mn==null||((yt=mn.repository)===null||yt===void 0)?void 0:yt.git_url)||!on&&(mn==null||((Ot=mn.secretRepository)===null||Ot===void 0)?void 0:Ot.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:on?mn==null||((Lt=mn.repository)===null||Lt===void 0)?void 0:Lt.git_url:mn==null||((tt=mn.secretRepository)===null||tt===void 0)?void 0:tt.git_url}),v.a.createElement(L.CopyToClipboard,{text:on?mn==null||((Ut=mn.repository)===null||Ut===void 0)?void 0:Ut.git_url:mn==null||((Pt=mn.secretRepository)===null||Pt===void 0)?void 0:Pt.git_url,onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(u.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:!!tr.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(U.a.loading," ").concat(U.a.bottom0)},v.a.createElement(et,{setTreeData:Ra,treeData:ja,activeKey:zr,isRepository:on}))),v.a.createElement("aside",{className:U.a.right,ref:Ha},(ar==null||((an=ar.sideBar)===null||an===void 0)?void 0:an.selectPath)!==""&&v.a.createElement(v.a.Fragment,null,v.a.createElement(b.a,{spinning:!!tr.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},ga.map(function(ua,fa){return v.a.createElement("span",{className:"c-blue"},ua)})))),v.a.createElement("div",{className:tr.effects["shixunsDetail/getFileContent"]?"hide":"show"},v.a.createElement(Ft.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:mn==null||((nn=mn.fileContent)===null||nn===void 0)?void 0:nn.filename,type:(mn==null||((rn=mn.fileContent)===null||rn===void 0)?void 0:rn.file_type)==="office"?"download":mn==null||((Tn=mn.fileContent)===null||Tn===void 0)?void 0:Tn.file_type,data:he,monacoEditor:{value:he,language:mn==null||((sn=mn.fileContent)===null||sn===void 0)?void 0:sn.language,onChange:function(fa){return ka(fa)},options:{fontSize:14}}}))),(mn==null||((un=mn.fileContent)===null||un===void 0)?void 0:un.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(m.a,{type:"primary",size:"large",ghost:!0,onClick:function(){N.d.push("/shixuns/".concat(wa.id,"/challenges"))}},"\u53D6\u6D88"),v.a.createElement(m.a,{type:"primary",size:"large",className:"ml40",onClick:oi},"\u63D0\u4EA4")))),(ar==null||((Jn=ar.sideBar)===null||Jn===void 0)?void 0:Jn.selectPath)==""&&(mn==null||((kn=mn.detail)===null||kn===void 0)?void 0:kn.init_repository)&&v.a.createElement("div",{className:U.a.empty},v.a.createElement("img",{src:vt.j,width:"258"}),v.a.createElement("br",null),v.a.createElement("span",{className:"c-grey-c"},!!(ja!=null&&ja.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(ja!=null&&ja.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),X==="2"&&v.a.createElement("div",{className:U.a.commit},v.a.createElement(_t,{isRepository:on}))))},At=z.default=Object(N.a)(function(Et){var je=Et.loading,rt=Et.globalSetting,at=Et.practiceSetting,Ae=Et.shixunsDetail;return{globalSetting:rt,loading:je,practiceSetting:at,shixunsDetail:Ae}})(bn)},csWT:function(k,z,o){k.exports=o.p+"static/choose.4ad1045f.svg"},cv67:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(m){var T=M,b=T.lib,y=b.WordArray,C=b.Hasher,A=T.algo,g=[];(function(){for(var i=0;i<64;i++)g[i]=m.abs(m.sin(i+1))*4294967296|0})();var e=A.MD5=C.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,a){for(var c=0;c<16;c++){var h=a+c,d=i[h];i[h]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,u=i[a+0],S=i[a+1],E=i[a+2],_=i[a+3],P=i[a+4],R=i[a+5],x=i[a+6],w=i[a+7],v=i[a+8],O=i[a+9],U=i[a+10],I=i[a+11],N=i[a+12],V=i[a+13],H=i[a+14],D=i[a+15],W=s[0],F=s[1],L=s[2],K=s[3];W=f(W,F,L,K,u,7,g[0]),K=f(K,W,F,L,S,12,g[1]),L=f(L,K,W,F,E,17,g[2]),F=f(F,L,K,W,_,22,g[3]),W=f(W,F,L,K,P,7,g[4]),K=f(K,W,F,L,R,12,g[5]),L=f(L,K,W,F,x,17,g[6]),F=f(F,L,K,W,w,22,g[7]),W=f(W,F,L,K,v,7,g[8]),K=f(K,W,F,L,O,12,g[9]),L=f(L,K,W,F,U,17,g[10]),F=f(F,L,K,W,I,22,g[11]),W=f(W,F,L,K,N,7,g[12]),K=f(K,W,F,L,V,12,g[13]),L=f(L,K,W,F,H,17,g[14]),F=f(F,L,K,W,D,22,g[15]),W=r(W,F,L,K,S,5,g[16]),K=r(K,W,F,L,x,9,g[17]),L=r(L,K,W,F,I,14,g[18]),F=r(F,L,K,W,u,20,g[19]),W=r(W,F,L,K,R,5,g[20]),K=r(K,W,F,L,U,9,g[21]),L=r(L,K,W,F,D,14,g[22]),F=r(F,L,K,W,P,20,g[23]),W=r(W,F,L,K,O,5,g[24]),K=r(K,W,F,L,H,9,g[25]),L=r(L,K,W,F,_,14,g[26]),F=r(F,L,K,W,v,20,g[27]),W=r(W,F,L,K,V,5,g[28]),K=r(K,W,F,L,E,9,g[29]),L=r(L,K,W,F,w,14,g[30]),F=r(F,L,K,W,N,20,g[31]),W=l(W,F,L,K,R,4,g[32]),K=l(K,W,F,L,v,11,g[33]),L=l(L,K,W,F,I,16,g[34]),F=l(F,L,K,W,H,23,g[35]),W=l(W,F,L,K,S,4,g[36]),K=l(K,W,F,L,P,11,g[37]),L=l(L,K,W,F,w,16,g[38]),F=l(F,L,K,W,U,23,g[39]),W=l(W,F,L,K,V,4,g[40]),K=l(K,W,F,L,u,11,g[41]),L=l(L,K,W,F,_,16,g[42]),F=l(F,L,K,W,x,23,g[43]),W=l(W,F,L,K,O,4,g[44]),K=l(K,W,F,L,N,11,g[45]),L=l(L,K,W,F,D,16,g[46]),F=l(F,L,K,W,E,23,g[47]),W=n(W,F,L,K,u,6,g[48]),K=n(K,W,F,L,w,10,g[49]),L=n(L,K,W,F,H,15,g[50]),F=n(F,L,K,W,R,21,g[51]),W=n(W,F,L,K,N,6,g[52]),K=n(K,W,F,L,_,10,g[53]),L=n(L,K,W,F,U,15,g[54]),F=n(F,L,K,W,S,21,g[55]),W=n(W,F,L,K,v,6,g[56]),K=n(K,W,F,L,D,10,g[57]),L=n(L,K,W,F,x,15,g[58]),F=n(F,L,K,W,V,21,g[59]),W=n(W,F,L,K,P,6,g[60]),K=n(K,W,F,L,I,10,g[61]),L=n(L,K,W,F,E,15,g[62]),F=n(F,L,K,W,O,21,g[63]),s[0]=s[0]+W|0,s[1]=s[1]+F|0,s[2]=s[2]+L|0,s[3]=s[3]+K|0},_doFinalize:function(){var i=this._data,a=i.words,c=this._nDataBytes*8,h=i.sigBytes*8;a[h>>>5]|=128<<24-h%32;var d=m.floor(c/4294967296),s=c;a[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,a[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(a.length+1)*4,this._process();for(var u=this._hash,S=u.words,E=0;E<4;E++){var _=S[E];S[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return u},clone:function(){var i=C.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,a,c,h,d,s,u){var S=i+(a&c|~a&h)+d+u;return(S<<s|S>>>32-s)+a}function r(i,a,c,h,d,s,u){var S=i+(a&h|c&~h)+d+u;return(S<<s|S>>>32-s)+a}function l(i,a,c,h,d,s,u){var S=i+(a^c^h)+d+u;return(S<<s|S>>>32-s)+a}function n(i,a,c,h,d,s,u){var S=i+(c^(a|~h))+d+u;return(S<<s|S>>>32-s)+a}T.MD5=C._createHelper(e),T.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"),m=o("rePB"),T=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),C=o("md7G"),A=o("foSv"),g=o("q1tI"),e=o.n(g),f=o("TSYQ"),r=o.n(f),l=o("4IlW");function n(v,O){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);O&&(I=I.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,I)}return U}function i(v){for(var O=1;O<arguments.length;O++){var U=arguments[O]!=null?arguments[O]:{};O%2?n(Object(U),!0).forEach(function(I){Object(m.a)(v,I,U[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):n(Object(U)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(U,I))})}return v}function a(v){var O=c();return function(){var I=Object(A.a)(v),N;if(O){var V=Object(A.a)(this).constructor;N=Reflect.construct(I,arguments,V)}else N=I.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(O){return O.replace(/[^\w.-]+/g,"")},u=200,S=600,E=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,_=function(O){return O!=null},P=function(O,U){return U===O||typeof U=="number"&&typeof O=="number"&&isNaN(U)&&isNaN(O)},R=function(v){Object(y.a)(U,v);var O=a(U);function U(I){var N;Object(T.a)(this,U),N=O.call(this,I),N.onKeyDown=function(D){var W=N.props,F=W.onKeyDown,L=W.onPressEnter;if(D.keyCode===l.a.UP){var K=N.getRatio(D);N.up(D,K,null),N.stop()}else if(D.keyCode===l.a.DOWN){var te=N.getRatio(D);N.down(D,te,null),N.stop()}else D.keyCode===l.a.ENTER&&L&&L(D);if(N.recordCursorPosition(),N.lastKeyCode=D.keyCode,F){for(var fe=arguments.length,de=new Array(fe>1?fe-1:0),Ce=1;Ce<fe;Ce++)de[Ce-1]=arguments[Ce];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,L=new Array(F>1?F-1:0),K=1;K<F;K++)L[K-1]=arguments[K];W.apply(void 0,[D].concat(L))}},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 L=N.input.value,K=N.getInputDisplayValue({focus:!1,value:F});N.input.value=K&&Number(K),D.apply(void 0,arguments),N.input.value=L}},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,L=W.inputValue,K=W.value,te;F?te=L:te=N.toPrecisionAsStep(K),te==null&&(te="");var fe=N.formatWrapper(te);return _(N.props.decimalSeparator)&&(fe=fe.toString().replace(".",N.props.decimalSeparator)),fe},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(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 L=N.cursorBefore.length;return N.lastKeyCode===l.a.DELETE&&N.cursorBefore.charAt(L-1)===D[0]?(N.fixCaret(L,L),!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 L=D.substring(F);return N.restoreByAfter(L)})},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=I.value;V===void 0&&(V=I.defaultValue),N.state={focused:I.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,L=this.state.focused;if(N){if(!P(N.value,H)||!P(N.max,W)||!P(N.min,F)){var K=L?H:this.getValidValue(H),te;this.pressingUpOrDown?te=K:this.inputting?te=this.rawInput:te=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:te})}var fe="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==W&&typeof fe=="number"&&fe>W&&D&&D(W),"min"in this.props&&N.min!==F&&typeof fe=="number"&&fe<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===l.a.BACKSPACE?de=this.cursorStart-1:this.lastKeyCode===l.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 l.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case l.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Ce){}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,L=this.state.inputValue,K=L===void 0?null:L,te=typeof D=="number"?D.toFixed(H):"".concat(D),fe=D!==F||te!=="".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),fe&&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),L=this.getPrecision(W),K=this.getPrecision(N);return N?Math.max(K,F+L):F+L}},{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 L=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(L))return;var K=this["".concat(N,"Step")](L,D),te=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}),te)return;this.autoStepTimer=setTimeout(function(){H[N](V,D,!0)},W?u:S)}},{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,L=V.autoComplete,K=V.upHandler,te=V.downHandler,fe=V.className,de=V.max,Ce=V.min,Oe=V.style,ce=V.title,Ee=V.onMouseEnter,ye=V.onMouseLeave,ue=V.onMouseOver,le=V.onMouseOut,$=V.required,me=V.onClick,re=V.tabIndex,ae=V.type,Se=V.placeholder,oe=V.id,ee=V.inputMode,J=V.pattern,Q=V.step,ve=V.maxLength,_e=V.autoFocus,Te=V.name,Ge=V.onPaste,qe=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"]),st=this.state,ft=st.value,gt=st.focused,Ve=r()(H,(N={},Object(m.a)(N,fe,!!fe),Object(m.a)(N,"".concat(H,"-disabled"),D),Object(m.a)(N,"".concat(H,"-focused"),gt),N)),ke={};Object.keys(ut).forEach(function(Ke){(Ke.substr(0,5)==="data-"||Ke.substr(0,5)==="aria-"||Ke==="role")&&(ke[Ke]=ut[Ke])});var dt=!W&&!D,Bt=this.getInputDisplayValue(null),vt=(ft||ft===0)&&(isNaN(ft)||Number(ft)>=de),Rt=(ft||ft===0)&&(isNaN(ft)||Number(ft)<=Ce),ot=vt||D||W,Je=Rt||D||W,et=r()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(m.a)({},"".concat(H,"-handler-up-disabled"),ot)),Me=r()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(m.a)({},"".concat(H,"-handler-down-disabled"),Je)),Be=F?{onTouchStart:ot?h:this.up,onTouchEnd:this.stop}:{onMouseDown:ot?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Xe=F?{onTouchStart:Je?h:this.down,onTouchEnd:this.stop}:{onMouseDown:Je?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ve,style:Oe,title:ce,onMouseEnter:Ee,onMouseLeave:ye,onMouseOver:ue,onMouseOut:le,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"},Be,{role:"button","aria-label":"Increase Value","aria-disabled":ot,className:et}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},Xe,{role:"button","aria-label":"Decrease Value","aria-disabled":Je,className:Me}),te||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":Ce,"aria-valuemax":de,"aria-valuenow":ft,required:$,type:ae,placeholder:Se,onPaste:Ge,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:L,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:dt?this.onKeyDown:h,onKeyUp:dt?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:de,min:Ce,step:Q,name:Te,title:ce,id:oe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Bt),pattern:J,inputMode:ee,onInput:qe},ke))))}}]),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,w=z.a=x},e7zE:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.Base,y=T.WordArray,C=m.algo,A=C.SHA1,g=C.HMAC,e=C.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:A,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,r){for(var l=this.cfg,n=g.create(l.hasher,f),i=y.create(),a=y.create([1]),c=i.words,h=a.words,d=l.keySize,s=l.iterations;c.length<d;){var u=n.update(r).finalize(a);n.reset();for(var S=u.words,E=S.length,_=u,P=1;P<s;P++){_=n.finalize(_),n.reset();for(var R=_.words,x=0;x<E;x++)S[x]^=R[x]}i.concat(u),h[0]++}return i.sigBytes=d*4,i}});m.PBKDF2=function(f,r,l){return e.create(l).compute(f,r)}}(),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 u.a});var M=o("rePB"),m=o("VTBJ"),T=o("KQm4"),b=o("1OyB"),y=o("vuIU"),C=o("Ji7U"),A=o("LK+K"),g=o("q1tI"),e=o("4IlW"),f=o("Kwbf"),r=o("TSYQ"),l=o.n(r),n=o("sboe"),i=o("OZM5"),a=o("815F"),c=o("ODXe"),h=o("Ff2n"),d=o("+nKL"),s=o("8XRh"),u=o("WaYH"),S=function(Ce,Oe){var ce=Ce.className,Ee=Ce.style,ye=Ce.motion,ue=Ce.motionNodes,le=Ce.motionType,$=Ce.onMotionStart,me=Ce.onMotionEnd,re=Ce.active,ae=Ce.treeNodeRequiredProps,Se=Object(h.a)(Ce,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),oe=g.useState(!0),ee=Object(c.a)(oe,2),J=ee[0],Q=ee[1],ve=g.useContext(n.a),_e=ve.prefixCls,Te=g.useRef(!1),Ge=function(){Te.current||me(),Te.current=!0};return Object(g.useEffect)(function(){ue&&le==="hide"&&J&&Q(!1)},[ue]),Object(g.useEffect)(function(){return ue&&$(),function(){ue&&Ge()}},[]),ue?g.createElement(s.default,Object.assign({ref:Oe,visible:J},ye,{motionAppear:le==="show",onAppearEnd:Ge,onLeaveEnd:Ge}),function(qe,ut){var st=qe.className,ft=qe.style;return g.createElement("div",{ref:ut,className:l()("".concat(_e,"-treenode-motion"),st),style:ft},ue.map(function(gt){var Ve=gt.data,ke=Ve.key,dt=Object(h.a)(Ve,["key"]),Bt=gt.isStart,vt=gt.isEnd;delete dt.children;var Rt=Object(a.f)(ke,ae);return g.createElement(u.a,Object.assign({},dt,Rt,{active:re,data:gt.data,key:ke,isStart:Bt,isEnd:vt}))}))}):g.createElement(u.a,Object.assign({domRef:Oe,className:ce,style:Ee},Se,{active:re}))};S.displayName="MotionTreeNode";var E=g.forwardRef(S),_=E;function P(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=de.length,ce=Ce.length;if(Math.abs(Oe-ce)!==1)return{add:!1,key:null};function Ee(ye,ue){var le=new Map;ye.forEach(function(me){le.set(me,!0)});var $=ue.filter(function(me){return!le.has(me)});return $.length===1?$[0]:null}return Oe<ce?{add:!0,key:Ee(de,Ce)}:{add:!1,key:Ee(Ce,de)}}function R(de,Ce,Oe){var ce=de.findIndex(function(le){var $=le.data;return $.key===Oe}),Ee=de[ce+1],ye=Ce.findIndex(function(le){var $=le.data;return $.key===Oe});if(Ee){var ue=Ce.findIndex(function(le){var $=le.data;return $.key===Ee.data.key});return Ce.slice(ye+1,ue)}return Ce.slice(ye+1)}var x={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},w=function(){},v="RC_TREE_MOTION_".concat(Math.random()),O={key:v},U={key:v,level:0,index:0,pos:"0",node:O},I={parent:null,children:[],pos:U.pos,data:O,isStart:[],isEnd:[]};function N(de,Ce,Oe,ce){return Ce===!1||!Oe?de:de.slice(0,Math.ceil(Oe/ce)+1)}function V(de){var Ce=de.data.key,Oe=de.pos;return Object(a.e)(Ce,Oe)}function H(de){for(var Ce=String(de.data.key),Oe=de;Oe.parent;)Oe=Oe.parent,Ce="".concat(Oe.data.key," > ").concat(Ce);return Ce}var D=function(Ce,Oe){var ce=Ce.prefixCls,Ee=Ce.data,ye=Ce.selectable,ue=Ce.checkable,le=Ce.expandedKeys,$=Ce.selectedKeys,me=Ce.checkedKeys,re=Ce.loadedKeys,ae=Ce.loadingKeys,Se=Ce.halfCheckedKeys,oe=Ce.keyEntities,ee=Ce.disabled,J=Ce.dragging,Q=Ce.dragOverNodeKey,ve=Ce.dropPosition,_e=Ce.motion,Te=Ce.height,Ge=Ce.itemHeight,qe=Ce.virtual,ut=Ce.focusable,st=Ce.activeItem,ft=Ce.focused,gt=Ce.tabIndex,Ve=Ce.onKeyDown,ke=Ce.onFocus,dt=Ce.onBlur,Bt=Ce.onActiveChange,vt=Ce.onListChangeStart,Rt=Ce.onListChangeEnd,ot=Object(h.a)(Ce,["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"]),Je=g.useRef(null);g.useImperativeHandle(Oe,function(){return{scrollTo:function(an){Je.current.scrollTo(an)}}});var et=g.useState(le),Me=Object(c.a)(et,2),Be=Me[0],Xe=Me[1],Ke=g.useState(Ee),$e=Object(c.a)(Ke,2),_t=$e[0],Ft=$e[1],qt=g.useState(Ee),bn=Object(c.a)(qt,2),At=bn[0],Et=bn[1],je=g.useState([]),rt=Object(c.a)(je,2),at=rt[0],Ae=rt[1],Fe=g.useState(null),Tt=Object(c.a)(Fe,2),yt=Tt[0],Ot=Tt[1];function Lt(){Ft(Ee),Et(Ee),Ae([]),Ot(null),Rt()}g.useEffect(function(){Xe(le);var Pt=P(Be,le);if(Pt.key!==null)if(Pt.add){var an=_t.findIndex(function(Jn){var kn=Jn.data.key;return kn===Pt.key}),nn=N(R(_t,Ee,Pt.key),qe,Te,Ge),rn=_t.slice();rn.splice(an+1,0,I),Et(rn),Ae(nn),Ot("show")}else{var Tn=Ee.findIndex(function(Jn){var kn=Jn.data.key;return kn===Pt.key}),sn=N(R(Ee,_t,Pt.key),qe,Te,Ge),un=Ee.slice();un.splice(Tn+1,0,I),Et(un),Ae(sn),Ot("hide")}else _t!==Ee&&(Ft(Ee),Et(Ee))},[le,Ee]),g.useEffect(function(){J||Lt()},[J]);var tt=_e?At:Ee,Ut={expandedKeys:le,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Se,dragOverNodeKey:Q,dropPosition:ve,keyEntities:oe};return g.createElement(g.Fragment,null,ft&&st&&g.createElement("span",{style:x,"aria-live":"assertive"},H(st)),g.createElement("div",{role:"tree"},g.createElement("input",{style:x,disabled:ut===!1||ee,tabIndex:ut!==!1?gt:null,onKeyDown:Ve,onFocus:ke,onBlur:dt,value:"",onChange:w})),g.createElement(d.a,Object.assign({},ot,{data:tt,itemKey:V,height:Te,fullHeight:!1,virtual:qe,itemHeight:Ge,prefixCls:"".concat(ce,"-list"),ref:Je}),function(Pt){var an=Pt.pos,nn=Pt.data,rn=nn.key,Tn=Object(h.a)(nn,["key"]),sn=Pt.isStart,un=Pt.isEnd,Jn=Object(a.e)(rn,an);delete Tn.children;var kn=Object(a.f)(Jn,Ut);return g.createElement(_,Object.assign({},Tn,kn,{active:st&&rn===st.data.key,pos:an,data:Pt.data,isStart:sn,isEnd:un,motion:_e,motionNodes:rn===v?at:null,motionType:yt,onMotionStart:vt,onMotionEnd:Lt,treeNodeRequiredProps:Ut,onMouseMove:function(){Bt(null)}}))}))},W=g.forwardRef(D);W.displayName="NodeList";var F=W,L=o("NvD2"),K=function(de){Object(C.a)(Oe,de);var Ce=Object(A.a)(Oe);function Oe(){var ce;return Object(b.a)(this,Oe),ce=Ce.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=g.createRef(),ce.onNodeDragStart=function(Ee,ye){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=ye.props.eventKey;ce.dragNode=ye;var ae=Object(i.b)(le,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:Ee,node:Object(a.b)(ye.props)})},ce.onNodeDragEnter=function(Ee,ye){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=ye.props,Se=ae.pos,oe=ae.eventKey;if(!ce.dragNode||me.indexOf(oe)!==-1)return;var ee=Object(i.c)(Ee,ye);if(ce.dragNode.props.eventKey===oe&&ee===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:oe,dropPosition:ee}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(J){clearTimeout(ce.delayedDragEnterLogic[J])}),ce.delayedDragEnterLogic[Se]=window.setTimeout(function(){if(!ce.state.dragging)return;var J=Object(T.a)(le),Q=$[oe];Q&&(Q.children||[]).length&&(J=Object(i.a)(le,oe)),"expandedKeys"in ce.props||ce.setExpandedKeys(J),re&&re({event:Ee,node:Object(a.b)(ye.props),expandedKeys:J})},400)},0)},ce.onNodeDragOver=function(Ee,ye){var ue=ce.state.dragNodesKeys,le=ce.props.onDragOver,$=ye.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(Ee,ye);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}le&&le({event:Ee,node:Object(a.b)(ye.props)})},ce.onNodeDragLeave=function(Ee,ye){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:Ee,node:Object(a.b)(ye.props)})},ce.onNodeDragEnd=function(Ee,ye){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:Ee,node:Object(a.b)(ye.props)}),ce.dragNode=null},ce.onNodeDrop=function(Ee,ye){var ue=ce.state,le=ue.dragNodesKeys,$=le===void 0?[]:le,me=ue.dropPosition,re=ce.props.onDrop,ae=ye.props,Se=ae.eventKey,oe=ae.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),$.indexOf(Se)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var ee=Object(i.k)(oe),J={event:Ee,node:Object(a.b)(ye.props),dragNode:ce.dragNode?Object(a.b)(ce.dragNode.props):null,dragNodesKeys:$.slice(),dropPosition:me+Number(ee[ee.length-1]),dropToGap:!1};me!==0&&(J.dropToGap=!0),re&&re(J),ce.dragNode=null},ce.cleanDragState=function(){var Ee=ce.state.dragging;Ee&&ce.setState({dragging:!1})},ce.onNodeClick=function(Ee,ye){var ue=ce.props.onClick;ue&&ue(Ee,ye)},ce.onNodeDoubleClick=function(Ee,ye){var ue=ce.props.onDoubleClick;ue&&ue(Ee,ye)},ce.onNodeSelect=function(Ee,ye){var ue=ce.state.selectedKeys,le=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=ye.selected,Se=ye.key,oe=!ae;oe?re?ue=Object(i.a)(ue,Se):ue=[Se]:ue=Object(i.b)(ue,Se);var ee=ue.map(function(J){var Q=le[J];return Q?Q.node:null}).filter(function(J){return J});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:oe,node:ye,selectedNodes:ee,nativeEvent:Ee.nativeEvent})},ce.onNodeCheck=function(Ee,ye,ue){var le=ce.state,$=le.keyEntities,me=le.checkedKeys,re=le.halfCheckedKeys,ae=ce.props,Se=ae.checkStrictly,oe=ae.onCheck,ee=ye.key,J,Q={event:"check",node:ye,checked:ue,nativeEvent:Ee.nativeEvent};if(Se){var ve=ue?Object(i.a)(me,ee):Object(i.b)(me,ee),_e=Object(i.b)(re,ee);J={checked:ve,halfChecked:_e},Q.checkedNodes=ve.map(function(ft){return $[ft]}).filter(function(ft){return ft}).map(function(ft){return ft.node}),ce.setUncontrolledState({checkedKeys:ve})}else{var Te=Object(L.a)([].concat(Object(T.a)(me),[ee]),!0,$),Ge=Te.checkedKeys,qe=Te.halfCheckedKeys;if(!ue){var ut=new Set(Ge);ut.delete(ee);var st=Object(L.a)(Array.from(ut),{checked:!1,halfCheckedKeys:qe},$);Ge=st.checkedKeys,qe=st.halfCheckedKeys}J=Ge,Q.checkedNodes=[],Q.checkedNodesPositions=[],Q.halfCheckedKeys=qe,Ge.forEach(function(ft){var gt=$[ft];if(!gt)return;var Ve=gt.node,ke=gt.pos;Q.checkedNodes.push(Ve),Q.checkedNodesPositions.push({node:Ve,pos:ke})}),ce.setUncontrolledState({checkedKeys:Ge},!1,{halfCheckedKeys:qe})}oe&&oe(J,Q)},ce.onNodeLoad=function(Ee){return new Promise(function(ye){ce.setState(function(ue){var le=ue.loadedKeys,$=le===void 0?[]:le,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Se=ae.loadData,oe=ae.onLoad,ee=Ee.key;if(!Se||$.indexOf(ee)!==-1||re.indexOf(ee)!==-1)return{};var J=Se(Ee);return J.then(function(){var Q=ce.state,ve=Q.loadedKeys,_e=Q.loadingKeys,Te=Object(i.a)(ve,ee),Ge=Object(i.b)(_e,ee);oe&&oe(Te,{event:"load",node:Ee}),ce.setUncontrolledState({loadedKeys:Te}),ce.setState({loadingKeys:Ge}),ye()}),{loadingKeys:Object(i.a)(re,ee)}})})},ce.onNodeMouseEnter=function(Ee,ye){var ue=ce.props.onMouseEnter;ue&&ue({event:Ee,node:ye})},ce.onNodeMouseLeave=function(Ee,ye){var ue=ce.props.onMouseLeave;ue&&ue({event:Ee,node:ye})},ce.onNodeContextMenu=function(Ee,ye){var ue=ce.props.onRightClick;ue&&(Ee.preventDefault(),ue({event:Ee,node:ye}))},ce.onFocus=function(){var Ee=ce.props.onFocus;ce.setState({focused:!0}),Ee&&Ee.apply(void 0,arguments)},ce.onBlur=function(){var Ee=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),Ee&&Ee.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var Ee=ce.state,ye=Ee.expandedKeys,ue=Ee.selectedKeys,le=Ee.loadedKeys,$=Ee.loadingKeys,me=Ee.checkedKeys,re=Ee.halfCheckedKeys,ae=Ee.dragOverNodeKey,Se=Ee.dropPosition,oe=Ee.keyEntities;return{expandedKeys:ye||[],selectedKeys:ue||[],loadedKeys:le||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Se,keyEntities:oe}},ce.setExpandedKeys=function(Ee){var ye=ce.state.treeData,ue=Object(a.d)(ye,Ee);ce.setUncontrolledState({expandedKeys:Ee,flattenNodes:ue},!0)},ce.onNodeExpand=function(Ee,ye){var ue=ce.state.expandedKeys,le=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=ye.key,Se=ye.expanded;if(le)return;var oe=ue.indexOf(ae),ee=!Se;if(Object(f.a)(Se&&oe!==-1||!Se&&oe===-1,"Expand state not sync with index check"),ee?ue=Object(i.a)(ue,ae):ue=Object(i.b)(ue,ae),ce.setExpandedKeys(ue),me&&me(ue,{node:ye,expanded:ee,nativeEvent:Ee.nativeEvent}),ee&&re){var J=ce.onNodeLoad(ye);J&&J.then(function(){var Q=Object(a.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:Q})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(Ee){var ye=ce.state.activeKey,ue=ce.props.onActiveChange;if(ye===Ee)return;ce.setState({activeKey:Ee}),Ee!==null&&ce.scrollTo({key:Ee}),ue&&ue(Ee)},ce.getActiveItem=function(){var Ee=ce.state,ye=Ee.activeKey,ue=Ee.flattenNodes;return ye===null?null:ue.find(function(le){var $=le.data.key;return $===ye})||null},ce.offsetActiveKey=function(Ee){var ye=ce.state,ue=ye.flattenNodes,le=ye.activeKey,$=ue.findIndex(function(ae){var Se=ae.data.key;return Se===le});$===-1&&Ee<0&&($=ue.length),$=($+Ee+ue.length)%ue.length;var me=ue[$];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(Ee){var ye=ce.state,ue=ye.activeKey,le=ye.expandedKeys,$=ye.checkedKeys,me=ce.props,re=me.onKeyDown,ae=me.checkable,Se=me.selectable;switch(Ee.which){case e.a.UP:{ce.offsetActiveKey(-1),Ee.preventDefault();break}case e.a.DOWN:{ce.offsetActiveKey(1),Ee.preventDefault();break}}var oe=ce.getActiveItem();if(oe&&oe.data){var ee=ce.getTreeNodeRequiredProps(),J=oe.data.isLeaf===!1||!!(oe.data.children||[]).length,Q=Object(a.b)(Object(m.a)(Object(m.a)({},Object(a.f)(ue,ee)),{},{data:oe.data,active:!0}));switch(Ee.which){case e.a.LEFT:{J&&le.includes(ue)?ce.onNodeExpand({},Q):oe.parent&&ce.onActiveChange(oe.parent.data.key),Ee.preventDefault();break}case e.a.RIGHT:{J&&!le.includes(ue)?ce.onNodeExpand({},Q):oe.children&&oe.children.length&&ce.onActiveChange(oe.children[0].data.key),Ee.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ae&&!Q.disabled&&Q.checkable!==!1&&!Q.disableCheckbox?ce.onNodeCheck({},Q,!$.includes(ue)):!ae&&Se&&!Q.disabled&&Q.selectable!==!1&&ce.onNodeSelect({},Q);break}}}re&&re(Ee)},ce.setUncontrolledState=function(Ee){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 le=!1,$=!0,me={};Object.keys(Ee).forEach(function(re){if(re in ce.props){$=!1;return}le=!0,me[re]=Ee[re]}),le&&(!ye||$)&&ce.setState(Object(m.a)(Object(m.a)({},me),ue))},ce.scrollTo=function(Ee){ce.listRef.current.scrollTo(Ee)},ce}return Object(y.a)(Oe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Ee,ye=this.state,ue=ye.focused,le=ye.flattenNodes,$=ye.keyEntities,me=ye.dragging,re=ye.activeKey,ae=this.props,Se=ae.prefixCls,oe=ae.className,ee=ae.style,J=ae.showLine,Q=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Te=ae.selectable,Ge=ae.showIcon,qe=ae.icon,ut=ae.switcherIcon,st=ae.draggable,ft=ae.checkable,gt=ae.checkStrictly,Ve=ae.disabled,ke=ae.motion,dt=ae.loadData,Bt=ae.filterTreeNode,vt=ae.height,Rt=ae.itemHeight,ot=ae.virtual,Je=ae.titleRender,et=ae.onContextMenu,Me=Object(i.f)(this.props);return g.createElement(n.a.Provider,{value:{prefixCls:Se,selectable:Te,showIcon:Ge,icon:qe,switcherIcon:ut,draggable:st,checkable:ft,checkStrictly:gt,disabled:Ve,keyEntities:$,loadData:dt,filterTreeNode:Bt,titleRender:Je,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}},g.createElement("div",{className:l()(Se,oe,(Ee={},Object(M.a)(Ee,"".concat(Se,"-show-line"),J),Object(M.a)(Ee,"".concat(Se,"-focused"),ue),Object(M.a)(Ee,"".concat(Se,"-active-focused"),re!==null),Ee))},g.createElement(F,Object.assign({ref:this.listRef,prefixCls:Se,style:ee,data:le,disabled:Ve,selectable:Te,checkable:!!ft,motion:ke,dragging:me,height:vt,itemHeight:Rt,virtual:ot,focusable:Q,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:et},this.getTreeNodeRequiredProps(),Me))))}}],[{key:"getDerivedStateFromProps",value:function(Ee,ye){var ue=ye.prevProps,le={prevProps:Ee};function $(qe){return!ue&&qe in Ee||ue&&ue[qe]!==Ee[qe]}var me;if($("treeData")?me=Ee.treeData:$("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(a.c)(Ee.children)),me){le.treeData=me;var re=Object(a.a)(me);le.keyEntities=Object(m.a)(Object(M.a)({},v,U),re.keyEntities)}var ae=le.keyEntities||ye.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))le.expandedKeys=Ee.autoExpandParent||!ue&&Ee.defaultExpandParent?Object(i.e)(Ee.expandedKeys,ae):Ee.expandedKeys;else if(!ue&&Ee.defaultExpandAll){var Se=Object(m.a)({},ae);delete Se[v],le.expandedKeys=Object.keys(Se).map(function(qe){return Se[qe].key})}else!ue&&Ee.defaultExpandedKeys&&(le.expandedKeys=Ee.autoExpandParent||Ee.defaultExpandParent?Object(i.e)(Ee.defaultExpandedKeys,ae):Ee.defaultExpandedKeys);if(le.expandedKeys||delete le.expandedKeys,me||le.expandedKeys){var oe=Object(a.d)(me||ye.treeData,le.expandedKeys||ye.expandedKeys);le.flattenNodes=oe}if(Ee.selectable&&($("selectedKeys")?le.selectedKeys=Object(i.d)(Ee.selectedKeys,Ee):!ue&&Ee.defaultSelectedKeys&&(le.selectedKeys=Object(i.d)(Ee.defaultSelectedKeys,Ee))),Ee.checkable){var ee;if($("checkedKeys")?ee=Object(i.j)(Ee.checkedKeys)||{}:!ue&&Ee.defaultCheckedKeys?ee=Object(i.j)(Ee.defaultCheckedKeys)||{}:me&&(ee=Object(i.j)(Ee.checkedKeys)||{checkedKeys:ye.checkedKeys,halfCheckedKeys:ye.halfCheckedKeys}),ee){var J=ee,Q=J.checkedKeys,ve=Q===void 0?[]:Q,_e=J.halfCheckedKeys,Te=_e===void 0?[]:_e;if(!Ee.checkStrictly){var Ge=Object(L.a)(ve,!0,ae);ve=Ge.checkedKeys,Te=Ge.halfCheckedKeys}le.checkedKeys=ve,le.halfCheckedKeys=Te}}return $("loadedKeys")&&(le.loadedKeys=Ee.loadedKeys),le}}]),Oe}(g.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=u.a;var te=K,fe=z.b=te},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 a}),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"),m=o("Vhoy"),T=o("MI8n"),b=o("JYp7"),y=o("pmY6"),C=o("24hK"),A=o("nnTU"),g=o("T8No"),e=o("Cg/j"),f=o("t9D7"),r=function(s,u,S,E){var _=arguments.length,P=_<3?u:E===null?E=Object.getOwnPropertyDescriptor(u,S):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(s,u,S,E);else for(var x=s.length-1;x>=0;x--)(R=s[x])&&(P=(_<3?R(P):_>3?R(u,S,P):R(u,S))||P);return _>3&&P&&Object.defineProperty(u,S,P),P},l=function(s,u){return function(S,E){u(S,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 a=Object(e.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new T.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 u of s)this._commands.set(u.id,u);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let u=!1;for(const S of s)u=this._commands.delete(S.id)||u;u&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((u,S)=>s.set(S,u)),s}appendMenuItem(s,u){return this.appendMenuItems(b.a.single({id:s,item:u}))}appendMenuItems(s){const u=new Set,S=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)),S.push(P.push(_)),u.add(E)}return this._onDidChangeMenu.fire(u),Object(y.i)(()=>{if(S.size>0){for(let E of S)E();this._onDidChangeMenu.fire(u),S.clear()}})}getMenuItems(s){let u;return this._menuItems.has(s)?u=[...this._menuItems.get(s)]:u=[],s===i.CommandPalette&&this._appendImplicitItems(u),u}_appendImplicitItems(s){const u=new Set;for(const S of s)n(S)&&(u.add(S.command.id),S.alt&&u.add(S.alt.id));this._commands.forEach((S,E)=>{u.has(E)||s.push({command:S})})}};class h extends M.e{constructor(s,u,S,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=u,this._contextKeyService=S,this._options=E}get actions(){const s=[],u=this._menuService.createMenu(this.item.submenu,this._contextKeyService),S=u.getActions(this._options);u.dispose();for(const[,E]of S)E.length>0&&(s.push(...E),s.push(new M.d));return s.length&&s.pop(),s}}let d=class s{constructor(u,S,E,_,P){var R,x;if(this._commandService=P,this.id=u.id,this.label=(E==null?void 0:E.renderShortTitle)&&u.shortTitle?typeof u.shortTitle=="string"?u.shortTitle:u.shortTitle.value:typeof u.title=="string"?u.title:u.title.value,this.tooltip=(x=typeof u.tooltip=="string"?u.tooltip:(R=u.tooltip)===null||R===void 0?void 0:R.value)!==null&&x!==void 0?x:"",this.enabled=!u.precondition||_.contextMatchesRules(u.precondition),this.checked=void 0,u.toggled){const w=u.toggled.condition?u.toggled:{condition:u.toggled};this.checked=_.contextMatchesRules(w.condition),this.checked&&w.tooltip&&(this.tooltip=typeof w.tooltip=="string"?w.tooltip:w.tooltip.value),w.title&&(this.label=typeof w.title=="string"?w.title:w.title.value)}this.item=u,this.alt=S?new s(S,void 0,E,_,P):void 0,this._options=E,f.d.isThemeIcon(u.icon)&&(this.class=m.a.asClassName(u.icon))}dispose(){}run(...u){var S,E;let _=[];return((S=this._options)===null||S===void 0?void 0:S.arg)&&(_=[..._,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(_=[..._,...u]),this._commandService.executeCommand(this.id,..._)}};d=r([l(3,g.b),l(4,A.b)],d)},fyJ8:function(k,z,o){"use strict";var M=o("rePB"),m=o("VTBJ"),T=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),C=o.n(y),A=o("TSYQ"),g=o.n(A),e=o("c+Xe"),f=o("sR1s");function r(c){return c&&Object(b.a)(c)==="object"&&!Array.isArray(c)&&!y.isValidElement(c)}function l(c){return typeof c=="string"?!0:Object(e.c)(c)}function n(c,h){var d,s=c.prefixCls,u=c.className,S=c.record,E=c.index,_=c.dataIndex,P=c.render,R=c.children,x=c.component,w=x===void 0?"td":x,v=c.colSpan,O=c.rowSpan,U=c.fixLeft,I=c.fixRight,N=c.firstFixLeft,V=c.lastFixLeft,H=c.firstFixRight,D=c.lastFixRight,W=c.appendNode,F=c.additionalProps,L=F===void 0?{}:F,K=c.ellipsis,te=c.align,fe=c.rowType,de=c.isSticky,Ce="".concat(s,"-cell"),Oe,ce;if(R)ce=R;else{var Ee=Object(f.b)(S,_);if(ce=Ee,P){var ye=P(Ee,S,E);r(ye)?(ce=ye.children,Oe=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(Ce,"-content")},ce));var ue=Oe||{},le=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(T.a)(ue,["colSpan","rowSpan","style","className"]),Se=le!==void 0?le:v,oe=$!==void 0?$:O;if(Se===0||oe===0)return null;var ee={},J=typeof U=="number",Q=typeof I=="number";J&&(ee.position="sticky",ee.left=U),Q&&(ee.position="sticky",ee.right=I);var ve={};te&&(ve.textAlign=te);var _e,Te=K===!0?{showTitle:!0}:K;Te&&(Te.showTitle||fe==="header")&&(typeof ce=="string"||typeof ce=="number"?_e=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(_e=ce.props.children));var Ge=Object(m.a)(Object(m.a)(Object(m.a)({title:_e},ae),L),{},{colSpan:Se&&Se!==1?Se:null,rowSpan:oe&&oe!==1?oe:null,className:g()(Ce,u,(d={},Object(M.a)(d,"".concat(Ce,"-fix-left"),J),Object(M.a)(d,"".concat(Ce,"-fix-left-first"),N),Object(M.a)(d,"".concat(Ce,"-fix-left-last"),V),Object(M.a)(d,"".concat(Ce,"-fix-right"),Q),Object(M.a)(d,"".concat(Ce,"-fix-right-first"),H),Object(M.a)(d,"".concat(Ce,"-fix-right-last"),D),Object(M.a)(d,"".concat(Ce,"-ellipsis"),K),Object(M.a)(d,"".concat(Ce,"-with-append"),W),Object(M.a)(d,"".concat(Ce,"-fix-sticky"),(J||Q)&&de),d),L.className,re),style:Object(m.a)(Object(m.a)(Object(m.a)(Object(m.a)({},L.style),ve),ee),me),ref:l(w)?h:null});return y.createElement(w,Object.assign({},Ge),W,ce)}var i=y.forwardRef(n);i.displayName="Cell";var a=y.memo(i,function(c,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,c.record):!1});z.a=a},"gb/T":function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.ECB=function(){var m=M.lib.BlockCipherMode.extend();return m.Encryptor=m.extend({processBlock:function(T,b){this._cipher.encryptBlock(T,b)}}),m.Decryptor=m.extend({processBlock:function(T,b){this._cipher.decryptBlock(T,b)}}),m}(),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"),m=o.n(M),T=o("TSYQ"),b=o.n(T),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 L=Date.now(),K=!1;Object.keys(W).forEach(function(te){var fe=W[te].current;if(!fe)return;K=!0;var de=fe.style;de.transitionDuration=".3s, .3s, .3s, .06s",F.current&&L-F.current<100&&(de.transitionDuration="0s, 0s")}),K&&(F.current=Date.now())}),[W]};function A(){return A=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},A.apply(this,arguments)}function g(H,D){return n(H)||l(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 r(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 r(H,D)}function r(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 l(H,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(H)))return;var W=[],F=!0,L=!1,K=void 0;try{for(var te=H[Symbol.iterator](),fe;!(F=(fe=te.next()).done)&&!(W.push(fe.value),D&&W.length===D);F=!0);}catch(de){L=!0,K=de}finally{try{!F&&te.return!=null&&te.return()}finally{if(L)throw K}}return W}function n(H){if(Array.isArray(H))return H}function i(H,D){if(H==null)return{};var W=a(H,D),F,L;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(L=0;L<K.length;L++){if(F=K[L],D.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function a(H,D){if(H==null)return{};var W={},F=Object.keys(H),L,K;for(K=0;K<F.length;K++){if(L=F[K],D.indexOf(L)>=0)continue;W[L]=H[L]}return W}var c=function(D){var W=D.className,F=D.percent,L=D.prefixCls,K=D.strokeColor,te=D.strokeLinecap,fe=D.strokeWidth,de=D.style,Ce=D.trailColor,Oe=D.trailWidth,ce=D.transition,Ee=i(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ee.gapPosition;var ye=Array.isArray(F)?F:[F],ue=Array.isArray(K)?K:[K],le=C(ye),$=g(le,1),me=$[0],re=fe/2,ae=100-fe/2,Se="M ".concat(te==="round"?re:0,",").concat(re,`
|
|
|
L `).concat(te==="round"?ae:100,",").concat(re),oe="0 0 100 ".concat(fe),ee=0;return m.a.createElement("svg",A({className:b()("".concat(L,"-line"),W),viewBox:oe,preserveAspectRatio:"none",style:de},Ee),m.a.createElement("path",{className:"".concat(L,"-line-trail"),d:Se,strokeLinecap:te,stroke:Ce,strokeWidth:Oe||fe,fillOpacity:"0"}),ye.map(function(J,Q){var ve={strokeDasharray:"".concat(J,"px, 100px"),strokeDashoffset:"-".concat(ee,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_e=ue[Q]||ue[ue.length-1];return ee+=J,m.a.createElement("path",{key:Q,className:"".concat(L,"-line-path"),d:Se,strokeLinecap:te,stroke:_e,strokeWidth:fe,fillOpacity:"0",ref:me[Q],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)||S(H,D)||u()}function u(){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 S(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,L=!1,K=void 0;try{for(var te=H[Symbol.iterator](),fe;!(F=(fe=te.next()).done)&&!(W.push(fe.value),D&&W.length===D);F=!0);}catch(de){L=!0,K=de}finally{try{!F&&te.return!=null&&te.return()}finally{if(L)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,L;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);for(L=0;L<K.length;L++){if(F=K[L],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),L,K;for(K=0;K<F.length;K++){if(L=F[K],D.indexOf(L)>=0)continue;W[L]=H[L]}return W}var w=0;function v(H){return+H.replace("%","")}function O(H){return Array.isArray(H)?H:[H]}function U(H,D,W,F){var L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,K=arguments.length>5?arguments[5]:void 0,te=50-F/2,fe=0,de=-te,Ce=0,Oe=-2*te;switch(K){case"left":fe=-te,de=0,Ce=2*te,Oe=0;break;case"right":fe=te,de=0,Ce=-2*te,Oe=0;break;case"bottom":de=te,Oe=2*te;break;default:}var ce="M 50,50 m ".concat(fe,",").concat(de,`
|
|
|
a `).concat(te,",").concat(te," 0 1 1 ").concat(Ce,",").concat(-Oe,`
|
|
|
a `).concat(te,",").concat(te," 0 1 1 ").concat(-Ce,",").concat(Oe),Ee=Math.PI*2*te,ye={stroke:W,strokeDasharray:"".concat(D/100*(Ee-L),"px ").concat(Ee,"px"),strokeDashoffset:"-".concat(L/2+H/100*(Ee-L),"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 I=function(D){var W=D.prefixCls,F=D.strokeWidth,L=D.trailWidth,K=D.gapDegree,te=D.gapPosition,fe=D.trailColor,de=D.strokeLinecap,Ce=D.style,Oe=D.className,ce=D.strokeColor,Ee=D.percent,ye=R(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(M.useMemo)(function(){return w+=1,w},[]),le=U(0,100,fe,F,K,te),$=le.pathString,me=le.pathStyle,re=O(Ee),ae=O(ce),Se=ae.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),oe=C(re),ee=s(oe,1),J=ee[0],Q=function(){var _e=0;return re.map(function(Te,Ge){var qe=ae[Ge]||ae[ae.length-1],ut=Object.prototype.toString.call(qe)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(ue,")"):"",st=U(_e,Te,qe,F,K,te);return _e+=Te,m.a.createElement("path",{key:Ge,className:"".concat(W,"-circle-path"),d:st.pathString,stroke:ut,strokeLinecap:de,strokeWidth:F,opacity:Te===0?0:1,fillOpacity:"0",style:st.pathStyle,ref:J[Ge]})})};return m.a.createElement("svg",d({className:b()("".concat(W,"-circle"),Oe),viewBox:"0 0 100 100",style:Ce},ye),Se&&m.a.createElement("defs",null,m.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Se).sort(function(ve,_e){return v(ve)-v(_e)}).map(function(ve,_e){return m.a.createElement("stop",{key:_e,offset:ve,stopColor:Se[ve]})}))),m.a.createElement("path",{className:"".concat(W,"-circle-trail"),d:$,stroke:fe,strokeLinecap:de,strokeWidth:L||F,fillOpacity:"0",style:me}),Q().reverse())};I.defaultProps=y;var N=I,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"),m=o("Ff2n"),T=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(A){var g=A.expandable,e=Object(m.a)(A,["expandable"]);return"expandable"in A?Object(M.a)(Object(M.a)({},e),g):e}function C(A){return Object.keys(A).reduce(function(g,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(g[e]=A[e]),g},{})}},"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"),m=o("746U");class T{constructor(){this.data=new Map}add(y,C){M.a(m.l(y)),M.a(m.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 T},jO9C:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso97971={pad:function(m,T){m.concat(M.lib.WordArray.create([2147483648],1)),M.pad.ZeroPadding.pad(m,T)},unpad:function(m){M.pad.ZeroPadding.unpad(m),m.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"),m=o("wCAj"),T=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),C=o("3S7+"),A=o("sRBo"),g=o("kaz8"),e=o("oBTY"),f=o("9og8"),r=o("tJVT"),l=o("k1fw"),n=o("+L6B"),i=o("2/Rp"),a=o("O3gP"),c=o("lrIw"),h=o("5NDa"),d=o("5rEg"),s=o("y8nQ"),u=o("Vl3Y"),S=o("OaEy"),E=o("2fM7"),_=o("WmNS"),P=o.n(_),R=o("q1tI"),x=o.n(R),w=o("55Ip"),v=o("wd/R"),O=o.n(v),U=o("RotF"),I=o.n(U),N=o("E7E6"),V=o.n(N),H=o("oUNq"),D=o("Nf5h"),W=o("Fhpe"),F=o.n(W),L=[];function K(Ce){var Oe=Ce.onSearch,ce=Ce.schools;return x.a.createElement(u.a,{colon:!1,layout:"inline",onFinish:Oe,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},x.a.createElement(u.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(u.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(u.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(u.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 te;(function(Ce){Ce[Ce.INITDATA=0]="INITDATA",Ce[Ce.INITSCHOOLS=1]="INITSCHOOLS",Ce[Ce.SHOWLOADING=2]="SHOWLOADING",Ce[Ce.SELECTEDIDS=3]="SELECTEDIDS",Ce[Ce.SETQUERY=4]="SETQUERY",Ce[Ce.SETPAGE=5]="SETPAGE"})(te||(te={}));function fe(Ce,Oe){switch(Oe.type){case te.INITDATA:return Object(l.a)(Object(l.a)({},Ce),Oe.payload);case te.SETQUERY:return Object(l.a)(Object(l.a)({},Ce),Oe.payload);case te.SETPAGE:return Object(l.a)(Object(l.a)({},Ce),{},{page:Oe.payload,reload:!1});case te.SHOWLOADING:return Object(l.a)(Object(l.a)({},Ce),{},{loading:Oe.payload});case te.INITSCHOOLS:return Object(l.a)(Object(l.a)({},Ce),{},{schools:Oe.payload});case te.SELECTEDIDS:return Object(l.a)(Object(l.a)({},Ce),{},{selectedIds:Oe.payload});default:throw new Error}}var de={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};z.a=function(Ce){var Oe=Ce.onSelect,ce=Ce.onCancel,Ee=Ce.container_id,ye=Ce.container_type,ue=Object(R.useReducer)(fe,de),le=Object(r.a)(ue,2),$=le[0],me=le[1],re=$.data,ae=$.schools,Se=$.loading,oe=$.selectedIds,ee=$.page,J=$.count,Q=$.query,ve=$.reload;Object(R.useEffect)(function(){function ft(){return gt.apply(this,arguments)}function gt(){return gt=Object(f.a)(P.a.mark(function Ve(){var ke,dt,Bt;return P.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Object(H.Ab)(Object(l.a)(Object(l.a)({},Q),{},{page:ee,container_type:ye,container_id:Ee}));case 2:ke=Rt.sent,dt=ke.users,Bt=ke.user_count,me({type:te.INITDATA,payload:{data:ve?dt:[].concat(Object(e.a)(re),Object(e.a)(dt)),count:Bt}});case 6:case"end":return Rt.stop()}},Ve)})),gt.apply(this,arguments)}Q&&ft()},[ee,Q,ve,Ee,ye]),Object(R.useEffect)(function(){function ft(){return gt.apply(this,arguments)}function gt(){return gt=Object(f.a)(P.a.mark(function Ve(){var ke,dt;return P.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return vt.next=2,Object(H.nb)({});case 2:ke=vt.sent,dt=ke.school_names,me({type:te.INITSCHOOLS,payload:dt.map(function(Rt){return{value:Rt}})});case 5:case"end":return vt.stop()}},Ve)})),gt.apply(this,arguments)}ft()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(gt,Ve){return x.a.createElement(g.a,{value:Ve.numid,checked:oe.includes(Ve.numid),disabled:!!gt})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(gt,Ve){return x.a.createElement("div",null,x.a.createElement(C.a,{placement:"bottom",title:gt},x.a.createElement(w.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Ve.login),target:"_blank"},gt||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(gt){return x.a.createElement(C.a,{placement:"bottom",title:gt},x.a.createElement("span",{style:{color:"#000000"}},gt||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(gt){return x.a.createElement(C.a,{placement:"bottom",title:gt},x.a.createElement("span",{style:{color:"#000000"}},gt||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(gt){return x.a.createElement(C.a,{placement:"bottom",title:gt},x.a.createElement("span",{style:{color:"#000000"}},gt||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(gt){return x.a.createElement(C.a,{placement:"bottom",title:gt},x.a.createElement("span",{style:{color:"#000000"}},gt||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(gt){return x.a.createElement(C.a,{placement:"bottom",title:gt},x.a.createElement("span",{style:{color:"#000000"}},gt||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(gt){return x.a.createElement("span",{style:{color:"#000000"}},gt?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(gt){return x.a.createElement(C.a,{placement:"bottom",title:gt?O()(gt).format("YYYY-MM-DD HH:mm"):"- -"},x.a.createElement("span",{style:{color:"#000000"}},gt?O()(gt).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(gt){if(gt===1)return x.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Te(ft){me({type:te.SETQUERY,payload:{page:1,reload:!0,query:ft}})}function Ge(ft){me({type:te.SETPAGE,payload:ft})}function qe(ft){var gt=oe.indexOf(ft);gt>=0?oe.splice(gt,1):oe.push(ft),me({type:te.SELECTEDIDS,payload:Object(e.a)(oe)})}function ut(){oe.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Oe(oe,Ee),me({type:te.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var st=J>ee*10;return x.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},x.a.createElement(K,{onSearch:Te,schools:ae}),Q?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(m.a,{pagination:!1,dataSource:L,columns:_e}))),x.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},x.a.createElement(I.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Ge,hasMore:st,useWindow:!1},x.a.createElement(D.f,null,x.a.createElement(m.a,{loading:Se,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(gt){return{onClick:function(ke){gt.added!==1&&qe(gt.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 Vr});var M=o("rePB"),m=o("ODXe"),T=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),C=o("TSYQ"),A=o.n(C),g=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),r=o("xEkU"),l=o.n(r),n=o("t23M");function i(Ye){var ct=Object(y.useRef)(),bt=Object(y.useRef)(!1);function nt(){for(var Pe=arguments.length,ze=new Array(Pe),Ie=0;Ie<Pe;Ie++)ze[Ie]=arguments[Ie];bt.current||(l.a.cancel(ct.current),ct.current=l()(function(){Ye.apply(void 0,ze)}))}return Object(y.useEffect)(function(){return function(){bt.current=!0,l.a.cancel(ct.current)}},[]),nt}function a(Ye){var ct=Object(y.useRef)([]),bt=Object(y.useState)({}),nt=Object(m.a)(bt,2),Pe=nt[1],ze=Object(y.useRef)(typeof Ye=="function"?Ye():Ye),Ie=i(function(){var Qe=ze.current;ct.current.forEach(function(ht){Qe=ht(Qe)}),ct.current=[],ze.current=Qe,Pe({})});function Ze(Qe){ct.current.push(Qe),Ie()}return[ze.current,Ze]}var c=o("4IlW");function h(Ye,ct){var bt,nt=Ye.prefixCls,Pe=Ye.id,ze=Ye.active,Ie=Ye.rtl,Ze=Ye.tab,Qe=Ze.key,ht=Ze.tab,it=Ze.disabled,It=Ze.closeIcon,zt=Ye.tabBarGutter,hn=Ye.tabPosition,ln=Ye.closable,dn=Ye.renderWrapper,cn=Ye.removeAriaLabel,Hn=Ye.editable,Cn=Ye.onClick,Nr=Ye.onRemove,Ar=Ye.onFocus,Yr="".concat(nt,"-tab");y.useEffect(function(){return Nr},[]);var jr={};hn==="top"||hn==="bottom"?jr[Ie?"marginLeft":"marginRight"]=zt:jr.marginBottom=zt;var ta=Hn&&ln!==!1&&!it;function Gn(xn){if(it)return;Cn(xn)}function wr(xn){xn.preventDefault(),xn.stopPropagation(),Hn.onEdit("remove",{key:Qe,event:xn})}var zn=y.createElement("div",{key:Qe,ref:ct,className:A()(Yr,(bt={},Object(M.a)(bt,"".concat(Yr,"-with-remove"),ta),Object(M.a)(bt,"".concat(Yr,"-active"),ze),Object(M.a)(bt,"".concat(Yr,"-disabled"),it),bt)),style:jr,onClick:Gn},y.createElement("div",{role:"tab","aria-selected":ze,id:Pe&&"".concat(Pe,"-tab-").concat(Qe),className:"".concat(Yr,"-btn"),"aria-controls":Pe&&"".concat(Pe,"-panel-").concat(Qe),"aria-disabled":it,tabIndex:it?null:0,onClick:function(Fn){Fn.stopPropagation(),Gn(Fn)},onKeyDown:function(Fn){[c.a.SPACE,c.a.ENTER].includes(Fn.which)&&(Fn.preventDefault(),Gn(Fn))},onFocus:Ar},ht),ta&&y.createElement("button",{type:"button","aria-label":cn||"remove",tabIndex:0,className:"".concat(Yr,"-remove"),onClick:function(Fn){Fn.stopPropagation(),wr(Fn)}},It||Hn.removeIcon||"\xD7"));return dn&&(zn=dn(zn)),zn}var d=y.forwardRef(h),s={width:0,height:0,left:0,top:0};function u(Ye,ct,bt){return Object(y.useMemo)(function(){for(var nt,Pe=new Map,ze=ct.get((nt=Ye[0])===null||nt===void 0?void 0:nt.key)||s,Ie=ze.left+ze.width,Ze=0;Ze<Ye.length;Ze+=1){var Qe=Ye[Ze].key,ht=ct.get(Qe);if(!ht){var it;ht=ct.get((it=Ye[Ze-1])===null||it===void 0?void 0:it.key)||s}var It=Pe.get(Qe)||Object(b.a)({},ht);It.right=Ie-It.left-It.width,Pe.set(Qe,It)}return Pe},[Ye.map(function(nt){return nt.key}).join("_"),ct,bt])}var S={width:0,height:0,left:0,top:0,right:0};function E(Ye,ct,bt,nt,Pe){var ze=Pe.tabs,Ie=Pe.tabPosition,Ze=Pe.rtl,Qe,ht,it;["top","bottom"].includes(Ie)?(Qe="width",ht=Ze?"right":"left",it=Math.abs(ct.left)):(Qe="height",ht="top",it=-ct.top);var It=ct[Qe],zt=bt[Qe],hn=nt[Qe],ln=It;return zt+hn>It&&(ln=It-hn),Object(y.useMemo)(function(){if(!ze.length)return[0,0];for(var dn=ze.length,cn=dn,Hn=0;Hn<dn;Hn+=1){var Cn=Ye.get(ze[Hn].key)||S;if(Cn[ht]+Cn[Qe]>it+ln){cn=Hn-1;break}}for(var Nr=0,Ar=dn-1;Ar>=0;Ar-=1){var Yr=Ye.get(ze[Ar].key)||S;if(Yr[ht]<it){Nr=Ar+1;break}}return[Nr,cn]},[Ye,it,ln,Ie,ze.map(function(dn){return dn.key}).join("_"),Ze])}var _=o("wx14"),P=o("1OyB"),R=o("vuIU"),x=o("JX7q"),w=o("Ji7U"),v=o("LK+K"),O=o("I8Z2"),U=o("bT9E"),I=o("2GS6"),N=o("Gytx"),V=o.n(N),H=o("U8pU"),D=/iPhone/i,W=/iPod/i,F=/iPad/i,L=/\bAndroid(?:.+)Mobile\b/i,K=/Android/i,te=/\bAndroid(?:.+)SD4930UR\b/i,fe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,de=/Windows Phone/i,Ce=/\bWindows(?:.+)ARM\b/i,Oe=/BlackBerry/i,ce=/BB10/i,Ee=/Opera Mini/i,ye=/\b(CriOS|Chrome)(?:.+)Mobile/i,ue=/Mobile(?:.+)Firefox\b/i;function le(Ye,ct){return Ye.test(ct)}function $(Ye){var ct=Ye||(typeof navigator!="undefined"?navigator.userAgent:""),bt=(ct||"").split("[FBAN");if(typeof bt[1]!="undefined"){var nt=bt,Pe=Object(m.a)(nt,1);ct=Pe[0]}if(bt=ct.split("Twitter"),typeof bt[1]!="undefined"){var ze=bt,Ie=Object(m.a)(ze,1);ct=Ie[0]}var Ze={apple:{phone:le(D,ct)&&!le(de,ct),ipod:le(W,ct),tablet:!le(D,ct)&&le(F,ct)&&!le(de,ct),device:(le(D,ct)||le(W,ct)||le(F,ct))&&!le(de,ct)},amazon:{phone:le(te,ct),tablet:!le(te,ct)&&le(fe,ct),device:le(te,ct)||le(fe,ct)},android:{phone:!le(de,ct)&&le(te,ct)||!le(de,ct)&&le(L,ct),tablet:!le(de,ct)&&!le(te,ct)&&!le(L,ct)&&(le(fe,ct)||le(K,ct)),device:!le(de,ct)&&(le(te,ct)||le(fe,ct)||le(L,ct)||le(K,ct))||le(/\bokhttp\b/i,ct)},windows:{phone:le(de,ct),tablet:le(Ce,ct),device:le(de,ct)||le(Ce,ct)},other:{blackberry:le(Oe,ct),blackberry10:le(ce,ct),opera:le(Ee,ct),firefox:le(ue,ct),chrome:le(ye,ct),device:le(Oe,ct)||le(ce,ct)||le(Ee,ct)||le(ue,ct)||le(ye,ct)},any:null,phone:null,tablet:null};return Ze.any=Ze.apple.device||Ze.android.device||Ze.windows.device||Ze.other.device,Ze.phone=Ze.apple.phone||Ze.android.phone||Ze.windows.phone,Ze.tablet=Ze.apple.tablet||Ze.android.tablet||Ze.windows.tablet,Ze}var me=Object(b.a)(Object(b.a)({},$()),{},{isMobile:$}),re=me;function ae(){}function Se(Ye,ct,bt){var nt=ct||"";return Ye.key||"".concat(nt,"item_").concat(bt)}function oe(Ye){return"".concat(Ye,"-menu-")}function ee(Ye,ct){var bt=-1;y.Children.forEach(Ye,function(nt){bt+=1,nt&&nt.type&&nt.type.isMenuItemGroup?y.Children.forEach(nt.props.children,function(Pe){bt+=1,ct(Pe,bt)}):ct(nt,bt)})}function J(Ye,ct,bt){if(!Ye||bt.find)return;y.Children.forEach(Ye,function(nt){if(nt){var Pe=nt.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;ct.indexOf(nt.key)!==-1?bt.find=!0:nt.props.children&&J(nt.props.children,ct,bt)}})}var Q=["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(ct){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=ct&&typeof ct.getBoundingClientRect=="function"&&ct.getBoundingClientRect().width;if(nt){if(bt){var Pe=getComputedStyle(ct),ze=Pe.marginLeft,Ie=Pe.marginRight;nt+=+ze.replace("px","")+ +Ie.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(ct,bt,nt){ct&&Object(H.a)(ct.style)==="object"&&(ct.style[bt]=nt)},Te=function(){return re.any},Ge=o("bdgK"),qe=o("i8i4"),ut=o.n(qe),st=o("wgJM"),ft=o("l4aY"),gt=o("m+aA"),Ve=o("c+Xe"),ke=o("zT1h"),dt=o("QC+M");function Bt(Ye,ct,bt){return bt?Ye[0]===ct[0]:Ye[0]===ct[0]&&Ye[1]===ct[1]}function vt(Ye,ct,bt){var nt=Ye[ct]||{};return Object(b.a)(Object(b.a)({},nt),bt)}function Rt(Ye,ct,bt,nt){for(var Pe=bt.points,ze=Object.keys(Ye),Ie=0;Ie<ze.length;Ie+=1){var Ze=ze[Ie];if(Bt(Ye[Ze].points,Pe,nt))return"".concat(ct,"-placement-").concat(Ze)}return""}var ot=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ye=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(Ye)||/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(Ye==null?void 0:Ye.substr(0,4)))},Je=o("MNnm");function et(Ye,ct){var bt={};return bt[Ye.toLowerCase()]=ct.toLowerCase(),bt["Webkit".concat(Ye)]="webkit".concat(ct),bt["Moz".concat(Ye)]="moz".concat(ct),bt["ms".concat(Ye)]="MS".concat(ct),bt["O".concat(Ye)]="o".concat(ct.toLowerCase()),bt}function Me(Ye,ct){var bt={animationend:et("Animation","AnimationEnd"),transitionend:et("Transition","TransitionEnd")};return Ye&&("AnimationEvent"in ct||delete bt.animationend.animation,"TransitionEvent"in ct||delete bt.transitionend.transition),bt}var Be=Me(Object(Je.a)(),typeof window!="undefined"?window:{}),Xe={};if(Object(Je.a)()){var Ke=document.createElement("div");Xe=Ke.style}var $e={};function _t(Ye){if($e[Ye])return $e[Ye];var ct=Be[Ye];if(ct)for(var bt=Object.keys(ct),nt=bt.length,Pe=0;Pe<nt;Pe+=1){var ze=bt[Pe];if(Object.prototype.hasOwnProperty.call(ct,ze)&&ze in Xe)return $e[Ye]=ct[ze],$e[Ye]}return""}var Ft=_t("animationend"),qt=_t("transitionend"),bn=!!(Ft&&qt),At=Ft||"animationend",Et=qt||"transitionend";function je(Ye,ct){if(!Ye)return null;if(Object(H.a)(Ye)==="object"){var bt=ct.replace(/-\w/g,function(nt){return nt[1].toUpperCase()});return Ye[bt]}return"".concat(Ye,"-").concat(ct)}var rt="none",at="appear",Ae="enter",Fe="leave",Tt="none",yt="prepare",Ot="start",Lt="active",tt="end";function Ut(Ye){var ct=Object(y.useRef)(!1),bt=Object(y.useState)(Ye),nt=Object(m.a)(bt,2),Pe=nt[0],ze=nt[1];function Ie(Ze){ct.current||ze(Ze)}return Object(y.useEffect)(function(){return function(){ct.current=!0}},[]),[Pe,Ie]}var Pt=Object(Je.a)()?y.useLayoutEffect:y.useEffect,an=Pt,nn=function(){var Ye=y.useRef(null);function ct(){st.a.cancel(Ye.current)}function bt(nt){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ct();var ze=Object(st.a)(function(){Pe<=1?nt({isCanceled:function(){return ze!==Ye.current}}):bt(nt,Pe-1)});Ye.current=ze}return y.useEffect(function(){return function(){ct()}},[]),[bt,ct]},rn=[yt,Ot,Lt,tt],Tn=!1,sn=!0;function un(Ye){return Ye===Lt||Ye===tt}var Jn=function(Ye,ct){var bt=y.useState(Tt),nt=Object(m.a)(bt,2),Pe=nt[0],ze=nt[1],Ie=nn(),Ze=Object(m.a)(Ie,2),Qe=Ze[0],ht=Ze[1];function it(){ze(yt)}return an(function(){if(Pe!==Tt&&Pe!==tt){var It=rn.indexOf(Pe),zt=rn[It+1],hn=ct(Pe);hn===Tn?ze(zt):Qe(function(ln){function dn(){if(ln.isCanceled())return;ze(zt)}hn===!0?dn():Promise.resolve(hn).then(dn)})}},[Ye,Pe]),y.useEffect(function(){return function(){ht()}},[]),[it,Pe]},kn=function(Ye){var ct=Object(y.useRef)(),bt=Object(y.useRef)(Ye);bt.current=Ye;var nt=y.useCallback(function(Ie){bt.current(Ie)},[]);function Pe(Ie){Ie&&(Ie.removeEventListener(Et,nt),Ie.removeEventListener(At,nt))}function ze(Ie){ct.current&&ct.current!==Ie&&Pe(ct.current),Ie&&Ie!==ct.current&&(Ie.addEventListener(Et,nt),Ie.addEventListener(At,nt),ct.current=Ie)}return y.useEffect(function(){return function(){Pe(ct.current)}},[]),[ze,Pe]};function Yn(Ye,ct,bt,nt){var Pe=nt.motionEnter,ze=Pe===void 0?!0:Pe,Ie=nt.motionAppear,Ze=Ie===void 0?!0:Ie,Qe=nt.motionLeave,ht=Qe===void 0?!0:Qe,it=nt.motionDeadline,It=nt.motionLeaveImmediately,zt=nt.onAppearPrepare,hn=nt.onEnterPrepare,ln=nt.onLeavePrepare,dn=nt.onAppearStart,cn=nt.onEnterStart,Hn=nt.onLeaveStart,Cn=nt.onAppearActive,Nr=nt.onEnterActive,Ar=nt.onLeaveActive,Yr=nt.onAppearEnd,jr=nt.onEnterEnd,ta=nt.onLeaveEnd,Gn=nt.onVisibleChanged,wr=Ut(),zn=Object(m.a)(wr,2),xn=zn[0],Fn=zn[1],Kr=Ut(rt),sa=Object(m.a)(Kr,2),hr=sa[0],ra=sa[1],Ea=Ut(null),ca=Object(m.a)(Ea,2),xa=ca[0],Sr=ca[1],br=Object(y.useRef)(!1),Rr=Object(y.useRef)(null),nr=Object(y.useRef)(!1),da=Object(y.useRef)(null);function ya(){var Ua=bt();return Ua||da.current}var _a=Object(y.useRef)(!1);function Ta(Ua){var Pa=ya();if(Ua&&!Ua.deadline&&Ua.target!==Pa)return;var Za;hr===at&&_a.current?Za=Yr==null?void 0:Yr(Pa,Ua):hr===Ae&&_a.current?Za=jr==null?void 0:jr(Pa,Ua):hr===Fe&&_a.current&&(Za=ta==null?void 0:ta(Pa,Ua)),Za!==!1&&!nr.current&&(ra(rt),Sr(null))}var ha=kn(Ta),La=Object(m.a)(ha,1),Na=La[0],Ba=y.useMemo(function(){var Ua,Pa,Za;switch(hr){case"appear":return Ua={},Object(M.a)(Ua,yt,zt),Object(M.a)(Ua,Ot,dn),Object(M.a)(Ua,Lt,Cn),Ua;case"enter":return Pa={},Object(M.a)(Pa,yt,hn),Object(M.a)(Pa,Ot,cn),Object(M.a)(Pa,Lt,Nr),Pa;case"leave":return Za={},Object(M.a)(Za,yt,ln),Object(M.a)(Za,Ot,Hn),Object(M.a)(Za,Lt,Ar),Za;default:return{}}},[hr]),ni=Jn(hr,function(Ua){if(Ua===yt){var Pa=Ba[yt];return Pa?Pa(ya()):Tn}if(Ia in Ba){var Za;Sr(((Za=Ba[Ia])===null||Za===void 0?void 0:Za.call(Ba,ya(),null))||null)}return Ia===Lt&&(Na(ya()),it>0&&(clearTimeout(Rr.current),Rr.current=setTimeout(function(){Ta({deadline:!0})},it))),sn}),Fi=Object(m.a)(ni,2),Ai=Fi[0],Ia=Fi[1],bi=un(Ia);_a.current=bi,an(function(){Fn(ct);var Ua=br.current;if(br.current=!0,!Ye)return;var Pa;!Ua&&ct&&Ze&&(Pa=at),Ua&&ct&&ze&&(Pa=Ae),(Ua&&!ct&&ht||!Ua&&It&&!ct&&ht)&&(Pa=Fe),Pa&&(ra(Pa),Ai())},[ct]),Object(y.useEffect)(function(){(hr===at&&!Ze||hr===Ae&&!ze||hr===Fe&&!ht)&&ra(rt)},[Ze,ze,ht]),Object(y.useEffect)(function(){return function(){clearTimeout(Rr.current),nr.current=!0}},[]),Object(y.useEffect)(function(){xn!==void 0&&hr===rt&&(Gn==null||Gn(xn))},[xn,hr]);var wi=xa;return Ba[yt]&&Ia===Ot&&(wi=Object(b.a)({transition:"none"},wi)),[hr,Ia,wi,xn!=null?xn:ct]}var tr=function(Ye){Object(w.a)(bt,Ye);var ct=Object(v.a)(bt);function bt(){return Object(P.a)(this,bt),ct.apply(this,arguments)}return Object(R.a)(bt,[{key:"render",value:function(){return this.props.children}}]),bt}(y.Component),pr=tr;function ar(Ye){var ct=Ye;Object(H.a)(Ye)==="object"&&(ct=Ye.transitionSupport);function bt(Pe){return!!(Pe.motionName&&ct)}var nt=y.forwardRef(function(Pe,ze){var Ie=Pe.visible,Ze=Ie===void 0?!0:Ie,Qe=Pe.removeOnLeave,ht=Qe===void 0?!0:Qe,it=Pe.forceRender,It=Pe.children,zt=Pe.motionName,hn=Pe.leavedClassName,ln=Pe.eventProps,dn=bt(Pe),cn=Object(y.useRef)(),Hn=Object(y.useRef)();function Cn(){try{return Object(gt.a)(cn.current||Hn.current)}catch(ra){return null}}var Nr=Yn(dn,Ze,Cn,Pe),Ar=Object(m.a)(Nr,4),Yr=Ar[0],jr=Ar[1],ta=Ar[2],Gn=Ar[3],wr=y.useRef(Gn);Gn&&(wr.current=!0);var zn=Object(y.useRef)(ze);zn.current=ze;var xn=y.useCallback(function(ra){cn.current=ra,Object(Ve.b)(zn.current,ra)},[]),Fn,Kr=Object(b.a)(Object(b.a)({},ln),{},{visible:Ze});if(!It)Fn=null;else if(Yr===rt||!bt(Pe))Gn?Fn=It(Object(b.a)({},Kr),xn):!ht&&wr.current?Fn=It(Object(b.a)(Object(b.a)({},Kr),{},{className:hn}),xn):it?Fn=It(Object(b.a)(Object(b.a)({},Kr),{},{style:{display:"none"}}),xn):Fn=null;else{var sa,hr;jr===yt?hr="prepare":un(jr)?hr="active":jr===Ot&&(hr="start"),Fn=It(Object(b.a)(Object(b.a)({},Kr),{},{className:A()(je(zt,Yr),(sa={},Object(M.a)(sa,je(zt,"".concat(Yr,"-").concat(hr)),hr),Object(M.a)(sa,zt,typeof zt=="string"),sa)),style:ta}),xn)}return y.createElement(pr,{ref:Hn},Fn)});return nt.displayName="CSSMotion",nt}var mn=ar(bn),en="add",Nn="keep",Zr="remove",zr="removed";function Ur(Ye){var ct;return Ye&&Object(H.a)(Ye)==="object"&&"key"in Ye?ct=Ye:ct={key:Ye},Object(b.a)(Object(b.a)({},ct),{},{key:String(ct.key)})}function Dr(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ye.map(Ur)}function pe(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],bt=[],nt=0,Pe=ct.length,ze=Dr(Ye),Ie=Dr(ct);ze.forEach(function(ht){for(var it=!1,It=nt;It<Pe;It+=1){var zt=Ie[It];if(zt.key===ht.key){nt<It&&(bt=bt.concat(Ie.slice(nt,It).map(function(hn){return Object(b.a)(Object(b.a)({},hn),{},{status:en})})),nt=It),bt.push(Object(b.a)(Object(b.a)({},zt),{},{status:Nn})),nt+=1,it=!0;break}}it||bt.push(Object(b.a)(Object(b.a)({},ht),{},{status:Zr}))}),nt<Pe&&(bt=bt.concat(Ie.slice(nt).map(function(ht){return Object(b.a)(Object(b.a)({},ht),{},{status:en})})));var Ze={};bt.forEach(function(ht){var it=ht.key;Ze[it]=(Ze[it]||0)+1});var Qe=Object.keys(Ze).filter(function(ht){return Ze[ht]>1});return Qe.forEach(function(ht){bt=bt.filter(function(it){var It=it.key,zt=it.status;return It!==ht||zt!==Zr}),bt.forEach(function(it){it.key===ht&&(it.status=Nn)})}),bt}var X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function q(Ye){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn,bt=function(nt){Object(w.a)(ze,nt);var Pe=Object(v.a)(ze);function ze(){var Ie;return Object(P.a)(this,ze),Ie=Pe.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(Ze){Ie.setState(function(Qe){var ht=Qe.keyEntities;return{keyEntities:ht.map(function(it){return it.key!==Ze?it:Object(b.a)(Object(b.a)({},it),{},{status:zr})})}})},Ie}return Object(R.a)(ze,[{key:"render",value:function(){var Ze=this,Qe=this.state.keyEntities,ht=this.props,it=ht.component,It=ht.children,zt=ht.onVisibleChanged,hn=Object(T.a)(ht,["component","children","onVisibleChanged"]),ln=it||y.Fragment,dn={};return X.forEach(function(cn){dn[cn]=hn[cn],delete hn[cn]}),delete hn.keys,y.createElement(ln,hn,Qe.map(function(cn){var Hn=cn.status,Cn=Object(T.a)(cn,["status"]),Nr=Hn===en||Hn===Nn;return y.createElement(ct,Object(_.a)({},dn,{key:Cn.key,visible:Nr,eventProps:Cn,onVisibleChanged:function(Yr){zt==null||zt(Yr,{key:Cn.key}),Yr||Ze.removeKey(Cn.key)}}),It)}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,Qe){var ht=Ze.keys,it=Qe.keyEntities,It=Dr(ht),zt=pe(it,It);return{keyEntities:zt.filter(function(hn){var ln=it.find(function(dn){var cn=dn.key;return hn.key===cn});return!(ln&&ln.status===zr&&hn.status===Zr)})}}}]),ze}(y.Component);return bt.defaultProps={component:"div"},bt}var se=q(bn),De=mn;function he(Ye){var ct=Ye.prefixCls,bt=Ye.motion,nt=Ye.animation,Pe=Ye.transitionName;return bt||(nt?{motionName:"".concat(ct,"-").concat(nt)}:Pe?{motionName:Pe}:null)}function pt(Ye){var ct=Ye.prefixCls,bt=Ye.visible,nt=Ye.zIndex,Pe=Ye.mask,ze=Ye.maskMotion,Ie=Ye.maskAnimation,Ze=Ye.maskTransitionName;if(!Pe)return null;var Qe={};return(ze||Ze||Ie)&&(Qe=Object(b.a)({motionAppear:!0},he({motion:ze,prefixCls:ct,transitionName:Ze,animation:Ie}))),y.createElement(De,Object(_.a)({},Qe,{visible:bt,removeOnLeave:!0}),function(ht){var it=ht.className;return y.createElement("div",{style:{zIndex:nt},className:A()("".concat(ct,"-mask"),it)})})}var vn=o("9mu1"),Kn=o("o0o1"),dr=o.n(Kn),on=o("HaE+"),Mn=["measure","align",null,"motion"],Xn=function(Ye,ct){var bt=Object(y.useState)(null),nt=Object(m.a)(bt,2),Pe=nt[0],ze=nt[1],Ie=Object(y.useRef)(),Ze=Object(y.useRef)(!1);function Qe(It){Ze.current||ze(It)}function ht(){st.a.cancel(Ie.current)}function it(It){ht(),Ie.current=Object(st.a)(function(){Qe(function(zt){switch(Pe){case"align":return"motion";case"motion":return"stable";default:}return zt}),It==null||It()})}return Object(y.useEffect)(function(){Qe("measure")},[Ye]),Object(y.useEffect)(function(){switch(Pe){case"measure":ct();break;default:}Pe&&(Ie.current=Object(st.a)(Object(on.a)(dr.a.mark(function It(){var zt,hn;return dr.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:zt=Mn.indexOf(Pe),hn=Mn[zt+1],hn&&zt!==-1&&Qe(hn);case 3:case"end":return dn.stop()}},It)}))))},[Pe]),Object(y.useEffect)(function(){return function(){Ze.current=!0,ht()}},[]),[Pe,it]},$r=function(Ye){var ct=y.useState({width:0,height:0}),bt=Object(m.a)(ct,2),nt=bt[0],Pe=bt[1];function ze(Ze){Pe({width:Ze.offsetWidth,height:Ze.offsetHeight})}var Ie=y.useMemo(function(){var Ze={};if(Ye){var Qe=nt.width,ht=nt.height;Ye.indexOf("height")!==-1&&ht?Ze.height=ht:Ye.indexOf("minHeight")!==-1&&ht&&(Ze.minHeight=ht),Ye.indexOf("width")!==-1&&Qe?Ze.width=Qe:Ye.indexOf("minWidth")!==-1&&Qe&&(Ze.minWidth=Qe)}return Ze},[Ye,nt]);return[Ie,ze]},ga=y.forwardRef(function(Ye,ct){var bt=Ye.visible,nt=Ye.prefixCls,Pe=Ye.className,ze=Ye.style,Ie=Ye.children,Ze=Ye.zIndex,Qe=Ye.stretch,ht=Ye.destroyPopupOnHide,it=Ye.forceRender,It=Ye.align,zt=Ye.point,hn=Ye.getRootDomNode,ln=Ye.getClassNameFromAlign,dn=Ye.onAlign,cn=Ye.onMouseEnter,Hn=Ye.onMouseLeave,Cn=Ye.onMouseDown,Nr=Ye.onTouchStart,Ar=Object(y.useRef)(),Yr=Object(y.useRef)(),jr=Object(y.useState)(),ta=Object(m.a)(jr,2),Gn=ta[0],wr=ta[1],zn=$r(Qe),xn=Object(m.a)(zn,2),Fn=xn[0],Kr=xn[1];function sa(){Qe&&Kr(hn())}var hr=Xn(bt,sa),ra=Object(m.a)(hr,2),Ea=ra[0],ca=ra[1],xa=Object(y.useRef)();function Sr(){return zt||hn}function br(){var ha;(ha=Ar.current)===null||ha===void 0||ha.forceAlign()}function Rr(ha,La){var Na=ln(La);Gn!==Na&&wr(Na),Ea==="align"&&(Gn!==Na?Promise.resolve().then(function(){br()}):ca(function(){var Ba;(Ba=xa.current)===null||Ba===void 0||Ba.call(xa)}),dn==null||dn(ha,La))}var nr=Object(b.a)({},he(Ye));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ha){var La=nr[ha];nr[ha]=function(Na,Ba){return ca(),La==null?void 0:La(Na,Ba)}});function da(){return new Promise(function(ha){xa.current=ha})}y.useEffect(function(){!nr.motionName&&Ea==="motion"&&ca()},[nr.motionName,Ea]),y.useImperativeHandle(ct,function(){return{forceAlign:br,getElement:function(){return Yr.current}}});var ya=Object(b.a)(Object(b.a)({},Fn),{},{zIndex:Ze,opacity:Ea==="motion"||Ea==="stable"||!bt?void 0:0,pointerEvents:Ea==="stable"?void 0:"none"},ze),_a=!0;(It==null?void 0:It.points)&&(Ea==="align"||Ea==="stable")&&(_a=!1);var Ta=Ie;return y.Children.count(Ie)>1&&(Ta=y.createElement("div",{className:"".concat(nt,"-content")},Ie)),y.createElement(De,Object(_.a)({visible:bt,ref:Yr,leavedClassName:"".concat(nt,"-hidden")},nr,{onAppearPrepare:da,onEnterPrepare:da,removeOnLeave:ht,forceRender:it}),function(ha,La){var Na=ha.className,Ba=ha.style,ni=A()(nt,Pe,Gn,Na);return y.createElement(vn.a,{target:Sr(),key:"popup",ref:Ar,monitorWindowResize:!0,disabled:_a,align:It,onAlign:Rr},y.createElement("div",{ref:La,className:ni,onMouseEnter:cn,onMouseLeave:Hn,onMouseDownCapture:Cn,onTouchStartCapture:Nr,style:Object(b.a)(Object(b.a)({},Ba),ya)},Ta))})});ga.displayName="PopupInner";var pa=ga,fr=y.forwardRef(function(Ye,ct){var bt=Ye.prefixCls,nt=Ye.visible,Pe=Ye.zIndex,ze=Ye.children,Ie=Ye.mobile;Ie=Ie===void 0?{}:Ie;var Ze=Ie.popupClassName,Qe=Ie.popupStyle,ht=Ie.popupMotion,it=ht===void 0?{}:ht,It=Ie.popupRender,zt=y.useRef();y.useImperativeHandle(ct,function(){return{forceAlign:function(){},getElement:function(){return zt.current}}});var hn=Object(b.a)({zIndex:Pe},Qe),ln=ze;return y.Children.count(ze)>1&&(ln=y.createElement("div",{className:"".concat(bt,"-content")},ze)),It&&(ln=It(ln)),y.createElement(De,Object(_.a)({visible:nt,ref:zt,removeOnLeave:!0},it),function(dn,cn){var Hn=dn.className,Cn=dn.style,Nr=A()(bt,Ze,Hn);return y.createElement("div",{ref:cn,className:Nr,style:Object(b.a)(Object(b.a)({},Cn),hn)},ln)})});fr.displayName="MobilePopupInner";var za=fr,ja=["visible","mobile"],Ra=y.forwardRef(function(Ye,ct){var bt=Ye.visible,nt=Ye.mobile,Pe=Object(T.a)(Ye,ja),ze=Object(y.useState)(bt),Ie=Object(m.a)(ze,2),Ze=Ie[0],Qe=Ie[1],ht=Object(y.useState)(!1),it=Object(m.a)(ht,2),It=it[0],zt=it[1],hn=Object(b.a)(Object(b.a)({},Pe),{},{visible:Ze});Object(y.useEffect)(function(){Qe(bt),bt&&nt&&zt(ot())},[bt,nt]);var ln=It?y.createElement(za,Object(_.a)({},hn,{mobile:nt,ref:ct})):y.createElement(pa,Object(_.a)({},hn,{ref:ct}));return y.createElement("div",null,y.createElement(pt,hn),ln)});Ra.displayName="Popup";var Ha=Ra,wa=y.createContext(null),Ja=wa;function ka(){}function li(){return""}function oi(Ye){return Ye?Ye.ownerDocument:window.document}var ua=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function fa(Ye){var ct=function(bt){Object(w.a)(Pe,bt);var nt=Object(v.a)(Pe);function Pe(ze){var Ie;Object(P.a)(this,Pe),Ie=nt.call(this,ze),Ie.popupRef=y.createRef(),Ie.triggerRef=y.createRef(),Ie.attachId=void 0,Ie.clickOutsideHandler=void 0,Ie.touchOutsideHandler=void 0,Ie.contextMenuOutsideHandler1=void 0,Ie.contextMenuOutsideHandler2=void 0,Ie.mouseDownTimeout=void 0,Ie.focusTime=void 0,Ie.preClickTime=void 0,Ie.preTouchTime=void 0,Ie.delayTimer=void 0,Ie.hasPopupMouseDown=void 0,Ie.onMouseEnter=function(Qe){var ht=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",Qe),Ie.delaySetPopupVisible(!0,ht,ht?null:Qe)},Ie.onMouseMove=function(Qe){Ie.fireEvents("onMouseMove",Qe),Ie.setPoint(Qe)},Ie.onMouseLeave=function(Qe){Ie.fireEvents("onMouseLeave",Qe),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function(Qe){var ht;if(Qe.relatedTarget&&!Qe.relatedTarget.setTimeout&&Object(ft.a)((ht=Ie.popupRef.current)===null||ht===void 0?void 0:ht.getElement(),Qe.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function(Qe){Ie.fireEvents("onFocus",Qe),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function(Qe){Ie.fireEvents("onMouseDown",Qe),Ie.preClickTime=Date.now()},Ie.onTouchStart=function(Qe){Ie.fireEvents("onTouchStart",Qe),Ie.preTouchTime=Date.now()},Ie.onBlur=function(Qe){Ie.fireEvents("onBlur",Qe),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function(Qe){Qe.preventDefault(),Ie.fireEvents("onContextMenu",Qe),Ie.setPopupVisible(!0,Qe)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function(Qe){if(Ie.fireEvents("onClick",Qe),Ie.focusTime){var ht;if(Ie.preClickTime&&Ie.preTouchTime?ht=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?ht=Ie.preClickTime:Ie.preTouchTime&&(ht=Ie.preTouchTime),Math.abs(ht-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&Qe&&Qe.preventDefault&&Qe.preventDefault();var it=!Ie.state.popupVisible;(Ie.isClickToHide()&&!it||it&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,Qe)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var Qe;(Qe=Ie.context).onPopupMouseDown.apply(Qe,arguments)}},Ie.onDocumentClick=function(Qe){if(Ie.props.mask&&!Ie.props.maskClosable)return;var ht=Qe.target,it=Ie.getRootDomNode(),It=Ie.getPopupDomNode();(!Object(ft.a)(it,ht)||Ie.isContextMenuOnly())&&!Object(ft.a)(It,ht)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var Qe=Ie.props.getTriggerDOMNode;if(Qe)return Qe(Ie.triggerRef.current);try{var ht=Object(gt.a)(Ie.triggerRef.current);if(ht)return ht}catch(it){}return ut.a.findDOMNode(Object(x.a)(Ie))},Ie.getPopupClassNameFromAlign=function(Qe){var ht=[],it=Ie.props,It=it.popupPlacement,zt=it.builtinPlacements,hn=it.prefixCls,ln=it.alignPoint,dn=it.getPopupClassNameFromAlign;return It&&zt&&ht.push(Rt(zt,hn,Qe,ln)),dn&&ht.push(dn(Qe)),ht.join(" ")},Ie.getComponent=function(){var Qe=Ie.props,ht=Qe.prefixCls,it=Qe.destroyPopupOnHide,It=Qe.popupClassName,zt=Qe.onPopupAlign,hn=Qe.popupMotion,ln=Qe.popupAnimation,dn=Qe.popupTransitionName,cn=Qe.popupStyle,Hn=Qe.mask,Cn=Qe.maskAnimation,Nr=Qe.maskTransitionName,Ar=Qe.maskMotion,Yr=Qe.zIndex,jr=Qe.popup,ta=Qe.stretch,Gn=Qe.alignPoint,wr=Qe.mobile,zn=Qe.forceRender,xn=Ie.state,Fn=xn.popupVisible,Kr=xn.point,sa=Ie.getPopupAlign(),hr={};return Ie.isMouseEnterToShow()&&(hr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(hr.onMouseLeave=Ie.onPopupMouseLeave),hr.onMouseDown=Ie.onPopupMouseDown,hr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ha,Object(_.a)({prefixCls:ht,destroyPopupOnHide:it,visible:Fn,point:Gn&&Kr,className:It,align:sa,onAlign:zt,animation:ln,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},hr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:cn,mask:Hn,zIndex:Yr,transitionName:dn,maskAnimation:Cn,maskTransitionName:Nr,maskMotion:Ar,ref:Ie.popupRef,motion:hn,mobile:wr,forceRender:zn}),typeof jr=="function"?jr():jr)},Ie.attachParent=function(Qe){st.a.cancel(Ie.attachId);var ht=Ie.props,it=ht.getPopupContainer,It=ht.getDocument,zt=Ie.getRootDomNode(),hn;it?(zt||it.length===0)&&(hn=it(zt)):hn=It(Ie.getRootDomNode()).body,hn?hn.appendChild(Qe):Ie.attachId=Object(st.a)(function(){Ie.attachParent(Qe)})},Ie.getContainer=function(){var Qe=Ie.props.getDocument,ht=Qe(Ie.getRootDomNode()).createElement("div");return ht.style.position="absolute",ht.style.top="0",ht.style.left="0",ht.style.width="100%",Ie.attachParent(ht),ht},Ie.setPoint=function(Qe){var ht=Ie.props.alignPoint;if(!ht||!Qe)return;Ie.setState({point:{pageX:Qe.pageX,pageY:Qe.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var Ze;return"popupVisible"in ze?Ze=!!ze.popupVisible:Ze=!!ze.defaultPopupVisible,Ie.state={prevPopupVisible:Ze,popupVisible:Ze},ua.forEach(function(Qe){Ie["fire".concat(Qe)]=function(ht){Ie.fireEvents(Qe,ht)}}),Ie}return Object(R.a)(Pe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,Ze=this.state;if(Ze.popupVisible){var Qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Qe=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ke.a)(Qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Qe=Qe||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ke.a)(Qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Qe=Qe||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ke.a)(Qe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ke.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),st.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,Ze=Ie.popupPlacement,Qe=Ie.popupAlign,ht=Ie.builtinPlacements;return Ze&&ht?vt(ht,Ze,Qe):Qe}},{key:"setPopupVisible",value:function(Ie,Ze){var Qe=this.props.alignPoint,ht=this.state.popupVisible;this.clearDelayTimer(),ht!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:ht}),this.props.onPopupVisibleChange(Ie)),Qe&&Ze&&Ie&&this.setPoint(Ze)}},{key:"delaySetPopupVisible",value:function(Ie,Ze,Qe){var ht=this,it=Ze*1e3;if(this.clearDelayTimer(),it){var It=Qe?{pageX:Qe.pageX,pageY:Qe.pageY}:null;this.delayTimer=window.setTimeout(function(){ht.setPopupVisible(Ie,It),ht.clearDelayTimer()},it)}else this.setPopupVisible(Ie,Qe)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Ie){var Ze=this.props.children.props,Qe=this.props;return Ze[Ie]&&Qe[Ie]?this["fire".concat(Ie)]:Ze[Ie]||Qe[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,Ze=Ie.action,Qe=Ie.showAction;return Ze.indexOf("click")!==-1||Qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ie=this.props.action;return Ie==="contextMenu"||Ie.length===1&&Ie[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,Ze=Ie.action,Qe=Ie.showAction;return Ze.indexOf("contextMenu")!==-1||Qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,Ze=Ie.action,Qe=Ie.hideAction;return Ze.indexOf("click")!==-1||Qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,Ze=Ie.action,Qe=Ie.showAction;return Ze.indexOf("hover")!==-1||Qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,Ze=Ie.action,Qe=Ie.hideAction;return Ze.indexOf("hover")!==-1||Qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,Ze=Ie.action,Qe=Ie.showAction;return Ze.indexOf("focus")!==-1||Qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,Ze=Ie.action,Qe=Ie.hideAction;return Ze.indexOf("focus")!==-1||Qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ie;(Ie=this.popupRef.current)===null||Ie===void 0||Ie.forceAlign()}}},{key:"fireEvents",value:function(Ie,Ze){var Qe=this.props.children.props[Ie];Qe&&Qe(Ze);var ht=this.props[Ie];ht&&ht(Ze)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,Ze=this.props,Qe=Ze.children,ht=Ze.forceRender,it=Ze.alignPoint,It=Ze.className,zt=Ze.autoDestroy,hn=y.Children.only(Qe),ln={key:"trigger"};this.isContextMenuToShow()?ln.onContextMenu=this.onContextMenu:ln.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ln.onClick=this.onClick,ln.onMouseDown=this.onMouseDown,ln.onTouchStart=this.onTouchStart):(ln.onClick=this.createTwoChains("onClick"),ln.onMouseDown=this.createTwoChains("onMouseDown"),ln.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ln.onMouseEnter=this.onMouseEnter,it&&(ln.onMouseMove=this.onMouseMove)):ln.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ln.onMouseLeave=this.onMouseLeave:ln.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ln.onFocus=this.onFocus,ln.onBlur=this.onBlur):(ln.onFocus=this.createTwoChains("onFocus"),ln.onBlur=this.createTwoChains("onBlur"));var dn=A()(hn&&hn.props&&hn.props.className,It);dn&&(ln.className=dn);var cn=Object(b.a)({},ln);Object(Ve.c)(hn)&&(cn.ref=Object(Ve.a)(this.triggerRef,hn.ref));var Hn=y.cloneElement(hn,cn),Cn;return(Ie||this.popupRef.current||ht)&&(Cn=y.createElement(Ye,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&zt&&(Cn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Hn,Cn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,Ze){var Qe=Ie.popupVisible,ht={};return Qe!==void 0&&Ze.popupVisible!==Qe&&(ht.popupVisible=Qe,ht.prevPopupVisible=Ze.popupVisible),ht}}]),Pe}(y.Component);return ct.contextType=Ja,ct.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:ka,afterPopupVisibleChange:ka,onPopupAlign:ka,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ct}var oa=fa(dt.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]}},Mt={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,Ht=0,Nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Vt=function(ct,bt,nt){var Pe=oe(bt),ze=ct.getState();ct.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},ze.defaultActiveFirst),{},Object(M.a)({},Pe,nt))})},$t=function(Ye){Object(w.a)(bt,Ye);var ct=Object(v.a)(bt);function bt(nt){var Pe;Object(P.a)(this,bt),Pe=ct.call(this,nt),Pe.onDestroy=function(it){Pe.props.onDestroy(it)},Pe.onKeyDown=function(it){var It=it.keyCode,zt=Pe.menuInstance,hn=Pe.props.store,ln=Pe.getVisible();if(It===c.a.ENTER)return Pe.onTitleClick(it),Vt(hn,Pe.props.eventKey,!0),!0;if(It===c.a.RIGHT)return ln?zt.onKeyDown(it):(Pe.triggerOpenChange(!0),Vt(hn,Pe.props.eventKey,!0)),!0;if(It===c.a.LEFT){var dn;if(ln)dn=zt.onKeyDown(it);else return;return dn||(Pe.triggerOpenChange(!1),dn=!0),dn}return ln&&(It===c.a.UP||It===c.a.DOWN)?zt.onKeyDown(it):void 0},Pe.onOpenChange=function(it){Pe.props.onOpenChange(it)},Pe.onPopupVisibleChange=function(it){Pe.triggerOpenChange(it,it?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(it){var It=Pe.props,zt=It.eventKey,hn=It.onMouseEnter,ln=It.store;Vt(ln,Pe.props.eventKey,!1),hn({key:zt,domEvent:it})},Pe.onMouseLeave=function(it){var It=Pe.props,zt=It.parentMenu,hn=It.eventKey,ln=It.onMouseLeave;zt.subMenuInstance=Object(x.a)(Pe),ln({key:hn,domEvent:it})},Pe.onTitleMouseEnter=function(it){var It=Pe.props,zt=It.eventKey,hn=It.onItemHover,ln=It.onTitleMouseEnter;hn({key:zt,hover:!0}),ln({key:zt,domEvent:it})},Pe.onTitleMouseLeave=function(it){var It=Pe.props,zt=It.parentMenu,hn=It.eventKey,ln=It.onItemHover,dn=It.onTitleMouseLeave;zt.subMenuInstance=Object(x.a)(Pe),ln({key:hn,hover:!1}),dn({key:hn,domEvent:it})},Pe.onTitleClick=function(it){var It=Object(x.a)(Pe),zt=It.props;if(zt.onTitleClick({key:zt.eventKey,domEvent:it}),zt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!Pe.getVisible(),"click"),Vt(zt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(it){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(it))},Pe.onSelect=function(it){Pe.props.onSelect(it)},Pe.onDeselect=function(it){Pe.props.onDeselect(it)},Pe.getPrefixCls=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu")},Pe.getActiveClassName=function(){return"".concat(Pe.getPrefixCls(),"-active")},Pe.getDisabledClassName=function(){return"".concat(Pe.getPrefixCls(),"-disabled")},Pe.getSelectedClassName=function(){return"".concat(Pe.getPrefixCls(),"-selected")},Pe.getOpenClassName=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu-open")},Pe.getVisible=function(){return Pe.state.isOpen},Pe.getMode=function(){return Pe.state.mode},Pe.saveMenuInstance=function(it){Pe.menuInstance=it},Pe.addKeyPath=function(it){return Object(b.a)(Object(b.a)({},it),{},{keyPath:(it.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(it,It){var zt=Pe.props.eventKey,hn=function(){Pe.onOpenChange({key:zt,item:Object(x.a)(Pe),trigger:It,open:it})};It==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){hn()},0):hn()},Pe.isChildrenSelected=function(){var it={find:!1};return J(Pe.props.children,Pe.props.selectedKeys,it),it.find},Pe.isInlineMode=function(){return Pe.getMode()==="inline"},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var it=qe.findDOMNode(Pe.menuInstance);if(it.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(it){Pe.subMenuTitle=it},Pe.getBaseProps=function(){var it=Object(x.a)(Pe),It=it.props,zt=Pe.getMode();return{mode:zt==="horizontal"?"vertical":zt,visible:Pe.getVisible(),level:It.level+1,inlineIndent:It.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:It.selectedKeys,eventKey:"".concat(It.eventKey,"-menu-"),openKeys:It.openKeys,motion:It.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:It.subMenuOpenDelay,parentMenu:Object(x.a)(Pe),subMenuCloseDelay:It.subMenuCloseDelay,forceSubMenuRender:It.forceSubMenuRender,triggerSubMenuAction:It.triggerSubMenuAction,builtinPlacements:It.builtinPlacements,defaultActiveFirst:It.store.getState().defaultActiveFirst[oe(It.eventKey)],multiple:It.multiple,prefixCls:It.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:It.itemIcon,expandIcon:It.expandIcon,direction:It.direction}},Pe.getMotion=function(it,It){var zt=Object(x.a)(Pe),hn=zt.haveRendered,ln=Pe.props,dn=ln.motion,cn=ln.rootPrefixCls,Hn=Object(b.a)(Object(b.a)({},dn),{},{leavedClassName:"".concat(cn,"-hidden"),removeOnLeave:!1,motionAppear:hn||!It||it!=="inline"});return Hn};var ze=nt.store,Ie=nt.eventKey,Ze=ze.getState(),Qe=Ze.defaultActiveFirst;Pe.isRootMenu=!1;var ht=!1;return Qe&&(ht=Qe[Ie]),Vt(ze,Ie,ht),Pe.state={mode:nt.mode,isOpen:nt.isOpen},Pe}return Object(R.a)(bt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,ze=this.props,Ie=ze.mode,Ze=ze.parentMenu,Qe=ze.manualRef,ht=ze.isOpen,it=function(){Pe.setState({mode:Ie,isOpen:ht})},It=ht!==this.state.isOpen,zt=Ie!==this.state.mode;if((zt||It)&&(st.a.cancel(this.updateStateRaf),zt?this.updateStateRaf=Object(st.a)(it):it()),Qe&&Qe(this),Ie!=="horizontal"||!(Ze==null?void 0:Ze.isRootMenu)||!ht)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,ze=Pe.onDestroy,Ie=Pe.eventKey;ze&&ze(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),st.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Pe,ze){var Ie=this.getBaseProps();return y.createElement(Xt,Object(_.a)({},Ie,{id:this.internalMenuId,className:Pe,style:ze}),this.props.children)}},{key:"renderChildren",value:function(){var Pe=this,ze=this.getBaseProps(),Ie=ze.mode,Ze=ze.visible,Qe=ze.forceSubMenuRender,ht=ze.direction,it=this.getMotion(Ie,Ze);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ze||Qe,!this.haveOpened)return y.createElement("div",null);var It=A()("".concat(ze.prefixCls,"-sub"),Object(M.a)({},"".concat(ze.prefixCls,"-rtl"),ht==="rtl"));return this.isInlineMode()?y.createElement(De,Object(_.a)({visible:ze.visible,forceRender:Qe},it),function(zt){var hn=zt.className,ln=zt.style,dn=A()(It,hn);return Pe.renderPopupMenu(dn,ln)}):this.renderPopupMenu(It)}},{key:"render",value:function(){var Pe,ze,Ie,Ze=Object(b.a)({},this.props),Qe=this.getVisible(),ht=this.getPrefixCls(),it=this.isInlineMode(),It=this.getMode(),zt=A()(ht,"".concat(ht,"-").concat(It),(Pe={},Object(M.a)(Pe,Ze.className,!!Ze.className),Object(M.a)(Pe,this.getOpenClassName(),Qe),Object(M.a)(Pe,this.getActiveClassName(),Ze.active||Qe&&!it),Object(M.a)(Pe,this.getDisabledClassName(),Ze.disabled),Object(M.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||(Ze.eventKey?this.internalMenuId="".concat(Ze.eventKey,"$Menu"):(Ht+=1,this.internalMenuId="$__$".concat(Ht,"$Menu")));var hn={},ln={},dn={};Ze.disabled||(hn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},dn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var cn={},Hn=Ze.direction,Cn=Hn==="rtl";it&&(Cn?cn.paddingRight=Ze.inlineIndent*Ze.level:cn.paddingLeft=Ze.inlineIndent*Ze.level);var Nr={};this.getVisible()&&(Nr={"aria-owns":this.internalMenuId});var Ar=null;It!=="horizontal"&&(Ar=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ar=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Yr=y.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:cn,className:"".concat(ht,"-title"),role:"button"},dn,ln,{"aria-expanded":Qe},Nr,{"aria-haspopup":"true",title:typeof Ze.title=="string"?Ze.title:void 0}),Ze.title,Ar||y.createElement("i",{className:"".concat(ht,"-arrow")})),jr=this.renderChildren(),ta=((ze=Ze.parentMenu)===null||ze===void 0?void 0:ze.isRootMenu)?Ze.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},Gn=Nt[It],wr=Ze.popupOffset?{offset:Ze.popupOffset}:{},zn=A()((Ie={},Object(M.a)(Ie,Ze.popupClassName,Ze.popupClassName&&!it),Object(M.a)(Ie,"".concat(ht,"-rtl"),Cn),Ie)),xn=Ze.disabled,Fn=Ze.triggerSubMenuAction,Kr=Ze.subMenuOpenDelay,sa=Ze.forceSubMenuRender,hr=Ze.subMenuCloseDelay,ra=Ze.builtinPlacements;Q.forEach(function(Sr){return delete Ze[Sr]}),delete Ze.onClick;var Ea=Cn?Object(b.a)(Object(b.a)({},Mt),ra):Object(b.a)(Object(b.a)({},lt),ra);delete Ze.direction;var ca=this.getBaseProps(),xa=it?null:this.getMotion(ca.mode,ca.visible);return y.createElement("li",Object(_.a)({},Ze,hn,{className:zt,role:"menuitem"}),y.createElement(oa,{prefixCls:ht,popupClassName:A()("".concat(ht,"-popup"),zn),getPopupContainer:ta,builtinPlacements:Ea,popupPlacement:Gn,popupVisible:it?!1:Qe,popupAlign:wr,popup:it?null:jr,action:xn||it?[]:[Fn],mouseEnterDelay:Kr,mouseLeaveDelay:hr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:sa,popupMotion:xa},Yr),it?jr:null)}}]),bt}(y.Component);$t.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var En=Object(O.b)(function(Ye,ct){var bt=Ye.openKeys,nt=Ye.activeKey,Pe=Ye.selectedKeys,ze=ct.eventKey,Ie=ct.subMenuKey;return{isOpen:bt.indexOf(ze)>-1,active:nt[Ie]===ze,selectedKeys:Pe}})($t);En.isSubMenu=!0;var gn=En,Un="menuitem-overflowed",An=.5,tn=function(Ye){Object(w.a)(bt,Ye);var ct=Object(v.a)(bt);function bt(){var nt;return Object(P.a)(this,bt),nt=ct.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 Pe=nt.props.prefixCls,ze=nt.childRef.current;return ze?[].slice.call(ze.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Pe,ze,Ie){var Ze=nt.props,Qe=Ze.overflowedIndicator,ht=Ze.level,it=Ze.mode,It=Ze.prefixCls,zt=Ze.theme;if(ht!==1||it!=="horizontal")return null;var hn=nt.props.children[0],ln=hn.props,dn=ln.children,cn=ln.title,Hn=ln.style,Cn=Object(T.a)(ln,["children","title","style"]),Nr=Object(b.a)({},Hn),Ar="".concat(Pe,"-overflowed-indicator"),Yr="".concat(Pe,"-overflowed-indicator");ze.length===0&&Ie!==!0?Nr=Object(b.a)(Object(b.a)({},Nr),{},{display:"none"}):Ie&&(Nr=Object(b.a)(Object(b.a)({},Nr),{},{visibility:"hidden",position:"absolute"}),Ar="".concat(Ar,"-placeholder"),Yr="".concat(Yr,"-placeholder"));var jr=zt?"".concat(It,"-").concat(zt):"",ta={};return Q.forEach(function(Gn){Cn[Gn]!==void 0&&(ta[Gn]=Cn[Gn])}),y.createElement(gn,Object(_.a)({title:Qe,className:"".concat(It,"-overflowed-submenu"),popupClassName:jr},ta,{key:Ar,eventKey:Yr,disabled:!1,style:Nr}),ze)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Pe=nt.childRef.current;if(!Pe)return;var ze=Pe.children;if(!ze||ze.length===0)return;var Ie=Pe.children[ze.length-1];_e(Ie,"display","inline-block");var Ze=nt.getMenuItemNodes(),Qe=Ze.filter(function(ht){return ht.className.split(" ").indexOf(Un)>=0});Qe.forEach(function(ht){_e(ht,"display","inline-block")}),nt.menuItemSizes=Ze.map(function(ht){return ve(ht,!0)}),Qe.forEach(function(ht){_e(ht,"display","none")}),nt.overflowedIndicatorWidth=ve(Pe.children[Pe.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(ht,it){return ht+it},0),nt.handleResize(),_e(Ie,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Pe=nt.childRef.current;if(!Pe)return;var ze=ve(Pe);nt.overflowedItems=[];var Ie=0,Ze;nt.originalTotalWidth>ze+An&&(Ze=-1,nt.menuItemSizes.forEach(function(Qe){Ie+=Qe,Ie+nt.overflowedIndicatorWidth<=ze&&(Ze+=1)})),nt.setState({lastVisibleIndex:Ze})},nt}return Object(R.a)(bt,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ze=this.childRef.current;if(!ze)return;this.resizeObserver=new Ge.default(function(Ie){Ie.forEach(function(){var Ze=Pe.cancelFrameId;cancelAnimationFrame(Ze),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(ze.children).concat(ze).forEach(function(Ie){Pe.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(ze.children).concat(ze).forEach(function(Ie){Pe.resizeObserver.observe(Ie)}),Pe.setChildrenWidthAndResize()}),this.mutationObserver.observe(ze,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Pe){var ze=this,Ie=this.state.lastVisibleIndex;return(Pe||[]).reduce(function(Ze,Qe,ht){var it=Qe;if(ze.props.mode==="horizontal"){var It=ze.getOverflowedSubMenuItem(Qe.props.eventKey,[]);Ie!==void 0&&ze.props.className.indexOf("".concat(ze.props.prefixCls,"-root"))!==-1&&(ht>Ie&&(it=y.cloneElement(Qe,{style:{display:"none"},eventKey:"".concat(Qe.props.eventKey,"-hidden"),className:"".concat(Un)})),ht===Ie+1&&(ze.overflowedItems=Pe.slice(Ie+1).map(function(hn){return y.cloneElement(hn,{key:hn.props.eventKey,mode:"vertical-left"})}),It=ze.getOverflowedSubMenuItem(Qe.props.eventKey,ze.overflowedItems)));var zt=[].concat(Object(f.a)(Ze),[It,it]);return ht===Pe.length-1&&zt.push(ze.getOverflowedSubMenuItem(Qe.props.eventKey,[],!0)),zt}return[].concat(Object(f.a)(Ze),[it])},[])}},{key:"render",value:function(){var Pe=this.props,ze=Pe.visible,Ie=Pe.prefixCls,Ze=Pe.overflowedIndicator,Qe=Pe.mode,ht=Pe.level,it=Pe.tag,It=Pe.children,zt=Pe.theme,hn=Object(T.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=it;return y.createElement(ln,Object(_.a)({ref:this.childRef},hn),this.renderChildren(It))}}]),bt}(y.Component);tn.defaultProps={tag:"div",className:""};var Pn=tn;function yn(Ye){return Ye.length?Ye.every(function(ct){return!!ct.props.disabled}):!0}function jn(Ye,ct,bt){var nt=Ye.getState();Ye.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(M.a)({},ct,bt))})}function Rn(Ye){return Ye.eventKey||"0-menu-"}function Qn(Ye,ct){var bt=ct,nt=Ye.children,Pe=Ye.eventKey;if(bt){var ze;if(ee(nt,function(Ie,Ze){Ie&&Ie.props&&!Ie.props.disabled&&bt===Se(Ie,Pe,Ze)&&(ze=!0)}),ze)return bt}return bt=null,Ye.defaultActiveFirst&&ee(nt,function(Ie,Ze){!bt&&Ie&&!Ie.props.disabled&&(bt=Se(Ie,Pe,Ze))}),bt}function mr(Ye){if(!Ye)return;var ct=this.instanceArray.indexOf(Ye);ct!==-1?this.instanceArray[ct]=Ye:this.instanceArray.push(Ye)}var kr=function(Ye){Object(w.a)(bt,Ye);var ct=Object(v.a)(bt);function bt(nt){var Pe;return Object(P.a)(this,bt),Pe=ct.call(this,nt),Pe.onKeyDown=function(ze,Ie){var Ze=ze.keyCode,Qe;if(Pe.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(Qe=it.onKeyDown(ze))}),Qe)return 1;var ht=null;return(Ze===c.a.UP||Ze===c.a.DOWN)&&(ht=Pe.step(Ze===c.a.UP?-1:1)),ht?(ze.preventDefault(),jn(Pe.props.store,Rn(Pe.props),ht.props.eventKey),typeof Ie=="function"&&Ie(ht),1):void 0},Pe.onItemHover=function(ze){var Ie=ze.key,Ze=ze.hover;jn(Pe.props.store,Rn(Pe.props),Ze?Ie:null)},Pe.onDeselect=function(ze){Pe.props.onDeselect(ze)},Pe.onSelect=function(ze){Pe.props.onSelect(ze)},Pe.onClick=function(ze){Pe.props.onClick(ze)},Pe.onOpenChange=function(ze){Pe.props.onOpenChange(ze)},Pe.onDestroy=function(ze){Pe.props.onDestroy(ze)},Pe.getFlatInstanceArray=function(){return Pe.instanceArray},Pe.step=function(ze){var Ie=Pe.getFlatInstanceArray(),Ze=Pe.props.store.getState().activeKey[Rn(Pe.props)],Qe=Ie.length;if(!Qe)return null;ze<0&&(Ie=Ie.concat().reverse());var ht=-1;if(Ie.every(function(hn,ln){return hn&&hn.props.eventKey===Ze?(ht=ln,!1):!0}),!Pe.props.defaultActiveFirst&&ht!==-1&&yn(Ie.slice(ht,Qe-1)))return;var it=(ht+1)%Qe,It=it;do{var zt=Ie[It];if(!zt||zt.props.disabled)It=(It+1)%Qe;else return zt}while(It!==it);return null},Pe.renderCommonMenuItem=function(ze,Ie,Ze){var Qe=Pe.props.store.getState(),ht=Object(x.a)(Pe),it=ht.props,It=Se(ze,it.eventKey,Ie),zt=ze.props;if(!zt||typeof ze.type=="string")return ze;var hn=It===Qe.activeKey,ln=Object(b.a)(Object(b.a)({mode:zt.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:it.prefixCls,index:Ie,parentMenu:it.parentMenu,manualRef:zt.disabled?void 0:Object(I.a)(ze.ref,mr.bind(Object(x.a)(Pe))),eventKey:It,active:!zt.disabled&&hn,multiple:it.multiple,onClick:function(cn){(zt.onClick||ae)(cn),Pe.onClick(cn)},onItemHover:Pe.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:zt.itemIcon||Pe.props.itemIcon,expandIcon:zt.expandIcon||Pe.props.expandIcon},Ze),{},{direction:it.direction});return(it.mode==="inline"||Te())&&(ln.triggerSubMenuAction="click"),y.cloneElement(ze,Object(b.a)(Object(b.a)({},ln),{},{key:It||Ie}))},Pe.renderMenuItem=function(ze,Ie,Ze){if(!ze)return null;var Qe=Pe.props.store.getState(),ht={openKeys:Qe.openKeys,selectedKeys:Qe.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:Ze};return Pe.renderCommonMenuItem(ze,Ie,ht)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(M.a)({},nt.eventKey,Qn(nt,nt.activeKey)))}),Pe.instanceArray=[],Pe}return Object(R.a)(bt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Pe){return this.props.visible||Pe.visible||this.props.className!==Pe.className||!V()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var ze=this.props,Ie="activeKey"in ze?ze.activeKey:ze.store.getState().activeKey[Rn(ze)],Ze=Qn(ze,Ie);if(Ze!==Ie)jn(ze.store,Rn(ze),Ze);else if("activeKey"in Pe){var Qe=Qn(Pe,Pe.activeKey);Ze!==Qe&&jn(ze.store,Rn(ze),Ze)}}},{key:"render",value:function(){var Pe=this,ze=Object(_.a)({},this.props);this.instanceArray=[];var Ie=A()(ze.prefixCls,ze.className,"".concat(ze.prefixCls,"-").concat(ze.mode)),Ze={className:Ie,role:ze.role||"menu"};ze.id&&(Ze.id=ze.id),ze.focusable&&(Ze.tabIndex=0,Ze.onKeyDown=this.onKeyDown);var Qe=ze.prefixCls,ht=ze.eventKey,it=ze.visible,It=ze.level,zt=ze.mode,hn=ze.overflowedIndicator,ln=ze.theme;return Q.forEach(function(dn){return delete ze[dn]}),delete ze.onClick,y.createElement(Pn,Object(_.a)({},ze,{prefixCls:Qe,mode:zt,tag:"ul",level:It,theme:ln,visible:it,overflowedIndicator:hn},Ze),Object(g.a)(ze.children).map(function(dn,cn){return Pe.renderMenuItem(dn,cn,ht||"0-menu-")}))}}]),bt}(y.Component);kr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var wn=Object(O.b)()(kr),Xt=wn,fn=o("Kwbf");function Dn(Ye,ct,bt){var nt=Ye.prefixCls,Pe=Ye.motion,ze=Ye.defaultMotions,Ie=ze===void 0?{}:ze,Ze=Ye.openAnimation,Qe=Ye.openTransitionName,ht=ct.switchingModeFromInline;if(Pe)return Pe;if(Object(H.a)(Ze)==="object"&&Ze)Object(fn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ze=="string")return{motionName:"".concat(nt,"-open-").concat(Ze)};if(Qe)return{motionName:Qe};var it=Ie[bt];return it||(ht?null:Ie.other)}var Qt=function(Ye){Object(w.a)(bt,Ye);var ct=Object(v.a)(bt);function bt(nt){var Pe;Object(P.a)(this,bt),Pe=ct.call(this,nt),Pe.onSelect=function(Ze){var Qe=Object(x.a)(Pe),ht=Qe.props;if(ht.selectable){var it=Pe.store.getState(),It=it.selectedKeys,zt=Ze.key;ht.multiple?It=It.concat([zt]):It=[zt],"selectedKeys"in ht||Pe.store.setState({selectedKeys:It}),ht.onSelect(Object(b.a)(Object(b.a)({},Ze),{},{selectedKeys:It}))}},Pe.onClick=function(Ze){var Qe=Pe.getRealMenuMode(),ht=Object(x.a)(Pe),it=ht.store,It=ht.props.onOpenChange;Qe!=="inline"&&!("openKeys"in Pe.props)&&(it.setState({openKeys:[]}),It([])),Pe.props.onClick(Ze)},Pe.onKeyDown=function(Ze,Qe){Pe.innerMenu.getWrappedInstance().onKeyDown(Ze,Qe)},Pe.onOpenChange=function(Ze){var Qe=Object(x.a)(Pe),ht=Qe.props,it=Pe.store.getState().openKeys.concat(),It=!1,zt=function(ln){var dn=!1;if(ln.open)dn=it.indexOf(ln.key)===-1,dn&&it.push(ln.key);else{var cn=it.indexOf(ln.key);dn=cn!==-1,dn&&it.splice(cn,1)}It=It||dn};Array.isArray(Ze)?Ze.forEach(zt):zt(Ze),It&&("openKeys"in Pe.props||Pe.store.setState({openKeys:it}),ht.onOpenChange(it))},Pe.onDeselect=function(Ze){var Qe=Object(x.a)(Pe),ht=Qe.props;if(ht.selectable){var it=Pe.store.getState().selectedKeys.concat(),It=Ze.key,zt=it.indexOf(It);zt!==-1&&it.splice(zt,1),"selectedKeys"in ht||Pe.store.setState({selectedKeys:it}),ht.onDeselect(Object(b.a)(Object(b.a)({},Ze),{},{selectedKeys:it}))}},Pe.onMouseEnter=function(Ze){Pe.restoreModeVerticalFromInline();var Qe=Pe.props.onMouseEnter;Qe&&Qe(Ze)},Pe.onTransitionEnd=function(Ze){var Qe=Ze.propertyName==="width"&&Ze.target===Ze.currentTarget,ht=Ze.target.className,it=Object.prototype.toString.call(ht)==="[object SVGAnimatedString]"?ht.animVal:ht,It=Ze.propertyName==="font-size"&&it.indexOf("anticon")>=0;(Qe||It)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function(Ze){Pe.innerMenu=Ze},Pe.isRootMenu=!0;var ze=nt.defaultSelectedKeys,Ie=nt.defaultOpenKeys;return"selectedKeys"in nt&&(ze=nt.selectedKeys||[]),"openKeys"in nt&&(Ie=nt.openKeys||[]),Pe.store=Object(O.c)({selectedKeys:ze,openKeys:Ie,activeKey:{"0-menu-":Qn(nt,nt.activeKey)}}),Pe.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Pe.store},Pe}return Object(R.a)(bt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){var ze=this.props,Ie=ze.siderCollapsed,Ze=ze.inlineCollapsed,Qe=ze.onOpenChange;(!Pe.inlineCollapsed&&Ze||!Pe.siderCollapsed&&Ie)&&Qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,ze=this.store,Ie=this.prevOpenKeys,Ze=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");Ze?(this.prevOpenKeys=ze.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,ze=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return ze&&Ie?"inline":Ie?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,ze=Pe.inlineCollapsed,Ie=Pe.siderCollapsed;return Ie!==void 0?Ie:ze}},{key:"restoreModeVerticalFromInline",value:function(){var Pe=this.state.switchingModeFromInline;Pe&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Pe=Object(b.a)({},Object(U.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ze=this.getRealMenuMode();return Pe.className+=" ".concat(Pe.prefixCls,"-root"),Pe.direction==="rtl"&&(Pe.className+=" ".concat(Pe.prefixCls,"-rtl")),Pe=Object(b.a)(Object(b.a)({},Pe),{},{mode:ze,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Dn(this.props,this.state,ze)}),delete Pe.openAnimation,delete Pe.openTransitionName,y.createElement(O.a,{store:this.store},y.createElement(Xt,Object(_.a)({},Pe,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Pe,ze){var Ie=ze.prevProps,Ze=ze.store,Qe=Ze.getState(),ht={},it={prevProps:Pe};return Ie.mode==="inline"&&Pe.mode!=="inline"&&(it.switchingModeFromInline=!0),"openKeys"in Pe?ht.openKeys=Pe.openKeys||[]:((Pe.inlineCollapsed&&!Ie.inlineCollapsed||Pe.siderCollapsed&&!Ie.siderCollapsed)&&(it.switchingModeFromInline=!0,it.inlineOpenKeys=Qe.openKeys,ht.openKeys=[]),(!Pe.inlineCollapsed&&Ie.inlineCollapsed||!Pe.siderCollapsed&&Ie.siderCollapsed)&&(ht.openKeys=ze.inlineOpenKeys,it.inlineOpenKeys=[])),Object.keys(ht).length&&Ze.setState(ht),it}}]),bt}(y.Component);Qt.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=Qt,_n=function(Ye){Object(w.a)(bt,Ye);var ct=Object(v.a)(bt);function bt(){var nt;return Object(P.a)(this,bt),nt=ct.apply(this,arguments),nt.onKeyDown=function(Pe){var ze=Pe.keyCode;return ze===c.a.ENTER?(nt.onClick(Pe),!0):void 0},nt.onMouseLeave=function(Pe){var ze=nt.props,Ie=ze.eventKey,Ze=ze.onItemHover,Qe=ze.onMouseLeave;Ze({key:Ie,hover:!1}),Qe({key:Ie,domEvent:Pe})},nt.onMouseEnter=function(Pe){var ze=nt.props,Ie=ze.eventKey,Ze=ze.onItemHover,Qe=ze.onMouseEnter;Ze({key:Ie,hover:!0}),Qe({key:Ie,domEvent:Pe})},nt.onClick=function(Pe){var ze=nt.props,Ie=ze.eventKey,Ze=ze.multiple,Qe=ze.onClick,ht=ze.onSelect,it=ze.onDeselect,It=ze.isSelected,zt={key:Ie,keyPath:[Ie],item:Object(x.a)(nt),domEvent:Pe};Qe(zt),Ze?It?it(zt):ht(zt):It||ht(zt)},nt.saveNode=function(Pe){nt.node=Pe},nt}return Object(R.a)(bt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Pe=this.props;Pe.onDestroy&&Pe.onDestroy(Pe.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Pe,ze=Object(b.a)({},this.props),Ie=A()(this.getPrefixCls(),ze.className,(Pe={},Object(M.a)(Pe,this.getActiveClassName(),!ze.disabled&&ze.active),Object(M.a)(Pe,this.getSelectedClassName(),ze.isSelected),Object(M.a)(Pe,this.getDisabledClassName(),ze.disabled),Pe)),Ze=Object(b.a)(Object(b.a)({},ze.attribute),{},{title:typeof ze.title=="string"?ze.title:void 0,className:Ie,role:ze.role||"menuitem","aria-disabled":ze.disabled});ze.role==="option"?Ze=Object(b.a)(Object(b.a)({},Ze),{},{role:"option","aria-selected":ze.isSelected}):(ze.role===null||ze.role==="none")&&(Ze.role="none");var Qe={onClick:ze.disabled?null:this.onClick,onMouseLeave:ze.disabled?null:this.onMouseLeave,onMouseEnter:ze.disabled?null:this.onMouseEnter},ht=Object(b.a)({},ze.style);ze.mode==="inline"&&(ze.direction==="rtl"?ht.paddingRight=ze.inlineIndent*ze.level:ht.paddingLeft=ze.inlineIndent*ze.level),Q.forEach(function(It){return delete ze[It]}),delete ze.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(_.a)({},Object(U.a)(ze,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ze,Qe,{style:ht,ref:this.saveNode}),ze.children,it)}}]),bt}(y.Component);_n.isMenuItem=!0,_n.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var In=Object(O.b)(function(Ye,ct){var bt=Ye.activeKey,nt=Ye.selectedKeys,Pe=ct.eventKey,ze=ct.subMenuKey;return{active:bt[ze]===Pe,isSelected:Array.isArray(nt)?nt.indexOf(Pe)!==-1:nt===Pe}})(_n),Bn=In,or=function(Ye){Object(w.a)(bt,Ye);var ct=Object(v.a)(bt);function bt(){var nt;return Object(P.a)(this,bt),nt=ct.apply(this,arguments),nt.renderInnerMenuItem=function(Pe){var ze=nt.props,Ie=ze.renderMenuItem,Ze=ze.index;return Ie(Pe,Ze,nt.props.subMenuKey)},nt}return Object(R.a)(bt,[{key:"render",value:function(){var Pe=Object(_.a)({},this.props),ze=Pe.className,Ie=ze===void 0?"":ze,Ze=Pe.rootPrefixCls,Qe="".concat(Ze,"-item-group-title"),ht="".concat(Ze,"-item-group-list"),it=Pe.title,It=Pe.children;return Q.forEach(function(zt){return delete Pe[zt]}),delete Pe.direction,y.createElement("li",Object(_.a)({},Pe,{onClick:function(hn){return hn.stopPropagation()},className:"".concat(Ie," ").concat(Ze,"-item-group")}),y.createElement("div",{className:Qe,title:typeof it=="string"?it:void 0},it),y.createElement("ul",{className:ht},y.Children.map(It,this.renderInnerMenuItem)))}}]),bt}(y.Component);or.isMenuItemGroup=!0,or.defaultProps={disabled:!0};var $n=or,Or=function(ct){var bt=ct.className,nt=ct.rootPrefixCls,Pe=ct.style;return y.createElement("li",{className:"".concat(bt," ").concat(nt,"-item-divider"),style:Pe})};Or.defaultProps={disabled:!0,className:"",style:{}};var Pr=Or,Zn=Sn,Tr=o("eDIo");function vr(Ye,ct){var bt=Ye.prefixCls,nt=Ye.editable,Pe=Ye.locale,ze=Ye.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:ct,type:"button",className:"".concat(bt,"-nav-add"),style:ze,"aria-label":(Pe==null?void 0:Pe.addAriaLabel)||"Add tab",onClick:function(Ze){nt.onEdit("add",{event:Ze})}},nt.addIcon||"+")}var Hr=y.forwardRef(vr);function Mr(Ye,ct){var bt=Ye.prefixCls,nt=Ye.id,Pe=Ye.tabs,ze=Ye.locale,Ie=Ye.mobile,Ze=Ye.moreIcon,Qe=Ze===void 0?"More":Ze,ht=Ye.moreTransitionName,it=Ye.style,It=Ye.className,zt=Ye.editable,hn=Ye.tabBarGutter,ln=Ye.rtl,dn=Ye.onTabClick,cn=Object(y.useState)(!1),Hn=Object(m.a)(cn,2),Cn=Hn[0],Nr=Hn[1],Ar=Object(y.useState)(null),Yr=Object(m.a)(Ar,2),jr=Yr[0],ta=Yr[1],Gn="".concat(nt,"-more-popup"),wr="".concat(bt,"-dropdown"),zn=jr!==null?"".concat(Gn,"-").concat(jr):null,xn=ze==null?void 0:ze.dropdownAriaLabel,Fn=y.createElement(Zn,{onClick:function(xa){var Sr=xa.key,br=xa.domEvent;dn(Sr,br),Nr(!1)},id:Gn,tabIndex:-1,role:"listbox","aria-activedescendant":zn,selectedKeys:[jr],"aria-label":xn!==void 0?xn:"expanded dropdown"},Pe.map(function(ca){return y.createElement(Bn,{key:ca.key,id:"".concat(Gn,"-").concat(ca.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ca.key),disabled:ca.disabled},ca.tab)}));function Kr(ca){for(var xa=Pe.filter(function(da){return!da.disabled}),Sr=xa.findIndex(function(da){return da.key===jr})||0,br=xa.length,Rr=0;Rr<br;Rr+=1){Sr=(Sr+ca+br)%br;var nr=xa[Sr];if(!nr.disabled){ta(nr.key);return}}}function sa(ca){var xa=ca.which;if(!Cn){[c.a.DOWN,c.a.SPACE,c.a.ENTER].includes(xa)&&(Nr(!0),ca.preventDefault());return}switch(xa){case c.a.UP:Kr(-1),ca.preventDefault();break;case c.a.DOWN:Kr(1),ca.preventDefault();break;case c.a.ESC:Nr(!1);break;case c.a.SPACE:case c.a.ENTER:jr!==null&&dn(jr,ca);break}}Object(y.useEffect)(function(){var ca=document.getElementById(zn);ca&&ca.scrollIntoView&&ca.scrollIntoView(!1)},[jr]),Object(y.useEffect)(function(){Cn||ta(null)},[Cn]);var hr=Object(M.a)({},ln?"marginLeft":"marginRight",hn);Pe.length||(hr.visibility="hidden",hr.order=1);var ra=A()(Object(M.a)({},"".concat(wr,"-rtl"),ln)),Ea=Ie?null:y.createElement(Tr.a,{prefixCls:wr,overlay:Fn,trigger:["hover"],visible:Cn,transitionName:ht,onVisibleChange:Nr,overlayClassName:ra,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(bt,"-nav-more"),style:hr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Gn,id:"".concat(nt,"-more"),"aria-expanded":Cn,onKeyDown:sa},Qe));return y.createElement("div",{className:A()("".concat(bt,"-nav-operations"),It),style:it,ref:ct},Ea,y.createElement(Hr,{prefixCls:bt,locale:ze,editable:zt}))}var qr=y.forwardRef(Mr),rr=Object(y.createContext)(null),Kt=.1,Jt=.01,Yt=20,Vn=Math.pow(.995,Yt);function er(){var Ye=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(Ye)||/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(Ye.substr(0,4)))}function Ln(Ye,ct){var bt=Object(y.useState)(),nt=Object(m.a)(bt,2),Pe=nt[0],ze=nt[1],Ie=Object(y.useState)(0),Ze=Object(m.a)(Ie,2),Qe=Ze[0],ht=Ze[1],it=Object(y.useState)(0),It=Object(m.a)(it,2),zt=It[0],hn=It[1],ln=Object(y.useState)(),dn=Object(m.a)(ln,2),cn=dn[0],Hn=dn[1],Cn=Object(y.useRef)();function Nr(xn){var Fn=xn.touches[0],Kr=Fn.screenX,sa=Fn.screenY;ze({x:Kr,y:sa}),window.clearInterval(Cn.current)}function Ar(xn){if(!Pe)return;xn.preventDefault();var Fn=xn.touches[0],Kr=Fn.screenX,sa=Fn.screenY;ze({x:Kr,y:sa});var hr=Kr-Pe.x,ra=sa-Pe.y;ct(hr,ra);var Ea=Date.now();ht(Ea),hn(Ea-Qe),Hn({x:hr,y:ra})}function Yr(){if(!Pe)return;if(ze(null),Hn(null),cn){var xn=cn.x/zt,Fn=cn.y/zt,Kr=Math.abs(xn),sa=Math.abs(Fn);if(Math.max(Kr,sa)<Kt)return;var hr=xn,ra=Fn;Cn.current=window.setInterval(function(){if(Math.abs(hr)<Jt&&Math.abs(ra)<Jt){window.clearInterval(Cn.current);return}hr*=Vn,ra*=Vn,ct(hr*Yt,ra*Yt)},Yt)}}var jr=Object(y.useRef)(0),ta=Object(y.useRef)(!1),Gn=Object(y.useRef)();function wr(xn){var Fn=xn.deltaX,Kr=xn.deltaY,sa=0,hr=Math.abs(Fn),ra=Math.abs(Kr);hr===ra?sa=Gn.current==="x"?Fn:Kr:hr>ra?(sa=Fn,Gn.current="x"):(sa=Kr,Gn.current="y");var Ea=Date.now();Ea-jr.current>100&&(ta.current=!1),(ct(-sa,-sa)||ta.current)&&(xn.preventDefault(),ta.current=!0),jr.current=Ea}var zn=Object(y.useRef)(null);zn.current={onTouchStart:Nr,onTouchMove:Ar,onTouchEnd:Yr,onWheel:wr},y.useEffect(function(){function xn(hr){zn.current.onTouchStart(hr)}function Fn(hr){zn.current.onTouchMove(hr)}function Kr(hr){zn.current.onTouchEnd(hr)}function sa(hr){zn.current.onWheel(hr)}return document.addEventListener("touchmove",Fn,{passive:!1}),document.addEventListener("touchend",Kr,{passive:!1}),Ye.current.addEventListener("touchstart",xn,{passive:!1}),Ye.current.addEventListener("wheel",sa),function(){document.removeEventListener("touchmove",Fn),document.removeEventListener("touchend",Kr)}},[])}function ir(){var Ye=Object(y.useRef)(new Map);function ct(nt){return Ye.current.has(nt)||Ye.current.set(nt,y.createRef()),Ye.current.get(nt)}function bt(nt){Ye.current.delete(nt)}return[ct,bt]}function cr(Ye,ct){var bt=y.useRef(Ye),nt=y.useState({}),Pe=Object(m.a)(nt,2),ze=Pe[1];function Ie(Ze){var Qe=typeof Ze=="function"?Ze(bt.current):Ze;Qe!==bt.current&&ct(Qe,bt.current),bt.current=Qe,ze({})}return[bt.current,Ie]}var sr=function(ct){var bt=ct.position,nt=ct.prefixCls,Pe=ct.extra;if(!Pe)return null;var ze,Ie=Pe;return bt==="right"&&(ze=Ie.right||!Ie.left&&Ie||null),bt==="left"&&(ze=Ie.left||null),ze?y.createElement("div",{className:"".concat(nt,"-extra-content")},ze):null};function Qr(Ye,ct){var bt,nt=y.useContext(rr),Pe=nt.prefixCls,ze=nt.tabs,Ie=Ye.className,Ze=Ye.style,Qe=Ye.id,ht=Ye.animated,it=Ye.activeKey,It=Ye.rtl,zt=Ye.extra,hn=Ye.editable,ln=Ye.locale,dn=Ye.tabPosition,cn=Ye.tabBarGutter,Hn=Ye.children,Cn=Ye.onTabClick,Nr=Ye.onTabScroll,Ar=Object(y.useRef)(),Yr=Object(y.useRef)(),jr=Object(y.useRef)(),ta=Object(y.useRef)(),Gn=ir(),wr=Object(m.a)(Gn,2),zn=wr[0],xn=wr[1],Fn=dn==="top"||dn==="bottom",Kr=cr(0,function(Oa,ba){Fn&&Nr&&Nr({direction:Oa>ba?"left":"right"})}),sa=Object(m.a)(Kr,2),hr=sa[0],ra=sa[1],Ea=cr(0,function(Oa,ba){!Fn&&Nr&&Nr({direction:Oa>ba?"top":"bottom"})}),ca=Object(m.a)(Ea,2),xa=ca[0],Sr=ca[1],br=Object(y.useState)(0),Rr=Object(m.a)(br,2),nr=Rr[0],da=Rr[1],ya=Object(y.useState)(0),_a=Object(m.a)(ya,2),Ta=_a[0],ha=_a[1],La=Object(y.useState)(0),Na=Object(m.a)(La,2),Ba=Na[0],ni=Na[1],Fi=Object(y.useState)(0),Ai=Object(m.a)(Fi,2),Ia=Ai[0],bi=Ai[1],wi=Object(y.useState)(null),Ua=Object(m.a)(wi,2),Pa=Ua[0],Za=Ua[1],to=Object(y.useState)(null),Mo=Object(m.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(m.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(m.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=a(new Map),Yi=Object(m.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=u(ze,No,nr),Ji="".concat(Pe,"-nav-operations-hidden"),Qi=0,ei=0;Fn?It?(Qi=0,ei=Math.max(0,nr-Pa)):(Qi=Math.min(0,Pa-nr),ei=0):(Qi=Math.min(0,Ii-Ta),ei=0);function Li(Oa){return Oa<Qi?[Qi,!1]:Oa>ei?[ei,!1]:[Oa,!0]}var Di=Object(y.useRef)(),Zi=Object(y.useState)(),Ri=Object(m.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}Ln(Ar,function(Oa,ba){var Ka=!1;function ui(eo,ki){eo(function(ho){var Si=Li(ho+ki),qa=Object(m.a)(Si,2),po=qa[0],Hi=qa[1];return Ka=Hi,po})}if(Fn){if(Pa>=nr)return Ka;ui(ra,Oa)}else{if(Ii>=Ta)return Ka;ui(Sr,ba)}return io(),Co(),Ka}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var Oa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it,ba=ao.get(Oa);if(!ba)return;if(Fn){var Ka=hr;It?ba.right<hr?Ka=ba.right:ba.right+ba.width>hr+Pa&&(Ka=ba.right+ba.width-Pa):ba.left<-hr?Ka=-ba.left:ba.left+ba.width>-hr+Pa&&(Ka=-(ba.left+ba.width-Pa)),Sr(0),ra(Li(Ka)[0])}else{var ui=xa;ba.top<-xa?ui=-ba.top:ba.top+ba.height>-xa+Ii&&(ui=-(ba.top+ba.height-Ii)),ra(0),Sr(Li(ui)[0])}}var qi=E(ao,{width:Pa,height:Ii,left:hr,top:xa},{width:Ba,height:Ia},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ye),{},{tabs:ze})),ko=Object(m.a)(qi,2),oo=ko[0],so=ko[1],wo=ze.map(function(Oa){var ba=Oa.key;return y.createElement(d,{id:Qe,prefixCls:Pe,key:ba,rtl:It,tab:Oa,closable:Oa.closable,editable:hn,active:ba===it,tabPosition:dn,tabBarGutter:cn,renderWrapper:Hn,removeAriaLabel:ln==null?void 0:ln.removeAriaLabel,ref:zn(ba),onClick:function(ui){Cn(ba,ui)},onRemove:function(){xn(ba)},onFocus:function(){Ni(ba),Co(),It||(Ar.current.scrollLeft=0),Ar.current.scrollTop=0}})}),Uo=i(function(){var Oa,ba,Ka,ui,eo,ki,ho,Si,qa,po=((Oa=Ar.current)===null||Oa===void 0?void 0:Oa.offsetWidth)||0,Hi=((ba=Ar.current)===null||ba===void 0?void 0:ba.offsetHeight)||0,mo=((Ka=ta.current)===null||Ka===void 0?void 0:Ka.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Da=((eo=jr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,ia=((ki=jr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var xr=(((ho=Yr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Jr=(((Si=Yr.current)===null||Si===void 0?void 0:Si.offsetHeight)||0)-hi;da(xr),ha(Jr);var ma=(qa=jr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(xr-(ma?0:Da)),bi(Jr-(ma?0:ia)),yo(function(){var Fa=new Map;return ze.forEach(function(Ei){var Pi=Ei.key,$a=zn(Pi).current;$a&&Fa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Fa})}),jo=ze.slice(0,oo),fi=ze.slice(so+1),Wa=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ri=Object(y.useState)(),Xa=Object(m.a)(ri,2),ai=Xa[0],So=Xa[1],yi=ao.get(it),Bo=Object(y.useRef)();function To(){l.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Oa={};return yi&&(Fn?(It?Oa.right=yi.right:Oa.left=yi.left,Oa.width=yi.width):(Oa.top=yi.top,Oa.height=yi.height)),To(),Bo.current=l()(function(){So(Oa)}),To},[yi,Fn,It]),Object(y.useEffect)(function(){Ni()},[it,yi,ao,Fn]),Object(y.useEffect)(function(){Uo()},[It,cn,it,ze.map(function(Oa){return Oa.key}).join("_")]);var $i=!!Wa.length,Wi="".concat(Pe,"-nav-wrap"),Oo,fo,Wo,lo;return Fn?It?(fo=hr>0,Oo=hr+Pa<nr):(Oo=hr<0,fo=-hr+Pa<nr):(Wo=xa<0,lo=-xa+Ii<Ta),y.createElement("div",{ref:ct,role:"tablist",className:A()("".concat(Pe,"-nav"),Ie),style:Ze,onKeyDown:function(){Co()}},y.createElement(sr,{position:"left",extra:zt,prefixCls:Pe}),y.createElement(n.a,{onResize:Uo},y.createElement("div",{className:A()(Wi,(bt={},Object(M.a)(bt,"".concat(Wi,"-ping-left"),Oo),Object(M.a)(bt,"".concat(Wi,"-ping-right"),fo),Object(M.a)(bt,"".concat(Wi,"-ping-top"),Wo),Object(M.a)(bt,"".concat(Wi,"-ping-bottom"),lo),bt)),ref:Ar},y.createElement(n.a,{onResize:Uo},y.createElement("div",{ref:Yr,className:"".concat(Pe,"-nav-list"),style:{transform:"translate(".concat(hr,"px, ").concat(xa,"px)"),transition:Eo?"none":void 0}},wo,y.createElement(Hr,{ref:ta,prefixCls:Pe,locale:ln,editable:hn,style:{visibility:$i?"hidden":null}}),y.createElement("div",{className:A()("".concat(Pe,"-ink-bar"),Object(M.a)({},"".concat(Pe,"-ink-bar-animated"),ht.inkBar)),style:ai}))))),y.createElement(qr,Object.assign({},Ye,{ref:jr,prefixCls:Pe,tabs:Wa,className:!$i&&Ji})),y.createElement(sr,{position:"right",extra:zt,prefixCls:Pe}))}var lr=y.forwardRef(Qr);function la(Ye){var ct=Ye.id,bt=Ye.activeKey,nt=Ye.animated,Pe=Ye.tabPosition,ze=Ye.rtl,Ie=Ye.destroyInactiveTabPane,Ze=y.useContext(rr),Qe=Ze.prefixCls,ht=Ze.tabs,it=nt.tabPane,It=ht.findIndex(function(zt){return zt.key===bt});return y.createElement("div",{className:A()("".concat(Qe,"-content-holder"))},y.createElement("div",{className:A()("".concat(Qe,"-content"),"".concat(Qe,"-content-").concat(Pe),Object(M.a)({},"".concat(Qe,"-content-animated"),it)),style:It&&it?Object(M.a)({},ze?"marginRight":"marginLeft","-".concat(It,"00%")):null},ht.map(function(zt){return y.cloneElement(zt.node,{key:zt.key,prefixCls:Qe,tabKey:zt.key,id:ct,animated:it,active:zt.key===bt,destroyInactiveTabPane:Ie})})))}function Vr(Ye){var ct=Ye.prefixCls,bt=Ye.forceRender,nt=Ye.className,Pe=Ye.style,ze=Ye.id,Ie=Ye.active,Ze=Ye.animated,Qe=Ye.destroyInactiveTabPane,ht=Ye.tabKey,it=Ye.children,It=y.useState(bt),zt=Object(m.a)(It,2),hn=zt[0],ln=zt[1];y.useEffect(function(){Ie?ln(!0):Qe&&ln(!1)},[Ie,Qe]);var dn={};return Ie||(Ze?(dn.visibility="hidden",dn.height=0,dn.overflowY="hidden"):dn.display="none"),y.createElement("div",{id:ze&&"".concat(ze,"-panel-").concat(ht),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":ze&&"".concat(ze,"-tab-").concat(ht),"aria-hidden":!Ie,style:Object(b.a)(Object(b.a)({},dn),Pe),className:A()("".concat(ct,"-tabpane"),Ie&&"".concat(ct,"-tabpane-active"),nt)},(Ie||hn||bt)&&it)}var _r=0;function Cr(Ye){return Object(g.a)(Ye).map(function(ct){if(y.isValidElement(ct)){var bt=ct.key!==void 0?String(ct.key):void 0;return Object(b.a)(Object(b.a)({key:bt},ct.props),{},{node:ct})}return null}).filter(function(ct){return ct})}function Fr(Ye,ct){var bt,nt=Ye.id,Pe=Ye.prefixCls,ze=Pe===void 0?"rc-tabs":Pe,Ie=Ye.className,Ze=Ye.children,Qe=Ye.direction,ht=Ye.activeKey,it=Ye.defaultActiveKey,It=Ye.editable,zt=Ye.animated,hn=Ye.tabPosition,ln=hn===void 0?"top":hn,dn=Ye.tabBarGutter,cn=Ye.tabBarStyle,Hn=Ye.tabBarExtraContent,Cn=Ye.locale,Nr=Ye.moreIcon,Ar=Ye.moreTransitionName,Yr=Ye.destroyInactiveTabPane,jr=Ye.renderTabBar,ta=Ye.onChange,Gn=Ye.onTabClick,wr=Ye.onTabScroll,zn=Object(T.a)(Ye,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),xn=Cr(Ze),Fn=Qe==="rtl",Kr;zt===!1?Kr={inkBar:!1,tabPane:!1}:Kr=Object(b.a)({inkBar:!0,tabPane:!1},zt!==!0?zt:null);var sa=Object(y.useState)(!1),hr=Object(m.a)(sa,2),ra=hr[0],Ea=hr[1];Object(y.useEffect)(function(){Ea(er())},[]);var ca=Object(e.a)(function(){var Ia;return(Ia=xn[0])===null||Ia===void 0?void 0:Ia.key},{value:ht,defaultValue:it}),xa=Object(m.a)(ca,2),Sr=xa[0],br=xa[1],Rr=Object(y.useState)(function(){return xn.findIndex(function(Ia){return Ia.key===Sr})}),nr=Object(m.a)(Rr,2),da=nr[0],ya=nr[1];Object(y.useEffect)(function(){var Ia=xn.findIndex(function(wi){return wi.key===Sr});if(Ia===-1){var bi;Ia=Math.max(0,Math.min(da,xn.length-1)),br((bi=xn[Ia])===null||bi===void 0?void 0:bi.key)}ya(Ia)},[xn.map(function(Ia){return Ia.key}).join("_"),Sr,da]);var _a=Object(e.a)(null,{value:nt}),Ta=Object(m.a)(_a,2),ha=Ta[0],La=Ta[1],Na=ln;ra&&!["left","right"].includes(ln)&&(Na="top"),Object(y.useEffect)(function(){nt||(La("rc-tabs-".concat(_r)),_r+=1)},[]);function Ba(Ia,bi){Gn==null||Gn(Ia,bi),br(Ia),ta==null||ta(Ia)}var ni={id:ha,activeKey:Sr,animated:Kr,tabPosition:Na,rtl:Fn,mobile:ra},Fi,Ai=Object(b.a)(Object(b.a)({},ni),{},{editable:It,locale:Cn,moreIcon:Nr,moreTransitionName:Ar,tabBarGutter:dn,onTabClick:Ba,onTabScroll:wr,extra:Hn,style:cn,panes:Ze});return jr?Fi=jr(Ai,lr):Fi=y.createElement(lr,Object.assign({},Ai)),y.createElement(rr.Provider,{value:{tabs:xn,prefixCls:ze}},y.createElement("div",Object.assign({ref:ct,id:nt,className:A()(ze,"".concat(ze,"-").concat(Na),(bt={},Object(M.a)(bt,"".concat(ze,"-mobile"),ra),Object(M.a)(bt,"".concat(ze,"-editable"),It),Object(M.a)(bt,"".concat(ze,"-rtl"),Fn),bt),Ie)},zn),Fi,y.createElement(la,Object.assign({destroyInactiveTabPane:Yr},ni,{animated:Kr}))))}var Xr=y.forwardRef(Fr);Xr.TabPane=Vr;var Sa=Xr,va=z.b=Sa},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,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(m){var T=M,b=T.lib,y=b.WordArray,C=b.Hasher,A=T.algo,g=[],e=[];(function(){function l(c){for(var h=m.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,a=0;a<64;)l(i)&&(a<8&&(g[a]=n(m.pow(i,1/2))),e[a]=n(m.pow(i,1/3)),a++),i++})();var f=[],r=A.SHA256=C.extend({_doReset:function(){this._hash=new y.init(g.slice(0))},_doProcessBlock:function(l,n){for(var i=this._hash.words,a=i[0],c=i[1],h=i[2],d=i[3],s=i[4],u=i[5],S=i[6],E=i[7],_=0;_<64;_++){if(_<16)f[_]=l[n+_]|0;else{var P=f[_-15],R=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,x=f[_-2],w=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;f[_]=R+f[_-7]+w+f[_-16]}var v=s&u^~s&S,O=a&c^a&h^c&h,U=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),I=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+I+v+e[_]+f[_],V=U+O;E=S,S=u,u=s,s=d+N|0,d=h,h=c,c=a,a=N+V|0}i[0]=i[0]+a|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]+u|0,i[6]=i[6]+S|0,i[7]=i[7]+E|0},_doFinalize:function(){var l=this._data,n=l.words,i=this._nDataBytes*8,a=l.sigBytes*8;return n[a>>>5]|=128<<24-a%32,n[(a+64>>>9<<4)+14]=m.floor(i/4294967296),n[(a+64>>>9<<4)+15]=i,l.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var l=C.clone.call(this);return l._hash=this._hash.clone(),l}});T.SHA256=C._createHelper(r),T.HmacSHA256=C._createHmacHelper(r)}(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(m,T){var b=M.getMode(m,"text/html"),y=b.name=="null";function C(F){if(M.findModeByName){var L=M.findModeByName(F);L&&(F=L.mime||L.mimes[0])}var K=M.getMode(m,F);return K.name=="null"?null:K}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var A={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 g in A)A.hasOwnProperty(g)&&T.tokenTypeOverrides[g]&&(A[g]=T.tokenTypeOverrides[g]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,r=/^\[(x| )\](?=\s)/i,l=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,n=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,a=/^(~~~+|```+)[ \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,L,K){return L.f=L.inline=K,K(F,L)}function u(F,L,K){return L.f=L.block=K,K(F,L)}function S(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 L=y;if(!L){var K=M.innerMode(b,F.htmlState);L=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}L&&(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,L){var K=F.column()===L.indentation,te=S(L.prevLine.stream),fe=L.indentedCode,de=L.prevLine.hr,Ce=L.list!==!1,Oe=(L.listStack[L.listStack.length-1]||0)+3;L.indentedCode=!1;var ce=L.indentation;if(L.indentationDiff===null&&(L.indentationDiff=L.indentation,Ce)){for(L.list=null;ce<L.listStack[L.listStack.length-1];)L.listStack.pop(),L.listStack.length?L.indentation=L.listStack[L.listStack.length-1]:L.list=!1;L.list!==!1&&(L.indentationDiff=ce-L.listStack[L.listStack.length-1])}var Ee=!te&&!de&&!L.prevLine.header&&(!Ce||!fe)&&!L.prevLine.fencedCodeEnd,ye=(L.list===!1||de||te)&&L.indentation<=Oe&&F.match(e),ue=null;if(L.indentationDiff>=4&&(fe||L.prevLine.fencedCodeEnd||L.prevLine.header||te))return F.skipToEnd(),L.indentedCode=!0,A.code;if(F.eatSpace())return null;if(K&&L.indentation<=Oe&&(ue=F.match(l))&&ue[1].length<=6)return L.quote=0,L.header=ue[1].length,L.thisLine.header=!0,T.highlightFormatting&&(L.formatting="header"),L.f=L.inline,x(L);if(L.indentation<=Oe&&F.eat(">"))return L.quote=K?1:L.quote+1,T.highlightFormatting&&(L.formatting="quote"),F.eatSpace(),x(L);if(!ye&&!L.setext&&K&&L.indentation<=Oe&&(ue=F.match(f))){var le=ue[1]?"ol":"ul";return L.indentation=ce+F.current().length,L.list=!0,L.quote=0,L.listStack.push(L.indentation),L.em=!1,L.strong=!1,L.code=!1,L.strikethrough=!1,T.taskLists&&F.match(r,!1)&&(L.taskList=!0),L.f=L.inline,T.highlightFormatting&&(L.formatting=["list","list-"+le]),x(L)}else{if(K&&L.indentation<=Oe&&(ue=F.match(a,!0)))return L.quote=0,L.fencedEndRE=new RegExp(ue[1]+"+ *$"),L.localMode=T.fencedCodeBlockHighlighting&&C(ue[2]||T.fencedCodeBlockDefaultMode),L.localMode&&(L.localState=M.startState(L.localMode)),L.f=L.block=R,T.highlightFormatting&&(L.formatting="code-block"),L.code=-1,x(L);if(L.setext||(!Ee||!Ce)&&!L.quote&&L.list===!1&&!L.code&&!ye&&!c.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(n)))return L.setext?(L.header=L.setext,L.setext=0,F.skipToEnd(),T.highlightFormatting&&(L.formatting="header")):(L.header=ue[0].charAt(0)=="="?1:2,L.setext=L.header),L.thisLine.header=!0,L.f=L.inline,x(L);if(ye)return F.skipToEnd(),L.hr=!0,L.thisLine.hr=!0,A.hr;if(F.peek()==="[")return s(F,L,V)}return s(F,L,L.inline)}function P(F,L){var K=b.token(F,L.htmlState);if(!y){var te=M.innerMode(b,L.htmlState);(te.mode.name=="xml"&&te.state.tagStart===null&&!te.state.context&&te.state.tokenize.isInText||L.md_inside&&F.current().indexOf(">")>-1)&&(L.f=v,L.block=_,L.htmlState=null)}return K}function R(F,L){var K=L.listStack[L.listStack.length-1]||0,te=L.indentation<K,fe=K+3;if(L.fencedEndRE&&L.indentation<=fe&&(te||F.match(L.fencedEndRE))){T.highlightFormatting&&(L.formatting="code-block");var de;return te||(de=x(L)),L.localMode=L.localState=null,L.block=_,L.f=v,L.fencedEndRE=null,L.code=0,L.thisLine.fencedCodeEnd=!0,te?u(F,L,L.block):de}else return L.localMode?L.localMode.token(F,L.localState):(F.skipToEnd(),A.code)}function x(F){var L=[];if(F.formatting){L.push(A.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var K=0;K<F.formatting.length;K++)L.push(A.formatting+"-"+F.formatting[K]),F.formatting[K]==="header"&&L.push(A.formatting+"-"+F.formatting[K]+"-"+F.header),F.formatting[K]==="quote"&&(!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?L.push(A.formatting+"-"+F.formatting[K]+"-"+F.quote):L.push("error"))}if(F.taskOpen)return L.push("meta"),L.length?L.join(" "):null;if(F.taskClosed)return L.push("property"),L.length?L.join(" "):null;if(F.linkHref?L.push(A.linkHref,"url"):(F.strong&&L.push(A.strong),F.em&&L.push(A.em),F.strikethrough&&L.push(A.strikethrough),F.emoji&&L.push(A.emoji),F.linkText&&L.push(A.linkText),F.code&&L.push(A.code),F.image&&L.push(A.image),F.imageAltText&&L.push(A.imageAltText,"link"),F.imageMarker&&L.push(A.imageMarker)),F.header&&L.push(A.header,A.header+"-"+F.header),F.quote&&(L.push(A.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?L.push(A.quote+"-"+F.quote):L.push(A.quote+"-"+T.maxBlockquoteDepth)),F.list!==!1){var te=(F.listStack.length-1)%3;te?te===1?L.push(A.list2):L.push(A.list3):L.push(A.list1)}return F.trailingSpaceNewLine?L.push("trailing-space-new-line"):F.trailingSpace&&L.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),L.length?L.join(" "):null}function w(F,L){return F.match(i,!0)?x(L):void 0}function v(F,L){var K=L.text(F,L);if(typeof K!="undefined")return K;if(L.list)return L.list=null,x(L);if(L.taskList){var te=F.match(r,!0)[1]===" ";return te?L.taskOpen=!0:L.taskClosed=!0,T.highlightFormatting&&(L.formatting="task"),L.taskList=!1,x(L)}if(L.taskOpen=!1,L.taskClosed=!1,L.header&&F.match(/^#+$/,!0))return T.highlightFormatting&&(L.formatting="header"),x(L);var fe=F.next();if(L.linkTitle){L.linkTitle=!1;var de=fe;fe==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ce="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(F.match(new RegExp(Ce),!0))return A.linkHref}if(fe==="`"){var Oe=L.formatting;T.highlightFormatting&&(L.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(L.code==0&&(!L.quote||ce==1))return L.code=ce,x(L);if(ce==L.code){var Ee=x(L);return L.code=0,Ee}else return L.formatting=Oe,x(L)}else if(L.code)return x(L);if(fe==="\\"&&(F.next(),T.highlightFormatting)){var ye=x(L),ue=A.formatting+"-escape";return ye?ye+" "+ue:ue}if(fe==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return L.imageMarker=!0,L.image=!0,T.highlightFormatting&&(L.formatting="image"),x(L);if(fe==="["&&L.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return L.imageMarker=!1,L.imageAltText=!0,T.highlightFormatting&&(L.formatting="image"),x(L);if(fe==="]"&&L.imageAltText){T.highlightFormatting&&(L.formatting="image");var ye=x(L);return L.imageAltText=!1,L.image=!1,L.inline=L.f=U,ye}if(fe==="["&&!L.image)return L.linkText&&F.match(/^.*?\]/)||(L.linkText=!0,T.highlightFormatting&&(L.formatting="link")),x(L);if(fe==="]"&&L.linkText){T.highlightFormatting&&(L.formatting="link");var ye=x(L);return L.linkText=!1,L.inline=L.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:v,ye}if(fe==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=O,T.highlightFormatting&&(L.formatting="link");var ye=x(L);return ye?ye+=" ":ye="",ye+A.linkInline}if(fe==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=O,T.highlightFormatting&&(L.formatting="link");var ye=x(L);return ye?ye+=" ":ye="",ye+A.linkEmail}if(T.xml&&fe==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var le=F.string.indexOf(">",F.pos);if(le!=-1){var $=F.string.substring(F.start,le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(L.md_inside=!0)}return F.backUp(1),L.htmlState=M.startState(b),u(F,L,P)}if(T.xml&&fe==="<"&&F.match(/^\/\w*?>/))return L.md_inside=!1,"tag";if(fe==="*"||fe==="_"){for(var me=1,re=F.pos==1?" ":F.string.charAt(F.pos-2);me<3&&F.eat(fe);)me++;var ae=F.peek()||" ",Se=!/\s/.test(ae)&&(!h.test(ae)||/\s/.test(re)||h.test(re)),oe=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),ee=null,J=null;if(me%2&&(!L.em&&Se&&(fe==="*"||!oe||h.test(re))?ee=!0:L.em==fe&&oe&&(fe==="*"||!Se||h.test(ae))&&(ee=!1)),me>1&&(!L.strong&&Se&&(fe==="*"||!oe||h.test(re))?J=!0:L.strong==fe&&oe&&(fe==="*"||!Se||h.test(ae))&&(J=!1)),J!=null||ee!=null){T.highlightFormatting&&(L.formatting=ee==null?"strong":J==null?"em":"strong em"),ee===!0&&(L.em=fe),J===!0&&(L.strong=fe);var Ee=x(L);return ee===!1&&(L.em=!1),J===!1&&(L.strong=!1),Ee}}else if(fe===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return x(L);F.backUp(1)}if(T.strikethrough){if(fe==="~"&&F.eatWhile(fe)){if(L.strikethrough){T.highlightFormatting&&(L.formatting="strikethrough");var Ee=x(L);return L.strikethrough=!1,Ee}else if(F.match(/^[^\s]/,!1))return L.strikethrough=!0,T.highlightFormatting&&(L.formatting="strikethrough"),x(L)}else if(fe===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return x(L);F.backUp(2)}}if(T.emoji&&fe===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){L.emoji=!0,T.highlightFormatting&&(L.formatting="emoji");var Q=x(L);return L.emoji=!1,Q}return fe===" "&&(F.match(/^ +$/,!1)?L.trailingSpace++:L.trailingSpace&&(L.trailingSpaceNewLine=!0)),x(L)}function O(F,L){var K=F.next();if(K===">"){L.f=L.inline=v,T.highlightFormatting&&(L.formatting="link");var te=x(L);return te?te+=" ":te="",te+A.linkInline}return F.match(/^[^>]+/,!0),A.linkInline}function U(F,L){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(L.f=L.inline=N(K==="("?")":"]"),T.highlightFormatting&&(L.formatting="link-string"),L.linkHref=!0,x(L)):"error"}var I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(L,K){var te=L.next();if(te===F){K.f=K.inline=v,T.highlightFormatting&&(K.formatting="link-string");var fe=x(K);return K.linkHref=!1,fe}return L.match(I[F]),K.linkHref=!0,x(K)}}function V(F,L){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(L.f=H,F.next(),T.highlightFormatting&&(L.formatting="link"),L.linkText=!0,x(L)):s(F,L,v)}function H(F,L){if(F.match(/^\]:/,!0)){L.f=L.inline=D,T.highlightFormatting&&(L.formatting="link");var K=x(L);return L.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),A.linkText}function D(F,L){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?L.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),L.f=L.inline=v,A.linkHref+" url")}var W={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:v,text:w,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,L){if(L.formatting=!1,F!=L.thisLine.stream){if(L.header=0,L.hr=!1,F.match(/^\s*$/,!0))return E(L),null;if(L.prevLine=L.thisLine,L.thisLine={stream:F},L.taskList=!1,L.trailingSpace=0,L.trailingSpaceNewLine=!1,!L.localState&&(L.f=L.block,L.f!=P)){var K=F.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(L.indentation=K,L.indentationDiff=null,K>0)return null}}return L.f(F,L)},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,L,K){return F.block==P&&b.indent?b.indent(F.htmlState,L,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,L,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"),m=o.n(M);o.d(z,"w",function(){return m.a});var T=o("/GNS"),b=o.n(T);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 A=o("HpTS"),g=o.n(A);o.d(z,"x",function(){return g.a});var e=o("tWlo"),f=o.n(e);o.d(z,"a",function(){return f.a});var r=o("7ZXX"),l=o.n(r);o.d(z,"l",function(){return l.a});var n=o("GABl"),i=o.n(n);o.d(z,"e",function(){return i.a});var a=o("onxn"),c=o.n(a);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"),u=o.n(s);o.d(z,"y",function(){return u.a});var S=o("JeFH"),E=o.n(S);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 w=o("kPYp"),v=o.n(w);o.d(z,"A",function(){return v.a});var O=o("nukY"),U=o.n(O),I=o("4u4S"),N=o.n(I),V=o("yslc"),H=o.n(V),D=o("l2Kq"),W=o.n(D),F=o("RMFE"),L=o.n(F);o.d(z,"o",function(){return L.a});var K=o("TGq3"),te=o.n(K),fe=o("SMhR"),de=o.n(fe),Ce=o("8/bI"),Oe=o.n(Ce);o.d(z,"j",function(){return Oe.a});var ce=o("JWDV"),Ee=o.n(ce),ye=o("Xsq0"),ue=o.n(ye);o.d(z,"p",function(){return ue.a});var le=o("Ohmc"),$=o.n(le);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"),Se=o.n(ae);o.d(z,"k",function(){return Se.a});var oe=o("cRFk"),ee=o.n(oe);o.d(z,"u",function(){return ee.a});var J=o("kPWJ"),Q=o.n(J);o.d(z,"t",function(){return Q.a});var ve=o("qgvg"),_e=o.n(ve);o.d(z,"r",function(){return _e.a});var Te=o("FPkq"),Ge=o.n(Te);o.d(z,"s",function(){return Ge.a});var qe=o("A/g1"),ut=o.n(qe);o.d(z,"f",function(){return ut.a});var st=o("Nmxd"),ft=o.n(st);o.d(z,"g",function(){return ft.a});var gt=o("5D2P"),Ve=o.n(gt);o.d(z,"h",function(){return Ve.a});var ke=o("djh8"),dt=o.n(ke),Bt=o("Jq4h"),vt=o.n(Bt)},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 m(y,C){if(!o[y]){if(!z[y]){var A=typeof require=="function"&&require;if(!C&&A)return require(y,!0);if(T)return T(y,!0);var g=new Error("Cannot find module '"+y+"'");throw g.code="MODULE_NOT_FOUND",g}var e=o[y]={exports:{}};z[y][0].call(e.exports,function(f){var r=z[y][1][f];return m(r||f)},e,e.exports,k,z,o,M)}return o[y].exports}for(var T=typeof require=="function"&&require,b=0;b<M.length;b++)m(M[b]);return m}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,m){"use strict";var T=k("babel-runtime/core-js/promise"),b=e(T),y=k("babel-runtime/regenerator"),C=e(y),A=k("babel-runtime/core-js/object/assign"),g=e(A);function e(V){return V&&V.__esModule?V:{default:V}}var f=k("debug")("ali-oss"),r=k("copy-to"),l=k("xml2js"),n=k("agentkeepalive"),i=k("merge-descriptors"),a=k("url"),c=k("is-type-of"),h=k("platform"),d=k("utility"),s=k("urllib"),u=k("./version"),S=k("bowser"),E=k("../common/signUtils"),_=k("../common/utils/isIP"),P=_.isIP,R=k("../common/client/initOptions"),x=k("../common/utils/createRequest"),w=x.createRequest,v=new n;function O(){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 I(V,H){if(O(),!(this instanceof I))return new I(V,H);V&&V.inited?this.options=V:this.options=I.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=I,I.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,g.default)({secure:U(),useFetch:!1},H);return R(D)};var N=I.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 L=E.buildCanonicalString(H.toUpperCase(),D,{headers:F,parameters:W});return E.authorization(this.options.accessKeyId,this.options.accessKeySecret,L)},N.request=function(H){var D,W,F,L,K,te;return C.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return D=w.call(this,H),this.options.useFetch||(D.params.mode="disable-fetch"),W=void 0,F=void 0,L=!!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"&&!L)){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:te=de.sent,W.data=te;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={};r(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 L="/";H.bucket&&W&&(L+=H.bucket+"/"),H.object&&(L+=this._escape(H.object).replace(/\+/g,"%2B")),D.pathname=L;var K={};if(H.query&&i(K,H.query),H.subres){var te={};c.string(H.subres)?te[H.subres]="":c.array(H.subres)?H.subres.forEach(function(fe){te[fe]=""}):te=H.subres,i(K,te)}return D.query=K,a.format(D)},N._getUserAgent=function(){var H=m&&m.browser?"js":"nodejs",D="aliyun-sdk-"+H+"/"+u.version,W=h.description;return!W&&m&&(W="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.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 S.name===H&&S.version.split(".")[0]===D},N.parseXML=function(H){return new b.default(function(D,W){M.isBuffer(H)&&(H=H.toString()),l.parseString(H,{explicitRoot:!1,explicitArray:!1},function(F,L){F?W(F):D(L)})})},N.requestError=function(H){var D,W,F,L;return C.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:if(D=null,!(!H.data||!H.data.length)){te.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=""),te.next=33;break;case 5:return W=String(H.data),this.debug("request response error data: %s",W,"error"),F=void 0,te.prev=8,te.next=11,C.default.awrap(this.parseXML(W));case 11:if(te.t0=te.sent,te.t0){te.next=14;break}te.t0={};case 14:F=te.t0,te.next=24;break;case 17:return te.prev=17,te.t1=te.catch(8),this.debug(W,"error"),te.t1.message+=`
|
|
|
raw xml: `+W,te.t1.status=H.status,te.t1.requestId=H.headers["x-oss-request-id"],te.abrupt("return",te.t1);case 24:L=F.Message||"unknow request error, status: "+H.status,F.Condition&&(L+=" (condition: "+F.Condition+")"),D=new Error(L),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"),te.abrupt("return",D);case 35:case"end":return te.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 m=k("babel-runtime/core-js/array/from"),T=g(m),b=k("babel-runtime/core-js/promise"),y=g(b),C=k("babel-runtime/regenerator"),A=g(C);function g(E){return E&&E.__esModule?E:{default:E}}var e=k("is-type-of"),f=k("util"),r=k("path"),l=k("mime"),n=k("copy-to"),i=k("../common/utils/isBlob"),a=i.isBlob,c=k("../common/utils/isFile"),h=c.isFile,d=o;d.multipartUpload=function(_,P,R){var x,w,v,O,U,I,N,V,H;return A.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,A.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=l.getType(r.extname(P.name)):a(P)?R.mime=P.type:R.mime=l.getType(r.extname(P))),R.headers=R.headers||{},this._convertMetaToHeaders(R.meta,R.headers),W.next=12,A.default.awrap(this._getFileSize(P));case 12:if(w=W.sent,!(w<x)){W.next=25;break}return v=this._createStream(P,0,w),R.contentLength=w,W.next=18,A.default.awrap(this.putStream(_,v,R));case 18:if(O=W.sent,!(R&&R.progress)){W.next=22;break}return W.next=22,A.default.awrap(R.progress(1));case 22:return U={res:O.res,bucket:this.options.bucket,name:_,etag:O.res.headers.etag},(R.headers&&R.headers["x-oss-callback"]||R.callback)&&(U.data=O.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,A.default.awrap(this.initMultipartUpload(_,R));case 31:if(I=W.sent,N=I.uploadId,V=this._getPartSize(w,R.partSize),H={file:P,name:_,fileSize:w,partSize:V,uploadId:N,doneParts:[]},!(R&&R.progress)){W.next=38;break}return W.next=38,A.default.awrap(R.progress(0,H,I.res));case 38:return W.next=40,A.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,w,v,O,U,I,N,V,H,D,W,F,L,K,te,fe,de;return A.default.async(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(R=this,!this.isCancel()){Oe.next=3;break}throw this._makeCancelEvent();case 3:return x=_.file,w=_.fileSize,v=_.partSize,O=_.uploadId,U=_.doneParts,I=_.name,N=[],U.length>0&&n(U).to(N),V=this._divideParts(w,v),H=V.length,D=!1,W=function(Ee,ye){var ue=this;return new y.default(function($,me){var re,ae,Se,oe;return A.default.async(function(J){for(;;)switch(J.prev=J.next){case 0:if(J.prev=0,Ee.isCancel()){J.next=18;break}return re=V[ye-1],ae={stream:Ee._createStream(x,re.start,re.end),size:re.end-re.start},J.next=6,A.default.awrap(Ee._uploadPart(I,O,ye,ae));case 6:if(Se=J.sent,!(!Ee.isCancel()&&!D)){J.next=15;break}if(_.doneParts.push({number:ye,etag:Se.res.headers.etag}),!P.progress){J.next=12;break}return J.next=12,A.default.awrap(P.progress(U.length/H,_,Se.res));case 12:$({number:ye,etag:Se.res.headers.etag}),J.next=16;break;case 15:$();case 16:J.next=19;break;case 18:$();case 19:J.next=30;break;case 21:J.prev=21,J.t0=J.catch(0),oe=new Error,oe.name=J.t0.name,oe.message=J.t0.message,oe.stack=J.t0.stack,oe.partNum=ye,n(J.t0).to(oe),me(oe);case 30:case"end":return J.stop()}},null,ue,[[0,21]])})},F=(0,T.default)(new Array(H),function(ce,Ee){return Ee+1}),L=N.map(function(ce){return ce.number}),K=F.filter(function(ce){return L.indexOf(ce)<0}),te=5,fe=P.parallel||te,Oe.next=17,A.default.awrap(this._parallel(K,fe,function(ce){return new y.default(function(Ee,ye){W(R,ce).then(function(ue){ue&&N.push(ue),Ee()}).catch(function(ue){ye(ue)})})}));case 17:if(de=Oe.sent,D=!0,!this.isCancel()){Oe.next=22;break}throw W=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){Oe.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 Oe.next=27,A.default.awrap(this.completeMultipartUpload(I,O,N,P));case 27:return Oe.abrupt("return",Oe.sent);case 28:case"end":return Oe.stop()}},null,this)},d._getFileSize=function(_){return A.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(!(a(_)||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"),u=s.Readable;function S(E,_){if(!(this instanceof S))return new S(E,_);u.call(this,_),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(S,u),S.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))}},S.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(w){R.fileBuffer=M.from(new Uint8Array(w.target.result)),R.file=null,R.readFileAndPush(_)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(_)},d._createStream=function(_,P,R){if(a(_)||h(_))return new S(_.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=[],w=0;w<R;w++){var v=P*w,O=Math.min(v+P,_);x.push({start:v,end:O})}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"),m=e(M),T=k("babel-runtime/core-js/object/keys"),b=e(T),y=k("babel-runtime/core-js/object/assign"),C=e(y),A=k("babel-runtime/regenerator"),g=e(A);function e(R){return R&&R.__esModule?R:{default:R}}var f=k("utility"),r=k("fs"),l=k("is-type-of"),n=k("url"),i=k("copy-to"),a=k("path"),c=k("mime"),h=k("../common/callback"),d=k("../common/signUtils"),s=k("merge-descriptors"),u=k("../common/utils/isBlob"),S=u.isBlob,E=k("../common/utils/isFile"),_=E.isFile,P=o;P.append=function(x,w,v){var O;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return v=v||{},v.position===void 0&&(v.position="0"),v.subres={append:"",position:v.position},v.method="POST",I.next=6,g.default.awrap(this.put(x,w,v));case 6:return O=I.sent,O.nextAppendPosition=O.res.headers["x-oss-next-append-position"],I.abrupt("return",O);case 9:case"end":return I.stop()}},null,this)},P.put=function(x,w,v){var O,U,I,N,V,H,D;return g.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(O=void 0,v=v||{},x=this._objectName(x),!l.buffer(w)){F.next=7;break}O=w,F.next=33;break;case 7:if(!(S(w)||_(w))){F.next=32;break}return v.mime||(_(w)?v.mime=c.getType(a.extname(w.name)):v.mime=w.type),U=this._createStream(w,0,w.size),F.next=12,g.default.awrap(this._getFileSize(w));case 12:return v.contentLength=F.sent,F.prev=13,F.next=16,g.default.awrap(this.putStream(x,U,v));case 16:return I=F.sent,F.abrupt("return",I);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,g.default.awrap(this.put(x,w,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=O,V.successStatuses=[200],F.next=43,g.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,w,v){var O,U,I,N;return g.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),O=v.method||"PUT",U=this._objectRequestParams(O,x,v),h.encodeCallback(U,v),U.mime=v.mime,U.stream=w,U.successStatuses=[200],H.next=13,g.default.awrap(this.request(U));case 13:return I=H.sent,N={name:x,url:this._objectUrl(x),res:I.res},U.headers&&U.headers["x-oss-callback"]&&(N.data=JSON.parse(I.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,w,v){var O;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,g.default.awrap(this.copy(x,x,{meta:w||{},timeout:v&&v.timeout,ctx:v&&v.ctx}));case 2:return O=I.sent,I.abrupt("return",O);case 4:case"end":return I.stop()}},null,this)},P.list=function(x,w){var v,O,U,I,N;return g.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:return v=this._objectRequestParams("GET","",w),v.query=x,v.xmlResponse=!0,v.successStatuses=[200],H.next=6,g.default.awrap(this.request(v));case 6:return O=H.sent,U=O.data.Contents,I=this,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(D){return{name:D.Key,url:I._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=O.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(D){return D.Prefix})),H.abrupt("return",{res:O.res,objects:U,prefixes:N,nextMarker:O.data.NextMarker||null,isTruncated:O.data.IsTruncated==="true"});case 13:case"end":return H.stop()}},null,this)},P.restore=function(x,w){var v,O;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return w=w||{},w.subres=(0,C.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),v=this._objectRequestParams("POST",x,w),v.successStatuses=[202],I.next=7,g.default.awrap(this.request(v));case 7:return O=I.sent,I.abrupt("return",{res:O.res});case 9:case"end":return I.stop()}},null,this)},P.signatureUrl=function(x,w){w=w||{},x=this._objectName(x),w.method=w.method||"GET";var v=f.timestamp()+(w.expires||1800),O={bucket:this.options.bucket,object:x},U=this._getResource(O);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var I=d._signatureForURL(this.options.accessKeySecret,w,U,v),N=n.parse(this._getReqUrl(O));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:v,Signature:I.Signature},i(I.subResource).to(N.query),N.format()},P.getObjectUrl=function(x,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+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 w=n.parse(x),v=this.options.bucket;w.hostname=v+"."+w.hostname,w.host=v+"."+w.host,x=w.format()}return x+this._escape(this._objectName(R))},P._objectRequestParams=function(x,w,v){if(!this.options.bucket)throw new Error("Please create a bucket first");v=v||{},w=this._objectName(w);var O={object:w,bucket:this.options.bucket,method:x,subres:v&&v.subres,timeout:v&&v.timeout,ctx:v&&v.ctx};return v.headers&&(O.headers={},i(v.headers).to(O.headers)),O},P._objectName=function(x){return x.replace(/^\/+/,"")},P._convertMetaToHeaders=function(x,w){if(!x)return;(0,b.default)(x).forEach(function(v){w["x-oss-meta-"+v]=x[v]})},P._deleteFileSafe=function(x){var w=this;return new m.default(function(v){r.exists(x,function(O){O?r.unlink(x,function(U){U&&w.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"),m=T(M);function T(A){return A&&A.__esModule?A:{default:A}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.deleteBucketLifecycle=function(g,e){var f,r;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(g),f=this._bucketRequestParams("DELETE",g,"lifecycle",e),f.successStatuses=[204],n.next=5,m.default.awrap(this.request(f));case 5:return r=n.sent,n.abrupt("return",{res:r.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"),m=T(M);function T(A){return A&&A.__esModule?A:{default:A}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.deleteBucketWebsite=function(g,e){var f,r;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return y(g),f=this._bucketRequestParams("DELETE",g,"website",e),f.successStatuses=[204],n.next=5,m.default.awrap(this.request(f));case 5:return r=n.sent,n.abrupt("return",{res:r.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"),m=T(M);function T(r){return r&&r.__esModule?r:{default:r}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isArray"),A=C.isArray,g=k("../utils/formatObjKey"),e=g.formatObjKey,f=o;f.getBucketLifecycle=function(l,n){var i,a,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return y(l),i=this._bucketRequestParams("GET",l,"lifecycle",n),i.successStatuses=[200],i.xmlResponse=!0,d.next=6,m.default.awrap(this.request(i));case 6:return a=d.sent,c=a.data.Rule||null,c&&(A(c)||(c=[c]),c=c.map(function(s){return s.ID&&(s.id=s.ID,delete s.ID),s.Tag&&!A(s.Tag)&&(s.Tag=[s.Tag]),e(s,"firstLowerCase")})),d.abrupt("return",{rules:c,res:a.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"),m=T(M);function T(A){return A&&A.__esModule?A:{default:A}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=o;C.getBucketVersioning=function(g,e){var f,r,l;return m.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return y(g),f=this._bucketRequestParams("GET",g,"versioning",e),f.xmlResponse=!0,f.successStatuses=[200],i.next=6,m.default.awrap(this.request(f));case 6:return r=i.sent,l=r.data.Status,i.abrupt("return",{status:r.status,versionStatus:l,res:r.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"),m=T(M);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isObject"),A=C.isObject,g=o;g.getBucketWebsite=function(f,r){var l,n,i;return m.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return y(f),l=this._bucketRequestParams("GET",f,"website",r),l.successStatuses=[200],l.xmlResponse=!0,c.next=6,m.default.awrap(this.request(l));case 6:return n=c.sent,i=[],n.data.RoutingRules&&n.data.RoutingRules.RoutingRule&&(A(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"),m=T(M);function T(_){return _&&_.__esModule?_:{default:_}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/isArray"),A=C.isArray,g=k("../utils/deepCopy"),e=g.deepCopy,f=k("../utils/isObject"),r=f.isObject,l=k("../utils/obj2xml"),n=l.obj2xml,i=k("../utils/checkObjectTag"),a=i.checkObjectTag,c=k("../utils/getStrBytesCount"),h=c.getStrBytesCount,d=o;d.putBucketLifecycle=function(P,R,x){var w,v,O,U,I;return m.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(y(P),A(R)){V.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",P,"lifecycle",x),v=[],O={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(O,{headers:!0,firstUpperCase:!0}),w.content=U,w.mime="xml",w.successStatuses=[200],V.next=13,m.default.awrap(this.request(w));case 13:return I=V.sent,V.abrupt("return",{res:I.res});case 15:case"end":return V.stop()}},null,this)};function s(_){_.days&&(_.expiration={days:_.days}),_.date&&(_.expiration={createdBeforeDate:_.date})}function u(_,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 S(_){if(!A(_)&&!r(_))throw new Error("tag must be Object or Array");_=r(_)?[_]:_;var P={},R=e(_);R.forEach(function(x){P[x.key]=x.value}),a(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");u(_.transition,"Transition")}if(_.expiration){if(!_.expiration.expiredObjectDeleteMarker)u(_.expiration,"Expiration");else if(_.expiration.days||_.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(_.abortMultipartUpload&&u(_.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");S(_.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"),m=T(M);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),A=C.obj2xml,g=o;g.putBucketVersioning=function(f,r){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,a;return m.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(y(f),["Enabled","Suspended"].includes(r)){h.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",f,"versioning",l),i={VersioningConfiguration:{Status:r}},n.mime="xml",n.content=A(i,{headers:!0}),h.next=9,m.default.awrap(this.request(n));case 9:return a=h.sent,h.abrupt("return",{res:a.res,status:a.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"),m=T(M);function T(r){return r&&r.__esModule?r:{default:r}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),A=C.obj2xml,g=k("../utils/isArray"),e=g.isArray,f=o;f.putBucketWebsite=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments[2],a,c,h,d,s;return m.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:if(y(l),a=this._bucketRequestParams("PUT",l,"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)){S.next=12;break}if(e(n.routingRules)){S.next=11;break}throw new Error("RoutingRules must be Array");case 11:h.RoutingRules={RoutingRule:n.routingRules};case 12:return d=A(d),a.content=d,a.mime="xml",a.successStatuses=[200],S.next=18,m.default.awrap(this.request(a));case 18:return s=S.sent,S.abrupt("return",{res:s.res});case 20:case"end":return S.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 m=k("babel-runtime/core-js/object/keys"),T=C(m),b=k("babel-runtime/core-js/json/stringify"),y=C(b);function C(A){return A&&A.__esModule?A:{default:A}}o.encodeCallback=function(g,e){if(g.headers=g.headers||{},!Object.prototype.hasOwnProperty.call(g.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 r=M.from((0,y.default)(f)).toString("base64");if(g.headers["x-oss-callback"]=r,e.callback.customValue){var l={};(0,T.default)(e.callback.customValue).forEach(function(n){l["x:"+n]=e.callback.customValue[n]}),g.headers["x-oss-callback-var"]=M.from((0,y.default)(l)).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"),m=T(M);function T(f){return f&&f.__esModule?f:{default:f}}var b=k("humanize-ms"),y=k("url"),C=k("../utils/checkBucketName"),A=C.checkBucketName;function g(f,r){var l=y.parse(f);if(l.protocol||(l=y.parse("http"+(r?"s":"")+"://"+f)),l.protocol!=="http:"&&l.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return l}function e(f,r,l){var n=l?"https://":"http://",i=r?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return f.substr(0,a.length)===a&&(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&&A(f.bucket);var r=(0,m.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},f);if(r.accessKeyId=r.accessKeyId.trim(),r.accessKeySecret=r.accessKeySecret.trim(),r.timeout&&(r.timeout=b(r.timeout)),r.endpoint)r.endpoint=g(r.endpoint,r.secure);else if(r.region)r.endpoint=e(r.region,r.internal,r.secure);else throw new Error("require options.endpoint or options.region");return r.inited=!0,r}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,z,o){"use strict";var M=k("merge-descriptors"),m=o;M(m,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),m=T(M);function T(r){return r&&r.__esModule?r:{default:r}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("querystring"),A=k("js-base64"),g=A.Base64.encode,e=o;e.processObjectSave=function(l,n,i,a){var c,h,d,s;return m.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:return f(l,"sourceObject"),f(n,"targetObject"),f(i,"process"),n=this._objectName(n),a&&y(a),c=this._objectRequestParams("POST",l,{subres:"x-oss-process"}),h=a?",b_"+g(a):"",n=g(n),d={"x-oss-process":i+"|sys/saveas,o_"+n+h},c.content=C.stringify(d),S.next=12,m.default.awrap(this.request(c));case 12:return s=S.sent,S.abrupt("return",{res:s.res,status:s.res.status});case 14:case"end":return S.stop()}},null,this)};function f(r,l){if(!r)throw new Error(l+" is required");if(typeof r!="string")throw new Error(l+" 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"),m=T(M);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("copy-to"),y=k("./callback"),C=k("./utils/deepCopy"),A=C.deepCopy,g=o;g.listUploads=function(f,r){var l,n,i,a;return m.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return r=r||{},l={},b(r).to(l),l.subres="uploads",n=this._objectRequestParams("GET","",l),n.query=f,n.xmlResponse=!0,n.successStatuses=[200],h.next=10,m.default.awrap(this.request(n));case 10:return i=h.sent,a=i.data.Upload||[],Array.isArray(a)||(a=[a]),a=a.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),h.abrupt("return",{res:i.res,uploads:a,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)},g.listParts=function(f,r,l,n){var i,a,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=n||{},i={},b(n).to(i),i.subres={uploadId:r},a=this._objectRequestParams("GET",f,i),a.query=l,a.xmlResponse=!0,a.successStatuses=[200],d.next=10,m.default.awrap(this.request(a));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)},g.abortMultipartUpload=function(f,r,l){var n,i,a;return m.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return this._stop(),l=l||{},n={},b(l).to(n),n.subres={uploadId:r},i=this._objectRequestParams("DELETE",f,n),i.successStatuses=[204],h.next=9,m.default.awrap(this.request(i));case 9:return a=h.sent,h.abrupt("return",{res:a.res});case 11:case"end":return h.stop()}},null,this)},g.initMultipartUpload=function(f,r){var l,n,i;return m.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return r=r||{},l={},b(r).to(l),l.headers=l.headers||{},this._convertMetaToHeaders(r.meta,l.headers),l.subres="uploads",n=this._objectRequestParams("POST",f,l),n.mime=r.mime,n.xmlResponse=!0,n.successStatuses=[200],c.next=12,m.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)},g.uploadPart=function(f,r,l,n,i,a,c){var h;return m.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return h={stream:this._createStream(n,i,a),size:a-i},s.next=3,m.default.awrap(this._uploadPart(f,r,l,h,c));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},g.completeMultipartUpload=function(f,r,l,n){var i,a,c,h,d,s,u,S;return m.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:for(i=l.concat().sort(function(P,R){return P.number-R.number}).filter(function(P,R,x){return!R||P.number!==x[R-1].number}),a=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,c=0;c<i.length;c++)h=i[c],a+=`<Part>
|
|
|
`,a+="<PartNumber>"+h.number+`</PartNumber>
|
|
|
`,a+="<ETag>"+h.etag+`</ETag>
|
|
|
`,a+=`</Part>
|
|
|
`;return a+="</CompleteMultipartUpload>",n=n||{},d={},d=A(n),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:r},s=this._objectRequestParams("POST",f,d),y.encodeCallback(s,d),s.mime="xml",s.content=a,s.headers&&s.headers["x-oss-callback"]||(s.xmlResponse=!0),s.successStatuses=[200],_.next=17,m.default.awrap(this.request(s));case 17:return u=_.sent,S={res:u.res,bucket:s.bucket,name:f,etag:u.res.headers.etag},s.headers&&s.headers["x-oss-callback"]&&(S.data=JSON.parse(u.data.toString())),_.abrupt("return",S);case 21:case"end":return _.stop()}},null,this)},g._uploadPart=function(f,r,l,n,i){var a,c,h;return m.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=i||{},a={},b(i).to(a),a.headers={"Content-Length":n.size},a.subres={partNumber:l,uploadId:r},c=this._objectRequestParams("PUT",f,a),c.mime=a.mime,c.stream=n.stream,c.successStatuses=[200],s.next=11,m.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"),m=A(M),T=k("babel-runtime/core-js/object/keys"),b=A(T),y=k("babel-runtime/helpers/typeof"),C=A(y);function A(r){return r&&r.__esModule?r:{default:r}}var g=k("../utils/checkBucketName"),e=g.checkBucketName,f=o;f.copy=function(l,n,i,a){var c,h,d;return m.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return(typeof i=="undefined"?"undefined":(0,C.default)(i))==="object"&&(a=i),a=a||{},a.headers=a.headers||{},(0,b.default)(a.headers).forEach(function(S){a.headers["x-oss-copy-source-"+S.toLowerCase()]=a.headers[S]}),a.meta&&(a.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(a.meta,a.headers),n=this._getSourceName(n,i),a.versionId&&(n=n+"?versionId="+a.versionId),a.headers["x-oss-copy-source"]=n,c=this._objectRequestParams("PUT",l,a),c.xmlResponse=!0,c.successStatuses=[200,304],u.next=14,m.default.awrap(this.request(c));case 14:return h=u.sent,d=h.data,d&&(d={etag:d.ETag,lastModified:d.LastModified}),u.abrupt("return",{data:d,res:h.res});case 18:case"end":return u.stop()}},null,this)},f._getSourceName=function(l,n){return typeof n=="string"?l=this._objectName(l):l[0]!=="/"?n=this.options.bucket:(n=l.replace(/\/(.+?)(\/.*)/,"$1"),l=l.replace(/(\/.+?\/)(.*)/,"$2")),e(n),l=encodeURI(l),l="/"+n+"/"+l,l}},{"../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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.delete=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r;return m.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",g,e),f.successStatuses=[204],n.next=6,m.default.awrap(this.request(f));case 6:return r=n.sent,n.abrupt("return",{res:r.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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(f){return f&&f.__esModule?f:{default:f}}var C=k("utility"),A=k("../utils/obj2xml"),g=A.obj2xml,e=o;e.deleteMulti=function(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,a,c,h,d,s,u,S,E,_,P;return m.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:if(n=[],!(!r||!r.length)){x.next=3;break}throw new Error("names is required");case 3:for(i=0;i<r.length;i++)a={},typeof r[i]=="string"?a.Key=C.escape(this._objectName(r[i])):(c=r[i],h=c.key,d=c.versionId,a.Key=C.escape(this._objectName(h)),a.VersionId=d),n.push(a);return s={Delete:{Quiet:!!l.quiet,Object:n}},u=g(s,{headers:!0}),l.subres=(0,b.default)({delete:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),S=this._objectRequestParams("POST","",l),S.mime="xml",S.content=u,S.xmlResponse=!0,S.successStatuses=[200],x.next=15,m.default.awrap(this.request(S));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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.deleteObjectTagging=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r;return m.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),g=this._objectName(g),f=this._objectRequestParams("DELETE",g,e),f.successStatuses=[204],n.next=7,m.default.awrap(this.request(f));case 7:return r=n.sent,n.abrupt("return",{status:r.status,res:r.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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(e){return e&&e.__esModule?e:{default:e}}var C=k("fs"),A=k("is-type-of"),g=o;g.get=function(f,r){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,a,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=null,i=!1,A.writableStream(r)?n=r:A.string(r)?(n=C.createWriteStream(r),i=!0):l=r,l=l||{},l.subres=(0,b.default)({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.process&&(l.subres["x-oss-process"]=l.process),a=void 0,d.prev=8,c=this._objectRequestParams("GET",f,l),c.writeStream=n,c.successStatuses=[200,206,304],d.next=14,m.default.awrap(this.request(c));case 14:a=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,m.default.awrap(this._deleteFileSafe(r));case 24:throw d.t0;case 25:return d.abrupt("return",{res:a.res,content:a.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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.getACL=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r;return m.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),g=this._objectName(g),f=this._objectRequestParams("GET",g,e),f.successStatuses=[200],f.xmlResponse=!0,n.next=8,m.default.awrap(this.request(f));case 8:return r=n.sent,n.abrupt("return",{acl:r.data.AccessControlList.Grant,owner:{id:r.data.Owner.ID,displayName:r.data.Owner.DisplayName},res:r.res});case 10:case"end":return 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"),m=A(M),T=k("babel-runtime/regenerator"),b=A(T),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(c){return c&&c.__esModule?c:{default:c}}var g=o,e=k("../utils/isObject"),f=e.isObject,r=k("../utils/isArray"),l=r.isArray;g.getBucketVersions=n,g.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,u,S,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=a(c),R.next=10,b.default.awrap(this.request(d));case 10:return s=R.sent,u=s.data.Version||[],S=s.data.DeleteMarker||[],E=this,u&&(Array.isArray(u)||(u=[u]),u=u.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}}})),S&&(l(S)||(S=[S]),S=S.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,_&&(l(_)||(_=[_]),_=_.map(function(x){return x.Prefix})),R.abrupt("return",{res:s.res,objects:u,deleteMarker:S,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 a(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h={};return f(c)&&(0,m.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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.getObjectMeta=function(g,e){var f,r;return m.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e=e||{},g=this._objectName(g),e.subres=(0,b.default)({objectMeta:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("HEAD",g,e),f.successStatuses=[200],n.next=8,m.default.awrap(this.request(f));case 8:return r=n.sent,n.abrupt("return",{status:r.status,res:r.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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(e){return e&&e.__esModule?e:{default:e}}var C=o,A=k("../utils/isObject"),g=A.isObject;C.getObjectTagging=function(f){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,i,a,c;return m.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return r.subres=(0,b.default)({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),f=this._objectName(f),l=this._objectRequestParams("GET",f,r),l.successStatuses=[200],d.next=7,m.default.awrap(this.request(l));case 7:return n=d.sent,d.next=10,m.default.awrap(this.parseXML(n.data));case 10:return i=d.sent,a=i.TagSet.Tag,a=a&&g(a)?[a]:a||[],c={},a.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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.getSymlink=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r,l;return m.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),g=this._objectName(g),f=this._objectRequestParams("GET",g,e),f.successStatuses=[200],i.next=7,m.default.awrap(this.request(f));case 7:return r=i.sent,l=r.res.headers["x-oss-symlink-target"],i.abrupt("return",{targetName:decodeURIComponent(l),res:r.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"),m=A(M),T=k("babel-runtime/core-js/object/keys"),b=A(T),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(e){return e&&e.__esModule?e:{default:e}}var g=o;g.head=function(f){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,i;return m.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return r.subres=(0,C.default)({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),l=this._objectRequestParams("HEAD",f,r),l.successStatuses=[200,304],c.next=6,m.default.awrap(this.request(l));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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.putACL=function(g,e,f){var r,l;return m.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,g=this._objectName(g),r=this._objectRequestParams("PUT",g,f),r.successStatuses=[200],i.next=10,m.default.awrap(this.request(r));case 10:return l=i.sent,i.abrupt("return",{res:l.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"),m=A(M),T=k("babel-runtime/core-js/object/keys"),b=A(T),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(n){return n&&n.__esModule?n:{default:n}}var g=k("../utils/obj2xml"),e=g.obj2xml,f=k("../utils/checkObjectTag"),r=f.checkObjectTag,l=o;l.putObjectTagging=function(i,a){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,d,s;return m.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:return r(a),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],a=(0,b.default)(a).map(function(E){return{Key:E,Value:a[E]}}),d={Tagging:{TagSet:{Tag:a}}},h.mime="xml",h.content=e(d),S.next=12,m.default.awrap(this.request(h));case 12:return s=S.sent,S.abrupt("return",{res:s.res,status:s.status});case 14:case"end":return S.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"),m=y(M),T=k("babel-runtime/core-js/object/assign"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C.putSymlink=function(g,e,f){var r,l;return m.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),g=this._objectName(g),r=this._objectRequestParams("PUT",g,f),r.successStatuses=[200],i.next=13,m.default.awrap(this.request(r));case 13:return l=i.sent,i.abrupt("return",{res:l.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"),m=y(M),T=k("babel-runtime/core-js/promise"),b=y(T);function y(A){return A&&A.__esModule?A:{default:A}}var C=o;C._parallelNode=function(g,e,f,r){var l,n,i,a,c,h,d,s;return m.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:l=this,n=[],i=[],a=g.length/e,c=g.length%e,h=c===0?a:(g.length-c)/e+1,d=1,s=0;case 8:if(!(s<g.length)){S.next=26;break}if(!l.isCancel()){S.next=11;break}return S.abrupt("break",26);case 11:if(r?i.push(f(l,g[s],r)):i.push(f(l,g[s])),!(i.length===e||d===h&&s===g.length-1)){S.next=23;break}return S.prev=13,d+=1,S.next=17,m.default.awrap(b.default.all(i));case 17:S.next=22;break;case 19:S.prev=19,S.t0=S.catch(13),n.push(S.t0);case 22:i=[];case 23:s++,S.next=8;break;case 26:return S.abrupt("return",n);case 27:case"end":return S.stop()}},null,this,[[13,19]])},C._parallel=function(g,e,f){var r=this;return new b.default(function(l){var n=[];if(e<=0||!g){l(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),w=0;w<R;w++)x[w]=arguments[w];P.apply(this,x)}}function a(_){var P=-1,R=_.length;return function(){return++P<R&&!r.isCancel()?{value:_[P],key:P}:null}}var c=a(g),h=!1,d=0,s=!1;function u(_,P){d-=1,_?(h=!0,n.push(_),l(n)):P==={}||h&&d<=0?(h=!0,l(n)):s||(r.isCancel()?l(n):E())}function S(_,P){f(_).then(function(R){P(null,R)}).catch(function(R){P(R)})}function E(){for(s=!0;d<e&&!h&&!r.isCancel();){var _=c();if(_===null||n.length>0){h=!0,d<=0&&l(n);return}d+=1,S(_.value,i(u))}s=!1}E()})},C.cancel=function(g){this.options.cancelFlag=!0,g&&this.abortMultipartUpload(g.name,g.uploadId,g.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 g={status:0,name:"cancel"};return g}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/core-js/json/stringify"),T=C(m),b=k("babel-runtime/core-js/object/keys"),y=C(b);function C(e){return e&&e.__esModule?e:{default:e}}var A=k("./../../shims/crypto/crypto.js"),g=k("is-type-of");o.buildCanonicalizedResource=function(f,r){var l=""+f,n="?";if(g.string(r)&&r.trim()!=="")l+=n+r;else if(g.array(r))r.sort(),l+=n+r.join("&");else if(r){var i=function(h,d){return h[0]>d[0]?1:h[0]<d[0]?-1:0},a=function(h){l+=n+h,r[h]&&(l+="="+r[h]),n="&"};(0,y.default)(r).sort(i).forEach(a)}return l},o.buildCanonicalString=function(f,r,l,n){l=l||{};var i=l.headers||{},a="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 u=s.toLowerCase();u.indexOf(a)===0&&(h[u]=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(r,l.parameters)),d.join(`
|
|
|
`)},o.computeSignature=function(f,r){var l=A.createHmac("sha1",f);return l.update(M.from(r,"utf8")).digest("base64")},o.authorization=function(f,r,l){return"OSS "+f+":"+this.computeSignature(r,l)},o._signatureForURL=function(f){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],n=arguments[3],i={},a=r.subResource,c=a===void 0?{}:a;if(r.process){var h="x-oss-process";c[h]=r.process}if(r.trafficLimit){var d="x-oss-traffic-limit";c[d]=r.trafficLimit}if(r.response&&(0,y.default)(r.response).forEach(function(E){var _="response-"+E.toLowerCase();c[_]=r.response[E]}),(0,y.default)(r).forEach(function(E){var _=E.toLowerCase(),P=r[E];_.indexOf("x-oss-")===0?i[_]=P:(_.indexOf("content-md5")===0||_.indexOf("content-type")===0)&&(i[E]=P)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(c["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var s={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(s.callbackHost=r.callback.host),r.callback.contentType&&(s.callbackBodyType=r.callback.contentType),c.callback=M.from((0,T.default)(s)).toString("base64"),r.callback.customValue){var u={};(0,y.default)(r.callback.customValue).forEach(function(E){u["x:"+E]=r.callback.customValue[E]}),c["callback-var"]=M.from((0,T.default)(u)).toString("base64")}}var S=this.buildCanonicalString(r.method,l,{headers:i,parameters:c},n.toString());return{Signature:this.computeSignature(f,S),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,m){var T=m?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.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"),m=T(M);function T(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(o,"__esModule",{value:!0}),o.checkObjectTag=void 0;var b=k("./checkValid"),y=b.checkValid,C=k("./isObject"),A=C.isObject,g=[{validator:function(l){if(typeof l!="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(g,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(g,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function f(r){if(!A(r))throw new Error("tag must be Object");var l=(0,m.default)(r);if(l.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];l.forEach(function(i){i.forEach(function(a,c){y(a,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(m,T){T.forEach(function(b){if(b.validator)b.validator(m);else if(b.pattern&&!b.pattern.test(m))throw new Error(b.msg)})}o.checkValid=M},{}],38:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/core-js/object/assign"),T=b(m);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"),A=k("mime"),g=k("dateformat"),e=k("copy-to"),f=k("path");function r(i,a){return i[a]||i[a.toLowerCase()]}function l(i,a){delete i[a],delete i[a.toLowerCase()]}function n(i){var a=new Date;this.options.amendTimeSkewed&&(a=+new Date+this.options.amendTimeSkewed);var c={"x-oss-date":g(a,"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,T.default)(c,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(c["x-oss-security-token"]=this.options.stsToken),e(i.headers).to(c),r(c,"Content-Type")||(i.mime&&i.mime.indexOf("/")>0?c["Content-Type"]=i.mime:c["Content-Type"]=A.getType(i.mime||f.extname(i.object||""))),r(c,"Content-Type")||l(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,u={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&&(u.agent=this.agent),this.httpsAgent&&(u.httpsAgent=this.httpsAgent),{url:d,params:u}}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"),m=y(M),T=k("babel-runtime/helpers/typeof"),b=y(T);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 A=Array.isArray(C)?[]:{};return(0,m.default)(C).forEach(function(g){A[g]=o.deepCopy(C[g])}),A}},{"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"),m=y(M),T=k("babel-runtime/helpers/typeof"),b=y(T);function y(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.formatObjKey=void 0;function C(g,e){if(g===null||(typeof g=="undefined"?"undefined":(0,b.default)(g))!=="object")return g;var f=void 0;if(Array.isArray(g)){f=[];for(var r=0;r<g.length;r++)f.push(C(g[r],e))}else f={},(0,m.default)(g).forEach(function(l){f[A(l,e)]=C(g[l],e)});return f}o.formatObjKey=C;function A(g,e){return e==="firstUpperCase"?g=g.replace(/^./,function(f){return f.toUpperCase()}):e==="firstLowerCase"&&(g=g.replace(/^./,function(f){return f.toLowerCase()})),g}},{"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(m){for(var T=0,b=0;b<m.length;b++){var y=m.charAt(b);/^[\u00-\uff]$/.test(y)?T+=1:T+=2}return T}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(m){return typeof Blob!="undefined"&&m 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 m=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,T=/^\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 m.test(M)||T.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"),m=T(M);function T(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(o,"__esModule",{value:!0}),o.obj2xml=void 0;var b=k("./formatObjKey");function y(A){return Object.prototype.toString.call(A).replace(/(.*? |])/g,"").toLowerCase()}function C(A,g){var e="";return g&&g.headers&&(e=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),g&&g.firstUpperCase&&(A=b.formatObjKey(A,"firstUpperCase")),y(A)==="object"?(0,m.default)(A).forEach(function(f){y(A[f])==="string"||y(A[f])==="number"?e+="<"+f+">"+A[f]+"</"+f+">":y(A[f])==="object"?e+="<"+f+">"+C(A[f])+"</"+f+">":y(A[f])==="array"?e+=A[f].map(function(r){return"<"+f+">"+C(r)+"</"+f+">"}).join(""):e+="<"+f+">"+A[f].toString()+"</"+f+">"}):e+=A.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",m=null;z.exports=function(T,b){return function(C,A){C=C||null,A=A||{};var g=A.global!==!1;if(m===null&&g&&(m=T[M]||null),m!==null&&C!==null&&m.implementation!==C)throw new Error('any-promise already defined as "'+m.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return m===null&&(C!==null&&typeof A.Promise!="undefined"?m={Promise:A.Promise,implementation:C}:m=b(C),g&&(T[M]=m)),m}}},{}],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"),m=C(M),T=k("../core-js/symbol"),b=C(T),y=typeof b.default=="function"&&typeof m.default=="symbol"?function(A){return typeof A}:function(A){return A&&typeof b.default=="function"&&A.constructor===b.default&&A!==b.default.prototype?"symbol":typeof A};function C(A){return A&&A.__esModule?A:{default:A}}o.default=typeof b.default=="function"&&y(m.default)==="symbol"?function(A){return typeof A=="undefined"?"undefined":y(A)}:function(A){return A&&typeof b.default=="function"&&A.constructor===b.default&&A!==b.default.prototype?"symbol":typeof A=="undefined"?"undefined":y(A)}},{"../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=g,o.toByteArray=f,o.fromByteArray=n;for(var M=[],m=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,C=b.length;y<C;++y)M[y]=b[y],m[b.charCodeAt(y)]=y;m["-".charCodeAt(0)]=62,m["_".charCodeAt(0)]=63;function A(i){var a=i.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=i.indexOf("=");c===-1&&(c=a);var h=c===a?0:4-c%4;return[c,h]}function g(i){var a=A(i),c=a[0],h=a[1];return(c+h)*3/4-h}function e(i,a,c){return(a+c)*3/4-c}function f(i){var a,c=A(i),h=c[0],d=c[1],s=new T(e(i,h,d)),u=0,S=d>0?h-4:h,E;for(E=0;E<S;E+=4)a=m[i.charCodeAt(E)]<<18|m[i.charCodeAt(E+1)]<<12|m[i.charCodeAt(E+2)]<<6|m[i.charCodeAt(E+3)],s[u++]=a>>16&255,s[u++]=a>>8&255,s[u++]=a&255;return d===2&&(a=m[i.charCodeAt(E)]<<2|m[i.charCodeAt(E+1)]>>4,s[u++]=a&255),d===1&&(a=m[i.charCodeAt(E)]<<10|m[i.charCodeAt(E+1)]<<4|m[i.charCodeAt(E+2)]>>2,s[u++]=a>>8&255,s[u++]=a&255),s}function r(i){return M[i>>18&63]+M[i>>12&63]+M[i>>6&63]+M[i&63]}function l(i,a,c){for(var h,d=[],s=a;s<c;s+=3)h=(i[s]<<16&16711680)+(i[s+1]<<8&65280)+(i[s+2]&255),d.push(r(h));return d.join("")}function n(i){for(var a,c=i.length,h=c%3,d=[],s=16383,u=0,S=c-h;u<S;u+=s)d.push(l(i,u,u+s>S?S:u+s));return h===1?(a=i[c-1],d.push(M[a>>2]+M[a<<4&63]+"==")):h===2&&(a=(i[c-2]<<8)+i[c-1],d.push(M[a>>10]+M[a>>4&63]+M[a<<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,m,T){typeof z!="undefined"&&z.exports?z.exports=T():typeof define=="function"&&define.amd?define(m,T):M[m]=T()}(this,"bowser",function(){var M=!0;function m(e){function f(W){var F=e.match(W);return F&&F.length>1&&F[1]||""}function r(W){var F=e.match(W);return F&&F.length>1&&F[2]||""}var l=f(/(ipod|iphone|ipad)/i).toLowerCase(),n=/like android/i.test(e),i=!n&&/android/i.test(e),a=/nexus\s*[0-6]\s*/i.test(e),c=!a&&/nexus\s*[0-9]+/i.test(e),h=/CrOS/.test(e),d=/silk/i.test(e),s=/sailfish/i.test(e),u=/tizen/i.test(e),S=/(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=!l&&!d&&/macintosh/i.test(e),x=!i&&!s&&!u&&!S&&/linux/i.test(e),w=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=f(/version\/(\d+(\.\d+)?)/i),O=/tablet/i.test(e)&&!/tablet pc/i.test(e),U=!O&&/[^-]mobi/i.test(e),I=/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},w?(N.msedge=M,N.version=w):(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:w}:/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)}:S?(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)}:u?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)):l?(N={name:l=="iphone"?"iPhone":l=="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:r(/^(.*)\/(.*) /)},!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&&l?(N[l]=M,N.ios=M,N.osname="iOS"):R?(N.mac=M,N.osname="macOS"):I?(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,".")):l?(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 O||c||l=="ipad"||i&&(D==3||D>=4&&!U)||N.silk?N.tablet=M:(U||l=="iphone"||l=="ipod"||i||a||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 T=m(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(e){for(var f=0;f<e.length;++f){var r=e[f];if(typeof r=="string"&&r in T)return!0}return!1};function b(e){return e.split(".").length}function y(e,f){var r=[],l;if(Array.prototype.map)return Array.prototype.map.call(e,f);for(l=0;l<e.length;l++)r.push(f(e[l]));return r}function C(e){for(var f=Math.max(b(e[0]),b(e[1])),r=y(e,function(l){var n=f-b(l);return l=l+new Array(n+1).join(".0"),y(l.split("."),function(i){return new Array(20-i.length).join("0")+i}).reverse()});--f>=0;){if(r[0][f]>r[1][f])return 1;if(r[0][f]===r[1][f]){if(f===0)return 0}else return-1}}function A(e,f,r){var l=T;typeof f=="string"&&(r=f,f=void 0),f===void 0&&(f=!1),r&&(l=m(r));var n=""+l.version;for(var i in e)if(e.hasOwnProperty(i)&&l[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 g(e,f,r){return!A(e,f,r)}return T.isUnsupportedBrowser=A,T.compareVersions=C,T.check=g,T._detect=m,T.detect=m,T})},{}],71:[function(k,z,o){},{}],72:[function(k,z,o){var M=k("buffer").Buffer,m=M.isEncoding||function(g){switch(g&&g.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 T(g){if(g&&!m(g))throw new Error("Unknown encoding: "+g)}var b=o.StringDecoder=function(g){this.encoding=(g||"utf8").toLowerCase().replace(/[-_]/,""),T(g);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=A;break;default:this.write=y;return}this.charBuffer=new M(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(g){for(var e="";this.charLength;){var f=g.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:g.length;if(g.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";g=g.slice(f,g.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var l=e.charCodeAt(e.length-1);if(l>=55296&&l<=56319){this.charLength+=this.surrogateSize,e="";continue}if(this.charReceived=this.charLength=0,g.length===0)return e;break}this.detectIncompleteChar(g);var r=g.length;this.charLength&&(g.copy(this.charBuffer,0,g.length-this.charReceived,r),r-=this.charReceived),e+=g.toString(this.encoding,0,r);var r=e.length-1,l=e.charCodeAt(r);if(l>=55296&&l<=56319){var n=this.surrogateSize;return this.charLength+=n,this.charReceived+=n,this.charBuffer.copy(this.charBuffer,n,0,n),g.copy(this.charBuffer,0,0,n),e.substring(0,r)}return e},b.prototype.detectIncompleteChar=function(g){for(var e=g.length>=3?3:g.length;e>0;e--){var f=g[g.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(g){var e="";if(g&&g.length&&(e=this.write(g)),this.charReceived){var f=this.charReceived,r=this.charBuffer,l=this.encoding;e+=r.slice(0,f).toString(l)}return e};function y(g){return g.toString(this.encoding)}function C(g){this.charReceived=g.length%2,this.charLength=this.charReceived?2:0}function A(g){this.charReceived=g.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,z,o){(function(M,m){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var T=k("base64-js"),b=k("ieee754"),y=k("isarray");o.Buffer=m,o.SlowBuffer=d,o.INSPECT_MAX_BYTES=50,m.TYPED_ARRAY_SUPPORT=M.TYPED_ARRAY_SUPPORT!==void 0?M.TYPED_ARRAY_SUPPORT:C(),o.kMaxLength=A();function C(){try{var oe=new Uint8Array(1);return oe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},oe.foo()===42&&typeof oe.subarray=="function"&&oe.subarray(1,1).byteLength===0}catch(ee){return!1}}function A(){return m.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(oe,ee){if(A()<ee)throw new RangeError("Invalid typed array length");return m.TYPED_ARRAY_SUPPORT?(oe=new Uint8Array(ee),oe.__proto__=m.prototype):(oe===null&&(oe=new m(ee)),oe.length=ee),oe}function m(oe,ee,J){if(!m.TYPED_ARRAY_SUPPORT&&!(this instanceof m))return new m(oe,ee,J);if(typeof oe=="number"){if(typeof ee=="string")throw new Error("If encoding is specified then the first argument must be a string");return l(this,oe)}return e(this,oe,ee,J)}m.poolSize=8192,m._augment=function(oe){return oe.__proto__=m.prototype,oe};function e(oe,ee,J,Q){if(typeof ee=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&ee instanceof ArrayBuffer?a(oe,ee,J,Q):typeof ee=="string"?n(oe,ee,J):c(oe,ee)}m.from=function(oe,ee,J){return e(null,oe,ee,J)},m.TYPED_ARRAY_SUPPORT&&(m.prototype.__proto__=Uint8Array.prototype,m.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&m[Symbol.species]===m&&Object.defineProperty(m,Symbol.species,{value:null,configurable:!0}));function f(oe){if(typeof oe!="number")throw new TypeError('"size" argument must be a number');if(oe<0)throw new RangeError('"size" argument must not be negative')}function r(oe,ee,J,Q){return f(ee),ee<=0?g(oe,ee):J!==void 0?typeof Q=="string"?g(oe,ee).fill(J,Q):g(oe,ee).fill(J):g(oe,ee)}m.alloc=function(oe,ee,J){return r(null,oe,ee,J)};function l(oe,ee){if(f(ee),oe=g(oe,ee<0?0:h(ee)|0),!m.TYPED_ARRAY_SUPPORT)for(var J=0;J<ee;++J)oe[J]=0;return oe}m.allocUnsafe=function(oe){return l(null,oe)},m.allocUnsafeSlow=function(oe){return l(null,oe)};function n(oe,ee,J){if((typeof J!="string"||J==="")&&(J="utf8"),!m.isEncoding(J))throw new TypeError('"encoding" must be a valid string encoding');var Q=s(ee,J)|0;oe=g(oe,Q);var ve=oe.write(ee,J);return ve!==Q&&(oe=oe.slice(0,ve)),oe}function i(oe,ee){var J=ee.length<0?0:h(ee.length)|0;oe=g(oe,J);for(var Q=0;Q<J;Q+=1)oe[Q]=ee[Q]&255;return oe}function a(oe,ee,J,Q){if(ee.byteLength,J<0||ee.byteLength<J)throw new RangeError("'offset' is out of bounds");if(ee.byteLength<J+(Q||0))throw new RangeError("'length' is out of bounds");return J===void 0&&Q===void 0?ee=new Uint8Array(ee):Q===void 0?ee=new Uint8Array(ee,J):ee=new Uint8Array(ee,J,Q),m.TYPED_ARRAY_SUPPORT?(oe=ee,oe.__proto__=m.prototype):oe=i(oe,ee),oe}function c(oe,ee){if(m.isBuffer(ee)){var J=h(ee.length)|0;return oe=g(oe,J),oe.length===0||ee.copy(oe,0,0,J),oe}if(ee){if(typeof ArrayBuffer!="undefined"&&ee.buffer instanceof ArrayBuffer||"length"in ee)return typeof ee.length!="number"||Se(ee.length)?g(oe,0):i(oe,ee);if(ee.type==="Buffer"&&y(ee.data))return i(oe,ee.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(oe){if(oe>=A())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A().toString(16)+" bytes");return oe|0}function d(oe){return+oe!=oe&&(oe=0),m.alloc(+oe)}m.isBuffer=function(ee){return!!(ee!=null&&ee._isBuffer)},m.compare=function(ee,J){if(!m.isBuffer(ee)||!m.isBuffer(J))throw new TypeError("Arguments must be Buffers");if(ee===J)return 0;for(var Q=ee.length,ve=J.length,_e=0,Te=Math.min(Q,ve);_e<Te;++_e)if(ee[_e]!==J[_e]){Q=ee[_e],ve=J[_e];break}return Q<ve?-1:ve<Q?1:0},m.isEncoding=function(ee){switch(String(ee).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}},m.concat=function(ee,J){if(!y(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return m.alloc(0);var Q;if(J===void 0)for(J=0,Q=0;Q<ee.length;++Q)J+=ee[Q].length;var ve=m.allocUnsafe(J),_e=0;for(Q=0;Q<ee.length;++Q){var Te=ee[Q];if(!m.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(ve,_e),_e+=Te.length}return ve};function s(oe,ee){if(m.isBuffer(oe))return oe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(oe)||oe instanceof ArrayBuffer))return oe.byteLength;typeof oe!="string"&&(oe=""+oe);var J=oe.length;if(J===0)return 0;for(var Q=!1;;)switch(ee){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":case void 0:return le(oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return re(oe).length;default:if(Q)return le(oe).length;ee=(""+ee).toLowerCase(),Q=!0}}m.byteLength=s;function u(oe,ee,J){var Q=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length)return"";if((J===void 0||J>this.length)&&(J=this.length),J<=0)return"";if(J>>>=0,ee>>>=0,J<=ee)return"";for(oe||(oe="utf8");;)switch(oe){case"hex":return W(this,ee,J);case"utf8":case"utf-8":return I(this,ee,J);case"ascii":return H(this,ee,J);case"latin1":case"binary":return D(this,ee,J);case"base64":return U(this,ee,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,ee,J);default:if(Q)throw new TypeError("Unknown encoding: "+oe);oe=(oe+"").toLowerCase(),Q=!0}}m.prototype._isBuffer=!0;function S(oe,ee,J){var Q=oe[ee];oe[ee]=oe[J],oe[J]=Q}m.prototype.swap16=function(){var ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var J=0;J<ee;J+=2)S(this,J,J+1);return this},m.prototype.swap32=function(){var ee=this.length;if(ee%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var J=0;J<ee;J+=4)S(this,J,J+3),S(this,J+1,J+2);return this},m.prototype.swap64=function(){var ee=this.length;if(ee%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var J=0;J<ee;J+=8)S(this,J,J+7),S(this,J+1,J+6),S(this,J+2,J+5),S(this,J+3,J+4);return this},m.prototype.toString=function(){var ee=this.length|0;return ee===0?"":arguments.length===0?I(this,0,ee):u.apply(this,arguments)},m.prototype.equals=function(ee){if(!m.isBuffer(ee))throw new TypeError("Argument must be a Buffer");return this===ee?!0:m.compare(this,ee)===0},m.prototype.inspect=function(){var ee="",J=o.INSPECT_MAX_BYTES;return this.length>0&&(ee=this.toString("hex",0,J).match(/.{2}/g).join(" "),this.length>J&&(ee+=" ... ")),"<Buffer "+ee+">"},m.prototype.compare=function(ee,J,Q,ve,_e){if(!m.isBuffer(ee))throw new TypeError("Argument must be a Buffer");if(J===void 0&&(J=0),Q===void 0&&(Q=ee?ee.length:0),ve===void 0&&(ve=0),_e===void 0&&(_e=this.length),J<0||Q>ee.length||ve<0||_e>this.length)throw new RangeError("out of range index");if(ve>=_e&&J>=Q)return 0;if(ve>=_e)return-1;if(J>=Q)return 1;if(J>>>=0,Q>>>=0,ve>>>=0,_e>>>=0,this===ee)return 0;for(var Te=_e-ve,Ge=Q-J,qe=Math.min(Te,Ge),ut=this.slice(ve,_e),st=ee.slice(J,Q),ft=0;ft<qe;++ft)if(ut[ft]!==st[ft]){Te=ut[ft],Ge=st[ft];break}return Te<Ge?-1:Ge<Te?1:0};function E(oe,ee,J,Q,ve){if(oe.length===0)return-1;if(typeof J=="string"?(Q=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),J=+J,isNaN(J)&&(J=ve?0:oe.length-1),J<0&&(J=oe.length+J),J>=oe.length){if(ve)return-1;J=oe.length-1}else if(J<0)if(ve)J=0;else return-1;if(typeof ee=="string"&&(ee=m.from(ee,Q)),m.isBuffer(ee))return ee.length===0?-1:_(oe,ee,J,Q,ve);if(typeof ee=="number")return ee=ee&255,m.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(oe,ee,J):Uint8Array.prototype.lastIndexOf.call(oe,ee,J):_(oe,[ee],J,Q,ve);throw new TypeError("val must be string, number or Buffer")}function _(oe,ee,J,Q,ve){var _e=1,Te=oe.length,Ge=ee.length;if(Q!==void 0&&(Q=String(Q).toLowerCase(),Q==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(oe.length<2||ee.length<2)return-1;_e=2,Te/=2,Ge/=2,J/=2}function qe(Ve,ke){return _e===1?Ve[ke]:Ve.readUInt16BE(ke*_e)}var ut;if(ve){var st=-1;for(ut=J;ut<Te;ut++)if(qe(oe,ut)===qe(ee,st===-1?0:ut-st)){if(st===-1&&(st=ut),ut-st+1===Ge)return st*_e}else st!==-1&&(ut-=ut-st),st=-1}else for(J+Ge>Te&&(J=Te-Ge),ut=J;ut>=0;ut--){for(var ft=!0,gt=0;gt<Ge;gt++)if(qe(oe,ut+gt)!==qe(ee,gt)){ft=!1;break}if(ft)return ut}return-1}m.prototype.includes=function(ee,J,Q){return this.indexOf(ee,J,Q)!==-1},m.prototype.indexOf=function(ee,J,Q){return E(this,ee,J,Q,!0)},m.prototype.lastIndexOf=function(ee,J,Q){return E(this,ee,J,Q,!1)};function P(oe,ee,J,Q){J=Number(J)||0;var ve=oe.length-J;Q?(Q=Number(Q),Q>ve&&(Q=ve)):Q=ve;var _e=ee.length;if(_e%2!==0)throw new TypeError("Invalid hex string");Q>_e/2&&(Q=_e/2);for(var Te=0;Te<Q;++Te){var Ge=parseInt(ee.substr(Te*2,2),16);if(isNaN(Ge))return Te;oe[J+Te]=Ge}return Te}function R(oe,ee,J,Q){return ae(le(ee,oe.length-J),oe,J,Q)}function x(oe,ee,J,Q){return ae($(ee),oe,J,Q)}function w(oe,ee,J,Q){return x(oe,ee,J,Q)}function v(oe,ee,J,Q){return ae(re(ee),oe,J,Q)}function O(oe,ee,J,Q){return ae(me(ee,oe.length-J),oe,J,Q)}m.prototype.write=function(ee,J,Q,ve){if(J===void 0)ve="utf8",Q=this.length,J=0;else if(Q===void 0&&typeof J=="string")ve=J,Q=this.length,J=0;else if(isFinite(J))J=J|0,isFinite(Q)?(Q=Q|0,ve===void 0&&(ve="utf8")):(ve=Q,Q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var _e=this.length-J;if((Q===void 0||Q>_e)&&(Q=_e),ee.length>0&&(Q<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Te=!1;;)switch(ve){case"hex":return P(this,ee,J,Q);case"utf8":case"utf-8":return R(this,ee,J,Q);case"ascii":return x(this,ee,J,Q);case"latin1":case"binary":return w(this,ee,J,Q);case"base64":return v(this,ee,J,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,ee,J,Q);default:if(Te)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Te=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(oe,ee,J){return ee===0&&J===oe.length?T.fromByteArray(oe):T.fromByteArray(oe.slice(ee,J))}function I(oe,ee,J){J=Math.min(oe.length,J);for(var Q=[],ve=ee;ve<J;){var _e=oe[ve],Te=null,Ge=_e>239?4:_e>223?3:_e>191?2:1;if(ve+Ge<=J){var qe,ut,st,ft;switch(Ge){case 1:_e<128&&(Te=_e);break;case 2:qe=oe[ve+1],(qe&192)===128&&(ft=(_e&31)<<6|qe&63,ft>127&&(Te=ft));break;case 3:qe=oe[ve+1],ut=oe[ve+2],(qe&192)===128&&(ut&192)===128&&(ft=(_e&15)<<12|(qe&63)<<6|ut&63,ft>2047&&(ft<55296||ft>57343)&&(Te=ft));break;case 4:qe=oe[ve+1],ut=oe[ve+2],st=oe[ve+3],(qe&192)===128&&(ut&192)===128&&(st&192)===128&&(ft=(_e&15)<<18|(qe&63)<<12|(ut&63)<<6|st&63,ft>65535&&ft<1114112&&(Te=ft))}}Te===null?(Te=65533,Ge=1):Te>65535&&(Te-=65536,Q.push(Te>>>10&1023|55296),Te=56320|Te&1023),Q.push(Te),ve+=Ge}return V(Q)}var N=4096;function V(oe){var ee=oe.length;if(ee<=N)return String.fromCharCode.apply(String,oe);for(var J="",Q=0;Q<ee;)J+=String.fromCharCode.apply(String,oe.slice(Q,Q+=N));return J}function H(oe,ee,J){var Q="";J=Math.min(oe.length,J);for(var ve=ee;ve<J;++ve)Q+=String.fromCharCode(oe[ve]&127);return Q}function D(oe,ee,J){var Q="";J=Math.min(oe.length,J);for(var ve=ee;ve<J;++ve)Q+=String.fromCharCode(oe[ve]);return Q}function W(oe,ee,J){var Q=oe.length;(!ee||ee<0)&&(ee=0),(!J||J<0||J>Q)&&(J=Q);for(var ve="",_e=ee;_e<J;++_e)ve+=ue(oe[_e]);return ve}function F(oe,ee,J){for(var Q=oe.slice(ee,J),ve="",_e=0;_e<Q.length;_e+=2)ve+=String.fromCharCode(Q[_e]+Q[_e+1]*256);return ve}m.prototype.slice=function(ee,J){var Q=this.length;ee=~~ee,J=J===void 0?Q:~~J,ee<0?(ee+=Q,ee<0&&(ee=0)):ee>Q&&(ee=Q),J<0?(J+=Q,J<0&&(J=0)):J>Q&&(J=Q),J<ee&&(J=ee);var ve;if(m.TYPED_ARRAY_SUPPORT)ve=this.subarray(ee,J),ve.__proto__=m.prototype;else{var _e=J-ee;ve=new m(_e,void 0);for(var Te=0;Te<_e;++Te)ve[Te]=this[Te+ee]}return ve};function L(oe,ee,J){if(oe%1!==0||oe<0)throw new RangeError("offset is not uint");if(oe+ee>J)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUIntLE=function(ee,J,Q){ee=ee|0,J=J|0,Q||L(ee,J,this.length);for(var ve=this[ee],_e=1,Te=0;++Te<J&&(_e*=256);)ve+=this[ee+Te]*_e;return ve},m.prototype.readUIntBE=function(ee,J,Q){ee=ee|0,J=J|0,Q||L(ee,J,this.length);for(var ve=this[ee+--J],_e=1;J>0&&(_e*=256);)ve+=this[ee+--J]*_e;return ve},m.prototype.readUInt8=function(ee,J){return J||L(ee,1,this.length),this[ee]},m.prototype.readUInt16LE=function(ee,J){return J||L(ee,2,this.length),this[ee]|this[ee+1]<<8},m.prototype.readUInt16BE=function(ee,J){return J||L(ee,2,this.length),this[ee]<<8|this[ee+1]},m.prototype.readUInt32LE=function(ee,J){return J||L(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},m.prototype.readUInt32BE=function(ee,J){return J||L(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},m.prototype.readIntLE=function(ee,J,Q){ee=ee|0,J=J|0,Q||L(ee,J,this.length);for(var ve=this[ee],_e=1,Te=0;++Te<J&&(_e*=256);)ve+=this[ee+Te]*_e;return _e*=128,ve>=_e&&(ve-=Math.pow(2,8*J)),ve},m.prototype.readIntBE=function(ee,J,Q){ee=ee|0,J=J|0,Q||L(ee,J,this.length);for(var ve=J,_e=1,Te=this[ee+--ve];ve>0&&(_e*=256);)Te+=this[ee+--ve]*_e;return _e*=128,Te>=_e&&(Te-=Math.pow(2,8*J)),Te},m.prototype.readInt8=function(ee,J){return J||L(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},m.prototype.readInt16LE=function(ee,J){J||L(ee,2,this.length);var Q=this[ee]|this[ee+1]<<8;return Q&32768?Q|4294901760:Q},m.prototype.readInt16BE=function(ee,J){J||L(ee,2,this.length);var Q=this[ee+1]|this[ee]<<8;return Q&32768?Q|4294901760:Q},m.prototype.readInt32LE=function(ee,J){return J||L(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},m.prototype.readInt32BE=function(ee,J){return J||L(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},m.prototype.readFloatLE=function(ee,J){return J||L(ee,4,this.length),b.read(this,ee,!0,23,4)},m.prototype.readFloatBE=function(ee,J){return J||L(ee,4,this.length),b.read(this,ee,!1,23,4)},m.prototype.readDoubleLE=function(ee,J){return J||L(ee,8,this.length),b.read(this,ee,!0,52,8)},m.prototype.readDoubleBE=function(ee,J){return J||L(ee,8,this.length),b.read(this,ee,!1,52,8)};function K(oe,ee,J,Q,ve,_e){if(!m.isBuffer(oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>ve||ee<_e)throw new RangeError('"value" argument is out of bounds');if(J+Q>oe.length)throw new RangeError("Index out of range")}m.prototype.writeUIntLE=function(ee,J,Q,ve){if(ee=+ee,J=J|0,Q=Q|0,!ve){var _e=Math.pow(2,8*Q)-1;K(this,ee,J,Q,_e,0)}var Te=1,Ge=0;for(this[J]=ee&255;++Ge<Q&&(Te*=256);)this[J+Ge]=ee/Te&255;return J+Q},m.prototype.writeUIntBE=function(ee,J,Q,ve){if(ee=+ee,J=J|0,Q=Q|0,!ve){var _e=Math.pow(2,8*Q)-1;K(this,ee,J,Q,_e,0)}var Te=Q-1,Ge=1;for(this[J+Te]=ee&255;--Te>=0&&(Ge*=256);)this[J+Te]=ee/Ge&255;return J+Q},m.prototype.writeUInt8=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,1,255,0),m.TYPED_ARRAY_SUPPORT||(ee=Math.floor(ee)),this[J]=ee&255,J+1};function te(oe,ee,J,Q){ee<0&&(ee=65535+ee+1);for(var ve=0,_e=Math.min(oe.length-J,2);ve<_e;++ve)oe[J+ve]=(ee&255<<8*(Q?ve:1-ve))>>>(Q?ve:1-ve)*8}m.prototype.writeUInt16LE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[J]=ee&255,this[J+1]=ee>>>8):te(this,ee,J,!0),J+2},m.prototype.writeUInt16BE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[J]=ee>>>8,this[J+1]=ee&255):te(this,ee,J,!1),J+2};function fe(oe,ee,J,Q){ee<0&&(ee=4294967295+ee+1);for(var ve=0,_e=Math.min(oe.length-J,4);ve<_e;++ve)oe[J+ve]=ee>>>(Q?ve:3-ve)*8&255}m.prototype.writeUInt32LE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[J+3]=ee>>>24,this[J+2]=ee>>>16,this[J+1]=ee>>>8,this[J]=ee&255):fe(this,ee,J,!0),J+4},m.prototype.writeUInt32BE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[J]=ee>>>24,this[J+1]=ee>>>16,this[J+2]=ee>>>8,this[J+3]=ee&255):fe(this,ee,J,!1),J+4},m.prototype.writeIntLE=function(ee,J,Q,ve){if(ee=+ee,J=J|0,!ve){var _e=Math.pow(2,8*Q-1);K(this,ee,J,Q,_e-1,-_e)}var Te=0,Ge=1,qe=0;for(this[J]=ee&255;++Te<Q&&(Ge*=256);)ee<0&&qe===0&&this[J+Te-1]!==0&&(qe=1),this[J+Te]=(ee/Ge>>0)-qe&255;return J+Q},m.prototype.writeIntBE=function(ee,J,Q,ve){if(ee=+ee,J=J|0,!ve){var _e=Math.pow(2,8*Q-1);K(this,ee,J,Q,_e-1,-_e)}var Te=Q-1,Ge=1,qe=0;for(this[J+Te]=ee&255;--Te>=0&&(Ge*=256);)ee<0&&qe===0&&this[J+Te+1]!==0&&(qe=1),this[J+Te]=(ee/Ge>>0)-qe&255;return J+Q},m.prototype.writeInt8=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,1,127,-128),m.TYPED_ARRAY_SUPPORT||(ee=Math.floor(ee)),ee<0&&(ee=255+ee+1),this[J]=ee&255,J+1},m.prototype.writeInt16LE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[J]=ee&255,this[J+1]=ee>>>8):te(this,ee,J,!0),J+2},m.prototype.writeInt16BE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[J]=ee>>>8,this[J+1]=ee&255):te(this,ee,J,!1),J+2},m.prototype.writeInt32LE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,4,2147483647,-2147483648),m.TYPED_ARRAY_SUPPORT?(this[J]=ee&255,this[J+1]=ee>>>8,this[J+2]=ee>>>16,this[J+3]=ee>>>24):fe(this,ee,J,!0),J+4},m.prototype.writeInt32BE=function(ee,J,Q){return ee=+ee,J=J|0,Q||K(this,ee,J,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),m.TYPED_ARRAY_SUPPORT?(this[J]=ee>>>24,this[J+1]=ee>>>16,this[J+2]=ee>>>8,this[J+3]=ee&255):fe(this,ee,J,!1),J+4};function de(oe,ee,J,Q,ve,_e){if(J+Q>oe.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function Ce(oe,ee,J,Q,ve){return ve||de(oe,ee,J,4,34028234663852886e22,-34028234663852886e22),b.write(oe,ee,J,Q,23,4),J+4}m.prototype.writeFloatLE=function(ee,J,Q){return Ce(this,ee,J,!0,Q)},m.prototype.writeFloatBE=function(ee,J,Q){return Ce(this,ee,J,!1,Q)};function Oe(oe,ee,J,Q,ve){return ve||de(oe,ee,J,8,17976931348623157e292,-17976931348623157e292),b.write(oe,ee,J,Q,52,8),J+8}m.prototype.writeDoubleLE=function(ee,J,Q){return Oe(this,ee,J,!0,Q)},m.prototype.writeDoubleBE=function(ee,J,Q){return Oe(this,ee,J,!1,Q)},m.prototype.copy=function(ee,J,Q,ve){if(Q||(Q=0),!ve&&ve!==0&&(ve=this.length),J>=ee.length&&(J=ee.length),J||(J=0),ve>0&&ve<Q&&(ve=Q),ve===Q)return 0;if(ee.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(Q<0||Q>=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),ee.length-J<ve-Q&&(ve=ee.length-J+Q);var _e=ve-Q,Te;if(this===ee&&Q<J&&J<ve)for(Te=_e-1;Te>=0;--Te)ee[Te+J]=this[Te+Q];else if(_e<1e3||!m.TYPED_ARRAY_SUPPORT)for(Te=0;Te<_e;++Te)ee[Te+J]=this[Te+Q];else Uint8Array.prototype.set.call(ee,this.subarray(Q,Q+_e),J);return _e},m.prototype.fill=function(ee,J,Q,ve){if(typeof ee=="string"){if(typeof J=="string"?(ve=J,J=0,Q=this.length):typeof Q=="string"&&(ve=Q,Q=this.length),ee.length===1){var _e=ee.charCodeAt(0);_e<256&&(ee=_e)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!m.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof ee=="number"&&(ee=ee&255);if(J<0||this.length<J||this.length<Q)throw new RangeError("Out of range index");if(Q<=J)return this;J=J>>>0,Q=Q===void 0?this.length:Q>>>0,ee||(ee=0);var Te;if(typeof ee=="number")for(Te=J;Te<Q;++Te)this[Te]=ee;else{var Ge=m.isBuffer(ee)?ee:le(new m(ee,ve).toString()),qe=Ge.length;for(Te=0;Te<Q-J;++Te)this[Te+J]=Ge[Te%qe]}return this};var ce=/[^+\/0-9A-Za-z-_]/g;function Ee(oe){if(oe=ye(oe).replace(ce,""),oe.length<2)return"";for(;oe.length%4!==0;)oe=oe+"=";return oe}function ye(oe){return oe.trim?oe.trim():oe.replace(/^\s+|\s+$/g,"")}function ue(oe){return oe<16?"0"+oe.toString(16):oe.toString(16)}function le(oe,ee){ee=ee||Infinity;for(var J,Q=oe.length,ve=null,_e=[],Te=0;Te<Q;++Te){if(J=oe.charCodeAt(Te),J>55295&&J<57344){if(!ve){if(J>56319){(ee-=3)>-1&&_e.push(239,191,189);continue}else if(Te+1===Q){(ee-=3)>-1&&_e.push(239,191,189);continue}ve=J;continue}if(J<56320){(ee-=3)>-1&&_e.push(239,191,189),ve=J;continue}J=(ve-55296<<10|J-56320)+65536}else ve&&((ee-=3)>-1&&_e.push(239,191,189));if(ve=null,J<128){if((ee-=1)<0)break;_e.push(J)}else if(J<2048){if((ee-=2)<0)break;_e.push(J>>6|192,J&63|128)}else if(J<65536){if((ee-=3)<0)break;_e.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if((ee-=4)<0)break;_e.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw new Error("Invalid code point")}return _e}function $(oe){for(var ee=[],J=0;J<oe.length;++J)ee.push(oe.charCodeAt(J)&255);return ee}function me(oe,ee){for(var J,Q,ve,_e=[],Te=0;Te<oe.length&&!((ee-=2)<0);++Te)J=oe.charCodeAt(Te),Q=J>>8,ve=J%256,_e.push(ve),_e.push(Q);return _e}function re(oe){return T.toByteArray(Ee(oe))}function ae(oe,ee,J,Q){for(var ve=0;ve<Q&&!(ve+J>=ee.length||ve>=oe.length);++ve)ee[ve+J]=oe[ve];return ve}function Se(oe){return oe!==oe}}).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=m;function m(b,y){if(!(this instanceof m))return new m(b,y);this.src=b,this._withAccess=y}m.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},m.prototype.pick=function(b){return Array.isArray(b)||(b=M.call(arguments)),b.length&&(this.keys=b),this},m.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(A=y[C],b[A]!==void 0)continue;b[A]=this.src[A]}return b}for(var C=0;C<y.length;C++){var A=y[C];if(!T(b,A))continue;var g=this.src.__lookupGetter__(A),e=this.src.__lookupSetter__(A);g&&b.__defineGetter__(A,g),e&&b.__defineSetter__(A,e),!g&&!e&&(b[A]=this.src[A])}return b},m.prototype.toCover=function(b){for(var y=this.keys||Object.keys(this.src),C=0;C<y.length;C++){var A=y[C];delete b[A];var g=this.src.__lookupGetter__(A),e=this.src.__lookupSetter__(A);g&&b.__defineGetter__(A,g),e&&b.__defineSetter__(A,e),!g&&!e&&(b[A]=this.src[A])}},m.prototype.override=m.prototype.toCover,m.prototype.and=function(b){var y={};return this.to(y),this.src=b,this.to(y),this.src=y,this};function T(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"),m=M.JSON||(M.JSON={stringify:JSON.stringify});z.exports=function(b){return m.stringify.apply(m,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(T,b){return M.create(T,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(T,b,y){return M.defineProperty(T,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(T){return M.getOwnPropertyNames(T)}},{"../../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,m,T,b){if(!(M instanceof m)||b!==void 0&&b in M)throw TypeError(T+": incorrect invocation!");return M}},{}],95:[function(k,z,o){var M=k("./_is-object");z.exports=function(m){if(!M(m))throw TypeError(m+" is not an object!");return m}},{"./_is-object":119}],96:[function(k,z,o){var M=k("./_to-iobject"),m=k("./_to-length"),T=k("./_to-absolute-index");z.exports=function(b){return function(y,C,A){var g=M(y),e=m(g.length),f=T(A,e),r;if(b&&C!=C){for(;e>f;)if(r=g[f++],r!=r)return!0}else for(;e>f;f++)if((b||f in g)&&g[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"),m=k("./_wks")("toStringTag"),T=M(function(){return arguments}())=="Arguments",b=function(y,C){try{return y[C]}catch(A){}};z.exports=function(y){var C,A,g;return y===void 0?"Undefined":y===null?"Null":typeof(A=b(C=Object(y),m))=="string"?A:T?M(C):(g=M(C))=="Object"&&typeof C.callee=="function"?"Arguments":g}},{"./_cof":98,"./_wks":166}],98:[function(k,z,o){var M={}.toString;z.exports=function(m){return M.call(m).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"),m=k("./_property-desc");z.exports=function(T,b,y){b in T?M.f(T,b,m(0,y)):T[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,z,o){var M=k("./_a-function");z.exports=function(m,T,b){if(M(m),T===void 0)return m;switch(b){case 1:return function(y){return m.call(T,y)};case 2:return function(y,C){return m.call(T,y,C)};case 3:return function(y,C,A){return m.call(T,y,C,A)}}return function(){return m.apply(T,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"),m=k("./_global").document,T=M(m)&&M(m.createElement);z.exports=function(b){return T?m.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"),m=k("./_object-gops"),T=k("./_object-pie");z.exports=function(b){var y=M(b),C=m.f;if(C)for(var A=C(b),g=T.f,e=0,f;A.length>e;)g.call(b,f=A[e++])&&y.push(f);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,z,o){var M=k("./_global"),m=k("./_core"),T=k("./_ctx"),b=k("./_hide"),y=k("./_has"),C="prototype",A=function(g,e,f){var r=g&A.F,l=g&A.G,n=g&A.S,i=g&A.P,a=g&A.B,c=g&A.W,h=l?m:m[e]||(m[e]={}),d=h[C],s=l?M:n?M[e]:(M[e]||{})[C],u,S,E;l&&(f=e);for(u in f){if(S=!r&&s&&s[u]!==void 0,S&&y(h,u))continue;E=S?s[u]:f[u],h[u]=l&&typeof s[u]!="function"?f[u]:a&&S?T(E,M):c&&s[u]==E?function(_){var P=function(R,x,w){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,w)}return _.apply(this,arguments)};return P[C]=_[C],P}(E):i&&typeof E=="function"?T(Function.call,E):E,i&&((h.virtual||(h.virtual={}))[u]=E,g&A.R&&d&&!d[u]&&b(d,u,E))}};A.F=1,A.G=2,A.S=4,A.P=8,A.B=16,A.W=32,A.U=64,A.R=128,z.exports=A},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,z,o){z.exports=function(M){try{return!!M()}catch(m){return!0}}},{}],109:[function(k,z,o){var M=k("./_ctx"),m=k("./_iter-call"),T=k("./_is-array-iter"),b=k("./_an-object"),y=k("./_to-length"),C=k("./core.get-iterator-method"),A={},g={},o=z.exports=function(e,f,r,l,n){var i=n?function(){return e}:C(e),a=M(r,l,f?2:1),c=0,h,d,s,u;if(typeof i!="function")throw TypeError(e+" is not iterable!");if(T(i)){for(h=y(e.length);h>c;c++)if(u=f?a(b(d=e[c])[0],d[1]):a(e[c]),u===A||u===g)return u}else for(s=i.call(e);!(d=s.next()).done;)if(u=m(s,a,d.value,f),u===A||u===g)return u};o.BREAK=A,o.RETURN=g},{"./_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(m,T){return M.call(m,T)}},{}],112:[function(k,z,o){var M=k("./_object-dp"),m=k("./_property-desc");z.exports=k("./_descriptors")?function(T,b,y){return M.f(T,b,m(1,y))}:function(T,b,y){return T[b]=y,T}},{"./_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,m,T){var b=T===void 0;switch(m.length){case 0:return b?M():M.call(T);case 1:return b?M(m[0]):M.call(T,m[0]);case 2:return b?M(m[0],m[1]):M.call(T,m[0],m[1]);case 3:return b?M(m[0],m[1],m[2]):M.call(T,m[0],m[1],m[2]);case 4:return b?M(m[0],m[1],m[2],m[3]):M.call(T,m[0],m[1],m[2],m[3])}return M.apply(T,m)}},{}],116:[function(k,z,o){var M=k("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(m){return M(m)=="String"?m.split(""):Object(m)}},{"./_cof":98}],117:[function(k,z,o){var M=k("./_iterators"),m=k("./_wks")("iterator"),T=Array.prototype;z.exports=function(b){return b!==void 0&&(M.Array===b||T[m]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(k,z,o){var M=k("./_cof");z.exports=Array.isArray||function(T){return M(T)=="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(m,T,b,y){try{return y?T(M(b)[0],b[1]):T(b)}catch(A){var C=m.return;throw C!==void 0&&M(C.call(m)),A}}},{"./_an-object":95}],121:[function(k,z,o){"use strict";var M=k("./_object-create"),m=k("./_property-desc"),T=k("./_set-to-string-tag"),b={};k("./_hide")(b,k("./_wks")("iterator"),function(){return this}),z.exports=function(y,C,A){y.prototype=M(b,{next:m(1,A)}),T(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"),m=k("./_export"),T=k("./_redefine"),b=k("./_hide"),y=k("./_iterators"),C=k("./_iter-create"),A=k("./_set-to-string-tag"),g=k("./_object-gpo"),e=k("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),r="@@iterator",l="keys",n="values",i=function(){return this};z.exports=function(a,c,h,d,s,u,S){C(h,c,d);var E=function(H){if(!f&&H in x)return x[H];switch(H){case l: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=a.prototype,w=x[e]||x[r]||s&&x[s],v=w||E(s),O=s?P?E("entries"):v:void 0,U=c=="Array"&&x.entries||w,I,N,V;if(U&&(V=g(U.call(new a)),V!==Object.prototype&&V.next&&(A(V,_,!0),!M&&typeof V[e]!="function"&&b(V,e,i))),P&&w&&w.name!==n&&(R=!0,v=function(){return w.call(this)}),(!M||S)&&(f||R||!x[e])&&b(x,e,v),y[c]=v,y[_]=i,s)if(I={values:P?v:E(n),keys:u?v:E(l),entries:O},S)for(N in I)N in x||T(x,N,I[N]);else m(m.P+m.F*(f||R),c,I);return I}},{"./_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"),m=!1;try{var T=[7][M]();T.return=function(){m=!0},Array.from(T,function(){throw 2})}catch(b){}z.exports=function(b,y){if(!y&&!m)return!1;var C=!1;try{var A=[7],g=A[M]();g.next=function(){return{done:C=!0}},A[M]=function(){return g},b(A)}catch(e){}return C}},{"./_wks":166}],124:[function(k,z,o){z.exports=function(M,m){return{value:m,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"),m=k("./_is-object"),T=k("./_has"),b=k("./_object-dp").f,y=0,C=Object.isExtensible||function(){return!0},A=!k("./_fails")(function(){return C(Object.preventExtensions({}))}),g=function(n){b(n,M,{value:{i:"O"+ ++y,w:{}}})},e=function(n,i){if(!m(n))return typeof n=="symbol"?n:(typeof n=="string"?"S":"P")+n;if(!T(n,M)){if(!C(n))return"F";if(!i)return"E";g(n)}return n[M].i},f=function(n,i){if(!T(n,M)){if(!C(n))return!0;if(!i)return!1;g(n)}return n[M].w},r=function(n){return A&&l.NEED&&C(n)&&!T(n,M)&&g(n),n},l=z.exports={KEY:M,NEED:!1,fastKey:e,getWeak:f,onFreeze:r}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,z,o){var M=k("./_global"),m=k("./_task").set,T=M.MutationObserver||M.WebKitMutationObserver,b=M.process,y=M.Promise,C=k("./_cof")(b)=="process";z.exports=function(){var A,g,e,f=function(){var i,a;for(C&&(i=b.domain)&&i.exit();A;){a=A.fn,A=A.next;try{a()}catch(c){throw A?e():g=void 0,c}}g=void 0,i&&i.enter()};if(C)e=function(){b.nextTick(f)};else if(T&&!(M.navigator&&M.navigator.standalone)){var r=!0,l=document.createTextNode("");new T(f).observe(l,{characterData:!0}),e=function(){l.data=r=!r}}else if(y&&y.resolve){var n=y.resolve(void 0);e=function(){n.then(f)}}else e=function(){m.call(M,f)};return function(i){var a={fn:i,next:void 0};g&&(g.next=a),A||(A=a,e()),g=a}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,z,o){"use strict";var M=k("./_a-function");function m(T){var b,y;this.promise=new T(function(C,A){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=C,y=A}),this.resolve=M(b),this.reject=M(y)}z.exports.f=function(T){return new m(T)}},{"./_a-function":92}],130:[function(k,z,o){"use strict";var M=k("./_descriptors"),m=k("./_object-keys"),T=k("./_object-gops"),b=k("./_object-pie"),y=k("./_to-object"),C=k("./_iobject"),A=Object.assign;z.exports=!A||k("./_fails")(function(){var g={},e={},f=Symbol(),r="abcdefghijklmnopqrst";return g[f]=7,r.split("").forEach(function(l){e[l]=l}),A({},g)[f]!=7||Object.keys(A({},e)).join("")!=r})?function(e,f){for(var r=y(e),l=arguments.length,n=1,i=T.f,a=b.f;l>n;)for(var c=C(arguments[n++]),h=i?m(c).concat(i(c)):m(c),d=h.length,s=0,u;d>s;)u=h[s++],(!M||a.call(c,u))&&(r[u]=c[u]);return r}:A},{"./_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"),m=k("./_object-dps"),T=k("./_enum-bug-keys"),b=k("./_shared-key")("IE_PROTO"),y=function(){},C="prototype",A=function(){var g=k("./_dom-create")("iframe"),e=T.length,f="<",r=">",l;for(g.style.display="none",k("./_html").appendChild(g),g.src="javascript:",l=g.contentWindow.document,l.open(),l.write(f+"script"+r+"document.F=Object"+f+"/script"+r),l.close(),A=l.F;e--;)delete A[C][T[e]];return A()};z.exports=Object.create||function(e,f){var r;return e!==null?(y[C]=M(e),r=new y,y[C]=null,r[b]=e):r=A(),f===void 0?r:m(r,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"),m=k("./_ie8-dom-define"),T=k("./_to-primitive"),b=Object.defineProperty;o.f=k("./_descriptors")?Object.defineProperty:function(C,A,g){if(M(C),A=T(A,!0),M(g),m)try{return b(C,A,g)}catch(e){}if("get"in g||"set"in g)throw TypeError("Accessors not supported!");return"value"in g&&(C[A]=g.value),C}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,z,o){var M=k("./_object-dp"),m=k("./_an-object"),T=k("./_object-keys");z.exports=k("./_descriptors")?Object.defineProperties:function(y,C){m(y);for(var A=T(C),g=A.length,e=0,f;g>e;)M.f(y,f=A[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"),m=k("./_property-desc"),T=k("./_to-iobject"),b=k("./_to-primitive"),y=k("./_has"),C=k("./_ie8-dom-define"),A=Object.getOwnPropertyDescriptor;o.f=k("./_descriptors")?A:function(e,f){if(e=T(e),f=b(f,!0),C)try{return A(e,f)}catch(r){}if(y(e,f))return m(!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"),m=k("./_object-gopn").f,T={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(C){try{return m(C)}catch(A){return b.slice()}};z.exports.f=function(A){return b&&T.call(A)=="[object Window]"?y(A):m(M(A))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,z,o){var M=k("./_object-keys-internal"),m=k("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return M(b,m)}},{"./_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"),m=k("./_to-object"),T=k("./_shared-key")("IE_PROTO"),b=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=m(y),M(y,T)?y[T]: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"),m=k("./_to-iobject"),T=k("./_array-includes")(!1),b=k("./_shared-key")("IE_PROTO");z.exports=function(y,C){var A=m(y),g=0,e=[],f;for(f in A)f!=b&&(M(A,f)&&e.push(f));for(;C.length>g;)M(A,f=C[g++])&&(~T(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"),m=k("./_enum-bug-keys");z.exports=Object.keys||function(b){return M(b,m)}},{"./_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"),m=k("./_core"),T=k("./_fails");z.exports=function(b,y){var C=(m.Object||{})[b]||Object[b],A={};A[b]=y(C),M(M.S+M.F*T(function(){C(1)}),"Object",A)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,z,o){var M=k("./_descriptors"),m=k("./_object-keys"),T=k("./_to-iobject"),b=k("./_object-pie").f;z.exports=function(y){return function(C){for(var A=T(C),g=m(A),e=g.length,f=0,r=[],l;e>f;)l=g[f++],(!M||b.call(A,l))&&r.push(y?[l,A[l]]:A[l]);return r}}},{"./_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(m){return{e:!0,v:m}}}},{}],145:[function(k,z,o){var M=k("./_an-object"),m=k("./_is-object"),T=k("./_new-promise-capability");z.exports=function(b,y){if(M(b),m(y)&&y.constructor===b)return y;var C=T.f(b),A=C.resolve;return A(y),C.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,z,o){z.exports=function(M,m){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:m}}},{}],147:[function(k,z,o){var M=k("./_hide");z.exports=function(m,T,b){for(var y in T)b&&m[y]?m[y]=T[y]:M(m,y,T[y]);return m}},{"./_hide":112}],148:[function(k,z,o){z.exports=k("./_hide")},{"./_hide":112}],149:[function(k,z,o){"use strict";var M=k("./_global"),m=k("./_core"),T=k("./_object-dp"),b=k("./_descriptors"),y=k("./_wks")("species");z.exports=function(C){var A=typeof m[C]=="function"?m[C]:M[C];b&&A&&!A[y]&&T.f(A,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,m=k("./_has"),T=k("./_wks")("toStringTag");z.exports=function(b,y,C){b&&!m(b=C?b:b.prototype,T)&&M(b,T,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,z,o){var M=k("./_shared")("keys"),m=k("./_uid");z.exports=function(T){return M[T]||(M[T]=m(T))}},{"./_shared":152,"./_uid":162}],152:[function(k,z,o){var M=k("./_core"),m=k("./_global"),T="__core-js_shared__",b=m[T]||(m[T]={});(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"),m=k("./_a-function"),T=k("./_wks")("species");z.exports=function(b,y){var C=M(b).constructor,A;return C===void 0||(A=M(C)[T])==null?y:m(A)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,z,o){var M=k("./_to-integer"),m=k("./_defined");z.exports=function(T){return function(b,y){var C=String(m(b)),A=M(y),g=C.length,e,f;return A<0||A>=g?T?"":void 0:(e=C.charCodeAt(A),e<55296||e>56319||A+1===g||(f=C.charCodeAt(A+1))<56320||f>57343?T?C.charAt(A):e:T?C.slice(A,A+2):(e-55296<<10)+(f-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,z,o){var M=k("./_ctx"),m=k("./_invoke"),T=k("./_html"),b=k("./_dom-create"),y=k("./_global"),C=y.process,A=y.setImmediate,g=y.clearImmediate,e=y.MessageChannel,f=y.Dispatch,r=0,l={},n="onreadystatechange",i,a,c,h=function(){var s=+this;if(l.hasOwnProperty(s)){var u=l[s];delete l[s],u()}},d=function(s){h.call(s.data)};(!A||!g)&&(A=function(u){for(var S=[],E=1;arguments.length>E;)S.push(arguments[E++]);return l[++r]=function(){m(typeof u=="function"?u:Function(u),S)},i(r),r},g=function(u){delete l[u]},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?(a=new e,c=a.port2,a.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){T.appendChild(b("script"))[n]=function(){T.removeChild(this),h.call(s)}}:i=function(s){setTimeout(M(h,s,1),0)}),z.exports={set:A,clear:g}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,z,o){var M=k("./_to-integer"),m=Math.max,T=Math.min;z.exports=function(b,y){return b=M(b),b<0?m(b+y,0):T(b,y)}},{"./_to-integer":157}],157:[function(k,z,o){var M=Math.ceil,m=Math.floor;z.exports=function(T){return isNaN(T=+T)?0:(T>0?m:M)(T)}},{}],158:[function(k,z,o){var M=k("./_iobject"),m=k("./_defined");z.exports=function(T){return M(m(T))}},{"./_defined":102,"./_iobject":116}],159:[function(k,z,o){var M=k("./_to-integer"),m=Math.min;z.exports=function(T){return T>0?m(M(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,z,o){var M=k("./_defined");z.exports=function(m){return Object(M(m))}},{"./_defined":102}],161:[function(k,z,o){var M=k("./_is-object");z.exports=function(m,T){if(!M(m))return m;var b,y;if(T&&typeof(b=m.toString)=="function"&&!M(y=b.call(m)))return y;if(typeof(b=m.valueOf)=="function"&&!M(y=b.call(m)))return y;if(!T&&typeof(b=m.toString)=="function"&&!M(y=b.call(m)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,z,o){var M=0,m=Math.random();z.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++M+m).toString(36))}},{}],163:[function(k,z,o){var M=k("./_global"),m=M.navigator;z.exports=m&&m.userAgent||""},{"./_global":110}],164:[function(k,z,o){var M=k("./_global"),m=k("./_core"),T=k("./_library"),b=k("./_wks-ext"),y=k("./_object-dp").f;z.exports=function(C){var A=m.Symbol||(m.Symbol=T?{}:M.Symbol||{});C.charAt(0)!="_"&&!(C in A)&&y(A,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"),m=k("./_uid"),T=k("./_global").Symbol,b=typeof T=="function",y=z.exports=function(C){return M[C]||(M[C]=b&&T[C]||(b?T:m)("Symbol."+C))};y.store=M},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,z,o){var M=k("./_classof"),m=k("./_wks")("iterator"),T=k("./_iterators");z.exports=k("./_core").getIteratorMethod=function(b){if(b!=null)return b[m]||b["@@iterator"]||T[M(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,z,o){"use strict";var M=k("./_ctx"),m=k("./_export"),T=k("./_to-object"),b=k("./_iter-call"),y=k("./_is-array-iter"),C=k("./_to-length"),A=k("./_create-property"),g=k("./core.get-iterator-method");m(m.S+m.F*!k("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(f){var r=T(f),l=typeof this=="function"?this:Array,n=arguments.length,i=n>1?arguments[1]:void 0,a=i!==void 0,c=0,h=g(r),d,s,u,S;if(a&&(i=M(i,n>2?arguments[2]:void 0,2)),h!=null&&!(l==Array&&y(h)))for(S=h.call(r),s=new l;!(u=S.next()).done;c++)A(s,c,a?b(S,i,[u.value,c],!0):u.value);else for(d=C(r.length),s=new l(d);d>c;c++)A(s,c,a?i(r[c],c):r[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"),m=k("./_iter-step"),T=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,A=this._i++;return!y||A>=y.length?(this._t=void 0,m(1)):C=="keys"?m(0,A):C=="values"?m(0,y[A]):m(0,[A,y[A]])},"values"),T.Arguments=T.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"),m=k("./_object-gpo"),T=k("./_wks")("hasInstance"),b=Function.prototype;T in b||k("./_object-dp").f(b,T,{value:function(y){if(typeof this!="function"||!M(y))return!1;if(!M(this.prototype))return y instanceof this;for(;y=m(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"),m=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(b){return m(M(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,z,o){var M=k("./_to-object"),m=k("./_object-keys");k("./_object-sap")("keys",function(){return function(b){return m(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"),m=k("./_global"),T=k("./_ctx"),b=k("./_classof"),y=k("./_export"),C=k("./_is-object"),A=k("./_a-function"),g=k("./_an-instance"),e=k("./_for-of"),f=k("./_species-constructor"),r=k("./_task").set,l=k("./_microtask")(),n=k("./_new-promise-capability"),i=k("./_perform"),a=k("./_user-agent"),c=k("./_promise-resolve"),h="Promise",d=m.TypeError,s=m.process,u=s&&s.versions,S=u&&u.v8||"",E=m[h],_=b(s)=="process",P=function(){},R,x,w,v,O=x=n.f,U=!!function(){try{var L=E.resolve(1),K=(L.constructor={})[k("./_wks")("species")]=function(te){te(P,P)};return(_||typeof PromiseRejectionEvent=="function")&&L.then(P)instanceof K&&S.indexOf("6.6")!==0&&a.indexOf("Chrome/66")===-1}catch(te){}}(),I=function(L){var K;return C(L)&&typeof(K=L.then)=="function"?K:!1},N=function(L,K){if(L._n)return;L._n=!0;var te=L._c;l(function(){for(var fe=L._v,de=L._s==1,Ce=0,Oe=function(ce){var Ee=de?ce.ok:ce.fail,ye=ce.resolve,ue=ce.reject,le=ce.domain,$,me,re;try{Ee?(de||(L._h==2&&D(L),L._h=1),Ee===!0?$=fe:(le&&le.enter(),$=Ee(fe),le&&(le.exit(),re=!0)),$===ce.promise?ue(d("Promise-chain cycle")):(me=I($))?me.call($,ye,ue):ye($)):ue(fe)}catch(ae){le&&!re&&le.exit(),ue(ae)}};te.length>Ce;)Oe(te[Ce++]);L._c=[],L._n=!1,K&&!L._h&&V(L)})},V=function(L){r.call(m,function(){var K=L._v,te=H(L),fe,de,Ce;if(te&&(fe=i(function(){_?s.emit("unhandledRejection",K,L):(de=m.onunhandledrejection)?de({promise:L,reason:K}):(Ce=m.console)&&Ce.error&&Ce.error("Unhandled promise rejection",K)}),L._h=_||H(L)?2:1),L._a=void 0,te&&fe.e)throw fe.v})},H=function(L){return L._h!==1&&(L._a||L._c).length===0},D=function(L){r.call(m,function(){var K;_?s.emit("rejectionHandled",L):(K=m.onrejectionhandled)&&K({promise:L,reason:L._v})})},W=function(L){var K=this;if(K._d)return;K._d=!0,K=K._w||K,K._v=L,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0)},F=function(L){var K=this,te;if(K._d)return;K._d=!0,K=K._w||K;try{if(K===L)throw d("Promise can't be resolved itself");(te=I(L))?l(function(){var fe={_w:K,_d:!1};try{te.call(L,T(F,fe,1),T(W,fe,1))}catch(de){W.call(fe,de)}}):(K._v=L,K._s=1,N(K,!1))}catch(fe){W.call({_w:K,_d:!1},fe)}};U||(E=function(K){g(this,E,h,"_h"),A(K),R.call(this);try{K(T(F,this,1),T(W,this,1))}catch(te){W.call(this,te)}},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,te){var fe=O(f(this,E));return fe.ok=typeof K=="function"?K:!0,fe.fail=typeof te=="function"&&te,fe.domain=_?s.domain:void 0,this._c.push(fe),this._a&&this._a.push(fe),this._s&&N(this,!1),fe.promise},catch:function(L){return this.then(void 0,L)}}),w=function(){var L=new R;this.promise=L,this.resolve=T(F,L,1),this.reject=T(W,L,1)},n.f=O=function(L){return L===E||L===v?new w(L):x(L)}),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 te=O(this),fe=te.reject;return fe(K),te.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(L){E.all(L).catch(P)})),h,{all:function(K){var te=this,fe=O(te),de=fe.resolve,Ce=fe.reject,Oe=i(function(){var ce=[],Ee=0,ye=1;e(K,!1,function(ue){var le=Ee++,$=!1;ce.push(void 0),ye++,te.resolve(ue).then(function(me){if($)return;$=!0,ce[le]=me,--ye||de(ce)},Ce)}),--ye||de(ce)});return Oe.e&&Ce(Oe.v),fe.promise},race:function(K){var te=this,fe=O(te),de=fe.reject,Ce=i(function(){e(K,!1,function(Oe){te.resolve(Oe).then(fe.resolve,de)})});return Ce.e&&de(Ce.v),fe.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(k,z,o){var M=k("./_export"),m=k("./_to-absolute-index"),T=String.fromCharCode,b=String.fromCodePoint;M(M.S+M.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(C){for(var A=[],g=arguments.length,e=0,f;g>e;){if(f=+arguments[e++],m(f,1114111)!==f)throw RangeError(f+" is not a valid code point");A.push(f<65536?T(f):T(((f-=65536)>>10)+55296,f%1024+56320))}return A.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(m){this._t=String(m),this._i=0},function(){var m=this._t,T=this._i,b;return T>=m.length?{value:void 0,done:!0}:(b=M(m,T),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"),m=k("./_has"),T=k("./_descriptors"),b=k("./_export"),y=k("./_redefine"),C=k("./_meta").KEY,A=k("./_fails"),g=k("./_shared"),e=k("./_set-to-string-tag"),f=k("./_uid"),r=k("./_wks"),l=k("./_wks-ext"),n=k("./_wks-define"),i=k("./_enum-keys"),a=k("./_is-array"),c=k("./_an-object"),h=k("./_is-object"),d=k("./_to-object"),s=k("./_to-iobject"),u=k("./_to-primitive"),S=k("./_property-desc"),E=k("./_object-create"),_=k("./_object-gopn-ext"),P=k("./_object-gopd"),R=k("./_object-gops"),x=k("./_object-dp"),w=k("./_object-keys"),v=P.f,O=x.f,U=_.f,I=M.Symbol,N=M.JSON,V=N&&N.stringify,H="prototype",D=r("_hidden"),W=r("toPrimitive"),F={}.propertyIsEnumerable,L=g("symbol-registry"),K=g("symbols"),te=g("op-symbols"),fe=Object[H],de=typeof I=="function"&&!!R.f,Ce=M.QObject,Oe=!Ce||!Ce[H]||!Ce[H].findChild,ce=T&&A(function(){return E(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(_e,Te,Ge){var qe=v(fe,Te);qe&&delete fe[Te],O(_e,Te,Ge),qe&&_e!==fe&&O(fe,Te,qe)}:O,Ee=function(_e){var Te=K[_e]=E(I[H]);return Te._k=_e,Te},ye=de&&typeof I.iterator=="symbol"?function(_e){return typeof _e=="symbol"}:function(_e){return _e instanceof I},ue=function(Te,Ge,qe){return Te===fe&&ue(te,Ge,qe),c(Te),Ge=u(Ge,!0),c(qe),m(K,Ge)?(qe.enumerable?(m(Te,D)&&Te[D][Ge]&&(Te[D][Ge]=!1),qe=E(qe,{enumerable:S(0,!1)})):(m(Te,D)||O(Te,D,S(1,{})),Te[D][Ge]=!0),ce(Te,Ge,qe)):O(Te,Ge,qe)},le=function(Te,Ge){c(Te);for(var qe=i(Ge=s(Ge)),ut=0,st=qe.length,ft;st>ut;)ue(Te,ft=qe[ut++],Ge[ft]);return Te},$=function(Te,Ge){return Ge===void 0?E(Te):le(E(Te),Ge)},me=function(Te){var Ge=F.call(this,Te=u(Te,!0));return this===fe&&m(K,Te)&&!m(te,Te)?!1:Ge||!m(this,Te)||!m(K,Te)||m(this,D)&&this[D][Te]?Ge:!0},re=function(Te,Ge){if(Te=s(Te),Ge=u(Ge,!0),Te===fe&&m(K,Ge)&&!m(te,Ge))return;var qe=v(Te,Ge);return qe&&m(K,Ge)&&!(m(Te,D)&&Te[D][Ge])&&(qe.enumerable=!0),qe},ae=function(Te){for(var Ge=U(s(Te)),qe=[],ut=0,st;Ge.length>ut;)!m(K,st=Ge[ut++])&&st!=D&&st!=C&&qe.push(st);return qe},Se=function(Te){for(var Ge=Te===fe,qe=U(Ge?te:s(Te)),ut=[],st=0,ft;qe.length>st;)m(K,ft=qe[st++])&&(Ge?m(fe,ft):!0)&&ut.push(K[ft]);return ut};de||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var Te=f(arguments.length>0?arguments[0]:void 0),Ge=function(qe){this===fe&&Ge.call(te,qe),m(this,D)&&m(this[D],Te)&&(this[D][Te]=!1),ce(this,Te,S(1,qe))};return T&&Oe&&ce(fe,Te,{configurable:!0,set:Ge}),Ee(Te)},y(I[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=Se,T&&!k("./_library")&&y(fe,"propertyIsEnumerable",me,!0),l.f=function(_e){return Ee(r(_e))}),b(b.G+b.W+b.F*!de,{Symbol:I});for(var oe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;oe.length>ee;)r(oe[ee++]);for(var J=w(r.store),Q=0;J.length>Q;)n(J[Q++]);b(b.S+b.F*!de,"Symbol",{for:function(_e){return m(L,_e+="")?L[_e]:L[_e]=I(_e)},keyFor:function(Te){if(!ye(Te))throw TypeError(Te+" is not a symbol!");for(var Ge in L)if(L[Ge]===Te)return Ge},useSetter:function(){Oe=!0},useSimple:function(){Oe=!1}}),b(b.S+b.F*!de,"Object",{create:$,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:re,getOwnPropertyNames:ae,getOwnPropertySymbols:Se});var ve=A(function(){R.f(1)});b(b.S+b.F*ve,"Object",{getOwnPropertySymbols:function(Te){return R.f(d(Te))}}),N&&b(b.S+b.F*(!de||A(function(){var _e=I();return V([_e])!="[null]"||V({a:_e})!="{}"||V(Object(_e))!="{}"})),"JSON",{stringify:function(Te){for(var Ge=[Te],qe=1,ut,st;arguments.length>qe;)Ge.push(arguments[qe++]);return st=ut=Ge[1],!h(ut)&&Te===void 0||ye(Te)?void 0:(a(ut)||(ut=function(ft,gt){if(typeof st=="function"&&(gt=st.call(this,ft,gt)),!ye(gt))return gt}),Ge[1]=ut,V.apply(N,Ge))}}),I[H][W]||k("./_hide")(I[H],W,I[H].valueOf),e(I,"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"),m=k("./_object-to-array")(!0);M(M.S,"Object",{entries:function(b){return m(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,z,o){"use strict";var M=k("./_export"),m=k("./_core"),T=k("./_global"),b=k("./_species-constructor"),y=k("./_promise-resolve");M(M.P+M.R,"Promise",{finally:function(C){var A=b(this,m.Promise||T.Promise),g=typeof C=="function";return this.then(g?function(e){return y(A,C()).then(function(){return e})}:C,g?function(e){return y(A,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"),m=k("./_new-promise-capability"),T=k("./_perform");M(M.S,"Promise",{try:function(b){var y=m.f(this),C=T(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"),m=k("./_hide"),T=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 A=y[C],g=M[A],e=g&&g.prototype;e&&!e[b]&&m(e,b,A),T[A]=T.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,z,o){var M=k("./_export"),m=k("./_task");M(M.G+M.B,{setImmediate:m.set,clearImmediate:m.clear})},{"./_export":107,"./_task":155}],189:[function(k,z,o){(function(M){"use strict";var m=k("babel-runtime/helpers/typeof"),T=b(m);function b(u){return u&&u.__esModule?u:{default:u}}function y(u){return Array.isArray?Array.isArray(u):s(u)==="[object Array]"}o.isArray=y;function C(u){return typeof u=="boolean"}o.isBoolean=C;function A(u){return u===null}o.isNull=A;function g(u){return u==null}o.isNullOrUndefined=g;function e(u){return typeof u=="number"}o.isNumber=e;function f(u){return typeof u=="string"}o.isString=f;function r(u){return(typeof u=="undefined"?"undefined":(0,T.default)(u))==="symbol"}o.isSymbol=r;function l(u){return u===void 0}o.isUndefined=l;function n(u){return s(u)==="[object RegExp]"}o.isRegExp=n;function i(u){return(typeof u=="undefined"?"undefined":(0,T.default)(u))==="object"&&u!==null}o.isObject=i;function a(u){return s(u)==="[object Date]"}o.isDate=a;function c(u){return s(u)==="[object Error]"||u instanceof Error}o.isError=c;function h(u){return typeof u=="function"}o.isFunction=h;function d(u){return u===null||typeof u=="boolean"||typeof u=="number"||typeof u=="string"||(typeof u=="undefined"?"undefined":(0,T.default)(u))==="symbol"||typeof u=="undefined"}o.isPrimitive=d,o.isBuffer=M.isBuffer;function s(u){return Object.prototype.toString.call(u)}}).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"),m=T(M);function T(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,r=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g;return function(n,i,a,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),a=!0,h==="GMT:"&&(c=!0));var d=a?"getUTC":"get",s=n[d+"Date"](),u=n[d+"Day"](),S=n[d+"Month"](),E=n[d+"FullYear"](),_=n[d+"Hours"](),P=n[d+"Minutes"](),R=n[d+"Seconds"](),x=n[d+"Milliseconds"](),w=a?0:n.getTimezoneOffset(),v=A(n),O=g(n),U={d:s,dd:C(s),ddd:y.i18n.dayNames[u],dddd:y.i18n.dayNames[u+7],m:S+1,mm:C(S+1),mmm:y.i18n.monthNames[S],mmmm:y.i18n.monthNames[S+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":a?"UTC":(String(n).match(r)||[""]).pop().replace(l,""),o:(w>0?"-":"+")+C(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:v,N:O};return i.replace(f,function(I){return I in U?U[I]:I.slice(1,I.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,r){for(f=String(f),r=r||2;f.length<r;)f="0"+f;return f}function A(f){var r=new Date(f.getFullYear(),f.getMonth(),f.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var l=new Date(r.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);var n=r.getTimezoneOffset()-l.getTimezoneOffset();r.setHours(r.getHours()-n);var i=(r-l)/(864e5*7);return 1+Math.floor(i)}function g(f){var r=f.getDay();return r===0&&(r=7),r}function e(f){return f===null?"null":f===void 0?"undefined":(typeof f=="undefined"?"undefined":(0,m.default)(f))!=="object"?typeof f=="undefined"?"undefined":(0,m.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,m.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=m;function m(T){var b=""+T,y=M.exec(b);if(!y)return b;var C,A="",g=0,e=0;for(g=y.index;g<b.length;g++){switch(b.charCodeAt(g)){case 34:C=""";break;case 38:C="&";break;case 39:C="'";break;case 60:C="<";break;case 62:C=">";break;default:continue}e!==g&&(A+=b.substring(e,g)),e=g+1,A+=C}return e!==g?A+b.substring(e,g):A}},{}],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(!T(C)||C<0||isNaN(C))throw TypeError("n must be a positive number");return this._maxListeners=C,this},M.prototype.emit=function(C){var A,g,e,f,r,l;if(this._events||(this._events={}),C==="error"&&(!this._events.error||b(this._events.error)&&!this._events.error.length)){if(A=arguments[1],A instanceof Error)throw A;var n=new Error('Uncaught, unspecified "error" event. ('+A+")");throw n.context=A,n}if(g=this._events[C],y(g))return!1;if(m(g))switch(arguments.length){case 1:g.call(this);break;case 2:g.call(this,arguments[1]);break;case 3:g.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),g.apply(this,f)}else if(b(g))for(f=Array.prototype.slice.call(arguments,1),l=g.slice(),e=l.length,r=0;r<e;r++)l[r].apply(this,f);return!0},M.prototype.addListener=function(C,A){var g;if(!m(A))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",C,m(A.listener)?A.listener:A),this._events[C]?b(this._events[C])?this._events[C].push(A):this._events[C]=[this._events[C],A]:this._events[C]=A,b(this._events[C])&&!this._events[C].warned&&(y(this._maxListeners)?g=M.defaultMaxListeners:g=this._maxListeners,g&&g>0&&this._events[C].length>g&&(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,A){if(!m(A))throw TypeError("listener must be a function");var g=!1;function e(){this.removeListener(C,e),g||(g=!0,A.apply(this,arguments))}return e.listener=A,this.on(C,e),this},M.prototype.removeListener=function(C,A){var g,e,f,r;if(!m(A))throw TypeError("listener must be a function");if(!this._events||!this._events[C])return this;if(g=this._events[C],f=g.length,e=-1,g===A||m(g.listener)&&g.listener===A)delete this._events[C],this._events.removeListener&&this.emit("removeListener",C,A);else if(b(g)){for(r=f;r-- >0;)if(g[r]===A||g[r].listener&&g[r].listener===A){e=r;break}if(e<0)return this;g.length===1?(g.length=0,delete this._events[C]):g.splice(e,1),this._events.removeListener&&this.emit("removeListener",C,A)}return this},M.prototype.removeAllListeners=function(C){var A,g;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(A in this._events){if(A==="removeListener")continue;this.removeAllListeners(A)}return this.removeAllListeners("removeListener"),this._events={},this}if(g=this._events[C],m(g))this.removeListener(C,g);else if(g)for(;g.length;)this.removeListener(C,g[g.length-1]);return delete this._events[C],this},M.prototype.listeners=function(C){var A;return!this._events||!this._events[C]?A=[]:m(this._events[C])?A=[this._events[C]]:A=this._events[C].slice(),A},M.prototype.listenerCount=function(C){if(this._events){var A=this._events[C];if(m(A))return 1;if(A)return A.length}return 0},M.listenerCount=function(C,A){return C.listenerCount(A)};function m(C){return typeof C=="function"}function T(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"),m=z.exports;for(var T in M)M.hasOwnProperty(T)&&(m[T]=M[T]);m.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"),m=k("ms");z.exports=function(T){if(typeof T=="number")return T;var b=m(T);if(b===void 0){var y=new Error(M.format("humanize-ms(%j) result undefined",T));console.warn(y.stack)}return b}},{ms:204,util:243}],195:[function(k,z,o){o.read=function(M,m,T,b,y){var C,A,g=y*8-b-1,e=(1<<g)-1,f=e>>1,r=-7,l=T?y-1:0,n=T?-1:1,i=M[m+l];for(l+=n,C=i&(1<<-r)-1,i>>=-r,r+=g;r>0;C=C*256+M[m+l],l+=n,r-=8);for(A=C&(1<<-r)-1,C>>=-r,r+=b;r>0;A=A*256+M[m+l],l+=n,r-=8);if(C===0)C=1-f;else{if(C===e)return A?NaN:(i?-1:1)*Infinity;A=A+Math.pow(2,b),C=C-f}return(i?-1:1)*A*Math.pow(2,C-b)},o.write=function(M,m,T,b,y,C){var A,g,e,f=C*8-y-1,r=(1<<f)-1,l=r>>1,n=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=b?0:C-1,a=b?1:-1,c=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===Infinity?(g=isNaN(m)?1:0,A=r):(A=Math.floor(Math.log(m)/Math.LN2),m*(e=Math.pow(2,-A))<1&&(A--,e*=2),A+l>=1?m+=n/e:m+=n*Math.pow(2,1-l),m*e>=2&&(A++,e/=2),A+l>=r?(g=0,A=r):A+l>=1?(g=(m*e-1)*Math.pow(2,y),A=A+l):(g=m*Math.pow(2,l-1)*Math.pow(2,y),A=0));y>=8;M[T+i]=g&255,i+=a,g/=256,y-=8);for(A=A<<y|g,f+=y;f>0;M[T+i]=A&255,i+=a,A/=256,f-=8);M[T+i-a]|=c*128}},{}],196:[function(k,z,o){typeof Object.create=="function"?z.exports=function(m,T){T&&(m.super_=T,m.prototype=Object.create(T.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:z.exports=function(m,T){if(T){m.super_=T;var b=function(){};b.prototype=T.prototype,m.prototype=new b,m.prototype.constructor=m}}},{}],197:[function(k,z,o){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/z.exports=function(T){return T!=null&&(M(T)||m(T)||!!T._isBuffer)};function M(T){return!!T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T)}function m(T){return typeof T.readFloatLE=="function"&&typeof T.slice=="function"&&M(T.slice(0,0))}},{}],198:[function(k,z,o){var M={}.toString;z.exports=Array.isArray||function(m){return M.call(m)=="[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),m=[fromCharCode(M>>>16),fromCharCode(M>>>8&255),fromCharCode(M&255)];return m.length-=[0,0,2,1][o],m.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=m;var M=Object.prototype.hasOwnProperty;function m(T,b,y){if(!T)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(A){if(!y&&M.call(T,A))return;var g=Object.getOwnPropertyDescriptor(b,A);Object.defineProperty(T,A,g)}),T}},{}],201:[function(k,z,o){"use strict";function M(){this._types=Object.create(null),this._extensions=Object.create(null);for(var m=0;m<arguments.length;m++)this.define(arguments[m]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}M.prototype.define=function(m,T){for(var b in m){var y=m[b].map(function(g){return g.toLowerCase()});b=b.toLowerCase();for(var C=0;C<y.length;C++){var A=y[C];if(A[0]=="*")continue;if(!T&&A in this._types)throw new Error('Attempt to change mapping for "'+A+'" extension from "'+this._types[A]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+A+'" from the list of extensions for "'+b+'".');this._types[A]=b}if(T||!this._extensions[b]){var A=y[0];this._extensions[b]=A[0]!="*"?A:A.substr(1)}}},M.prototype.getType=function(m){m=String(m);var T=m.replace(/^.*[/\\]/,"").toLowerCase(),b=T.replace(/^.*\./,"").toLowerCase(),y=T.length<m.length,C=b.length<T.length-1;return(C||!y)&&this._types[b]||null},M.prototype.getExtension=function(m){return m=/^\s*([^;\s]*)/.test(m)&&RegExp.$1,m&&this._extensions[m.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,m=M*60,T=m*60,b=T*24,y=b*7,C=b*365.25;z.exports=function(r,l){l=l||{};var n=typeof r;if(n==="string"&&r.length>0)return A(r);if(n==="number"&&isFinite(r))return l.long?e(r):g(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function A(r){if(r=String(r),r.length>100)return;var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!l)return;var n=parseFloat(l[1]),i=(l[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*T;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;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 g(r){var l=Math.abs(r);return l>=b?Math.round(r/b)+"d":l>=T?Math.round(r/T)+"h":l>=m?Math.round(r/m)+"m":l>=M?Math.round(r/M)+"s":r+"ms"}function e(r){var l=Math.abs(r);return l>=b?f(r,l,b,"day"):l>=T?f(r,l,T,"hour"):l>=m?f(r,l,m,"minute"):l>=M?f(r,l,M,"second"):r+" ms"}function f(r,l,n,i){var a=l>=n*1.5;return Math.round(r/n)+" "+i+(a?"s":"")}},{}],205:[function(k,z,o){(function(M){function m(C,A){for(var g=0,e=C.length-1;e>=0;e--){var f=C[e];f==="."?C.splice(e,1):f===".."?(C.splice(e,1),g++):g&&(C.splice(e,1),g--)}if(A)for(;g--;g)C.unshift("..");return C}o.resolve=function(){for(var C="",A=!1,g=arguments.length-1;g>=-1&&!A;g--){var e=g>=0?arguments[g]:M.cwd();if(typeof e!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!e)continue;C=e+"/"+C,A=e.charAt(0)==="/"}return C=m(b(C.split("/"),function(f){return!!f}),!A).join("/"),(A?"/":"")+C||"."},o.normalize=function(C){var A=o.isAbsolute(C),g=y(C,-1)==="/";return C=m(b(C.split("/"),function(e){return!!e}),!A).join("/"),!C&&!A&&(C="."),C&&g&&(C+="/"),(A?"/":"")+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(A,g){if(typeof A!="string")throw new TypeError("Arguments to path.join must be strings");return A}).join("/"))},o.relative=function(C,A){C=o.resolve(C).substr(1),A=o.resolve(A).substr(1);function g(a){for(var c=0;c<a.length&&!(a[c]!=="");c++);for(var h=a.length-1;h>=0&&!(a[h]!=="");h--);return c>h?[]:a.slice(c,h-c+1)}for(var e=g(C.split("/")),f=g(A.split("/")),r=Math.min(e.length,f.length),l=r,n=0;n<r;n++)if(e[n]!==f[n]){l=n;break}for(var i=[],n=l;n<e.length;n++)i.push("..");return i=i.concat(f.slice(l)),i.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(C){if(typeof C!="string"&&(C=C+""),C.length===0)return".";for(var A=C.charCodeAt(0),g=A===47,e=-1,f=!0,r=C.length-1;r>=1;--r)if(A=C.charCodeAt(r),A===47){if(!f){e=r;break}}else f=!1;return e===-1?g?"/":".":g&&e===1?"/":C.slice(0,e)};function T(C){typeof C!="string"&&(C=C+"");var A=0,g=-1,e=!0,f;for(f=C.length-1;f>=0;--f)if(C.charCodeAt(f)===47){if(!e){A=f+1;break}}else g===-1&&(e=!1,g=f+1);return g===-1?"":C.slice(A,g)}o.basename=function(C,A){var g=T(C);return A&&g.substr(-1*A.length)===A&&(g=g.substr(0,g.length-A.length)),g},o.extname=function(C){typeof C!="string"&&(C=C+"");for(var A=-1,g=0,e=-1,f=!0,r=0,l=C.length-1;l>=0;--l){var n=C.charCodeAt(l);if(n===47){if(!f){g=l+1;break}continue}e===-1&&(f=!1,e=l+1),n===46?A===-1?A=l:r!==1&&(r=1):A!==-1&&(r=-1)}return A===-1||e===-1||r===0||r===1&&A===e-1&&A===g+1?"":C.slice(A,e)};function b(C,A){if(C.filter)return C.filter(A);for(var g=[],e=0;e<C.length;e++)A(C[e],e,C)&&g.push(C[e]);return g}var y="ab".substr(-1)==="b"?function(C,A,g){return C.substr(A,g)}:function(C,A,g){return A<0&&(A=C.length+A),C.substr(A,g)}}).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 m={function:!0,object:!0},T=m[typeof window]&&window||this,b=T,y=m[typeof o]&&o,C=m[typeof z]&&z&&!z.nodeType&&z,A=y&&C&&typeof M=="object"&&M;A&&(A.global===A||A.window===A||A.self===A)&&(T=A);var g=Math.pow(2,53)-1,e=/\bOpera/,f=this,r=Object.prototype,l=r.hasOwnProperty,n=r.toString;function i(x){return x=String(x),x.charAt(0).toUpperCase()+x.slice(1)}function a(x,w,v){var O={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return w&&v&&/^Win/i.test(x)&&!/^Windows Phone /i.test(x)&&(O=O[/[\d.]+$/.exec(x)])&&(x="Windows "+O),x=String(x),w&&v&&(x=x.replace(RegExp(w,"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,w){var v=-1,O=x?x.length:0;if(typeof O=="number"&&O>-1&&O<=g)for(;++v<O;)w(x[v],v,x);else d(x,w)}function h(x){return x=_(x),/^(?:webOS|i(?:OS|P))/.test(x)?x:i(x)}function d(x,w){for(var v in x)l.call(x,v)&&w(x[v],v,x)}function s(x){return x==null?i(x):n.call(x).slice(8,-1)}function u(x,w){var v=x!=null?typeof x[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(v)&&(v=="object"?!!x[w]:!0)}function S(x){return String(x).replace(/([ -])(?!$)/g,"$1?")}function E(x,w){var v=null;return c(x,function(O,U){v=w(v,O,U,x)}),v}function _(x){return String(x).replace(/^ +| +$/g,"")}function P(x){var w=T,v=x&&typeof x=="object"&&s(x)!="String";v&&(w=x,x=null);var O=w.navigator||{},U=O.userAgent||"";x||(x=U);var I=v||f==b,N=v?!!O.likeChrome:/\bChrome\b/.test(x)&&!/internal|\n/i.test(n.toString()),V="Object",H=v?V:"ScriptBridgingProxyObject",D=v?V:"Environment",W=v&&w.java?"JavaPackage":s(w.java),F=v?V:"RuntimeObject",L=/\bJava/.test(W)&&w.java,K=L&&s(w.environment)==D,te=L?"a":"\u03B1",fe=L?"b":"\u03B2",de=w.document||{},Ce=w.operamini||w.opera,Oe=e.test(Oe=v&&Ce?Ce["[[Class]]"]:s(Ce))?Oe:Ce=null,ce,Ee=x,ye=[],ue=null,le=x==U,$=le&&Ce&&typeof Ce.version=="function"&&Ce.version(),me,re=J([{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"]),Se=Te([{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"]),oe=Q({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}}),ee=_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 J(st){return E(st,function(ft,gt){return ft||RegExp("\\b"+(gt.pattern||S(gt))+"\\b","i").exec(x)&&(gt.label||gt)})}function Q(st){return E(st,function(ft,gt,Ve){return ft||(gt[Se]||gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Se)]||RegExp("\\b"+S(Ve)+"(?:\\b|\\w*\\d)","i").exec(x))&&Ve})}function ve(st){return E(st,function(ft,gt){return ft||RegExp("\\b"+(gt.pattern||S(gt))+"\\b","i").exec(x)&&(gt.label||gt)})}function _e(st){return E(st,function(ft,gt){var Ve=gt.pattern||S(gt);return!ft&&(ft=RegExp("\\b"+Ve+"(?:/[\\d.]+|[ \\w.]*)","i").exec(x))&&(ft=a(ft,Ve,gt.label||gt)),ft})}function Te(st){return E(st,function(ft,gt){var Ve=gt.pattern||S(gt);return!ft&&(ft=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))&&((ft=String(gt.label&&!RegExp(Ve,"i").test(gt.label)?gt.label:ft).split("/"))[1]&&!/[\d.]+/.test(ft[0])&&(ft[0]+=" "+ft[1]),gt=gt.label||gt,ft=h(ft[0].replace(RegExp(Ve,"i"),gt).replace(RegExp("; *(?:"+gt+"[_-])?","i")," ").replace(RegExp("("+gt+")[-_.]?(\\w)","i"),"$1 $2"))),ft})}function Ge(st){return E(st,function(ft,gt){return ft||(RegExp(gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(x)||0)[1]||null})}function qe(){return this.description||""}if(re&&(re=[re]),oe&&!Se&&(Se=Te([oe])),(ce=/\bGoogle TV\b/.exec(Se))&&(Se=ce[0]),/\bSimulator\b/i.test(x)&&(Se=(Se?Se+" ":"")+"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/,"")),oe=ce.manufacturer,Se=ce.product):/^iP/.test(Se)?(ae||(ae="Safari"),ee="iOS"+((ce=/ OS ([\d_]+)/i.exec(x))?" "+ce[1].replace(/_/g,"."):"")):ae=="Konqueror"&&!/buntu/i.test(ee)?ee="Kubuntu":oe&&oe!="Google"&&(/Chrome/.test(ae)&&!/\bMobile Safari\b/i.test(x)||/\bVita\b/.test(Se))||/\bAndroid\b/.test(ee)&&/^Chrome/.test(ae)&&/\bVersion\//i.test(x)?(ae="Android Browser",ee=/\bAndroid\b/.test(ee)?ee:"Android"):ae=="Silk"?(/\bMobi/i.test(x)||(ee="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))?(ee||(ee="Firefox OS"),Se||(Se=ce[1])):!ae||(ce=!/\bMinefield\b/i.test(x)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!Se&&/[\/,]|^[^(]+?\)/.test(x.slice(x.indexOf(ce+"/")+8))&&(ae=null),(ce=Se||oe||ee)&&(Se||oe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(ee))&&(ae=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(ee)?ee:ce)+" Browser")):ae=="Electron"&&(ce=(/\bChrome\/([\d.]+)\b/.exec(x)||0)[1])&&ye.push("Chromium "+ce),$||($=Ge(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",S(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)&&(ee=="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",ee="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),ye.unshift("desktop mode")):/\bWPDesktop\b/i.test(x)?(ae="IE Mobile",ee="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]),le){if(u(w,"global"))if(L&&(ce=L.lang.System,Ee=ce.getProperty("os.arch"),ee=ee||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),K){try{$=w.require("ringo/engine").version.join("."),ae="RingoJS"}catch(st){(ce=w.system)&&ce.global.system==w.system&&(ae="Narwhal",ee||(ee=ce[0].os||null))}ae||(ae="Rhino")}else typeof w.process=="object"&&!w.process.browser&&(ce=w.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",Ee=ce.arch,ee=ce.platform,$=/[\d.]+/.exec(ce.version),$=$?$[0]:null));else s(ce=w.runtime)==H?(ae="Adobe AIR",ee=ce.flash.system.Capabilities.os):s(ce=w.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"],ee="Windows");ee=ee&&h(ee)}if($&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(x+";"+(le&&O.appMinorVersion))||/\bMinefield\b/i.test(x)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",$=$.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?fe:te)+(/\d+\+?/.exec(ce)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(ee))ae="Firefox Mobile";else if(ae=="Maxthon"&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Se))Se=="Xbox 360"&&(ee=null),Se=="Xbox 360"&&/\bIEMobile\b/.test(x)&&ye.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!Se&&!/Browser|Mobi/.test(ae))&&(ee=="Windows CE"||/Mobi/i.test(x)))ae+=" Mobile";else if(ae=="IE"&&le)try{w.external===null&&ye.unshift("platform preview")}catch(st){ye.unshift("embedded")}else(/\bBlackBerry\b/.test(Se)||/\bBB10\b/.test(x))&&(ce=(RegExp(Se.replace(/ +/g," *")+"/([.\\d]+)","i").exec(x)||0)[1]||$)?(ce=[ce,/BB10/.test(x)],ee=(ce[1]?(Se=null,oe="BlackBerry"):"Device Software")+" "+ce[0],$=null):this!=d&&Se!="Wii"&&(le&&Ce||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(x)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(ee)||ae=="IE"&&(ee&&!/^Win/.test(ee)&&$>5.5||/\bWindows XP\b/.test(ee)&&$>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)&&ee=="Mac OS"&&(ee=null),ce="identify"+ce):(ce="mask"+ce,Oe?ae=h(Oe.replace(/([a-z])([A-Z])/g,"$1 $2")):ae="Opera",/\bIE\b/.test(ce)&&(ee=null),le||($=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"]),!le||!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(ee))?(ae+=" ",ye.unshift("desktop mode"),ce=="zvav"?(ae+="Mini",$=null):ae+="Mobile",ee=ee.replace(RegExp(" *"+ce+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(ye.unshift("desktop mode"),ae="Chrome Mobile",$=null,/\bOS X\b/.test(ee)?(oe="Apple",ee="iOS 4.3+"):ee=null),$&&$.indexOf(ce=/[\d.]+$/.exec(ee))==0&&x.indexOf("/"+ce+"-")>-1&&(ee=_(ee.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(ee)&&/\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("; ")+")"]),oe&&Se&&Se.indexOf(oe)<0&&ye.push("on "+oe),Se&&ye.push((/^on /.test(ye[ye.length-1])?"":"on ")+Se),ee&&(ce=/ ([\d.+]+)$/.exec(ee),me=ce&&ee.charAt(ee.length-ce[0].length-1)=="/",ee={architecture:32,family:ce&&!me?ee.replace(ce[0],""):ee,version:ce?ce[1]:null,toString:function(){var st=this.version;return this.family+(st&&!me?" "+st:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ee))&&!/\bi686\b/i.test(Ee)?(ee&&(ee.architecture=64,ee.family=ee.family.replace(RegExp(" *"+ce),"")),ae&&(/\bWOW64\b/i.test(x)||le&&/\w(?:86|32)$/.test(O.cpuClass||O.platform)&&!/\bWin64; x64\b/i.test(x))&&ye.unshift("32-bit")):ee&&/^OS X/.test(ee.family)&&ae=="Chrome"&&parseFloat($)>=39&&(ee.architecture=64),x||(x=null);var ut={};return ut.description=x,ut.layout=re&&re[0],ut.manufacturer=oe,ut.name=ae,ut.prerelease=ue,ut.product=Se,ut.ua=x,ut.version=ae&&$,ut.os=ee||{architecture:null,family:null,version:null,toString:function(){return"null"}},ut.parse=P,ut.toString=qe,ut.version&&ye.unshift($),ut.name&&ye.unshift(ae),ee&&ae&&!(ee==String(ee).split(" ")[0]&&(ee==ae.split(" ")[0]||Se))&&ye.push(Se?"("+ee+")":"on "+ee),ye.length&&(ut.description=ye.join(" ")),ut}var R=P();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=R,define(function(){return R})):y&&C?d(R,function(x,w){y[w]=x}):T.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:m}:z.exports=M;function m(T,b,y,C){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var A=arguments.length,g,e;switch(A){case 0:case 1:return M.nextTick(T);case 2:return M.nextTick(function(){T.call(null,b)});case 3:return M.nextTick(function(){T.call(null,b,y)});case 4:return M.nextTick(function(){T.call(null,b,y,C)});default:for(g=new Array(A-1),e=0;e<g.length;)g[e++]=arguments[e];return M.nextTick(function(){T.apply(null,g)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,z,o){var M=z.exports={},m,T;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"?m=setTimeout:m=b}catch(c){m=b}try{typeof clearTimeout=="function"?T=clearTimeout:T=y}catch(c){T=y}})();function C(c){if(m===setTimeout)return setTimeout(c,0);if((m===b||!m)&&setTimeout)return m=setTimeout,setTimeout(c,0);try{return m(c,0)}catch(h){try{return m.call(null,c,0)}catch(d){return m.call(this,c,0)}}}function A(c){if(T===clearTimeout)return clearTimeout(c);if((T===y||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(c);try{return T(c)}catch(h){try{return T.call(null,c)}catch(d){return T.call(this,c)}}}var g=[],e=!1,f,r=-1;function l(){if(!e||!f)return;e=!1,f.length?g=f.concat(g):r=-1,g.length&&n()}function n(){if(e)return;var c=C(l);e=!0;for(var h=g.length;h;){for(f=g,g=[];++r<h;)f&&f[r].run();r=-1,h=g.length}f=null,e=!1,A(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];g.push(new i(c,h)),g.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 a(){}M.on=a,M.addListener=a,M.once=a,M.off=a,M.removeListener=a,M.removeAllListeners=a,M.emit=a,M.prependListener=a,M.prependOnceListener=a,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(m){var T=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)&&(m=y);var C,A=2147483647,g=36,e=1,f=26,r=38,l=700,n=72,i=128,a="-",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"},u=g-e,S=Math.floor,E=String.fromCharCode,_;function P(W){throw new RangeError(s[W])}function R(W,F){for(var L=W.length,K=[];L--;)K[L]=F(W[L]);return K}function x(W,F){var L=W.split("@"),K="";L.length>1&&(K=L[0]+"@",W=L[1]),W=W.replace(d,".");var te=W.split("."),fe=R(te,F).join(".");return K+fe}function w(W){for(var F=[],L=0,K=W.length,te,fe;L<K;)te=W.charCodeAt(L++),te>=55296&&te<=56319&&L<K?(fe=W.charCodeAt(L++),(fe&64512)==56320?F.push(((te&1023)<<10)+(fe&1023)+65536):(F.push(te),L--)):F.push(te);return F}function v(W){return R(W,function(F){var L="";return F>65535&&(F-=65536,L+=E(F>>>10&1023|55296),F=56320|F&1023),L+=E(F),L}).join("")}function O(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:g}function U(W,F){return W+22+75*(W<26)-((F!=0)<<5)}function I(W,F,L){var K=0;for(W=L?S(W/l):W>>1,W+=S(W/F);W>u*f>>1;K+=g)W=S(W/u);return S(K+(u+1)*W/(W+r))}function N(W){var F=[],L=W.length,K,te=0,fe=i,de=n,Ce,Oe,ce,Ee,ye,ue,le,$,me;for(Ce=W.lastIndexOf(a),Ce<0&&(Ce=0),Oe=0;Oe<Ce;++Oe)W.charCodeAt(Oe)>=128&&P("not-basic"),F.push(W.charCodeAt(Oe));for(ce=Ce>0?Ce+1:0;ce<L;){for(Ee=te,ye=1,ue=g;!(ce>=L&&P("invalid-input"),le=O(W.charCodeAt(ce++)),(le>=g||le>S((A-te)/ye))&&P("overflow"),te+=le*ye,$=ue<=de?e:ue>=de+f?f:ue-de,le<$);ue+=g)me=g-$,ye>S(A/me)&&P("overflow"),ye*=me;K=F.length+1,de=I(te-Ee,K,Ee==0),S(te/K)>A-fe&&P("overflow"),fe+=S(te/K),te%=K,F.splice(te++,0,fe)}return v(F)}function V(W){var F,L,K,te,fe,de,Ce,Oe,ce,Ee,ye,ue=[],le,$,me,re;for(W=w(W),le=W.length,F=i,L=0,fe=n,de=0;de<le;++de)ye=W[de],ye<128&&ue.push(E(ye));for(K=te=ue.length,te&&ue.push(a);K<le;){for(Ce=A,de=0;de<le;++de)ye=W[de],ye>=F&&ye<Ce&&(Ce=ye);for($=K+1,Ce-F>S((A-L)/$)&&P("overflow"),L+=(Ce-F)*$,F=Ce,de=0;de<le;++de)if(ye=W[de],ye<F&&++L>A&&P("overflow"),ye==F){for(Oe=L,ce=g;!(Ee=ce<=fe?e:ce>=fe+f?f:ce-fe,Oe<Ee);ce+=g)re=Oe-Ee,me=g-Ee,ue.push(E(U(Ee+re%me,0))),Oe=S(re/me);ue.push(E(U(Oe,0))),fe=I(L,$,K==te),L=0,++K}++L,++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:w,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(T&&b)if(z.exports==T)b.exports=C;else for(_ in C)C.hasOwnProperty(_)&&(T[_]=C[_]);else m.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(T,b){return Object.prototype.hasOwnProperty.call(T,b)}z.exports=function(T,b,y,C){b=b||"&",y=y||"=";var A={};if(typeof T!="string"||T.length===0)return A;var g=/\+/g;T=T.split(b);var e=1e3;C&&typeof C.maxKeys=="number"&&(e=C.maxKeys);var f=T.length;e>0&&f>e&&(f=e);for(var r=0;r<f;++r){var l=T[r].replace(g,"%20"),n=l.indexOf(y),i,a,c,h;n>=0?(i=l.substr(0,n),a=l.substr(n+1)):(i=l,a=""),c=decodeURIComponent(i),h=decodeURIComponent(a),M(A,c)?m(A[c])?A[c].push(h):A[c]=[A[c],h]:A[c]=h}return A};var m=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[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,A,g){return C=C||"&",A=A||"=",y===null&&(y=void 0),typeof y=="object"?T(b(y),function(e){var f=encodeURIComponent(M(e))+A;return m(y[e])?T(y[e],function(r){return f+encodeURIComponent(M(r))}).join(C):f+encodeURIComponent(M(y[e]))}).join(C):g?encodeURIComponent(M(g))+A+encodeURIComponent(M(y)):""};var m=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function T(y,C){if(y.map)return y.map(C);for(var A=[],g=0;g<y.length;g++)A.push(C(y[g],g));return A}var b=Object.keys||function(y){var C=[];for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&C.push(A);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"),m=y(M),T=k("babel-runtime/core-js/object/keys"),b=y(T);function y(h){return h&&h.__esModule?h:{default:h}}var C=k("process-nextick-args"),A=b.default||function(h){var d=[];for(var s in h)d.push(s);return d};z.exports=i;var g=(0,m.default)(k("core-util-is"));g.inherits=k("inherits");var e=k("./_stream_readable"),f=k("./_stream_writable");g.inherits(i,e);for(var r=A(f.prototype),l=0;l<r.length;l++){var n=r[l];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",a)}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function a(){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"),m=T(M);function T(A){return A&&A.__esModule?A:{default:A}}z.exports=C;var b=k("./_stream_transform"),y=(0,m.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(C,b);function C(A){if(!(this instanceof C))return new C(A);b.call(this,A)}C.prototype._transform=function(A,g,e){e(null,A)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,z,o){(function(M,m){"use strict";var T=k("babel-runtime/core-js/object/get-prototype-of"),b=A(T),y=k("babel-runtime/core-js/object/create"),C=A(y);function A(re){return re&&re.__esModule?re:{default:re}}var g=k("process-nextick-args");z.exports=w;var e=k("isarray"),f;w.ReadableState=x;var r=k("events").EventEmitter,l=function(ae,Se){return ae.listeners(Se).length},n=k("./internal/streams/stream"),i=k("safe-buffer").Buffer,a=m.Uint8Array||function(){};function c(re){return i.from(re)}function h(re){return i.isBuffer(re)||re instanceof a}var d=(0,C.default)(k("core-util-is"));d.inherits=k("inherits");var s=k("util"),u=void 0;s&&s.debuglog?u=s.debuglog("stream"):u=function(){};var S=k("./internal/streams/BufferList"),E=k("./internal/streams/destroy"),_;d.inherits(w,n);var P=["error","close","destroy","pause","resume"];function R(re,ae,Se){if(typeof re.prependListener=="function")return re.prependListener(ae,Se);!re._events||!re._events[ae]?re.on(ae,Se):e(re._events[ae])?re._events[ae].unshift(Se):re._events[ae]=[Se,re._events[ae]]}function x(re,ae){f=f||k("./_stream_duplex"),re=re||{};var Se=ae instanceof f;this.objectMode=!!re.objectMode,Se&&(this.objectMode=this.objectMode||!!re.readableObjectMode);var oe=re.highWaterMark,ee=re.readableHighWaterMark,J=this.objectMode?16:16*1024;oe||oe===0?this.highWaterMark=oe:Se&&(ee||ee===0)?this.highWaterMark=ee:this.highWaterMark=J,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new S,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 w(re){if(f=f||k("./_stream_duplex"),!(this instanceof w))return new w(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(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ae){if(!this._readableState)return;this._readableState.destroyed=ae}}),w.prototype.destroy=E.destroy,w.prototype._undestroy=E.undestroy,w.prototype._destroy=function(re,ae){this.push(null),ae(re)},w.prototype.push=function(re,ae){var Se=this._readableState,oe;return Se.objectMode?oe=!0:typeof re=="string"&&(ae=ae||Se.defaultEncoding,ae!==Se.encoding&&(re=i.from(re,ae),ae=""),oe=!0),v(this,re,ae,!1,oe)},w.prototype.unshift=function(re){return v(this,re,null,!0,!1)};function v(re,ae,Se,oe,ee){var J=re._readableState;if(ae===null)J.reading=!1,D(re,J);else{var Q;ee||(Q=U(J,ae)),Q?re.emit("error",Q):J.objectMode||ae&&ae.length>0?(typeof ae!="string"&&!J.objectMode&&(0,b.default)(ae)!==i.prototype&&(ae=c(ae)),oe?J.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):O(re,J,ae,!0):J.ended?re.emit("error",new Error("stream.push() after EOF")):(J.reading=!1,J.decoder&&!Se?(ae=J.decoder.write(ae),J.objectMode||ae.length!==0?O(re,J,ae,!1):L(re,J)):O(re,J,ae,!1))):oe||(J.reading=!1)}return I(J)}function O(re,ae,Se,oe){ae.flowing&&ae.length===0&&!ae.sync?(re.emit("data",Se),re.read(0)):(ae.length+=ae.objectMode?1:Se.length,oe?ae.buffer.unshift(Se):ae.buffer.push(Se),ae.needReadable&&W(re)),L(re,ae)}function U(re,ae){var Se;return!h(ae)&&typeof ae!="string"&&ae!==void 0&&!re.objectMode&&(Se=new TypeError("Invalid non-string/buffer chunk")),Se}function I(re){return!re.ended&&(re.needReadable||re.length<re.highWaterMark||re.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.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))}w.prototype.read=function(re){u("read",re),re=parseInt(re,10);var ae=this._readableState,Se=re;if(re!==0&&(ae.emittedReadable=!1),re===0&&ae.needReadable&&(ae.length>=ae.highWaterMark||ae.ended))return u("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?le(this):W(this),null;if(re=H(re,ae),re===0&&ae.ended)return ae.length===0&&le(this),null;var oe=ae.needReadable;u("need readable",oe),(ae.length===0||ae.length-re<ae.highWaterMark)&&(oe=!0,u("length less than watermark",oe)),ae.ended||ae.reading?(oe=!1,u("reading or ended",oe)):oe&&(u("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(Se,ae)));var ee;return re>0?ee=ce(re,ae):ee=null,ee===null?(ae.needReadable=!0,re=0):ae.length-=re,ae.length===0&&(ae.ended||(ae.needReadable=!0),Se!==re&&ae.ended&&le(this)),ee!==null&&this.emit("data",ee),ee};function D(re,ae){if(ae.ended)return;if(ae.decoder){var Se=ae.decoder.end();Se&&Se.length&&(ae.buffer.push(Se),ae.length+=ae.objectMode?1:Se.length)}ae.ended=!0,W(re)}function W(re){var ae=re._readableState;ae.needReadable=!1,ae.emittedReadable||(u("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?g.nextTick(F,re):F(re))}function F(re){u("emit readable"),re.emit("readable"),Oe(re)}function L(re,ae){ae.readingMore||(ae.readingMore=!0,g.nextTick(K,re,ae))}function K(re,ae){for(var Se=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length<ae.highWaterMark&&!(u("maybeReadMore read 0"),re.read(0),Se===ae.length);)Se=ae.length;ae.readingMore=!1}w.prototype._read=function(re){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(re,ae){var Se=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=re;break;case 1:oe.pipes=[oe.pipes,re];break;default:oe.pipes.push(re);break}oe.pipesCount+=1,u("pipe count=%d opts=%j",oe.pipesCount,ae);var ee=(!ae||ae.end!==!1)&&re!==M.stdout&&re!==M.stderr,J=ee?ve:Ve;oe.endEmitted?g.nextTick(J):Se.once("end",J),re.on("unpipe",Q);function Q(ke,dt){u("onunpipe"),ke===Se&&(dt&&dt.hasUnpiped===!1&&(dt.hasUnpiped=!0,Ge()))}function ve(){u("onend"),re.end()}var _e=te(Se);re.on("drain",_e);var Te=!1;function Ge(){u("cleanup"),re.removeListener("close",ft),re.removeListener("finish",gt),re.removeListener("drain",_e),re.removeListener("error",st),re.removeListener("unpipe",Q),Se.removeListener("end",ve),Se.removeListener("end",Ve),Se.removeListener("data",ut),Te=!0,oe.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&_e()}var qe=!1;Se.on("data",ut);function ut(ke){u("ondata"),qe=!1;var dt=re.write(ke);dt===!1&&!qe&&((oe.pipesCount===1&&oe.pipes===re||oe.pipesCount>1&&me(oe.pipes,re)!==-1)&&!Te&&(u("false write response, pause",Se._readableState.awaitDrain),Se._readableState.awaitDrain++,qe=!0),Se.pause())}function st(ke){u("onerror",ke),Ve(),re.removeListener("error",st),l(re,"error")===0&&re.emit("error",ke)}R(re,"error",st);function ft(){re.removeListener("finish",gt),Ve()}re.once("close",ft);function gt(){u("onfinish"),re.removeListener("close",ft),Ve()}re.once("finish",gt);function Ve(){u("unpipe"),Se.unpipe(re)}return re.emit("pipe",Se),oe.flowing||(u("pipe resume"),Se.resume()),re};function te(re){return function(){var ae=re._readableState;u("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&l(re,"data")&&(ae.flowing=!0,Oe(re))}}w.prototype.unpipe=function(re){var ae=this._readableState,Se={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,Se),this);if(!re){var oe=ae.pipes,ee=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var J=0;J<ee;J++)oe[J].emit("unpipe",this,Se);return this}var Q=me(ae.pipes,re);return Q===-1?this:(ae.pipes.splice(Q,1),ae.pipesCount-=1,ae.pipesCount===1&&(ae.pipes=ae.pipes[0]),re.emit("unpipe",this,Se),this)},w.prototype.on=function(re,ae){var Se=n.prototype.on.call(this,re,ae);if(re==="data")this._readableState.flowing!==!1&&this.resume();else if(re==="readable"){var oe=this._readableState;!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.emittedReadable=!1,oe.reading?oe.length&&W(this):g.nextTick(fe,this))}return Se},w.prototype.addListener=w.prototype.on;function fe(re){u("readable nexttick read 0"),re.read(0)}w.prototype.resume=function(){var re=this._readableState;return re.flowing||(u("resume"),re.flowing=!0,de(this,re)),this};function de(re,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,g.nextTick(Ce,re,ae))}function Ce(re,ae){ae.reading||(u("resume read 0"),re.read(0)),ae.resumeScheduled=!1,ae.awaitDrain=0,re.emit("resume"),Oe(re),ae.flowing&&!ae.reading&&re.read(0)}w.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Oe(re){var ae=re._readableState;for(u("flow",ae.flowing);ae.flowing&&re.read()!==null;);}w.prototype.wrap=function(re){var ae=this,Se=this._readableState,oe=!1;re.on("end",function(){if(u("wrapped end"),Se.decoder&&!Se.ended){var Q=Se.decoder.end();Q&&Q.length&&ae.push(Q)}ae.push(null)}),re.on("data",function(Q){if(u("wrapped data"),Se.decoder&&(Q=Se.decoder.write(Q)),Se.objectMode&&Q==null)return;if(!Se.objectMode&&(!Q||!Q.length))return;var ve=ae.push(Q);ve||(oe=!0,re.pause())});for(var ee in re)this[ee]===void 0&&typeof re[ee]=="function"&&(this[ee]=function(Q){return function(){return re[Q].apply(re,arguments)}}(ee));for(var J=0;J<P.length;J++)re.on(P[J],this.emit.bind(this,P[J]));return this._read=function(Q){u("wrapped _read",Q),oe&&(oe=!1,re.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=ce;function ce(re,ae){if(ae.length===0)return null;var Se;return ae.objectMode?Se=ae.buffer.shift():!re||re>=ae.length?(ae.decoder?Se=ae.buffer.join(""):ae.buffer.length===1?Se=ae.buffer.head.data:Se=ae.buffer.concat(ae.length),ae.buffer.clear()):Se=Ee(re,ae.buffer,ae.decoder),Se}function Ee(re,ae,Se){var oe;return re<ae.head.data.length?(oe=ae.head.data.slice(0,re),ae.head.data=ae.head.data.slice(re)):re===ae.head.data.length?oe=ae.shift():oe=Se?ye(re,ae):ue(re,ae),oe}function ye(re,ae){var Se=ae.head,oe=1,ee=Se.data;for(re-=ee.length;Se=Se.next;){var J=Se.data,Q=re>J.length?J.length:re;if(Q===J.length?ee+=J:ee+=J.slice(0,re),re-=Q,re===0){Q===J.length?(++oe,Se.next?ae.head=Se.next:ae.head=ae.tail=null):(ae.head=Se,Se.data=J.slice(Q));break}++oe}return ae.length-=oe,ee}function ue(re,ae){var Se=i.allocUnsafe(re),oe=ae.head,ee=1;for(oe.data.copy(Se),re-=oe.data.length;oe=oe.next;){var J=oe.data,Q=re>J.length?J.length:re;if(J.copy(Se,Se.length-re,0,Q),re-=Q,re===0){Q===J.length?(++ee,oe.next?ae.head=oe.next:ae.head=ae.tail=null):(ae.head=oe,oe.data=J.slice(Q));break}++ee}return ae.length-=ee,Se}function le(re){var ae=re._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,g.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 Se=0,oe=re.length;Se<oe;Se++)if(re[Se]===ae)return Se;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"),m=T(M);function T(f){return f&&f.__esModule?f:{default:f}}z.exports=A;var b=k("./_stream_duplex"),y=(0,m.default)(k("core-util-is"));y.inherits=k("inherits"),y.inherits(A,b);function C(f,r){var l=this._transformState;l.transforming=!1;var n=l.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,r!=null&&this.push(r),n(f);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function A(f){if(!(this instanceof A))return new A(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",g)}function g(){var f=this;typeof this._flush=="function"?this._flush(function(r,l){e(f,r,l)}):e(this,null,null)}A.prototype.push=function(f,r){return this._transformState.needTransform=!1,b.prototype.push.call(this,f,r)},A.prototype._transform=function(f,r,l){throw new Error("_transform() is not implemented")},A.prototype._write=function(f,r,l){var n=this._transformState;if(n.writecb=l,n.writechunk=f,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},A.prototype._read=function(f){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0},A.prototype._destroy=function(f,r){var l=this;b.prototype._destroy.call(this,f,function(n){r(n),l.emit("close")})};function e(f,r,l){if(r)return f.emit("error",r);if(l!=null&&f.push(l),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,m){"use strict";var T=k("babel-runtime/core-js/object/define-property"),b=n(T),y=k("babel-runtime/core-js/symbol/has-instance"),C=n(y),A=k("babel-runtime/core-js/symbol"),g=n(A),e=k("babel-runtime/core-js/object/create"),f=n(e),r=k("babel-runtime/core-js/set-immediate"),l=n(r);function n(ue){return ue&&ue.__esModule?ue:{default:ue}}var i=k("process-nextick-args");z.exports=U;function a(ue,le,$){this.chunk=ue,this.encoding=le,this.callback=$,this.next=null}function c(ue){var le=this;this.next=null,this.entry=null,this.finish=function(){ye(le,ue)}}var h=!M.browser&&["v0.10","v0.9."].indexOf(M.version.slice(0,5))>-1?l.default:i.nextTick,d;U.WritableState=v;var s=(0,f.default)(k("core-util-is"));s.inherits=k("inherits");var u={deprecate:k("util-deprecate")},S=k("./internal/streams/stream"),E=k("safe-buffer").Buffer,_=m.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,S);function w(){}function v(ue,le){d=d||k("./_stream_duplex"),ue=ue||{};var $=le 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 Se=ue.decodeStrings===!1;this.decodeStrings=!Se,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){L(le,oe)},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 le=this.bufferedRequest,$=[];le;)$.push(le),le=le.next;return $},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var O;typeof g.default=="function"&&C.default&&typeof Function.prototype[C.default]=="function"?(O=Function.prototype[C.default],(0,b.default)(U,C.default,{value:function(le){return O.call(this,le)?!0:this!==U?!1:le&&le._writableState instanceof v}})):O=function(le){return le instanceof this};function U(ue){if(d=d||k("./_stream_duplex"),!O.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)),S.call(this)}U.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function I(ue,le){var $=new Error("write after end");ue.emit("error",$),i.nextTick(le,$)}function N(ue,le,$,me){var re=!0,ae=!1;return $===null?ae=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!le.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,le,$){var me=this._writableState,re=!1,ae=!me.objectMode&&R(ue);return ae&&!E.isBuffer(ue)&&(ue=P(ue)),typeof le=="function"&&($=le,le=null),ae?le="buffer":le||(le=me.defaultEncoding),typeof $!="function"&&($=w),me.ended?I(this,$):(ae||N(this,me,ue,$))&&(me.pendingcb++,re=H(this,me,ae,ue,le,$)),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&&fe(this,ue))},U.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+le);return this._writableState.defaultEncoding=le,this};function V(ue,le,$){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof le=="string"&&(le=E.from(le,$)),le}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,le,$,me,re,ae){if(!$){var Se=V(le,me,re);me!==Se&&($=!0,re="buffer",me=Se)}var oe=le.objectMode?1:me.length;le.length+=oe;var ee=le.length<le.highWaterMark;if(ee||(le.needDrain=!0),le.writing||le.corked){var J=le.lastBufferedRequest;le.lastBufferedRequest={chunk:me,encoding:re,isBuf:$,callback:ae,next:null},J?J.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else D(ue,le,!1,oe,me,re,ae);return ee}function D(ue,le,$,me,re,ae,Se){le.writelen=me,le.writecb=Se,le.writing=!0,le.sync=!0,$?ue._writev(re,le.onwrite):ue._write(re,ae,le.onwrite),le.sync=!1}function W(ue,le,$,me,re){--le.pendingcb,$?(i.nextTick(re,me),i.nextTick(ce,ue,le),ue._writableState.errorEmitted=!0,ue.emit("error",me)):(re(me),ue._writableState.errorEmitted=!0,ue.emit("error",me),ce(ue,le))}function F(ue){ue.writing=!1,ue.writecb=null,ue.length-=ue.writelen,ue.writelen=0}function L(ue,le){var $=ue._writableState,me=$.sync,re=$.writecb;if(F($),le)W(ue,$,me,le,re);else{var ae=de($);!ae&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&fe(ue,$),me?h(K,ue,$,ae,re):K(ue,$,ae,re)}}function K(ue,le,$,me){$||te(ue,le),le.pendingcb--,me(),ce(ue,le)}function te(ue,le){le.length===0&&le.needDrain&&(le.needDrain=!1,ue.emit("drain"))}function fe(ue,le){le.bufferProcessing=!0;var $=le.bufferedRequest;if(ue._writev&&$&&$.next){var me=le.bufferedRequestCount,re=new Array(me),ae=le.corkedRequestsFree;ae.entry=$;for(var Se=0,oe=!0;$;)re[Se]=$,$.isBuf||(oe=!1),$=$.next,Se+=1;re.allBuffers=oe,D(ue,le,!0,le.length,re,"",ae.finish),le.pendingcb++,le.lastBufferedRequest=null,ae.next?(le.corkedRequestsFree=ae.next,ae.next=null):le.corkedRequestsFree=new c(le),le.bufferedRequestCount=0}else{for(;$;){var ee=$.chunk,J=$.encoding,Q=$.callback,ve=le.objectMode?1:ee.length;if(D(ue,le,!1,ve,ee,J,Q),$=$.next,le.bufferedRequestCount--,le.writing)break}$===null&&(le.lastBufferedRequest=null)}le.bufferedRequest=$,le.bufferProcessing=!1}U.prototype._write=function(ue,le,$){$(new Error("_write() is not implemented"))},U.prototype._writev=null,U.prototype.end=function(ue,le,$){var me=this._writableState;typeof ue=="function"?($=ue,ue=null,le=null):typeof le=="function"&&($=le,le=null),ue!=null&&this.write(ue,le),me.corked&&(me.corked=1,this.uncork()),!me.ending&&!me.finished&&Ee(this,me,$)};function de(ue){return ue.ending&&ue.length===0&&ue.bufferedRequest===null&&!ue.finished&&!ue.writing}function Ce(ue,le){ue._final(function($){le.pendingcb--,$&&ue.emit("error",$),le.prefinished=!0,ue.emit("prefinish"),ce(ue,le)})}function Oe(ue,le){!le.prefinished&&!le.finalCalled&&(typeof ue._final=="function"?(le.pendingcb++,le.finalCalled=!0,i.nextTick(Ce,ue,le)):(le.prefinished=!0,ue.emit("prefinish")))}function ce(ue,le){var $=de(le);return $&&(Oe(ue,le),le.pendingcb===0&&(le.finished=!0,ue.emit("finish"))),$}function Ee(ue,le,$){le.ending=!0,ce(ue,le),$&&(le.finished?i.nextTick($):ue.once("finish",$)),le.ended=!0,ue.writable=!1}function ye(ue,le,$){var me=ue.entry;for(ue.entry=null;me;){var re=me.callback;le.pendingcb--,re($),me=me.next}le.corkedRequestsFree?le.corkedRequestsFree.next=ue:le.corkedRequestsFree=ue}Object.defineProperty(U.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(le){if(!this._writableState)return;this._writableState.destroyed=le}}),U.prototype.destroy=x.destroy,U.prototype._undestroy=x.undestroy,U.prototype._destroy=function(ue,le){this.end(),le(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 m=k("safe-buffer").Buffer,T=k("util");function b(y,C,A){y.copy(C,A)}z.exports=function(){function y(){M(this,y),this.head=null,this.tail=null,this.length=0}return y.prototype.push=function(A){var g={data:A,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length},y.prototype.unshift=function(A){var g={data:A,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length},y.prototype.shift=function(){if(this.length===0)return;var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(A){if(this.length===0)return"";for(var g=this.head,e=""+g.data;g=g.next;)e+=A+g.data;return e},y.prototype.concat=function(A){if(this.length===0)return m.alloc(0);if(this.length===1)return this.head.data;for(var g=m.allocUnsafe(A>>>0),e=this.head,f=0;e;)b(e.data,g,f),f+=e.data.length,e=e.next;return g},y}(),T&&T.inspect&&T.inspect.custom&&(z.exports.prototype[T.inspect.custom]=function(){var y=T.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 m(y,C){var A=this,g=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return g||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,A,f),A._writableState&&(A._writableState.errorEmitted=!0)):C&&C(f)}),this)}function T(){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:m,undestroy:T}},{"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")(),m=M.regeneratorRuntime&&Object.getOwnPropertyNames(M).indexOf("regeneratorRuntime")>=0,T=m&&M.regeneratorRuntime;if(M.regeneratorRuntime=void 0,z.exports=k("./runtime"),m)M.regeneratorRuntime=T;else try{delete M.regeneratorRuntime}catch(b){M.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,z,o){!function(M){"use strict";var m=Object.prototype,T=m.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},C=y.iterator||"@@iterator",A=y.asyncIterator||"@@asyncIterator",g=y.toStringTag||"@@toStringTag",e=typeof z=="object",f=M.regeneratorRuntime;if(f){e&&(z.exports=f);return}f=M.regeneratorRuntime=e?z.exports:{};function r(H,D,W,F){var L=D&&D.prototype instanceof d?D:d,K=Object.create(L.prototype),te=new I(F||[]);return K._invoke=w(H,W,te),K}f.wrap=r;function l(H,D,W){try{return{type:"normal",arg:H.call(D,W)}}catch(F){return{type:"throw",arg:F}}}var n="suspendedStart",i="suspendedYield",a="executing",c="completed",h={};function d(){}function s(){}function u(){}var S={};S[C]=function(){return this};var E=Object.getPrototypeOf,_=E&&E(E(N([])));_&&_!==m&&T.call(_,C)&&(S=_);var P=u.prototype=d.prototype=Object.create(S);s.prototype=P.constructor=u,u.constructor=s,u[g]=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,u):(H.__proto__=u,g in H||(H[g]="GeneratorFunction")),H.prototype=Object.create(P),H},f.awrap=function(H){return{__await:H}};function x(H){function D(L,K,te,fe){var de=l(H[L],H,K);if(de.type==="throw")fe(de.arg);else{var Ce=de.arg,Oe=Ce.value;return Oe&&typeof Oe=="object"&&T.call(Oe,"__await")?Promise.resolve(Oe.__await).then(function(ce){D("next",ce,te,fe)},function(ce){D("throw",ce,te,fe)}):Promise.resolve(Oe).then(function(ce){Ce.value=ce,te(Ce)},fe)}}var W;function F(L,K){function te(){return new Promise(function(fe,de){D(L,K,fe,de)})}return W=W?W.then(te,te):te()}this._invoke=F}R(x.prototype),x.prototype[A]=function(){return this},f.AsyncIterator=x,f.async=function(H,D,W,F){var L=new x(r(H,D,W,F));return f.isGeneratorFunction(D)?L:L.next().then(function(K){return K.done?K.value:L.next()})};function w(H,D,W){var F=n;return function(K,te){if(F===a)throw new Error("Generator is already running");if(F===c){if(K==="throw")throw te;return V()}for(W.method=K,W.arg=te;;){var fe=W.delegate;if(fe){var de=v(fe,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=a;var Ce=l(H,D,W);if(Ce.type==="normal"){if(F=W.done?c:i,Ce.arg===h)continue;return{value:Ce.arg,done:W.done}}else Ce.type==="throw"&&(F=c,W.method="throw",W.arg=Ce.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=l(W,H.iterator,D.arg);if(F.type==="throw")return D.method="throw",D.arg=F.arg,D.delegate=null,h;var L=F.arg;if(!L)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,h;if(L.done)D[H.resultName]=L.value,D.next=H.nextLoc,D.method!=="return"&&(D.method="next",D.arg=b);else return L;return D.delegate=null,h}R(P),P[g]="Generator",P[C]=function(){return this},P.toString=function(){return"[object Generator]"};function O(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 I(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(O,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 L=D.pop();if(L in H)return F.value=L,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 L(){for(;++W<H.length;)if(T.call(H,W))return L.value=H[W],L.done=!1,L;return L.value=b,L.done=!0,L};return F.next=F}}return{next:V}}f.values=N;function V(){return{value:b,done:!0}}I.prototype={constructor:I,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"&&T.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,Ce){return K.type="throw",K.arg=H,D.next=de,Ce&&(D.method="next",D.arg=b),!!Ce}for(var F=this.tryEntries.length-1;F>=0;--F){var L=this.tryEntries[F],K=L.completion;if(L.tryLoc==="root")return W("end");if(L.tryLoc<=this.prev){var te=T.call(L,"catchLoc"),fe=T.call(L,"finallyLoc");if(te&&fe){if(this.prev<L.catchLoc)return W(L.catchLoc,!0);if(this.prev<L.finallyLoc)return W(L.finallyLoc)}else if(te){if(this.prev<L.catchLoc)return W(L.catchLoc,!0)}else if(fe){if(this.prev<L.finallyLoc)return W(L.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&&T.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var L=F;break}}L&&(H==="break"||H==="continue")&&L.tryLoc<=D&&D<=L.finallyLoc&&(L=null);var K=L?L.completion:{};return K.type=H,K.arg=D,L?(this.method="next",this.next=L.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 L=F.arg;U(W)}return L}}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"),m=M.Buffer;function T(y,C){for(var A in y)C[A]=y[A]}m.from&&m.alloc&&m.allocUnsafe&&m.allocUnsafeSlow?z.exports=M:(T(M,o),o.Buffer=b);function b(y,C,A){return m(y,C,A)}T(m,b),b.from=function(y,C,A){if(typeof y=="number")throw new TypeError("Argument must not be a number");return m(y,C,A)},b.alloc=function(y,C,A){if(typeof y!="number")throw new TypeError("Argument must be a number");var g=m(y);return C!==void 0?typeof A=="string"?g.fill(C,A):g.fill(C):g.fill(0),g},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return m(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 m=k("babel-runtime/core-js/string/from-code-point"),T=i(m),b=k("babel-runtime/core-js/json/stringify"),y=i(b),C=k("babel-runtime/helpers/typeof"),A=i(C),g=k("babel-runtime/core-js/object/define-property"),e=i(g),f=k("babel-runtime/core-js/object/keys"),r=i(f),l=k("babel-runtime/core-js/object/create"),n=i(l);function i(a){return a&&a.__esModule?a:{default:a}}(function(a){a.parser=function(J,Q){return new h(J,Q)},a.SAXParser=h,a.SAXStream=P,a.createStream=_,a.MAX_BUFFER_LENGTH=64*1024;var c=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function h(J,Q){if(!(this instanceof h))return new h(J,Q);var ve=this;s(ve),ve.q=ve.c="",ve.bufferCheckPosition=a.MAX_BUFFER_LENGTH,ve.opt=Q||{},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=!!J,ve.noscript=!!(J||ve.opt.noscript),ve.state=K.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,n.default)(a.XML_ENTITIES):(0,n.default)(a.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,n.default)(O)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),fe(ve,"onready")}n.default||(Object.create=function(J){function Q(){}Q.prototype=J;var ve=new Q;return ve}),r.default||(Object.keys=function(J){var Q=[];for(var ve in J)J.hasOwnProperty(ve)&&Q.push(ve);return Q});function d(J){for(var Q=Math.max(a.MAX_BUFFER_LENGTH,10),ve=0,_e=0,Te=c.length;_e<Te;_e++){var Ge=J[c[_e]].length;if(Ge>Q)switch(c[_e]){case"textNode":Ce(J);break;case"cdata":de(J,"oncdata",J.cdata),J.cdata="";break;case"script":de(J,"onscript",J.script),J.script="";break;default:ce(J,"Max buffer length exceeded: "+c[_e])}ve=Math.max(ve,Ge)}var qe=a.MAX_BUFFER_LENGTH-ve;J.bufferCheckPosition=qe+J.position}function s(J){for(var Q=0,ve=c.length;Q<ve;Q++)J[c[Q]]=""}function u(J){Ce(J),J.cdata!==""&&(de(J,"oncdata",J.cdata),J.cdata=""),J.script!==""&&(de(J,"onscript",J.script),J.script="")}h.prototype={end:function(){Ee(this)},write:ee,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){u(this)}};var S;try{S=k("stream").Stream}catch(J){S=function(){}}var E=a.EVENTS.filter(function(J){return J!=="error"&&J!=="end"});function _(J,Q){return new P(J,Q)}function P(J,Q){if(!(this instanceof P))return new P(J,Q);S.apply(this),this._parser=new h(J,Q),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(Ge){if(!Ge)return ve.removeAllListeners(_e),ve._parser["on"+_e]=Ge,Ge;ve.on(_e,Ge)},enumerable:!0,configurable:!1})})}P.prototype=(0,n.default)(S.prototype,{constructor:{value:P}}),P.prototype.write=function(J){if(typeof M=="function"&&typeof M.isBuffer=="function"&&M.isBuffer(J)){if(!this._decoder){var Q=k("string_decoder").StringDecoder;this._decoder=new Q("utf8")}J=this._decoder.write(J)}return this._parser.write(J.toString()),this.emit("data",J),!0},P.prototype.end=function(J){return J&&J.length&&this.write(J),this._parser.end(),!0},P.prototype.on=function(J,Q){var ve=this;return!ve._parser["on"+J]&&E.indexOf(J)!==-1&&(ve._parser["on"+J]=function(){var _e=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);_e.splice(0,0,J),ve.emit.apply(ve,_e)}),S.prototype.on.call(ve,J,Q)};var R="[CDATA[",x="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",O={xml:w,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]/,I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\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(J){return J===" "||J===`
|
|
|
`||J==="\r"||J===" "}function D(J){return J==='"'||J==="'"}function W(J){return J===">"||H(J)}function F(J,Q){return J.test(Q)}function L(J,Q){return!F(J,Q)}var K=0;a.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++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,r.default)(a.ENTITIES).forEach(function(J){var Q=a.ENTITIES[J],ve=typeof Q=="number"?String.fromCharCode(Q):Q;a.ENTITIES[J]=ve});for(var te in a.STATE)a.STATE[a.STATE[te]]=te;K=a.STATE;function fe(J,Q,ve){J[Q]&&J[Q](ve)}function de(J,Q,ve){J.textNode&&Ce(J),fe(J,Q,ve)}function Ce(J){J.textNode=Oe(J.opt,J.textNode),J.textNode&&fe(J,"ontext",J.textNode),J.textNode=""}function Oe(J,Q){return J.trim&&(Q=Q.trim()),J.normalize&&(Q=Q.replace(/\s+/g," ")),Q}function ce(J,Q){return Ce(J),J.trackPosition&&(Q+=`
|
|
|
Line: `+J.line+`
|
|
|
Column: `+J.column+`
|
|
|
Char: `+J.c),Q=new Error(Q),J.error=Q,fe(J,"onerror",Q),J}function Ee(J){return J.sawRoot&&!J.closedRoot&&ye(J,"Unclosed root tag"),J.state!==K.BEGIN&&J.state!==K.BEGIN_WHITESPACE&&J.state!==K.TEXT&&ce(J,"Unexpected end"),Ce(J),J.c="",J.closed=!0,fe(J,"onend"),h.call(J,J.strict,J.opt),J}function ye(J,Q){if((typeof J=="undefined"?"undefined":(0,A.default)(J))!=="object"||!(J instanceof h))throw new Error("bad call to strictFail");J.strict&&ce(J,Q)}function ue(J){J.strict||(J.tagName=J.tagName[J.looseCase]());var Q=J.tags[J.tags.length-1]||J,ve=J.tag={name:J.tagName,attributes:{}};J.opt.xmlns&&(ve.ns=Q.ns),J.attribList.length=0,de(J,"onopentagstart",ve)}function le(J,Q){var ve=J.indexOf(":"),_e=ve<0?["",J]:J.split(":"),Te=_e[0],Ge=_e[1];return Q&&J==="xmlns"&&(Te="xmlns",Ge=""),{prefix:Te,local:Ge}}function $(J){if(J.strict||(J.attribName=J.attribName[J.looseCase]()),J.attribList.indexOf(J.attribName)!==-1||J.tag.attributes.hasOwnProperty(J.attribName)){J.attribName=J.attribValue="";return}if(J.opt.xmlns){var Q=le(J.attribName,!0),ve=Q.prefix,_e=Q.local;if(ve==="xmlns")if(_e==="xml"&&J.attribValue!==w)ye(J,"xml: prefix must be bound to "+w+`
|
|
|
Actual: `+J.attribValue);else if(_e==="xmlns"&&J.attribValue!==v)ye(J,"xmlns: prefix must be bound to "+v+`
|
|
|
Actual: `+J.attribValue);else{var Te=J.tag,Ge=J.tags[J.tags.length-1]||J;Te.ns===Ge.ns&&(Te.ns=(0,n.default)(Ge.ns)),Te.ns[_e]=J.attribValue}J.attribList.push([J.attribName,J.attribValue])}else J.tag.attributes[J.attribName]=J.attribValue,de(J,"onattribute",{name:J.attribName,value:J.attribValue});J.attribName=J.attribValue=""}function me(J,Q){if(J.opt.xmlns){var ve=J.tag,_e=le(J.tagName);ve.prefix=_e.prefix,ve.local=_e.local,ve.uri=ve.ns[_e.prefix]||"",ve.prefix&&!ve.uri&&(ye(J,"Unbound namespace prefix: "+(0,y.default)(J.tagName)),ve.uri=_e.prefix);var Te=J.tags[J.tags.length-1]||J;ve.ns&&Te.ns!==ve.ns&&(0,r.default)(ve.ns).forEach(function(vt){de(J,"onopennamespace",{prefix:vt,uri:ve.ns[vt]})});for(var Ge=0,qe=J.attribList.length;Ge<qe;Ge++){var ut=J.attribList[Ge],st=ut[0],ft=ut[1],gt=le(st,!0),Ve=gt.prefix,ke=gt.local,dt=Ve===""?"":ve.ns[Ve]||"",Bt={name:st,value:ft,prefix:Ve,local:ke,uri:dt};Ve&&Ve!=="xmlns"&&!dt&&(ye(J,"Unbound namespace prefix: "+(0,y.default)(Ve)),Bt.uri=Ve),J.tag.attributes[st]=Bt,de(J,"onattribute",Bt)}J.attribList.length=0}J.tag.isSelfClosing=!!Q,J.sawRoot=!0,J.tags.push(J.tag),de(J,"onopentag",J.tag),Q||(!J.noscript&&J.tagName.toLowerCase()==="script"?J.state=K.SCRIPT:J.state=K.TEXT,J.tag=null,J.tagName=""),J.attribName=J.attribValue="",J.attribList.length=0}function re(J){if(!J.tagName){ye(J,"Weird empty close tag."),J.textNode+="</>",J.state=K.TEXT;return}if(J.script){if(J.tagName!=="script"){J.script+="</"+J.tagName+">",J.tagName="",J.state=K.SCRIPT;return}de(J,"onscript",J.script),J.script=""}var Q=J.tags.length,ve=J.tagName;J.strict||(ve=ve[J.looseCase]());for(var _e=ve;Q--;){var Te=J.tags[Q];if(Te.name!==_e)ye(J,"Unexpected close tag");else break}if(Q<0){ye(J,"Unmatched closing tag: "+J.tagName),J.textNode+="</"+J.tagName+">",J.state=K.TEXT;return}J.tagName=ve;for(var Ge=J.tags.length;Ge-- >Q;){var qe=J.tag=J.tags.pop();J.tagName=J.tag.name,de(J,"onclosetag",J.tagName);var ut={};for(var st in qe.ns)ut[st]=qe.ns[st];var ft=J.tags[J.tags.length-1]||J;J.opt.xmlns&&qe.ns!==ft.ns&&(0,r.default)(qe.ns).forEach(function(gt){var Ve=qe.ns[gt];de(J,"onclosenamespace",{prefix:gt,uri:Ve})})}Q===0&&(J.closedRoot=!0),J.tagName=J.attribValue=J.attribName="",J.attribList.length=0,J.state=K.TEXT}function ae(J){var Q=J.entity,ve=Q.toLowerCase(),_e,Te="";return J.ENTITIES[Q]?J.ENTITIES[Q]:J.ENTITIES[ve]?J.ENTITIES[ve]:(Q=ve,Q.charAt(0)==="#"&&(Q.charAt(1)==="x"?(Q=Q.slice(2),_e=parseInt(Q,16),Te=_e.toString(16)):(Q=Q.slice(1),_e=parseInt(Q,10),Te=_e.toString(10))),Q=Q.replace(/^0+/,""),isNaN(_e)||Te.toLowerCase()!==Q?(ye(J,"Invalid character entity"),"&"+J.entity+";"):(0,T.default)(_e))}function Se(J,Q){Q==="<"?(J.state=K.OPEN_WAKA,J.startTagPosition=J.position):H(Q)||(ye(J,"Non-whitespace before first tag."),J.textNode=Q,J.state=K.TEXT)}function oe(J,Q){var ve="";return Q<J.length&&(ve=J.charAt(Q)),ve}function ee(J){var Q=this;if(this.error)throw this.error;if(Q.closed)return ce(Q,"Cannot write after close. Assign an onready handler.");if(J===null)return Ee(Q);(typeof J=="undefined"?"undefined":(0,A.default)(J))==="object"&&(J=J.toString());for(var ve=0,_e="";!(_e=oe(J,ve++),Q.c=_e,!_e);){Q.trackPosition&&(Q.position++,_e===`
|
|
|
`?(Q.line++,Q.column=0):Q.column++);switch(Q.state){case K.BEGIN:if(Q.state=K.BEGIN_WHITESPACE,_e==="\uFEFF")continue;Se(Q,_e);continue;case K.BEGIN_WHITESPACE:Se(Q,_e);continue;case K.TEXT:if(Q.sawRoot&&!Q.closedRoot){for(var Te=ve-1;_e&&_e!=="<"&&_e!=="&";)_e=oe(J,ve++),_e&&Q.trackPosition&&(Q.position++,_e===`
|
|
|
`?(Q.line++,Q.column=0):Q.column++);Q.textNode+=J.substring(Te,ve-1)}_e==="<"&&!(Q.sawRoot&&Q.closedRoot&&!Q.strict)?(Q.state=K.OPEN_WAKA,Q.startTagPosition=Q.position):(!H(_e)&&(!Q.sawRoot||Q.closedRoot)&&ye(Q,"Text data outside of root node."),_e==="&"?Q.state=K.TEXT_ENTITY:Q.textNode+=_e);continue;case K.SCRIPT:_e==="<"?Q.state=K.SCRIPT_ENDING:Q.script+=_e;continue;case K.SCRIPT_ENDING:_e==="/"?Q.state=K.CLOSE_TAG:(Q.script+="<"+_e,Q.state=K.SCRIPT);continue;case K.OPEN_WAKA:if(_e==="!")Q.state=K.SGML_DECL,Q.sgmlDecl="";else if(!H(_e))if(F(U,_e))Q.state=K.OPEN_TAG,Q.tagName=_e;else if(_e==="/")Q.state=K.CLOSE_TAG,Q.tagName="";else if(_e==="?")Q.state=K.PROC_INST,Q.procInstName=Q.procInstBody="";else{if(ye(Q,"Unencoded <"),Q.startTagPosition+1<Q.position){var Ge=Q.position-Q.startTagPosition;_e=new Array(Ge).join(" ")+_e}Q.textNode+="<"+_e,Q.state=K.TEXT}continue;case K.SGML_DECL:(Q.sgmlDecl+_e).toUpperCase()===R?(de(Q,"onopencdata"),Q.state=K.CDATA,Q.sgmlDecl="",Q.cdata=""):Q.sgmlDecl+_e==="--"?(Q.state=K.COMMENT,Q.comment="",Q.sgmlDecl=""):(Q.sgmlDecl+_e).toUpperCase()===x?(Q.state=K.DOCTYPE,(Q.doctype||Q.sawRoot)&&ye(Q,"Inappropriately located doctype declaration"),Q.doctype="",Q.sgmlDecl=""):_e===">"?(de(Q,"onsgmldeclaration",Q.sgmlDecl),Q.sgmlDecl="",Q.state=K.TEXT):(D(_e)&&(Q.state=K.SGML_DECL_QUOTED),Q.sgmlDecl+=_e);continue;case K.SGML_DECL_QUOTED:_e===Q.q&&(Q.state=K.SGML_DECL,Q.q=""),Q.sgmlDecl+=_e;continue;case K.DOCTYPE:_e===">"?(Q.state=K.TEXT,de(Q,"ondoctype",Q.doctype),Q.doctype=!0):(Q.doctype+=_e,_e==="["?Q.state=K.DOCTYPE_DTD:D(_e)&&(Q.state=K.DOCTYPE_QUOTED,Q.q=_e));continue;case K.DOCTYPE_QUOTED:Q.doctype+=_e,_e===Q.q&&(Q.q="",Q.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:Q.doctype+=_e,_e==="]"?Q.state=K.DOCTYPE:D(_e)&&(Q.state=K.DOCTYPE_DTD_QUOTED,Q.q=_e);continue;case K.DOCTYPE_DTD_QUOTED:Q.doctype+=_e,_e===Q.q&&(Q.state=K.DOCTYPE_DTD,Q.q="");continue;case K.COMMENT:_e==="-"?Q.state=K.COMMENT_ENDING:Q.comment+=_e;continue;case K.COMMENT_ENDING:_e==="-"?(Q.state=K.COMMENT_ENDED,Q.comment=Oe(Q.opt,Q.comment),Q.comment&&de(Q,"oncomment",Q.comment),Q.comment=""):(Q.comment+="-"+_e,Q.state=K.COMMENT);continue;case K.COMMENT_ENDED:_e!==">"?(ye(Q,"Malformed comment"),Q.comment+="--"+_e,Q.state=K.COMMENT):Q.state=K.TEXT;continue;case K.CDATA:_e==="]"?Q.state=K.CDATA_ENDING:Q.cdata+=_e;continue;case K.CDATA_ENDING:_e==="]"?Q.state=K.CDATA_ENDING_2:(Q.cdata+="]"+_e,Q.state=K.CDATA);continue;case K.CDATA_ENDING_2:_e===">"?(Q.cdata&&de(Q,"oncdata",Q.cdata),de(Q,"onclosecdata"),Q.cdata="",Q.state=K.TEXT):_e==="]"?Q.cdata+="]":(Q.cdata+="]]"+_e,Q.state=K.CDATA);continue;case K.PROC_INST:_e==="?"?Q.state=K.PROC_INST_ENDING:H(_e)?Q.state=K.PROC_INST_BODY:Q.procInstName+=_e;continue;case K.PROC_INST_BODY:if(!Q.procInstBody&&H(_e))continue;_e==="?"?Q.state=K.PROC_INST_ENDING:Q.procInstBody+=_e;continue;case K.PROC_INST_ENDING:_e===">"?(de(Q,"onprocessinginstruction",{name:Q.procInstName,body:Q.procInstBody}),Q.procInstName=Q.procInstBody="",Q.state=K.TEXT):(Q.procInstBody+="?"+_e,Q.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:F(I,_e)?Q.tagName+=_e:(ue(Q),_e===">"?me(Q):_e==="/"?Q.state=K.OPEN_TAG_SLASH:(H(_e)||ye(Q,"Invalid character in tag name"),Q.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:_e===">"?(me(Q,!0),re(Q)):(ye(Q,"Forward-slash in opening tag not followed by >"),Q.state=K.ATTRIB);continue;case K.ATTRIB:if(H(_e))continue;_e===">"?me(Q):_e==="/"?Q.state=K.OPEN_TAG_SLASH:F(U,_e)?(Q.attribName=_e,Q.attribValue="",Q.state=K.ATTRIB_NAME):ye(Q,"Invalid attribute name");continue;case K.ATTRIB_NAME:_e==="="?Q.state=K.ATTRIB_VALUE:_e===">"?(ye(Q,"Attribute without value"),Q.attribValue=Q.attribName,$(Q),me(Q)):H(_e)?Q.state=K.ATTRIB_NAME_SAW_WHITE:F(I,_e)?Q.attribName+=_e:ye(Q,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(_e==="=")Q.state=K.ATTRIB_VALUE;else{if(H(_e))continue;ye(Q,"Attribute without value"),Q.tag.attributes[Q.attribName]="",Q.attribValue="",de(Q,"onattribute",{name:Q.attribName,value:""}),Q.attribName="",_e===">"?me(Q):F(U,_e)?(Q.attribName=_e,Q.state=K.ATTRIB_NAME):(ye(Q,"Invalid attribute name"),Q.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(H(_e))continue;D(_e)?(Q.q=_e,Q.state=K.ATTRIB_VALUE_QUOTED):(ye(Q,"Unquoted attribute value"),Q.state=K.ATTRIB_VALUE_UNQUOTED,Q.attribValue=_e);continue;case K.ATTRIB_VALUE_QUOTED:if(_e!==Q.q){_e==="&"?Q.state=K.ATTRIB_VALUE_ENTITY_Q:Q.attribValue+=_e;continue}$(Q),Q.q="",Q.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:H(_e)?Q.state=K.ATTRIB:_e===">"?me(Q):_e==="/"?Q.state=K.OPEN_TAG_SLASH:F(U,_e)?(ye(Q,"No whitespace between attributes"),Q.attribName=_e,Q.attribValue="",Q.state=K.ATTRIB_NAME):ye(Q,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!W(_e)){_e==="&"?Q.state=K.ATTRIB_VALUE_ENTITY_U:Q.attribValue+=_e;continue}$(Q),_e===">"?me(Q):Q.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(Q.tagName)_e===">"?re(Q):F(I,_e)?Q.tagName+=_e:Q.script?(Q.script+="</"+Q.tagName,Q.tagName="",Q.state=K.SCRIPT):(H(_e)||ye(Q,"Invalid tagname in closing tag"),Q.state=K.CLOSE_TAG_SAW_WHITE);else{if(H(_e))continue;L(U,_e)?Q.script?(Q.script+="</"+_e,Q.state=K.SCRIPT):ye(Q,"Invalid tagname in closing tag."):Q.tagName=_e}continue;case K.CLOSE_TAG_SAW_WHITE:if(H(_e))continue;_e===">"?re(Q):ye(Q,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var qe,ut;switch(Q.state){case K.TEXT_ENTITY:qe=K.TEXT,ut="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:qe=K.ATTRIB_VALUE_QUOTED,ut="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:qe=K.ATTRIB_VALUE_UNQUOTED,ut="attribValue";break}_e===";"?(Q[ut]+=ae(Q),Q.entity="",Q.state=qe):F(Q.entity.length?V:N,_e)?Q.entity+=_e:(ye(Q,"Invalid character in entity name"),Q[ut]+="&"+Q.entity+_e,Q.entity="",Q.state=qe);continue;default:throw new Error(Q,"Unknown state: "+Q.state)}}return Q.position>=Q.bufferCheckPosition&&d(Q),Q}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var J=String.fromCharCode,Q=Math.floor,ve=function(){var Te=16384,Ge=[],qe,ut,st=-1,ft=arguments.length;if(!ft)return"";for(var gt="";++st<ft;){var Ve=Number(arguments[st]);if(!isFinite(Ve)||Ve<0||Ve>1114111||Q(Ve)!==Ve)throw RangeError("Invalid code point: "+Ve);Ve<=65535?Ge.push(Ve):(Ve-=65536,qe=(Ve>>10)+55296,ut=Ve%1024+56320,Ge.push(qe,ut)),(st+1===ft||Ge.length>Te)&&(gt+=J.apply(null,Ge),Ge.length=0)}return gt};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=T;var M=k("events").EventEmitter,m=k("inherits");m(T,M),T.Readable=k("readable-stream/readable.js"),T.Writable=k("readable-stream/writable.js"),T.Duplex=k("readable-stream/duplex.js"),T.Transform=k("readable-stream/transform.js"),T.PassThrough=k("readable-stream/passthrough.js"),T.Stream=T;function T(){M.call(this)}T.prototype.pipe=function(b,y){var C=this;function A(i){b.writable&&(b.write(i)===!1&&C.pause&&C.pause())}C.on("data",A);function g(){C.readable&&C.resume&&C.resume()}b.on("drain",g),!b._isStdio&&(!y||y.end!==!1)&&(C.on("end",f),C.on("close",r));var e=!1;function f(){if(e)return;e=!0,b.end()}function r(){if(e)return;e=!0,typeof b.destroy=="function"&&b.destroy()}function l(i){if(n(),M.listenerCount(this,"error")===0)throw i}C.on("error",l),b.on("error",l);function n(){C.removeListener("data",A),b.removeListener("drain",g),C.removeListener("end",f),C.removeListener("close",r),C.removeListener("error",l),b.removeListener("error",l),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 m=k("./lib/request"),T=k("./lib/response"),b=k("xtend"),y=k("builtin-status-codes"),C=k("url"),A=o;A.request=function(g,e){typeof g=="string"?g=C.parse(g):g=b(g);var f=M.location.protocol.search(/^https?:$/)===-1?"http:":"",r=g.protocol||f,l=g.hostname||g.host,n=g.port,i=g.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),g.url=(l?r+"//"+l:"")+(n?":"+n:"")+i,g.method=(g.method||"GET").toUpperCase(),g.headers=g.headers||{};var a=new m(g);return e&&a.on("response",e),a},A.get=function(e,f){var r=A.request(e,f);return r.end(),r},A.ClientRequest=m,A.IncomingMessage=T.IncomingMessage,A.Agent=function(){},A.Agent.defaultMaxSockets=4,A.globalAgent=new A.Agent,A.STATUS_CODES=y,A.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=A(M.fetch)&&A(M.ReadableStream),o.writableStream=A(M.WritableStream),o.abortController=A(M.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(g){}var m;function T(){if(m!==void 0)return m;if(M.XMLHttpRequest){m=new M.XMLHttpRequest;try{m.open("GET",M.XDomainRequest?"/":"https://example.com")}catch(g){m=null}}else m=null;return m}function b(g){var e=T();if(!e)return!1;try{return e.responseType=g,e.responseType===g}catch(f){}return!1}var y=typeof M.ArrayBuffer!="undefined",C=y&&A(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||(T()?A(T().overrideMimeType):!1),o.vbArray=A(M.VBArray);function A(g){return typeof g=="function"}m=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,z,o){(function(M,m,T){"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 A=k("./capability"),g=k("inherits"),e=k("./response"),f=k("readable-stream"),r=k("to-arraybuffer"),l=e.IncomingMessage,n=e.readyStates;function i(d,s){return A.fetch&&s?"fetch":A.mozchunkedarraybuffer?"moz-chunked-arraybuffer":A.msstream?"ms-stream":A.arraybuffer&&d?"arraybuffer":A.vbArray&&d?"text:vbarray":"text"}var a=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 T(d.auth).toString("base64")),(0,y.default)(d.headers).forEach(function(E){s.setHeader(E,d.headers[E])});var u,S=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!A.abortController)S=!1,u=!0;else if(d.mode==="prefer-streaming")u=!1;else if(d.mode==="allow-wrong-content-type")u=!A.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")u=!0;else throw new Error("Invalid value for opts.mode");s._mode=i(u,S),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};g(a,f.Writable),a.prototype.setHeader=function(d,s){var u=this,S=d.toLowerCase();if(h.indexOf(S)!==-1)return;u._headers[S]={name:d,value:s}},a.prototype.getHeader=function(d){var s=this._headers[d.toLowerCase()];return s?s.value:null},a.prototype.removeHeader=function(d){var s=this;delete s._headers[d.toLowerCase()]},a.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var s=d._opts,u=d._headers,S=null;s.method!=="GET"&&s.method!=="HEAD"&&(A.arraybuffer?S=r(T.concat(d._body)):A.blobConstructor?S=new m.Blob(d._body.map(function(w){return r(w)}),{type:(u["content-type"]||{}).value||""}):S=T.concat(d._body).toString());var E=[];if((0,y.default)(u).forEach(function(w){var v=u[w].name,O=u[w].value;Array.isArray(O)?O.forEach(function(U){E.push([v,U])}):E.push([v,O])}),d._mode==="fetch"){var _=null,P=null;if(A.abortController){var R=new AbortController;_=R.signal,d._fetchAbortController=R,"requestTimeout"in s&&s.requestTimeout!==0&&(d._fetchTimer=m.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},s.requestTimeout))}m.fetch(d._opts.url,{method:d._opts.method,headers:E,body:S||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:_}).then(function(w){d._fetchResponse=w,d._connect()},function(w){m.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",w)})}else{var x=d._xhr=new m.XMLHttpRequest;try{x.open(d._opts.method,d._opts.url,!0)}catch(w){M.nextTick(function(){d.emit("error",w)});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(w){x.setRequestHeader(w[0],w[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(S)}catch(w){M.nextTick(function(){d.emit("error",w)});return}}};function c(d){try{var s=d.status;return s!==null&&s!==0}catch(u){return!1}}a.prototype._onXHRProgress=function(){var d=this;if(!c(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},a.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new l(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(s){d.emit("error",s)}),d.emit("response",d._response)},a.prototype._write=function(d,s,u){var S=this;S._body.push(d),u()},a.prototype.abort=a.prototype.destroy=function(){var d=this;d._destroyed=!0,m.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},a.prototype.end=function(d,s,u){var S=this;typeof d=="function"&&(u=d,d=void 0),f.Writable.prototype.end.call(S,d,s,u)},a.prototype.flushHeaders=function(){},a.prototype.setTimeout=function(){},a.prototype.setNoDelay=function(){},a.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,m,T){"use strict";var b=k("babel-runtime/core-js/promise"),y=C(b);function C(l){return l&&l.__esModule?l:{default:l}}var A=k("./capability"),g=k("inherits"),e=k("readable-stream"),f=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=o.IncomingMessage=function(l,n,i,a){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){m.clearTimeout(a),c.push(null);return}c.push(new T(P.value)),_()}).catch(function(P){m.clearTimeout(a),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,_)}),A.writableStream){var d=new WritableStream({write:function(P){return new y.default(function(R,x){c._destroyed?x():c.push(new T(P))?R():c._resumeFetch=R})},close:function(){m.clearTimeout(a),c._destroyed||c.push(null)},abort:function(P){c._destroyed||c.emit("error",P)}});try{n.body.pipeTo(d).catch(function(_){m.clearTimeout(a),c._destroyed||c.emit("error",_)});return}catch(_){}}var s=n.body.getReader();h()}else{c._xhr=l,c._pos=0,c.url=l.responseURL,c.statusCode=l.status,c.statusMessage=l.statusText;var u=l.getAllResponseHeaders().split(/\r?\n/);if(u.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",!A.overrideMimeType){var S=c.rawHeaders["mime-type"];if(S){var E=S.match(/;\s*charset=([^;])(;|$)/);E&&(c._charset=E[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};g(r,e.Readable),r.prototype._read=function(){var l=this,n=l._resumeFetch;n&&(l._resumeFetch=null,n())},r.prototype._onXHRProgress=function(){var l=this,n=l._xhr,i=null;switch(l._mode){case"text:vbarray":if(n.readyState!==f.DONE)break;try{i=new m.VBArray(n.responseBody).toArray()}catch(s){}if(i!==null){l.push(new T(i));break}case"text":try{i=n.responseText}catch(s){l._mode="text:vbarray";break}if(i.length>l._pos){var a=i.substr(l._pos);if(l._charset==="x-user-defined"){for(var c=new T(a.length),h=0;h<a.length;h++)c[h]=a.charCodeAt(h)&255;l.push(c)}else l.push(a,l._charset);l._pos=i.length}break;case"arraybuffer":if(n.readyState!==f.DONE||!n.response)break;i=n.response,l.push(new T(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=n.response,n.readyState!==f.LOADING||!i)break;l.push(new T(new Uint8Array(i)));break;case"ms-stream":if(i=n.response,n.readyState!==f.LOADING)break;var d=new m.MSStreamReader;d.onprogress=function(){d.result.byteLength>l._pos&&(l.push(new T(new Uint8Array(d.result.slice(l._pos)))),l._pos=d.result.byteLength)},d.onload=function(){l.push(null)},d.readAsArrayBuffer(i);break}l._xhr.readyState===f.DONE&&l._mode!=="ms-stream"&&l.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,m=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 T(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=T(d);if(typeof s!="string"&&(M.isEncoding===m||!m(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=l,this.end=n,s=4;break;case"utf8":this.fillLast=e,s=4;break;case"base64":this.text=i,this.end=a,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,u;if(this.lastNeed){if(s=this.fillLast(d),s===void 0)return"";u=this.lastNeed,this.lastNeed=0}else u=0;return u<d.length?s?s+this.text(d,u):this.text(d,u):s||""},y.prototype.end=r,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 A(d,s,u){var S=s.length-1;if(S<u)return 0;var E=C(s[S]);return E>=0?(E>0&&(d.lastNeed=E-1),E):--S<u||E===-2?0:(E=C(s[S]),E>=0?(E>0&&(d.lastNeed=E-2),E):--S<u||E===-2?0:(E=C(s[S]),E>=0?(E>0&&(E===2?E=0:d.lastNeed=E-3),E):0))}function g(d,s,u){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,u=g(this,d,s);if(u!==void 0)return u;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 u=A(this,d,s);if(!this.lastNeed)return d.toString("utf8",s);this.lastTotal=u;var S=d.length-(u-this.lastNeed);return d.copy(this.lastChar,0,S),d.toString("utf8",s,S)}function r(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+"\uFFFD":s}function l(d,s){if((d.length-s)%2===0){var u=d.toString("utf16le",s);if(u){var S=u.charCodeAt(u.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],u.slice(0,-1)}return u}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 u=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,u)}return s}function i(d,s){var u=(d.length-s)%3;return u===0?d.toString("base64",s):(this.lastNeed=3-u,this.lastTotal=3,u===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-u))}function a(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,m){var T=k("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,C={},A=0;o.setTimeout=function(){return new g(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new g(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e.close()};function g(e,f){this._id=e,this._clearFn=f}g.prototype.unref=g.prototype.ref=function(){},g.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=A++,r=arguments.length<2?!1:y.call(arguments,1);return C[f]=!0,T(function(){C[f]&&(r?e.apply(null,r):e.call(null),o.clearImmediate(f))}),f},o.clearImmediate=typeof m=="function"?m: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(m){if(m instanceof Uint8Array){if(m.byteOffset===0&&m.byteLength===m.buffer.byteLength)return m.buffer;if(typeof m.buffer.slice=="function")return m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)}if(M.isBuffer(m)){for(var T=new Uint8Array(m.length),b=m.length,y=0;y<b;y++)T[y]=m[y];return T.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,z,o){"use strict";var M=k("punycode"),m=k("./util");o.parse=s,o.resolve=S,o.resolveObject=E,o.format=u,o.Url=T;function T(){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]*)?$/,A=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],g=["{","}","|","\\","^","`"].concat(A),e=["'"].concat(g),f=["%","/","?",";","#"].concat(e),r=["/","?","#"],l=255,n=/^[+a-z0-9A-Z_-]{0,63}$/,i=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,a={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(_&&m.isObject(_)&&_ instanceof T)return _;var x=new T;return x.parse(_,P,R),x}T.prototype.parse=function(_,P,R){if(!m.isString(_))throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var x=_.indexOf("?"),w=x!==-1&&x<_.indexOf("#")?"?":"#",v=_.split(w),O=/\\/g;v[0]=v[0].replace(O,"/"),_=v.join(w);var U=_;if(U=U.trim(),!R&&_.split("#").length===1){var I=C.exec(U);if(I)return this.path=U,this.href=U,this.pathname=I[1],I[2]?(this.search=I[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<r.length;W++){var F=U.indexOf(r[W]);F!==-1&&(D===-1||F<D)&&(D=F)}var L,K;D===-1?K=U.lastIndexOf("@"):K=U.lastIndexOf("@",D),K!==-1&&(L=U.slice(0,K),U=U.slice(K+1),this.auth=decodeURIComponent(L)),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 te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!te)for(var fe=this.hostname.split(/\./),W=0,de=fe.length;W<de;W++){var Ce=fe[W];if(!Ce)continue;if(!Ce.match(n)){for(var Oe="",ce=0,Ee=Ce.length;ce<Ee;ce++)Ce.charCodeAt(ce)>127?Oe+="x":Oe+=Ce[ce];if(!Oe.match(n)){var ye=fe.slice(0,W),ue=fe.slice(W+1),le=Ce.match(i);le&&(ye.push(le[1]),ue.unshift(le[2])),ue.length&&(U="/"+ue.join(".")+U),this.hostname=ye.join(".");break}}}this.hostname.length>l?this.hostname="":this.hostname=this.hostname.toLowerCase(),te||(this.hostname=M.toASCII(this.hostname));var $=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+$,this.href+=this.host,te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!a[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 Se=U.indexOf("#");Se!==-1&&(this.hash=U.substr(Se),U=U.slice(0,Se));var oe=U.indexOf("?");if(oe!==-1?(this.search=U.substr(oe),this.query=U.substr(oe+1),P&&(this.query=d.parse(this.query)),U=U.slice(0,oe)):P&&(this.search="",this.query={}),U&&(this.pathname=U),h[V]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var $=this.pathname||"",ee=this.search||"";this.path=$+ee}return this.href=this.format(),this};function u(_){return m.isString(_)&&(_=s(_)),_ instanceof T?_.format():T.prototype.format.call(_)}T.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var P=this.protocol||"",R=this.pathname||"",x=this.hash||"",w=!1,v="";this.host?w=_+this.host:this.hostname&&(w=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&m.isObject(this.query)&&Object.keys(this.query).length&&(v=d.stringify(this.query));var O=this.search||v&&"?"+v||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||h[P])&&w!==!1?(w="//"+(w||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):w||(w=""),x&&x.charAt(0)!=="#"&&(x="#"+x),O&&O.charAt(0)!=="?"&&(O="?"+O),R=R.replace(/[?#]/g,function(U){return encodeURIComponent(U)}),O=O.replace("#","%23"),P+w+R+O+x};function S(_,P){return s(_,!1,!0).resolve(P)}T.prototype.resolve=function(_){return this.resolveObject(s(_,!1,!0)).format()};function E(_,P){return _?s(_,!1,!0).resolveObject(P):P}T.prototype.resolveObject=function(_){if(m.isString(_)){var P=new T;P.parse(_,!1,!0),_=P}for(var R=new T,x=Object.keys(this),w=0;w<x.length;w++){var v=x[w];R[v]=this[v]}if(R.hash=_.hash,_.href==="")return R.href=R.format(),R;if(_.slashes&&!_.protocol){for(var O=Object.keys(_),U=0;U<O.length;U++){var I=O[U];I!=="protocol"&&(R[I]=_[I])}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)==="/",L=_.host||_.pathname&&_.pathname.charAt(0)==="/",K=L||F||R.host&&_.pathname,te=K,fe=R.pathname&&R.pathname.split("/")||[],de=_.pathname&&_.pathname.split("/")||[],Ce=R.protocol&&!h[R.protocol];if(Ce&&(R.hostname="",R.port=null,R.host&&(fe[0]===""?fe[0]=R.host:fe.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]===""||fe[0]==="")),L)R.host=_.host||_.host===""?_.host:R.host,R.hostname=_.hostname||_.hostname===""?_.hostname:R.hostname,R.search=_.search,R.query=_.query,fe=de;else if(de.length)fe||(fe=[]),fe.pop(),fe=fe.concat(de),R.search=_.search,R.query=_.query;else if(!m.isNullOrUndefined(_.search)){if(Ce){R.hostname=R.host=fe.shift();var Oe=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Oe&&(R.auth=Oe.shift(),R.host=R.hostname=Oe.shift())}return R.search=_.search,R.query=_.query,(!m.isNull(R.pathname)||!m.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!fe.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var ce=fe.slice(-1)[0],Ee=(R.host||_.host||fe.length>1)&&(ce==="."||ce==="..")||ce==="",ye=0,ue=fe.length;ue>=0;ue--)ce=fe[ue],ce==="."?fe.splice(ue,1):ce===".."?(fe.splice(ue,1),ye++):ye&&(fe.splice(ue,1),ye--);if(!K&&!te)for(;ye--;ye)fe.unshift("..");K&&fe[0]!==""&&(!fe[0]||fe[0].charAt(0)!=="/")&&fe.unshift(""),Ee&&fe.join("/").substr(-1)!=="/"&&fe.push("");var le=fe[0]===""||fe[0]&&fe[0].charAt(0)==="/";if(Ce){R.hostname=R.host=le?"":fe.length?fe.shift():"";var Oe=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Oe&&(R.auth=Oe.shift(),R.host=R.hostname=Oe.shift())}return K=K||R.host&&fe.length,K&&!le&&fe.unshift(""),fe.length?R.pathname=fe.join("/"):(R.pathname=null,R.path=null),(!m.isNull(R.pathname)||!m.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},T.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=m;function m(b,y){if(T("noDeprecation"))return b;var C=!1;function A(){if(!C){if(T("throwDeprecation"))throw new Error(y);T("traceDeprecation")?console.trace(y):console.warn(y),C=!0}return b.apply(this,arguments)}return A}function T(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(m,T){m.super_=T,m.prototype=Object.create(T.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:z.exports=function(m,T){m.super_=T;var b=function(){};b.prototype=T.prototype,m.prototype=new b,m.prototype.constructor=m}},{}],242:[function(k,z,o){z.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],243:[function(k,z,o){(function(M,m){var T=/%[sdj%]/g;o.format=function(D){if(!S(D)){for(var W=[],F=0;F<arguments.length;F++)W.push(C(arguments[F]));return W.join(" ")}for(var F=1,L=arguments,K=L.length,te=String(D).replace(T,function(de){if(de==="%%")return"%";if(F>=K)return de;switch(de){case"%s":return String(L[F++]);case"%d":return Number(L[F++]);case"%j":try{return JSON.stringify(L[F++])}catch(Ce){return"[Circular]"}default:return de}}),fe=L[F];F<K;fe=L[++F])d(fe)||!R(fe)?te+=" "+fe:te+=" "+C(fe);return te},o.deprecate=function(D,W){if(_(m.process))return function(){return o.deprecate(D,W).apply(this,arguments)};if(M.noDeprecation===!0)return D;var F=!1;function L(){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 L};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:g};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=A),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 A(D,W){var F=C.styles[W];return F?"["+C.colors[F][0]+"m"+D+"["+C.colors[F][1]+"m":D}function g(D,W){return D}function e(D){var W={};return D.forEach(function(F,L){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 L=W.inspect(F,D);return S(L)||(L=f(D,L,F)),L}var K=r(D,W);if(K)return K;var te=Object.keys(W),fe=e(te);if(D.showHidden&&(te=Object.getOwnPropertyNames(W)),w(W)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return l(W);if(te.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(w(W))return l(W)}var Ce="",Oe=!1,ce=["{","}"];if(c(W)&&(Oe=!0,ce=["[","]"]),v(W)){var Ee=W.name?": "+W.name:"";Ce=" [Function"+Ee+"]"}if(P(W)&&(Ce=" "+RegExp.prototype.toString.call(W)),x(W)&&(Ce=" "+Date.prototype.toUTCString.call(W)),w(W)&&(Ce=" "+l(W)),te.length===0&&(!Oe||W.length==0))return ce[0]+Ce+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 Oe?ye=n(D,W,F,fe,te):ye=te.map(function(ue){return i(D,W,F,fe,ue,Oe)}),D.seen.pop(),a(ye,Ce,ce)}function r(D,W){if(_(W))return D.stylize("undefined","undefined");if(S(W)){var F="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(F,"string")}if(u(W))return D.stylize(""+W,"number");if(h(W))return D.stylize(""+W,"boolean");if(d(W))return D.stylize("null","null")}function l(D){return"["+Error.prototype.toString.call(D)+"]"}function n(D,W,F,L,K){for(var te=[],fe=0,de=W.length;fe<de;++fe)H(W,String(fe))?te.push(i(D,W,F,L,String(fe),!0)):te.push("");return K.forEach(function(Ce){Ce.match(/^\d+$/)||te.push(i(D,W,F,L,Ce,!0))}),te}function i(D,W,F,L,K,te){var fe,de,Ce;if(Ce=Object.getOwnPropertyDescriptor(W,K)||{value:W[K]},Ce.get?Ce.set?de=D.stylize("[Getter/Setter]","special"):de=D.stylize("[Getter]","special"):Ce.set&&(de=D.stylize("[Setter]","special")),H(L,K)||(fe="["+K+"]"),de||(D.seen.indexOf(Ce.value)<0?(d(F)?de=f(D,Ce.value,null):de=f(D,Ce.value,F-1),de.indexOf(`
|
|
|
`)>-1&&(te?de=de.split(`
|
|
|
`).map(function(Oe){return" "+Oe}).join(`
|
|
|
`).substr(2):de=`
|
|
|
`+de.split(`
|
|
|
`).map(function(Oe){return" "+Oe}).join(`
|
|
|
`))):de=D.stylize("[Circular]","special")),_(fe)){if(te&&K.match(/^\d+$/))return de;fe=JSON.stringify(""+K),fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(fe=fe.substr(1,fe.length-2),fe=D.stylize(fe,"name")):(fe=fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),fe=D.stylize(fe,"string"))}return fe+": "+de}function a(D,W,F){var L=0,K=D.reduce(function(te,fe){return L++,fe.indexOf(`
|
|
|
`)>=0&&L++,te+fe.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 u(D){return typeof D=="number"}o.isNumber=u;function S(D){return typeof D=="string"}o.isString=S;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 w(D){return R(D)&&(U(D)==="[object Error]"||D instanceof Error)}o.isError=w;function v(D){return typeof D=="function"}o.isFunction=v;function O(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}o.isPrimitive=O,o.isBuffer=k("./support/isBuffer");function U(D){return Object.prototype.toString.call(D)}function I(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=[I(D.getHours()),I(D.getMinutes()),I(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),L=F.length;L--;)D[F[L]]=W[F[L]];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"),m=y(M),T=k("babel-runtime/core-js/object/keys"),b=y(T);function y(C){return C&&C.__esModule?C:{default:C}}(function(){"use strict";var C,A,g,e,f,r={}.hasOwnProperty;C=k("xmlbuilder"),A=k("./defaults").defaults,e=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},f=function(n){return"<![CDATA["+g(n)+"]]>"},g=function(n){return n.replace("]]>","]]]]><![CDATA[>")},o.Builder=function(){function l(n){var i,a,c;this.options={},a=A["0.2"];for(i in a){if(!r.call(a,i))continue;c=a[i],this.options[i]=c}for(i in n){if(!r.call(n,i))continue;c=n[i],this.options[i]=c}}return l.prototype.buildObject=function(n){var i,a,c,h,d;return i=this.options.attrkey,a=this.options.charkey,(0,b.default)(n).length===1&&this.options.rootName===A["0.2"].rootName?(d=(0,b.default)(n)[0],n=n[d]):d=this.options.rootName,c=function(s){return function(u,S){var E,_,P,R,x,w;if((typeof S=="undefined"?"undefined":(0,m.default)(S))!=="object")s.options.cdata&&e(S)?u.raw(f(S)):u.txt(S);else if(Array.isArray(S))for(R in S){if(!r.call(S,R))continue;_=S[R];for(x in _)P=_[x],u=c(u.ele(x),P).up()}else for(x in S){if(!r.call(S,x))continue;if(_=S[x],x===i){if((typeof _=="undefined"?"undefined":(0,m.default)(_))==="object")for(E in _)w=_[E],u=u.att(E,w)}else if(x===a)s.options.cdata&&e(_)?u=u.raw(f(_)):u=u.txt(_);else if(Array.isArray(_))for(R in _){if(!r.call(_,R))continue;P=_[R],typeof P=="string"?s.options.cdata&&e(P)?u=u.ele(x).raw(f(P)).up():u=u.ele(x,P).up():u=c(u.ele(x),P).up()}else(typeof _=="undefined"?"undefined":(0,m.default)(_))==="object"?u=c(u.ele(x),_).up():typeof _=="string"&&s.options.cdata&&e(_)?u=u.ele(x).raw(f(_)).up():(_==null&&(_=""),u=u.ele(x,_.toString()).up())}return u}}(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)},l}()}).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"),m=e(M),T=k("babel-runtime/core-js/object/get-own-property-names"),b=e(T),y=k("babel-runtime/core-js/object/keys"),C=e(y),A=k("babel-runtime/helpers/typeof"),g=e(A);function e(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,r,l,n,i,a,c,h,d=function(E,_){return function(){return E.apply(_,arguments)}},s=function(E,_){for(var P in _)u.call(_,P)&&(E[P]=_[P]);function R(){this.constructor=E}return R.prototype=_.prototype,E.prototype=new R,E.__super__=_.prototype,E},u={}.hasOwnProperty;c=k("sax"),l=k("events"),f=k("./bom"),a=k("./processors"),h=k("timers").setImmediate,r=k("./defaults").defaults,n=function(E){return(typeof E=="undefined"?"undefined":(0,g.default)(E))==="object"&&E!=null&&(0,C.default)(E).length===0},i=function(E,_,P){var R,x,w;for(R=0,x=E.length;R<x;R++)w=E[R],_=w(_,P);return _},o.Parser=function(S){s(E,S);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=r["0.2"];for(P in R){if(!u.call(R,P))continue;x=R[P],this.options[P]=x}for(P in _){if(!u.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(a.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(w){return function(v){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",v)}}(this),this.saxParser.onend=function(w){return function(){if(!w.saxParser.ended)return w.saxParser.ended=!0,w.emit("end",w.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(w){return function(v){var O,U,I,N,V;if(I={},I[P]="",!w.options.ignoreAttrs){V=v.attributes;for(O in V){if(!u.call(V,O))continue;!(_ in I)&&!w.options.mergeAttrs&&(I[_]={}),U=w.options.attrValueProcessors?i(w.options.attrValueProcessors,v.attributes[O],O):v.attributes[O],N=w.options.attrNameProcessors?i(w.options.attrNameProcessors,O):O,w.options.mergeAttrs?w.assignOrPush(I,N,U):I[_][N]=U}}return I["#name"]=w.options.tagNameProcessors?i(w.options.tagNameProcessors,v.name):v.name,w.options.xmlns&&(I[w.options.xmlnskey]={uri:v.uri,local:v.local}),x.push(I)}}(this),this.saxParser.onclosetag=function(w){return function(){var v,O,U,I,N,V,H,D,W,F;if(V=x.pop(),N=V["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete V["#name"],V.cdata===!0&&(v=V.cdata,delete V.cdata),W=x[x.length-1],V[P].match(/^\s*$/)&&!v?(O=V[P],delete V[P]):(w.options.trim&&(V[P]=V[P].trim()),w.options.normalize&&(V[P]=V[P].replace(/\s{2,}/g," ").trim()),V[P]=w.options.valueProcessors?i(w.options.valueProcessors,V[P],N):V[P],(0,C.default)(V).length===1&&P in V&&!w.EXPLICIT_CHARKEY&&(V=V[P])),n(V)&&(V=w.options.emptyTag!==""?w.options.emptyTag:O),w.options.validator!=null&&(F="/"+function(){var L,K,te;for(te=[],L=0,K=x.length;L<K;L++)I=x[L],te.push(I["#name"]);return te}().concat(N).join("/"),function(){var L;try{return V=w.options.validator(F,W&&W[N],V)}catch(K){return L=K,w.emit("error",L)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof V=="undefined"?"undefined":(0,g.default)(V))==="object"){if(!w.options.preserveChildrenOrder)I={},w.options.attrkey in V&&(I[w.options.attrkey]=V[w.options.attrkey],delete V[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in V&&(I[w.options.charkey]=V[w.options.charkey],delete V[w.options.charkey]),(0,b.default)(V).length>0&&(I[w.options.childkey]=V),V=I;else if(W){W[w.options.childkey]=W[w.options.childkey]||[],H={};for(U in V){if(!u.call(V,U))continue;H[U]=V[U]}W[w.options.childkey].push(H),delete V["#name"],(0,C.default)(V).length===1&&P in V&&!w.EXPLICIT_CHARKEY&&(V=V[P])}}return x.length>0?w.assignOrPush(W,N,V):(w.options.explicitRoot&&(D=V,V={},V[N]=D),w.resultObject=V,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),R=function(w){return function(v){var O,U;if(U=x[x.length-1],U)return U[P]+=v,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||v.replace(/\\n/g,"").trim()!=="")&&(U[w.options.childkey]=U[w.options.childkey]||[],O={"#name":"__text__"},O[P]=v,w.options.normalize&&(O[P]=O[P].replace(/\s{2,}/g," ").trim()),U[w.options.childkey].push(O)),U}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(w){return function(v){var O;if(O=R(v),O)return O.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 m.default(function(P){return function(R,x){return P.parseString(_,function(w,v){return w?x(w):R(v)})}}(this))},E}(l),o.parseString=function(S,E,_){var P,R,x;return _!=null?(typeof _=="function"&&(P=_),(typeof E=="undefined"?"undefined":(0,g.default)(E))==="object"&&(R=E)):(typeof E=="function"&&(P=E),R={}),x=new o.Parser(R),x.parseString(S,P)},o.parseStringPromise=function(S,E){var _,P;return(typeof E=="undefined"?"undefined":(0,g.default)(E))==="object"&&(_=E),P=new o.Parser(_),P.parseStringPromise(S)}}).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(m){return m.toLowerCase()},o.firstCharLowerCase=function(m){return m.charAt(0).toLowerCase()+m.slice(1)},o.stripPrefix=function(m){return m.replace(M,"")},o.parseNumbers=function(m){return isNaN(m)||(m=m%1===0?parseInt(m,10):parseFloat(m)),m},o.parseBooleans=function(m){return/^(?:true|false)$/i.test(m)&&(m=m.toLowerCase()==="true"),m}}).call(void 0)},{}],249:[function(k,z,o){"use strict";(function(){"use strict";var M,m,T,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function r(){this.constructor=g}return r.prototype=e.prototype,g.prototype=new r,g.__super__=e.prototype,g},C={}.hasOwnProperty;m=k("./defaults"),M=k("./builder"),T=k("./parser"),b=k("./processors"),o.defaults=m.defaults,o.processors=b,o.ValidationError=function(A){y(g,A);function g(e){this.message=e}return g}(Error),o.Builder=M.Builder,o.Parser=T.Parser,o.parseString=T.parseString,o.parseStringPromise=T.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"),m=A(M),T=k("babel-runtime/helpers/typeof"),b=A(T),y=k("babel-runtime/core-js/object/assign"),C=A(y);function A(g){return g&&g.__esModule?g:{default:g}}(function(){var g,e,f,r,l,n,i,a=[].slice,c={}.hasOwnProperty;g=function(){var d,s,u,S,E,_;if(_=arguments[0],E=2<=arguments.length?a.call(arguments,1):[],l(C.default))C.default.apply(null,arguments);else for(d=0,u=E.length;d<u;d++)if(S=E[d],S!=null)for(s in S){if(!c.call(S,s))continue;_[s]=S[s]}return _},l=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 l(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},r=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,u;return n(d)&&(u=(0,m.default)(d))&&(s=u.constructor)&&typeof s=="function"&&s instanceof s&&Function.prototype.toString.call(s)===Function.prototype.toString.call(Object)},e=function(d){return l(d.valueOf)?d.valueOf():d},z.exports.assign=g,z.exports.isFunction=l,z.exports.isObject=n,z.exports.isArray=f,z.exports.isEmpty=r,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"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C;b=k("./NodeType"),C=k("./XMLNode"),z.exports=y=function(){function A(g,e,f){if(this.parent=g,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(A.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(A.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(A.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(A.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(A.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(A.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(A.prototype,"specified",{get:function(){return!0}}),A.prototype.clone=function(){return(0,m.default)(this)},A.prototype.toString=function(g){return this.options.writer.attribute(this,this.options.writer.filterOptions(g))},A.prototype.debugInfo=function(g){return g=g||this.name,g==null?"parent: <"+this.parent.name+">":"attribute: {"+g+"}, parent: <"+this.parent.name+">"},A.prototype.isEqualNode=function(g){return g.namespaceURI!==this.namespaceURI||(g.prefix!==this.prefix||g.localName!==this.localName)?!1:!(g.value!==this.value)},A}()}).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"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,r){for(var l in r)g.call(r,l)&&(f[l]=r[l]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),C=k("./XMLCharacterData"),z.exports=y=function(e){A(f,e);function f(r,l){if(f.__super__.constructor.call(this,r),l==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(l)}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},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"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C=function(e,f){for(var r in f)A.call(f,r)&&(e[r]=f[r]);function l(){this.constructor=e}return l.prototype=f.prototype,e.prototype=new l,e.__super__=f.prototype,e},A={}.hasOwnProperty;y=k("./XMLNode"),z.exports=b=function(g){C(e,g);function e(f){e.__super__.constructor.call(this,f),this.value=""}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),e.prototype.clone=function(){return(0,m.default)(this)},e.prototype.substringData=function(f,r){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,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(f,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(f,r,l){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"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,r){for(var l in r)g.call(r,l)&&(f[l]=r[l]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){A(f,e);function f(r,l){if(f.__super__.constructor.call(this,r),l==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(l)}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},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"),m=y(M),T=k("babel-runtime/core-js/object/create"),b=y(T);function y(C){return C&&C.__esModule?C:{default:C}}(function(){var C,A,g;A=k("./XMLDOMErrorHandler"),g=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 A,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 g((0,m.default)(this.defaultParams))}}),e.prototype.getParameter=function(f){return this.params.hasOwnProperty(f)?this.params[f]:null},e.prototype.canSetParameter=function(f,r){return!0},e.prototype.setParameter=function(f,r){return r!=null?this.params[f]=r: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 m(){}return m.prototype.handleError=function(T){throw new Error(T)},m}()}).call(void 0)},{}],260:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function m(){}return m.prototype.hasFeature=function(T,b){return!0},m.prototype.createDocumentType=function(T,b,y){throw new Error("This DOM method is not implemented.")},m.prototype.createDocument=function(T,b,y){throw new Error("This DOM method is not implemented.")},m.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},m.prototype.getFeature=function(T,b){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{}],261:[function(k,z,o){"use strict";(function(){var M;z.exports=M=function(){function m(T){this.arr=T||[]}return Object.defineProperty(m.prototype,"length",{get:function(){return this.arr.length}}),m.prototype.item=function(T){return this.arr[T]||null},m.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},m}()}).call(void 0)},{}],262:[function(k,z,o){"use strict";(function(){var M,m,T,b=function(A,g){for(var e in g)y.call(g,e)&&(A[e]=g[e]);function f(){this.constructor=A}return f.prototype=g.prototype,A.prototype=new f,A.__super__=g.prototype,A},y={}.hasOwnProperty;T=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(C){b(A,C);function A(g,e,f,r,l,n){if(A.__super__.constructor.call(this,g),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(!r)throw new Error("Missing DTD attribute type. "+this.debugInfo(e));if(!l)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(e));if(n&&!l.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(r),n&&(this.defaultValue=this.stringify.dtdAttDefault(n)),this.defaultValueType=l}return A.prototype.toString=function(g){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(g))},A}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,z,o){"use strict";(function(){var M,m,T,b=function(A,g){for(var e in g)y.call(g,e)&&(A[e]=g[e]);function f(){this.constructor=A}return f.prototype=g.prototype,A.prototype=new f,A.__super__=g.prototype,A},y={}.hasOwnProperty;T=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(C){b(A,C);function A(g,e,f){if(A.__super__.constructor.call(this,g),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 A.prototype.toString=function(g){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(g))},A}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,z,o){"use strict";(function(){var M,m,T,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function r(){this.constructor=g}return r.prototype=e.prototype,g.prototype=new r,g.__super__=e.prototype,g},C={}.hasOwnProperty;b=k("./Utility").isObject,T=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(A){y(g,A);function g(e,f,r,l){if(g.__super__.constructor.call(this,e),r==null)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(l==null)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!f,this.name=this.stringify.name(r),this.type=M.EntityDeclaration,!b(l))this.value=this.stringify.dtdEntityValue(l),this.internal=!0;else{if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}}return Object.defineProperty(g.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(g.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(g.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(g.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"xmlVersion",{get:function(){return null}}),g.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},g}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,z,o){"use strict";(function(){var M,m,T,b=function(A,g){for(var e in g)y.call(g,e)&&(A[e]=g[e]);function f(){this.constructor=A}return f.prototype=g.prototype,A.prototype=new f,A.__super__=g.prototype,A},y={}.hasOwnProperty;T=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(C){b(A,C);function A(g,e,f){if(A.__super__.constructor.call(this,g),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(A.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(A.prototype,"systemId",{get:function(){return this.sysID}}),A.prototype.toString=function(g){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(g))},A}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,z,o){"use strict";(function(){var M,m,T,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function r(){this.constructor=g}return r.prototype=e.prototype,g.prototype=new r,g.__super__=e.prototype,g},C={}.hasOwnProperty;b=k("./Utility").isObject,T=k("./XMLNode"),M=k("./NodeType"),z.exports=m=function(A){y(g,A);function g(e,f,r,l){var n;g.__super__.constructor.call(this,e),b(f)&&(n=f,f=n.version,r=n.encoding,l=n.standalone),f||(f="1.0"),this.type=M.Declaration,this.version=this.stringify.xmlVersion(f),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return g.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},g}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,z,o){"use strict";(function(){var M,m,T,b,y,C,A,g,e,f=function(n,i){for(var a in i)r.call(i,a)&&(n[a]=i[a]);function c(){this.constructor=n}return c.prototype=i.prototype,n.prototype=new c,n.__super__=i.prototype,n},r={}.hasOwnProperty;e=k("./Utility").isObject,g=k("./XMLNode"),M=k("./NodeType"),m=k("./XMLDTDAttList"),b=k("./XMLDTDEntity"),T=k("./XMLDTDElement"),y=k("./XMLDTDNotation"),A=k("./XMLNamedNodeMap"),z.exports=C=function(l){f(n,l);function n(i,a,c){var h,d,s,u,S,E;if(n.__super__.constructor.call(this,i),this.type=M.DocType,i.children){for(u=i.children,d=0,s=u.length;d<s;d++)if(h=u[d],h.type===M.Element){this.name=h.name;break}}this.documentObject=i,e(a)&&(S=a,a=S.pubID,c=S.sysID),c==null&&(E=[a,c],c=E[0],a=E[1]),a!=null&&(this.pubID=this.stringify.dtdPubID(a)),c!=null&&(this.sysID=this.stringify.dtdSysID(c))}return Object.defineProperty(n.prototype,"entities",{get:function(){var a,c,h,d,s;for(d={},s=this.children,c=0,h=s.length;c<h;c++)a=s[c],a.type===M.EntityDeclaration&&!a.pe&&(d[a.name]=a);return new A(d)}}),Object.defineProperty(n.prototype,"notations",{get:function(){var a,c,h,d,s;for(d={},s=this.children,c=0,h=s.length;c<h;c++)a=s[c],a.type===M.NotationDeclaration&&(d[a.name]=a);return new A(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,a){var c;return c=new T(this,i,a),this.children.push(c),this},n.prototype.attList=function(i,a,c,h,d){var s;return s=new m(this,i,a,c,h,d),this.children.push(s),this},n.prototype.entity=function(i,a){var c;return c=new b(this,!1,i,a),this.children.push(c),this},n.prototype.pEntity=function(i,a){var c;return c=new b(this,!0,i,a),this.children.push(c),this},n.prototype.notation=function(i,a){var c;return c=new y(this,i,a),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,a){return this.element(i,a)},n.prototype.att=function(i,a,c,h,d){return this.attList(i,a,c,h,d)},n.prototype.ent=function(i,a){return this.entity(i,a)},n.prototype.pent=function(i,a){return this.pEntity(i,a)},n.prototype.not=function(i,a){return this.notation(i,a)},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}(g)}).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,m,T,b,y,C,A,g,e=function(l,n){for(var i in n)f.call(n,i)&&(l[i]=n[i]);function a(){this.constructor=l}return a.prototype=n.prototype,l.prototype=new a,l.__super__=n.prototype,l},f={}.hasOwnProperty;g=k("./Utility").isPlainObject,T=k("./XMLDOMImplementation"),m=k("./XMLDOMConfiguration"),y=k("./XMLNode"),M=k("./NodeType"),A=k("./XMLStringifier"),C=k("./XMLStringWriter"),z.exports=b=function(r){e(l,r);function l(n){l.__super__.constructor.call(this,null),this.name="#document",this.type=M.Document,this.documentURI=null,this.domConfig=new m,n||(n={}),n.writer||(n.writer=new C),this.options=n,this.stringify=new A(n)}return Object.defineProperty(l.prototype,"implementation",{value:new T}),Object.defineProperty(l.prototype,"doctype",{get:function(){var i,a,c,h;for(h=this.children,a=0,c=h.length;a<c;a++)if(i=h[a],i.type===M.DocType)return i;return null}}),Object.defineProperty(l.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(l.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(l.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].encoding:null}}),Object.defineProperty(l.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(l.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(l.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(l.prototype,"origin",{get:function(){return null}}),Object.defineProperty(l.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(l.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(l.prototype,"contentType",{get:function(){return null}}),l.prototype.end=function(n){var i;return i={},n?g(n)&&(i=n,n=this.options.writer):n=this.options.writer,n.document(this,n.filterOptions(i))},l.prototype.toString=function(n){return this.options.writer.document(this,this.options.writer.filterOptions(n))},l.prototype.createElement=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTextNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createComment=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createCDATASection=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createProcessingInstruction=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttribute=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEntityReference=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.importNode=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createElementNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttributeNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementById=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.adoptNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.renameNode=function(n,i,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByClassName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEvent=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createNodeIterator=function(n,i,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTreeWalker=function(n,i,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l}(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,m,T,b,y,C,A,g,e,f,r,l,n,i,a,c,h,d,s,u,S,E,_,P,R={}.hasOwnProperty;P=k("./Utility"),E=P.isObject,S=P.isFunction,_=P.isPlainObject,u=P.getValue,M=k("./NodeType"),l=k("./XMLDocument"),i=k("./XMLElement"),b=k("./XMLCData"),y=k("./XMLComment"),c=k("./XMLRaw"),s=k("./XMLText"),a=k("./XMLProcessingInstruction"),f=k("./XMLDeclaration"),r=k("./XMLDocType"),C=k("./XMLDTDAttList"),g=k("./XMLDTDEntity"),A=k("./XMLDTDElement"),e=k("./XMLDTDNotation"),T=k("./XMLAttribute"),d=k("./XMLStringifier"),h=k("./XMLStringWriter"),m=k("./WriterState"),z.exports=n=function(){function x(w,v,O){var U;this.name="?xml",this.type=M.Document,w||(w={}),U={},w.writer?_(w.writer)&&(U=w.writer,w.writer=new h):w.writer=new h,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(U),this.stringify=new d(w),this.onDataCallback=v||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return x.prototype.createChildNode=function(w){var v,O,U,I,N,V,H,D;switch(w.type){case M.CData:this.cdata(w.value);break;case M.Comment:this.comment(w.value);break;case M.Element:U={},H=w.attribs;for(O in H){if(!R.call(H,O))continue;v=H[O],U[O]=v.value}this.node(w.name,U);break;case M.Dummy:this.dummy();break;case M.Raw:this.raw(w.value);break;case M.Text:this.text(w.value);break;case M.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(D=w.children,N=0,V=D.length;N<V;N++)I=D[N],this.createChildNode(I),I.type===M.Element&&this.up();return this},x.prototype.dummy=function(){return this},x.prototype.node=function(w,v,O){var U;if(w==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(w));return this.openCurrent(),w=u(w),v==null&&(v={}),v=u(v),E(v)||(U=[v,O],O=U[0],v=U[1]),this.currentNode=new i(this,w,v),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null&&this.text(O),this},x.prototype.element=function(w,v,O){var U,I,N,V,H,D;if(this.currentNode&&this.currentNode.type===M.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||E(w)||S(w))for(V=this.options.noValidation,this.options.noValidation=!0,D=new l(this.options).element("TEMP_ROOT"),D.element(w),this.options.noValidation=V,H=D.children,I=0,N=H.length;I<N;I++)U=H[I],this.createChildNode(U),U.type===M.Element&&this.up();else this.node(w,v,O);return this},x.prototype.attribute=function(w,v){var O,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(w));if(w!=null&&(w=u(w)),E(w))for(O in w){if(!R.call(w,O))continue;U=w[O],this.attribute(O,U)}else S(v)&&(v=v.apply()),this.options.keepNullAttributes&&v==null?this.currentNode.attribs[w]=new T(this,w,""):v!=null&&(this.currentNode.attribs[w]=new T(this,w,v));return this},x.prototype.text=function(w){var v;return this.openCurrent(),v=new s(this,w),this.onData(this.writer.text(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.cdata=function(w){var v;return this.openCurrent(),v=new b(this,w),this.onData(this.writer.cdata(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.comment=function(w){var v;return this.openCurrent(),v=new y(this,w),this.onData(this.writer.comment(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.raw=function(w){var v;return this.openCurrent(),v=new c(this,w),this.onData(this.writer.raw(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.instruction=function(w,v){var O,U,I,N,V;if(this.openCurrent(),w!=null&&(w=u(w)),v!=null&&(v=u(v)),Array.isArray(w))for(O=0,N=w.length;O<N;O++)U=w[O],this.instruction(U);else if(E(w))for(U in w){if(!R.call(w,U))continue;I=w[U],this.instruction(U,I)}else S(v)&&(v=v.apply()),V=new a(this,w,v),this.onData(this.writer.processingInstruction(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},x.prototype.declaration=function(w,v,O){var U;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return U=new f(this,w,v,O),this.onData(this.writer.declaration(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.doctype=function(w,v,O){if(this.openCurrent(),w==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new r(this,v,O),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},x.prototype.dtdElement=function(w,v){var O;return this.openCurrent(),O=new A(this,w,v),this.onData(this.writer.dtdElement(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.attList=function(w,v,O,U,I){var N;return this.openCurrent(),N=new C(this,w,v,O,U,I),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.entity=function(w,v){var O;return this.openCurrent(),O=new g(this,!1,w,v),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.pEntity=function(w,v){var O;return this.openCurrent(),O=new g(this,!0,w,v),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},x.prototype.notation=function(w,v){var O;return this.openCurrent(),O=new e(this,w,v),this.onData(this.writer.dtdNotation(O,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(w){var v,O,U,I;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===M.Element&&(this.root=w),O="",w.type===M.Element){this.writerOptions.state=m.OpenTag,O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,I=w.attribs;for(U in I){if(!R.call(I,U))continue;v=I[U],O+=this.writer.attribute(v,this.writerOptions,this.currentLevel)}O+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=m.InsideTag}else this.writerOptions.state=m.OpenTag,O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?O+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(O+=' SYSTEM "'+w.sysID+'"'),w.children?(O+=" [",this.writerOptions.state=m.InsideTag):(this.writerOptions.state=m.CloseTag,O+=">"),O+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(O,this.currentLevel),w.isOpen=!0}},x.prototype.closeNode=function(w){var v;if(!w.isClosed)return v="",this.writerOptions.state=m.CloseTag,w.type===M.Element?v=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):v=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=m.None,this.onData(v,this.currentLevel),w.isClosed=!0},x.prototype.onData=function(w,v){return this.documentStarted=!0,this.onDataCallback(w,v+1)},x.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},x.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},x.prototype.ele=function(){return this.element.apply(this,arguments)},x.prototype.nod=function(w,v,O){return this.node(w,v,O)},x.prototype.txt=function(w){return this.text(w)},x.prototype.dat=function(w){return this.cdata(w)},x.prototype.com=function(w){return this.comment(w)},x.prototype.ins=function(w,v){return this.instruction(w,v)},x.prototype.dec=function(w,v,O){return this.declaration(w,v,O)},x.prototype.dtd=function(w,v,O){return this.doctype(w,v,O)},x.prototype.e=function(w,v,O){return this.element(w,v,O)},x.prototype.n=function(w,v,O){return this.node(w,v,O)},x.prototype.t=function(w){return this.text(w)},x.prototype.d=function(w){return this.cdata(w)},x.prototype.c=function(w){return this.comment(w)},x.prototype.r=function(w){return this.raw(w)},x.prototype.i=function(w,v){return this.instruction(w,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(w,v){return this.entity(w,v)},x.prototype.pent=function(w,v){return this.pEntity(w,v)},x.prototype.not=function(w,v){return this.notation(w,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"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,r){for(var l in r)g.call(r,l)&&(f[l]=r[l]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;C=k("./XMLNode"),b=k("./NodeType"),z.exports=y=function(e){A(f,e);function f(r){f.__super__.constructor.call(this,r),this.type=b.Dummy}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(r){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"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A,g,e,f,r,l,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;l=k("./Utility"),r=l.isObject,f=l.isFunction,e=l.getValue,g=k("./XMLNode"),b=k("./NodeType"),y=k("./XMLAttribute"),A=k("./XMLNamedNodeMap"),z.exports=C=function(a){n(c,a);function c(h,d,s){var u,S,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,S=0,E=_.length;S<E;S++)if(u=_[S],u.type===b.DocType){u.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 A(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var h,d,s,u;s=(0,m.default)(this),s.isRoot&&(s.documentObject=null),s.attribs={},u=this.attribs;for(d in u){if(!i.call(u,d))continue;h=u[d],s.attribs[d]=h.clone()}return s.children=[],this.children.forEach(function(S){var E;return E=S.clone(),E.parent=s,s.children.push(E)}),s},c.prototype.attribute=function(h,d){var s,u;if(h!=null&&(h=e(h)),r(h))for(s in h){if(!i.call(h,s))continue;u=h[s],this.attribute(s,u)}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,u;if(h==null)throw new Error("Missing attribute name. "+this.debugInfo());if(h=e(h),Array.isArray(h))for(s=0,u=h.length;s<u;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,u;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,u=this.attribs.length-1;0<=u?s<=u:s>=u;d=0<=u?++s:--s)if(!this.attribs[d].isEqualNode(h.attribs[d]))return!1;return!0},c}(g)}).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"),m=T(M);function T(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,m.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 A;return A=this.nodes[C.nodeName],this.nodes[C.nodeName]=C,A||null},y.prototype.removeNamedItem=function(C){var A;return A=this.nodes[C],delete this.nodes[C],A||null},y.prototype.item=function(C){return this.nodes[(0,m.default)(this.nodes)[C]]||null},y.prototype.getNamedItemNS=function(C,A){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,A){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,m,T,b,y,C,A,g,e,f,r,l,n,i,a,c,h,d,s,u={}.hasOwnProperty;s=k("./Utility"),d=s.isObject,h=s.isFunction,c=s.isEmpty,a=s.getValue,g=null,T=null,b=null,y=null,C=null,n=null,i=null,l=null,A=null,m=null,r=null,e=null,M=null,z.exports=f=function(){function S(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,g||(g=k("./XMLElement"),T=k("./XMLCData"),b=k("./XMLComment"),y=k("./XMLDeclaration"),C=k("./XMLDocType"),n=k("./XMLRaw"),i=k("./XMLText"),l=k("./XMLProcessingInstruction"),A=k("./XMLDummy"),m=k("./NodeType"),r=k("./XMLNodeList"),e=k("./XMLNamedNodeMap"),M=k("./DocumentPosition"))}return Object.defineProperty(S.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(S.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(S.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new r(this.children)),this.childNodeList}}),Object.defineProperty(S.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(S.prototype,"previousSibling",{get:function(){var _;return _=this.parent.children.indexOf(this),this.parent.children[_-1]||null}}),Object.defineProperty(S.prototype,"nextSibling",{get:function(){var _;return _=this.parent.children.indexOf(this),this.parent.children[_+1]||null}}),Object.defineProperty(S.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(S.prototype,"textContent",{get:function(){var _,P,R,x,w;if(this.nodeType===m.Element||this.nodeType===m.DocumentFragment){for(w="",x=this.children,P=0,R=x.length;P<R;P++)_=x[P],_.textContent&&(w+=_.textContent);return w}else return null},set:function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),S.prototype.setParent=function(E){var _,P,R,x,w;for(this.parent=E,E&&(this.options=E.options,this.stringify=E.stringify),x=this.children,w=[],P=0,R=x.length;P<R;P++)_=x[P],w.push(_.setParent(this));return w},S.prototype.element=function(E,_,P){var R,x,w,v,O,U,I,N,V,H,D;if(U=null,_===null&&P==null&&(V=[{},null],_=V[0],P=V[1]),_==null&&(_={}),_=a(_),d(_)||(H=[_,P],P=H[0],_=H[1]),E!=null&&(E=a(E)),Array.isArray(E))for(w=0,I=E.length;w<I;w++)x=E[w],U=this.element(x);else if(h(E))U=this.element(E.apply());else if(d(E))for(O in E){if(!u.call(E,O))continue;if(D=E[O],h(D)&&(D=D.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&O.indexOf(this.stringify.convertAttKey)===0)U=this.attribute(O.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(O);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[O]=x,U=this.element(R);else d(D)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&O.indexOf(this.stringify.convertTextKey)===0?U=this.element(D):(U=this.element(O),U.element(D)):U=this.element(O,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},S.prototype.insertBefore=function(E,_,P){var R,x,w,v,O;if(E!=null?E.type:void 0)return w=E,v=_,w.setParent(this),v?(x=children.indexOf(v),O=children.splice(x),children.push(w),Array.prototype.push.apply(children,O)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return x=this.parent.children.indexOf(this),O=this.parent.children.splice(x),R=this.parent.element(E,_,P),Array.prototype.push.apply(this.parent.children,O),R},S.prototype.insertAfter=function(E,_,P){var R,x,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(E));return x=this.parent.children.indexOf(this),w=this.parent.children.splice(x+1),R=this.parent.element(E,_,P),Array.prototype.push.apply(this.parent.children,w),R},S.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},S.prototype.node=function(E,_,P){var R,x;return E!=null&&(E=a(E)),_||(_={}),_=a(_),d(_)||(x=[_,P],P=x[0],_=x[1]),R=new g(this,E,_),P!=null&&R.text(P),this.children.push(R),R},S.prototype.text=function(E){var _;return d(E)&&this.element(E),_=new i(this,E),this.children.push(_),this},S.prototype.cdata=function(E){var _;return _=new T(this,E),this.children.push(_),this},S.prototype.comment=function(E){var _;return _=new b(this,E),this.children.push(_),this},S.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},S.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},S.prototype.raw=function(E){var _;return _=new n(this,E),this.children.push(_),this},S.prototype.dummy=function(){var E;return E=new A(this),E},S.prototype.instruction=function(E,_){var P,R,x,w,v;if(E!=null&&(E=a(E)),_!=null&&(_=a(_)),Array.isArray(E))for(w=0,v=E.length;w<v;w++)P=E[w],this.instruction(P);else if(d(E))for(P in E){if(!u.call(E,P))continue;R=E[P],this.instruction(P,R)}else h(_)&&(_=_.apply()),x=new l(this,E,_),this.children.push(x);return this},S.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},S.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},S.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===m.Declaration?R.children[0]=x:R.children.unshift(x),R.root()||R},S.prototype.dtd=function(E,_){var P,R,x,w,v,O,U,I,N,V;for(R=this.document(),x=new C(R,E,_),N=R.children,w=v=0,U=N.length;v<U;w=++v)if(P=N[w],P.type===m.DocType)return R.children[w]=x,x;for(V=R.children,w=O=0,I=V.length;O<I;w=++O)if(P=V[w],P.isRoot)return R.children.splice(w,0,x),x;return R.children.push(x),x},S.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},S.prototype.root=function(){var E;for(E=this;E;){if(E.type===m.Document)return E.rootObject;if(E.isRoot)return E;E=E.parent}},S.prototype.document=function(){var E;for(E=this;E;){if(E.type===m.Document)return E;E=E.parent}},S.prototype.end=function(E){return this.document().end(E)},S.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]},S.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]},S.prototype.importDocument=function(E){var _;return _=E.root().clone(),_.parent=this,_.isRoot=!1,this.children.push(_),this},S.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+">"},S.prototype.ele=function(E,_,P){return this.element(E,_,P)},S.prototype.nod=function(E,_,P){return this.node(E,_,P)},S.prototype.txt=function(E){return this.text(E)},S.prototype.dat=function(E){return this.cdata(E)},S.prototype.com=function(E){return this.comment(E)},S.prototype.ins=function(E,_){return this.instruction(E,_)},S.prototype.doc=function(){return this.document()},S.prototype.dec=function(E,_,P){return this.declaration(E,_,P)},S.prototype.e=function(E,_,P){return this.element(E,_,P)},S.prototype.n=function(E,_,P){return this.node(E,_,P)},S.prototype.t=function(E){return this.text(E)},S.prototype.d=function(E){return this.cdata(E)},S.prototype.c=function(E){return this.comment(E)},S.prototype.r=function(E){return this.raw(E)},S.prototype.i=function(E,_){return this.instruction(E,_)},S.prototype.u=function(){return this.up()},S.prototype.importXMLBuilder=function(E){return this.importDocument(E)},S.prototype.replaceChild=function(E,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.hasChildNodes=function(){return this.children.length!==0},S.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isSupported=function(E,_){return!0},S.prototype.hasAttributes=function(){return this.attribs.length!==0},S.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},S.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.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},S.prototype.getFeature=function(E,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.setUserData=function(E,_,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},S.prototype.isDescendant=function(E){var _,P,R,x,w;for(w=this.children,R=0,x=w.length;R<x;R++){if(_=w[R],E===_)return!0;if(P=_.isDescendant(E),P)return!0}return!1},S.prototype.isAncestor=function(E){return E.isDescendant(this)},S.prototype.isPreceding=function(E){var _,P;return _=this.treePosition(E),P=this.treePosition(this),_===-1||P===-1?!1:_<P},S.prototype.isFollowing=function(E){var _,P;return _=this.treePosition(E),P=this.treePosition(this),_===-1||P===-1?!1:_>P},S.prototype.treePosition=function(E){var _,P;return P=0,_=!1,this.foreachTreeNode(this.document(),function(R){if(P++,!_&&R===E)return _=!0}),_?P:-1},S.prototype.foreachTreeNode=function(E,_){var P,R,x,w,v;for(E||(E=this.document()),w=E.children,R=0,x=w.length;R<x;R++){if(P=w[R],v=_(P))return v;if(v=this.foreachTreeNode(P,_),v)return v}},S}()}).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 m(T){this.nodes=T}return Object.defineProperty(m.prototype,"length",{get:function(){return this.nodes.length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.item=function(T){return this.nodes[T]||null},m}()}).call(void 0)},{}],275:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,r){for(var l in r)g.call(r,l)&&(f[l]=r[l]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){A(f,e);function f(r,l,n){if(f.__super__.constructor.call(this,r),l==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(l),this.name=this.target,n&&(this.value=this.stringify.insValue(n))}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(r){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(r))},f.prototype.isEqualNode=function(r){return f.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.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"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,r){for(var l in r)g.call(r,l)&&(f[l]=r[l]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLNode"),z.exports=C=function(e){A(f,e);function f(r,l){if(f.__super__.constructor.call(this,r),l==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(l)}return f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(r){return this.options.writer.raw(this,this.options.writer.filterOptions(r))},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,m,T,b,y=function(g,e){for(var f in e)C.call(e,f)&&(g[f]=e[f]);function r(){this.constructor=g}return r.prototype=e.prototype,g.prototype=new r,g.__super__=e.prototype,g},C={}.hasOwnProperty;M=k("./NodeType"),b=k("./XMLWriterBase"),m=k("./WriterState"),z.exports=T=function(A){y(g,A);function g(e,f){this.stream=e,g.__super__.constructor.call(this,f)}return g.prototype.endline=function(e,f,r){return e.isLastRootNode&&f.state===m.CloseTag?"":g.__super__.endline.call(this,e,f,r)},g.prototype.document=function(e,f){var r,l,n,i,a,c,h,d,s;for(h=e.children,l=n=0,a=h.length;n<a;l=++n)r=h[l],r.isLastRootNode=l===e.children.length-1;for(f=this.filterOptions(f),d=e.children,s=[],i=0,c=d.length;i<c;i++)r=d[i],s.push(this.writeChildNode(r,f,0));return s},g.prototype.attribute=function(e,f,r){return this.stream.write(g.__super__.attribute.call(this,e,f,r))},g.prototype.cdata=function(e,f,r){return this.stream.write(g.__super__.cdata.call(this,e,f,r))},g.prototype.comment=function(e,f,r){return this.stream.write(g.__super__.comment.call(this,e,f,r))},g.prototype.declaration=function(e,f,r){return this.stream.write(g.__super__.declaration.call(this,e,f,r))},g.prototype.docType=function(e,f,r){var l,n,i,a;if(r||(r=0),this.openNode(e,f,r),f.state=m.OpenTag,this.stream.write(this.indent(e,f,r)),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,r)),f.state=m.InsideTag,a=e.children,n=0,i=a.length;n<i;n++)l=a[n],this.writeChildNode(l,f,r+1);f.state=m.CloseTag,this.stream.write("]")}return f.state=m.CloseTag,this.stream.write(f.spaceBeforeSlash+">"),this.stream.write(this.endline(e,f,r)),f.state=m.None,this.closeNode(e,f,r)},g.prototype.element=function(e,f,r){var l,n,i,a,c,h,d,s,u,S;r||(r=0),this.openNode(e,f,r),f.state=m.OpenTag,this.stream.write(this.indent(e,f,r)+"<"+e.name),u=e.attribs;for(d in u){if(!C.call(u,d))continue;l=u[d],this.attribute(l,f,r)}if(i=e.children.length,a=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=m.CloseTag,this.stream.write("</"+e.name+">")):(f.state=m.CloseTag,this.stream.write(f.spaceBeforeSlash+"/>"));else if(f.pretty&&i===1&&(a.type===M.Text||a.type===M.Raw)&&a.value!=null)this.stream.write(">"),f.state=m.InsideTag,f.suppressPrettyCount++,s=!0,this.writeChildNode(a,f,r+1),f.suppressPrettyCount--,s=!1,f.state=m.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,f,r)),f.state=m.InsideTag,S=e.children,c=0,h=S.length;c<h;c++)n=S[c],this.writeChildNode(n,f,r+1);f.state=m.CloseTag,this.stream.write(this.indent(e,f,r)+"</"+e.name+">")}return this.stream.write(this.endline(e,f,r)),f.state=m.None,this.closeNode(e,f,r)},g.prototype.processingInstruction=function(e,f,r){return this.stream.write(g.__super__.processingInstruction.call(this,e,f,r))},g.prototype.raw=function(e,f,r){return this.stream.write(g.__super__.raw.call(this,e,f,r))},g.prototype.text=function(e,f,r){return this.stream.write(g.__super__.text.call(this,e,f,r))},g.prototype.dtdAttList=function(e,f,r){return this.stream.write(g.__super__.dtdAttList.call(this,e,f,r))},g.prototype.dtdElement=function(e,f,r){return this.stream.write(g.__super__.dtdElement.call(this,e,f,r))},g.prototype.dtdEntity=function(e,f,r){return this.stream.write(g.__super__.dtdEntity.call(this,e,f,r))},g.prototype.dtdNotation=function(e,f,r){return this.stream.write(g.__super__.dtdNotation.call(this,e,f,r))},g}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,z,o){"use strict";(function(){var M,m,T=function(C,A){for(var g in A)b.call(A,g)&&(C[g]=A[g]);function e(){this.constructor=C}return e.prototype=A.prototype,C.prototype=new e,C.__super__=A.prototype,C},b={}.hasOwnProperty;m=k("./XMLWriterBase"),z.exports=M=function(y){T(C,y);function C(A){C.__super__.constructor.call(this,A)}return C.prototype.document=function(A,g){var e,f,r,l,n;for(g=this.filterOptions(g),l="",n=A.children,f=0,r=n.length;f<r;f++)e=n[f],l+=this.writeChildNode(e,g,0);return g.pretty&&l.slice(-g.newline.length)===g.newline&&(l=l.slice(0,-g.newline.length)),l},C}(m)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,z,o){"use strict";(function(){var M,m=function(y,C){return function(){return y.apply(C,arguments)}},T={}.hasOwnProperty;z.exports=M=function(){function b(y){this.assertLegalName=m(this.assertLegalName,this),this.assertLegalChar=m(this.assertLegalChar,this);var C,A,g;y||(y={}),this.options=y,this.options.version||(this.options.version="1.0"),A=y.stringify||{};for(C in A){if(!T.call(A,C))continue;g=A[C],this[C]=g}}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,A;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]/,A=y.match(C))throw new Error("Invalid character in string: "+y+" at index "+A.index)}else if(this.options.version==="1.1"&&(C=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,A=y.match(C)))throw new Error("Invalid character in string: "+y+" at index "+A.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,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},b.prototype.attEscape=function(y){var C;return this.options.noValidation?y:(C=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(C,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},b}()}).call(void 0)},{}],280:[function(k,z,o){"use strict";var M=k("babel-runtime/core-js/object/create"),m=T(M);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,C,A=function(f,r){for(var l in r)g.call(r,l)&&(f[l]=r[l]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=C=function(e){A(f,e);function f(r,l){if(f.__super__.constructor.call(this,r),l==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(l)}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 l,n,i;for(i="",n=this.previousSibling;n;)i=n.data+i,n=n.previousSibling;for(i+=this.data,l=this.nextSibling;l;)i=i+l.data,l=l.nextSibling;return i}}),f.prototype.clone=function(){return(0,m.default)(this)},f.prototype.toString=function(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))},f.prototype.splitText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},f.prototype.replaceWholeText=function(r){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,m,T,b,y,C,A,g,e,f,r,l,n,i,a,c,h,d={}.hasOwnProperty;h=k("./Utility").assign,M=k("./NodeType"),e=k("./XMLDeclaration"),f=k("./XMLDocType"),T=k("./XMLCData"),b=k("./XMLComment"),l=k("./XMLElement"),i=k("./XMLRaw"),a=k("./XMLText"),n=k("./XMLProcessingInstruction"),r=k("./XMLDummy"),y=k("./XMLDTDAttList"),C=k("./XMLDTDElement"),A=k("./XMLDTDEntity"),g=k("./XMLDTDNotation"),m=k("./WriterState"),z.exports=c=function(){function s(u){var S,E,_;u||(u={}),this.options=u,E=u.writer||{};for(S in E){if(!d.call(E,S))continue;_=E[S],this["_"+S]=this[S],this[S]=_}}return s.prototype.filterOptions=function(u){var S,E,_,P,R,x,w,v;return u||(u={}),u=h({},this.options,u),S={writer:this},S.pretty=u.pretty||!1,S.allowEmpty=u.allowEmpty||!1,S.indent=(E=u.indent)!=null?E:" ",S.newline=(_=u.newline)!=null?_:`
|
|
|
`,S.offset=(P=u.offset)!=null?P:0,S.dontPrettyTextNodes=(R=(x=u.dontPrettyTextNodes)!=null?x:u.dontprettytextnodes)!=null?R:0,S.spaceBeforeSlash=(w=(v=u.spaceBeforeSlash)!=null?v:u.spacebeforeslash)!=null?w:"",S.spaceBeforeSlash===!0&&(S.spaceBeforeSlash=" "),S.suppressPrettyCount=0,S.user={},S.state=m.None,S},s.prototype.indent=function(u,S,E){var _;return!S.pretty||S.suppressPrettyCount?"":S.pretty&&(_=(E||0)+S.offset+1,_>0)?new Array(_).join(S.indent):""},s.prototype.endline=function(u,S,E){return!S.pretty||S.suppressPrettyCount?"":S.newline},s.prototype.attribute=function(u,S,E){var _;return this.openAttribute(u,S,E),_=" "+u.name+'="'+u.value+'"',this.closeAttribute(u,S,E),_},s.prototype.cdata=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<![CDATA[",S.state=m.InsideTag,_+=u.value,S.state=m.CloseTag,_+="]]>"+this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.comment=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<!-- ",S.state=m.InsideTag,_+=u.value,S.state=m.CloseTag,_+=" -->"+this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.declaration=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<?xml",S.state=m.InsideTag,_+=' version="'+u.version+'"',u.encoding!=null&&(_+=' encoding="'+u.encoding+'"'),u.standalone!=null&&(_+=' standalone="'+u.standalone+'"'),S.state=m.CloseTag,_+=S.spaceBeforeSlash+"?>",_+=this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.docType=function(u,S,E){var _,P,R,x,w;if(E||(E=0),this.openNode(u,S,E),S.state=m.OpenTag,x=this.indent(u,S,E),x+="<!DOCTYPE "+u.root().name,u.pubID&&u.sysID?x+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.sysID&&(x+=' SYSTEM "'+u.sysID+'"'),u.children.length>0){for(x+=" [",x+=this.endline(u,S,E),S.state=m.InsideTag,w=u.children,P=0,R=w.length;P<R;P++)_=w[P],x+=this.writeChildNode(_,S,E+1);S.state=m.CloseTag,x+="]"}return S.state=m.CloseTag,x+=S.spaceBeforeSlash+">",x+=this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),x},s.prototype.element=function(u,S,E){var _,P,R,x,w,v,O,U,I,N,V,H,D,W;E||(E=0),N=!1,V="",this.openNode(u,S,E),S.state=m.OpenTag,V+=this.indent(u,S,E)+"<"+u.name,H=u.attribs;for(I in H){if(!d.call(H,I))continue;_=H[I],V+=this.attribute(_,S,E)}if(R=u.children.length,x=R===0?null:u.children[0],R===0||u.children.every(function(F){return(F.type===M.Text||F.type===M.Raw)&&F.value===""}))S.allowEmpty?(V+=">",S.state=m.CloseTag,V+="</"+u.name+">"+this.endline(u,S,E)):(S.state=m.CloseTag,V+=S.spaceBeforeSlash+"/>"+this.endline(u,S,E));else if(S.pretty&&R===1&&(x.type===M.Text||x.type===M.Raw)&&x.value!=null)V+=">",S.state=m.InsideTag,S.suppressPrettyCount++,N=!0,V+=this.writeChildNode(x,S,E+1),S.suppressPrettyCount--,N=!1,S.state=m.CloseTag,V+="</"+u.name+">"+this.endline(u,S,E);else{if(S.dontPrettyTextNodes){for(D=u.children,w=0,O=D.length;w<O;w++)if(P=D[w],(P.type===M.Text||P.type===M.Raw)&&P.value!=null){S.suppressPrettyCount++,N=!0;break}}for(V+=">"+this.endline(u,S,E),S.state=m.InsideTag,W=u.children,v=0,U=W.length;v<U;v++)P=W[v],V+=this.writeChildNode(P,S,E+1);S.state=m.CloseTag,V+=this.indent(u,S,E)+"</"+u.name+">",N&&S.suppressPrettyCount--,V+=this.endline(u,S,E),S.state=m.None}return this.closeNode(u,S,E),V},s.prototype.writeChildNode=function(u,S,E){switch(u.type){case M.CData:return this.cdata(u,S,E);case M.Comment:return this.comment(u,S,E);case M.Element:return this.element(u,S,E);case M.Raw:return this.raw(u,S,E);case M.Text:return this.text(u,S,E);case M.ProcessingInstruction:return this.processingInstruction(u,S,E);case M.Dummy:return"";case M.Declaration:return this.declaration(u,S,E);case M.DocType:return this.docType(u,S,E);case M.AttributeDeclaration:return this.dtdAttList(u,S,E);case M.ElementDeclaration:return this.dtdElement(u,S,E);case M.EntityDeclaration:return this.dtdEntity(u,S,E);case M.NotationDeclaration:return this.dtdNotation(u,S,E);default:throw new Error("Unknown XML node type: "+u.constructor.name)}},s.prototype.processingInstruction=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<?",S.state=m.InsideTag,_+=u.target,u.value&&(_+=" "+u.value),S.state=m.CloseTag,_+=S.spaceBeforeSlash+"?>",_+=this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.raw=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E),S.state=m.InsideTag,_+=u.value,S.state=m.CloseTag,_+=this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.text=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E),S.state=m.InsideTag,_+=u.value,S.state=m.CloseTag,_+=this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.dtdAttList=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<!ATTLIST",S.state=m.InsideTag,_+=" "+u.elementName+" "+u.attributeName+" "+u.attributeType,u.defaultValueType!=="#DEFAULT"&&(_+=" "+u.defaultValueType),u.defaultValue&&(_+=' "'+u.defaultValue+'"'),S.state=m.CloseTag,_+=S.spaceBeforeSlash+">"+this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.dtdElement=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<!ELEMENT",S.state=m.InsideTag,_+=" "+u.name+" "+u.value,S.state=m.CloseTag,_+=S.spaceBeforeSlash+">"+this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.dtdEntity=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<!ENTITY",S.state=m.InsideTag,u.pe&&(_+=" %"),_+=" "+u.name,u.value?_+=' "'+u.value+'"':(u.pubID&&u.sysID?_+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.sysID&&(_+=' SYSTEM "'+u.sysID+'"'),u.nData&&(_+=" NDATA "+u.nData)),S.state=m.CloseTag,_+=S.spaceBeforeSlash+">"+this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.dtdNotation=function(u,S,E){var _;return this.openNode(u,S,E),S.state=m.OpenTag,_=this.indent(u,S,E)+"<!NOTATION",S.state=m.InsideTag,_+=" "+u.name,u.pubID&&u.sysID?_+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.pubID?_+=' PUBLIC "'+u.pubID+'"':u.sysID&&(_+=' SYSTEM "'+u.sysID+'"'),S.state=m.CloseTag,_+=S.spaceBeforeSlash+">"+this.endline(u,S,E),S.state=m.None,this.closeNode(u,S,E),_},s.prototype.openNode=function(u,S,E){},s.prototype.closeNode=function(u,S,E){},s.prototype.openAttribute=function(u,S,E){},s.prototype.closeAttribute=function(u,S,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,m,T,b,y,C,A,g,e,f;f=k("./Utility"),g=f.assign,e=f.isFunction,T=k("./XMLDOMImplementation"),b=k("./XMLDocument"),y=k("./XMLDocumentCB"),A=k("./XMLStringWriter"),C=k("./XMLStreamWriter"),M=k("./NodeType"),m=k("./WriterState"),z.exports.create=function(r,l,n,i){var a,c;if(r==null)throw new Error("Root element needs a name.");return i=g({},l,n,i),a=new b(i),c=a.element(r),i.headless||(a.declaration(i),(i.pubID!=null||i.sysID!=null)&&a.dtd(i)),c},z.exports.begin=function(r,l,n){var i;return e(r)&&(i=[r,l],l=i[0],n=i[1],r={}),l?new y(r,l,n):new b(r)},z.exports.stringWriter=function(r){return new A(r)},z.exports.streamWriter=function(r,l){return new C(r,l)},z.exports.implementation=new T,z.exports.nodeType=M,z.exports.writerState=m}).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=m;var M=Object.prototype.hasOwnProperty;function m(){for(var T={},b=0;b<arguments.length;b++){var y=arguments[b];for(var C in y)M.call(y,C)&&(T[C]=y[C])}return T}},{}],284:[function(k,z,o){"use strict";var M=k("buffer").Buffer,m=k("./sha"),T=k("./md5"),b={sha1:m,md5:T},y=64,C=M.alloc(y);C.fill(0);function A(f,r,l){M.isBuffer(r)||(r=M.from(r)),M.isBuffer(l)||(l=M.from(l)),r.length>y?r=f(r):r.length<y&&(r=M.concat([r,C],y));for(var n=M.alloc(y),i=M.alloc(y),a=0;a<y;a++)n[a]=r[a]^54,i[a]=r[a]^92;var c=f(M.concat([n,l]));return f(M.concat([i,c]))}function g(f,r){f=f||"sha1";var l=b[f],n=[],i=0;return l||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=r?A(l,r,h):l(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 g(f)},o.createHmac=function(f,r){return g(f,r)},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,m=4,T=M.alloc(m);T.fill(0);var b=8;function y(g,e){if(g.length%m!==0){var f=g.length+(m-g.length%m);g=M.concat([g,T],f)}for(var r=[],l=e?g.readInt32BE:g.readInt32LE,n=0;n<g.length;n+=m)r.push(l.call(g,n));return r}function C(g,e,f){for(var r=M.alloc(e),l=f?r.writeInt32BE:r.writeInt32LE,n=0;n<g.length;n++)l.call(r,g[n],n*4,!0);return r}function A(g,e,f,r){M.isBuffer(g)||(g=M.from(g));var l=e(y(g,r),g.length*b);return C(l,f,r)}z.exports={hash:A}},{buffer:73}],286:[function(k,z,o){"use strict";var M=k("./helpers");function m(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function T(r,l){r[l>>5]|=128<<l%32,r[(l+64>>>9<<4)+14]=l;for(var n=1732584193,i=-271733879,a=-1732584194,c=271733878,h=0;h<r.length;h+=16){var d=n,s=i,u=a,S=c;n=y(n,i,a,c,r[h+0],7,-680876936),c=y(c,n,i,a,r[h+1],12,-389564586),a=y(a,c,n,i,r[h+2],17,606105819),i=y(i,a,c,n,r[h+3],22,-1044525330),n=y(n,i,a,c,r[h+4],7,-176418897),c=y(c,n,i,a,r[h+5],12,1200080426),a=y(a,c,n,i,r[h+6],17,-1473231341),i=y(i,a,c,n,r[h+7],22,-45705983),n=y(n,i,a,c,r[h+8],7,1770035416),c=y(c,n,i,a,r[h+9],12,-1958414417),a=y(a,c,n,i,r[h+10],17,-42063),i=y(i,a,c,n,r[h+11],22,-1990404162),n=y(n,i,a,c,r[h+12],7,1804603682),c=y(c,n,i,a,r[h+13],12,-40341101),a=y(a,c,n,i,r[h+14],17,-1502002290),i=y(i,a,c,n,r[h+15],22,1236535329),n=C(n,i,a,c,r[h+1],5,-165796510),c=C(c,n,i,a,r[h+6],9,-1069501632),a=C(a,c,n,i,r[h+11],14,643717713),i=C(i,a,c,n,r[h+0],20,-373897302),n=C(n,i,a,c,r[h+5],5,-701558691),c=C(c,n,i,a,r[h+10],9,38016083),a=C(a,c,n,i,r[h+15],14,-660478335),i=C(i,a,c,n,r[h+4],20,-405537848),n=C(n,i,a,c,r[h+9],5,568446438),c=C(c,n,i,a,r[h+14],9,-1019803690),a=C(a,c,n,i,r[h+3],14,-187363961),i=C(i,a,c,n,r[h+8],20,1163531501),n=C(n,i,a,c,r[h+13],5,-1444681467),c=C(c,n,i,a,r[h+2],9,-51403784),a=C(a,c,n,i,r[h+7],14,1735328473),i=C(i,a,c,n,r[h+12],20,-1926607734),n=A(n,i,a,c,r[h+5],4,-378558),c=A(c,n,i,a,r[h+8],11,-2022574463),a=A(a,c,n,i,r[h+11],16,1839030562),i=A(i,a,c,n,r[h+14],23,-35309556),n=A(n,i,a,c,r[h+1],4,-1530992060),c=A(c,n,i,a,r[h+4],11,1272893353),a=A(a,c,n,i,r[h+7],16,-155497632),i=A(i,a,c,n,r[h+10],23,-1094730640),n=A(n,i,a,c,r[h+13],4,681279174),c=A(c,n,i,a,r[h+0],11,-358537222),a=A(a,c,n,i,r[h+3],16,-722521979),i=A(i,a,c,n,r[h+6],23,76029189),n=A(n,i,a,c,r[h+9],4,-640364487),c=A(c,n,i,a,r[h+12],11,-421815835),a=A(a,c,n,i,r[h+15],16,530742520),i=A(i,a,c,n,r[h+2],23,-995338651),n=g(n,i,a,c,r[h+0],6,-198630844),c=g(c,n,i,a,r[h+7],10,1126891415),a=g(a,c,n,i,r[h+14],15,-1416354905),i=g(i,a,c,n,r[h+5],21,-57434055),n=g(n,i,a,c,r[h+12],6,1700485571),c=g(c,n,i,a,r[h+3],10,-1894986606),a=g(a,c,n,i,r[h+10],15,-1051523),i=g(i,a,c,n,r[h+1],21,-2054922799),n=g(n,i,a,c,r[h+8],6,1873313359),c=g(c,n,i,a,r[h+15],10,-30611744),a=g(a,c,n,i,r[h+6],15,-1560198380),i=g(i,a,c,n,r[h+13],21,1309151649),n=g(n,i,a,c,r[h+4],6,-145523070),c=g(c,n,i,a,r[h+11],10,-1120210379),a=g(a,c,n,i,r[h+2],15,718787259),i=g(i,a,c,n,r[h+9],21,-343485551),n=e(n,d),i=e(i,s),a=e(a,u),c=e(c,S)}return Array(n,i,a,c)}function b(r,l,n,i,a,c){return e(f(e(e(l,r),e(i,c)),a),n)}function y(r,l,n,i,a,c,h){return b(l&n|~l&i,r,l,a,c,h)}function C(r,l,n,i,a,c,h){return b(l&i|n&~i,r,l,a,c,h)}function A(r,l,n,i,a,c,h){return b(l^n^i,r,l,a,c,h)}function g(r,l,n,i,a,c,h){return b(n^(l|~i),r,l,a,c,h)}function e(r,l){var n=(r&65535)+(l&65535),i=(r>>16)+(l>>16)+(n>>16);return i<<16|n&65535}function f(r,l){return r<<l|r>>>32-l}z.exports=function(l){return M.hash(l,T,16)}},{"./helpers":285}],287:[function(k,z,o){"use strict";var M=k("./helpers");function m(A,g){A[g>>5]|=128<<24-g%32,A[(g+64>>9<<4)+15]=g;for(var e=Array(80),f=1732584193,r=-271733879,l=-1732584194,n=271733878,i=-1009589776,a=0;a<A.length;a+=16){for(var c=f,h=r,d=l,s=n,u=i,S=0;S<80;S++){S<16?e[S]=A[a+S]:e[S]=C(e[S-3]^e[S-8]^e[S-14]^e[S-16],1);var E=y(y(C(f,5),T(S,r,l,n)),y(y(i,e[S]),b(S)));i=n,n=l,l=C(r,30),r=f,f=E}f=y(f,c),r=y(r,h),l=y(l,d),n=y(n,s),i=y(i,u)}return Array(f,r,l,n,i)}function T(A,g,e,f){return A<20?g&e|~g&f:A<40?g^e^f:A<60?g&e|g&f|e&f:g^e^f}function b(A){return A<20?1518500249:A<40?1859775393:A<60?-1894007588:-899497514}function y(A,g){var e=(A&65535)+(g&65535),f=(A>>16)+(g>>16)+(e>>16);return f<<16|e&65535}function C(A,g){return A<<g|A>>>32-g}z.exports=function(g){return M.hash(g,m,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 m=k("babel-runtime/helpers/typeof"),T=b(m);function b(f){return f&&f.__esModule?f:{default:f}}var y=k("stream"),C=y.Stream,A=k("../lib/common/utils/isArray"),g=A.isArray;z.exports.string=function(r){return typeof r=="string"},z.exports.array=g,z.exports.buffer=M.isBuffer;function e(f){return f instanceof C}z.exports.writableStream=function(r){return e(r)&&typeof r._write=="function"&&(0,T.default)(r._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(m){return M}},o.escape=k("escape-html"),o.timestamp=function(m){if(m){var T=m;return typeof T=="string"&&(T=Number(T)),String(m).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,z,o){(function(M,m){"use strict";var T=k("babel-runtime/core-js/json/stringify"),b=A(T),y=k("babel-runtime/helpers/typeof"),C=A(y);function A(S){return S&&S.__esModule?S:{default:S}}var g=k("util"),e=k("url"),f=k("http"),r=k("https"),l=k("debug")("urllib"),n=k("humanize-ms"),i,a=0,c=Math.pow(2,31)-10,h=/^https?:\/\//i;function d(S,E){return S===void 0?E:S}function s(S,E){return function(_,P,R){if(_)return E(_);S({data:P,status:R.statusCode,headers:R.headers,res:R})}}o.TIMEOUTS=[n("300s"),n("300s")];var u=["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=g.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),_=_||{},a>=c&&(a=0);var x=++a;_.requestUrls=_.requestUrls||[];var w={requestId:x,url:E,args:_,ctx:_.ctx};_.emitter&&_.emitter.emit("request",w),_.timeout=_.timeout||o.TIMEOUTS,_.maxRedirects=_.maxRedirects||10,_.streaming=_.streaming||_.customResponse;var v=Date.now(),O;typeof E=="string"?(h.test(E)||(E="http://"+E),O=e.parse(E)):O=E;var U=(_.type||_.method||O.method||"GET").toUpperCase(),I=O.port||80,N=f,V=d(_.agent,o.agent),H=_.fixJSONCtlChars;O.protocol==="https:"&&(N=r,V=d(_.httpsAgent,o.httpsAgent),O.port||(I=443));var D={host:O.hostname||O.host||"localhost",path:O.path||"/",method:U,port:I,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 L=W[F];_.hasOwnProperty(L)&&(D[L]=_[L])}D.rejectUnauthorized===!1&&!D.hasOwnProperty("secureOptions")&&(D.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var K=_.auth||O.auth;K&&(D.auth=K);var te=_.content||_.data,fe=U==="GET"||U==="HEAD"||_.dataAsQueryString;if(!_.content&&(te&&!(typeof te=="string"||m.isBuffer(te))))if(fe)te=_.nestedQuerystring?qs.stringify(te):querystring.stringify(te);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"?te=(0,b.default)(te):te=_.nestedQuerystring?qs.stringify(te):querystring.stringify(te)}fe&&te&&(D.path+=(O.query?"&":"?")+te,te=null);var Ce=0;if(te){var Oe=te.length;m.isBuffer(te)||(Oe=m.byteLength(te)),Ce=D.headers["Content-Length"]=Oe}_.dataType==="json"&&(D.headers.Accept="application/json"),typeof _.beforeRequest=="function"&&_.beforeRequest(D);var ce=null,Ee=null,ye=null,ue=!1,le=!1,$=0,me=-1,re=!1,ae="",Se="",oe=null;_.timing&&(oe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function ee(){ce&&(clearTimeout(ce),ce=null)}function J(){Ee&&(clearTimeout(Ee),Ee=null)}function Q(ke,dt,Bt){if(J(),!P){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),x,M.pid,D.method,E),ke&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),x,M.pid,ke.name,ke.message,ke.stack);return}var vt=P;P=null;var Rt={};if(Bt&&(me=Bt.statusCode,Rt=Bt.headers),me===401&&Rt["www-authenticate"]&&(!_.headers||!_.headers.Authorization)&&_.digestAuth){var ot=Rt["www-authenticate"];if(ot.indexOf("Digest ")>=0)return l("Request#%d %s: got digest auth header WWW-Authenticate: %s",x,E,ot),_.headers=_.headers||{},_.headers.Authorization=digestAuthHeader(D.method,D.path,ot,_.digestAuth),l("Request#%d %s: auth with digest header: %s",x,E,_.headers.Authorization),Bt.headers["set-cookie"]&&(_.headers.Cookie=Bt.headers["set-cookie"].join(";")),o.requestWithCallback(E,_,vt)}var Je=Date.now()-v;oe&&(oe.contentDownload=Je),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Je,$,me,D.method,D.host,D.path,le,oe);var et={status:me,statusCode:me,headers:Rt,size:$,aborted:re,rt:Je,keepAliveSocket:le,data:dt,requestUrls:_.requestUrls,timing:oe,remoteAddress:ae,remotePort:Se};if(ke){var Me="";V&&typeof V.getCurrentStatus=="function"&&(Me=", agent status: "+(0,b.default)(V.getCurrentStatus())),ke.message+=", "+D.method+" "+E+" "+me+" (connected: "+ue+", keepalive socket: "+le+Me+`)
|
|
|
headers: `+(0,b.default)(Rt),ke.data=dt,ke.path=D.path,ke.status=me,ke.headers=Rt,ke.res=et}vt(ke,dt,_.streaming?Bt:et),_.emitter&&(w.url=E,w.socket=gt&>.connection,w.options=D,w.size=Ce,_.emitter.emit("response",{requestId:x,error:ke,ctx:_.ctx,req:w,res:et}))}function ve(ke){var dt=null;if(_.followRedirect&&statuses.redirect[ke.statusCode]){_._followRedirectCount=(_._followRedirectCount||0)+1;var Bt=ke.headers.location;if(!Bt)dt=new Error("Got statusCode "+ke.statusCode+" but cannot resolve next location from headers"),dt.name="FollowRedirectError";else if(_._followRedirectCount>_.maxRedirects)dt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),dt.name="MaxRedirectError";else{var vt=_.formatRedirectUrl?_.formatRedirectUrl(E,Bt):e.resolve(E,Bt);l("Request#%d %s: `redirected` from %s to %s",x,D.path,E,vt),J(),_.headers&&_.headers.Host&&h.test(Bt)&&(_.headers.Host=null);var Rt=P;return P=null,o.requestWithCallback(vt,_,Rt),{redirect:!0,error:null}}}return{redirect:!1,error:dt}}!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(ke,dt,Bt){var vt=ke.headers["content-encoding"];return Bt(null,dt,vt)}var Te=_.writeStream;l("Request#%d %s %s with headers %j, options.path: %s",x,U,E,D.headers,D.path),_.requestUrls.push(E);function Ge(ke){if(oe&&(oe.waiting=Date.now()-v),l("Request#%d %s `req response` event emit: status %d, headers: %j",x,E,ke.statusCode,ke.headers),_.streaming){var dt=ve(ke);if(dt.redirect){ke.resume();return}return dt.error?(ke.resume(),Q(dt.error,null,ke)):Q(null,null,ke)}if(ke.on("close",function(){l("Request#%d %s: `res close` event emit, total size %d",x,E,$)}),ke.on("error",function(){l("Request#%d %s: `res error` event emit, total size %d",x,E,$)}),ke.on("aborted",function(){re=!0,l("Request#%d %s: `res aborted` event emit, total size %d",x,E,$)}),Te){var dt=ve(ke);if(dt.redirect){ke.resume();return}return dt.error?(ke.resume(),Te.end(),Q(dt.error,null,ke)):(_.consumeWriteStream===!1?ke.on("end",Q.bind(null,null,null,ke)):isNode010||isNode012?first([[Te,"close"],[ke,"aborted"]],function(Rt,ot,Je){l("Request#%d %s: writeStream or res %s event emitted",x,E,Je),Q(ye||null,null,ke)}):Te.on("close",function(){l("Request#%d %s: writeStream close event emitted",x,E),Q(ye||null,null,ke)}),ke.pipe(Te))}var Bt=[];ke.on("data",function(vt){l("Request#%d %s: `res data` event emit, size %d",x,E,vt.length),$+=vt.length,Bt.push(vt)}),ke.on("end",function(){var vt=m.concat(Bt,$);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",x,E,$,ke._dumped),ye)return Q(ye,vt,ke);var Rt=ve(ke);if(Rt.error)return Q(Rt.error,vt,ke);if(Rt.redirect)return;_e(ke,vt,function(ot,Je,et){if(ot)return Q(ot,vt,ke);if(!et&&u.indexOf(_.dataType)>=0){try{Je=decodeBodyByCharset(Je,ke)}catch(Be){return l("decodeBodyByCharset error: %s",Be),Q(null,Je,ke)}if(_.dataType==="json")if($===0)Je=null;else{var Me=parseJSON(Je,H);Me.error?ot=Me.error:Je=Me.data}}re&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",x,E),Q(ot,Je,ke)})})}var qe,ut;Array.isArray(_.timeout)?(qe=n(_.timeout[0]),ut=n(_.timeout[1])):qe=ut=n(_.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",qe,ut);function st(){l("Connect timer ticking, timeout: %d",qe),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var ke="Connect timeout for "+qe+"ms",dt="ConnectionTimeoutError";gt.socket||(dt="SocketAssignTimeoutError",ke+=", working sockets is full"),ye=new Error(ke),ye.name=dt,ye.requestId=x,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",x,E,ye.name,ke,ue),Ve()},qe)}function ft(){l("Response timer ticking, timeout: %d",ut),Ee=setTimeout(function(){Ee=null;var ke="Response timeout for "+ut+"ms",dt="ResponseTimeoutError";ye=new Error(ke),ye.name=dt,ye.requestId=x,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",x,E,ye.name,ke,ue),Ve()},ut)}var gt;D.mode=_.mode?_.mode:"";try{gt=N.request(D,Ge)}catch(ke){return Q(ke)}typeof window=="undefined"?st():gt.on("requestTimeout",function(){me===-1&&(me=-2);var ke="Connect timeout for "+qe+"ms",dt="ConnectionTimeoutError";ye=new Error(ke),ye.name=dt,ye.requestId=x,Ve()});function Ve(){l("Request#%d %s abort, connected: %s",x,E,ue),gt.socket||(ye.noSocket=!0,Q(ye)),gt.abort()}return oe&>.on("finish",function(){oe.requestSent=Date.now()-v}),gt.once("socket",function(ke){oe&&(oe.queuing=Date.now()-v),isNode010&&ke.socket&&(ke=ke.socket);var dt=ke.readyState;if(dt==="opening"){ke.once("lookup",function(Bt,vt,Rt){l("Request#%d %s lookup: %s, %s, %s",x,E,Bt,vt,Rt),oe&&(oe.dnslookup=Date.now()-v),vt&&(ae=vt)}),ke.once("connect",function(){oe&&(oe.connected=Date.now()-v),ee(),ft(),l("Request#%d %s new socket connected",x,E),ue=!0,ae||(ae=ke.remoteAddress),Se=ke.remotePort});return}l("Request#%d %s reuse socket connected, readyState: %s",x,E,dt),ue=!0,le=!0,ae||(ae=ke.remoteAddress),Se=ke.remotePort,ee(),ft()}),gt.on("error",function(ke){(ke.name==="Error"||ke.name==="TypeError")&&(ke.name=ue?"ResponseError":"RequestError"),ke.message+=' (req "error")',l("Request#%d %s `req error` event emit, %s: %s",x,E,ke.name,ke.message),Q(ye||ke)}),Te&&Te.once("error",function(ke){ke.message+=' (writeStream "error")',ye=ke,l("Request#%d %s `writeStream error` event emit, %s: %s",x,E,ke.name,ke.message),Ve()}),_.stream?(_.stream.pipe(gt),_.stream.once("error",function(ke){ke.message+=' (stream "error")',ye=ke,l("Request#%d %s `readStream error` event emit, %s: %s",x,E,ke.name,ke.message),Ve()})):gt.end(te),gt.requestId=x,gt}}).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 g});var M=o("q1tI"),m=o("biw7"),T=o("fyJ8");function b(e){var f=e.className,r=e.index,l=e.children,n=e.colSpan,i=e.rowSpan,a=M.useContext(m.a),c=a.prefixCls,h=a.fixedInfoList,d=h[r];return M.createElement(T.a,Object.assign({className:f,index:r,component:"td",prefixCls:c,record:null,dataIndex:null,render:function(){return{children:l,props:{colSpan:n,rowSpan:i}}}},d))}function y(e){return M.createElement("tr",Object.assign({},e))}function C(e){var f=e.children,r=M.useContext(m.a),l=r.prefixCls;return M.createElement("tfoot",{className:"".concat(l,"-summary")},f)}var A=z.b=C,g={Cell:b,Row:y}},nEHx:function(k,z,o){"use strict";o.d(z,"a",function(){return M});var M;(function(m){m.DARK="dark",m.LIGHT="light",m.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"),m=o.n(M),T=o("dI71"),b=o("wx14"),y=o("ANjH"),C=o("/MKj");function A(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 g(Y,Z){var ie=Object(M.useState)(function(){return{inputs:Z,result:Y()}})[0],be=Object(M.useRef)(!0),Le=Object(M.useRef)(ie),Ne=be.current||Boolean(Z&&Le.current.inputs&&A(Z,Le.current.inputs)),We=Ne?Le.current:{inputs:Z,result:Y()};return Object(M.useEffect)(function(){be.current=!1,Le.current=We},[We]),We.result}function e(Y,Z){return g(function(){return Y},Z)}var f=g,r=e,l=o("9R94"),n=function(Z){var ie=Z.top,be=Z.right,Le=Z.bottom,Ne=Z.left,We=be-Ne,He=Le-ie,xt={top:ie,right:be,bottom:Le,left:Ne,width:We,height:He,x:Ne,y:ie,center:{x:(be+Ne)/2,y:(Le+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}},a=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,be=Z.margin,Le=be===void 0?h:be,Ne=Z.border,We=Ne===void 0?h:Ne,He=Z.padding,xt=He===void 0?h:He,jt=n(i(ie,Le)),Wt=n(a(ie,We)),St=n(a(Wt,xt));return{marginBox:jt,borderBox:n(ie),paddingBox:Wt,contentBox:St,margin:Le,border:We,padding:xt}},s=function(Z){var ie=Z.slice(0,-2),be=Z.slice(-2);if(be!=="px")return 0;var Le=Number(ie);return isNaN(Le)&&Object(l.a)(!1),Le},u=function(){return{x:window.pageXOffset,y:window.pageYOffset}},S=function(Z,ie){var be=Z.borderBox,Le=Z.border,Ne=Z.margin,We=Z.padding,He=c(be,ie);return d({borderBox:He,border:Le,margin:Ne,padding:We})},E=function(Z,ie){return ie===void 0&&(ie=u()),S(Z,ie)},_=function(Z,ie){var be={top:s(ie.marginTop),right:s(ie.marginRight),bottom:s(ie.marginBottom),left:s(ie.marginLeft)},Le={top:s(ie.paddingTop),right:s(ie.paddingRight),bottom:s(ie.paddingBottom),left:s(ie.paddingLeft)},Ne={top:s(ie.borderTopWidth),right:s(ie.borderRightWidth),bottom:s(ie.borderBottomWidth),left:s(ie.borderLeftWidth)};return d({borderBox:Z,margin:be,padding:Le,border:Ne})},P=function(Z){var ie=Z.getBoundingClientRect(),be=window.getComputedStyle(Z);return _(ie,be)},R=Number.isNaN||function(Z){return typeof Z=="number"&&Z!==Z};function x(Y,Z){return Y===Z?!0:!!(R(Y)&&R(Z))}function w(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=w);var ie,be=[],Le,Ne=!1;function We(){for(var He=[],xt=0;xt<arguments.length;xt++)He[xt]=arguments[xt];return Ne&&ie===this&&Z(He,be)||(Le=Y.apply(this,He),Ne=!0,ie=this,be=He),Le}return We}var O=v,U=function(Z){var ie=[],be=null,Le=function(){for(var We=arguments.length,He=new Array(We),xt=0;xt<We;xt++)He[xt]=arguments[xt];if(ie=He,be)return;be=requestAnimationFrame(function(){be=null,Z.apply(void 0,ie)})};return Le.cancel=function(){if(!be)return;cancelAnimationFrame(be),be=null},Le},I=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()},L=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[L(Z),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},te="__react-beautiful-dnd-disable-dev-warnings";function fe(Y,Z){var ie;if(H)return;if(typeof window!="undefined"&&window[te])return;(ie=console)[Y].apply(ie,K(Z))}var de=fe.bind(null,"warn"),Ce=fe.bind(null,"error");function Oe(){}function ce(Y,Z){return Object(b.a)({},Y,{},Z)}function Ee(Y,Z,ie){var be=Z.map(function(Le){var Ne=ce(ie,Le.options);return Y.addEventListener(Le.eventName,Le.fn,Ne),function(){Y.removeEventListener(Le.eventName,Le.fn,Ne)}});return function(){be.forEach(function(Ne){Ne()})}}var ye=!0,ue="Invariant failed";function le(Y){this.message=Y}le.prototype.toString=function(){return this.message};function $(Y,Z){if(Y)return;throw ye?new le(ue):new le(ue+": "+(Z||""))}var me=function(Y){Object(T.a)(Z,Y);function Z(){for(var be,Le=arguments.length,Ne=new Array(Le),We=0;We<Le;We++)Ne[We]=arguments[We];return be=Y.call.apply(Y,[this].concat(Ne))||this,be.callbacks=null,be.unbind=Oe,be.onWindowError=function(He){var xt=be.getCallbacks();xt.isDragging()&&xt.tryAbort();var jt=He.error;jt instanceof le&&He.preventDefault()},be.getCallbacks=function(){if(!be.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return be.callbacks},be.setCallbacks=function(He){be.callbacks=He},be}var ie=Z.prototype;return ie.componentDidMount=function(){this.unbind=Ee(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Le){if(Le instanceof le){this.setState({});return}throw Le},ie.render=function(){return this.props.children(this.setCallbacks)},Z}(m.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},Se=function(Z){return`
|
|
|
You have lifted an item in position `+ae(Z.source.index)+`
|
|
|
`},oe=function(Z,ie){var be=Z.droppableId===ie.droppableId,Le=ae(Z.index),Ne=ae(ie.index);return be?`
|
|
|
You have moved the item from position `+Le+`
|
|
|
to position `+Ne+`
|
|
|
`:`
|
|
|
You have moved the item from position `+Le+`
|
|
|
in list `+Z.droppableId+`
|
|
|
to list `+ie.droppableId+`
|
|
|
in position `+Ne+`
|
|
|
`},ee=function(Z,ie,be){var Le=ie.droppableId===be.droppableId;return Le?`
|
|
|
The item `+Z+`
|
|
|
has been combined with `+be.draggableId:`
|
|
|
The item `+Z+`
|
|
|
in list `+ie.droppableId+`
|
|
|
has been combined with `+be.draggableId+`
|
|
|
in list `+be.droppableId+`
|
|
|
`},J=function(Z){var ie=Z.destination;if(ie)return oe(Z.source,ie);var be=Z.combine;return be?ee(Z.draggableId,Z.source,be):"You are over an area that cannot be dropped on"},Q=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.
|
|
|
`+Q(Z.source)+`
|
|
|
`;var ie=Z.destination,be=Z.combine;return ie?`
|
|
|
You have dropped the item.
|
|
|
`+oe(Z.source,ie)+`
|
|
|
`:be?`
|
|
|
You have dropped the item.
|
|
|
`+ee(Z.draggableId,Z.source,be)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Q(Z.source)+`
|
|
|
`},_e={dragHandleUsageInstructions:re,onDragStart:Se,onDragUpdate:J,onDragEnd:ve},Te={x:0,y:0},Ge=function(Z,ie){return{x:Z.x+ie.x,y:Z.y+ie.y}},qe=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},st=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},ft=function(Z,ie,be){var Le;return be===void 0&&(be=0),Le={},Le[Z]=ie,Le[Z==="x"?"y":"x"]=be,Le},gt=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(be){return gt(Z,be)}))},ke=function(Z){return function(ie){return{x:Z(ie.x),y:Z(ie.y)}}},dt=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},Bt=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},vt=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}]},Rt={top:0,right:0,bottom:0,left:0},ot=function(Z,ie){return ie?Bt(Z,ie.scroll.diff.displacement):Z},Je=function(Z,ie,be){if(be&&be.increasedBy){var Le;return Object(b.a)({},Z,(Le={},Le[ie.end]=Z[ie.end]+be.increasedBy[ie.line],Le))}return Z},et=function(Z,ie){return ie&&ie.shouldClipSubject?dt(ie.pageMarginBox,Z):n(Z)},Me=function(Y){var Z=Y.page,ie=Y.withPlaceholder,be=Y.axis,Le=Y.frame,Ne=ot(Z.marginBox,Le),We=Je(Ne,be,ie),He=et(We,Le);return{page:Z,withPlaceholder:ie,active:He}},Be=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,be=qe(Z,ie.scroll.initial),Le=st(be),Ne=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:be,displacement:Le},max:ie.scroll.max}}),We=Me({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:Ne}),He=Object(b.a)({},Y,{frame:Ne,subject:We});return He};function Xe(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function Ke(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function $e(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 _t(Y,Z){if(Y.find)return Y.find(Z);var ie=$e(Y,Z);return ie!==-1?Y[ie]:void 0}function Ft(Y){return Array.prototype.slice.call(Y)}var qt=O(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),bn=O(function(Y){return Y.reduce(function(Z,ie){return Z[ie.descriptor.id]=ie,Z},{})}),At=O(function(Y){return Ke(Y)}),Et=O(function(Y){return Ke(Y)}),je=O(function(Y,Z){var ie=Et(Z).filter(function(be){return Y===be.descriptor.droppableId}).sort(function(be,Le){return be.descriptor.index-Le.descriptor.index});return ie});function rt(Y){return Y.at&&Y.at.type==="REORDER"?Y.at.destination:null}function at(Y){return Y.at&&Y.at.type==="COMBINE"?Y.at.combine:null}var Ae=O(function(Y,Z){return Z.filter(function(ie){return ie.descriptor.id!==Y.descriptor.id})}),Fe=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,be=Y.destination,Le=Y.insideDestination,Ne=Y.previousImpact;if(!be.isCombineEnabled)return null;var We=rt(Ne);if(!We)return null;function He(ur){var gr={type:"COMBINE",combine:{draggableId:ur,droppableId:be.descriptor.id}};return Object(b.a)({},Ne,{at:gr})}var xt=Ne.displaced.all,jt=xt.length?xt[0]:null;if(Z)return jt?He(jt):null;var Wt=Ae(ie,Le);if(!jt){if(!Wt.length)return null;var St=Wt[Wt.length-1];return He(St.descriptor.id)}var Ct=$e(Wt,function(ur){return ur.descriptor.id===jt});Ct!==-1||$(!1);var kt=Ct-1;if(kt<0)return null;var pn=Wt[kt];return He(pn.descriptor.id)},Tt=function(Y,Z){return Y.descriptor.droppableId===Z.descriptor.id},yt={point:Te,value:0},Ot={invisible:{},visible:{},all:[]},Lt={displaced:Ot,displacedBy:yt,at:null},tt=function(Y,Z){return function(ie){return Y<=ie&&ie<=Z}},Ut=function(Y){var Z=tt(Y.top,Y.bottom),ie=tt(Y.left,Y.right);return function(be){var Le=Z(be.top)&&Z(be.bottom)&&ie(be.left)&&ie(be.right);if(Le)return!0;var Ne=Z(be.top)||Z(be.bottom),We=ie(be.left)||ie(be.right),He=Ne&&We;if(He)return!0;var xt=be.top<Y.top&&be.bottom>Y.bottom,jt=be.left<Y.left&&be.right>Y.right,Wt=xt&&jt;if(Wt)return!0;var St=xt&&We||jt&&Ne;return St}},Pt=function(Y){var Z=tt(Y.top,Y.bottom),ie=tt(Y.left,Y.right);return function(be){var Le=Z(be.top)&&Z(be.bottom)&&ie(be.left)&&ie(be.right);return Le}},an={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},nn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},rn=function(Y){return function(Z){var ie=tt(Z.top,Z.bottom),be=tt(Z.left,Z.right);return function(Le){return Y===an?ie(Le.top)&&ie(Le.bottom):be(Le.left)&&be(Le.right)}}},Tn=function(Z,ie){var be=ie.frame?ie.frame.scroll.diff.displacement:Te;return Bt(Z,be)},sn=function(Z,ie,be){return ie.subject.active?be(ie.subject.active)(Z):!1},un=function(Z,ie,be){return be(ie)(Z)},Jn=function(Z){var ie=Z.target,be=Z.destination,Le=Z.viewport,Ne=Z.withDroppableDisplacement,We=Z.isVisibleThroughFrameFn,He=Ne?Tn(ie,be):ie;return sn(He,be,We)&&un(He,Le,We)},kn=function(Z){return Jn(Object(b.a)({},Z,{isVisibleThroughFrameFn:Ut}))},Yn=function(Z){return Jn(Object(b.a)({},Z,{isVisibleThroughFrameFn:Pt}))},tr=function(Z){return Jn(Object(b.a)({},Z,{isVisibleThroughFrameFn:rn(Z.destination.axis)}))},pr=function(Z,ie,be){if(typeof be=="boolean")return be;if(!ie)return!0;var Le=ie.invisible,Ne=ie.visible;if(Le[Z])return!1;var We=Ne[Z];return We?We.shouldAnimate:!0};function ar(Y,Z){var ie=Y.page.marginBox,be={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return n(i(ie,be))}function mn(Y){var Z=Y.afterDragging,ie=Y.destination,be=Y.displacedBy,Le=Y.viewport,Ne=Y.forceShouldAnimate,We=Y.last;return Z.reduce(function(xt,jt){var Wt=ar(jt,be),St=jt.descriptor.id;xt.all.push(St);var Ct=kn({target:Wt,destination:ie,viewport:Le,withDroppableDisplacement:!0});if(!Ct)return xt.invisible[jt.descriptor.id]=!0,xt;var kt=pr(St,We,Ne),pn={draggableId:St,shouldAnimate:kt};return xt.visible[St]=pn,xt},{all:[],visible:{},invisible:{}})}function en(Y,Z){if(!Y.length)return 0;var ie=Y[Y.length-1].descriptor.index;return Z.inHomeList?ie:ie+1}function Nn(Y){var Z=Y.insideDestination,ie=Y.inHomeList,be=Y.displacedBy,Le=Y.destination,Ne=en(Z,{inHomeList:ie});return{displaced:Ot,displacedBy:be,at:{type:"REORDER",destination:{droppableId:Le.descriptor.id,index:Ne}}}}function Zr(Y){var Z=Y.draggable,ie=Y.insideDestination,be=Y.destination,Le=Y.viewport,Ne=Y.displacedBy,We=Y.last,He=Y.index,xt=Y.forceShouldAnimate,jt=Tt(Z,be);if(He==null)return Nn({insideDestination:ie,inHomeList:jt,displacedBy:Ne,destination:be});var Wt=_t(ie,function(ur){return ur.descriptor.index===He});if(!Wt)return Nn({insideDestination:ie,inHomeList:jt,displacedBy:Ne,destination:be});var St=Ae(Z,ie),Ct=ie.indexOf(Wt),kt=St.slice(Ct),pn=mn({afterDragging:kt,destination:be,displacedBy:Ne,last:We,viewport:Le.frame,forceShouldAnimate:xt});return{displaced:pn,displacedBy:Ne,at:{type:"REORDER",destination:{droppableId:be.descriptor.id,index:He}}}}function zr(Y,Z){return Boolean(Z.effected[Y])}var Ur=function(Y){var Z=Y.isMovingForward,ie=Y.destination,be=Y.draggables,Le=Y.combine,Ne=Y.afterCritical;if(!ie.isCombineEnabled)return null;var We=Le.draggableId,He=be[We],xt=He.descriptor.index,jt=zr(We,Ne);return jt?Z?xt:xt-1:Z?xt+1:xt},Dr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,be=Y.insideDestination,Le=Y.location;if(!be.length)return null;var Ne=Le.index,We=Z?Ne+1:Ne-1,He=be[0].descriptor.index,xt=be[be.length-1].descriptor.index,jt=ie?xt:xt+1;return We<He||We>jt?null:We},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,be=Y.draggable,Le=Y.draggables,Ne=Y.destination,We=Y.insideDestination,He=Y.previousImpact,xt=Y.viewport,jt=Y.afterCritical,Wt=He.at;if(Wt||$(!1),Wt.type==="REORDER"){var St=Dr({isMovingForward:Z,isInHomeList:ie,location:Wt.destination,insideDestination:We});return St==null?null:Zr({draggable:be,insideDestination:We,destination:Ne,viewport:xt,last:He.displaced,displacedBy:He.displacedBy,index:St})}var Ct=Ur({isMovingForward:Z,destination:Ne,displaced:He.displaced,draggables:Le,combine:Wt.combine,afterCritical:jt});return Ct==null?null:Zr({draggable:be,insideDestination:We,destination:Ne,viewport:xt,last:He.displaced,displacedBy:He.displacedBy,index:Ct})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,be=Y.combineWith,Le=Y.displacedBy,Ne=Boolean(Z.visible[be]||Z.invisible[be]);return zr(be,ie)?Ne?Te:st(Le.point):Ne?Le.point:Te},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,be=Y.draggables,Le=at(ie);Le||$(!1);var Ne=Le.draggableId,We=be[Ne].page.borderBox.center,He=X({displaced:ie.displaced,afterCritical:Z,combineWith:Ne,displacedBy:ie.displacedBy});return Ge(We,He)},se=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},he=function(Z,ie,be){return ie[Z.crossAxisStart]+be.margin[Z.crossAxisStart]+be.borderBox[Z.crossAxisSize]/2},pt=function(Z){var ie=Z.axis,be=Z.moveRelativeTo,Le=Z.isMoving;return ft(ie.line,be.marginBox[ie.end]+se(ie,Le),he(ie,be.marginBox,Le))},vn=function(Z){var ie=Z.axis,be=Z.moveRelativeTo,Le=Z.isMoving;return ft(ie.line,be.marginBox[ie.start]-De(ie,Le),he(ie,be.marginBox,Le))},Kn=function(Z){var ie=Z.axis,be=Z.moveInto,Le=Z.isMoving;return ft(ie.line,be.contentBox[ie.start]+se(ie,Le),he(ie,be.contentBox,Le))},dr=function(Y){var Z=Y.impact,ie=Y.draggable,be=Y.draggables,Le=Y.droppable,Ne=Y.afterCritical,We=je(Le.descriptor.id,be),He=ie.page,xt=Le.axis;if(!We.length)return Kn({axis:xt,moveInto:Le.page,isMoving:He});var jt=Z.displaced,Wt=Z.displacedBy,St=jt.all[0];if(St){var Ct=be[St];if(zr(St,Ne))return vn({axis:xt,moveRelativeTo:Ct.page,isMoving:He});var kt=S(Ct.page,Wt.point);return vn({axis:xt,moveRelativeTo:kt,isMoving:He})}var pn=We[We.length-1];if(pn.descriptor.id===ie.descriptor.id)return He.borderBox.center;if(zr(pn.descriptor.id,Ne)){var ur=S(pn.page,st(Ne.displacedBy.point));return pt({axis:xt,moveRelativeTo:ur,isMoving:He})}return pt({axis:xt,moveRelativeTo:pn.page,isMoving:He})},on=function(Y,Z){var ie=Y.frame;return ie?Ge(Z,ie.scroll.diff.displacement):Z},Mn=function(Z){var ie=Z.impact,be=Z.draggable,Le=Z.droppable,Ne=Z.draggables,We=Z.afterCritical,He=be.page.borderBox.center,xt=ie.at;return Le&&xt?xt.type==="REORDER"?dr({impact:ie,draggable:be,draggables:Ne,droppable:Le,afterCritical:We}):q({impact:ie,draggables:Ne,afterCritical:We}):He},Xn=function(Y){var Z=Mn(Y),ie=Y.droppable,be=ie?on(ie,Z):Z;return be},$r=function(Y,Z){var ie=qe(Z,Y.scroll.initial),be=st(ie),Le=n({top:Z.y,bottom:Z.y+Y.frame.height,left:Z.x,right:Z.x+Y.frame.width}),Ne={frame:Le,scroll:{initial:Y.scroll.initial,max:Y.scroll.max,current:Z,diff:{value:ie,displacement:be}}};return Ne};function ga(Y,Z){return Y.map(function(ie){return Z[ie]})}function pa(Y,Z){for(var ie=0;ie<Z.length;ie++){var be=Z[ie].visible[Y];if(be)return be}return null}var fr=function(Y){var Z=Y.impact,ie=Y.viewport,be=Y.destination,Le=Y.draggables,Ne=Y.maxScrollChange,We=$r(ie,Ge(ie.scroll.current,Ne)),He=be.frame?Be(be,Ge(be.frame.scroll.current,Ne)):be,xt=Z.displaced,jt=mn({afterDragging:ga(xt.all,Le),destination:be,displacedBy:Z.displacedBy,viewport:We.frame,last:xt,forceShouldAnimate:!1}),Wt=mn({afterDragging:ga(xt.all,Le),destination:He,displacedBy:Z.displacedBy,viewport:ie.frame,last:xt,forceShouldAnimate:!1}),St={},Ct={},kt=[xt,jt,Wt];xt.all.forEach(function(ur){var gr=pa(ur,kt);if(gr){Ct[ur]=gr;return}St[ur]=!0});var pn=Object(b.a)({},Z,{displaced:{all:xt.all,invisible:St,visible:Ct}});return pn},za=function(Y,Z){return Ge(Y.scroll.diff.displacement,Z)},ja=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.draggable,be=Y.viewport,Le=za(be,Z),Ne=qe(Le,ie.page.borderBox.center);return Ge(ie.client.borderBox.center,Ne)},Ra=function(Y){var Z=Y.draggable,ie=Y.destination,be=Y.newPageBorderBoxCenter,Le=Y.viewport,Ne=Y.withDroppableDisplacement,We=Y.onlyOnMainAxis,He=We===void 0?!1:We,xt=qe(be,Z.page.borderBox.center),jt=Bt(Z.page.borderBox,xt),Wt={target:jt,destination:ie,withDroppableDisplacement:Ne,viewport:Le};return He?tr(Wt):Yn(Wt)},Ha=function(Y){var Z=Y.isMovingForward,ie=Y.draggable,be=Y.destination,Le=Y.draggables,Ne=Y.previousImpact,We=Y.viewport,He=Y.previousPageBorderBoxCenter,xt=Y.previousClientSelection,jt=Y.afterCritical;if(!be.isEnabled)return null;var Wt=je(be.descriptor.id,Le),St=Tt(ie,be),Ct=Fe({isMovingForward:Z,draggable:ie,destination:be,insideDestination:Wt,previousImpact:Ne})||pe({isMovingForward:Z,isInHomeList:St,draggable:ie,draggables:Le,destination:be,insideDestination:Wt,previousImpact:Ne,viewport:We,afterCritical:jt});if(!Ct)return null;var kt=Xn({impact:Ct,draggable:ie,droppable:be,draggables:Le,afterCritical:jt}),pn=Ra({draggable:ie,destination:be,newPageBorderBoxCenter:kt,viewport:We.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(pn){var ur=ja({pageBorderBoxCenter:kt,draggable:ie,viewport:We});return{clientSelection:ur,impact:Ct,scrollJumpRequest:null}}var gr=qe(kt,He),Ir=fr({impact:Ct,viewport:We,destination:be,draggables:Le,maxScrollChange:gr});return{clientSelection:xt,impact:Ir,scrollJumpRequest:gr}},wa=function(Z){var ie=Z.subject.active;return ie||$(!1),ie},Ja=function(Y){var Z=Y.isMovingForward,ie=Y.pageBorderBoxCenter,be=Y.source,Le=Y.droppables,Ne=Y.viewport,We=be.subject.active;if(!We)return null;var He=be.axis,xt=tt(We[He.start],We[He.end]),jt=At(Le).filter(function(St){return St!==be}).filter(function(St){return St.isEnabled}).filter(function(St){return Boolean(St.subject.active)}).filter(function(St){return Ut(Ne.frame)(wa(St))}).filter(function(St){var Ct=wa(St);return Z?We[He.crossAxisEnd]<Ct[He.crossAxisEnd]:Ct[He.crossAxisStart]<We[He.crossAxisStart]}).filter(function(St){var Ct=wa(St),kt=tt(Ct[He.start],Ct[He.end]);return xt(Ct[He.start])||xt(Ct[He.end])||kt(We[He.start])||kt(We[He.end])}).sort(function(St,Ct){var kt=wa(St)[He.crossAxisStart],pn=wa(Ct)[He.crossAxisStart];return Z?kt-pn:pn-kt}).filter(function(St,Ct,kt){return wa(St)[He.crossAxisStart]===wa(kt[0])[He.crossAxisStart]});if(!jt.length)return null;if(jt.length===1)return jt[0];var Wt=jt.filter(function(St){var Ct=tt(wa(St)[He.start],wa(St)[He.end]);return Ct(ie[He.line])});return Wt.length===1?Wt[0]:Wt.length>1?Wt.sort(function(St,Ct){return wa(St)[He.start]-wa(Ct)[He.start]})[0]:jt.sort(function(St,Ct){var kt=Ve(ie,vt(wa(St))),pn=Ve(ie,vt(wa(Ct)));return kt!==pn?kt-pn:wa(St)[He.start]-wa(Ct)[He.start]})[0]},ka=function(Z,ie){var be=Z.page.borderBox.center;return zr(Z.descriptor.id,ie)?qe(be,ie.displacedBy.point):be},li=function(Z,ie){var be=Z.page.borderBox;return zr(Z.descriptor.id,ie)?Bt(be,st(ie.displacedBy.point)):be},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,be=Y.destination,Le=Y.insideDestination,Ne=Y.afterCritical,We=Le.filter(function(He){return Yn({target:li(He,Ne),destination:be,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(He,xt){var jt=gt(Z,on(be,ka(He,Ne))),Wt=gt(Z,on(be,ka(xt,Ne)));return jt<Wt?-1:Wt<jt?1:He.descriptor.index-xt.descriptor.index});return We[0]||null},ua=O(function(Z,ie){var be=ie[Z.line];return{value:be,point:ft(Z.line,be)}}),fa=function(Z,ie,be){var Le=Z.axis;if(Z.descriptor.mode==="virtual")return ft(Le.line,ie[Le.line]);var Ne=Z.subject.page.contentBox[Le.size],We=je(Z.descriptor.id,be),He=We.reduce(function(Wt,St){return Wt+St.client.marginBox[Le.size]},0),xt=He+ie[Le.line],jt=xt-Ne;return jt<=0?null:ft(Le.line,jt)},oa=function(Z,ie){return Object(b.a)({},Z,{scroll:Object(b.a)({},Z.scroll,{max:ie})})},xe=function(Z,ie,be){var Le=Z.frame;Tt(ie,Z)&&$(!1),Z.subject.withPlaceholder&&$(!1);var Ne=ua(Z.axis,ie.displaceBy).point,We=fa(Z,Ne,be),He={placeholderSize:Ne,increasedBy:We,oldFrameMaxScroll:Z.frame?Z.frame.scroll.max:null};if(!Le){var xt=Me({page:Z.subject.page,withPlaceholder:He,axis:Z.axis,frame:Z.frame});return Object(b.a)({},Z,{subject:xt})}var jt=We?Ge(Le.scroll.max,We):Le.scroll.max,Wt=oa(Le,jt),St=Me({page:Z.subject.page,withPlaceholder:He,axis:Z.axis,frame:Wt});return Object(b.a)({},Z,{subject:St,frame:Wt})},lt=function(Z){var ie=Z.subject.withPlaceholder;ie||$(!1);var be=Z.frame;if(!be){var Le=Me({page:Z.subject.page,axis:Z.axis,frame:null,withPlaceholder:null});return Object(b.a)({},Z,{subject:Le})}var Ne=ie.oldFrameMaxScroll;Ne||$(!1);var We=oa(be,Ne),He=Me({page:Z.subject.page,axis:Z.axis,frame:We,withPlaceholder:null});return Object(b.a)({},Z,{subject:He,frame:We})},Mt=function(Y){var Z=Y.previousPageBorderBoxCenter,ie=Y.moveRelativeTo,be=Y.insideDestination,Le=Y.draggable,Ne=Y.draggables,We=Y.destination,He=Y.viewport,xt=Y.afterCritical;if(!ie){if(be.length)return null;var jt={displaced:Ot,displacedBy:yt,at:{type:"REORDER",destination:{droppableId:We.descriptor.id,index:0}}},Wt=Xn({impact:jt,draggable:Le,droppable:We,draggables:Ne,afterCritical:xt}),St=Tt(Le,We)?We:xe(We,Le,Ne),Ct=Ra({draggable:Le,destination:St,newPageBorderBoxCenter:Wt,viewport:He.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Ct?jt:null}var kt=Boolean(Z[We.axis.line]<=ie.page.borderBox.center[We.axis.line]),pn=function(){var gr=ie.descriptor.index;return ie.descriptor.id===Le.descriptor.id||kt?gr:gr+1}(),ur=ua(We.axis,Le.displaceBy);return Zr({draggable:Le,insideDestination:be,destination:We,viewport:He,displacedBy:ur,last:Ot,index:pn})},wt=function(Y){var Z=Y.isMovingForward,ie=Y.previousPageBorderBoxCenter,be=Y.draggable,Le=Y.isOver,Ne=Y.draggables,We=Y.droppables,He=Y.viewport,xt=Y.afterCritical,jt=Ja({isMovingForward:Z,pageBorderBoxCenter:ie,source:Le,droppables:We,viewport:He});if(!jt)return null;var Wt=je(jt.descriptor.id,Ne),St=oi({pageBorderBoxCenter:ie,viewport:He,destination:jt,insideDestination:Wt,afterCritical:xt}),Ct=Mt({previousPageBorderBoxCenter:ie,destination:jt,draggable:be,draggables:Ne,moveRelativeTo:St,insideDestination:Wt,viewport:He,afterCritical:xt});if(!Ct)return null;var kt=Xn({impact:Ct,draggable:be,droppable:jt,draggables:Ne,afterCritical:xt}),pn=ja({pageBorderBoxCenter:kt,draggable:be,viewport:He});return{clientSelection:pn,impact:Ct,scrollJumpRequest:null}},Ht=function(Y){var Z=Y.at;return Z?Z.type==="REORDER"?Z.destination.droppableId:Z.combine.droppableId:null},Nt=function(Z,ie){var be=Ht(Z);return be?ie[be]:null},Vt=function(Y){var Z=Y.state,ie=Y.type,be=Nt(Z.impact,Z.dimensions.droppables),Le=Boolean(be),Ne=Z.dimensions.droppables[Z.critical.droppable.id],We=be||Ne,He=We.axis.direction,xt=He==="vertical"&&(ie==="MOVE_UP"||ie==="MOVE_DOWN")||He==="horizontal"&&(ie==="MOVE_LEFT"||ie==="MOVE_RIGHT");if(xt&&!Le)return null;var jt=ie==="MOVE_DOWN"||ie==="MOVE_RIGHT",Wt=Z.dimensions.draggables[Z.critical.draggable.id],St=Z.current.page.borderBoxCenter,Ct=Z.dimensions,kt=Ct.draggables,pn=Ct.droppables;return xt?Ha({isMovingForward:jt,previousPageBorderBoxCenter:St,draggable:Wt,destination:We,draggables:kt,viewport:Z.viewport,previousClientSelection:Z.current.client.selection,previousImpact:Z.impact,afterCritical:Z.afterCritical}):wt({isMovingForward:jt,previousPageBorderBoxCenter:St,draggable:Wt,isOver:We,draggables:kt,droppables:pn,viewport:Z.viewport,afterCritical:Z.afterCritical})};function $t(Y){return Y.phase==="DRAGGING"||Y.phase==="COLLECTING"}function En(Y){var Z=tt(Y.top,Y.bottom),ie=tt(Y.left,Y.right);return function(Le){return Z(Le.y)&&ie(Le.x)}}function gn(Y,Z){return Y.left<Z.right&&Y.right>Z.left&&Y.top<Z.bottom&&Y.bottom>Z.top}function Un(Y){var Z=Y.pageBorderBox,ie=Y.draggable,be=Y.candidates,Le=ie.page.borderBox.center,Ne=be.map(function(We){var He=We.axis,xt=ft(We.axis.line,Z.center[He.line],We.page.borderBox.center[He.crossAxisLine]);return{id:We.descriptor.id,distance:gt(Le,xt)}}).sort(function(We,He){return He.distance-We.distance});return Ne[0]?Ne[0].id:null}function An(Y){var Z=Y.pageBorderBox,ie=Y.draggable,be=Y.droppables,Le=At(be).filter(function(Ne){if(!Ne.isEnabled)return!1;var We=Ne.subject.active;if(!We)return!1;if(!gn(Z,We))return!1;if(En(We)(Z.center))return!0;var He=Ne.axis,xt=We.center[He.crossAxisLine],jt=Z[He.crossAxisStart],Wt=Z[He.crossAxisEnd],St=tt(We[He.crossAxisStart],We[He.crossAxisEnd]),Ct=St(jt),kt=St(Wt);return!Ct&&!kt?!0:Ct?jt<xt:Wt>xt});return Le.length?Le.length===1?Le[0].descriptor.id:Un({pageBorderBox:Z,draggable:ie,candidates:Le}):null}var tn=function(Z,ie){return n(Bt(Z,ie))},Pn=function(Y,Z){var ie=Y.frame;return ie?tn(Z,ie.scroll.diff.value):Z};function yn(Y){var Z=Y.displaced,ie=Y.id;return Boolean(Z.visible[ie]||Z.invisible[ie])}function jn(Y){var Z=Y.draggable,ie=Y.closest,be=Y.inHomeList;return ie?be&&ie.descriptor.index>Z.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Rn=function(Y){var Z=Y.pageBorderBoxWithDroppableScroll,ie=Y.draggable,be=Y.destination,Le=Y.insideDestination,Ne=Y.last,We=Y.viewport,He=Y.afterCritical,xt=be.axis,jt=ua(be.axis,ie.displaceBy),Wt=jt.value,St=Z[xt.start],Ct=Z[xt.end],kt=Ae(ie,Le),pn=_t(kt,function(gr){var Ir=gr.descriptor.id,Wr=gr.page.borderBox.center[xt.line],na=zr(Ir,He),Br=yn({displaced:Ne,id:Ir});return na?Br?Ct<=Wr:St<Wr-Wt:Br?Ct<=Wr+Wt:St<Wr}),ur=jn({draggable:ie,closest:pn,inHomeList:Tt(ie,be)});return Zr({draggable:ie,insideDestination:Le,destination:be,viewport:We,last:Ne,displacedBy:jt,index:ur})},Qn=4,mr=function(Y){var Z=Y.draggable,ie=Y.pageBorderBoxWithDroppableScroll,be=Y.previousImpact,Le=Y.destination,Ne=Y.insideDestination,We=Y.afterCritical;if(!Le.isCombineEnabled)return null;var He=Le.axis,xt=ua(Le.axis,Z.displaceBy),jt=xt.value,Wt=ie[He.start],St=ie[He.end],Ct=Ae(Z,Ne),kt=_t(Ct,function(ur){var gr=ur.descriptor.id,Ir=ur.page.borderBox,Wr=Ir[He.size],na=Wr/Qn,Br=zr(gr,We),Ma=yn({displaced:be.displaced,id:gr});return Br?Ma?St>Ir[He.start]+na&&St<Ir[He.end]-na:Wt>Ir[He.start]-jt+na&&Wt<Ir[He.end]-jt-na:Ma?St>Ir[He.start]+jt+na&&St<Ir[He.end]+jt-na:Wt>Ir[He.start]+na&&Wt<Ir[He.end]-na});if(!kt)return null;var pn={displacedBy:xt,displaced:be.displaced,at:{type:"COMBINE",combine:{draggableId:kt.descriptor.id,droppableId:Le.descriptor.id}}};return pn},kr=function(Y){var Z=Y.pageOffset,ie=Y.draggable,be=Y.draggables,Le=Y.droppables,Ne=Y.previousImpact,We=Y.viewport,He=Y.afterCritical,xt=tn(ie.page.borderBox,Z),jt=An({pageBorderBox:xt,draggable:ie,droppables:Le});if(!jt)return Lt;var Wt=Le[jt],St=je(Wt.descriptor.id,be),Ct=Pn(Wt,xt);return mr({pageBorderBoxWithDroppableScroll:Ct,draggable:ie,previousImpact:Ne,destination:Wt,insideDestination:St,afterCritical:He})||Rn({pageBorderBoxWithDroppableScroll:Ct,draggable:ie,destination:Wt,insideDestination:St,last:Ne.displaced,viewport:We,afterCritical:He})},wn=function(Y,Z){var ie;return Object(b.a)({},Y,(ie={},ie[Z.descriptor.id]=Z,ie))},Xt=function(Z){var ie=Z.previousImpact,be=Z.impact,Le=Z.droppables,Ne=Ht(ie),We=Ht(be);if(!Ne)return Le;if(Ne===We)return Le;var He=Le[Ne];if(!He.subject.withPlaceholder)return Le;var xt=lt(He);return wn(Le,xt)},fn=function(Y){var Z=Y.draggable,ie=Y.draggables,be=Y.droppables,Le=Y.previousImpact,Ne=Y.impact,We=Xt({previousImpact:Le,impact:Ne,droppables:be}),He=Ht(Ne);if(!He)return We;var xt=be[He];if(Tt(Z,xt))return We;if(xt.subject.withPlaceholder)return We;var jt=xe(xt,Z,ie);return wn(We,jt)},Dn=function(Y){var Z=Y.state,ie=Y.clientSelection,be=Y.dimensions,Le=Y.viewport,Ne=Y.impact,We=Y.scrollJumpRequest,He=Le||Z.viewport,xt=be||Z.dimensions,jt=ie||Z.current.client.selection,Wt=qe(jt,Z.initial.client.selection),St={offset:Wt,selection:jt,borderBoxCenter:Ge(Z.initial.client.borderBoxCenter,Wt)},Ct={selection:Ge(St.selection,He.scroll.current),borderBoxCenter:Ge(St.borderBoxCenter,He.scroll.current),offset:Ge(St.offset,He.scroll.diff.value)},kt={client:St,page:Ct};if(Z.phase==="COLLECTING")return Object(b.a)({phase:"COLLECTING"},Z,{dimensions:xt,viewport:He,current:kt});var pn=xt.draggables[Z.critical.draggable.id],ur=Ne||kr({pageOffset:Ct.offset,draggable:pn,draggables:xt.draggables,droppables:xt.droppables,previousImpact:Z.impact,viewport:He,afterCritical:Z.afterCritical}),gr=fn({draggable:pn,impact:ur,previousImpact:Z.impact,draggables:xt.draggables,droppables:xt.droppables}),Ir=Object(b.a)({},Z,{current:kt,dimensions:{draggables:xt.draggables,droppables:gr},impact:ur,viewport:He,scrollJumpRequest:We||null,forceShouldAnimate:We?!1:null});return Ir};function Qt(Y,Z){return Y.map(function(ie){return Z[ie]})}var Sn=function(Y){var Z=Y.impact,ie=Y.viewport,be=Y.draggables,Le=Y.destination,Ne=Y.forceShouldAnimate,We=Z.displaced,He=Qt(We.all,be),xt=mn({afterDragging:He,destination:Le,displacedBy:Z.displacedBy,viewport:ie.frame,forceShouldAnimate:Ne,last:We});return Object(b.a)({},Z,{displaced:xt})},_n=function(Y){var Z=Y.impact,ie=Y.draggable,be=Y.droppable,Le=Y.draggables,Ne=Y.viewport,We=Y.afterCritical,He=Xn({impact:Z,draggable:ie,draggables:Le,droppable:be,afterCritical:We});return ja({pageBorderBoxCenter:He,draggable:ie,viewport:Ne})},In=function(Y){var Z=Y.state,ie=Y.dimensions,be=Y.viewport;Z.movementMode==="SNAP"||$(!1);var Le=Z.impact,Ne=be||Z.viewport,We=ie||Z.dimensions,He=We.draggables,xt=We.droppables,jt=He[Z.critical.draggable.id],Wt=Ht(Le);Wt||$(!1);var St=xt[Wt],Ct=Sn({impact:Le,viewport:Ne,destination:St,draggables:He}),kt=_n({impact:Ct,draggable:jt,droppable:St,draggables:He,viewport:Ne,afterCritical:Z.afterCritical});return Dn({impact:Ct,clientSelection:kt,state:Z,dimensions:We,viewport:Ne})},Bn=function(Y){return{index:Y.index,droppableId:Y.droppableId}},or=function(Y){var Z=Y.draggable,ie=Y.home,be=Y.draggables,Le=Y.viewport,Ne=ua(ie.axis,Z.displaceBy),We=je(ie.descriptor.id,be),He=We.indexOf(Z);He!==-1||$(!1);var xt=We.slice(He+1),jt=xt.reduce(function(kt,pn){return kt[pn.descriptor.id]=!0,kt},{}),Wt={inVirtualList:ie.descriptor.mode==="virtual",displacedBy:Ne,effected:jt},St=mn({afterDragging:xt,destination:ie,displacedBy:Ne,last:null,viewport:Le.frame,forceShouldAnimate:!1}),Ct={displaced:St,displacedBy:Ne,at:{type:"REORDER",destination:Bn(Z.descriptor)}};return{impact:Ct,afterCritical:Wt}},$n=function(Y,Z){return{draggables:Y.draggables,droppables:wn(Y.droppables,Z)}},Or=function(Z){},Pr=function(Z){},Zn=function(Y){var Z=Y.draggable,ie=Y.offset,be=Y.initialWindowScroll,Le=S(Z.client,ie),Ne=E(Le,be),We=Object(b.a)({},Z,{placeholder:Object(b.a)({},Z.placeholder,{client:Le}),client:Le,page:Ne});return We},Tr=function(Y){var Z=Y.frame;return Z||$(!1),Z},vr=function(Y){var Z=Y.additions,ie=Y.updatedDroppables,be=Y.viewport,Le=be.scroll.diff.value;return Z.map(function(Ne){var We=Ne.descriptor.droppableId,He=ie[We],xt=Tr(He),jt=xt.scroll.diff.value,Wt=Ge(Le,jt),St=Zn({draggable:Ne,offset:Wt,initialWindowScroll:be.scroll.initial});return St})},Hr=function(Y){var Z=Y.state,ie=Y.published;Or();var be=ie.modified.map(function(na){var Br=Z.dimensions.droppables[na.droppableId],Ma=Be(Br,na.scroll);return Ma}),Le=Object(b.a)({},Z.dimensions.droppables,{},qt(be)),Ne=bn(vr({additions:ie.additions,updatedDroppables:Le,viewport:Z.viewport})),We=Object(b.a)({},Z.dimensions.draggables,{},Ne);ie.removals.forEach(function(na){delete We[na]});var He={droppables:Le,draggables:We},xt=Ht(Z.impact),jt=xt?He.droppables[xt]:null,Wt=He.draggables[Z.critical.draggable.id],St=He.droppables[Z.critical.droppable.id],Ct=or({draggable:Wt,home:St,draggables:We,viewport:Z.viewport}),kt=Ct.impact,pn=Ct.afterCritical,ur=jt&&jt.isCombineEnabled?Z.impact:kt,gr=kr({pageOffset:Z.current.page.offset,draggable:He.draggables[Z.critical.draggable.id],draggables:He.draggables,droppables:He.droppables,previousImpact:ur,viewport:Z.viewport,afterCritical:pn});Pr();var Ir=Object(b.a)({phase:"DRAGGING"},Z,{phase:"DRAGGING",impact:gr,onLiftImpact:kt,dimensions:He,afterCritical:pn,forceShouldAnimate:!1});if(Z.phase==="COLLECTING")return Ir;var Wr=Object(b.a)({phase:"DROP_PENDING"},Ir,{phase:"DROP_PENDING",reason:Z.reason,isWaiting:!1});return Wr},Mr=function(Z){return Z.movementMode==="SNAP"},qr=function(Z,ie,be){var Le=$n(Z.dimensions,ie);return!Mr(Z)||be?Dn({state:Z,dimensions:Le}):In({state:Z,dimensions:Le})};function rr(Y){return Y.isDragging&&Y.movementMode==="SNAP"?Object(b.a)({phase:"DRAGGING"},Y,{scrollJumpRequest:null}):Y}var Kt={phase:"IDLE",completed:null,shouldFlush:!1},Jt=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,be=ie.critical,Le=ie.clientSelection,Ne=ie.viewport,We=ie.dimensions,He=ie.movementMode,xt=We.draggables[be.draggable.id],jt=We.droppables[be.droppable.id],Wt={selection:Le,borderBoxCenter:xt.client.borderBox.center,offset:Te},St={client:Wt,page:{selection:Ge(Wt.selection,Ne.scroll.initial),borderBoxCenter:Ge(Wt.selection,Ne.scroll.initial),offset:Ge(Wt.selection,Ne.scroll.diff.value)}},Ct=At(We.droppables).every(function(ea){return!ea.isFixedOnPage}),kt=or({draggable:xt,home:jt,draggables:We.draggables,viewport:Ne}),pn=kt.impact,ur=kt.afterCritical,gr={phase:"DRAGGING",isDragging:!0,critical:be,movementMode:He,dimensions:We,initial:St,current:St,isWindowScrollAllowed:Ct,impact:pn,afterCritical:ur,onLiftImpact:pn,viewport:Ne,scrollJumpRequest:null,forceShouldAnimate:null};return gr}if(Z.type==="COLLECTION_STARTING"){if(Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING")return Y;Y.phase==="DRAGGING"||$(!1);var Ir=Object(b.a)({phase:"COLLECTING"},Y,{phase:"COLLECTING"});return Ir}if(Z.type==="PUBLISH_WHILE_DRAGGING")return Y.phase==="COLLECTING"||Y.phase==="DROP_PENDING"||$(!1),Hr({state:Y,published:Z.payload});if(Z.type==="MOVE"){if(Y.phase==="DROP_PENDING")return Y;$t(Y)||$(!1);var Wr=Z.payload.client;return ut(Wr,Y.current.client.selection)?Y:Dn({state:Y,clientSelection:Wr,impact:Mr(Y)?Y.impact:null})}if(Z.type==="UPDATE_DROPPABLE_SCROLL"){if(Y.phase==="DROP_PENDING")return rr(Y);if(Y.phase==="COLLECTING")return rr(Y);$t(Y)||$(!1);var na=Z.payload,Br=na.id,Ma=na.newScroll,Aa=Y.dimensions.droppables[Br];if(!Aa)return Y;var Ga=Be(Aa,Ma);return qr(Y,Ga,!1)}if(Z.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;$t(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 qr(Y,j,!0)}if(Z.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Y.phase==="DROP_PENDING")return Y;$t(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 qr(Y,Re,!0)}if(Z.type==="MOVE_BY_WINDOW_SCROLL"){if(Y.phase==="DROP_PENDING"||Y.phase==="DROP_ANIMATING")return Y;$t(Y)||$(!1),Y.isWindowScrollAllowed||$(!1);var Ue=Z.payload.newScroll;if(ut(Y.viewport.scroll.current,Ue))return rr(Y);var mt=$r(Y.viewport,Ue);return Mr(Y)?In({state:Y,viewport:mt}):Dn({state:Y,viewport:mt})}if(Z.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!$t(Y))return Y;var Dt=Z.payload.maxScroll;if(ut(Dt,Y.viewport.scroll.max))return Y;var Zt=Object(b.a)({},Y.viewport,{scroll:Object(b.a)({},Y.viewport.scroll,{max:Dt})});return Object(b.a)({phase:"DRAGGING"},Y,{viewport:Zt})}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?Dn({state:Y,impact:Gt.impact,clientSelection:Gt.clientSelection,scrollJumpRequest:Gt.scrollJumpRequest}):Y}if(Z.type==="DROP_PENDING"){var On=Z.payload.reason;Y.phase==="COLLECTING"||$(!1);var Wn=Object(b.a)({phase:"DROP_PENDING"},Y,{phase:"DROP_PENDING",isWaiting:!0,reason:On});return Wn}if(Z.type==="DROP_ANIMATE"){var qn=Z.payload,yr=qn.completed,Lr=qn.dropDuration,Er=qn.newHomeClientOffset;Y.phase==="DRAGGING"||Y.phase==="DROP_PENDING"||$(!1);var Gr={phase:"DROP_ANIMATING",completed:yr,dropDuration:Lr,newHomeClientOffset:Er,dimensions:Y.dimensions};return Gr}if(Z.type==="DROP_COMPLETE"){var aa=Z.payload.completed;return{phase:"IDLE",completed:aa,shouldFlush:!1}}return Y},Yt=function(Z){return{type:"BEFORE_INITIAL_CAPTURE",payload:Z}},Vn=function(Z){return{type:"LIFT",payload:Z}},er=function(Z){return{type:"INITIAL_PUBLISH",payload:Z}},Ln=function(Z){return{type:"PUBLISH_WHILE_DRAGGING",payload:Z}},ir=function(){return{type:"COLLECTION_STARTING",payload:null}},cr=function(Z){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Z}},sr=function(Z){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Z}},Qr=function(Z){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Z}},lr=function(Z){return{type:"MOVE",payload:Z}},la=function(Z){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Z}},Vr=function(Z){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Z}},_r=function(){return{type:"MOVE_UP",payload:null}},Cr=function(){return{type:"MOVE_DOWN",payload:null}},Fr=function(){return{type:"MOVE_RIGHT",payload:null}},Xr=function(){return{type:"MOVE_LEFT",payload:null}},Sa=function(){return{type:"FLUSH",payload:null}},va=function(Z){return{type:"DROP_ANIMATE",payload:Z}},Ye=function(Z){return{type:"DROP_COMPLETE",payload:Z}},ct=function(Z){return{type:"DROP",payload:Z}},bt=function(Z){return{type:"DROP_PENDING",payload:Z}},nt=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Pe(Y){if(Y.length<=1)return;for(var Z=Y.map(function(He){return He.descriptor.index}),ie={},be=1;be<Z.length;be++){var Le=Z[be],Ne=Z[be-1];Le!==Ne+1&&(ie[Le]=!0)}if(!Object.keys(ie).length)return;var We=Z.map(function(He){var xt=Boolean(ie[He]);return xt?"[\u{1F525}"+He+"]":""+He}).join(", ")}function ze(Y,Z){if(!1)var ie}var Ie=function(Y){return function(Z){var ie=Z.getState,be=Z.dispatch;return function(Le){return function(Ne){if(Ne.type!=="LIFT"){Le(Ne);return}var We=Ne.payload,He=We.id,xt=We.clientSelection,jt=We.movementMode,Wt=ie();Wt.phase==="DROP_ANIMATING"&&be(Ye({completed:Wt.completed})),ie().phase==="IDLE"||$(!1),be(Sa()),be(Yt({draggableId:He,movementMode:jt}));var St={shouldPublishImmediately:jt==="SNAP"},Ct={draggableId:He,scrollOptions:St},kt=Y.startPublishing(Ct),pn=kt.critical,ur=kt.dimensions,gr=kt.viewport;ze(pn,ur),be(er({critical:pn,dimensions:ur,clientSelection:xt,movementMode:jt,viewport:gr}))}}}},Ze=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)}}}},Qe={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},ht={opacity:{drop:0,combining:.7},scale:{drop:.75}},it={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},It=it.outOfTheWay+"s "+Qe.outOfTheWay,zt={fluid:"opacity "+It,snap:"transform "+It+", opacity "+It,drop:function(Z){var ie=Z+"s "+Qe.drop;return"transform "+ie+", opacity "+ie},outOfTheWay:"transform "+It,placeholder:"height "+It+", width "+It+", margin "+It},hn=function(Z){return ut(Z,Te)?null:"translate("+Z.x+"px, "+Z.y+"px)"},ln={moveTo:hn,drop:function(Z,ie){var be=hn(Z);return be?ie?be+" scale("+ht.scale.drop+")":be:null}},dn=it.minDropTime,cn=it.maxDropTime,Hn=cn-dn,Cn=1500,Nr=.6,Ar=function(Y){var Z=Y.current,ie=Y.destination,be=Y.reason,Le=gt(Z,ie);if(Le<=0)return dn;if(Le>=Cn)return cn;var Ne=Le/Cn,We=dn+Hn*Ne,He=be==="CANCEL"?We*Nr:We;return Number(He.toFixed(2))},Yr=function(Y){var Z=Y.impact,ie=Y.draggable,be=Y.dimensions,Le=Y.viewport,Ne=Y.afterCritical,We=be.draggables,He=be.droppables,xt=Ht(Z),jt=xt?He[xt]:null,Wt=He[ie.descriptor.droppableId],St=_n({impact:Z,draggable:ie,draggables:We,afterCritical:Ne,droppable:jt||Wt,viewport:Le}),Ct=qe(St,ie.client.borderBox.center);return Ct},jr=function(Y){var Z=Y.draggables,ie=Y.reason,be=Y.lastImpact,Le=Y.home,Ne=Y.viewport,We=Y.onLiftImpact;if(!be.at||ie!=="DROP"){var He=Sn({draggables:Z,impact:We,destination:Le,viewport:Ne,forceShouldAnimate:!0});return{impact:He,didDropInsideDroppable:!1}}if(be.at.type==="REORDER")return{impact:be,didDropInsideDroppable:!0};var xt=Object(b.a)({},be,{displaced:Ot});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(be){return function(Le){if(Le.type!=="DROP"){be(Le);return}var Ne=Z(),We=Le.payload.reason;if(Ne.phase==="COLLECTING"){ie(bt({reason:We}));return}if(Ne.phase==="IDLE")return;var He=Ne.phase==="DROP_PENDING"&&Ne.isWaiting;He&&$(!1),Ne.phase==="DRAGGING"||Ne.phase==="DROP_PENDING"||$(!1);var xt=Ne.critical,jt=Ne.dimensions,Wt=jt.draggables[Ne.critical.draggable.id],St=jr({reason:We,lastImpact:Ne.impact,afterCritical:Ne.afterCritical,onLiftImpact:Ne.onLiftImpact,home:Ne.dimensions.droppables[Ne.critical.droppable.id],viewport:Ne.viewport,draggables:Ne.dimensions.draggables}),Ct=St.impact,kt=St.didDropInsideDroppable,pn=kt?rt(Ct):null,ur=kt?at(Ct):null,gr={index:xt.draggable.index,droppableId:xt.droppable.id},Ir={draggableId:Wt.descriptor.id,type:Wt.descriptor.type,source:gr,reason:We,mode:Ne.movementMode,destination:pn,combine:ur},Wr=Yr({impact:Ct,draggable:Wt,dimensions:jt,viewport:Ne.viewport,afterCritical:Ne.afterCritical}),na={critical:Ne.critical,afterCritical:Ne.afterCritical,result:Ir,impact:Ct},Br=!ut(Ne.current.client.offset,Wr)||Boolean(Ir.combine);if(!Br){ie(Ye({completed:na}));return}var Ma=Ar({current:Ne.current.client.offset,destination:Wr,reason:We}),Aa={newHomeClientOffset:Wr,dropDuration:Ma,completed:na};ie(va(Aa))}}},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 be=I(ie),Le=wr(be),Ne=Oe;function We(){return Ne!==Oe}function He(){We()&&$(!1),Ne=Ee(window,[Le])}function xt(){We()||$(!1),be.cancel(),Ne(),Ne=Oe}return{start:He,stop:xt,isActive:We}}var xn=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},Fn=function(Y){var Z=zn({onWindowScroll:function(be){Y.dispatch(la({newScroll:be}))}});return function(ie){return function(be){!Z.isActive()&&be.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&xn(be)&&Z.stop(),ie(be)}}},Kr=function(Y){var Z=!1,ie=!1,be=setTimeout(function(){ie=!0}),Le=function(We){if(Z)return;if(ie)return;Z=!0,Y(We),clearTimeout(be)};return Le.wasCalled=function(){return Z},Le},sa=function(){var Y=[],Z=function(Ne){var We=$e(Y,function(jt){return jt.timerId===Ne});We!==-1||$(!1);var He=Y.splice(We,1),xt=He[0];xt.callback()},ie=function(Ne){var We=setTimeout(function(){return Z(We)}),He={timerId:We,callback:Ne};Y.push(He)},be=function(){if(!Y.length)return;var Ne=[].concat(Y);Y.length=0,Ne.forEach(function(We){clearTimeout(We.timerId),We.callback()})};return{add:ie,flush:be}},hr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},ra=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.draggableId===ie.draggableId&&Z.droppableId===ie.droppableId},Ea=function(Z,ie){if(Z===ie)return!0;var be=Z.draggable.id===ie.draggable.id&&Z.draggable.droppableId===ie.draggable.droppableId&&Z.draggable.type===ie.draggable.type&&Z.draggable.index===ie.draggable.index,Le=Z.droppable.id===ie.droppable.id&&Z.droppable.type===ie.droppable.type;return be&&Le},ca=function(Z,ie){Or(),ie(),Pr()},xa=function(Z,ie){return{draggableId:Z.draggable.id,type:Z.droppable.type,source:{droppableId:Z.droppable.id,index:Z.draggable.index},mode:ie}},Sr=function(Z,ie,be,Le){if(!Z){be(Le(ie));return}var Ne=Kr(be),We={announce:Ne};Z(ie,We),Ne.wasCalled()||be(Le(ie))},br=function(Y,Z){var ie=sa(),be=null,Le=function(Ct,kt){be&&$(!1),ca("onBeforeCapture",function(){var pn=Y().onBeforeCapture;if(pn){var ur={draggableId:Ct,mode:kt};pn(ur)}})},Ne=function(Ct,kt){be&&$(!1),ca("onBeforeDragStart",function(){var pn=Y().onBeforeDragStart;pn&&pn(xa(Ct,kt))})},We=function(Ct,kt){be&&$(!1);var pn=xa(Ct,kt);be={mode:kt,lastCritical:Ct,lastLocation:pn.source,lastCombine:null},ie.add(function(){ca("onDragStart",function(){return Sr(Y().onDragStart,pn,Z,_e.onDragStart)})})},He=function(Ct,kt){var pn=rt(kt),ur=at(kt);be||$(!1);var gr=!Ea(Ct,be.lastCritical);gr&&(be.lastCritical=Ct);var Ir=!hr(be.lastLocation,pn);Ir&&(be.lastLocation=pn);var Wr=!ra(be.lastCombine,ur);if(Wr&&(be.lastCombine=ur),!gr&&!Ir&&!Wr)return;var na=Object(b.a)({},xa(Ct,be.mode),{combine:ur,destination:pn});ie.add(function(){ca("onDragUpdate",function(){return Sr(Y().onDragUpdate,na,Z,_e.onDragUpdate)})})},xt=function(){be||$(!1),ie.flush()},jt=function(Ct){be||$(!1),be=null,ca("onDragEnd",function(){return Sr(Y().onDragEnd,Ct,Z,_e.onDragEnd)})},Wt=function(){if(!be)return;var Ct=Object(b.a)({},xa(be.lastCritical,be.mode),{combine:null,destination:null,reason:"CANCEL"});jt(Ct)};return{beforeCapture:Le,beforeStart:Ne,start:We,update:He,flush:xt,drop:jt,abort:Wt}},Rr=function(Y,Z){var ie=br(Y,Z);return function(be){return function(Le){return function(Ne){if(Ne.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(Ne.payload.draggableId,Ne.payload.movementMode);return}if(Ne.type==="INITIAL_PUBLISH"){var We=Ne.payload.critical;ie.beforeStart(We,Ne.payload.movementMode),Le(Ne),ie.start(We,Ne.payload.movementMode);return}if(Ne.type==="DROP_COMPLETE"){var He=Ne.payload.completed.result;ie.flush(),Le(Ne),ie.drop(He);return}if(Le(Ne),Ne.type==="FLUSH"){ie.abort();return}var xt=be.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},nr=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var be=Y.getState();be.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Ye({completed:be.completed}))}}},da=function(Y){var Z=null,ie=null;function be(){ie&&(cancelAnimationFrame(ie),ie=null),Z&&(Z(),Z=null)}return function(Le){return function(Ne){if((Ne.type==="FLUSH"||Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATION_FINISHED")&&be(),Le(Ne),Ne.type!=="DROP_ANIMATE")return;var We={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=Ee(window,[We])})}}},ya=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)}}}},_a=function(Y){var Z=!1;return function(){return function(ie){return function(be){if(be.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(be.payload.critical.draggable.id),ie(be),Y.tryRestoreFocusRecorded();return}if(ie(be),!Z)return;if(be.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(be.type==="DROP_COMPLETE"){Z=!1;var Le=be.payload.completed.result;Le.combine&&Y.tryShiftRecord(Le.draggableId,Le.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Ta=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},ha=function(Y){return function(Z){return function(ie){return function(be){if(Ta(be)){Y.stop(),ie(be);return}if(be.type==="INITIAL_PUBLISH"){ie(be);var Le=Z.getState();Le.phase==="DRAGGING"||$(!1),Y.start(Le);return}ie(be),Y.scroll(Z.getState())}}}},La=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var be=Y.getState();if(be.phase!=="DROP_PENDING")return;if(be.isWaiting)return;Y.dispatch(ct({reason:be.reason}))}}},Na=y.d,Ba=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,be=Y.styleMarshal,Le=Y.getResponders,Ne=Y.announce,We=Y.autoScroller;return Object(y.e)(Jt,Na(Object(y.a)(Ze(be),ya(Z),Ie(Z),ta,nr,da,La,ha(We),Fn,_a(ie),Rr(Le,Ne))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,be=ni(),Le=null,Ne=function(){if(Le)return;ie.collectionStarting(),Le=requestAnimationFrame(function(){Le=null,Or();var Wt=be,St=Wt.additions,Ct=Wt.removals,kt=Wt.modified,pn=Object.keys(St).map(function(Ir){return Z.draggable.getById(Ir).getDimension(Te)}).sort(function(Ir,Wr){return Ir.descriptor.index-Wr.descriptor.index}),ur=Object.keys(kt).map(function(Ir){var Wr=Z.droppable.getById(Ir),na=Wr.callbacks.getScrollWhileDragging();return{droppableId:Ir,scroll:na}}),gr={additions:pn,removals:Object.keys(Ct),modified:ur};be=ni(),Pr(),ie.publish(gr)})},We=function(Wt){var St=Wt.descriptor.id;be.additions[St]=Wt,be.modified[Wt.descriptor.droppableId]=!0,be.removals[St]&&delete be.removals[St],Ne()},He=function(Wt){var St=Wt.descriptor;be.removals[St.id]=!0,be.modified[St.droppableId]=!0,be.additions[St.id]&&delete be.additions[St.id],Ne()},xt=function(){if(!Le)return;cancelAnimationFrame(Le),Le=null,be=ni()};return{add:We,remove:He,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,be=Y.height,Le=Y.width,Ne=qe({x:ie,y:Z},{x:Le,y:be}),We={x:Math.max(0,Ne.x),y:Math.max(0,Ne.y)};return We},Ia=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=Ia(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},wi=function(){var Y=Gn(),Z=bi(),ie=Y.y,be=Y.x,Le=Ia(),Ne=Le.clientWidth,We=Le.clientHeight,He=be+Ne,xt=ie+We,jt=n({top:ie,left:be,right:He,bottom:xt}),Wt={frame:jt,scroll:{initial:Y,current:Y,max:Z,diff:{value:Te,displacement:Te}}};return Wt},Ua=function(Y){var Z=Y.critical,ie=Y.scrollOptions,be=Y.registry;Or();var Le=wi(),Ne=Le.scroll.current,We=Z.droppable,He=be.droppable.getAllByType(We.type).map(function(St){return St.callbacks.getDimensionAndWatchScroll(Ne,ie)}),xt=be.draggable.getAllByType(Z.draggable.type).map(function(St){return St.getDimension(Ne)}),jt={draggables:bn(xt),droppables:qt(He)};Pr();var Wt={dimensions:jt,critical:Z,viewport:Le};return Wt};function Pa(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var be=Y.droppable.getById(ie.descriptor.droppableId);return!(be.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,be=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Le=function(kt,pn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:pn})},Ne=function(kt,pn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:pn})},We=function(kt,pn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:pn})},He=function(kt,pn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(pn)},xt=function(){if(!ie)return;be.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(pn){return pn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},jt=function(kt){ie||$(!1);var pn=ie.critical.draggable;kt.type==="ADDITION"&&(Pa(Y,pn,kt.value)&&be.add(kt.value)),kt.type==="REMOVAL"&&(Pa(Y,pn,kt.value)&&be.remove(kt.value))},Wt=function(kt){ie&&$(!1);var pn=Y.draggable.getById(kt.draggableId),ur=Y.droppable.getById(pn.descriptor.droppableId),gr={draggable:pn.descriptor,droppable:ur.descriptor},Ir=Y.subscribe(jt);return ie={critical:gr,unsubscribe:Ir},Ua({critical:gr,registry:Y,scrollOptions:kt.scrollOptions})},St={updateDroppableIsEnabled:Le,updateDroppableIsCombineEnabled:Ne,scrollDroppable:He,updateDroppableScroll:We,startPublishing:Wt,stopPublishing:xt};return St},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=O(function(Y){return At(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var be=_t(Ii(ie),function(Le){return Le.frame||$(!1),En(Le.frame.pageMarginBox)(Z)});return be},ro=function(Y){var Z=Y.center,ie=Y.destination,be=Y.droppables;if(ie){var Le=be[ie];return Le.frame?Le:null}var Ne=no(Z,be);return Ne},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,be=Y[Z.size]*mi.maxScrollAtPercentage,Le={startScrollingFrom:ie,maxScrollValueAt:be};return Le},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,be=Y.current,Le=ie-Z;if(Le===0)return 0;var Ne=be-Z,We=Ne/Le;return We},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}),be=1-ie,Le=mi.maxPixelScroll*mi.ease(be);return Math.ceil(Le)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,be=co,Le=Date.now(),Ne=Le-ie;if(Ne>=co)return Y;if(Ne<Vi)return Lo;var We=Io({startOfRange:Vi,endOfRange:be,current:Ne}),He=Y*mi.ease(We);return Math.ceil(He)},Yi=function(Y){var Z=Y.distanceToEdge,ie=Y.thresholds,be=Y.dragStartTime,Le=Y.shouldUseTimeDampening,Ne=bo(Z,ie);return Ne===0?0:Le?Math.max(Xi(Ne,be),Lo):Ne},No=function(Y){var Z=Y.container,ie=Y.distanceToEdges,be=Y.dragStartTime,Le=Y.axis,Ne=Y.shouldUseTimeDampening,We=uo(Z,Le),He=ie[Le.end]<ie[Le.start];return He?Yi({distanceToEdge:ie[Le.end],thresholds:We,dragStartTime:be,shouldUseTimeDampening:Ne}):-1*Yi({distanceToEdge:ie[Le.start],thresholds:We,dragStartTime:be,shouldUseTimeDampening:Ne})},yo=function(Y){var Z=Y.container,ie=Y.subject,be=Y.proposedScroll,Le=ie.height>Z.height,Ne=ie.width>Z.width;return!Ne&&!Le?be:Ne&&Le?null:{x:Ne?0:be.x,y:Le?0:be.y}},ao=ke(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,be=Y.subject,Le=Y.center,Ne=Y.shouldUseTimeDampening,We={top:Le.y-ie.top,right:ie.right-Le.x,bottom:ie.bottom-Le.y,left:Le.x-ie.left},He=No({container:ie,distanceToEdges:We,dragStartTime:Z,axis:an,shouldUseTimeDampening:Ne}),xt=No({container:ie,distanceToEdges:We,dragStartTime:Z,axis:nn,shouldUseTimeDampening:Ne}),jt=ao({x:xt,y:He});if(ut(jt,Te))return null;var Wt=yo({container:ie,subject:be,proposedScroll:jt});return Wt?ut(Wt,Te)?null:Wt:null},Qi=ke(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,be){return ie<0?ie:ie>be?ie-be:0};return function(Z){var ie=Z.current,be=Z.max,Le=Z.change,Ne=Ge(ie,Le),We={x:Y(Ne.x,be.x),y:Y(Ne.y,be.y)};return ut(We,Te)?null:We}}(),Li=function(Z){var ie=Z.max,be=Z.current,Le=Z.change,Ne={x:Math.max(be.x,ie.x),y:Math.max(be.y,ie.y)},We=Qi(Le),He=ei({max:Ne,current:be,change:We});return He?We.x!==0&&He.x===0?!0:We.y!==0&&He.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 be=Z.scroll.max,Le=Z.scroll.current;return ei({current:Le,max:be,change:ie})},Ri=function(Z,ie){var be=Z.frame;return be?Li({current:be.scroll.current,max:be.scroll.max,change:ie}):!1},Eo=function(Z,ie){var be=Z.frame;return be&&Ri(Z,ie)?ei({current:be.scroll.current,max:be.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,be=Y.center,Le=Y.dragStartTime,Ne=Y.shouldUseTimeDampening,We=Ji({dragStartTime:Le,container:Z.frame,subject:ie,center:be,shouldUseTimeDampening:Ne});return We&&Di(Z,We)?We:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,be=Y.center,Le=Y.dragStartTime,Ne=Y.shouldUseTimeDampening,We=Z.frame;if(!We)return null;var He=Ji({dragStartTime:Le,container:We.pageMarginBox,subject:ie,center:be,shouldUseTimeDampening:Ne});return He&&Ri(Z,He)?He:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,be=Y.shouldUseTimeDampening,Le=Y.scrollWindow,Ne=Y.scrollDroppable,We=Z.current.page.borderBoxCenter,He=Z.dimensions.draggables[Z.critical.draggable.id],xt=He.page.marginBox;if(Z.isWindowScrollAllowed){var jt=Z.viewport,Wt=xo({dragStartTime:ie,viewport:jt,subject:xt,center:We,shouldUseTimeDampening:be});if(Wt){Le(Wt);return}}var St=ro({center:We,destination:Ht(Z.impact),droppables:Z.dimensions.droppables});if(!St)return;var Ct=Co({dragStartTime:ie,droppable:St,subject:xt,center:We,shouldUseTimeDampening:be});Ct&&Ne(St.descriptor.id,Ct)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,be=I(Z),Le=I(ie),Ne=null,We=function(Wt){Ne||$(!1);var St=Ne,Ct=St.shouldUseTimeDampening,kt=St.dragStartTime;io({state:Wt,scrollWindow:be,scrollDroppable:Le,dragStartTime:kt,shouldUseTimeDampening:Ct})},He=function(Wt){Or(),Ne&&$(!1);var St=Date.now(),Ct=!1,kt=function(){Ct=!0};io({state:Wt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),Ne={dragStartTime:St,shouldUseTimeDampening:Ct},Pr(),Ct&&We(Wt)},xt=function(){if(!Ne)return;be.cancel(),Le.cancel(),Ne=null};return{start:He,stop:xt,scroll:We}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,be=Y.scrollWindow,Le=function(jt,Wt){var St=Ge(jt.current.client.selection,Wt);Z({client:St})},Ne=function(jt,Wt){if(!Ri(jt,Wt))return Wt;var St=Eo(jt,Wt);if(!St)return ie(jt.descriptor.id,Wt),null;var Ct=qe(Wt,St);ie(jt.descriptor.id,Ct);var kt=qe(Wt,Ct);return kt},We=function(jt,Wt,St){if(!jt)return St;if(!Di(Wt,St))return St;var Ct=Zi(Wt,St);if(!Ct)return be(St),null;var kt=qe(St,Ct);be(kt);var pn=qe(St,kt);return pn},He=function(jt){var Wt=jt.scrollJumpRequest;if(!Wt)return;var St=Ht(jt.impact);St||$(!1);var Ct=Ne(jt.dimensions.droppables[St],Wt);if(!Ct)return;var kt=jt.viewport,pn=We(jt.isWindowScrollAllowed,kt,Ct);if(!pn)return;Le(jt,pn)};return He},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,be=Y.move,Le=Ni({scrollWindow:ie,scrollDroppable:Z}),Ne=qi({move:be,scrollWindow:ie,scrollDroppable:Z}),We=function(jt){if(jt.phase!=="DRAGGING")return;if(jt.movementMode==="FLUID"){Le.scroll(jt);return}if(!jt.scrollJumpRequest)return;Ne(jt)},He={scroll:We,start:Le.start,stop:Le.stop};return He},oo="data-rbd",so=function(){var Y=oo+"-drag-handle";return{base:Y,draggableId:Y+"-draggable-id",contextId:Y+"-context-id"}}(),wo=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+'"]'}},Wa=function(Z,ie){return Z.map(function(be){var Le=be.styles[ie];return Le?be.selector+" { "+Le+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var He=`
|
|
|
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:He,dragging:ri,dropAnimating:He}}}(),be=function(){var He=`
|
|
|
transition: `+zt.outOfTheWay+`;
|
|
|
`;return{selector:Z(wo.contextId),styles:{dragging:He,dropAnimating:He,userCancel:He}}}(),Le={selector:Z(Uo.contextId),styles:{always:"overflow-anchor: none;"}},Ne={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},We=[be,ie,Le,Ne];return{always:Wa(We,"always"),resting:Wa(We,"resting"),dragging:Wa(We,"dragging"),dropAnimating:Wa(We,"dropAnimating"),userCancel:Wa(We,"userCancel")}},ai=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?M.useLayoutEffect:M.useEffect,So=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]),be=Object(M.useRef)(null),Le=Object(M.useRef)(null),Ne=r(O(function(St){var Ct=Le.current;Ct||$(!1),Ct.textContent=St}),[]),We=r(function(St){var Ct=be.current;Ct||$(!1),Ct.textContent=St},[]);ai(function(){!be.current&&!Le.current||$(!1);var St=yi(Z),Ct=yi(Z);return be.current=St,Le.current=Ct,St.setAttribute(oo+"-always",Y),Ct.setAttribute(oo+"-dynamic",Y),So().appendChild(St),So().appendChild(Ct),We(ie.always),Ne(ie.resting),function(){var kt=function(ur){var gr=ur.current;gr||$(!1),So().removeChild(gr),ur.current=null};kt(be),kt(Le)}},[Z,We,Ne,ie.always,ie.resting,Y]);var He=r(function(){return Ne(ie.dragging)},[Ne,ie.dragging]),xt=r(function(St){if(St==="DROP"){Ne(ie.dropAnimating);return}Ne(ie.userCancel)},[Ne,ie.dropAnimating,ie.userCancel]),jt=r(function(){if(!Le.current)return;Ne(ie.resting)},[Ne,ie.resting]),Wt=f(function(){return{dragging:He,dropping:xt,resting:jt}},[He,xt,jt]);return Wt}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+'"]',be=Ft(document.querySelectorAll(ie));if(!be.length)return null;var Le=_t(be,function(Ne){return Ne.getAttribute(so.draggableId)===Z});return Le&&$i(Le)?Le:null}function Oo(Y){var Z=Object(M.useRef)({}),ie=Object(M.useRef)(null),be=Object(M.useRef)(null),Le=Object(M.useRef)(!1),Ne=r(function(Ct,kt){var pn={id:Ct,focus:kt};return Z.current[Ct]=pn,function(){var gr=Z.current,Ir=gr[Ct];Ir!==pn&&delete gr[Ct]}},[]),We=r(function(Ct){var kt=Wi(Y,Ct);kt&&kt!==document.activeElement&&kt.focus()},[Y]),He=r(function(Ct,kt){ie.current===Ct&&(ie.current=kt)},[]),xt=r(function(){if(be.current)return;if(!Le.current)return;be.current=requestAnimationFrame(function(){be.current=null;var Ct=ie.current;Ct&&We(Ct)})},[We]),jt=r(function(Ct){ie.current=null;var kt=document.activeElement;if(!kt)return;if(kt.getAttribute(so.draggableId)!==Ct)return;ie.current=Ct},[]);ai(function(){return Le.current=!0,function(){Le.current=!1;var Ct=be.current;Ct&&cancelAnimationFrame(Ct)}},[]);var Wt=f(function(){return{register:Ne,tryRecordFocus:jt,tryRestoreFocusRecorded:xt,tryShiftRecord:He}},[Ne,jt,xt,He]);return Wt}function fo(){var Y={draggables:{},droppables:{}},Z=[];function ie(St){return Z.push(St),function(){var kt=Z.indexOf(St);if(kt===-1)return;Z.splice(kt,1)}}function be(St){Z.length&&Z.forEach(function(Ct){return Ct(St)})}function Le(St){return Y.draggables[St]||null}function Ne(St){var Ct=Le(St);return Ct||$(!1),Ct}var We={register:function(Ct){Y.draggables[Ct.descriptor.id]=Ct,be({type:"ADDITION",value:Ct})},update:function(Ct,kt){var pn=Y.draggables[kt.descriptor.id];if(!pn)return;if(pn.uniqueId!==Ct.uniqueId)return;delete Y.draggables[kt.descriptor.id],Y.draggables[Ct.descriptor.id]=Ct},unregister:function(Ct){var kt=Ct.descriptor.id,pn=Le(kt);if(!pn)return;if(Ct.uniqueId!==pn.uniqueId)return;delete Y.draggables[kt],be({type:"REMOVAL",value:Ct})},getById:Ne,findById:Le,exists:function(Ct){return Boolean(Le(Ct))},getAllByType:function(Ct){return Ke(Y.draggables).filter(function(kt){return kt.descriptor.type===Ct})}};function He(St){return Y.droppables[St]||null}function xt(St){var Ct=He(St);return Ct||$(!1),Ct}var jt={register:function(Ct){Y.droppables[Ct.descriptor.id]=Ct},unregister:function(Ct){var kt=He(Ct.descriptor.id);if(!kt)return;if(Ct.uniqueId!==kt.uniqueId)return;delete Y.droppables[Ct.descriptor.id]},getById:xt,findById:He,exists:function(Ct){return Boolean(He(Ct))},getAllByType:function(Ct){return Ke(Y.droppables).filter(function(kt){return kt.descriptor.type===Ct})}};function Wt(){Y.draggables={},Y.droppables={},Z.length=0}return{draggable:We,droppable:jt,subscribe:ie,clean:Wt}}function Wo(){var Y=f(fo,[]);return Object(M.useEffect)(function(){return function(){requestAnimationFrame(Y.clean)}},[Y]),Y}var lo=m.a.createContext(null),Oa=function(){var Y=document.body;return Y||$(!1),Y},ba={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ka=function(Z){return"rbd-announcement-"+Z};function ui(Y){var Z=f(function(){return Ka(Y)},[Y]),ie=Object(M.useRef)(null);Object(M.useEffect)(function(){var Ne=document.createElement("div");return ie.current=Ne,Ne.id=Z,Ne.setAttribute("aria-live","assertive"),Ne.setAttribute("aria-atomic","true"),Object(b.a)(Ne.style,ba),Oa().appendChild(Ne),function(){setTimeout(function(){var xt=Oa();xt.contains(Ne)&&xt.removeChild(Ne),Ne===ie.current&&(ie.current=null)})}},[Z]);var be=r(function(Le){var Ne=ie.current;if(Ne){Ne.textContent=Le;return}},[]);return be}var eo=0,ki={separator:"::"};function ho(){eo=0}function Si(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,be=Si("hidden-text",{separator:"-"}),Le=f(function(){return qa({contextId:Z,uniqueId:be})},[be,Z]);return Object(M.useEffect)(function(){var We=document.createElement("div");return We.id=Le,We.textContent=ie,We.style.display="none",Oa().appendChild(We),function(){var xt=Oa();xt.contains(We)&&xt.removeChild(We)}},[Le,ie]),Le}var Hi=m.a.createContext(null),mo={react:"^16.8.5","react-dom":"^16.8.5"},hi=/(\d+)\.(\d+)\.(\d+)/,Da=function(Z){var ie=hi.exec(Z);ie!=null||$(!1);var be=Number(ie[1]),Le=Number(ie[2]),Ne=Number(ie[3]);return{major:be,minor:Le,patch:Ne,raw:Z}},ia=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},xr=function(Y,Z){var ie=Da(Y),be=Da(Z);if(ia(ie,be))return},Jr=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,ma=function(Y){var Z=Y.doctype;if(!Z)return;Z.name.toLowerCase()!=="html",Z.publicId!==""};function Fa(Y){}function Ei(Y,Z){Fa(function(){Object(M.useEffect)(function(){try{Y()}catch(ie){Ce(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+ie.message+`
|
|
|
`)}},Z)})}function Pi(){Ei(function(){xr(mo.react,m.a.version),ma(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(We){return We===Y}function be(We){Y&&$(!1);var He={abandon:We};return Y=He,He}function Le(){Y||$(!1),Y=null}function Ne(){Y&&(Y.abandon(),Le())}return{isClaimed:Z,isActive:ie,claim:be,release:Le,tryAbandon:Ne}}var Ki=9,go=13,Qa=27,As=32,Ys=33,Pl=34,hs=35,Ds=36,Js=37,Ml=38,Qs=39,Il=40,ps,ms=(ps={},ps[go]=!0,ps[Ki]=!0,ps),Rs=function(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=_t(Z,function(be){return"on"+be 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,be=Y.getPhase,Le=Y.setPhase;return[{eventName:"mousemove",fn:function(We){var He=We.button,xt=We.clientX,jt=We.clientY;if(He!==Zs)return;var Wt={x:xt,y:jt},St=be();if(St.type==="DRAGGING"){We.preventDefault(),St.actions.move(Wt);return}St.type==="PENDING"||$(!1);var Ct=St.point;if(!Ho(Ct,Wt))return;We.preventDefault();var kt=St.actions.fluidLift(Wt);Le({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(We){var He=be();if(He.type!=="DRAGGING"){Z();return}We.preventDefault(),He.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(We){be().type==="DRAGGING"&&We.preventDefault(),Z()}},{eventName:"keydown",fn:function(We){var He=be();if(He.type==="PENDING"){Z();return}if(We.keyCode===Qa){We.preventDefault(),Z();return}Rs(We)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){be().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(We){var He=be();if(He.type!=="IDLE"||$(!1),He.actions.shouldRespectForcePress()){Z();return}We.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(M.useRef)(vs),ie=Object(M.useRef)(Oe),be=f(function(){return{eventName:"mousedown",fn:function(St){if(St.defaultPrevented)return;if(St.button!==Zs)return;if(St.ctrlKey||St.metaKey||St.shiftKey||St.altKey)return;var Ct=Y.findClosestDraggableId(St);if(!Ct)return;var kt=Y.tryGetLock(Ct,We,{sourceEvent:St});if(!kt)return;St.preventDefault();var pn={x:St.clientX,y:St.clientY};ie.current(),jt(kt,pn)}}},[Y]),Le=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(St){if(St.defaultPrevented)return;var Ct=Y.findClosestDraggableId(St);if(!Ct)return;var kt=Y.findOptionsForDraggable(Ct);if(!kt)return;if(kt.shouldRespectForcePress)return;if(!Y.canGetLock(Ct))return;St.preventDefault()}}},[Y]),Ne=r(function(){var St={passive:!1,capture:!0};ie.current=Ee(window,[Le,be],St)},[Le,be]),We=r(function(){var Wt=Z.current;if(Wt.type==="IDLE")return;Z.current=vs,ie.current(),Ne()},[Ne]),He=r(function(){var Wt=Z.current;We(),Wt.type==="DRAGGING"&&Wt.actions.cancel({shouldBlockNextClick:!0}),Wt.type==="PENDING"&&Wt.actions.abort()},[We]),xt=r(function(){var St={capture:!0,passive:!1},Ct=_s({cancel:He,completed:We,getPhase:function(){return Z.current},setPhase:function(pn){Z.current=pn}});ie.current=Ee(window,Ct,St)},[He,We]),jt=r(function(St,Ct){Z.current.type==="IDLE"||$(!1),Z.current={type:"PENDING",point:Ct,actions:St},xt()},[xt]);ai(function(){return Ne(),function(){ie.current()}},[Ne])}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 be(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(Ne){if(Ne.keyCode===Qa){Ne.preventDefault(),ie();return}if(Ne.keyCode===As){Ne.preventDefault(),be();return}if(Ne.keyCode===Il){Ne.preventDefault(),Y.moveDown();return}if(Ne.keyCode===Ml){Ne.preventDefault(),Y.moveUp();return}if(Ne.keyCode===Qs){Ne.preventDefault(),Y.moveRight();return}if(Ne.keyCode===Js){Ne.preventDefault(),Y.moveLeft();return}if(Ll[Ne.keyCode]){Ne.preventDefault();return}Rs(Ne)}},{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(Ne){if(Ne.defaultPrevented)return;if(Ne.keyCode!==As)return;var We=Y.findClosestDraggableId(Ne);if(!We)return;var He=Y.tryGetLock(We,Wt,{sourceEvent:Ne});if(!He)return;Ne.preventDefault();var xt=!0,jt=He.snapLift();Z.current();function Wt(){xt||$(!1),xt=!1,Z.current(),be()}Z.current=Ee(window,tl(jt,Wt),{capture:!0,passive:!1})}}},[Y]),be=r(function(){var Ne={passive:!1,capture:!0};Z.current=Ee(window,[ie],Ne)},[ie]);ai(function(){return be(),function(){Z.current()}},[be])}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(Le){Le.preventDefault()}},{eventName:"keydown",fn:function(Le){if(ie().type!=="DRAGGING"){Z();return}Le.keyCode===Qa&&Le.preventDefault(),Z()}},{eventName:gs,fn:Z}]}function Go(Y){var Z=Y.cancel,ie=Y.completed,be=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ne){var We=be();if(We.type!=="DRAGGING"){Z();return}We.hasMoved=!0;var He=Ne.touches[0],xt=He.clientX,jt=He.clientY,Wt={x:xt,y:jt};Ne.preventDefault(),We.actions.move(Wt)}},{eventName:"touchend",fn:function(Ne){var We=be();if(We.type!=="DRAGGING"){Z();return}Ne.preventDefault(),We.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(Ne){if(be().type!=="DRAGGING"){Z();return}Ne.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(Ne){var We=be();We.type!=="IDLE"||$(!1);var He=Ne.touches[0];if(!He)return;var xt=He.force>=rl;if(!xt)return;var jt=We.actions.shouldRespectForcePress();if(We.type==="PENDING"){jt&&Z();return}if(jt){if(We.hasMoved){Ne.preventDefault();return}Z();return}Ne.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(M.useRef)(Ko),ie=Object(M.useRef)(Oe),be=r(function(){return Z.current},[]),Le=r(function(kt){Z.current=kt},[]),Ne=f(function(){return{eventName:"touchstart",fn:function(kt){if(kt.defaultPrevented)return;var pn=Y.findClosestDraggableId(kt);if(!pn)return;var ur=Y.tryGetLock(pn,He,{sourceEvent:kt});if(!ur)return;var gr=kt.touches[0],Ir=gr.clientX,Wr=gr.clientY,na={x:Ir,y:Wr};ie.current(),St(ur,na)}}},[Y]),We=r(function(){var kt={capture:!0,passive:!1};ie.current=Ee(window,[Ne],kt)},[Ne]),He=r(function(){var Ct=Z.current;if(Ct.type==="IDLE")return;Ct.type==="PENDING"&&clearTimeout(Ct.longPressTimerId),Le(Ko),ie.current(),We()},[We,Le]),xt=r(function(){var Ct=Z.current;He(),Ct.type==="DRAGGING"&&Ct.actions.cancel({shouldBlockNextClick:!0}),Ct.type==="PENDING"&&Ct.actions.abort()},[He]),jt=r(function(){var kt={capture:!0,passive:!1},pn={cancel:xt,completed:He,getPhase:be},ur=Ee(window,Go(pn),kt),gr=Ee(window,al(pn),kt);ie.current=function(){ur(),gr()}},[xt,be,He]),Wt=r(function(){var kt=be();kt.type==="PENDING"||$(!1);var pn=kt.actions.fluidLift(kt.point);Le({type:"DRAGGING",actions:pn,hasMoved:!1})},[be,Le]),St=r(function(kt,pn){be().type==="IDLE"||$(!1);var ur=setTimeout(Wt,nl);Le({type:"PENDING",point:pn,actions:kt,longPressTimerId:ur}),jt()},[jt,be,Le,Wt]);ai(function(){return We(),function(){ie.current();var pn=be();pn.type==="PENDING"&&(clearTimeout(pn.longPressTimerId),Le(Ko))}},[be,We,Le]),ai(function(){var kt=Ee(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return kt},[])}function il(Y){Fa(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 be=Z.getAttribute("contenteditable");return be==="true"||be===""?!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=_t(Z,function(be){return be 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 be=Xo(Y),Le=Nl(ie,be);return Le&&$i(Le)?Le:null}function cl(Y,Z){var ie=ul(Y,Z);return ie?ie.getAttribute(so.draggableId):null}function dl(Y,Z){var ie="["+wo.contextId+'="'+Y+'"]',be=Ft(document.querySelectorAll(ie)),Le=_t(be,function(Ne){return Ne.getAttribute(wo.id)===Z});return Le&&$i(Le)?Le:null}function ts(Y){Y.preventDefault()}function Do(Y){var Z=Y.expected,ie=Y.phase,be=Y.isLockActive,Le=Y.shouldWarn;return be()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,be=Y.registry,Le=Y.draggableId;if(Z.isClaimed())return!1;var Ne=be.draggable.findById(Le);return Ne&&Ne.options.isEnabled?!!to(ie.getState(),Le):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,be=Y.store,Le=Y.registry,Ne=Y.draggableId,We=Y.forceSensorStop,He=Y.sourceEvent,xt=Yo({lockAPI:Z,store:be,registry:Le,draggableId:Ne});if(!xt)return null;var jt=Le.draggable.getById(Ne),Wt=dl(ie,jt.descriptor.id);if(!Wt)return null;if(He&&!jt.options.canDragInteractiveElements&&zo(Wt,He))return null;var St=Z.claim(We||Oe),Ct="PRE_DRAG";function kt(){return jt.options.shouldRespectForcePress}function pn(){return Z.isActive(St)}function ur(Aa,Ga){Do({expected:Aa,phase:Ct,isLockActive:pn,shouldWarn:!0})&&be.dispatch(Ga())}var gr=ur.bind(null,"DRAGGING");function Ir(Aa){function Ga(){Z.release(),Ct="COMPLETED"}Ct!=="PRE_DRAG"&&(Ga(),Ct==="PRE_DRAG"||$(!1)),be.dispatch(Vn(Aa.liftActionArgs)),Ct="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Aa.cleanup(),p.shouldBlockNextClick){var B=Ee(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}Ga(),be.dispatch(ct({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:Ct,isLockActive:pn,shouldWarn:!1})},shouldRespectForcePress:kt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Aa.actions)}function Wr(Aa){var Ga=I(function(t){gr(function(){return lr({client:t})})}),si=Ir({liftActionArgs:{id:Ne,clientSelection:Aa,movementMode:"FLUID"},cleanup:function(){return Ga.cancel()},actions:{move:Ga}});return Object(b.a)({},si,{move:Ga})}function na(){var Aa={moveUp:function(){return gr(_r)},moveRight:function(){return gr(Fr)},moveDown:function(){return gr(Cr)},moveLeft:function(){return gr(Xr)}};return Ir({liftActionArgs:{id:Ne,clientSelection:sl(Wt),movementMode:"SNAP"},cleanup:Oe,actions:Aa})}function Br(){var Aa=Do({expected:"PRE_DRAG",phase:Ct,isLockActive:pn,shouldWarn:!0});Aa&&Z.release()}var Ma={isActive:function(){return Do({expected:"PRE_DRAG",phase:Ct,isLockActive:pn,shouldWarn:!1})},shouldRespectForcePress:kt,fluidLift:Wr,snapLift:na,abort:Br};return Ma}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,be=Y.registry,Le=Y.customSensors,Ne=Y.enableDefaultSensors,We=[].concat(Ne?fl:[],Le||[]),He=Object(M.useState)(function(){return xi()})[0],xt=r(function(Wr,na){Wr.isDragging&&!na.isDragging&&He.tryAbandon()},[He]);ai(function(){var Wr=ie.getState(),na=ie.subscribe(function(){var Br=ie.getState();xt(Wr,Br),Wr=Br});return na},[He,ie,xt]),ai(function(){return He.tryAbandon},[He.tryAbandon]);var jt=r(function(Ir){return Yo({lockAPI:He,registry:be,store:ie,draggableId:Ir})},[He,be,ie]),Wt=r(function(Ir,Wr,na){return ns({lockAPI:He,registry:be,contextId:Z,store:ie,draggableId:Ir,forceSensorStop:Wr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Z,He,be,ie]),St=r(function(Ir){return cl(Z,Ir)},[Z]),Ct=r(function(Ir){var Wr=be.draggable.findById(Ir);return Wr?Wr.options:null},[be.draggable]),kt=r(function(){if(!He.isClaimed())return;He.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Sa())},[He,ie]),pn=r(He.isClaimed,[He]),ur=f(function(){return{canGetLock:jt,tryGetLock:Wt,findClosestDraggableId:St,findOptionsForDraggable:Ct,tryReleaseLock:kt,isLockClaimed:pn}},[jt,Wt,St,Ct,kt,pn]);il(We);for(var gr=0;gr<We.length;gr++)We[gr](ur)}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,be=Y.sensors,Le=Y.nonce,Ne=Y.dragHandleUsageInstructions,We=Object(M.useRef)(null);Pi();var He=$a(Y),xt=r(function(){return hl(He.current)},[He]),jt=ui(Z),Wt=po({contextId:Z,text:Ne}),St=Bo(Z,Le),Ct=r(function(t){Gi(We).dispatch(t)},[]),kt=f(function(){return Object(y.b)({publishWhileDragging:Ln,updateDroppableScroll:cr,updateDroppableIsEnabled:sr,updateDroppableIsCombineEnabled:Qr,collectionStarting:ir},Ct)},[Ct]),pn=Wo(),ur=f(function(){return Za(pn,kt)},[pn,kt]),gr=f(function(){return ko(Object(b.a)({scrollWindow:Mo,scrollDroppable:ur.scrollDroppable},Object(y.b)({move:lr},Ct)))},[ur.scrollDroppable,Ct]),Ir=Oo(Z),Wr=f(function(){return Ba({announce:jt,autoScroller:gr,dimensionMarshal:ur,focusMarshal:Ir,getResponders:xt,styleMarshal:St})},[jt,gr,ur,Ir,xt,St]);We.current=Wr;var na=r(function(){var t=Gi(We),p=t.getState();p.phase!=="IDLE"&&t.dispatch(Sa())},[]),Br=r(function(){var t=Gi(We).getState();return t.isDragging||t.phase==="DROP_ANIMATING"},[]),Ma=f(function(){return{isDragging:Br,tryAbort:na}},[Br,na]);ie(Ma);var Aa=r(function(t){return to(Gi(We).getState(),t)},[]),Ga=r(function(){return $t(Gi(We).getState())},[]),si=f(function(){return{marshal:ur,focus:Ir,contextId:Z,canLift:Aa,isMovementAllowed:Ga,dragHandleUsageInstructionsId:Wt,registry:pn}},[Z,ur,Wt,Ir,Aa,Ga,pn]);return kl({contextId:Z,store:Wr,registry:pn,customSensors:be,enableDefaultSensors:Y.enableDefaultSensors!==!1}),Object(M.useEffect)(function(){return na},[na]),m.a.createElement(Hi.Provider,{value:si},m.a.createElement(C.a,{context:lo,store:Wr},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 m.a.createElement(me,null,function(be){return m.a.createElement(Jo,{nonce:Y.nonce,contextId:Z,setCallbacks:be,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),be={overflowX:ie.overflowX,overflowY:ie.overflowY};return gl(be,Ti)||gl(be,ml)},vl=function(){return!1;var Z,ie;if(!Ls(Z))return!1;var be,Le;if(Fl(Le,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,be=Y.isCombineEnabled,Le=Y.isFixedOnPage,Ne=Y.direction,We=Y.client,He=Y.page,xt=Y.closest,jt=function(){if(!xt)return null;var kt=xt.scrollSize,pn=xt.client,ur=Ai({scrollHeight:kt.scrollHeight,scrollWidth:kt.scrollWidth,height:pn.paddingBox.height,width:pn.paddingBox.width});return{pageMarginBox:xt.page.marginBox,frameClient:pn,scrollSize:kt,shouldClipSubject:xt.shouldClipSubject,scroll:{initial:xt.scroll,current:xt.scroll,max:ur,diff:{value:Te,displacement:Te}}}}(),Wt=Ne==="vertical"?an:nn,St=Me({page:He,withPlaceholder:null,axis:Wt,frame:jt}),Ct={descriptor:Z,isCombineEnabled:be,isFixedOnPage:Le,axis:Wt,isEnabled:ie,client:We,page:He,frame:jt,subject:St};return Ct},Es=function(Z,ie){var be=P(Z);if(!ie)return be;if(Z!==ie)return be;var Le=be.paddingBox.top-ie.scrollTop,Ne=be.paddingBox.left-ie.scrollLeft,We=Le+ie.scrollHeight,He=Ne+ie.scrollWidth,xt={top:Le,right:He,bottom:We,left:Ne},jt=i(xt,be.border),Wt=d({borderBox:jt,margin:be.margin,border:be.border,padding:be.padding});return Wt},as=function(Y){var Z=Y.ref,ie=Y.descriptor,be=Y.env,Le=Y.windowScroll,Ne=Y.direction,We=Y.isDropDisabled,He=Y.isCombineEnabled,xt=Y.shouldClipSubject,jt=be.closestScrollable,Wt=Es(Z,jt),St=E(Wt,Le),Ct=function(){if(!jt)return null;var pn=P(jt),ur={scrollHeight:jt.scrollHeight,scrollWidth:jt.scrollWidth};return{client:pn,page:E(pn,Le),scroll:ks(jt),scrollSize:ur,shouldClipSubject:xt}}(),kt=rs({descriptor:ie,isEnabled:!We,isCombineEnabled:He,isFixedOnPage:be.isFixedOnPage,direction:Ne,client:Wt,page:St,closest:Ct});return kt},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),be=Si("droppable"),Le=ie.registry,Ne=ie.marshal,We=$a(Y),He=f(function(){return{id:Y.droppableId,type:Y.type,mode:Y.mode}},[Y.droppableId,Y.mode,Y.type]),xt=Object(M.useRef)(He),jt=f(function(){return O(function(Br,Ma){Z.current||$(!1);var Aa={x:Br,y:Ma};Ne.updateDroppableScroll(He.id,Aa)})},[He.id,Ne]),Wt=r(function(){var Br=Z.current;return!Br||!Br.env.closestScrollable?Te:ks(Br.env.closestScrollable)},[]),St=r(function(){var Br=Wt();jt(Br.x,Br.y)},[Wt,jt]),Ct=f(function(){return I(St)},[St]),kt=r(function(){var Br=Z.current,Ma=is(Br);Br&&Ma||$(!1);var Aa=Br.scrollOptions;if(Aa.shouldPublishImmediately){St();return}Ct()},[Ct,St]),pn=r(function(Br,Ma){Z.current&&$(!1);var Aa=We.current,Ga=Aa.getDroppableRef();Ga||$(!1);var si=Ro(Ga),t={ref:Ga,descriptor:He,env:si,scrollOptions:Ma};Z.current=t;var p=as({ref:Ga,descriptor:He,env:si,windowScroll:Br,direction:Aa.direction,isDropDisabled:Aa.isDropDisabled,isCombineEnabled:Aa.isCombineEnabled,shouldClipSubject:!Aa.ignoreContainerClipping}),B=si.closestScrollable;return B&&(B.setAttribute(jo.contextId,ie.contextId),B.addEventListener("scroll",kt,_l(t.scrollOptions))),p},[ie.contextId,He,kt,We]),ur=r(function(){var Br=Z.current,Ma=is(Br);return Br&&Ma||$(!1),ks(Ma)},[]),gr=r(function(){var Br=Z.current;Br||$(!1);var Ma=is(Br);if(Z.current=null,!Ma)return;Ct.cancel(),Ma.removeAttribute(jo.contextId),Ma.removeEventListener("scroll",kt,_l(Br.scrollOptions))},[kt,Ct]),Ir=r(function(Br){var Ma=Z.current;Ma||$(!1);var Aa=is(Ma);Aa||$(!1),Aa.scrollTop+=Br.y,Aa.scrollLeft+=Br.x},[]),Wr=f(function(){return{getDimensionAndWatchScroll:pn,getScrollWhileDragging:ur,dragStopped:gr,scroll:Ir}},[gr,pn,ur,Ir]),na=f(function(){return{uniqueId:be,descriptor:He,callbacks:Wr}},[Wr,He,be]);ai(function(){return xt.current=na.descriptor,Le.droppable.register(na),function(){Z.current&&gr(),Le.droppable.unregister(na)}},[Wr,He,gr,na,Ne,Le.droppable]),ai(function(){if(!Z.current)return;Ne.updateDroppableIsEnabled(xt.current.id,!Y.isDropDisabled)},[Y.isDropDisabled,Ne]),ai(function(){if(!Z.current)return;Ne.updateDroppableIsCombineEnabled(xt.current.id,Y.isCombineEnabled)},[Y.isCombineEnabled,Ne])}function xs(){}var os={width:0,height:0,margin:Rt},Zo=function(Z){var ie=Z.isAnimatingOpenOnMount,be=Z.placeholder,Le=Z.animate;return ie||Le==="close"?os:{height:be.client.borderBox.height,width:be.client.borderBox.width,margin:be.client.margin}},Us=function(Z){var ie=Z.isAnimatingOpenOnMount,be=Z.placeholder,Le=Z.animate,Ne=Zo({isAnimatingOpenOnMount:ie,placeholder:be,animate:Le});return{display:be.display,boxSizing:"border-box",width:Ne.width,height:Ne.height,marginTop:Ne.margin.top,marginRight:Ne.margin.right,marginBottom:Ne.margin.bottom,marginLeft:Ne.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Le!=="none"?zt.placeholder:null}};function js(Y){var Z=Object(M.useRef)(null),ie=r(function(){if(!Z.current)return;clearTimeout(Z.current),Z.current=null},[]),be=Y.animate,Le=Y.onTransitionEnd,Ne=Y.onClose,We=Y.contextId,He=Object(M.useState)(Y.animate==="open"),xt=He[0],jt=He[1];Object(M.useEffect)(function(){return xt?be!=="open"?(ie(),jt(!1),xs):Z.current?xs:(Z.current=setTimeout(function(){Z.current=null,jt(!1)}),ie):xs},[be,xt,ie]);var Wt=r(function(Ct){if(Ct.propertyName!=="height")return;Le(),be==="close"&&Ne()},[be,Ne,Le]),St=Us({isAnimatingOpenOnMount:xt,animate:Y.animate,placeholder:Y.placeholder});return m.a.createElement(Y.placeholder.tagName,{style:St,"data-rbd-placeholder-context-id":We,onTransitionEnd:Wt,ref:Y.innerRef})}var Bs=m.a.memo(js),Fs=m.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())}],ws=[function(Z){var ie=Z.props,be=Z.getPlaceholderRef;if(!ie.placeholder)return;var Le=be();if(Le)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,ws),Y.props.mode==="virtual"&&Ws(Y,Kl)})}var ss=function(Y){Object(T.a)(Z,Y);function Z(){for(var be,Le=arguments.length,Ne=new Array(Le),We=0;We<Le;We++)Ne[We]=arguments[We];return be=Y.call.apply(Y,[this].concat(Ne))||this,be.state={isVisible:Boolean(be.props.on),data:be.props.on,animate:be.props.shouldAnimate&&be.props.on?"open":"none"},be.onClose=function(){if(be.state.animate!=="close")return;be.setState({isVisible:!1})},be}Z.getDerivedStateFromProps=function(Le,Ne){return Le.shouldAnimate?Le.on?{isVisible:!0,data:Le.on,animate:"open"}:Ne.isVisible?{isVisible:!0,data:Ne.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Le.on),data:Le.on,animate:"none"}};var ie=Z.prototype;return ie.render=function(){if(!this.state.isVisible)return null;var Le={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Le)},Z}(m.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?ht.opacity.drop:ht.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,be=Y.offset,Le=Y.combineWith,Ne=Y.dropping,We=Boolean(Le),He=Ks(Y),xt=Boolean(Ne),jt=xt?ln.drop(be,We):ln.moveTo(be),Wt={position:"fixed",top:ie.marginBox.top,left:ie.marginBox.left,boxSizing:"border-box",width:ie.borderBox.width,height:ie.borderBox.height,transition:El(He,Ne),transform:jt,opacity:zl(We,xt),zIndex:xt?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Wt}function Vl(Y){return{transform:ln.moveTo(Y.offset),transition:Y.shouldAnimateDisplacement?null:"none"}}function Cl(Y){return Y.type==="DRAGGING"?xl(Y):Vl(Y)}function wl(Y,Z,ie){ie===void 0&&(ie=Te);var be=window.getComputedStyle(Z),Le=Z.getBoundingClientRect(),Ne=_(Le,be),We=E(Ne,ie),He={client:Ne,tagName:Z.tagName.toLowerCase(),display:be.display},xt={x:Ne.marginBox.width,y:Ne.marginBox.height},jt={descriptor:Y,placeholder:He,displaceBy:xt,client:Ne,page:We};return jt}function Xl(Y){var Z=Si("draggable"),ie=Y.descriptor,be=Y.registry,Le=Y.getDraggableRef,Ne=Y.canDragInteractiveElements,We=Y.shouldRespectForcePress,He=Y.isEnabled,xt=f(function(){return{canDragInteractiveElements:Ne,shouldRespectForcePress:We,isEnabled:He}},[Ne,He,We]),jt=r(function(kt){var pn=Le();return pn||$(!1),wl(ie,pn,kt)},[ie,Le]),Wt=f(function(){return{uniqueId:Z,descriptor:ie,options:xt,getDimension:jt}},[ie,jt,xt,Z]),St=Object(M.useRef)(Wt),Ct=Object(M.useRef)(!0);ai(function(){return be.draggable.register(St.current),function(){return be.draggable.unregister(St.current)}},[be.draggable]),ai(function(){if(Ct.current){Ct.current=!1;return}var kt=St.current;St.current=Wt,be.draggable.update(Wt,kt)},[Wt,be.draggable])}function Gs(Y,Z,ie){Ei(function(){function be(Ne){return"Draggable[id: "+Ne+"]: "}var Le=Y.draggableId;if(Le||$(!1),typeof Le=="string"||$(!1),Xe(Y.index)||$(!1),Y.mapped.type==="DRAGGING")return;qo(ie()),Y.isEnabled&&(Wi(Z,Le)||$(!1))})}function ls(Y){Fa(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=r(function(t){Z.current=t},[]),be=r(function(){return Z.current},[]),Le=_o(Hi),Ne=Le.contextId,We=Le.dragHandleUsageInstructionsId,He=Le.registry,xt=_o(Fs),jt=xt.type,Wt=xt.droppableId,St=f(function(){return{id:Y.draggableId,index:Y.index,type:jt,droppableId:Wt}},[Y.draggableId,Y.index,jt,Wt]),Ct=Y.children,kt=Y.draggableId,pn=Y.isEnabled,ur=Y.shouldRespectForcePress,gr=Y.canDragInteractiveElements,Ir=Y.isClone,Wr=Y.mapped,na=Y.dropAnimationFinished;if(Gs(Y,Ne,be),ls(Ir),!Ir){var Br=f(function(){return{descriptor:St,registry:He,getDraggableRef:be,canDragInteractiveElements:gr,shouldRespectForcePress:ur,isEnabled:pn}},[St,He,be,gr,ur,pn]);Xl(Br)}var Ma=f(function(){return pn?{tabIndex:0,role:"button","aria-describedby":We,"data-rbd-drag-handle-draggable-id":kt,"data-rbd-drag-handle-context-id":Ne,draggable:!1,onDragStart:us}:null},[Ne,We,kt,pn]),Aa=r(function(t){if(Wr.type!=="DRAGGING")return;if(!Wr.dropping)return;if(t.propertyName!=="transform")return;na()},[na,Wr]),Ga=f(function(){var t=Cl(Wr),p=Wr.type==="DRAGGING"&&Wr.dropping?Aa:null,B={innerRef:ie,draggableProps:{"data-rbd-draggable-context-id":Ne,"data-rbd-draggable-id":kt,style:t,onTransitionEnd:p},dragHandleProps:Ma};return B},[Ne,Ma,kt,Wr,Aa,ie]),si=f(function(){return{draggableId:St.id,type:St.type,source:{index:St.index,droppableId:St.droppableId}}},[St.droppableId,St.id,St.index,St.type]);return Ct(Ga,Wr.snapshot,si)}var zs=function(Y,Z){return Y===Z},Sl=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=O(function(Le,Ne){return{x:Le,y:Ne}}),Z=O(function(Le,Ne,We,He,xt){return{isDragging:!0,isClone:Ne,isDropAnimating:Boolean(xt),dropAnimation:xt,mode:Le,draggingOver:We,combineWith:He,combineTargetFor:null}}),ie=O(function(Le,Ne,We,He,xt,jt,Wt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:xt,combineWith:jt,mode:Ne,offset:Le,dimension:We,forceShouldAnimate:Wt,snapshot:Z(Ne,He,xt,jt,null)}}}),be=function(Ne,We){if(Ne.isDragging){if(Ne.critical.draggable.id!==We.draggableId)return null;var He=Ne.current.client.offset,xt=Ne.dimensions.draggables[We.draggableId],jt=Ht(Ne.impact),Wt=Ql(Ne.impact),St=Ne.forceShouldAnimate;return ie(Y(He.x,He.y),Ne.movementMode,xt,We.isClone,jt,Wt,St)}if(Ne.phase==="DROP_ANIMATING"){var Ct=Ne.completed;if(Ct.result.draggableId!==We.draggableId)return null;var kt=We.isClone,pn=Ne.dimensions.draggables[We.draggableId],ur=Ct.result,gr=ur.mode,Ir=Sl(ur),Wr=Jl(ur),na=Ne.dropDuration,Br={duration:na,curve:Qe.drop,moveTo:Ne.newHomeClientOffset,opacity:Wr?ht.opacity.drop:null,scale:Wr?ht.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ne.newHomeClientOffset,dimension:pn,dropping:Br,draggingOver:Ir,combineWith:Wr,mode:gr,forceShouldAnimate:null,snapshot:Z(gr,kt,Ir,Wr,Br)}}}return null};return be}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:Te,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var Y=O(function(We,He){return{x:We,y:He}}),Z=O(Vs),ie=O(function(We,He,xt){return He===void 0&&(He=null),{mapped:{type:"SECONDARY",offset:We,combineTargetFor:He,shouldAnimateDisplacement:xt,snapshot:Z(He)}}}),be=function(He){return He?ie(Te,He,!0):null},Le=function(He,xt,jt,Wt){var St=jt.displaced.visible[He],Ct=Boolean(Wt.inVirtualList&&Wt.effected[He]),kt=at(jt),pn=kt&&kt.draggableId===He?xt:null;if(!St){if(!Ct)return be(pn);if(jt.displaced.invisible[He])return null;var ur=st(Wt.displacedBy.point),gr=Y(ur.x,ur.y);return ie(gr,pn,!0)}if(Ct)return be(pn);var Ir=jt.displacedBy.point,Wr=Y(Ir.x,Ir.y);return ie(Wr,pn,St.shouldAnimate)},Ne=function(He,xt){if(He.isDragging)return He.critical.draggable.id===xt.draggableId?null:Le(xt.draggableId,He.critical.draggable.id,He.impact,He.afterCritical);if(He.phase==="DROP_ANIMATING"){var jt=He.completed;return jt.result.draggableId===xt.draggableId?null:Le(xt.draggableId,jt.result.draggableId,jt.impact,jt.afterCritical)}return null};return Ne}var Tl=function(){var Z=Zl(),ie=$l(),be=function(Ne,We){return Z(Ne,We)||ie(Ne,We)||ql};return be},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:m.a.createElement(Ol,Y)}function Dl(Y){var Z=typeof Y.isDragDisabled=="boolean"?!Y.isDragDisabled:!0,ie=Boolean(Y.disableInteractiveElementBlocking),be=Boolean(Y.shouldRespectForcePress);return m.a.createElement(Al,Object(b.a)({},Y,{isClone:!1,isEnabled:Z,canDragInteractiveElements:ie,shouldRespectForcePress:be}))}function $o(Y){var Z=Object(M.useContext)(Hi);Z||$(!1);var ie=Z.contextId,be=Z.isMovementAllowed,Le=Object(M.useRef)(null),Ne=Object(M.useRef)(null),We=Y.children,He=Y.droppableId,xt=Y.type,jt=Y.mode,Wt=Y.direction,St=Y.ignoreContainerClipping,Ct=Y.isDropDisabled,kt=Y.isCombineEnabled,pn=Y.snapshot,ur=Y.useClone,gr=Y.updateViewportMaxScroll,Ir=Y.getContainerForClone,Wr=r(function(){return Le.current},[]),na=r(function(j){Le.current=j},[]),Br=r(function(){return Ne.current},[]),Ma=r(function(j){Ne.current=j},[]);Gl({props:Y,getDroppableRef:Wr,getPlaceholderRef:Br});var Aa=r(function(){be()&&gr({maxScroll:bi()})},[be,gr]);bl({droppableId:He,type:xt,mode:jt,direction:Wt,isDropDisabled:Ct,isCombineEnabled:kt,ignoreContainerClipping:St,getDroppableRef:Wr});var Ga=m.a.createElement(ss,{on:Y.placeholder,shouldAnimate:Y.shouldAnimatePlaceholder},function(j){var G=j.onClose,ne=j.data,ge=j.animate;return m.a.createElement(Bs,{placeholder:ne,onClose:G,innerRef:Ma,animate:ge,contextId:ie,onTransitionEnd:Aa})}),si=f(function(){return{innerRef:na,placeholder:Ga,droppableProps:{"data-rbd-droppable-id":He,"data-rbd-droppable-context-id":ie}}},[ie,He,Ga,na]),t=ur?ur.dragging.draggableId:null,p=f(function(){return{droppableId:He,type:xt,isUsingCloneFor:t}},[He,t,xt]);function B(){if(!ur)return null;var j=ur.dragging,G=ur.render,ne=m.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,Ir())}return m.a.createElement(Fs.Provider,{value:p},We(si,pn),B())}var Ss=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}),be=O(function(We){return{draggableId:We.id,type:We.type,source:{index:We.index,droppableId:We.droppableId}}}),Le=O(function(We,He,xt,jt,Wt,St){var Ct=Wt.descriptor.id,kt=Wt.descriptor.droppableId===We;if(kt){var pn=St?{render:St,dragging:be(Wt.descriptor)}:null,ur={isDraggingOver:xt,draggingOverWith:xt?Ct:null,draggingFromThisWith:Ct,isUsingPlaceholder:!0};return{placeholder:Wt.placeholder,shouldAnimatePlaceholder:!1,snapshot:ur,useClone:pn}}if(!He)return ie;if(!jt)return Z;var gr={isDraggingOver:xt,draggingOverWith:Ct,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Wt.placeholder,shouldAnimatePlaceholder:!0,snapshot:gr,useClone:null}}),Ne=function(He,xt){var jt=xt.droppableId,Wt=xt.type,St=!xt.isDropDisabled,Ct=xt.renderClone;if(He.isDragging){var kt=He.critical;if(!Ss(Wt,kt))return ie;var pn=cs(kt,He.dimensions),ur=Ht(He.impact)===jt;return Le(jt,St,ur,ur,pn,Ct)}if(He.phase==="DROP_ANIMATING"){var gr=He.completed;if(!Ss(Wt,gr.critical))return ie;var Ir=cs(gr.critical,He.dimensions);return Le(jt,St,Sl(gr.result)===jt,Ht(gr.impact)===jt,Ir,Ct)}if(He.phase==="IDLE"&&He.completed&&!He.shouldFlush){var Wr=He.completed;if(!Ss(Wt,Wr.critical))return ie;var na=Ht(Wr.impact)===jt,Br=Boolean(Wr.impact.at&&Wr.impact.at.type==="COMBINE"),Ma=Wr.critical.droppable.id===jt;return na?Br?Z:ie:Ma?Z:ie}return ie};return Ne},tu={updateViewportMaxScroll:Vr};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 A}),o.d(z,"a",function(){return g});var M=o("MI8n"),m=o("JYp7"),T=o("pmY6"),b=o("24hK"),y=o("746U"),C=o("Cg/j");const A=Object(C.c)("commandService"),g=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 a=[];for(let h of e.description.args)a.push(h.constraint);const c=e.handler;e.handler=function(h,...d){return Object(y.o)(d,a),c(h,...d)}}const{id:r}=e;let l=this._commands.get(r);l||(l=new b.a,this._commands.set(r,l));let n=l.unshift(e),i=Object(T.i)(()=>{n();const a=this._commands.get(r);(a==null?void 0:a.isEmpty())&&this._commands.delete(r)});return this._onDidRegisterCommand.fire(r),i}registerCommandAlias(e,f){return g.registerCommand(e,(r,...l)=>r.get(A).executeCommand(f,...l))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:m.a.first(f)}getCommands(){const e=new Map;for(const f of this._commands.keys()){const r=this.getCommand(f);r&&e.set(f,r)}return e}};g.registerCommand("noop",()=>{})},nukY:function(k,z){k.exports="data:image/png;base64,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"},oRuE:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso10126={pad:function(m,T){var b=T*4,y=b-m.sigBytes%b;m.concat(M.lib.WordArray.random(y-1)).concat(M.lib.WordArray.create([y<<24],1))},unpad:function(m){var T=m.words[m.sigBytes-1>>>2]&255;m.sigBytes-=T}},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 fa});var M=o("1OyB"),m=o("vuIU"),T=o("Ji7U"),b=o("LK+K"),y=o("rePB"),C=o("VTBJ"),A=o("ODXe"),g=o("q1tI"),e=o("TSYQ"),f=o.n(e),r=o("Kwbf"),l=o("6cGi"),n=o("U8pU"),i=o("4IlW"),a=g.createContext({}),c=a,h={visibility:"hidden"};function d(xe){var lt=xe.prefixCls,Mt=xe.prevIcon,wt=Mt===void 0?"\u2039":Mt,Ht=xe.nextIcon,Nt=Ht===void 0?"\u203A":Ht,Vt=xe.superPrevIcon,$t=Vt===void 0?"\xAB":Vt,En=xe.superNextIcon,gn=En===void 0?"\xBB":En,Un=xe.onSuperPrev,An=xe.onSuperNext,tn=xe.onPrev,Pn=xe.onNext,yn=xe.children,jn=g.useContext(c),Rn=jn.hideNextBtn,Qn=jn.hidePrevBtn;return g.createElement("div",{className:lt},Un&&g.createElement("button",{type:"button",onClick:Un,tabIndex:-1,className:"".concat(lt,"-super-prev-btn"),style:Qn?h:{}},$t),tn&&g.createElement("button",{type:"button",onClick:tn,tabIndex:-1,className:"".concat(lt,"-prev-btn"),style:Qn?h:{}},wt),g.createElement("div",{className:"".concat(lt,"-view")},yn),Pn&&g.createElement("button",{type:"button",onClick:Pn,tabIndex:-1,className:"".concat(lt,"-next-btn"),style:Rn?h:{}},Nt),An&&g.createElement("button",{type:"button",onClick:An,tabIndex:-1,className:"".concat(lt,"-super-next-btn"),style:Rn?h:{}},gn))}var s=d;function u(xe){var lt=g.useContext(c),Mt=lt.hideHeader;if(Mt)return null;var wt=xe.prefixCls,Ht=xe.generateConfig,Nt=xe.locale,Vt=xe.value,$t=xe.format,En="".concat(wt,"-header");return g.createElement(s,{prefixCls:En},Vt?Ht.locale.format(Nt.locale,Vt,$t):"\xA0")}var S=u,E=o("YrtM"),_=o("KQm4"),P=new Map;function R(xe,lt,Mt){if(P.get(xe)&&cancelAnimationFrame(P.get(xe)),Mt<=0){P.set(xe,requestAnimationFrame(function(){xe.scrollTop=lt}));return}var wt=lt-xe.scrollTop,Ht=wt/Mt*10;P.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Ht,xe.scrollTop!==lt&&R(xe,lt,Mt-10)}))}function x(xe,lt){var Mt=lt.onLeftRight,wt=lt.onCtrlLeftRight,Ht=lt.onUpDown,Nt=lt.onPageUpDown,Vt=lt.onEnter,$t=xe.which,En=xe.ctrlKey,gn=xe.metaKey;switch($t){case i.a.LEFT:if(En||gn){if(wt)return wt(-1),!0}else if(Mt)return Mt(-1),!0;break;case i.a.RIGHT:if(En||gn){if(wt)return wt(1),!0}else if(Mt)return Mt(1),!0;break;case i.a.UP:if(Ht)return Ht(-1),!0;break;case i.a.DOWN:if(Ht)return Ht(1),!0;break;case i.a.PAGE_UP:if(Nt)return Nt(-1),!0;break;case i.a.PAGE_DOWN:if(Nt)return Nt(1),!0;break;case i.a.ENTER:if(Vt)return Vt(),!0;break}return!1}function w(xe,lt,Mt,wt){var Ht=xe;if(!Ht)switch(lt){case"time":Ht=wt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ht="gggg-wo";break;case"month":Ht="YYYY-MM";break;case"quarter":Ht="YYYY-[Q]Q";break;case"year":Ht="YYYY";break;default:Ht=Mt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ht}function v(xe,lt){var Mt=xe==="time"?8:10;return Math.max(Mt,lt.length)+2}var O=null,U=new Set;function I(xe){return!O&&typeof window!="undefined"&&window.addEventListener&&(O=function(Mt){Object(_.a)(U).forEach(function(wt){wt(Mt)})},window.addEventListener("mousedown",O)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",O),O=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(Mt){return Mt&&Mt.contains(lt)})}function L(xe){var lt=xe.prefixCls,Mt=xe.units,wt=xe.onSelect,Ht=xe.value,Nt=xe.active,Vt=xe.hideDisabledOptions,$t="".concat(lt,"-cell"),En=g.useContext(c),gn=En.open,Un=g.useRef(null),An=g.useRef(new Map);return g.useLayoutEffect(function(){var tn=An.current.get(Ht);tn&&gn!==!1&&R(Un.current,tn.offsetTop,120)},[Ht]),g.useLayoutEffect(function(){if(gn){var tn=An.current.get(Ht);tn&&R(Un.current,tn.offsetTop,0)}},[gn]),g.createElement("ul",{className:f()("".concat(lt,"-column"),Object(y.a)({},"".concat(lt,"-column-active"),Nt)),ref:Un,style:{position:"relative"}},Mt.map(function(tn){var Pn;return Vt&&tn.disabled?null:g.createElement("li",{key:tn.value,ref:function(jn){An.current.set(tn.value,jn)},className:f()($t,(Pn={},Object(y.a)(Pn,"".concat($t,"-disabled"),tn.disabled),Object(y.a)(Pn,"".concat($t,"-selected"),Ht===tn.value),Pn)),onClick:function(){if(tn.disabled)return;wt(tn.value)}},g.createElement("div",{className:"".concat($t,"-inner")},tn.label))}))}var K=L;function te(xe,lt){for(var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",wt=String(xe);wt.length<lt;)wt="".concat(Mt).concat(xe);return wt}var fe=function(){for(var lt=arguments.length,Mt=new Array(lt),wt=0;wt<lt;wt++)Mt[wt]=arguments[wt];return Mt};function de(xe){return xe==null?[]:Array.isArray(xe)?xe:[xe]}function Ce(xe){var lt={};return Object.keys(xe).forEach(function(Mt){(Mt.substr(0,5)==="data-"||Mt.substr(0,5)==="aria-"||Mt==="role"||Mt==="name")&&Mt.substr(0,7)!=="data-__"&&(lt[Mt]=xe[Mt])}),lt}function Oe(xe,lt){return xe?xe[lt]:null}function ce(xe,lt,Mt){var wt=[Oe(xe,0),Oe(xe,1)];return wt[Mt]=typeof lt=="function"?lt(wt[Mt]):lt,!wt[0]&&!wt[1]?null:wt}function Ee(xe,lt,Mt,wt,Ht){var Nt=xe.setHour(lt,Mt);return Nt=xe.setMinute(Nt,wt),Nt=xe.setSecond(Nt,Ht),Nt}function ye(xe,lt,Mt,wt,Ht,Nt){var Vt=Math.floor(xe/wt)*wt;if(Vt<xe)return[Vt,60-Ht,60-Nt];var $t=Math.floor(lt/Ht)*Ht;if($t<lt)return[Vt,$t,60-Nt];var En=Math.floor(Mt/Nt)*Nt;return[Vt,$t,En]}function ue(xe,lt){if(xe.length!==lt.length)return!0;for(var Mt=0;Mt<xe.length;Mt+=1)if(xe[Mt].disabled!==lt[Mt].disabled)return!0;return!1}function le(xe,lt,Mt,wt){for(var Ht=[],Nt=xe;Nt<=lt;Nt+=Mt)Ht.push({label:te(Nt,2),value:Nt,disabled:(wt||[]).includes(Nt)});return Ht}function $(xe){var lt=xe.generateConfig,Mt=xe.prefixCls,wt=xe.operationRef,Ht=xe.activeColumnIndex,Nt=xe.value,Vt=xe.showHour,$t=xe.showMinute,En=xe.showSecond,gn=xe.use12Hours,Un=xe.hourStep,An=Un===void 0?1:Un,tn=xe.minuteStep,Pn=tn===void 0?1:tn,yn=xe.secondStep,jn=yn===void 0?1:yn,Rn=xe.disabledHours,Qn=xe.disabledMinutes,mr=xe.disabledSeconds,kr=xe.hideDisabledOptions,wn=xe.onSelect,Xt=[],fn="".concat(Mt,"-content"),Dn="".concat(Mt,"-time-panel"),Qt,Sn=Nt?lt.getHour(Nt):-1,_n=Nt?lt.getMinute(Nt):-1,In=Nt?lt.getSecond(Nt):-1,Bn=function(Jt,Yt,Vn,er){var Ln=Nt||lt.getNow(),ir=Math.max(0,Yt),cr=Math.max(0,Vn),sr=Math.max(0,er);return Ln=Ee(lt,Ln,!gn||!Jt?ir:ir+12,cr,sr),Ln},or=le(0,23,An,Rn&&Rn()),$n=Object(E.a)(function(){return or},or,ue);gn&&(Qt=Sn>=12,Sn%=12);var Or=g.useMemo(function(){if(!gn)return[!1,!1];var Kt=[!0,!0];return $n.forEach(function(Jt){var Yt=Jt.disabled,Vn=Jt.value;if(Yt)return;Vn>=12?Kt[1]=!1:Kt[0]=!1}),Kt},[gn,$n]),Pr=Object(A.a)(Or,2),Zn=Pr[0],Tr=Pr[1],vr=g.useMemo(function(){return gn?$n.filter(Qt?function(Kt){return Kt.value>=12}:function(Kt){return Kt.value<12}).map(function(Kt){var Jt=Kt.value%12,Yt=Jt===0?"12":te(Jt,2);return Object(C.a)(Object(C.a)({},Kt),{},{label:Yt,value:Jt})}):$n},[gn,$n]),Hr=le(0,59,Pn,Qn&&Qn(Sn)),Mr=le(0,59,jn,mr&&mr(Sn,_n));wt.current={onUpDown:function(Jt){var Yt=Xt[Ht];if(Yt)for(var Vn=Yt.units.findIndex(function(cr){return cr.value===Yt.value}),er=Yt.units.length,Ln=1;Ln<er;Ln+=1){var ir=Yt.units[(Vn+Jt*Ln+er)%er];if(ir.disabled!==!0){Yt.onSelect(ir.value);break}}}};function qr(Kt,Jt,Yt,Vn,er){Kt!==!1&&Xt.push({node:g.cloneElement(Jt,{prefixCls:Dn,value:Yt,active:Ht===Xt.length,onSelect:er,units:Vn,hideDisabledOptions:kr}),onSelect:er,value:Yt,units:Vn})}qr(Vt,g.createElement(K,{key:"hour"}),Sn,vr,function(Kt){wn(Bn(Qt,Kt,_n,In),"mouse")}),qr($t,g.createElement(K,{key:"minute"}),_n,Hr,function(Kt){wn(Bn(Qt,Sn,Kt,In),"mouse")}),qr(En,g.createElement(K,{key:"second"}),In,Mr,function(Kt){wn(Bn(Qt,Sn,_n,Kt),"mouse")});var rr=-1;return typeof Qt=="boolean"&&(rr=Qt?1:0),qr(gn===!0,g.createElement(K,{key:"12hours"}),rr,[{label:"AM",value:0,disabled:Zn},{label:"PM",value:1,disabled:Tr}],function(Kt){wn(Bn(!!Kt,Sn,_n,In),"mouse")}),g.createElement("div",{className:fn},Xt.map(function(Kt){var Jt=Kt.node;return Jt}))}var me=$,re=function(lt){return lt.filter(function(Mt){return Mt!==!1}).length};function ae(xe){var lt=xe.generateConfig,Mt=xe.format,wt=Mt===void 0?"HH:mm:ss":Mt,Ht=xe.prefixCls,Nt=xe.active,Vt=xe.operationRef,$t=xe.showHour,En=xe.showMinute,gn=xe.showSecond,Un=xe.use12Hours,An=Un===void 0?!1:Un,tn=xe.onSelect,Pn=xe.value,yn="".concat(Ht,"-time-panel"),jn=g.useRef(),Rn=g.useState(-1),Qn=Object(A.a)(Rn,2),mr=Qn[0],kr=Qn[1],wn=re([$t,En,gn,An]);return Vt.current={onKeyDown:function(fn){return x(fn,{onLeftRight:function(Qt){kr((mr+Qt+wn)%wn)},onUpDown:function(Qt){mr===-1?kr(0):jn.current&&jn.current.onUpDown(Qt)},onEnter:function(){tn(Pn||lt.getNow(),"key"),kr(-1)}})},onBlur:function(){kr(-1)}},g.createElement("div",{className:f()(yn,Object(y.a)({},"".concat(yn,"-active"),Nt))},g.createElement(S,Object.assign({},xe,{format:wt,prefixCls:Ht})),g.createElement(me,Object.assign({},xe,{prefixCls:Ht,activeColumnIndex:mr,operationRef:jn})))}var Se=ae,oe=7;function ee(xe,lt){return!xe&&!lt?!0:!xe||!lt?!1:void 0}function J(xe,lt,Mt){var wt=ee(lt,Mt);if(typeof wt=="boolean")return wt;var Ht=Math.floor(xe.getYear(lt)/10),Nt=Math.floor(xe.getYear(Mt)/10);return Ht===Nt}function Q(xe,lt,Mt){var wt=ee(lt,Mt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Mt)}function ve(xe,lt){var Mt=Math.floor(xe.getMonth(lt)/3);return Mt+1}function _e(xe,lt,Mt){var wt=ee(lt,Mt);return typeof wt=="boolean"?wt:Q(xe,lt,Mt)&&ve(xe,lt)===ve(xe,Mt)}function Te(xe,lt,Mt){var wt=ee(lt,Mt);return typeof wt=="boolean"?wt:Q(xe,lt,Mt)&&xe.getMonth(lt)===xe.getMonth(Mt)}function Ge(xe,lt,Mt){var wt=ee(lt,Mt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Mt)&&xe.getMonth(lt)===xe.getMonth(Mt)&&xe.getDate(lt)===xe.getDate(Mt)}function qe(xe,lt,Mt){var wt=ee(lt,Mt);return typeof wt=="boolean"?wt:xe.getHour(lt)===xe.getHour(Mt)&&xe.getMinute(lt)===xe.getMinute(Mt)&&xe.getSecond(lt)===xe.getSecond(Mt)}function ut(xe,lt,Mt,wt){var Ht=ee(Mt,wt);return typeof Ht=="boolean"?Ht:xe.locale.getWeek(lt,Mt)===xe.locale.getWeek(lt,wt)}function st(xe,lt,Mt){return Ge(xe,lt,Mt)&&qe(xe,lt,Mt)}function ft(xe,lt,Mt,wt){return!lt||!Mt||!wt?!1:!Ge(xe,lt,wt)&&!Ge(xe,Mt,wt)&&xe.isAfter(wt,lt)&&xe.isAfter(Mt,wt)}function gt(xe,lt,Mt){var wt=lt.locale.getWeekFirstDay(xe),Ht=lt.setDate(Mt,1),Nt=lt.getWeekDay(Ht),Vt=lt.addDate(Ht,wt-Nt);return lt.getMonth(Vt)===lt.getMonth(Mt)&<.getDate(Vt)>1&&(Vt=lt.addDate(Vt,-7)),Vt}function Ve(xe,lt,Mt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(lt){case"year":return Mt.addYear(xe,wt*10);case"quarter":case"month":return Mt.addYear(xe,wt);default:return Mt.addMonth(xe,wt)}}var ke=g.createContext({}),dt=ke;function Bt(xe){var lt=xe.cellPrefixCls,Mt=xe.generateConfig,wt=xe.rangedValue,Ht=xe.hoverRangedValue,Nt=xe.isInView,Vt=xe.isSameCell,$t=xe.offsetCell,En=xe.today,gn=xe.value;function Un(An){var tn,Pn=$t(An,-1),yn=$t(An,1),jn=Oe(wt,0),Rn=Oe(wt,1),Qn=Oe(Ht,0),mr=Oe(Ht,1),kr=ft(Mt,Qn,mr,An);function wn(_n){return Vt(jn,_n)}function Xt(_n){return Vt(Rn,_n)}var fn=Vt(Qn,An),Dn=Vt(mr,An),Qt=(kr||Dn)&&(!Nt(Pn)||Xt(Pn)),Sn=(kr||fn)&&(!Nt(yn)||wn(yn));return tn={},Object(y.a)(tn,"".concat(lt,"-in-view"),Nt(An)),Object(y.a)(tn,"".concat(lt,"-in-range"),ft(Mt,jn,Rn,An)),Object(y.a)(tn,"".concat(lt,"-range-start"),wn(An)),Object(y.a)(tn,"".concat(lt,"-range-end"),Xt(An)),Object(y.a)(tn,"".concat(lt,"-range-start-single"),wn(An)&&!Rn),Object(y.a)(tn,"".concat(lt,"-range-end-single"),Xt(An)&&!jn),Object(y.a)(tn,"".concat(lt,"-range-start-near-hover"),wn(An)&&(Vt(Pn,Qn)||ft(Mt,Qn,mr,Pn))),Object(y.a)(tn,"".concat(lt,"-range-end-near-hover"),Xt(An)&&(Vt(yn,mr)||ft(Mt,Qn,mr,yn))),Object(y.a)(tn,"".concat(lt,"-range-hover"),kr),Object(y.a)(tn,"".concat(lt,"-range-hover-start"),fn),Object(y.a)(tn,"".concat(lt,"-range-hover-end"),Dn),Object(y.a)(tn,"".concat(lt,"-range-hover-edge-start"),Qt),Object(y.a)(tn,"".concat(lt,"-range-hover-edge-end"),Sn),Object(y.a)(tn,"".concat(lt,"-range-hover-edge-start-near-range"),Qt&&Vt(Pn,Rn)),Object(y.a)(tn,"".concat(lt,"-range-hover-edge-end-near-range"),Sn&&Vt(yn,jn)),Object(y.a)(tn,"".concat(lt,"-today"),Vt(En,An)),Object(y.a)(tn,"".concat(lt,"-selected"),Vt(gn,An)),tn}return Un}function vt(xe){for(var lt=xe.prefixCls,Mt=xe.disabledDate,wt=xe.onSelect,Ht=xe.rowNum,Nt=xe.colNum,Vt=xe.prefixColumn,$t=xe.rowClassName,En=xe.baseDate,gn=xe.getCellClassName,Un=xe.getCellText,An=xe.getCellNode,tn=xe.getCellDate,Pn=xe.titleCell,yn=xe.headerCells,jn=g.useContext(c),Rn=jn.onDateMouseEnter,Qn=jn.onDateMouseLeave,mr="".concat(lt,"-cell"),kr=[],wn=0;wn<Ht;wn+=1){for(var Xt=[],fn=void 0,Dn=function(_n){var In=wn*Nt+_n,Bn=tn(En,In),or=Mt&&Mt(Bn);_n===0&&(fn=Bn,Vt&&Xt.push(Vt(fn))),Xt.push(g.createElement("td",{key:_n,title:Pn&&Pn(Bn),className:f()(mr,Object(C.a)(Object(y.a)({},"".concat(mr,"-disabled"),or),gn(Bn))),onClick:function(){or||wt(Bn)},onMouseEnter:function(){!or&&Rn&&Rn(Bn)},onMouseLeave:function(){!or&&Qn&&Qn(Bn)}},An?An(Bn):g.createElement("div",{className:"".concat(mr,"-inner")},Un(Bn))))},Qt=0;Qt<Nt;Qt+=1)Dn(Qt);kr.push(g.createElement("tr",{key:wn,className:$t&&$t(fn)},Xt))}return g.createElement("div",{className:"".concat(lt,"-body")},g.createElement("table",{className:"".concat(lt,"-content")},yn&&g.createElement("thead",null,g.createElement("tr",null,yn)),g.createElement("tbody",null,kr)))}function Rt(xe){var lt=xe.prefixCls,Mt=xe.generateConfig,wt=xe.prefixColumn,Ht=xe.locale,Nt=xe.rowCount,Vt=xe.viewDate,$t=xe.value,En=xe.dateRender,gn=g.useContext(dt),Un=gn.rangedValue,An=gn.hoverRangedValue,tn=gt(Ht.locale,Mt,Vt),Pn="".concat(lt,"-cell"),yn=Mt.locale.getWeekFirstDay(Ht.locale),jn=Mt.getNow(),Rn=[],Qn=Ht.shortWeekDays||(Mt.locale.getShortWeekDays?Mt.locale.getShortWeekDays(Ht.locale):[]);wt&&Rn.push(g.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var mr=0;mr<oe;mr+=1)Rn.push(g.createElement("th",{key:mr},Qn[(mr+yn)%oe]));var kr=Bt({cellPrefixCls:Pn,today:jn,value:$t,generateConfig:Mt,rangedValue:wt?null:Un,hoverRangedValue:wt?null:An,isSameCell:function(fn,Dn){return Ge(Mt,fn,Dn)},isInView:function(fn){return Te(Mt,fn,Vt)},offsetCell:function(fn,Dn){return Mt.addDate(fn,Dn)}}),wn=En?function(Xt){return En(Xt,jn)}:void 0;return g.createElement(vt,Object.assign({},xe,{rowNum:Nt,colNum:oe,baseDate:tn,getCellNode:wn,getCellText:Mt.getDate,getCellClassName:kr,getCellDate:Mt.addDate,titleCell:function(fn){return Mt.locale.format(Ht.locale,fn,"YYYY-MM-DD")},headerCells:Rn}))}var ot=Rt;function Je(xe){var lt=xe.prefixCls,Mt=xe.generateConfig,wt=xe.locale,Ht=xe.viewDate,Nt=xe.onNextMonth,Vt=xe.onPrevMonth,$t=xe.onNextYear,En=xe.onPrevYear,gn=xe.onYearClick,Un=xe.onMonthClick,An=g.useContext(c),tn=An.hideHeader;if(tn)return null;var Pn="".concat(lt,"-header"),yn=wt.shortMonths||(Mt.locale.getShortMonths?Mt.locale.getShortMonths(wt.locale):[]),jn=Mt.getMonth(Ht),Rn=g.createElement("button",{type:"button",key:"year",onClick:gn,tabIndex:-1,className:"".concat(lt,"-year-btn")},Mt.locale.format(wt.locale,Ht,wt.yearFormat)),Qn=g.createElement("button",{type:"button",key:"month",onClick:Un,tabIndex:-1,className:"".concat(lt,"-month-btn")},wt.monthFormat?Mt.locale.format(wt.locale,Ht,wt.monthFormat):yn[jn]),mr=wt.monthBeforeYear?[Qn,Rn]:[Rn,Qn];return g.createElement(s,Object.assign({},xe,{prefixCls:Pn,onSuperPrev:En,onPrev:Vt,onNext:Nt,onSuperNext:$t}),mr)}var et=Je,Me=6;function Be(xe){var lt=xe.prefixCls,Mt=xe.panelName,wt=Mt===void 0?"date":Mt,Ht=xe.keyboardConfig,Nt=xe.active,Vt=xe.operationRef,$t=xe.generateConfig,En=xe.value,gn=xe.viewDate,Un=xe.onViewDateChange,An=xe.onPanelChange,tn=xe.onSelect,Pn="".concat(lt,"-").concat(wt,"-panel");Vt.current={onKeyDown:function(Qn){return x(Qn,Object(C.a)({onLeftRight:function(kr){tn($t.addDate(En||gn,kr),"key")},onCtrlLeftRight:function(kr){tn($t.addYear(En||gn,kr),"key")},onUpDown:function(kr){tn($t.addDate(En||gn,kr*oe),"key")},onPageUpDown:function(kr){tn($t.addMonth(En||gn,kr),"key")}},Ht))}};var yn=function(Qn){var mr=$t.addYear(gn,Qn);Un(mr),An(null,mr)},jn=function(Qn){var mr=$t.addMonth(gn,Qn);Un(mr),An(null,mr)};return g.createElement("div",{className:f()(Pn,Object(y.a)({},"".concat(Pn,"-active"),Nt))},g.createElement(et,Object.assign({},xe,{prefixCls:lt,value:En,viewDate:gn,onPrevYear:function(){yn(-1)},onNextYear:function(){yn(1)},onPrevMonth:function(){jn(-1)},onNextMonth:function(){jn(1)},onMonthClick:function(){An("month",gn)},onYearClick:function(){An("year",gn)}})),g.createElement(ot,Object.assign({},xe,{onSelect:function(Qn){return tn(Qn,"mouse")},prefixCls:lt,value:En,viewDate:gn,rowCount:Me})))}var Xe=Be;function Ke(xe,lt,Mt){if(!Mt)return lt;var wt=lt;return wt=xe.setHour(wt,xe.getHour(Mt)),wt=xe.setMinute(wt,xe.getMinute(Mt)),wt=xe.setSecond(wt,xe.getSecond(Mt)),wt}var $e=fe("date","time");function _t(xe){var lt=xe.prefixCls,Mt=xe.operationRef,wt=xe.generateConfig,Ht=xe.value,Nt=xe.defaultValue,Vt=xe.disabledTime,$t=xe.showTime,En=xe.onSelect,gn="".concat(lt,"-datetime-panel"),Un=g.useState(null),An=Object(A.a)(Un,2),tn=An[0],Pn=An[1],yn=g.useRef({}),jn=g.useRef({}),Rn=Object(n.a)($t)==="object"?Object(C.a)({},$t):{};function Qn(Xt){var fn=$e.indexOf(tn)+Xt,Dn=$e[fn]||null;return Dn}var mr=function(fn){jn.current.onBlur&&jn.current.onBlur(fn),Pn(null)};Mt.current={onKeyDown:function(fn){if(fn.which===i.a.TAB){var Dn=Qn(fn.shiftKey?-1:1);return Pn(Dn),Dn&&fn.preventDefault(),!0}if(tn){var Qt=tn==="date"?yn:jn;return Qt.current&&Qt.current.onKeyDown&&Qt.current.onKeyDown(fn),!0}return[i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN].includes(fn.which)?(Pn("date"),!0):!1},onBlur:mr,onClose:mr};var kr=function(fn,Dn){var Qt=fn;Dn==="date"&&!Ht&&Rn.defaultValue?(Qt=wt.setHour(Qt,wt.getHour(Rn.defaultValue)),Qt=wt.setMinute(Qt,wt.getMinute(Rn.defaultValue)),Qt=wt.setSecond(Qt,wt.getSecond(Rn.defaultValue))):Dn==="time"&&!Ht&&Nt&&(Qt=wt.setYear(Qt,wt.getYear(Nt)),Qt=wt.setMonth(Qt,wt.getMonth(Nt)),Qt=wt.setDate(Qt,wt.getDate(Nt))),En&&En(Qt,"mouse")},wn=Vt?Vt(Ht||null):{};return g.createElement("div",{className:f()(gn,Object(y.a)({},"".concat(gn,"-active"),tn))},g.createElement(Xe,Object.assign({},xe,{operationRef:yn,active:tn==="date",onSelect:function(fn){kr(Ke(wt,fn,$t&&Object(n.a)($t)==="object"?$t.defaultValue:null),"date")}})),g.createElement(Se,Object.assign({},xe,{format:void 0},Rn,wn,{defaultValue:void 0,operationRef:jn,active:tn==="time",onSelect:function(fn){kr(fn,"time")}})))}var Ft=_t;function qt(xe){var lt=xe.prefixCls,Mt=xe.generateConfig,wt=xe.locale,Ht=xe.value,Nt="".concat(lt,"-cell"),Vt=function(Un){return g.createElement("td",{key:"week",className:f()(Nt,"".concat(Nt,"-week"))},Mt.locale.getWeek(wt.locale,Un))},$t="".concat(lt,"-week-panel-row"),En=function(Un){return f()($t,Object(y.a)({},"".concat($t,"-selected"),ut(Mt,wt.locale,Ht,Un)))};return g.createElement(Xe,Object.assign({},xe,{panelName:"week",prefixColumn:Vt,rowClassName:En,keyboardConfig:{onLeftRight:null}}))}var bn=qt;function At(xe){var lt=xe.prefixCls,Mt=xe.generateConfig,wt=xe.locale,Ht=xe.viewDate,Nt=xe.onNextYear,Vt=xe.onPrevYear,$t=xe.onYearClick,En=g.useContext(c),gn=En.hideHeader;if(gn)return null;var Un="".concat(lt,"-header");return g.createElement(s,Object.assign({},xe,{prefixCls:Un,onSuperPrev:Vt,onSuperNext:Nt}),g.createElement("button",{type:"button",onClick:$t,className:"".concat(lt,"-year-btn")},Mt.locale.format(wt.locale,Ht,wt.yearFormat)))}var Et=At,je=3,rt=4;function at(xe){var lt=xe.prefixCls,Mt=xe.locale,wt=xe.value,Ht=xe.viewDate,Nt=xe.generateConfig,Vt=xe.monthCellRender,$t=g.useContext(dt),En=$t.rangedValue,gn=$t.hoverRangedValue,Un="".concat(lt,"-cell"),An=Bt({cellPrefixCls:Un,value:wt,generateConfig:Nt,rangedValue:En,hoverRangedValue:gn,isSameCell:function(Rn,Qn){return Te(Nt,Rn,Qn)},isInView:function(){return!0},offsetCell:function(Rn,Qn){return Nt.addMonth(Rn,Qn)}}),tn=Mt.shortMonths||(Nt.locale.getShortMonths?Nt.locale.getShortMonths(Mt.locale):[]),Pn=Nt.setMonth(Ht,0),yn=Vt?function(jn){return Vt(jn,Mt)}:void 0;return g.createElement(vt,Object.assign({},xe,{rowNum:rt,colNum:je,baseDate:Pn,getCellNode:yn,getCellText:function(Rn){return Mt.monthFormat?Nt.locale.format(Mt.locale,Rn,Mt.monthFormat):tn[Nt.getMonth(Rn)]},getCellClassName:An,getCellDate:Nt.addMonth,titleCell:function(Rn){return Nt.locale.format(Mt.locale,Rn,"YYYY-MM")}}))}var Ae=at;function Fe(xe){var lt=xe.prefixCls,Mt=xe.operationRef,wt=xe.onViewDateChange,Ht=xe.generateConfig,Nt=xe.value,Vt=xe.viewDate,$t=xe.onPanelChange,En=xe.onSelect,gn="".concat(lt,"-month-panel");Mt.current={onKeyDown:function(tn){return x(tn,{onLeftRight:function(yn){En(Ht.addMonth(Nt||Vt,yn),"key")},onCtrlLeftRight:function(yn){En(Ht.addYear(Nt||Vt,yn),"key")},onUpDown:function(yn){En(Ht.addMonth(Nt||Vt,yn*je),"key")},onEnter:function(){$t("date",Nt||Vt)}})}};var Un=function(tn){var Pn=Ht.addYear(Vt,tn);wt(Pn),$t(null,Pn)};return g.createElement("div",{className:gn},g.createElement(Et,Object.assign({},xe,{prefixCls:lt,onPrevYear:function(){Un(-1)},onNextYear:function(){Un(1)},onYearClick:function(){$t("year",Vt)}})),g.createElement(Ae,Object.assign({},xe,{prefixCls:lt,onSelect:function(tn){En(tn,"mouse"),$t("date",tn)}})))}var Tt=Fe;function yt(xe){var lt=xe.prefixCls,Mt=xe.generateConfig,wt=xe.locale,Ht=xe.viewDate,Nt=xe.onNextYear,Vt=xe.onPrevYear,$t=xe.onYearClick,En=g.useContext(c),gn=En.hideHeader;if(gn)return null;var Un="".concat(lt,"-header");return g.createElement(s,Object.assign({},xe,{prefixCls:Un,onSuperPrev:Vt,onSuperNext:Nt}),g.createElement("button",{type:"button",onClick:$t,className:"".concat(lt,"-year-btn")},Mt.locale.format(wt.locale,Ht,wt.yearFormat)))}var Ot=yt,Lt=4,tt=1;function Ut(xe){var lt=xe.prefixCls,Mt=xe.locale,wt=xe.value,Ht=xe.viewDate,Nt=xe.generateConfig,Vt=g.useContext(dt),$t=Vt.rangedValue,En=Vt.hoverRangedValue,gn="".concat(lt,"-cell"),Un=Bt({cellPrefixCls:gn,value:wt,generateConfig:Nt,rangedValue:$t,hoverRangedValue:En,isSameCell:function(Pn,yn){return _e(Nt,Pn,yn)},isInView:function(){return!0},offsetCell:function(Pn,yn){return Nt.addMonth(Pn,yn*3)}}),An=Nt.setDate(Nt.setMonth(Ht,0),1);return g.createElement(vt,Object.assign({},xe,{rowNum:tt,colNum:Lt,baseDate:An,getCellText:function(Pn){return Nt.locale.format(Mt.locale,Pn,Mt.quarterFormat||"[Q]Q")},getCellClassName:Un,getCellDate:function(Pn,yn){return Nt.addMonth(Pn,yn*3)},titleCell:function(Pn){return Nt.locale.format(Mt.locale,Pn,"YYYY-[Q]Q")}}))}var Pt=Ut;function an(xe){var lt=xe.prefixCls,Mt=xe.operationRef,wt=xe.onViewDateChange,Ht=xe.generateConfig,Nt=xe.value,Vt=xe.viewDate,$t=xe.onPanelChange,En=xe.onSelect,gn="".concat(lt,"-quarter-panel");Mt.current={onKeyDown:function(tn){return x(tn,{onLeftRight:function(yn){En(Ht.addMonth(Nt||Vt,yn*3),"key")},onCtrlLeftRight:function(yn){En(Ht.addYear(Nt||Vt,yn),"key")},onUpDown:function(yn){En(Ht.addYear(Nt||Vt,yn),"key")}})}};var Un=function(tn){var Pn=Ht.addYear(Vt,tn);wt(Pn),$t(null,Pn)};return g.createElement("div",{className:gn},g.createElement(Ot,Object.assign({},xe,{prefixCls:lt,onPrevYear:function(){Un(-1)},onNextYear:function(){Un(1)},onYearClick:function(){$t("year",Vt)}})),g.createElement(Pt,Object.assign({},xe,{prefixCls:lt,onSelect:function(tn){En(tn,"mouse")}})))}var nn=an;function rn(xe){var lt=xe.prefixCls,Mt=xe.generateConfig,wt=xe.viewDate,Ht=xe.onPrevDecade,Nt=xe.onNextDecade,Vt=xe.onDecadeClick,$t=g.useContext(c),En=$t.hideHeader;if(En)return null;var gn="".concat(lt,"-header"),Un=Mt.getYear(wt),An=Math.floor(Un/Yn)*Yn,tn=An+Yn-1;return g.createElement(s,Object.assign({},xe,{prefixCls:gn,onSuperPrev:Ht,onSuperNext:Nt}),g.createElement("button",{type:"button",onClick:Vt,className:"".concat(lt,"-decade-btn")},An,"-",tn))}var Tn=rn,sn=3,un=4;function Jn(xe){var lt=xe.prefixCls,Mt=xe.value,wt=xe.viewDate,Ht=xe.locale,Nt=xe.generateConfig,Vt=g.useContext(dt),$t=Vt.rangedValue,En=Vt.hoverRangedValue,gn="".concat(lt,"-cell"),Un=Nt.getYear(wt),An=Math.floor(Un/Yn)*Yn,tn=An+Yn-1,Pn=Nt.setYear(wt,An-Math.ceil((sn*un-Yn)/2)),yn=function(Qn){var mr=Nt.getYear(Qn);return An<=mr&&mr<=tn},jn=Bt({cellPrefixCls:gn,value:Mt,generateConfig:Nt,rangedValue:$t,hoverRangedValue:En,isSameCell:function(Qn,mr){return Q(Nt,Qn,mr)},isInView:yn,offsetCell:function(Qn,mr){return Nt.addYear(Qn,mr)}});return g.createElement(vt,Object.assign({},xe,{rowNum:un,colNum:sn,baseDate:Pn,getCellText:Nt.getYear,getCellClassName:jn,getCellDate:Nt.addYear,titleCell:function(Qn){return Nt.locale.format(Ht.locale,Qn,"YYYY")}}))}var kn=Jn,Yn=10;function tr(xe){var lt=xe.prefixCls,Mt=xe.operationRef,wt=xe.onViewDateChange,Ht=xe.generateConfig,Nt=xe.value,Vt=xe.viewDate,$t=xe.sourceMode,En=xe.onSelect,gn=xe.onPanelChange,Un="".concat(lt,"-year-panel");Mt.current={onKeyDown:function(Pn){return x(Pn,{onLeftRight:function(jn){En(Ht.addYear(Nt||Vt,jn),"key")},onCtrlLeftRight:function(jn){En(Ht.addYear(Nt||Vt,jn*Yn),"key")},onUpDown:function(jn){En(Ht.addYear(Nt||Vt,jn*sn),"key")},onEnter:function(){gn($t==="date"?"date":"month",Nt||Vt)}})}};var An=function(Pn){var yn=Ht.addYear(Vt,Pn*10);wt(yn),gn(null,yn)};return g.createElement("div",{className:Un},g.createElement(Tn,Object.assign({},xe,{prefixCls:lt,onPrevDecade:function(){An(-1)},onNextDecade:function(){An(1)},onDecadeClick:function(){gn("decade",Vt)}})),g.createElement(kn,Object.assign({},xe,{prefixCls:lt,onSelect:function(Pn){gn($t==="date"?"date":"month",Pn),En(Pn,"mouse")}})))}var pr=tr;function ar(xe){var lt=xe.prefixCls,Mt=xe.generateConfig,wt=xe.viewDate,Ht=xe.onPrevDecades,Nt=xe.onNextDecades,Vt=g.useContext(c),$t=Vt.hideHeader;if($t)return null;var En="".concat(lt,"-header"),gn=Mt.getYear(wt),Un=Math.floor(gn/Dr)*Dr,An=Un+Dr-1;return g.createElement(s,Object.assign({},xe,{prefixCls:En,onSuperPrev:Ht,onSuperNext:Nt}),Un,"-",An)}var mn=ar,en=3,Nn=4;function Zr(xe){var lt=Ur-1,Mt=xe.prefixCls,wt=xe.viewDate,Ht=xe.generateConfig,Nt=xe.disabledDate,Vt="".concat(Mt,"-cell"),$t=Ht.getYear(wt),En=Math.floor($t/Ur)*Ur,gn=Math.floor($t/Dr)*Dr,Un=gn+Dr-1,An=Ht.setYear(wt,gn-Math.ceil((en*Nn*Ur-Dr)/2)),tn=function(yn){var jn,Rn=Nt&&Nt(yn),Qn=Ht.getYear(yn),mr=Qn+lt;return jn={},Object(y.a)(jn,"".concat(Vt,"-disabled"),Rn),Object(y.a)(jn,"".concat(Vt,"-in-view"),gn<=Qn&&mr<=Un),Object(y.a)(jn,"".concat(Vt,"-selected"),Qn===En),jn};return g.createElement(vt,Object.assign({},xe,{rowNum:Nn,colNum:en,baseDate:An,getCellText:function(yn){var jn=Ht.getYear(yn);return"".concat(jn,"-").concat(jn+lt)},getCellClassName:tn,getCellDate:function(yn,jn){return Ht.addYear(yn,jn*Ur)}}))}var zr=Zr,Ur=10,Dr=Ur*10;function pe(xe){var lt=xe.prefixCls,Mt=xe.onViewDateChange,wt=xe.generateConfig,Ht=xe.viewDate,Nt=xe.operationRef,Vt=xe.onSelect,$t=xe.onPanelChange,En="".concat(lt,"-decade-panel");Nt.current={onKeyDown:function(tn){return x(tn,{onLeftRight:function(yn){Vt(wt.addYear(Ht,yn*Ur),"key")},onCtrlLeftRight:function(yn){Vt(wt.addYear(Ht,yn*Dr),"key")},onUpDown:function(yn){Vt(wt.addYear(Ht,yn*Ur*en),"key")},onEnter:function(){$t("year",Ht)}})}};var gn=function(tn){var Pn=wt.addYear(Ht,tn*Dr);Mt(Pn),$t(null,Pn)},Un=function(tn){Vt(tn,"mouse"),$t("year",tn)};return g.createElement("div",{className:En},g.createElement(mn,Object.assign({},xe,{prefixCls:lt,onPrevDecades:function(){gn(-1)},onNextDecades:function(){gn(1)}})),g.createElement(zr,Object.assign({},xe,{prefixCls:lt,onSelect:Un})))}var X=pe;function q(xe,lt,Mt){return Mt?g.createElement("div",{className:"".concat(xe,"-footer-extra")},Mt(lt)):null}function se(xe){var lt=xe.prefixCls,Mt=xe.rangeList,wt=Mt===void 0?[]:Mt,Ht=xe.components,Nt=Ht===void 0?{}:Ht,Vt=xe.needConfirmButton,$t=xe.onNow,En=xe.onOk,gn=xe.okDisabled,Un=xe.showNow,An=xe.locale,tn,Pn;if(wt.length){var yn=Nt.rangeItem||"span";tn=g.createElement(g.Fragment,null,wt.map(function(Rn){var Qn=Rn.label,mr=Rn.onClick,kr=Rn.onMouseEnter,wn=Rn.onMouseLeave;return g.createElement("li",{key:Qn,className:"".concat(lt,"-preset")},g.createElement(yn,{onClick:mr,onMouseEnter:kr,onMouseLeave:wn},Qn))}))}if(Vt){var jn=Nt.button||"button";$t&&!tn&&Un!==!1&&(tn=g.createElement("li",{className:"".concat(lt,"-now")},g.createElement("a",{className:"".concat(lt,"-now-btn"),onClick:$t},An.now))),Pn=Vt&&g.createElement("li",{className:"".concat(lt,"-ok")},g.createElement(jn,{disabled:gn,onClick:En},An.ok))}return!tn&&!Pn?null:g.createElement("ul",{className:"".concat(lt,"-ranges")},tn,Pn)}function De(xe){var lt,Mt=xe.prefixCls,wt=Mt===void 0?"rc-picker":Mt,Ht=xe.className,Nt=xe.style,Vt=xe.locale,$t=xe.generateConfig,En=xe.value,gn=xe.defaultValue,Un=xe.pickerValue,An=xe.defaultPickerValue,tn=xe.disabledDate,Pn=xe.mode,yn=xe.picker,jn=yn===void 0?"date":yn,Rn=xe.tabIndex,Qn=Rn===void 0?0:Rn,mr=xe.showNow,kr=xe.showTime,wn=xe.showToday,Xt=xe.renderExtraFooter,fn=xe.hideHeader,Dn=xe.onSelect,Qt=xe.onChange,Sn=xe.onPanelChange,_n=xe.onMouseDown,In=xe.onPickerValueChange,Bn=xe.onOk,or=xe.components,$n=xe.direction,Or=xe.hourStep,Pr=Or===void 0?1:Or,Zn=xe.minuteStep,Tr=Zn===void 0?1:Zn,vr=xe.secondStep,Hr=vr===void 0?1:vr,Mr=jn==="date"&&!!kr||jn==="time",qr=24%Pr===0,rr=60%Tr===0,Kt=60%Hr===0,Jt=g.useContext(c),Yt=Jt.operationRef,Vn=Jt.panelRef,er=Jt.onSelect,Ln=Jt.hideRanges,ir=Jt.defaultOpenValue,cr=g.useContext(dt),sr=cr.inRange,Qr=cr.panelPosition,lr=cr.rangedValue,la=cr.hoverRangedValue,Vr=g.useRef({}),_r=g.useRef(!0),Cr=Object(l.a)(null,{value:En,defaultValue:gn,postState:function(xn){return!xn&&ir&&jn==="time"?ir:xn}}),Fr=Object(A.a)(Cr,2),Xr=Fr[0],Sa=Fr[1],va=Object(l.a)(null,{value:Un,defaultValue:An||Xr,postState:function(xn){return xn||$t.getNow()}}),Ye=Object(A.a)(va,2),ct=Ye[0],bt=Ye[1],nt=function(xn){bt(xn),In&&In(xn)},Pe=function(xn){var Fn=W[jn];return Fn?Fn(xn):xn},ze=Object(l.a)(function(){return jn==="time"?"time":Pe("date")},{value:Pn}),Ie=Object(A.a)(ze,2),Ze=Ie[0],Qe=Ie[1];g.useEffect(function(){Qe(jn)},[jn]);var ht=g.useState(function(){return Ze}),it=Object(A.a)(ht,2),It=it[0],zt=it[1],hn=function(xn,Fn){var Kr=Pe(xn||Ze);zt(Ze),Qe(Kr),Sn&&(Ze!==Kr||st($t,ct,ct))&&Sn(Fn,Kr)},ln=function(xn,Fn){var Kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Ze===jn||Kr)&&(Sa(xn),Dn&&Dn(xn),er&&er(xn,Fn),Qt&&!st($t,xn,Xr)&&Qt(xn))},dn=function(xn){return Vr.current&&Vr.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(xn.which)&&xn.preventDefault(),Vr.current.onKeyDown(xn)):(Object(r.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},cn=function(xn){Vr.current&&Vr.current.onBlur&&Vr.current.onBlur(xn)};Yt&&Qr!=="right"&&(Yt.current={onKeyDown:dn,onClose:function(){Vr.current&&Vr.current.onClose&&Vr.current.onClose()}}),g.useEffect(function(){En&&!_r.current&&bt(En)},[En]),g.useEffect(function(){_r.current=!1},[]);var Hn,Cn=Object(C.a)(Object(C.a)({},xe),{},{operationRef:Vr,prefixCls:wt,viewDate:ct,value:Xr,onViewDateChange:nt,sourceMode:It,onPanelChange:hn,disabledDate:Ze!=="decade"?tn:void 0});delete Cn.onChange,delete Cn.onSelect;switch(Ze){case"decade":Hn=g.createElement(X,Object.assign({},Cn,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}}));break;case"year":Hn=g.createElement(pr,Object.assign({},Cn,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}}));break;case"month":Hn=g.createElement(Tt,Object.assign({},Cn,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}}));break;case"quarter":Hn=g.createElement(nn,Object.assign({},Cn,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}}));break;case"week":Hn=g.createElement(bn,Object.assign({},Cn,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}}));break;case"time":delete Cn.showTime,Hn=g.createElement(Se,Object.assign({},Cn,Object(n.a)(kr)==="object"?kr:null,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}}));break;default:kr?Hn=g.createElement(Ft,Object.assign({},Cn,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}})):Hn=g.createElement(Xe,Object.assign({},Cn,{onSelect:function(xn,Fn){nt(xn),ln(xn,Fn)}}))}var Nr,Ar,Yr=function(){var xn=$t.getNow(),Fn=ye($t.getHour(xn),$t.getMinute(xn),$t.getSecond(xn),qr?Pr:1,rr?Tr:1,Kt?Hr:1),Kr=Ee($t,xn,Fn[0],Fn[1],Fn[2]);ln(Kr,"submit")};Ln||(Nr=q(wt,Ze,Xt),Ar=se({prefixCls:wt,components:or,needConfirmButton:Mr,okDisabled:!Xr||tn&&tn(Xr),locale:Vt,showNow:mr,onNow:Mr&&Yr,onOk:function(){Xr&&(ln(Xr,"submit",!0),Bn&&Bn(Xr))}}));var jr;if(wn&&Ze==="date"&&jn==="date"&&!kr){var ta=$t.getNow(),Gn="".concat(wt,"-today-btn"),wr=tn&&tn(ta);jr=g.createElement("a",{className:f()(Gn,wr&&"".concat(Gn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||ln(ta,"mouse",!0)}},Vt.today)}return g.createElement(c.Provider,{value:Object(C.a)(Object(C.a)({},Jt),{},{hideHeader:"hideHeader"in xe?fn:Jt.hideHeader,hidePrevBtn:sr&&Qr==="right",hideNextBtn:sr&&Qr==="left"})},g.createElement("div",{tabIndex:Qn,className:f()("".concat(wt,"-panel"),Ht,(lt={},Object(y.a)(lt,"".concat(wt,"-panel-has-range"),lr&&lr[0]&&lr[1]),Object(y.a)(lt,"".concat(wt,"-panel-has-range-hover"),la&&la[0]&&la[1]),Object(y.a)(lt,"".concat(wt,"-panel-rtl"),$n==="rtl"),lt)),style:Nt,onKeyDown:dn,onBlur:cn,onMouseDown:_n,ref:Vn},Hn,Nr||Ar||jr?g.createElement("div",{className:"".concat(wt,"-footer")},Nr,Ar,jr):null))}var he=De,pt=o("uciX"),vn={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 Kn(xe){var lt,Mt=xe.prefixCls,wt=xe.popupElement,Ht=xe.popupStyle,Nt=xe.visible,Vt=xe.dropdownClassName,$t=xe.dropdownAlign,En=xe.transitionName,gn=xe.getPopupContainer,Un=xe.children,An=xe.range,tn=xe.popupPlacement,Pn=xe.direction,yn="".concat(Mt,"-dropdown"),jn=function(){return tn!==void 0?tn:Pn==="rtl"?"bottomRight":"bottomLeft"};return g.createElement(pt.a,{showAction:[],hideAction:[],popupPlacement:jn(),builtinPlacements:vn,prefixCls:yn,popupTransitionName:En,popup:wt,popupAlign:$t,popupVisible:Nt,popupClassName:f()(Vt,(lt={},Object(y.a)(lt,"".concat(yn,"-range"),An),Object(y.a)(lt,"".concat(yn,"-rtl"),Pn==="rtl"),lt)),popupStyle:Ht,getPopupContainer:gn},Un)}var dr=Kn;function on(xe){var lt=xe.open,Mt=xe.value,wt=xe.isClickOutside,Ht=xe.triggerOpen,Nt=xe.forwardKeyDown,Vt=xe.blurToCancel,$t=xe.onSubmit,En=xe.onCancel,gn=xe.onFocus,Un=xe.onBlur,An=Object(g.useState)(!1),tn=Object(A.a)(An,2),Pn=tn[0],yn=tn[1],jn=Object(g.useState)(!1),Rn=Object(A.a)(jn,2),Qn=Rn[0],mr=Rn[1],kr=Object(g.useRef)(!1),wn=Object(g.useRef)(!1),Xt={onMouseDown:function(){yn(!0),Ht(!0)},onKeyDown:function(Dn){switch(Dn.which){case i.a.ENTER:{lt?$t()!==!1&&yn(!0):Ht(!0),Dn.preventDefault();return}case i.a.TAB:{Pn&<&&!Dn.shiftKey?(yn(!1),Dn.preventDefault()):!Pn&<&&(!Nt(Dn)&&Dn.shiftKey&&(yn(!0),Dn.preventDefault()));return}case i.a.ESC:{yn(!0),En();return}}!lt&&![i.a.SHIFT].includes(Dn.which)?Ht(!0):Pn||Nt(Dn)},onFocus:function(Dn){yn(!0),mr(!0),gn&&gn(Dn)},onBlur:function(Dn){if(kr.current||!wt(document.activeElement)){kr.current=!1;return}Vt?setTimeout(function(){wt(document.activeElement)&&En()},0):lt&&(Ht(!1),wn.current&&$t()),mr(!1),Un&&Un(Dn)}};return Object(g.useEffect)(function(){wn.current=!1},[lt]),Object(g.useEffect)(function(){wn.current=!0},[Mt]),Object(g.useEffect)(function(){return I(function(fn){var Dn=fn.target;lt&&(wt(Dn)?Qn||Ht(!1):(kr.current=!0,requestAnimationFrame(function(){kr.current=!1})))})}),[Xt,{focused:Qn,typing:Pn}]}function Mn(xe){var lt=xe.valueTexts,Mt=xe.onTextChange,wt=g.useState(""),Ht=Object(A.a)(wt,2),Nt=Ht[0],Vt=Ht[1],$t=g.useRef([]);$t.current=lt;function En(Un){Vt(Un),Mt(Un)}function gn(){Vt($t.current[0])}return g.useEffect(function(){lt.every(function(Un){return Un!==Nt})&&gn()},[lt.join("||")]),[Nt,En,gn]}var Xn=o("Gytx"),$r=o.n(Xn);function ga(xe,lt){var Mt=lt.formatList,wt=lt.generateConfig,Ht=lt.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Nt="",Vt=[],$t=0;$t<Mt.length;$t+=1){var En=Mt[$t],gn=wt.locale.format(Ht.locale,xe,En);Vt.push(gn),$t===0&&(Nt=gn)}return[Vt,Nt]},[xe,Mt],function(Nt,Vt){return Nt[0]!==Vt[0]||!$r()(Nt[1],Vt[1])})}function pa(xe,lt){var Mt=lt.formatList,wt=lt.generateConfig,Ht=lt.locale,Nt=Object(g.useState)(null),Vt=Object(A.a)(Nt,2),$t=Vt[0],En=Vt[1],gn=Object(g.useRef)(null);function Un(Rn){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(gn.current),Qn){En(Rn);return}gn.current=requestAnimationFrame(function(){En(Rn)})}var An=ga($t,{formatList:Mt,generateConfig:wt,locale:Ht}),tn=Object(A.a)(An,2),Pn=tn[1];function yn(Rn){Un(Rn)}function jn(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Un(null,Rn)}return Object(g.useEffect)(function(){jn(!0)},[xe]),Object(g.useEffect)(function(){return function(){return cancelAnimationFrame(gn.current)}},[]),[Pn,yn,jn]}function fr(xe){var lt,Mt=xe.prefixCls,wt=Mt===void 0?"rc-picker":Mt,Ht=xe.id,Nt=xe.tabIndex,Vt=xe.style,$t=xe.className,En=xe.dropdownClassName,gn=xe.dropdownAlign,Un=xe.popupStyle,An=xe.transitionName,tn=xe.generateConfig,Pn=xe.locale,yn=xe.inputReadOnly,jn=xe.allowClear,Rn=xe.autoFocus,Qn=xe.showTime,mr=xe.picker,kr=mr===void 0?"date":mr,wn=xe.format,Xt=xe.use12Hours,fn=xe.value,Dn=xe.defaultValue,Qt=xe.open,Sn=xe.defaultOpen,_n=xe.defaultOpenValue,In=xe.suffixIcon,Bn=xe.clearIcon,or=xe.disabled,$n=xe.disabledDate,Or=xe.placeholder,Pr=xe.getPopupContainer,Zn=xe.pickerRef,Tr=xe.panelRender,vr=xe.onChange,Hr=xe.onOpenChange,Mr=xe.onFocus,qr=xe.onBlur,rr=xe.onMouseDown,Kt=xe.onMouseUp,Jt=xe.onMouseEnter,Yt=xe.onMouseLeave,Vn=xe.onContextMenu,er=xe.onClick,Ln=xe.direction,ir=xe.autoComplete,cr=ir===void 0?"off":ir,sr=g.useRef(null),Qr=kr==="date"&&!!Qn||kr==="time",lr=de(w(wn,kr,Qn,Xt)),la=g.useRef(null),Vr=g.useRef(null),_r=Object(l.a)(null,{value:fn,defaultValue:Dn}),Cr=Object(A.a)(_r,2),Fr=Cr[0],Xr=Cr[1],Sa=g.useState(Fr),va=Object(A.a)(Sa,2),Ye=va[0],ct=va[1],bt=g.useRef(null),nt=Object(l.a)(!1,{value:Qt,defaultValue:Sn,postState:function(nr){return or?!1:nr},onChange:function(nr){Hr&&Hr(nr),!nr&&bt.current&&bt.current.onClose&&bt.current.onClose()}}),Pe=Object(A.a)(nt,2),ze=Pe[0],Ie=Pe[1],Ze=ga(Ye,{formatList:lr,generateConfig:tn,locale:Pn}),Qe=Object(A.a)(Ze,2),ht=Qe[0],it=Qe[1],It=Mn({valueTexts:ht,onTextChange:function(nr){var da=tn.locale.parse(Pn.locale,nr,lr);da&&(!$n||!$n(da))&&ct(da)}}),zt=Object(A.a)(It,3),hn=zt[0],ln=zt[1],dn=zt[2],cn=function(nr){ct(nr),Xr(nr),vr&&!st(tn,Fr,nr)&&vr(nr,nr?tn.locale.format(Pn.locale,nr,lr[0]):"")},Hn=function(nr){if(or&&nr)return;Ie(nr)},Cn=function(nr){return ze&&bt.current&&bt.current.onKeyDown?bt.current.onKeyDown(nr):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Nr=function(){Kt&&Kt.apply(void 0,arguments),sr.current&&(sr.current.focus(),Hn(!0))},Ar=on({blurToCancel:Qr,open:ze,value:hn,triggerOpen:Hn,forwardKeyDown:Cn,isClickOutside:function(nr){return!F([la.current,Vr.current],nr)},onSubmit:function(){return $n&&$n(Ye)?!1:(cn(Ye),Hn(!1),dn(),!0)},onCancel:function(){Hn(!1),ct(Fr),dn()},onFocus:Mr,onBlur:qr}),Yr=Object(A.a)(Ar,2),jr=Yr[0],ta=Yr[1],Gn=ta.focused,wr=ta.typing;g.useEffect(function(){ze||(ct(Fr),!ht.length||ht[0]===""?ln(""):it!==hn&&dn())},[ze,ht]),g.useEffect(function(){ze||dn()},[kr]),g.useEffect(function(){ct(Fr)},[Fr]),Zn&&(Zn.current={focus:function(){sr.current&&sr.current.focus()},blur:function(){sr.current&&sr.current.blur()}});var zn=Object(C.a)(Object(C.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),xn=g.createElement(he,Object.assign({},zn,{generateConfig:tn,className:f()(Object(y.a)({},"".concat(wt,"-panel-focused"),!wr)),value:Ye,locale:Pn,tabIndex:-1,onChange:ct,direction:Ln}));Tr&&(xn=Tr(xn));var Fn=g.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(nr){nr.preventDefault()}},xn),Kr;In&&(Kr=g.createElement("span",{className:"".concat(wt,"-suffix")},In));var sa;jn&&Fr&&!or&&(sa=g.createElement("span",{onMouseDown:function(nr){nr.preventDefault(),nr.stopPropagation()},onMouseUp:function(nr){nr.preventDefault(),nr.stopPropagation(),cn(null),Hn(!1)},className:"".concat(wt,"-clear")},Bn||g.createElement("span",{className:"".concat(wt,"-clear-btn")})));var hr=function(nr,da){(da==="submit"||da!=="key"&&!Qr)&&(cn(nr),Hn(!1))},ra=Ln==="rtl"?"bottomRight":"bottomLeft",Ea=pa(hn,{formatList:lr,generateConfig:tn,locale:Pn}),ca=Object(A.a)(Ea,3),xa=ca[0],Sr=ca[1],br=ca[2];return g.createElement(c.Provider,{value:{operationRef:bt,hideHeader:kr==="time",panelRef:la,onSelect:hr,open:ze,defaultOpenValue:_n,onDateMouseEnter:Sr,onDateMouseLeave:br}},g.createElement(dr,{visible:ze,popupElement:Fn,popupStyle:Un,prefixCls:wt,dropdownClassName:En,dropdownAlign:gn,getPopupContainer:Pr,transitionName:An,popupPlacement:ra,direction:Ln},g.createElement("div",{className:f()(wt,$t,(lt={},Object(y.a)(lt,"".concat(wt,"-disabled"),or),Object(y.a)(lt,"".concat(wt,"-focused"),Gn),Object(y.a)(lt,"".concat(wt,"-rtl"),Ln==="rtl"),lt)),style:Vt,onMouseDown:rr,onMouseUp:Nr,onMouseEnter:Jt,onMouseLeave:Yt,onContextMenu:Vn,onClick:er},g.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!xa)),ref:Vr},g.createElement("input",Object.assign({id:Ht,tabIndex:Nt,disabled:or,readOnly:yn||!wr,value:xa||hn,onChange:function(nr){ln(nr.target.value)},autoFocus:Rn,placeholder:Or,ref:sr,title:hn},jr,{size:v(kr,lr[0])},Ce(xe),{autoComplete:cr})),Kr,sa))))}var za=function(xe){Object(T.a)(Mt,xe);var lt=Object(b.a)(Mt);function Mt(){var wt;return Object(M.a)(this,Mt),wt=lt.apply(this,arguments),wt.pickerRef=g.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(m.a)(Mt,[{key:"render",value:function(){return g.createElement(fr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Mt}(g.Component),ja=za;function Ra(xe,lt,Mt){var wt=xe.picker,Ht=xe.locale,Nt=xe.selectedValue,Vt=xe.disabledDate,$t=xe.disabled,En=xe.generateConfig,gn=Oe(Nt,0),Un=Oe(Nt,1);function An(Rn){var Qn=En.getYear(Rn),mr=En.locale.getWeek(Ht.locale,Rn);return Qn*100+mr}function tn(Rn){var Qn=En.getYear(Rn),mr=En.getMonth(Rn);return Qn*100+mr}function Pn(Rn){var Qn=En.getYear(Rn),mr=ve(En,Rn);return Qn*10+mr}var yn=g.useCallback(function(Rn){if(Vt&&Vt(Rn))return!0;if($t[1]&&Un)return!Ge(En,Rn,Un)&&En.isAfter(Rn,Un);if(lt&&Un)switch(wt){case"quarter":return Pn(Rn)>Pn(Un);case"month":return tn(Rn)>tn(Un);case"week":return An(Rn)>An(Un);default:return!Ge(En,Rn,Un)&&En.isAfter(Rn,Un)}return!1},[Vt,$t[1],Un,lt]),jn=g.useCallback(function(Rn){if(Vt&&Vt(Rn))return!0;if($t[0]&&gn)return!Ge(En,Rn,Un)&&En.isAfter(gn,Rn);if(Mt&&gn)switch(wt){case"quarter":return Pn(Rn)<Pn(gn);case"month":return tn(Rn)<tn(gn);case"week":return An(Rn)<An(gn);default:return!Ge(En,Rn,gn)&&En.isAfter(gn,Rn)}return!1},[Vt,$t[0],gn,Mt]);return[yn,jn]}function Ha(xe,lt,Mt,wt){var Ht=Ve(xe,Mt,wt,1);function Nt(Vt){return Vt(xe,lt)?"same":Vt(Ht,lt)?"closing":"far"}switch(Mt){case"year":return Nt(function(Vt,$t){return J(wt,Vt,$t)});case"quarter":case"month":return Nt(function(Vt,$t){return Q(wt,Vt,$t)});default:return Nt(function(Vt,$t){return Te(wt,Vt,$t)})}}function wa(xe,lt,Mt,wt){var Ht=Oe(xe,0),Nt=Oe(xe,1);if(lt===0)return Ht;if(Ht&&Nt){var Vt=Ha(Ht,Nt,Mt,wt);switch(Vt){case"same":return Ht;case"closing":return Ht;default:return Ve(Nt,Mt,wt,-1)}}return Ht}function Ja(xe){var lt=xe.values,Mt=xe.picker,wt=xe.defaultDates,Ht=xe.generateConfig,Nt=g.useState(function(){return[Oe(wt,0),Oe(wt,1)]}),Vt=Object(A.a)(Nt,2),$t=Vt[0],En=Vt[1],gn=g.useState(null),Un=Object(A.a)(gn,2),An=Un[0],tn=Un[1],Pn=Oe(lt,0),yn=Oe(lt,1);function jn(Qn){return $t[Qn]?$t[Qn]:Oe(An,Qn)||wa(lt,Qn,Mt,Ht)||Pn||yn||Ht.getNow()}function Rn(Qn,mr){if(Qn){var kr=ce(An,Qn,mr);En(ce($t,null,mr)||[null,null]);var wn=(mr+1)%2;Oe(lt,wn)||(kr=ce(kr,Qn,wn)),tn(kr)}else(Pn||yn)&&tn(null)}return[jn,Rn]}function ka(xe,lt){return xe&&xe[0]&&xe[1]&<.isAfter(xe[0],xe[1])?[xe[1],xe[0]]:xe}function li(xe,lt,Mt,wt){return xe||wt&&wt[lt]?!0:!!Mt[(lt+1)%2]}function oi(xe){var lt,Mt,wt,Ht=xe.prefixCls,Nt=Ht===void 0?"rc-picker":Ht,Vt=xe.id,$t=xe.style,En=xe.className,gn=xe.popupStyle,Un=xe.dropdownClassName,An=xe.transitionName,tn=xe.dropdownAlign,Pn=xe.getPopupContainer,yn=xe.generateConfig,jn=xe.locale,Rn=xe.placeholder,Qn=xe.autoFocus,mr=xe.disabled,kr=xe.format,wn=xe.picker,Xt=wn===void 0?"date":wn,fn=xe.showTime,Dn=xe.use12Hours,Qt=xe.separator,Sn=Qt===void 0?"~":Qt,_n=xe.value,In=xe.defaultValue,Bn=xe.defaultPickerValue,or=xe.open,$n=xe.defaultOpen,Or=xe.disabledDate,Pr=xe.disabledTime,Zn=xe.dateRender,Tr=xe.panelRender,vr=xe.ranges,Hr=xe.allowEmpty,Mr=xe.allowClear,qr=xe.suffixIcon,rr=xe.clearIcon,Kt=xe.pickerRef,Jt=xe.inputReadOnly,Yt=xe.mode,Vn=xe.renderExtraFooter,er=xe.onChange,Ln=xe.onOpenChange,ir=xe.onPanelChange,cr=xe.onCalendarChange,sr=xe.onFocus,Qr=xe.onBlur,lr=xe.onOk,la=xe.components,Vr=xe.order,_r=xe.direction,Cr=xe.activePickerIndex,Fr=xe.autoComplete,Xr=Fr===void 0?"off":Fr,Sa=Xt==="date"&&!!fn||Xt==="time",va=Object(g.useRef)({}),Ye=Object(g.useRef)(null),ct=Object(g.useRef)(null),bt=Object(g.useRef)(null),nt=Object(g.useRef)(null),Pe=Object(g.useRef)(null),ze=Object(g.useRef)(null),Ie=Object(g.useRef)(null),Ze=de(w(kr,Xt,fn,Dn)),Qe=Object(l.a)(0,{value:Cr}),ht=Object(A.a)(Qe,2),it=ht[0],It=ht[1],zt=Object(g.useRef)(null),hn=g.useMemo(function(){return Array.isArray(mr)?mr:[mr||!1,mr||!1]},[mr]),ln=Object(l.a)(null,{value:_n,defaultValue:In,postState:function(xr){return Xt==="time"&&!Vr?xr:ka(xr,yn)}}),dn=Object(A.a)(ln,2),cn=dn[0],Hn=dn[1],Cn=Ja({values:cn,picker:Xt,defaultDates:Bn,generateConfig:yn}),Nr=Object(A.a)(Cn,2),Ar=Nr[0],Yr=Nr[1],jr=Object(l.a)(cn,{postState:function(xr){var Jr=xr;if(hn[0]&&hn[1])return Jr;for(var ma=0;ma<2;ma+=1)hn[ma]&&!Oe(Jr,ma)&&!Oe(Hr,ma)&&(Jr=ce(Jr,yn.getNow(),ma));return Jr}}),ta=Object(A.a)(jr,2),Gn=ta[0],wr=ta[1],zn=Object(l.a)([Xt,Xt],{value:Yt}),xn=Object(A.a)(zn,2),Fn=xn[0],Kr=xn[1];Object(g.useEffect)(function(){Kr([Xt,Xt])},[Xt]);var sa=function(xr,Jr){Kr(xr),ir&&ir(Jr,xr)},hr=Ra({picker:Xt,selectedValue:Gn,locale:jn,disabled:hn,disabledDate:Or,generateConfig:yn},va.current[1],va.current[0]),ra=Object(A.a)(hr,2),Ea=ra[0],ca=ra[1],xa=Object(l.a)(!1,{value:or,defaultValue:$n,postState:function(xr){return hn[it]?!1:xr},onChange:function(xr){Ln&&Ln(xr),!xr&&zt.current&&zt.current.onClose&&zt.current.onClose()}}),Sr=Object(A.a)(xa,2),br=Sr[0],Rr=Sr[1],nr=br&&it===0,da=br&&it===1,ya=Object(g.useState)(0),_a=Object(A.a)(ya,2),Ta=_a[0],ha=_a[1];Object(g.useEffect)(function(){!br&&Ye.current&&ha(Ye.current.offsetWidth)},[br]);var La=g.useRef();function Na(ia,xr){if(ia)clearTimeout(La.current),va.current[xr]=!0,It(xr),Rr(ia),br||Yr(null,xr);else if(it===xr){Rr(ia);var Jr=va.current;La.current=setTimeout(function(){Jr===va.current&&(va.current={})})}}function Ba(ia){Na(!0,ia),setTimeout(function(){var xr=[ze,Ie][ia];xr.current&&xr.current.focus()},0)}function ni(ia,xr){var Jr=ia,ma=Oe(Jr,0),Fa=Oe(Jr,1);ma&&Fa&&yn.isAfter(ma,Fa)&&(Xt==="week"&&!ut(yn,jn.locale,ma,Fa)||Xt==="quarter"&&!_e(yn,ma,Fa)||Xt!=="week"&&Xt!=="quarter"&&Xt!=="time"&&!Ge(yn,ma,Fa)?(xr===0?(Jr=[ma,null],Fa=null):(ma=null,Jr=[null,Fa]),va.current=Object(y.a)({},xr,!0)):(Xt!=="time"||Vr!==!1)&&(Jr=ka(Jr,yn))),wr(Jr);var Ei=Jr&&Jr[0]?yn.locale.format(jn.locale,Jr[0],Ze[0]):"",Pi=Jr&&Jr[1]?yn.locale.format(jn.locale,Jr[1],Ze[0]):"";if(cr){var $a={range:xr===0?"start":"end"};cr(Jr,[Ei,Pi],$a)}var xi=li(ma,0,hn,Hr),Ki=li(Fa,1,hn,Hr),go=Jr===null||xi&&Ki;go&&(Hn(Jr),er&&(!st(yn,Oe(cn,0),ma)||!st(yn,Oe(cn,1),Fa))&&er(Jr,[Ei,Pi]));var Qa=null;xr===0&&!hn[1]?Qa=1:xr===1&&!hn[0]&&(Qa=0),Qa!==null&&Qa!==it&&(!va.current[Qa]||!Oe(Jr,Qa))&&Oe(Jr,xr)?Ba(Qa):Na(!1,xr)}var Fi=function(xr){return br&&zt.current&&zt.current.onKeyDown?zt.current.onKeyDown(xr):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ai={formatList:Ze,generateConfig:yn,locale:jn},Ia=ga(Oe(Gn,0),Ai),bi=Object(A.a)(Ia,2),wi=bi[0],Ua=bi[1],Pa=ga(Oe(Gn,1),Ai),Za=Object(A.a)(Pa,2),to=Za[0],Mo=Za[1],Ii=function(xr,Jr){var ma=yn.locale.parse(jn.locale,xr,Ze),Fa=Jr===0?Ea:ca;ma&&!Fa(ma)&&(wr(ce(Gn,ma,Jr)),Yr(ma,Jr))},no=Mn({valueTexts:wi,onTextChange:function(xr){return Ii(xr,0)}}),ro=Object(A.a)(no,3),mi=ro[0],uo=ro[1],Io=ro[2],Lo=Mn({valueTexts:to,onTextChange:function(xr){return Ii(xr,1)}}),bo=Object(A.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(g.useState)(null),No=Object(A.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(g.useState)(null),Qi=Object(A.a)(Ji,2),ei=Qi[0],Li=Qi[1],Di=pa(mi,{formatList:Ze,generateConfig:yn,locale:jn}),Zi=Object(A.a)(Di,3),Ri=Zi[0],Eo=Zi[1],xo=Zi[2],Co=pa(Vi,{formatList:Ze,generateConfig:yn,locale:jn}),io=Object(A.a)(Co,3),Ni=io[0],qi=io[1],ko=io[2],oo=function(xr){Li(ce(Gn,xr,it)),it===0?Eo(xr):qi(xr)},so=function(){Li(ce(Gn,null,it)),it===0?xo():ko()},wo=function(xr,Jr){return{blurToCancel:Sa,forwardKeyDown:Fi,onBlur:Qr,isClickOutside:function(Fa){return!F([ct.current,bt.current,nt.current],Fa)},onFocus:function(Fa){It(xr),sr&&sr(Fa)},triggerOpen:function(Fa){Na(Fa,xr)},onSubmit:function(){ni(Gn,xr),Jr()},onCancel:function(){Na(!1,xr),wr(cn),Jr()}}},Uo=on(Object(C.a)(Object(C.a)({},wo(0,Io)),{},{open:nr,value:mi})),jo=Object(A.a)(Uo,2),fi=jo[0],Wa=jo[1],ri=Wa.focused,Xa=Wa.typing,ai=on(Object(C.a)(Object(C.a)({},wo(1,Xi)),{},{open:da,value:Vi})),So=Object(A.a)(ai,2),yi=So[0],Bo=So[1],To=Bo.focused,$i=Bo.typing,Wi=function(xr){!br&&!ze.current.contains(xr.target)&&!Ie.current.contains(xr.target)&&(hn[0]?hn[1]||Ba(1):Ba(0))},Oo=function(xr){br&&(ri||To)&&!ze.current.contains(xr.target)&&!Ie.current.contains(xr.target)&&xr.preventDefault()},fo=cn&&cn[0]?yn.locale.format(jn.locale,cn[0],"YYYYMMDDHHmmss"):"",Wo=cn&&cn[1]?yn.locale.format(jn.locale,cn[1],"YYYYMMDDHHmmss"):"";Object(g.useEffect)(function(){br||(wr(cn),!wi.length||wi[0]===""?uo(""):Ua!==mi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[br,wi,to]),Object(g.useEffect)(function(){wr(cn)},[fo,Wo]),Kt&&(Kt.current={focus:function(){ze.current&&ze.current.focus()},blur:function(){ze.current&&ze.current.blur(),Ie.current&&Ie.current.blur()}});var lo=Object.keys(vr||{}),Oa=lo.map(function(ia){var xr=vr[ia],Jr=typeof xr=="function"?xr():xr;return{label:ia,onClick:function(){ni(Jr,null),Na(!1,it)},onMouseEnter:function(){ao(Jr)},onMouseLeave:function(){ao(null)}}});function ba(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jr=null;br&&ei&&ei[0]&&ei[1]&&yn.isAfter(ei[1],ei[0])&&(Jr=ei);var ma=fn;if(fn&&Object(n.a)(fn)==="object"&&fn.defaultValue){var Fa=fn.defaultValue;ma=Object(C.a)(Object(C.a)({},fn),{},{defaultValue:Oe(Fa,it)||void 0})}var Ei=null;return Zn&&(Ei=function($a,xi){return Zn($a,xi,{range:it?"end":"start"})}),g.createElement(dt.Provider,{value:{inRange:!0,panelPosition:ia,rangedValue:yo||Gn,hoverRangedValue:Jr}},g.createElement(he,Object.assign({},xe,xr,{dateRender:Ei,showTime:ma,mode:Fn[it],generateConfig:yn,style:void 0,direction:_r,disabledDate:it===0?Ea:ca,disabledTime:function($a){return Pr?Pr($a,it===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Nt,"-panel-focused"),it===0?!Xa:!$i)),value:Oe(Gn,it),locale:jn,tabIndex:-1,onPanelChange:function($a,xi){sa(ce(Fn,xi,it),ce(Gn,$a,it));var Ki=$a;ia==="right"&&Fn[it]===xi&&(Ki=Ve(Ki,xi,yn,-1)),Yr(Ki,it)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ka=0,ui=0;it&&bt.current&&Pe.current&&ct.current&&(Ka=bt.current.offsetWidth+Pe.current.offsetWidth,ct.current.offsetWidth&&Ka>ct.current.offsetWidth&&(ui=Ka));var eo=_r==="rtl"?{right:Ka}:{left:Ka};function ki(){var ia,xr=q(Nt,Fn[it],Vn),Jr=se({prefixCls:Nt,components:la,needConfirmButton:Sa,okDisabled:!Oe(Gn,it)||Or&&Or(Gn[it]),locale:jn,rangeList:Oa,onOk:function(){Oe(Gn,it)&&(ni(Gn,it),lr&&lr(Gn))}});if(Xt!=="time"&&!fn){var ma=Ar(it),Fa=Ve(ma,Xt,yn),Ei=Fn[it],Pi=Ei===Xt,$a=ba(Pi?"left":!1,{pickerValue:ma,onPickerValueChange:function(Qa){Yr(Qa,it)}}),xi=ba("right",{pickerValue:Fa,onPickerValueChange:function(Qa){Yr(Ve(Qa,Xt,yn,-1),it)}});_r==="rtl"?ia=g.createElement(g.Fragment,null,xi,Pi&&$a):ia=g.createElement(g.Fragment,null,$a,Pi&&xi)}else ia=ba();var Ki=g.createElement(g.Fragment,null,g.createElement("div",{className:"".concat(Nt,"-panels")},ia),(xr||Jr)&&g.createElement("div",{className:"".concat(Nt,"-footer")},xr,Jr));return Tr&&(Ki=Tr(Ki)),g.createElement("div",{className:"".concat(Nt,"-panel-container"),style:{marginLeft:ui},ref:ct,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=g.createElement("div",{className:f()("".concat(Nt,"-range-wrapper"),"".concat(Nt,"-").concat(Xt,"-range-wrapper")),style:{minWidth:Ta}},g.createElement("div",{className:"".concat(Nt,"-range-arrow"),style:eo}),ki()),Si;qr&&(Si=g.createElement("span",{className:"".concat(Nt,"-suffix")},qr));var qa;Mr&&(Oe(cn,0)&&!hn[0]||Oe(cn,1)&&!hn[1])&&(qa=g.createElement("span",{onMouseDown:function(xr){xr.preventDefault(),xr.stopPropagation()},onMouseUp:function(xr){xr.preventDefault(),xr.stopPropagation();var Jr=cn;hn[0]||(Jr=ce(Jr,null,0)),hn[1]||(Jr=ce(Jr,null,1)),ni(Jr,null),Na(!1,it)},className:"".concat(Nt,"-clear")},rr||g.createElement("span",{className:"".concat(Nt,"-clear-btn")})));var po={size:v(Xt,Ze[0])},Hi=0,mo=0;bt.current&&nt.current&&Pe.current&&(it===0?mo=bt.current.offsetWidth:(Hi=Ka,mo=nt.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Da=function(xr,Jr){var ma=ce(Gn,xr,it);Jr==="submit"||Jr!=="key"&&!Sa?(ni(ma,it),it===0?xo():ko()):wr(ma)};return g.createElement(c.Provider,{value:{operationRef:zt,hideHeader:Xt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Da,open:br}},g.createElement(dr,{visible:br,popupElement:ho,popupStyle:gn,prefixCls:Nt,dropdownClassName:Un,dropdownAlign:tn,getPopupContainer:Pn,transitionName:An,range:!0,direction:_r},g.createElement("div",Object.assign({ref:Ye,className:f()(Nt,"".concat(Nt,"-range"),En,(lt={},Object(y.a)(lt,"".concat(Nt,"-disabled"),hn[0]&&hn[1]),Object(y.a)(lt,"".concat(Nt,"-focused"),it===0?ri:To),Object(y.a)(lt,"".concat(Nt,"-rtl"),_r==="rtl"),lt)),style:$t,onClick:Wi,onMouseDown:Oo},Ce(xe)),g.createElement("div",{className:f()("".concat(Nt,"-input"),(Mt={},Object(y.a)(Mt,"".concat(Nt,"-input-active"),it===0),Object(y.a)(Mt,"".concat(Nt,"-input-placeholder"),!!Ri),Mt)),ref:bt},g.createElement("input",Object.assign({id:Vt,disabled:hn[0],readOnly:Jt||!Xa,value:Ri||mi,onChange:function(xr){uo(xr.target.value)},autoFocus:Qn,placeholder:Oe(Rn,0)||"",ref:ze},fi,po,{autoComplete:Xr}))),g.createElement("div",{className:"".concat(Nt,"-range-separator"),ref:Pe},Sn),g.createElement("div",{className:f()("".concat(Nt,"-input"),(wt={},Object(y.a)(wt,"".concat(Nt,"-input-active"),it===1),Object(y.a)(wt,"".concat(Nt,"-input-placeholder"),!!Ni),wt)),ref:nt},g.createElement("input",Object.assign({disabled:hn[1],readOnly:Jt||!$i,value:Ni||Vi,onChange:function(xr){co(xr.target.value)},placeholder:Oe(Rn,1)||"",ref:Ie},yi,po,{autoComplete:Xr}))),g.createElement("div",{className:"".concat(Nt,"-active-bar"),style:Object(C.a)(Object(C.a)({},hi),{},{width:mo,position:"absolute"})}),Si,qa)))}var ua=function(xe){Object(T.a)(Mt,xe);var lt=Object(b.a)(Mt);function Mt(){var wt;return Object(M.a)(this,Mt),wt=lt.apply(this,arguments),wt.pickerRef=g.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(m.a)(Mt,[{key:"render",value:function(){return g.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Mt}(g.Component),fa=ua,oa=z.b=ja},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 m=M.Pos;function T(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 A(h,d,s,u){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=u?Math.max(u.from,h.firstLine()):h.firstLine(),this.max=u?Math.min(u.to-1,h.lastLine()):h.lastLine()}function g(h,d){var s=h.cm.getTokenTypeAt(m(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 r(h){for(;;){var d=h.text.indexOf(">",h.ch);if(d==-1){if(e(h))continue;return}if(!g(h,d+1)){h.ch=d+1;continue}var s=h.text.lastIndexOf("/",d),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function l(h){for(;;){var d=h.ch?h.text.lastIndexOf("<",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!g(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(!g(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(!g(h,d+1)){h.ch=d;continue}var s=h.text.lastIndexOf("/",d),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function a(h,d){for(var s=[];;){var u=n(h),S,E=h.line,_=h.ch-(u?u[0].length:0);if(!u||!(S=r(h)))return;if(S=="selfClose")continue;if(u[1]){for(var P=s.length-1;P>=0;--P)if(s[P]==u[2]){s.length=P;break}if(P<0&&(!d||d==u[2]))return{tag:u[2],from:m(E,_),to:m(h.line,h.ch)}}else s.push(u[2])}}function c(h,d){for(var s=[];;){var u=i(h);if(!u)return;if(u=="selfClose"){l(h);continue}var S=h.line,E=h.ch,_=l(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:m(h.line,h.ch),to:m(S,E)}}}}M.registerHelper("fold","xml",function(h,d){for(var s=new A(h,d.line,0);;){var u=n(s);if(!u||s.line!=d.line)return;var S=r(s);if(!S)return;if(!u[1]&&S!="selfClose"){var E=m(s.line,s.ch),_=a(s,u[2]);return _&&T(_.from,E)>0?{from:E,to:_.from}:null}}}),M.findMatchingTag=function(h,d,s){var u=new A(h,d.line,d.ch,s);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var S=r(u),E=S&&m(u.line,u.ch),_=S&&l(u);if(!S||!_||T(u,d)>0)return;var P={from:m(u.line,u.ch),to:E,tag:_[2]};return S=="selfClose"?{open:P,close:null,at:"open"}:_[1]?{open:c(u,_[2]),close:P,at:"close"}:(u=new A(h,E.line,E.ch,s),{open:P,close:a(u,_[2]),at:"open"})},M.findEnclosingTag=function(h,d,s,u){for(var S=new A(h,d.line,d.ch,s);;){var E=c(S,u);if(!E)break;var _=new A(h,d.line,d.ch,s),P=a(_,E.tag);if(P)return{open:E,close:P}}},M.scanForClosingTag=function(h,d,s,u){var S=new A(h,d.line,d.ch,u?{from:0,to:u}:null);return a(S,s)}})},p5ED:function(k,z,o){"use strict";var M=o("+L6B"),m=o("2/Rp"),T=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),g=o("WmNS"),e=o.n(g),f=o("q1tI"),r=o.n(f),l=o("vHTk"),n=o.n(l),i=o("yEEn"),a=o("ZW9T"),c=o("1vsH"),h=o("V0Rq"),d=o("m3rI");z.a=function(s){var u,S,E,_,P,R,x,w=s.editOffice,v=w===void 0?"view":w,O=s.data,U=s.theme,I=s.type,N=s.filename,V=s.monacoEditor,H=s.className,D=s.style,W=s.close,F=s.onClose,L=s.hasMask,K=s.disabledDownload,te=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),fe=Object(A.a)(te,2),de=fe[0],Ce=fe[1],Oe=Object(f.useState)(""),ce=Object(A.a)(Oe,2),Ee=ce[0],ye=ce[1],ue=Object(f.useState)(),le=Object(A.a)(ue,2),$=le[0],me=le[1],re=window.ENV==="build"?"/react/build":"",ae=d.a.PROXY_SERVER||location.origin,Se,oe=1024*1024,ee=10*oe,J=Object(f.useRef)();(u=O)!==null&&u!==void 0&&u.startsWith("/api")&&I!=="txt"&&(O=d.a.API_SERVER+O),I==="office"&&(Se=Object(c.T)(O).filesize,Se>ee&&(I="other")),N&&V&&(V.filename=N),Object(f.useEffect)(function(){var Te,Ge,qe=(Te=document.cookie)===null||Te===void 0||((Ge=Te.replace(/\s/g,""))===null||Ge===void 0)?void 0:Ge.split(";");qe==null||qe.map(function(ut){var st=ut.split("=");st[0]==="_educoder_session"&&ye(st[1])})},[]),Object(f.useEffect)(function(){I==="office"&&Q()},[I,O]);var Q=function(){var Te=Object(C.a)(e.a.mark(function Ge(){var qe,ut,st;return e.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return console.log("data:",O),qe=O,O.startsWith("http")||(qe=location.origin+qe),ut=new URL(qe).pathname.split("/").pop(),gt.next=6,Object(h.V)({attachment_id:ut});case 6:st=gt.sent,me(st);case 8:case"end":return gt.stop()}},Ge)}));return function(){return Te.apply(this,arguments)}}(),ve=function(){if(O.startsWith("http")||O.startsWith("blob:")){_e();return}Object(c.z)(N||"educoder",O,N)},_e=function(){Object(c.x)(N||"educoder",decodeURIComponent(O))};return r.a.createElement("div",{style:Object(y.a)({},D||{}),className:"".concat(L&&n.a.bgBlack," ").concat(I?n.a.wrp:"hide")},W&&r.a.createElement("div",{className:n.a.close,ref:J},!K&&r.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return J.current}},r.a.createElement("span",{onClick:_e},r.a.createElement("i",{className:"icon-quxiaozhiding"}))),r.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return J.current}},r.a.createElement("span",{className:"",onClick:F},r.a.createElement("i",{className:"icon-guanbi1"})))),r.a.createElement("div",{className:"".concat(n.a[H]," ").concat(H," ").concat(n.a.monaco," ").concat(I==="txt"?"show":"hide")},I==="txt"&&r.a.createElement(a.b,V)),I==="audio"&&r.a.createElement("audio",{src:"".concat(((S=O)===null||S===void 0?void 0:S.indexOf("http://"))>-1||((E=O)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(O),autoPlay:!0}),I==="video"&&r.a.createElement(r.a.Fragment,null,((_=O)===null||_===void 0?void 0:_.indexOf("http"))>-1?r.a.createElement("video",{controls:!0,src:"".concat(O),autoPlay:!0}):r.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(O),autoPlay:!0})),I==="office"&&$&&r.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)}),I==="html"&&r.a.createElement("iframe",{src:O+"&disposition=inline"}),I==="pdf"&&r.a.createElement("iframe",{src:"".concat(re,"/js/pdfview/index.html?url=").concat(O,"&disabledDownload=").concat(!!K)}),I==="image"&&r.a.createElement("img",{src:"".concat(((P=O)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((R=O)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(x=O)!==null&&x!==void 0&&x.startsWith("/api")?"":"data:image/png;base64,").concat(O)}),I==="other"&&r.a.createElement("div",null,r.a.createElement(m.a,{type:"primary",size:"large",onClick:ve},r.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),I==="download"&&r.a.createElement(m.a,{type:"primary",size:"large",onClick:ve},r.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.WordArray,y=T.BlockCipher,C=m.algo,A=[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],g=[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}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=C.DES=y.extend({_doReset:function(){for(var c=this._key,h=c.words,d=[],s=0;s<56;s++){var u=A[s]-1;d[s]=h[u>>>5]>>>31-u%32&1}for(var S=this._subKeys=[],E=0;E<16;E++){for(var _=S[E]=[],P=e[E],s=0;s<24;s++)_[s/6|0]|=d[(g[s]-1+P)%28]<<31-s%6,_[4+(s/6|0)]|=d[28+(g[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]=S[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 u=d[s],S=this._lBlock,E=this._rBlock,_=0,P=0;P<8;P++)_|=f[P][((E^u[P])&r[P])>>>0];this._lBlock=E,this._rBlock=S^_}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}m.DES=y._createHelper(l);var a=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),u=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=l.createEncryptor(b.create(d)),this._des2=l.createEncryptor(b.create(s)),this._des3=l.createEncryptor(b.create(u))},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});m.TripleDES=y._createHelper(a)}(),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 l}),o.d(z,"f",function(){return n}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return a}),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"),m=o("JYp7");const T=!1;let b=null;function y(u){b=u}if(T){const u="__is_disposable_tracked__";y(new class{trackDisposable(S){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{S[u]||console.log(E)},3e3)}setParent(S,E){if(S&&S!==h.None)try{S[u]=!0}catch(_){}}markAsDisposed(S){if(S&&S!==h.None)try{S[u]=!0}catch(E){}}markAsSingleton(S){}})}function C(u){return b==null||b.trackDisposable(u),u}function A(u){b==null||b.markAsDisposed(u)}function g(u,S){b==null||b.setParent(u,S)}function e(u,S){if(!b)return;for(const E of u)b.setParent(E,S)}function f(u){return b==null||b.markAsSingleton(u),u}class r extends Error{constructor(u){super(`Encountered errors while disposing of store. Errors: [${u.join(", ")}]`);this.errors=u}}function l(u){return typeof u.dispose=="function"&&u.dispose.length===0}function n(u){if(m.a.is(u)){let S=[];for(const E of u)if(E)try{E.dispose()}catch(_){S.push(_)}if(S.length===1)throw S[0];if(S.length>1)throw new r(S);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function i(...u){const S=a(()=>n(u));return e(u,S),S}function a(u){const S=C({dispose:Object(M.a)(()=>{A(S),u()})});return S}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,C(this)}dispose(){if(this._isDisposed)return;A(this),this._isDisposed=!0,this.clear()}clear(){try{n(this._toDispose.values())}finally{this._toDispose.clear()}}add(u){if(!u)return u;if(u===this)throw new Error("Cannot register a disposable on itself!");return g(u,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(u),u}}c.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new c,C(this),g(this._store,this)}dispose(){A(this),this._store.dispose()}_register(u){if(u===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(u)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,C(this)}get value(){return this._isDisposed?void 0:this._value}set value(u){var S;if(this._isDisposed||u===this._value)return;(S=this._value)===null||S===void 0||S.dispose(),u&&g(u,this),this._value=u}clear(){this.value=void 0}dispose(){var u;this._isDisposed=!0,A(this),(u=this._value)===null||u===void 0||u.dispose(),this._value=void 0}clearAndLeak(){const u=this._value;return this._value=void 0,u&&g(u,null),u}}class s{constructor(u){this.object=u}dispose(){}}},psGv:function(k,z,o){var M,m;(function(){var T;(function(){"use strict";var A=[,,function(r){function l(a){this.__parent=a,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=[]}l.prototype.clone_empty=function(){var a=new l(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},l.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},l.prototype.has_match=function(a){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(a))return!0;return!1},l.prototype.set_indent=function(a,c){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(a){this.__items.push(a);var c=a.lastIndexOf(`
|
|
|
`);c!==-1?this.__character_count=a.length-c:this.__character_count+=a.length},l.prototype.pop=function(){var a=null;return this.is_empty()||(a=this.__items.pop(),this.__character_count-=a.length),a},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var a="";return this.is_empty()?this.__parent.indent_empty_lines&&(a=this.__parent.get_indent_string(this.__indent_count)):(a=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),a+=this.__items.join("")),a};function n(a,c){this.__cache=[""],this.__indent_size=a.indent_size,this.__indent_string=a.indent_char,a.indent_with_tabs||(this.__indent_string=new Array(a.indent_size+1).join(a.indent_char)),c=c||"",a.indent_level>0&&(c=new Array(a.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}n.prototype.get_indent_size=function(a,c){var h=this.__base_string_length;return c=c||0,a<0&&(h=0),h+=a*this.__indent_size,h+=c,h},n.prototype.get_indent_string=function(a,c){var h=this.__base_string;return c=c||0,a<0&&(a=0,h=""),c+=a*this.__indent_size,this.__ensure_cache(c),h+=this.__cache[c],h},n.prototype.__ensure_cache=function(a){for(;a>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var a=this.__cache.length,c=0,h="";this.__indent_size&&a>=this.__indent_size&&(c=Math.floor(a/this.__indent_size),a-=c*this.__indent_size,h=new Array(c+1).join(this.__indent_string)),a&&(h+=new Array(a+1).join(" ")),this.__cache.push(h)};function i(a,c){this.__indent_cache=new n(a,c),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(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(a,c){return this.__indent_cache.get_indent_string(a,c)},i.prototype.get_indent_size=function(a,c){return this.__indent_cache.get_indent_size(a,c)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(a){return this.is_empty()||!a&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(a){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 a!==`
|
|
|
`&&(h=h.replace(/[\n]/g,a)),h},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(a,c){return a=a||0,c=c||0,this.next_line.set_indent(a,c),this.__lines.length>1?(this.current_line.set_indent(a,c),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(a){for(var c=0;c<a.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(a.whitespace_before),this.current_line.push(a.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(a){this.__add_space_before_token(),this.current_line.push(a),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(a){for(var c=this.__lines.length;a<c;)this.__lines[a]._remove_indent(),a++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(a){for(a=a===void 0?!1:a,this.current_line.trim();a&&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(a,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(a)!==0&&d.item(-1)!==c){this.__lines.splice(h+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},r.exports.Output=i},function(r){function l(n,i,a,c){this.type=n,this.text=i,this.comments_before=null,this.newlines=a||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=l},,,function(r){function l(a,c){this.raw_options=n(a,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"])}l.prototype._get_array=function(a,c){var h=this.raw_options[a],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},l.prototype._get_boolean=function(a,c){var h=this.raw_options[a],d=h===void 0?!!c:!!h;return d},l.prototype._get_characters=function(a,c){var h=this.raw_options[a],d=c||"";return typeof h=="string"&&(d=h.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),d},l.prototype._get_number=function(a,c){var h=this.raw_options[a];c=parseInt(c,10),isNaN(c)&&(c=0);var d=parseInt(h,10);return isNaN(d)&&(d=c),d},l.prototype._get_selection=function(a,c,h){var d=this._get_selection_list(a,c,h);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+a+`' can only be one of the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[a]+"'");return d[0]},l.prototype._get_selection_list=function(a,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(a,h);if(!this._is_valid_selection(d,c))throw new Error("Invalid Option Value: The option '"+a+`' can contain only the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[a]+"'");return d},l.prototype._is_valid_selection=function(a,c){return a.length&&c.length&&!a.some(function(h){return c.indexOf(h)===-1})};function n(a,c){var h={};a=i(a);var d;for(d in a)d!==c&&(h[d]=a[d]);if(c&&a[c])for(d in a[c])h[d]=a[c][d];return h}function i(a){var c={},h;for(h in a){var d=h.replace(/-/g,"_");c[d]=a[h]}return c}r.exports.Options=l,r.exports.normalizeOpts=i,r.exports.mergeOpts=n},,function(r){var l=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 a=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(a=this.__input.charAt(i)),a},n.prototype.__match=function(i,a){i.lastIndex=a;var c=i.exec(this.__input);return c&&!(l&&i.sticky)&&(c.index!==a&&(c=null)),c},n.prototype.test=function(i,a){return a=a||0,a+=this.__position,a>=0&&a<this.__input_length?!!this.__match(i,a):!1},n.prototype.testChar=function(i,a){var c=this.peek(a);return i.lastIndex=0,c!==null&&i.test(c)},n.prototype.match=function(i){var a=this.__match(i,this.__position);return a?this.__position+=a[0].length:a=null,a},n.prototype.read=function(i,a,c){var h="",d;return i&&(d=this.match(i),d&&(h+=d[0])),a&&(d||!i)&&(h+=this.readUntil(a,c)),h},n.prototype.readUntil=function(i,a){var c="",h=this.__position;i.lastIndex=this.__position;var d=i.exec(this.__input);return d?(h=d.index,a&&(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,a){var c=null,h="g";return a&&l&&(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 a=this.__position,c=this.readUntilAfter(i);return this.__position=a,c},n.prototype.lookBack=function(i){var a=this.__position-1;return a>=i.length&&this.__input.substring(a-i.length,a).toLowerCase()===i},r.exports.InputScanner=n},function(r,l,n){var i=n(8).InputScanner,a=n(3).Token,c=n(10).TokenStream,h=n(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(u,S){this._input=new i(u),this._options=S||{},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 u,S=new a(d.START,""),E=null,_=[],P=new c;S.type!==d.EOF;){for(u=this._get_next_token(S,E);this._is_comment(u);)P.add(u),u=this._get_next_token(S,E);P.isEmpty()||(u.comments_before=P,P=new c),u.parent=E,this._is_opening(u)?(_.push(E),E=u):E&&this._is_closing(u,E)&&(u.opened=E,E.closed=u,E=_.pop(),u.parent=E),u.previous=S,S.next=u,this.__tokens.add(u),S=u}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(u,S){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(u){return!1},s.prototype._is_opening=function(u){return!1},s.prototype._is_closing=function(u,S){return!1},s.prototype._create_token=function(u,S){var E=new a(u,S,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return E},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=s,r.exports.TOKEN=d},function(r){function l(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},l.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},l.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},r.exports.TokenStream=l},function(r,l,n){var i=n(12).Pattern;function a(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=""}a.prototype=new i,a.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+"]")},a.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},a.prototype.matching=function(c,h){var d=this._create();return d.__set_whitespace_patterns(c,h),d._update(),d},a.prototype._create=function(){return new a(this._input,this)},a.prototype.__split=function(c,h){c.lastIndex=0;for(var d=0,s=[],u=c.exec(h);u;)s.push(h.substring(d,u.index)),d=u.index+u[0].length,u=c.exec(h);return d<h.length?s.push(h.substring(d,h.length)):s.push(""),s},r.exports.WhitespacePattern=a},function(r){function l(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)}l.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},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.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},l.prototype.until=function(n){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(n),i._update(),i},l.prototype.starting_with=function(n){var i=this._create();return i._starting_pattern=this._input.get_regexp(n,!0),i._update(),i},l.prototype.matching=function(n){var i=this._create();return i._match_pattern=this._input.get_regexp(n,!0),i._update(),i},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},r.exports.Pattern=l},function(r){function l(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")}l.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var a=this.__directive_pattern.exec(n);a;)i[a[1]]=a[2],a=this.__directive_pattern.exec(n);return i},l.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=l},function(r,l,n){var i=n(12).Pattern,a={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({},a),this._excluded=Object.assign({},a),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 a)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},r.exports.TemplatablePattern=c},,,,function(r,l,n){var i=n(19).Beautifier,a=n(20).Options;function c(h,d,s,u){var S=new i(h,d,s,u);return S.beautify()}r.exports=c,r.exports.defaultOptions=function(){return new a}},function(r,l,n){var i=n(20).Options,a=n(2).Output,c=n(21).Tokenizer,h=n(21).TOKEN,d=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,u=function(U,I){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 a(U,I)};u.prototype.current_line_has_match=function(U){return this._output.current_line.has_match(U)},u.prototype.set_space_before_token=function(U,I){this._output.space_before_token=U,this._output.non_breaking_space=I},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(U){this._output.add_raw_token(U)},u.prototype.print_preserved_newlines=function(U){var I=0;U.type!==h.TEXT&&U.previous.type!==h.TEXT&&(I=U.newlines?1:0),this.preserve_newlines&&(I=U.newlines<this.max_preserve_newlines+1?U.newlines:this.max_preserve_newlines+1);for(var N=0;N<I;N++)this.print_newline(N>0);return I!==0},u.prototype.traverse_whitespace=function(U){return U.whitespace_before||U.newlines?(this.print_preserved_newlines(U)||(this._output.space_before_token=!0),!0):!1},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(U){this._output.add_new_line(U)},u.prototype.print_token=function(U){U.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(U.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(U){return U=this.indent_level+(U||0),U<1?"":this._output.get_indent_string(U)};var S=function(U){for(var I=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&&(I=N.next.next.text);break}N=N.next}return I},E=function(U,I){var N=null,V=null;return I.closed?(U==="script"?N="text/javascript":U==="style"&&(N="text/css"),N=S(I)||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,I){return I.indexOf(U)!==-1}function P(U,I,N){this.parent=U||null,this.tag=I?I.tag_name:"",this.indent_level=N||0,this.parser_token=I||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 I=new P(this._current_frame,U,this._printer.indent_level);this._current_frame=I},R.prototype._try_pop_frame=function(U){var I=null;return U&&(I=U.parser_token,this._printer.indent_level=U.indent_level,this._current_frame=U.parent),I},R.prototype._get_frame=function(U,I){for(var N=this._current_frame;N&&!(U.indexOf(N.tag)!==-1);){if(I&&I.indexOf(N.tag)!==-1){N=null;break}N=N.parent}return N},R.prototype.try_pop=function(U,I){var N=this._get_frame([U],I);return this._try_pop_frame(N)},R.prototype.indent_to_tag=function(U){var I=this._get_frame(U);I&&(this._printer.indent_level=I.indent_level)};function x(U,I,N,V){this._source_text=U||"",I=I||{},this._js_beautify=N,this._css_beautify=V,this._tag_stack=null;var H=new i(I,"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,I=this._options.eol;this._options.eol==="auto"&&(I=`
|
|
|
`,U&&d.test(U)&&(I=U.match(d)[0])),U=U.replace(s,`
|
|
|
`);var N=U.match(/^[\t ]*/)[0],V={text:"",type:""},H=new w,D=new u(this._options,N),W=new c(U,this._options).tokenize();this._tag_stack=new R(D);for(var F=null,L=W.next();L.type!==h.EOF;)L.type===h.TAG_OPEN||L.type===h.COMMENT?(F=this._handle_tag_open(D,L,H,V),H=F):L.type===h.ATTRIBUTE||L.type===h.EQUALS||L.type===h.VALUE||L.type===h.TEXT&&!H.tag_complete?F=this._handle_inside_tag(D,L,H,W):L.type===h.TAG_CLOSE?F=this._handle_tag_close(D,L,H):L.type===h.TEXT?F=this._handle_text(D,L,H):D.add_raw_token(L),V=F,L=W.next();var K=D._output.get_code(I);return K},x.prototype._handle_tag_close=function(U,I,N){var V={text:I.text,type:I.type};return U.alignment_size=0,N.tag_complete=!0,U.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),N.is_unformatted?U.add_raw_token(I):(N.tag_start_char==="<"&&(U.set_space_before_token(I.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&N.has_wrapped_attrs&&U.print_newline(!1)),U.print_token(I)),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,I,N,V){var H=N.has_wrapped_attrs,D={text:I.text,type:I.type};if(U.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),N.is_unformatted)U.add_raw_token(I);else if(N.tag_start_char==="{"&&I.type===h.TEXT)U.print_preserved_newlines(I)?(I.newlines=0,U.add_raw_token(I)):U.print_token(I);else{if(I.type===h.ATTRIBUTE?(U.set_space_before_token(!0),N.attr_count+=1):(I.type===h.EQUALS||I.type===h.VALUE&&I.previous.type===h.EQUALS)&&U.set_space_before_token(!1),I.type===h.ATTRIBUTE&&N.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(U.traverse_whitespace(I),H=H||I.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,L=0,K;do{if(K=V.peek(L),K.type===h.ATTRIBUTE){F=!1;break}L+=1}while(L<4&&K.type!==h.EOF&&K.type!==h.TAG_CLOSE);W=!F}W&&(U.print_newline(!1),H=!0)}U.print_token(I),H=H||U.previous_token_wrapped(),N.has_wrapped_attrs=H}return D},x.prototype._handle_text=function(U,I,N){var V={text:I.text,type:"TK_CONTENT"};return N.custom_beautifier_name?this._print_custom_beatifier_text(U,I,N):N.is_unformatted||N.is_content_unformatted?U.add_raw_token(I):(U.traverse_whitespace(I),U.print_token(I)),V},x.prototype._print_custom_beatifier_text=function(U,I,N){var V=this;if(I.text!==""){var H=I.text,D,W=1,F="",L="";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(Oe,ce){var Ee=new x(Oe,ce,V._js_beautify,V._css_beautify);return Ee.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 te=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(H);if(!te){U.add_raw_token(I);return}F=K+te[1]+`
|
|
|
`,H=te[4],te[5]&&(L=K+te[5]),H=H.replace(/\n[ \t]*$/,""),(te[2]||te[3].indexOf(`
|
|
|
`)!==-1)&&(te=te[3].match(/[ \t]+$/),te&&(I.whitespace_before=te[0]))}if(H)if(D){var fe=function(){this.eol=`
|
|
|
`};fe.prototype=this._options.raw_options;var de=new fe;H=D(K+H,de)}else{var Ce=I.whitespace_before;Ce&&(H=H.replace(new RegExp(`
|
|
|
(`+Ce+")?","g"),`
|
|
|
`)),H=K+H.replace(/\n/g,`
|
|
|
`+K)}F&&(H?H=F+H+`
|
|
|
`+L:H=F+L),U.print_newline(!1),H&&(I.text=H,I.whitespace_before="",I.newlines=0,U.add_raw_token(I),U.print_newline(!0))}},x.prototype._handle_tag_open=function(U,I,N,V){var H=this._get_tag_open_token(I);return(N.is_unformatted||N.is_content_unformatted)&&!N.is_empty_element&&I.type===h.TAG_OPEN&&I.text.indexOf("</")===0?(U.add_raw_token(I),H.start_tag_token=this._tag_stack.try_pop(H.tag_name)):(U.traverse_whitespace(I),this._set_tag_position(U,I,H,N,V),H.is_inline_element||U.set_wrap_point(),U.print_token(I)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(H.alignment_size=I.text.length+1),!H.tag_complete&&!H.is_unformatted&&(U.alignment_size=H.alignment_size),H};var w=function(U,I){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="",!I)this.tag_complete=!0;else{var N;this.tag_start_char=I.text[0],this.text=I.text,this.tag_start_char==="<"?(N=I.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=I.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(I.text.startsWith("{{#>")||I.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&I.next!==null?this.tag_check=I.next.text.split(" ")[0]:this.tag_check=I.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),I.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||I.closed&&I.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 I=new w(this._tag_stack.get_parser_token(),U);return I.alignment_size=this._options.wrap_attributes_indent_size,I.is_end_tag=I.is_end_tag||_(I.tag_check,this._options.void_elements),I.is_empty_element=I.tag_complete||I.is_start_tag&&I.is_end_tag,I.is_unformatted=!I.tag_complete&&_(I.tag_check,this._options.unformatted),I.is_content_unformatted=!I.is_empty_element&&_(I.tag_check,this._options.content_unformatted),I.is_inline_element=_(I.tag_name,this._options.inline)||I.tag_name.includes("-")||I.tag_start_char==="{",I},x.prototype._set_tag_position=function(U,I,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,I)))),_(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,I){I.parent&&U._output.just_added_newline()&&!((I.is_inline_element||I.is_unformatted)&&I.parent.is_inline_element)&&(I.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"],O=["a","audio","del","ins","map","noscript","video"];x.prototype._do_optional_end_element=function(U){var I=null;if(U.is_empty_element||!U.is_start_tag||!U.parent)return;if(U.tag_name==="body")I=I||this._tag_stack.try_pop("head");else if(U.tag_name==="li")I=I||this._tag_stack.try_pop("li",["ol","ul"]);else if(U.tag_name==="dd"||U.tag_name==="dt")I=I||this._tag_stack.try_pop("dt",["dl"]),I=I||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||O.indexOf(N.tag_name)===-1)&&(I=I||this._tag_stack.try_pop("p"))}else U.tag_name==="rp"||U.tag_name==="rt"?(I=I||this._tag_stack.try_pop("rt",["ruby","rtc"]),I=I||this._tag_stack.try_pop("rp",["ruby","rtc"])):U.tag_name==="optgroup"?I=I||this._tag_stack.try_pop("optgroup",["select"]):U.tag_name==="option"?I=I||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):U.tag_name==="colgroup"?I=I||this._tag_stack.try_pop("caption",["table"]):U.tag_name==="thead"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"])):U.tag_name==="tbody"||U.tag_name==="tfoot"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("thead",["table"]),I=I||this._tag_stack.try_pop("tbody",["table"])):U.tag_name==="tr"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(U.tag_name==="th"||U.tag_name==="td")&&(I=I||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),I=I||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return U.parent=this._tag_stack.get_parser_token(),I},r.exports.Beautifier=x},function(r,l,n){var i=n(6).Options;function a(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"])}a.prototype=new i,r.exports.Options=a},function(r,l,n){var i=n(9).Tokenizer,a=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:a.START,RAW:a.RAW,EOF:a.EOF},u=new c(/<\!--/,/-->/),S=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)}};S.prototype=new i,S.prototype._is_comment=function(E){return!1},S.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},S.prototype._is_closing=function(E,_){return E.type===s.TAG_CLOSE&&_&&((E.text===">"||E.text==="/>")&&_.text[0]==="<"||E.text==="}}"&&_.text[0]==="{"&&_.text[1]==="{")},S.prototype._reset=function(){this._current_tag_name=""},S.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)},S.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=u.get_directives(P),R&&R.ignore==="start"&&(P+=u.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(_=this._create_token(s.COMMENT,P),_.directives=R)}return _},S.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 _},S.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},S.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},S.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},S.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 w=this._input.next();E==='"'?w+=this.__patterns.double_quote.read():w+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,w)}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},S.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)},S.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 w=this._read_comment_or_cdata(E);if(w)return w.type=s.TEXT,w;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},S.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,_)},r.exports.Tokenizer=S,r.exports.TOKEN=s}],g={};function e(r){var l=g[r];if(l!==void 0)return l.exports;var n=g[r]={exports:{}};return A[r](n,n.exports,e),n.exports}var f=e(18);T=f})();var b=T;if(!0)!(M=[o,o("6UM0"),o("TXwP")],m=function(A){var g=o("6UM0"),e=o("TXwP");return{html_beautify:function(f,r){return b(f,r,g.js_beautify,e.css_beautify)}}}.apply(z,M),m!==void 0&&(k.exports=m));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,m,T){k.exports=z=m(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.AnsiX923={pad:function(m,T){var b=m.sigBytes,y=T*4,C=y-b%y,A=b+C-1;m.clamp(),m.words[A>>>2]|=C<<24-A%4*8,m.sigBytes+=C},unpad:function(m){var T=m.words[m.sigBytes-1>>>2]&255;m.sigBytes-=T}},M.pad.Ansix923})},qM6L:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.WordArray,y=m.enc,C=y.Utf16=y.Utf16BE={stringify:function(g){for(var e=g.words,f=g.sigBytes,r=[],l=0;l<f;l+=2){var n=e[l>>>2]>>>16-l%4*8&65535;r.push(String.fromCharCode(n))}return r.join("")},parse:function(g){for(var e=g.length,f=[],r=0;r<e;r++)f[r>>>1]|=g.charCodeAt(r)<<16-r%2*16;return b.create(f,e*2)}};y.Utf16LE={stringify:function(g){for(var e=g.words,f=g.sigBytes,r=[],l=0;l<f;l+=2){var n=A(e[l>>>2]>>>16-l%4*8&65535);r.push(String.fromCharCode(n))}return r.join("")},parse:function(g){for(var e=g.length,f=[],r=0;r<e;r++)f[r>>>1]|=A(g.charCodeAt(r)<<16-r%2*16);return b.create(f,e*2)}};function A(g){return g<<8&4278255360|g>>>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,m,T){k.exports=z=m(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 m=M.lib.BlockCipherMode.extend();function T(C){if((C>>24&255)===255){var A=C>>16&255,g=C>>8&255,e=C&255;A===255?(A=0,g===255?(g=0,e===255?e=0:++e):++g):++A,C=0,C+=A<<16,C+=g<<8,C+=e}else C+=1<<24;return C}function b(C){return(C[0]=T(C[0]))===0&&(C[1]=T(C[1])),C}var y=m.Encryptor=m.extend({processBlock:function(C,A){var g=this._cipher,e=g.blockSize,f=this._iv,r=this._counter;f&&(r=this._counter=f.slice(0),this._iv=void 0),b(r);var l=r.slice(0);g.encryptBlock(l,0);for(var n=0;n<e;n++)C[A+n]^=l[n]}});return m.Decryptor=y,m}(),M.mode.CTRGladman})},"rAM+":function(k,z,o){"use strict";o.d(z,"a",function(){return m});var M=o("Qw5x");function m(T,b){var y;if(typeof Symbol=="undefined"||T[Symbol.iterator]==null){if(Array.isArray(T)||(y=Object(M.a)(T))||b&&T&&typeof T.length=="number"){y&&(T=y);var C=0,A=function(){};return{s:A,n:function(){return C>=T.length?{done:!0}:{done:!1,value:T[C++]}},e:function(l){throw l},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,e=!1,f;return{s:function(){y=T[Symbol.iterator]()},n:function(){var l=y.next();return g=l.done,l},e:function(l){e=!0,f=l},f:function(){try{!g&&y.return!=null&&y.return()}finally{if(e)throw f}}}}},rHrb:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.CopyToClipboard=void 0;var M=T(o("q1tI")),m=T(o("+QRC"));function T(s){return s&&s.__esModule?s:{default:s}}function b(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(S){return typeof S}:b=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},b(s)}function y(s,u){var S=Object.keys(s);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(s);u&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(s,_).enumerable})),S.push.apply(S,E)}return S}function C(s){for(var u=1;u<arguments.length;u++){var S=arguments[u]!=null?arguments[u]:{};u%2?y(S,!0).forEach(function(E){h(s,E,S[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(S)):y(S).forEach(function(E){Object.defineProperty(s,E,Object.getOwnPropertyDescriptor(S,E))})}return s}function A(s,u){if(s==null)return{};var S=g(s,u),E,_;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(s);for(_=0;_<P.length;_++){if(E=P[_],u.indexOf(E)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,E))continue;S[E]=s[E]}}return S}function g(s,u){if(s==null)return{};var S={},E=Object.keys(s),_,P;for(P=0;P<E.length;P++){if(_=E[P],u.indexOf(_)>=0)continue;S[_]=s[_]}return S}function e(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function f(s,u){for(var S=0;S<u.length;S++){var E=u[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}function r(s,u,S){return u&&f(s.prototype,u),S&&f(s,S),s}function l(s,u){return u&&(b(u)==="object"||typeof u=="function")?u:i(s)}function n(s){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},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 a(s,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(u&&u.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),u&&c(s,u)}function c(s,u){return c=Object.setPrototypeOf||function(E,_){return E.__proto__=_,E},c(s,u)}function h(s,u,S){return u in s?Object.defineProperty(s,u,{value:S,enumerable:!0,configurable:!0,writable:!0}):s[u]=S,s}var d=function(s){a(u,s);function u(){var S,E;e(this,u);for(var _=arguments.length,P=new Array(_),R=0;R<_;R++)P[R]=arguments[R];return E=l(this,(S=n(u)).call.apply(S,[this].concat(P))),h(i(E),"onClick",function(x){var w=E.props,v=w.text,O=w.onCopy,U=w.children,I=w.options,N=M.default.Children.only(U),V=(0,m.default)(v,I);O&&O(v,V),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(x)}),E}return r(u,[{key:"render",value:function(){var E=this.props,_=E.text,P=E.onCopy,R=E.options,x=E.children,w=A(E,["text","onCopy","options","children"]),v=M.default.Children.only(x);return M.default.cloneElement(v,C({},w,{onClick:this.onClick}))}}]),u}(M.default.PureComponent);z.CopyToClipboard=d,h(d,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(k,z){const o=/[&<>"']/,M=/[&<>"']/g,m=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},y=R=>b[R];function C(R,x){if(x){if(o.test(R))return R.replace(M,y)}else if(m.test(R))return R.replace(T,y);return R}const A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(R){return R.replace(A,(x,w)=>(w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""))}const e=/(^|[^\[])\^/g;function f(R,x){R=R.source||R,x=x||"";const w={replace:(v,O)=>(O=O.source||O,O=O.replace(e,"$1"),R=R.replace(v,O),w),getRegex:()=>new RegExp(R,x)};return w}const r=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function n(R,x,w){if(R){let v;try{v=decodeURIComponent(g(w)).replace(r,"").toLowerCase()}catch(O){return null}if(v.indexOf("javascript:")===0||v.indexOf("vbscript:")===0||v.indexOf("data:")===0)return null}x&&!l.test(w)&&(w=d(x,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(v){return null}return w}const i={},a=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(R,x){i[" "+R]||(a.test(R)?i[" "+R]=R+"/":i[" "+R]=E(R,"/",!0)),R=i[" "+R];const w=R.indexOf(":")===-1;return x.substring(0,2)==="//"?w?x:R.replace(c,"$1")+x:x.charAt(0)==="/"?w?x:R.replace(h,"$1")+x:R+x}const s={exec:function(){}};function u(R){let x=1,w,v;for(;x<arguments.length;x++){w=arguments[x];for(v in w)Object.prototype.hasOwnProperty.call(w,v)&&(R[v]=w[v])}return R}function S(R,x){const w=R.replace(/\|/g,(U,I,N)=>{let V=!1,H=I;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),v=w.split(/ \|/);let O=0;if(v.length>x)v.splice(x);else for(;v.length<x;)v.push("");for(;O<v.length;O++)v[O]=v[O].trim().replace(/\\\|/g,"|");return v}function E(R,x,w){const v=R.length;if(v===0)return"";let O=0;for(;O<v;){const U=R.charAt(v-O-1);if(U===x&&!w)O++;else if(U!==x&&w)O++;else break}return R.substr(0,v-O)}function _(R,x){if(R.indexOf(x[1])===-1)return-1;const w=R.length;let v=0,O=0;for(;O<w;O++)if(R[O]==="\\")O++;else if(R[O]===x[0])v++;else if(R[O]===x[1]&&(v--,v<0))return O;return-1}function P(R){R&&R.sanitize&&!R.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}k.exports={escape:C,unescape:g,edit:f,cleanUrl:n,resolveUrl:d,noopTest:s,merge:u,splitCells:S,rtrim:E,findClosingBracket:_,checkSanitizeDeprecation:P}},ruvs:function(k,z,o){"use strict";o.d(z,"b",function(){return ye});var M=o("2qtc"),m=o("kLXV"),T=o("9og8"),b=o("rAM+"),y=o("tJVT"),C=o("PpiC"),A=o("k1fw"),g=o("5NDa"),e=o("5rEg"),f=o("B9cy"),r=o("Ol7k"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),a=o.n(i),c=o("Ty5D"),h=o("55Ip"),d=o("9kvl"),s=o("THsj"),u=o.n(s),S=o("xrsn"),E=o.n(S),_=o("1Sn+"),P=o("qVdP"),R=o("jsC+"),x=o("miYZ"),w=o("tsqr"),v=o("lUTK"),O=o("BvKs"),U=o("vToQ"),I=o.n(U),N=o("xKgJ"),V=o("jb+D"),H=o("m3rI"),D=o("1vsH"),W=function(re){var ae,Se=RegExp("(^| )"+re+"=([^;]+)(;|$)");return(ae=document.cookie.match(Se))?decodeURIComponent(ae[2]):null},F=function(re){var ae=new Date;ae.setTime(ae.getTime()-1);var Se=W(re);Se!=null&&(document.cookie=re+"="+Se+";expires="+ae.toGMTString())},L;(function(me){me.Classrooms="classrooms",me.Shixuns="shixuns",me.Paths="paths",me.Projects="projects",me.Videos="videos",me.Topics="topics"})(L||(L={}));var K=function(re){var ae,Se,oe,ee,J,Q,ve,_e,Te,Ge,qe,ut=re.homePage,st=re.user,ft=re.globalSetting,gt=re.loading,Ve=re.dispatch,ke=re.shixunHomeworks,dt=re.location,Bt=re.payload,vt=Bt===void 0?{}:Bt,Rt=Object(C.a)(re,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),ot=(ae=(((Se=ft.setting)===null||Se===void 0?void 0:Se.navbar)||[]).find(function(_t){return _t.link==="/".concat(L.Classrooms)}))===null||ae===void 0?void 0:ae.hidden,Je=(oe=(((ee=ft.setting)===null||ee===void 0?void 0:ee.navbar)||[]).find(function(_t){return _t.link==="/".concat(L.Shixuns)}))===null||oe===void 0?void 0:oe.hidden,et=(J=(((Q=ft.setting)===null||Q===void 0?void 0:Q.navbar)||[]).find(function(_t){return _t.link==="/".concat(L.Paths)}))===null||J===void 0?void 0:J.hidden,Me=((ve=st.userInfo)===null||ve===void 0?void 0:ve.admin)||((_e=st.userInfo)===null||_e===void 0?void 0:_e.business)||((Te=st.userInfo)===null||Te===void 0?void 0:Te.is_shixun_marker)||((Ge=st.userInfo)===null||Ge===void 0?void 0:Ge.is_teacher)||((qe=st.userInfo)===null||qe===void 0?void 0:qe.user_identity)!=="\u5B66\u751F",Be=function(){return Object(D.r)()?a.a.createElement(O.a,{className:"".concat(I.a.rightMenu," ").concat(I.a.menuWrap)},a.a.createElement(O.a.Item,null,a.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406"))):a.a.createElement(O.a,{className:"".concat(I.a.rightMenu," ").concat(I.a.menuWrap)},a.a.createElement(O.a.Item,null,a.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Ve({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:a.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")),a.a.createElement(O.a.Item,{className:I.a.exit},a.a.createElement("a",{onClick:Object(T.a)(n.a.mark(function Ft(){var qt;return n.a.wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.next=2,Object(V.c)({});case 2:qt=At.sent,(qt==null?void 0:qt.status)===1&&(Ve({type:"user/getUserInfo",payload:Object(A.a)({},vt)}),Ve({type:"user/getNavigationInfo",payload:Object(A.a)({},vt)}),F("autologin_trustie"),F("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),w.b.success(qt==null?void 0:qt.message),d.d.replace("/"));case 4:case"end":return At.stop()}},Ft)}))},"\u9000\u51FA")))};if(Object(N.p)()){var Xe,Ke;return a.a.createElement(R.a,{className:"".concat(I.a.height67),overlay:Be,placement:"bottomRight"},a.a.createElement("section",null,a.a.createElement("aside",null,a.a.createElement("div",{className:ke.actionTabs.type===1?I.a.classromediv:""},a.a.createElement("img",{className:"".concat(I.a.userPic," current ml15"),src:"".concat(H.a===null||H.a===void 0?void 0:H.a.IMG_SERVER,"/images/").concat((Xe=st.userInfo)===null||Xe===void 0?void 0:Xe.image_url),alt:"",onClick:function(){var Ft;return d.d.push(Object(D.r)()?"/account/profile":"/users/".concat((Ft=st.userInfo)===null||Ft===void 0?void 0:Ft.login,"/classrooms"))}}),Object(D.r)()&&a.a.createElement("span",{className:"ml10 font16"},(Ke=st.userInfo)===null||Ke===void 0?void 0:Ke.username)))))}else{var $e;return a.a.createElement("div",{className:"font15 ".concat(ft.isIlearning?I.a.login:"")},a.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Ve({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!(($e=ft.setting)!==null&&$e!==void 0&&$e.close_register)&&a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:"ml5 mr5"},"|"),a.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},te=Object(d.a)(function(me){var re=me.homePage,ae=me.loading,Se=me.user,oe=me.globalSetting,ee=me.shixunHomeworks;return{homePage:re,user:Se,globalSetting:oe,shixunHomeworks:ee,loading:ae.models.index}})(K),fe=o("498V"),de=o.n(fe),Ce=o("wd/R"),Oe=o.n(Ce),ce=r.a.Header,Ee=e.a.Search;function ye(){var me,re,ae=window.location.pathname,Se=ae.split("/"),oe={};return Se[1]=="classrooms"&&Se.length>3&&!((me=Se[4])!==null&&me!==void 0&&me.includes("newgold"))&&!((re=Se[5])!==null&&re!==void 0&&re.includes("newgold"))&&Se[2]!=="coursesId"&&(oe.course_id=Se[2]),Se[1]==="shixuns"&&Se.length>3&&(oe.objective_type="shixun",oe.objective_id=Se[2]),Se[1]==="paths"&&Se.length>3&&(oe.objective_type="path",oe.objective_id=Se[2]),Object(A.a)(Object(A.a)({},oe),{school:1})}var ue=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],le=function(re){var ae,Se,oe=re.homePage,ee=re.user,J=re.globalSetting,Q=re.loading,ve=re.dispatch,_e=re.location,Te=re.isLogin,Ge=Te===void 0?!1:Te,qe=re.shixunHomeworks,ut=Object(C.a)(re,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),st=Object(c.g)(),ft=Object(i.useState)(!1),gt=Object(y.a)(ft,2),Ve=gt[0],ke=gt[1],dt=Object(i.useState)(""),Bt=Object(y.a)(dt,2),vt=Bt[0],Rt=Bt[1],ot=Object(i.useState)(!1),Je=Object(y.a)(ot,2),et=Je[0],Me=Je[1],Be=ye(),Xe=Object(i.useState)("0"),Ke=Object(y.a)(Xe,2),$e=Ke[0],_t=Ke[1],Ft=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var tt;return ee!=null&&(tt=ee.userInfo)!==null&&tt!==void 0&&tt.now_time&&(Ft.current.id=setInterval(function(){_t(function(Ut){if(Ut==="0"){var Pt;return Oe()(ee==null||((Pt=ee.userInfo)===null||Pt===void 0)?void 0:Pt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return Oe()(Ut,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(Ft.current.id)}},[ee==null||((ae=ee.userInfo)===null||ae===void 0)?void 0:ae.now_time]),Object(i.useEffect)(function(){ve({type:"user/getNavigationInfo",payload:Object(A.a)({},Be)})},[J.name]),Object(i.useEffect)(function(){qe.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(ue!=null&&ue.includes(_e==null?void 0:_e.pathname)||(_e==null?void 0:_e.pathname.indexOf("/classrooms"))===0||ve({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[_e.pathname]),Object(i.useEffect)(function(){qe.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(qe.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[qe.actionTabs.key]),Object(i.useEffect)(function(){if(J!=null&&J.setting){var tt,Ut,Pt=J==null||((tt=J.setting)===null||tt===void 0||((Ut=tt.navbar)===null||Ut===void 0))?void 0:Ut.filter(function(sn){return!(sn!=null&&sn.hidden)&&!(Object(N.m)()&&sn.link==="/paperlibrary")}),an=Object(b.a)(Pt),nn;try{for(an.s();!(nn=an.n()).done;){var rn=nn.value;rn.subitem&&(rn.subitem=rn.subitem.filter(function(sn){return!(sn!=null&&sn.hidden)&&!(Object(N.m)()&&sn.link==="/paperlibrary")}))}}catch(sn){an.e(sn)}finally{an.f()}var Tn=!1;Pt==null||Pt.map(function(sn,un){var Jn,kn,Yn,tr="/"+((Jn=_e.pathname)===null||Jn===void 0||((kn=Jn.split("/"))===null||kn===void 0)?void 0:kn[1]);if(sn.link===tr&&(Rt(sn==null?void 0:sn.link),Object(D.X)(sn==null?void 0:sn.name),at(Fe(un,{name:sn==null?void 0:sn.name,link:sn==null?void 0:sn.link},Pt)),Tn=!0),sn!=null&&(Yn=sn.subitem)!==null&&Yn!==void 0&&Yn.length){var pr;sn==null||((pr=sn.subitem)===null||pr===void 0)||pr.map(function(ar){ar.link===tr&&(Rt(ar==null?void 0:ar.link),Object(D.X)(ar==null?void 0:ar.name),at(Fe(un,{name:ar==null?void 0:ar.name,link:ar==null?void 0:ar.link},Pt)),Tn=!0)})}}),Tn||at(Pt)}},[J==null?void 0:J.setting,ee]);var qt=Object(i.useMemo)(function(){var tt;if(J!=null&&(tt=J.setting)!==null&&tt!==void 0&&tt.nav_logo_url){var Ut;return"".concat(H.a.IMG_SERVER,"/").concat(J==null||((Ut=J.setting)===null||Ut===void 0)?void 0:Ut.nav_logo_url)}else return"".concat(H.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[J==null||((Se=J.setting)===null||Se===void 0)?void 0:Se.nav_logo_url]);function bn(tt){st.push("/search?value="+tt)}var At=function(){return Ve?a.a.createElement("div",{onBlur:function(){setTimeout(function(){ke(!1)},300)}},a.a.createElement(Ee,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:bn,autoFocus:!0})):a.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){st.push("/search?value=")}})},Et=Object(i.useState)([]),je=Object(y.a)(Et,2),rt=je[0],at=je[1],Ae=function(){var tt=Object(T.a)(n.a.mark(function Ut(Pt,an){var nn,rn,Tn,sn,un,Jn,kn,Yn;return n.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(!((Pt==null?void 0:Pt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){pr.next=6;break}return pr.next=3,Object(V.j)();case 3:return Tn=pr.sent,Tn!=null&&(rn=Tn.data)!==null&&rn!==void 0&&rn.engineer_url?Tn!=null&&(sn=Tn.data)!==null&&sn!==void 0&&(un=sn.engineer_url)!==null&&un!==void 0&&un.includes("http")?Object(D.S)(Tn==null||((Jn=Tn.data)===null||Jn===void 0)?void 0:Jn.engineer_url):st.push(Tn==null||((kn=Tn.data)===null||kn===void 0)?void 0:kn.engineer_url):(Tn==null?void 0:Tn.status)!=401&&(J!=null&&(Yn=J.setting)!==null&&Yn!==void 0&&Yn.authority_qrcode_url?Me(!0):Me(!1)),pr.abrupt("return");case 6:Pt!=null&&(nn=Pt.link)!==null&&nn!==void 0&&nn.includes("http")?Object(D.S)(Pt==null?void 0:Pt.link):st.push(Pt==null?void 0:Pt.link),(Pt==null?void 0:Pt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&ve({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:a.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 pr.stop()}},Ut)}));return function(Pt,an){return tt.apply(this,arguments)}}(),Fe=function(Ut,Pt,an){var nn=an.slice();return nn[Ut]&&(nn[Ut].name=Pt.name,nn[Ut].link=Pt.link),nn||[]};if(J.showHeader&&J.showHeaderFooter){var Tt,yt,Ot,Lt;return a.a.createElement(r.a,{className:"".concat(J.isIlearning?E.a["header-iearning"]:E.a.header," ").concat(J.showHeaderFixed?E.a.headerFixed:"")},a.a.createElement(ce,{className:"header"},a.a.createElement("section",{className:E.a["edu-menu"]},(!!J.isIlearning||!(J!=null&&(Tt=J.setting)!==null&&Tt!==void 0&&Tt.main_site)&&!!(J!=null&&(yt=J.setting)!==null&&yt!==void 0&&yt.navbar))&&a.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){ve({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},a.a.createElement("img",{className:E.a.logo,title:(Ot=J.setting)===null||Ot===void 0?void 0:Ot.name,src:qt||de.a})),a.a.createElement("ul",{className:"".concat(E.a.menu," ").concat(Object(D.r)()&&"ml0")},a.a.createElement("img",{src:u.a,className:E.a.logo_style}),Object(D.r)()&&a.a.createElement("li",null,a.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(D.r)()&&J.setting&&rt.map(function(tt,Ut){var Pt,an,nn,rn,Tn;return a.a.createElement("li",{key:Ut,className:!(tt!=null&&(Pt=tt.subitem)!==null&&Pt!==void 0&&Pt.length)&&vt===(tt==null?void 0:tt.link)||tt!=null&&(an=tt.subitem)!==null&&an!==void 0&&an.some(function(sn){return vt===(sn==null?void 0:sn.link)})?E.a.actived:""},a.a.createElement("div",{onClick:function(){return Ae(tt,Ut)},className:qe.actionTabs.type===4?"".concat(E.a.name," ").concat(E.a.classromediv):E.a.name},a.a.createElement("span",null,function(){var sn=tt==null?void 0:tt.name;{var un;tt==null||((un=tt.subitem)===null||un===void 0)||un.map(function(Jn,kn){return Jn.link===_e.pathname&&(sn=Jn.name),Jn})}return sn}()),(tt==null||((nn=tt.subitem)===null||nn===void 0)?void 0:nn.length)>0&&a.a.createElement("i",{className:"iconfont icon-zhankai4"})),(tt==null||((rn=tt.subitem)===null||rn===void 0)?void 0:rn.length)>0&&a.a.createElement("div",{className:E.a.dropDown},tt==null||((Tn=tt.subitem)===null||Tn===void 0)?void 0:Tn.map(function(sn,un){return a.a.createElement("div",{className:E.a.subName,onClick:function(){return Ae(sn,Ut)},key:Ut+"-"+un},!!un&&a.a.createElement("div",{className:E.a.line}),a.a.createElement("aside",{className:"font16 c-black"},sn.name),a.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},sn.content))})))})),a.a.createElement("div",{className:"search-bar",style:{flex:J.isIlearning?"initial":"1 0 auto"}},!Ge&&a.a.createElement(te,{payload:Be}))),a.a.createElement(m.a,{centered:!0,destroyOnClose:!0,visible:et,title:"\u63D0\u793A",width:"500px",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Me(!1)},onCancel:function(){return Me(!1)}},a.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},a.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"),a.a.createElement("img",{src:H.a.IMG_SERVER+(J==null||((Lt=J.setting)===null||Lt===void 0)?void 0:Lt.authority_qrcode_url),width:200,height:200})))))}else return a.a.createElement(a.a.Fragment,null)},$=z.a=Object(d.a)(function(me){var re=me.homePage,ae=me.loading,Se=me.user,oe=me.globalSetting,ee=me.shixunHomeworks;return{homePage:re,user:Se,globalSetting:oe,loading:ae.models.index,shixunHomeworks:ee}})(le)},sLOW:function(k,z,o){"use strict";var M=o("iQDF"),m=o("+eQT"),T=o("Awhp"),b=o("KrTs"),y=o("O3gP"),C=o("lrIw"),A=o("7Kak"),g=o("9yH6"),e=o("sRBo"),f=o("kaz8"),r=o("+L6B"),l=o("2/Rp"),n=o("oBTY"),i=o("miYZ"),a=o("tsqr"),c=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),u=o("PpiC"),S=o("WmNS"),E=o.n(S),_=o("q1tI"),P=o.n(_),R=o("9kvl"),x=o("Z0Lh"),w=o.n(x),v=o("9ZNV"),O=o("NLgs"),U=o("wd/R"),I=o.n(U),N=o("L+Ii"),V=o.n(N),H=function(L){if(!L)return L;var K=L.split(":");if(K[1]=="00"||K[1]=="30")return L;var te=parseInt(K[1]);if(te<30||te==60)return[K[0],"30"].join(":");if(te<60){var fe=[K[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",Ce=I()(fe,de);return Ce.add(1,"hours"),Ce.format(de)}return L},D="YYYY-MM-DD HH:mm",W=function(L){var K,te,fe,de,Ce,Oe,ce,Ee,ye=L.shixunsDetail,ue=L.globalSetting,le=L.loading,$=L.user,me=L.dispatch,re=Object(u.a)(L,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(_.useRef)(),Se=Object(_.useState)(),oe=Object(s.a)(Se,2),ee=oe[0],J=oe[1],Q=Object(_.useState)(),ve=Object(s.a)(Q,2),_e=ve[0],Te=ve[1],Ge=Object(_.useState)([]),qe=Object(s.a)(Ge,2),ut=qe[0],st=qe[1],ft=Object(_.useState)([]),gt=Object(s.a)(ft,2),Ve=gt[0],ke=gt[1],dt=Object(_.useState)(""),Bt=Object(s.a)(dt,2),vt=Bt[0],Rt=Bt[1],ot=Object(_.useState)(),Je=Object(s.a)(ot,2),et=Je[0],Me=Je[1],Be=Object(_.useState)(),Xe=Object(s.a)(Be,2),Ke=Xe[0],$e=Xe[1],_t=(K=$.userInfo)===null||K===void 0||((te=K.shixun)===null||te===void 0)?void 0:te.editable;Object(_.useEffect)(function(){var je,rt;ae.current=(je=location.pathname)===null||je===void 0||((rt=je.split("/"))===null||rt===void 0)?void 0:rt[2],Ft()},[]),Object(_.useEffect)(function(){var je,rt,at,Ae,Fe,Tt,yt,Ot,Lt,tt;if(!ye.setting)return;J((je=ye.setting)===null||je===void 0||((rt=je.shixun)===null||rt===void 0)?void 0:rt.can_copy),Te((at=ye.setting)===null||at===void 0||((Ae=at.shixun)===null||Ae===void 0)?void 0:Ae.use_scope),Me(!!((Fe=ye.setting)!==null&&Fe!==void 0&&(Tt=Fe.shixun)!==null&&Tt!==void 0&&Tt.opening_time)),$e((yt=ye.setting)===null||yt===void 0||((Ot=yt.shixun)===null||Ot===void 0)?void 0:Ot.opening_time),st((Lt=ye.setting)===null||Lt===void 0||((tt=Lt.shixun)===null||tt===void 0)?void 0:tt.scope_partment)},[ye.setting]);var Ft=function(){var je=Object(d.a)(E.a.mark(function rt(at){var Ae;return E.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:at}});case 2:Ae=Tt.sent,Ae&&ke(Ae.shools_name||[]);case 4:case"end":return Tt.stop()}},rt)}));return function(at){return je.apply(this,arguments)}}(),qt=function(){var je=Object(d.a)(E.a.mark(function rt(){var at,Ae,Fe,Tt,yt,Ot,Lt;return E.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Ut.t0=Ut.sent,Ut.t0){Ut.next=5;break}Ut.t0={};case 5:Lt=Ut.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)},!!((at=Lt.subjects)!==null&&at!==void 0&&at.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Ae=Lt.subjects)===null||Ae===void 0||((Fe=Ae.splice(0,2))===null||Fe===void 0)?void 0:Fe.map(function(Pt){return"\u300A".concat(Pt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},Lt==null?void 0:Lt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((Tt=Lt.courses)!==null&&Tt!==void 0&&Tt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(yt=Lt.courses)===null||yt===void 0||((Ot=yt.splice(0,2))===null||Ot===void 0)?void 0:Ot.map(function(Pt){return"\u300A".concat(Pt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},Lt==null?void 0:Lt.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 Pt=Object(d.a)(E.a.mark(function nn(){var rn;return E.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:rn=sn.sent,rn.status===1&&(a.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return sn.stop()}},nn)}));function an(){return Pt.apply(this,arguments)}return an}()});case 7:case"end":return Ut.stop()}},rt)}));return function(){return je.apply(this,arguments)}}(),bn=function(){if(Object(O.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},At=function(rt){if(ut.includes(rt)){a.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Rt(null),st([].concat(Object(n.a)(ut),[rt]))},Et=function(){var je=Object(d.a)(E.a.mark(function rt(){var at;return E.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!(et&&!Ke)){Fe.next=3;break}return a.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Fe.abrupt("return");case 3:if(!(_e===1&&!ut.length)){Fe.next=6;break}return a.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Fe.abrupt("return");case 6:return Fe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:ut,shixun:{can_copy:ee,use_scope:_e,opening_time:Ke}}});case 8:at=Fe.sent,at.status!==-1&&(a.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 Fe.stop()}},rt)}));return function(){return je.apply(this,arguments)}}();return P.a.createElement("section",{className:V.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(ye==null||((fe=ye.detail)===null||fe===void 0)?void 0:fe.shixun_status)!==2?P.a.createElement(l.a,{danger:!0,onClick:qt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(l.a,{danger:!0,onClick:bn},"\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:ee,onChange:function(rt){return J(rt.target.checked)},disabled:!_t}),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||((Ce=ye.detail)===null||Ce===void 0?void 0:Ce.public)===2)&&((Oe=ye.setting)===null||Oe===void 0||((ce=Oe.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((Ee=ye.detail)===null||Ee===void 0?void 0:Ee.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(g.a.Group,{value:_e,onChange:function(rt){return Te(rt.target.value)},disabled:!_t},P.a.createElement(g.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(g.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:vt,onChange:function(rt){Rt(rt),Ft(rt)},disabled:!_t,onSelect:At,options:Ve==null?void 0:Ve.map(function(je){return{value:je}})}),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement("div",{className:"mt10"},ut==null?void 0:ut.map(function(je){return _t?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return st(ut.filter(function(at){return at!==je}))}},P.a.createElement(l.a,{type:"primary",ghost:!0},je)):P.a.createElement(l.a,{type:"primary",ghost:!0,className:"mr20"},je)}))))),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:et,onChange:function(rt){return Me(rt.target.checked)},disabled:!_t}),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")),et&&P.a.createElement(m.a,{className:"".concat(V.a.dataPicker," mt10"),format:D,locale:w.a,disabled:!_t,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(rt){return rt&&rt<I()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:Ke&&I()(Ke,D),onChange:function(rt,at){return $e(H(at))}}))),P.a.createElement(v.a,{okText:"\u4FDD\u5B58",hasOkBtn:_t,loading:le.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return R.d.push("/shixuns/".concat(ae.current,"/challenges"))},onOk:Et}))};z.a=Object(R.a)(function(F){var L=F.shixunsDetail,K=F.loading,te=F.globalSetting,fe=F.user;return{shixunsDetail:L,globalSetting:te,user:fe,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 A});var M=o("U8pU"),m="RC_TABLE_KEY";function T(g){return g==null?[]:Array.isArray(g)?g:[g]}function b(g,e){if(!e&&typeof e!="number")return g;for(var f=T(e),r=g,l=0;l<f.length;l+=1){if(!r)return null;var n=f[l];r=r[n]}return r}function y(g){var e=[],f={};return g.forEach(function(r){for(var l=r||{},n=l.key,i=l.dataIndex,a=n||T(i).join("-")||m;f[a];)a="".concat(a,"_next");f[a]=!0,e.push(a)}),e}function C(){var g={};function e(n,i){i&&Object.keys(i).forEach(function(a){var c=i[a];c&&Object(M.a)(c)==="object"?(n[a]=n[a]||{},e(n[a],c)):n[a]=c})}for(var f=arguments.length,r=new Array(f),l=0;l<f;l++)r[l]=arguments[l];return r.forEach(function(n){e(g,n)}),g}function A(g){return g!=null}},sboe:function(k,z,o){"use strict";o.d(z,"a",function(){return T});var M=o("q1tI"),m=o.n(M),T=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"),m=o("1OyB"),T=o("vuIU"),b=o("Ji7U"),y=o("LK+K"),C=o("q1tI"),A=o.n(C),g=o("m+aA"),e=o("Zm9Q"),f=o("Kwbf"),r=o("c+Xe"),l=o("bdgK"),n="rc-observer-key",i=function(a){Object(b.a)(h,a);var c=Object(y.a)(h);function h(){var d;return Object(m.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 u=d.props.onResize,S=s[0].target,E=S.getBoundingClientRect(),_=E.width,P=E.height,R=S.offsetWidth,x=S.offsetHeight,w=Math.floor(_),v=Math.floor(P);if(d.state.width!==w||d.state.height!==v||d.state.offsetWidth!==R||d.state.offsetHeight!==x){var O={width:w,height:v,offsetWidth:R,offsetHeight:x};d.setState(O),u&&Promise.resolve().then(function(){u(Object(M.a)(Object(M.a)({},O),{},{offsetWidth:R,offsetHeight:x}))})}},d.setChildNode=function(s){d.childNode=s},d}return Object(T.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 u=Object(g.a)(this.childNode||this),S=u!==this.currentElement;S&&(this.destroyObserver(),this.currentElement=u),!this.resizeObserver&&u&&(this.resizeObserver=new l.default(this.onResize),this.resizeObserver.observe(u))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,u=Object(e.a)(s);if(u.length>1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var S=u[0];if(C.isValidElement(S)&&Object(r.c)(S)){var E=S.ref;u[0]=C.cloneElement(S,{ref:Object(r.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.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 A}),o.d(z,"g",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"e",function(){return r}),o.d(z,"a",function(){return l}),o.d(z,"f",function(){return a}),o.d(z,"c",function(){return c});var M=o("Vhoy"),m=o("MI8n"),T=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),C=o("nEHx");const A=Object(b.c)("themeService");var g;(function(h){function d(s){return s&&typeof s=="object"&&typeof s.id=="string"}h.isThemeColor=d})(g||(g={}));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"||g.isThemeColor(P.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${M.a.iconNameExpression}(?:${M.a.iconModifierExpression})?)\\)$`);function u(P){const R=s.exec(P);if(!R)return;let[,x]=R;return{id:x}}h.fromString=u;function S(P,R){let x=P.id;const w=x.lastIndexOf("~");return w!==-1&&(x=x.substring(0,w)),R&&(x=`${x}~${R}`),{id:x}}h.modify=S;function E(P,R){var x,w;return P.id===R.id&&((x=P.color)===null||x===void 0?void 0:x.id)===((w=R.color)===null||w===void 0?void 0:w.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 r(h){switch(h){case C.a.DARK:return"vs-dark";case C.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const l={ThemingContribution:"base.contributions.theming"};class n{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new m.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(T.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new n;y.a.add(l.ThemingContribution,i);function a(h){return i.onColorThemeChange(h)}class c extends T.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,m,T){k.exports=z=m(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(M){return function(){var m=M,T=m.x64,b=T.Word,y=T.WordArray,C=m.algo,A=C.SHA512,g=C.SHA384=A.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=A._doFinalize.call(this);return e.sigBytes-=16,e}});m.SHA384=A._createHelper(g),m.HmacSHA384=A._createHmacHelper(g)}(),M.SHA384})},uGxW:function(k,z,o){(function(M,m,T){k.exports=z=m(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,m){k.exports=m()})(this,function(){"use strict";function M(m,T,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=m||[],C=[],A=0;do{var g=y.filter(function(e){return T(e,A)})[0];if(!g)break;C.push(g),y=g[b.childrenKeyName]||[],A+=1}while(y.length>0);return C}return M})},ulZh:function(k,z,o){typeof window!="undefined"&&function(m,T){k.exports=T()}(this,function(){return function(M){var m={};function T(b){if(m[b])return m[b].exports;var y=m[b]={i:b,l:!1,exports:{}};return M[b].call(y.exports,y,y.exports,T),y.l=!0,y.exports}return T.m=M,T.c=m,T.d=function(b,y,C){T.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:C})},T.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},T.t=function(b,y){if(y&1&&(b=T(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var C=Object.create(null);if(T.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var A in b)T.d(C,A,function(g){return b[g]}.bind(null,A));return C},T.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return T.d(y,"a",y),y},T.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(M,m,T){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(y=!1));function A(r,l,n){this.fn=r,this.context=l,this.once=n||!1}function g(r,l,n,i,a){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new A(n,i||r,a),h=y?y+l:l;return r._events[h]?r._events[h].fn?r._events[h]=[r._events[h],c]:r._events[h].push(c):(r._events[h]=c,r._eventsCount++),r}function e(r,l){--r._eventsCount===0?r._events=new C:delete r._events[l]}function f(){this._events=new C,this._eventsCount=0}f.prototype.eventNames=function(){var l=[],n,i;if(this._eventsCount===0)return l;for(i in n=this._events)b.call(n,i)&&l.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(n)):l},f.prototype.listeners=function(l){var n=y?y+l:l,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var a=0,c=i.length,h=new Array(c);a<c;a++)h[a]=i[a].fn;return h},f.prototype.listenerCount=function(l){var n=y?y+l:l,i=this._events[n];return i?i.fn?1:i.length:0},f.prototype.emit=function(l,n,i,a,c,h){var d=y?y+l:l;if(!this._events[d])return!1;var s=this._events[d],u=arguments.length,S,E;if(s.fn){s.once&&this.removeListener(l,s.fn,void 0,!0);switch(u){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,a),!0;case 5:return s.fn.call(s.context,n,i,a,c),!0;case 6:return s.fn.call(s.context,n,i,a,c,h),!0}for(E=1,S=new Array(u-1);E<u;E++)S[E-1]=arguments[E];s.fn.apply(s.context,S)}else{var _=s.length,P;for(E=0;E<_;E++){s[E].once&&this.removeListener(l,s[E].fn,void 0,!0);switch(u){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,a);break;default:if(!S)for(P=1,S=new Array(u-1);P<u;P++)S[P-1]=arguments[P];s[E].fn.apply(s[E].context,S)}}}return!0},f.prototype.on=function(l,n,i){return g(this,l,n,i,!1)},f.prototype.once=function(l,n,i){return g(this,l,n,i,!0)},f.prototype.removeListener=function(l,n,i,a){var c=y?y+l:l;if(!this._events[c])return this;if(!n)return e(this,c),this;var h=this._events[c];if(h.fn)h.fn===n&&(!a||h.once)&&(!i||h.context===i)&&e(this,c);else{for(var d=0,s=[],u=h.length;d<u;d++)(h[d].fn!==n||a&&!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(l){var n;return l?(n=y?y+l:l,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,m,T){(function(b){var y=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,C=/^([^\/?#]*)([^]*)$/,A=/(?:\/|^)\.(?=\/)/g,g=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(f,r,l){if(l=l||{},f=f.trim(),r=r.trim(),!r){if(!l.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(r);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return l.alwaysNormalize?(i.path=e.normalizePath(i.path),e.buildURLFromParts(i)):r;var a=e.parseURL(f);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&a.path[0]!=="/"){var c=C.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var h={scheme:a.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(h.netLoc=a.netLoc,i.path[0]!=="/"))if(!i.path)h.path=a.path,i.params||(h.params=a.params,i.query||(h.query=a.query));else{var d=a.path,s=d.substring(0,d.lastIndexOf("/")+1)+i.path;h.path=e.normalizePath(s)}return h.path===null&&(h.path=l.alwaysNormalize?e.normalizePath(i.path):i.path),e.buildURLFromParts(h)},parseURL:function(f){var r=y.exec(f);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(A,"");f.length!==(f=f.replace(g,"")).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,m,T){function b(l){var n={};function i(c){if(n[c])return n[c].exports;var h=n[c]={i:c,l:!1,exports:{}};return l[c].call(h.exports,h,h.exports,i),h.l=!0,h.exports}i.m=l,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 a=i(i.s=ENTRY_MODULE);return a.default||a}var y="[\\.|\\-|\\+|\\w|/|@]+",C="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+y+").*?\\)";function A(l){return(l+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function g(l){return!isNaN(1*l)}function e(l,n,i){var a={};a[i]=[];var c=n.toString(),h=c.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!h)return a;for(var d=h[1],s=new RegExp("(\\\\n|\\W)"+A(d)+C,"g"),u;u=s.exec(c);){if(u[3]==="dll-reference")continue;a[i].push(u[3])}for(s=new RegExp("\\("+A(d)+'\\("(dll-reference\\s('+y+'))"\\)\\)'+C,"g");u=s.exec(c);)l[u[2]]||(a[i].push(u[1]),l[u[2]]=T(u[1]).m),a[u[2]]=a[u[2]]||[],a[u[2]].push(u[4]);for(var S=Object.keys(a),E=0;E<S.length;E++)for(var _=0;_<a[S[E]].length;_++)g(a[S[E]][_])&&(a[S[E]][_]=1*a[S[E]][_]);return a}function f(l){var n=Object.keys(l);return n.reduce(function(i,a){return i||l[a].length>0},!1)}function r(l,n){for(var i={main:[n]},a={main:[]},c={main:{}};f(i);)for(var h=Object.keys(i),d=0;d<h.length;d++){var s=h[d],u=i[s],S=u.pop();if(c[s]=c[s]||{},c[s][S]||!l[s][S])continue;c[s][S]=!0,a[s]=a[s]||[],a[s].push(S);for(var E=e(l,l[s][S],s),_=Object.keys(E),P=0;P<_.length;P++)i[_[P]]=i[_[P]]||[],i[_[P]]=i[_[P]].concat(E[_[P]])}return a}M.exports=function(l,n){n=n||{};var i={main:T.m},a=n.all?{main:Object.keys(i.main)}:r(i,l),c="";Object.keys(a).filter(function(S){return S!=="main"}).forEach(function(S){for(var E=0;a[S][E];)E++;a[S].push(E),i[S][E]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",c=c+"var "+S+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(E))+")({"+a[S].map(function(_){return""+JSON.stringify(_)+": "+i[S][_].toString()}).join(",")+`});
|
|
|
`}),c=c+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(l))+")({"+a.main.map(function(S){return""+JSON.stringify(S)+": "+i.main[S].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),u=new window.Worker(s);return u.objectURL=s,u}},"./src/config.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"hlsDefaultConfig",function(){return P}),T.d(m,"mergeConfig",function(){return x}),T.d(m,"enableStreamingMode",function(){return w});var b=T("./src/controller/abr-controller.ts"),y=T("./src/controller/audio-stream-controller.ts"),C=T("./src/controller/audio-track-controller.ts"),A=T("./src/controller/subtitle-stream-controller.ts"),g=T("./src/controller/subtitle-track-controller.ts"),e=T("./src/controller/buffer-controller.ts"),f=T("./src/controller/timeline-controller.ts"),r=T("./src/controller/cap-level-controller.ts"),l=T("./src/controller/fps-controller.ts"),n=T("./src/controller/eme-controller.ts"),i=T("./src/controller/cmcd-controller.ts"),a=T("./src/utils/xhr-loader.ts"),c=T("./src/utils/fetch-loader.ts"),h=T("./src/utils/cues.ts"),d=T("./src/utils/mediakeys-helper.ts"),s=T("./src/utils/logger.ts");function u(){return u=Object.assign||function(v){for(var O=1;O<arguments.length;O++){var U=arguments[O];for(var I in U)Object.prototype.hasOwnProperty.call(U,I)&&(v[I]=U[I])}return v},u.apply(this,arguments)}function S(v,O){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(v);O&&(I=I.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,I)}return U}function E(v){for(var O=1;O<arguments.length;O++){var U=arguments[O]!=null?arguments[O]:{};O%2?S(Object(U),!0).forEach(function(I){_(v,I,U[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(U)):S(Object(U)).forEach(function(I){Object.defineProperty(v,I,Object.getOwnPropertyDescriptor(U,I))})}return v}function _(v,O,U){return O in v?Object.defineProperty(v,O,{value:U,enumerable:!0,configurable:!0,writable:!0}):v[O]=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:a.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:b.default,bufferController:e.default,capLevelController:r.default,fpsController:l.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:A.SubtitleStreamController,subtitleTrackController:g.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,O){if((O.liveSyncDurationCount||O.liveMaxLatencyDurationCount)&&(O.liveSyncDuration||O.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(O.liveMaxLatencyDurationCount!==void 0&&(O.liveSyncDurationCount===void 0||O.liveMaxLatencyDurationCount<=O.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(O.liveMaxLatencyDuration!==void 0&&(O.liveSyncDuration===void 0||O.liveMaxLatencyDuration<=O.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return u({},v,O)}function w(v){var O=v.loader;if(O!==c.default&&O!==a.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,m,T){"use strict";T.r(m);var b=T("./src/polyfills/number.ts"),y=T("./src/utils/ewma-bandwidth-estimator.ts"),C=T("./src/events.ts"),A=T("./src/utils/buffer-helper.ts"),g=T("./src/errors.ts"),e=T("./src/types/loader.ts"),f=T("./src/utils/logger.ts");function r(i,a){for(var c=0;c<a.length;c++){var h=a[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function l(i,a,c){return a&&r(i.prototype,a),c&&r(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 a=i.prototype;return a.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)},a.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)},a.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},a.onFragLoading=function(h,d){var s=d.frag;if(s.type===e.PlaylistLevelType.MAIN&&!this.timer){var u;this.fragCurrent=s,this.partCurrent=(u=d.part)!=null?u:null,this.timer=self.setInterval(this.onCheck,100)}},a.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)},a._abandonRulesCheck=function(){var h=this.fragCurrent,d=this.partCurrent,s=this.hls,u=s.autoLevelEnabled,S=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(!u||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 w=s.levels,v=s.minAutoLevel,O=w[h.level],U=_.total||Math.max(_.loaded,Math.round(P*O.maxBitrate/8)),I=Math.max(1,_.bwEstimate?_.bwEstimate/8:_.loaded*1e3/R),N=(U-_.loaded)/I,V=E.currentTime,H=(A.BufferHelper.bufferInfo(E,V,S.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=w[W].maxBitrate;if(D=P*F/(8*.8*I),D<H)break}if(D>=N)return;var L=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)(L)?(L/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:_})},a.onFragLoaded=function(h,d){var s=d.frag,u=d.part;if(s.type===e.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(s.sn)){var S=u?u.stats:s.stats,E=u?u.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)+S.loaded,R=(_.loaded?_.loaded.duration:0)+E;_.loaded={bytes:P,duration:R},_.realBitrate=Math.round(8*P/R)}if(s.bitrateTest){var x={stats:S,frag:s,part:u,id:s.type};this.onFragBuffered(C.Events.FRAG_BUFFERED,x),s.bitrateTest=!1}}},a.onFragBuffered=function(h,d){var s=d.frag,u=d.part,S=u?u.stats:s.stats;if(S.aborted)return;if(s.type!==e.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=S.parsing.end-S.loading.start;this.bwEstimator.sample(E,S.loaded),S.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},a.onError=function(h,d){switch(d.details){case g.ErrorDetails.FRAG_LOAD_ERROR:case g.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},a.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},a.getNextABRAutoLevel=function(){var h=this.fragCurrent,d=this.partCurrent,s=this.hls,u=s.maxAutoLevel,S=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,w=this.bwEstimator?this.bwEstimator.getEstimate():S.abrEwmaDefaultEstimate,v=(A.BufferHelper.bufferInfo(_,R,S.maxBufferHole).end-R)/x,O=this.findBestLevel(w,E,u,v,S.abrBandWidthFactor,S.abrBandWidthUpFactor);if(O>=0)return O;f.logger.trace((v?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var U=P?Math.min(P,S.maxStarvationDelay):S.maxStarvationDelay,I=S.abrBandWidthFactor,N=S.abrBandWidthUpFactor;if(!v){var V=this.bitrateTestDelay;if(V){var H=P?Math.min(P,S.maxLoadingDelay):S.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"),I=N=1}}return O=this.findBestLevel(w,E,u,v+U,I,N),Math.max(O,0)},a.findBestLevel=function(h,d,s,u,S,E){for(var _,P=this.fragCurrent,R=this.partCurrent,x=this.lastLoadedFragLevel,w=this.hls.levels,v=w[x],O=!!(v!=null&&(_=v.details)!==null&&_!==void 0&&_.live),U=v==null?void 0:v.codecSet,I=R?R.duration:P?P.duration:0,N=s;N>=d;N--){var V=w[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)||I,W=void 0;N<=x?W=S*h:W=E*h;var F=w[N].maxBitrate,L=F*D/W;if(f.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+N+"/"+Math.round(W)+"/"+F+"/"+D+"/"+u+"/"+L),W>F&&(!L||O&&!this.bitrateTestDelay||L<u))return N}return-1},l(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}();m.default=n},"./src/controller/audio-stream-controller.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/polyfills/number.ts"),y=T("./src/controller/base-stream-controller.ts"),C=T("./src/events.ts"),A=T("./src/utils/buffer-helper.ts"),g=T("./src/controller/fragment-tracker.ts"),e=T("./src/types/level.ts"),f=T("./src/types/loader.ts"),r=T("./src/loader/fragment.ts"),l=T("./src/demux/chunk-cache.ts"),n=T("./src/demux/transmuxer-interface.ts"),i=T("./src/types/transmuxer.ts"),a=T("./src/controller/fragment-finders.ts"),c=T("./src/utils/discontinuities.ts"),h=T("./src/errors.ts"),d=T("./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 w in x)Object.prototype.hasOwnProperty.call(x,w)&&(P[w]=x[w])}return P},s.apply(this,arguments)}function u(P,R){P.prototype=Object.create(R.prototype),P.prototype.constructor=P,S(P,R)}function S(P,R){return S=Object.setPrototypeOf||function(w,v){return w.__proto__=v,w},S(P,R)}var E=100,_=function(P){u(R,P);function R(w,v){var O;return O=P.call(this,w,v,"[audio-stream-controller]")||this,O.videoBuffer=null,O.videoTrackCC=-1,O.waitingVideoCC=-1,O.audioSwitch=!1,O.trackId=-1,O.waitingData=null,O.mainDetails=null,O.bufferFlushed=!1,O._registerListeners(),O}var 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,O){var U=O.frag,I=O.id,N=O.initPTS;if(I==="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 O=this.lastCurrentTime;this.stopLoad(),this.setInterval(E),this.fragLoadError=0,O>0&&v===-1?(this.log("Override startPosition with lastCurrentTime @"+O.toFixed(3)),this.state=y.State.IDLE):(this.loadedmetadata=!1,this.state=y.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=v,this.tick()},x.doTick=function(){switch(this.state){case y.State.IDLE:this.doTickIdle();break;case y.State.WAITING_TRACK:{var v,O=this.levels,U=this.trackId,I=O==null||((v=O[U])===null||v===void 0)?void 0:v.details;if(I){if(this.waitForCdnTuneIn(I))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,L=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 te=L.flush(),fe={frag:W,part:F,payload:te,networkDetails:null};this._handleFragmentLoadProgress(fe),K&&P.prototype._handleFragmentLoadComplete.call(this,fe)}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(),Ce=A.BufferHelper.bufferInfo(this.mediaBuffer,de,this.config.maxBufferHole),Oe=Object(a.fragmentWithinToleranceTest)(Ce.end,this.config.maxFragLookUpTolerance,W);Oe<0&&(d.logger.log("Waiting fragment cc ("+W.cc+") @ "+W.start+" cancelled because another fragment at "+Ce.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 O=this.mediaBuffer?this.mediaBuffer:v,U=O.buffered;!this.loadedmetadata&&U.length&&(this.loadedmetadata=!0),this.lastCurrentTime=v.currentTime},x.doTickIdle=function(){var v,O,U=this.hls,I=this.levels,N=this.media,V=this.trackId,H=U.config;if(!I||!I[V])return;if(!N&&(this.startFragRequested||!H.startFragPrefetch))return;var D=I[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,r.ElementaryStreamTypes.AUDIO,f.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,f.PlaylistLevelType.AUDIO);if(F===null)return;var L=F.len,K=this.getMaxBufferLength(),te=this.audioSwitch;if(L>=K&&!te)return;if(!te&&this._streamEnded(F,W)){U.trigger(C.Events.BUFFER_EOS,{type:"audio"}),this.state=y.State.ENDED;return}var fe=W.fragments,de=fe[0].start,Ce=F.end;if(te){var Oe=this.getLoadPosition();Ce=Oe,W.PTSKnown&&Oe<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(Ce,W);if(!ce){this.bufferFlushed=!0;return}((v=ce.decryptdata)===null||v===void 0?void 0:v.keyFormat)==="identity"&&!((O=ce.decryptdata)!==null&&O!==void 0&&O.key)?this.loadKey(ce,W):this.loadFragment(ce,W,Ce)},x.getMaxBufferLength=function(){var v=P.prototype.getMaxBufferLength.call(this),O=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,f.PlaylistLevelType.MAIN);return O===null?v:Math.max(v,O.len)},x.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},x.onAudioTracksUpdated=function(v,O){var U=O.audioTracks;this.resetTransmuxer(),this.levels=U.map(function(I){return new e.Level(I)})},x.onAudioTrackSwitching=function(v,O){var U=!!O.url;this.trackId=O.id;var I=this.fragCurrent;I!=null&&I.loader&&I.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,O){this.mainDetails=O.details},x.onAudioTrackLoaded=function(v,O){var U,I=this.levels,N=O.details,V=O.id;if(!I){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=I[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 O,U=v.frag,I=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 L=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 te=this.initPTS[U.cc],fe=(O=U.initSegment)===null||O===void 0?void 0:O.data;if(te!==void 0){var de=!1,Ce=I?I.index:-1,Oe=Ce!==-1,ce=new i.ChunkMetadata(U.level,U.sn,U.stats.chunkCount,N.byteLength,Ce,Oe);K.push(N,fe,L,"",U,I,F.totalduration,de,ce,te)}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 Ee=this.waitingData=this.waitingData||{frag:U,part:I,cache:new l.default,complete:!1},ye=Ee.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,O){var U=O.tracks.audio;U&&(this.mediaBuffer=U.buffer),O.tracks.video&&(this.videoBuffer=O.tracks.video.buffer)},x.onFragBuffered=function(v,O){var U=O.frag,I=O.part;if(U.type!==f.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(U)){this.warn("Fragment "+U.sn+(I?" p: "+I.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,I)},x.onError=function(v,O){switch(O.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,O);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=O.fatal?y.State.ERROR:y.State.IDLE,this.warn(O.details+" while loading frag, switching to "+this.state+" state"));break;case h.ErrorDetails.BUFFER_FULL_ERROR:if(O.parent==="audio"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var U=!0,I=this.getFwdBufferInfo(this.mediaBuffer,f.PlaylistLevelType.AUDIO);I&&I.len>.5&&(U=!this.reduceMaxBufferLength(I.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,O){var U=O.type;U===r.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},x._handleTransmuxComplete=function(v){var O,U="audio",I=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,L=N.text,K=N.id3,te=N.initSegment;if(this.fragContextChanged(D))return;if(this.state=y.State.PARSING,this.audioSwitch&&F&&this.completeAudioSwitch(),te!=null&&te.tracks&&(this._bufferInitSegment(te.tracks,D,V),I.trigger(C.Events.FRAG_PARSING_INIT_SEGMENT,{frag:D,id:U,tracks:te.tracks})),F){var fe=F.startPTS,de=F.endPTS,Ce=F.startDTS,Oe=F.endDTS;W&&(W.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:fe,endPTS:de,startDTS:Ce,endDTS:Oe}),D.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,fe,de,Ce,Oe),this.bufferFragmentData(F,D,W,V)}if(K!=null&&(O=K.samples)!==null&&O!==void 0&&O.length){var ce=s({frag:D,id:U},K);I.trigger(C.Events.FRAG_PARSING_METADATA,ce)}if(L){var Ee=s({frag:D,id:U},L);I.trigger(C.Events.FRAG_PARSING_USERDATA,Ee)}},x._bufferInitSegment=function(v,O,U){if(this.state!==y.State.PARSING)return;v.video&&delete v.video;var I=v.audio;if(!I)return;I.levelCodec=I.codec,I.id="audio",this.log("Init audio buffer, container:"+I.container+", codecs[parsed]=["+I.codec+"]"),this.hls.trigger(C.Events.BUFFER_CODECS,v);var N=I.initSegment;if(N!=null&&N.byteLength){var V={type:"audio",frag:O,part:null,chunkMeta:U,parent:O.type,data:N};this.hls.trigger(C.Events.BUFFER_APPENDING,V)}this.tick()},x.loadFragment=function(v,O,U){var I=this.fragmentTracker.getState(v);this.fragCurrent=v,(this.audioSwitch||I===g.FragmentState.NOT_LOADED||I===g.FragmentState.PARTIAL)&&(v.sn==="initSegment"?this._loadInitSegment(v):O.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,O,U)))},x.completeAudioSwitch=function(){var v=this.hls,O=this.media,U=this.trackId;O&&(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);m.default=_},"./src/controller/audio-track-controller.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/events.ts"),y=T("./src/errors.ts"),C=T("./src/controller/base-playlist-controller.ts"),A=T("./src/types/loader.ts");function g(n,i){for(var a=0;a<i.length;a++){var c=i[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,c.key,c)}}function e(n,i,a){return i&&g(n.prototype,i),a&&g(n,a),n}function f(n,i){n.prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i)}function r(n,i){return r=Object.setPrototypeOf||function(c,h){return c.__proto__=h,c},r(n,i)}var l=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 a=i.prototype;return a.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)},a.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)},a.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,n.prototype.destroy.call(this)},a.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},a.onManifestParsed=function(h,d){this.tracks=d.audioTracks||[]},a.onAudioTrackLoaded=function(h,d){var s=d.id,u=d.details,S=this.tracksInGroup[s];if(!S){this.warn("Invalid audio track id "+s);return}var E=S.details;S.details=d.details,this.log("audioTrack "+s+" loaded ["+u.startSN+"-"+u.endSN+"]"),s===this.trackId&&(this.retryCount=0,this.playlistLoaded(s,d,E))},a.onLevelLoading=function(h,d){this.switchLevel(d.level)},a.onLevelSwitching=function(h,d){this.switchLevel(d.level)},a.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 u=this.tracks.filter(function(E){return!s||E.groupId===s});this.selectDefaultTrack&&!u.some(function(E){return E.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=u;var S={audioTracks:u};this.log("Updating audio tracks, "+u.length+' track(s) found in "'+s+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,S),this.selectInitialTrack()}},a.onError=function(h,d){if(n.prototype.onError.call(this,h,d),d.fatal||!d.context)return;d.context.type===A.PlaylistContextType.AUDIO_TRACK&&d.context.id===this.trackId&&d.context.groupId===this.groupId&&this.retryLoadingOrFail(d)},a.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 u=d[h],S=u.id,E=u.groupId,_=E===void 0?"":E,P=u.name,R=u.type,x=u.url;if(this.trackId=h,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:S,groupId:_,name:P,type:R,url:x}),u.details&&!u.details.live)return;var w=this.switchParams(u.url,s==null?void 0:s.details);this.loadPlaylist(w)},a.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}))},a.findTrackId=function(h){for(var d=this.tracksInGroup,s=0;s<d.length;s++){var u=d[s];if((!this.selectDefaultTrack||u.default)&&(!h||h===u.name))return u.id}return-1},a.loadPlaylist=function(h){var d=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(d)){var s=d.id,u=d.groupId,S=d.url;if(h)try{S=h.addDirectives(S)}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:S,id:s,groupId:u,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);m.default=l},"./src/controller/base-playlist-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return e});var b=T("./src/polyfills/number.ts"),y=T("./src/types/level.ts"),C=T("./src/controller/level-helper.ts"),A=T("./src/utils/logger.ts"),g=T("./src/errors.ts"),e=function(){function f(l,n){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=A.logger.log.bind(A.logger,n+":"),this.warn=A.logger.warn.bind(A.logger,n+":"),this.hls=l}var r=f.prototype;return r.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},r.onError=function(n,i){i.fatal&&i.type===g.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},r.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},r.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},r.stopLoad=function(){this.canLoad=!1,this.clearTimer()},r.switchParams=function(n,i){var a=i==null?void 0:i.renditionReports;if(a)for(var c=0;c<a.length;c++){var h=a[c],d=""+h.URI;if(d===n.substr(-d.length)){var s=parseInt(h["LAST-MSN"]),u=parseInt(h["LAST-PART"]);if(i&&this.hls.config.lowLatencyMode){var S=Math.min(i.age-i.partTarget,i.targetduration);u!==void 0&&S>i.partTarget&&(u+=1)}if(Object(b.isFiniteNumber)(s))return new y.HlsUrlParameters(s,Object(b.isFiniteNumber)(u)?u:void 0,y.HlsSkip.No)}}},r.loadPlaylist=function(n){},r.shouldLoadTrack=function(n){return this.canLoad&&n&&!!n.url&&(!n.details||n.details.live)},r.playlistLoaded=function(n,i,a){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||a!=null&&a.live){if(h.reloaded(a),a&&this.log("live playlist "+n+" "+(h.advanced?"REFRESHED "+h.lastPartSn+"-"+h.lastPartIndex:"MISSED")),a&&h.fragments.length>0&&Object(C.mergeDetails)(a,h),!this.canLoad||!h.live)return;var u,S=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,w=x!==-1,v=P===R,O=_?0:x;w?(S=v?R+1:P,E=v?O:x+1):S=R+1;var U=h.age,I=U+h.ageHeader,N=Math.min(I-h.partTarget,h.targetduration*1.5);if(N>0){if(a&&N>a.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+a.tuneInGoal+" to: "+N+" with playlist age: "+h.age),N=0;else{var V=Math.floor(N/h.targetduration);if(S+=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(u=this.getDeliveryDirectives(h,i.deliveryDirectives,S,E),_||!v){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(h,i.deliveryDirectives,S,E);var D=Object(C.computeReloadInterval)(h,d);S!==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(u)},D)}else this.clearTimer()},r.getDeliveryDirectives=function(n,i,a,c){var h=Object(y.getSkipValue)(n,a);return i!=null&&i.skip&&n.deltaUpdateFailed&&(a=i.msn,c=i.part,h=y.HlsSkip.No),new y.HlsUrlParameters(a,c,h)},r.retryLoadingOrFail=function(n){var i=this,a=this.hls.config,c=this.retryCount<a.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)*a.levelLoadingRetryDelay,a.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,m,T){"use strict";T.r(m),T.d(m,"State",function(){return R}),T.d(m,"default",function(){return x});var b=T("./src/polyfills/number.ts"),y=T("./src/task-loop.ts"),C=T("./src/controller/fragment-tracker.ts"),A=T("./src/utils/buffer-helper.ts"),g=T("./src/utils/logger.ts"),e=T("./src/events.ts"),f=T("./src/errors.ts"),r=T("./src/types/transmuxer.ts"),l=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/discontinuities.ts"),i=T("./src/controller/fragment-finders.ts"),a=T("./src/controller/level-helper.ts"),c=T("./src/loader/fragment-loader.ts"),h=T("./src/crypt/decrypter.ts"),d=T("./src/utils/time-ranges.ts"),s=T("./src/types/loader.ts");function u(w,v){for(var O=0;O<v.length;O++){var U=v[O];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(w,U.key,U)}}function S(w,v,O){return v&&u(w.prototype,v),O&&u(w,O),w}function E(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function _(w,v){w.prototype=Object.create(v.prototype),w.prototype.constructor=w,P(w,v)}function P(w,v){return P=Object.setPrototypeOf||function(U,I){return U.__proto__=I,U},P(w,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(w){_(v,w);function v(U,I,N){var V;return V=w.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=g.logger.log.bind(g.logger,N+":"),V.warn=g.logger.warn.bind(g.logger,N+":"),V.hls=U,V.fragmentLoader=new c.default(U.config),V.fragmentTracker=I,V.config=U.config,V.decrypter=new h.default(U,U.config),U.on(e.Events.KEY_LOADED,V.onKeyLoaded,E(V)),V}var O=v.prototype;return O.doTick=function(){this.onTickEnd()},O.onTickEnd=function(){},O.startLoad=function(I){},O.stopLoad=function(){this.fragmentLoader.abort();var I=this.fragCurrent;I&&this.fragmentTracker.removeFragment(I),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=R.STOPPED},O._streamEnded=function(I,N){var V=this.fragCurrent,H=this.fragmentTracker;if(!N.live&&V&&V.sn===N.endSN&&!I.nextStart){var D=H.getState(V);return D===C.FragmentState.PARTIAL||D===C.FragmentState.OK}return!1},O.onMediaAttached=function(I,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)},O.onMediaDetaching=function(){var I=this.media;I!=null&&I.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),I&&(I.removeEventListener("seeking",this.onvseeking),I.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},O.onMediaSeeking=function(){var I=this.config,N=this.fragCurrent,V=this.media,H=this.mediaBuffer,D=this.state,W=V?V.currentTime:0,F=A.BufferHelper.bufferInfo(H||V,W,I.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 L=I.maxFragLookUpTolerance,K=N.start-L,te=N.start+N.duration+L,fe=W>te;(W<K||fe)&&(fe&&N.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),N.loader.abort()),this.resetLoadingState())}V&&(this.lastCurrentTime=W),!this.loadedmetadata&&!F.len&&(this.nextLoadPosition=this.startPosition=W),this.tickImmediate()},O.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},O.onKeyLoaded=function(I,N){if(this.state!==R.KEY_LOADING||N.frag!==this.fragCurrent||!this.levels)return;this.state=R.IDLE;var V=this.levels[N.frag.level].details;V&&this.loadFragment(N.frag,V,N.frag.start)},O.onHandlerDestroying=function(){this.stopLoad(),w.prototype.onHandlerDestroying.call(this)},O.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,w.prototype.onHandlerDestroyed.call(this)},O.loadKey=function(I,N){this.log("Loading key for "+I.sn+" of ["+N.startSN+"-"+N.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+I.level),this.state=R.KEY_LOADING,this.fragCurrent=I,this.hls.trigger(e.Events.KEY_LOADING,{frag:I})},O.loadFragment=function(I,N,V){this._loadFragForPlayback(I,N,V)},O._loadFragForPlayback=function(I,N,V){var H=this,D=function(F){if(H.fragContextChanged(I)){H.warn("Fragment "+I.sn+(F.part?" p: "+F.part.index:"")+" of level "+I.level+" was dropped during download."),H.fragmentTracker.removeFragment(I);return}I.stats.chunkCount++,H._handleFragmentLoadProgress(F)};this._doFragLoad(I,N,V,D).then(function(W){if(!W)return;H.fragLoadError=0;var F=H.state;if(H.fragContextChanged(I)){(F===R.FRAG_LOADING||F===R.BACKTRACKING||!H.fragCurrent&&F===R.PARSING)&&(H.fragmentTracker.removeFragment(I),H.state=R.IDLE);return}if("payload"in W&&(H.log("Loaded fragment "+I.sn+" of level "+I.level),H.hls.trigger(e.Events.FRAG_LOADED,W),H.state===R.BACKTRACKING)){H.fragmentTracker.backtrack(I,W),H.resetFragmentLoading(I);return}H._handleFragmentLoadComplete(W)}).catch(function(W){H.warn(W),H.resetFragmentLoading(I)})},O.flushMainBuffer=function(I,N,V){if(V===void 0&&(V=null),!(I-N))return;var H={startOffset:I,endOffset:N,type:V};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,H)},O._loadInitSegment=function(I){var N=this;this._doFragLoad(I).then(function(V){if(!V||N.fragContextChanged(I)||!N.levels)throw new Error("init load aborted");return V}).then(function(V){var H=N.hls,D=V.payload,W=I.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(L){var K=self.performance.now();return H.trigger(e.Events.FRAG_DECRYPTED,{frag:I,payload:L,stats:{tstart:F,tdecrypt:K}}),V.payload=L,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[I.level].details;console.assert(F,"Level details are defined when init segment is loaded");var L=I.stats;N.state=R.IDLE,N.fragLoadError=0,I.data=new Uint8Array(V.payload),L.parsing.start=L.buffering.start=self.performance.now(),L.parsing.end=L.buffering.end=self.performance.now(),V.frag===H&&D.trigger(e.Events.FRAG_BUFFERED,{stats:L,frag:H,part:null,id:I.type}),N.tick()}).catch(function(V){N.warn(V),N.resetFragmentLoading(I)})},O.fragContextChanged=function(I){var N=this.fragCurrent;return!I||!N||I.level!==N.level||I.sn!==N.sn||I.urlId!==N.urlId},O.fragBufferedComplete=function(I,N){var V=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+I.type+" sn: "+I.sn+(N?" part: "+N.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+I.level+" "+d.default.toString(A.BufferHelper.getBuffered(V))),this.state=R.IDLE,this.tick()},O._handleFragmentLoadComplete=function(I){var N=this.transmuxer;if(!N)return;var V=I.frag,H=I.part,D=I.partsLoaded,W=!D||D.length===0||D.some(function(L){return!L}),F=new r.ChunkMetadata(V.level,V.sn,V.stats.chunkCount+1,0,H?H.index:-1,!W);N.flush(F)},O._handleFragmentLoadProgress=function(I){},O._doFragLoad=function(I,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(I.start,V||0),this.config.lowLatencyMode&&N){var W=N.partList;if(W&&H){V>I.end&&N.fragmentHint&&(I=N.fragmentHint);var F=this.getNextPart(W,I,V);if(F>-1){var L=W[F];return this.log("Loading part sn: "+I.sn+" p: "+L.index+" cc: "+I.cc+" of playlist ["+N.startSN+"-"+N.endSN+"] parts [0-"+F+"-"+(W.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(V.toFixed(3))),this.nextLoadPosition=L.start+L.duration,this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:I,part:W[F],targetBufferTime:V}),this.doFragPartsLoad(I,W,F,H).catch(function(K){return D.handleFragLoadError(K)})}else if(!I.url||this.loadedEndOfParts(W,V))return Promise.resolve(null)}}return this.log("Loading fragment "+I.sn+" cc: "+I.cc+" "+(N?"of ["+N.startSN+"-"+N.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(V.toFixed(3))),Object(b.isFiniteNumber)(I.sn)&&!this.bitrateTest&&(this.nextLoadPosition=I.start+I.duration),this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:I,targetBufferTime:V}),this.fragmentLoader.load(I,H).catch(function(K){return D.handleFragLoadError(K)})},O.doFragPartsLoad=function(I,N,V,H){var D=this;return new Promise(function(W,F){var L=[],K=function te(fe){var de=N[fe];D.fragmentLoader.loadPart(I,de,H).then(function(Ce){L[de.index]=Ce;var Oe=Ce.part;D.hls.trigger(e.Events.FRAG_LOADED,Ce);var ce=N[fe+1];if(ce&&ce.fragment===I)te(fe+1);else return W({frag:I,part:Oe,partsLoaded:L})}).catch(F)};K(V)})},O.handleFragLoadError=function(I){var N=I.data;return N&&N.details===f.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(N.frag,N.part):this.hls.trigger(e.Events.ERROR,N),null},O._handleTransmuxerFlush=function(I){var N=this.getCurrentContext(I);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,I.partial)},O.getCurrentContext=function(I){var N=this.levels,V=I.level,H=I.sn,D=I.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(a.getPartWith)(W,H,D):null,L=F?F.fragment:Object(a.getFragmentWithSN)(W,H,this.fragCurrent);return L?{frag:L,part:F,level:W}:null},O.bufferFragmentData=function(I,N,V,H){if(!I||this.state!==R.PARSING)return;var D=I.data1,W=I.data2,F=D;if(D&&W&&(F=Object(l.appendUint8Array)(D,W)),!F||!F.length)return;var L={type:I.type,frag:N,part:V,chunkMeta:H,parent:N.type,data:F};this.hls.trigger(e.Events.BUFFER_APPENDING,L),I.dropped&&I.independent&&!V&&this.flushBufferGap(N)},O.flushBufferGap=function(I){var N=this.media;if(!N)return;if(!A.BufferHelper.isBuffered(N,N.currentTime)){this.flushMainBuffer(0,I.start);return}var V=N.currentTime,H=A.BufferHelper.bufferInfo(N,V,0),D=I.duration,W=Math.min(this.config.maxFragLookUpTolerance*2,D*.25),F=Math.max(Math.min(I.start-W,H.end-W),V+W);I.start-F>W&&this.flushMainBuffer(F,I.start)},O.getFwdBufferInfo=function(I,N){var V=this.config,H=this.getLoadPosition();if(!Object(b.isFiniteNumber)(H))return null;var D=A.BufferHelper.bufferInfo(I,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 A.BufferHelper.bufferInfo(I,H,Math.max(D.nextStart,V.maxBufferHole))}return D},O.getMaxBufferLength=function(I){var N=this.config,V;return I?V=Math.max(8*N.maxBufferSize/I,N.maxBufferLength):V=N.maxBufferLength,Math.min(V,N.maxMaxBufferLength)},O.reduceMaxBufferLength=function(I){var N=this.config,V=I||N.maxBufferLength;return N.maxMaxBufferLength>=V?(N.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+N.maxMaxBufferLength+"s"),!0):!1},O.getNextFragment=function(I,N){var V,H,D=N.fragments,W=D.length;if(!W)return null;var F=this.config,L=D[0].start,K;if(N.live){var te=F.initialLiveManifestSize;if(W<te)return this.warn("Not enough fragments to start playback (have: "+W+", need: "+te+")"),null;!N.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(K=this.getInitialLiveFragment(N,D),this.startPosition=K?this.hls.liveSyncPosition||K.start:I)}else I<=L&&(K=D[0]);if(!K){var fe=F.lowLatencyMode?N.partEnd:N.fragmentEnd;K=this.getFragmentAtPosition(I,fe,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},O.getNextPart=function(I,N,V){for(var H=-1,D=!1,W=!0,F=0,L=I.length;F<L;F++){var K=I[F];if(W=W&&!K.independent,H>-1&&V<K.start)break;var te=K.loaded;!te&&(D||K.independent||W)&&K.fragment===N&&(H=F),D=te}return H},O.loadedEndOfParts=function(I,N){var V=I[I.length-1];return V&&N>V.start&&V.loaded},O.getInitialLiveFragment=function(I,N){var V=this.fragPrevious,H=null;if(V){if(I.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>=I.startSN&&D<=I.endSN){var W=N[D-I.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?I.fragmentEnd:I.edge,I))}return H},O.getFragmentAtPosition=function(I,N,V){var H=this.config,D=this.fragPrevious,W=V.fragments,F=V.endSN,L=V.fragmentHint,K=H.maxFragLookUpTolerance,te=!!(H.lowLatencyMode&&V.partList&&L);te&&L&&!this.bitrateTest&&(W=W.concat(L),F=L.sn);var fe;if(I<N){var de=I>N-K?0:K;fe=Object(i.findFragmentByPTS)(D,W,I,de)}else fe=W[W.length-1];if(fe){var Ce=fe.sn-V.startSN,Oe=D&&fe.level===D.level,ce=W[Ce+1],Ee=this.fragmentTracker.getState(fe);if(Ee===C.FragmentState.BACKTRACKED){fe=null;for(var ye=Ce;W[ye]&&this.fragmentTracker.getState(W[ye])===C.FragmentState.BACKTRACKED;)D?fe=W[ye--]:fe=W[--ye];fe||(fe=ce)}else D&&fe.sn===D.sn&&!te&&(Oe&&(fe.sn<F&&this.fragmentTracker.getState(ce)!==C.FragmentState.OK?(this.log("SN "+fe.sn+" just loaded, load next one: "+ce.sn),fe=ce):fe=null))}return fe},O.synchronizeToLiveEdge=function(I){var N=this.config,V=this.media;if(!V)return;var H=this.hls.liveSyncPosition,D=V.currentTime,W=I.fragments[0].start,F=I.edge,L=D>=W-N.maxFragLookUpTolerance&&D<=F;if(H!==null&&V.duration>H&&(D<H||!L)){var K=N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:N.liveMaxLatencyDurationCount*I.targetduration;(!L&&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))}},O.alignPlaylists=function(I,N){var V=this.levels,H=this.levelLastLoaded,D=this.fragPrevious,W=H!==null?V[H]:null,F=I.fragments.length;if(!F)return this.warn("No fragments in live playlist"),0;var L=I.fragments[0].start,K=!N,te=I.alignedSliding&&Object(b.isFiniteNumber)(L);if(K||!te&&!L){Object(n.alignStream)(D,W,I);var fe=I.fragments[0].start;return this.log("Live playlist sliding: "+fe.toFixed(2)+" start-sn: "+(N?N.startSN:"na")+"->"+I.startSN+" prev-sn: "+(D?D.sn:"na")+" fragments: "+F),fe}return L},O.waitForCdnTuneIn=function(I){var N=3;return I.live&&I.canBlockReload&&I.tuneInGoal>Math.max(I.partHoldBack,I.partTarget*N)},O.setStartPosition=function(I,N){var V=this.startPosition;if(V<N&&(V=-1),V===-1||this.lastCurrentTime===-1){var H=I.startTimeOffset;Object(b.isFiniteNumber)(H)?(V=N+H,H<0&&(V+=I.totalduration),V=Math.min(Math.max(N,V),N+I.totalduration),this.log("Start time offset "+H+" found in playlist, adjust startPosition to "+V),this.startPosition=V):I.live?V=this.hls.liveSyncPosition||N:this.startPosition=V=0,this.lastCurrentTime=V}this.nextLoadPosition=V},O.getLoadPosition=function(){var I=this.media,N=0;return this.loadedmetadata&&I?N=I.currentTime:this.nextLoadPosition&&(N=this.nextLoadPosition),N},O.handleFragLoadAborted=function(I,N){this.transmuxer&&I.sn!=="initSegment"&&I.stats.aborted&&(this.warn("Fragment "+I.sn+(N?" part"+N.index:"")+" of level "+I.level+" was aborted"),this.resetFragmentLoading(I))},O.resetFragmentLoading=function(I){(!this.fragCurrent||!this.fragContextChanged(I))&&(this.state=R.IDLE)},O.onFragmentOrKeyLoadError=function(I,N){if(N.fatal)return;var V=N.frag;if(!V||V.type!==I)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 "+I+" "+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?(I===s.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=R.IDLE):(g.logger.error(N.details+" reaches max retry, redispatch as fatal ..."),N.fatal=!0,this.hls.stopLoad(),this.state=R.ERROR)},O.afterBufferFlushed=function(I,N,V){if(!I)return;var H=A.BufferHelper.getBuffered(I);this.fragmentTracker.detectEvictedFragments(N,H,V),this.state===R.ENDED&&this.resetLoadingState()},O.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=R.IDLE},O.resetLiveStartWhenNotLoaded=function(I){if(!this.loadedmetadata){this.startFragRequested=!1;var N=this.levels?this.levels[I].details:null;if(N!=null&&N.live)return this.startPosition=-1,this.setStartPosition(N,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},O.updateLevelTiming=function(I,N,V,H){var D=this,W=V.details;console.assert(!!W,"level.details must be defined");var F=Object.keys(I.elementaryStreams).reduce(function(L,K){var te=I.elementaryStreams[K];if(te){var fe=te.endPTS-te.startPTS;if(fe<=0)return D.warn("Could not parse fragment "+I.sn+" "+K+" duration reliably ("+fe+") resetting transmuxer to fallback to playlist timing"),D.resetTransmuxer(),L||!1;var de=H?0:Object(a.updateFragPTSDTS)(W,I,te.startPTS,te.endPTS,te.startDTS,te.endDTS);return D.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:W,level:V,drift:de,type:K,frag:I,start:te.startPTS,end:te.endPTS}),!0}return L},!1);F?(this.state=R.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:I,part:N})):this.resetLoadingState()},O.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},S(v,[{key:"state",get:function(){return this._state},set:function(I){var N=this._state;N!==I&&(this._state=I,this.log(N+"->"+I))}}]),v}(y.default)},"./src/controller/buffer-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return i});var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),C=T("./src/utils/logger.ts"),A=T("./src/errors.ts"),g=T("./src/utils/buffer-helper.ts"),e=T("./src/utils/mediasource-helper.ts"),f=T("./src/loader/fragment.ts"),r=T("./src/controller/buffer-operation-queue.ts"),l=Object(e.getMediaSource)(),n=/([ha]vc.)(?:\.[^.,]+)+/,i=function(){function a(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,u=d.media,S=d.mediaSource;C.logger.log("[buffer-controller]: Media source opened"),u&&(d.updateMediaElementDuration(),s.trigger(y.Events.MEDIA_ATTACHED,{media:u})),S&&S.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=a.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 r.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},c.onManifestParsed=function(d,s){var u=2;(s.audio&&!s.video||!s.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,C.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},c.onMediaAttaching=function(d,s){var u=this.media=s.media;if(u&&l){var S=this.mediaSource=new l;S.addEventListener("sourceopen",this._onMediaSourceOpen),S.addEventListener("sourceended",this._onMediaSourceEnded),S.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(S),this._objectUrl=u.src}},c.onMediaDetaching=function(){var d=this.media,s=this.mediaSource,u=this._objectUrl;if(s){if(C.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(S){C.logger.warn("[buffer-controller]: onMediaDetaching: "+S.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),d&&(u&&self.URL.revokeObjectURL(u),d.src===u?(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 u=d.sourceBuffer[s];try{u&&(d.removeBufferListeners(s),d.mediaSource&&d.mediaSource.removeSourceBuffer(u),d.sourceBuffer[s]=void 0)}catch(S){C.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",S)}}),this._initSourceBuffer()},c.onBufferCodecs=function(d,s){var u=this,S=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(S){var _=u.tracks[E];if(_&&typeof _.buffer.changeType=="function"){var P=s[E],R=P.codec,x=P.levelCodec,w=P.container,v=(_.levelCodec||_.codec).replace(n,"$1"),O=(x||R).replace(n,"$1");if(v!==O){var U=w+";codecs="+(x||R);u.appendChangeType(E,U)}}}else u.pendingTracks[E]=s[E]}),S)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},c.appendChangeType=function(d,s){var u=this,S=this.operationQueue,E={execute:function(){var P=u.sourceBuffer[d];P&&(C.logger.log("[buffer-controller]: changing "+d+" sourceBuffer type to "+s),P.changeType(s)),S.shiftAndExecuteNext(d)},onStart:function(){},onComplete:function(){},onError:function(P){C.logger.warn("[buffer-controller]: Failed to change "+d+" SourceBuffer type",P)}};S.append(E,d)},c.onBufferAppending=function(d,s){var u=this,S=this.hls,E=this.operationQueue,_=this.tracks,P=s.data,R=s.type,x=s.frag,w=s.part,v=s.chunkMeta,O=v.buffering[R],U=self.performance.now();O.start=U;var I=x.stats.buffering,N=w?w.stats.buffering:null;I.start===0&&(I.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(O.executeStart=self.performance.now(),H){var F=u.sourceBuffer[R];if(F){var L=x.start-F.timestampOffset;Math.abs(L)>=.1&&(C.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+x.start+" (delta: "+L+") sn: "+x.sn+")"),F.timestampOffset=x.start)}}u.appendExecutor(P,R)},onStart:function(){},onComplete:function(){var F=self.performance.now();O.executeEnd=O.end=F,I.first===0&&(I.first=F),N&&N.first===0&&(N.first=F);var L=u.sourceBuffer,K={};for(var te in L)K[te]=g.BufferHelper.getBuffered(L[te]);u.appendError=0,u.hls.trigger(y.Events.BUFFER_APPENDED,{type:R,frag:x,part:w,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 L={type:A.ErrorTypes.MEDIA_ERROR,parent:x.type,details:A.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?L.details=A.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,L.details=A.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>S.config.appendErrorMaxRetry&&(C.logger.error("[buffer-controller]: Failed "+S.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),L.fatal=!0)),S.trigger(y.Events.ERROR,L)}};E.append(D,R)},c.onBufferFlushing=function(d,s){var u=this,S=this.operationQueue,E=function(P){return{execute:u.removeExecutor.bind(u,P,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){u.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?S.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(_){S.append(E(_),_)})},c.onFragParsed=function(d,s){var u=this,S=s.frag,E=s.part,_=[],P=E?E.elementaryStreams:S.elementaryStreams;P[f.ElementaryStreamTypes.AUDIOVIDEO]?_.push("audiovideo"):(P[f.ElementaryStreamTypes.AUDIO]&&_.push("audio"),P[f.ElementaryStreamTypes.VIDEO]&&_.push("video"));var R=function(){var w=self.performance.now();S.stats.buffering.end=w,E&&(E.stats.buffering.end=w);var v=E?E.stats:S.stats;u.hls.trigger(y.Events.FRAG_BUFFERED,{frag:S,part:E,stats:v,id:S.type})};_.length===0&&C.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+S.type+" level: "+S.level+" sn: "+S.sn),this.blockBuffers(R,_)},c.onFragChanged=function(d,s){this.flushBackBuffer()},c.onBufferEos=function(d,s){var u=this,S=this.getSourceBufferTypes().reduce(function(E,_){var P=u.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);S&&this.blockBuffers(function(){var E=u.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},c.onLevelUpdated=function(d,s){var u=s.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},c.flushBackBuffer=function(){var d=this.hls,s=this.details,u=this.media,S=this.sourceBuffer;if(!u||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=u.currentTime,R=s.levelTargetDuration,x=Math.max(_,R),w=Math.floor(P/R)*R-x;E.forEach(function(v){var O=S[v];if(O){var U=g.BufferHelper.getBuffered(O);U.length>0&&w>U.start(0)&&(d.trigger(y.Events.BACK_BUFFER_REACHED,{bufferEnd:w}),s.live&&d.trigger(y.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:w}),d.trigger(y.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:w,type:v}))}})},c.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var d=this.details,s=this.hls,u=this.media,S=this.mediaSource,E=d.fragments[0].start+d.totalduration,_=u.duration,P=Object(b.isFiniteNumber)(S.duration)?S.duration:0;d.live&&s.config.liveDurationInfinity?(C.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),S.duration=Infinity,this.updateSeekableRange(d)):(E>P&&E>_||!Object(b.isFiniteNumber)(_))&&(C.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),S.duration=E)},c.updateSeekableRange=function(d){var s=this.mediaSource,u=d.fragments,S=u.length;if(S&&d.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,u[0].start),_=Math.max(E,E+d.totalduration);s.setLiveSeekableRange(E,_)}},c.checkPendingTracks=function(){var d=this.bufferCodecEventsExpected,s=this.operationQueue,u=this.pendingTracks,S=Object.keys(u).length;if(S&&!d||S===2){this.createSourceBuffers(u),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(y.Events.ERROR,{type:A.ErrorTypes.MEDIA_ERROR,details:A.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,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var S=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]=u.addSourceBuffer(R),w=E;this.addBufferListener(w,"updatestart",this._onSBUpdateStart),this.addBufferListener(w,"updateend",this._onSBUpdateEnd),this.addBufferListener(w,"error",this._onSBUpdateError),this.tracks[E]={buffer:x,codec:P,container:_.container,levelCodec:_.levelCodec,id:_.id},S++}catch(v){C.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+v.message),this.hls.trigger(y.Events.ERROR,{type:A.ErrorTypes.MEDIA_ERROR,details:A.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,mimeType:R})}}S&&this.hls.trigger(y.Events.BUFFER_CREATED,{tracks:this.tracks})},c._onSBUpdateStart=function(d){var s=this.operationQueue,u=s.current(d);u.onStart()},c._onSBUpdateEnd=function(d){var s=this.operationQueue,u=s.current(d);u.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:A.ErrorTypes.MEDIA_ERROR,details:A.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(d);u&&u.onError(s)},c.removeExecutor=function(d,s,u){var S=this.media,E=this.mediaSource,_=this.operationQueue,P=this.sourceBuffer,R=P[d];if(!S||!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)(S.duration)?S.duration:Infinity,w=Object(b.isFiniteNumber)(E.duration)?E.duration:Infinity,v=Math.max(0,s),O=Math.min(u,x,w);O>v?(C.logger.log("[buffer-controller]: Removing ["+v+","+O+"] from the "+d+" SourceBuffer"),console.assert(!R.updating,d+" sourceBuffer must not be updating"),R.remove(v,O)):_.shiftAndExecuteNext(d)},c.appendExecutor=function(d,s){var u=this.operationQueue,S=this.sourceBuffer,E=S[s];if(!E){C.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),u.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 u=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 S=this.operationQueue,E=s.map(function(_){return S.appendBlocker(_)});Promise.all(E).then(function(){d(),s.forEach(function(_){var P=u.sourceBuffer[_];(!P||!P.updating)&&S.shiftAndExecuteNext(_)})})},c.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},c.addBufferListener=function(d,s,u){var S=this.sourceBuffer[d];if(!S)return;var E=u.bind(this,d);this.listeners[d].push({event:s,listener:E}),S.addEventListener(s,E)},c.removeBufferListeners=function(d){var s=this.sourceBuffer[d];if(!s)return;this.listeners[d].forEach(function(u){s.removeEventListener(u.event,u.listener)})},a}()},"./src/controller/buffer-operation-queue.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return y});var b=T("./src/utils/logger.ts"),y=function(){function C(g){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=g}var A=C.prototype;return A.append=function(e,f){var r=this.queues[f];r.push(e),r.length===1&&this.buffers[f]&&this.executeNext(f)},A.insertAbort=function(e,f){var r=this.queues[f];r.unshift(e),this.executeNext(f)},A.appendBlocker=function(e){var f,r=new Promise(function(n){f=n}),l={execute:f,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(l,e),r},A.executeNext=function(e){var f=this.buffers,r=this.queues,l=f[e],n=r[e];if(n.length){var i=n[0];try{i.execute()}catch(a){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),i.onError(a),(!l||!l.updating)&&(n.shift(),this.executeNext(e))}}},A.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},A.current=function(e){return this.queues[e][0]},C}()},"./src/controller/cap-level-controller.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/events.ts");function y(g,e){for(var f=0;f<e.length;f++){var r=e[f];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(g,r.key,r)}}function C(g,e,f){return e&&y(g.prototype,e),f&&y(g,f),g}var A=function(){function g(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=g.prototype;return e.setStreamController=function(r){this.streamController=r},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 r=this.hls;r.on(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var r=this.hls;r.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(r,l){g.isLevelAllowed(l.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(l.droppedLevel)},e.onMediaAttaching=function(r,l){this.media=l.media instanceof HTMLVideoElement?l.media:null},e.onManifestParsed=function(r,l){var n=this.hls;this.restrictedLevels=[],this.firstLevel=l.firstLevel,n.config.capLevelToPlayerSize&&l.video&&this.startCapping()},e.onBufferCodecs=function(r,l){var n=this.hls;n.config.capLevelToPlayerSize&&l.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var r=this.hls.levels;if(r.length){var l=this.hls;l.autoLevelCapping=this.getMaxLevel(r.length-1),l.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=l.autoLevelCapping}}},e.getMaxLevel=function(r){var l=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter(function(a,c){return g.isLevelAllowed(c,l.restrictedLevels)&&c<=r});return this.clientRect=null,g.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 r=this.media,l={width:0,height:0};if(r){var n=r.getBoundingClientRect();l.width=n.width,l.height=n.height,!l.width&&!l.height&&(l.width=n.right-n.left||r.width||0,l.height=n.bottom-n.top||r.height||0)}return this.clientRect=l,l},g.isLevelAllowed=function(r,l){return l===void 0&&(l=[]),l.indexOf(r)===-1},g.getMaxLevelByMediaSize=function(r,l,n){if(!r||!r.length)return-1;for(var i=function(s,u){return u?s.width!==u.width||s.height!==u.height:!0},a=r.length-1,c=0;c<r.length;c+=1){var h=r[c];if((h.width>=l||h.height>=n)&&i(h,r[c+1])){a=c;break}}return a},C(g,[{key:"mediaWidth",get:function(){return this.getDimensions().width*g.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*g.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var r=1;try{r=self.devicePixelRatio}catch(l){}return r}}]),g}();m.default=A},"./src/controller/cmcd-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return i});var b=T("./src/events.ts"),y=T("./src/types/cmcd.ts"),C=T("./src/utils/buffer-helper.ts"),A=T("./src/utils/logger.ts");function g(a,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(a,d.key,d)}}function e(a,c,h){return c&&g(a.prototype,c),h&&g(a,h),a}function f(a,c){var h=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(h)return(h=h.call(a)).next.bind(h);if(Array.isArray(a)||(h=r(a))||c&&a&&typeof a.length=="number"){h&&(a=h);var d=0;return function(){return d>=a.length?{done:!0}:{done:!1,value:a[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 r(a,c){if(!a)return;if(typeof a=="string")return l(a,c);var h=Object.prototype.toString.call(a).slice(8,-1);if(h==="Object"&&a.constructor&&(h=a.constructor.name),h==="Map"||h==="Set")return Array.from(a);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return l(a,c)}function l(a,c){(c==null||c>a.length)&&(c=a.length);for(var h=0,d=new Array(c);h<c;h++)d[h]=a[h];return d}function n(){return n=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(a[d]=h[d])}return a},n.apply(this,arguments)}var i=function(){function a(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(S){try{d.apply(S,{ot:y.CMCDObjectType.MANIFEST,su:!d.initialized})}catch(E){A.logger.warn("Could not generate manifest CMCD data.",E)}},this.applyFragmentData=function(S){try{var E=S.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(S,R)}catch(x){A.logger.warn("Could not generate segment CMCD data.",x)}},this.hls=h;var s=this.config=h.config,u=s.cmcd;u!=null&&(s.pLoader=this.createPlaylistLoader(),s.fLoader=this.createFragmentLoader(),this.sid=u.sessionId||a.uuid(),this.cid=u.contentId,this.useHeaders=u.useHeaders===!0,this.registerListeners())}var c=a.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 u,S;this.audioBuffer=(u=s.tracks.audio)===null||u===void 0?void 0:u.buffer,this.videoBuffer=(S=s.tracks.video)===null||S===void 0?void 0:S.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 u=s.ot===y.CMCDObjectType.INIT||s.ot===y.CMCDObjectType.VIDEO||s.ot===y.CMCDObjectType.MUXED;if(this.starved&&u&&(s.bs=!0,s.su=!0,this.starved=!1),s.su==null&&(s.su=this.buffering),this.useHeaders){var S=a.toHeaders(s);if(!Object.keys(S).length)return;d.headers||(d.headers={}),n(d.headers,S)}else{var E=a.toQuery(s);if(!E)return;d.url=a.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,u=d===y.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,S=f(u),E;!(E=S()).done;){var _=E.value;_.bitrate>s&&(s=_.bitrate)}return s>0?s:NaN},c.getBufferLength=function(d){var s=this.hls.media,u=d===y.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!s)return NaN;var S=C.BufferHelper.bufferInfo(u,s.currentTime,this.config.maxBufferHole);return S.len*1e3},c.createPlaylistLoader=function(){var d=this.config.pLoader,s=this.applyPlaylistData,u=d||this.config.loader;return function(){function S(_){this.loader=void 0,this.loader=new u(_)}var E=S.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(S,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),S}()},c.createFragmentLoader=function(){var d=this.config.fLoader,s=this.applyFragmentData,u=d||this.config.loader;return function(){function S(_){this.loader=void 0,this.loader=new u(_)}var E=S.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(S,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),S}()},a.uuid=function(){var d=URL.createObjectURL(new Blob),s=d.toString();return URL.revokeObjectURL(d),s.substr(s.lastIndexOf("/")+1)},a.serialize=function(d){for(var s=[],u=function(H){return!Number.isNaN(H)&&H!=null&&H!==""&&H!==!1},S=function(H){return Math.round(H)},E=function(H){return S(H/100)*100},_=function(H){return encodeURIComponent(H)},P={br:S,d:S,bl:E,dl:E,mtp:E,nor:_,rtp:E,tb:S},R=Object.keys(d||{}).sort(),x=f(R),w;!(w=x()).done;){var v=w.value,O=d[v];if(!u(O))continue;if(v==="v"&&O===1)continue;if(v=="pr"&&O===1)continue;var U=P[v];U&&(O=U(O));var I=typeof O,N=void 0;v==="ot"||v==="sf"||v==="st"?N=v+"="+O:I==="boolean"?N=v:I==="number"?N=v+"="+O:N=v+"="+JSON.stringify(O),s.push(N)}return s.join(",")},a.toHeaders=function(d){for(var s=Object.keys(d),u={},S=["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],w=_[x]!=null?_[x]:1;E[w][x]=d[x]}for(var v=0;v<E.length;v++){var O=a.serialize(E[v]);O&&(u["CMCD-"+S[v]]=O)}return u},a.toQuery=function(d){return"CMCD="+encodeURIComponent(a.serialize(d))},a.appendQueryToUri=function(d,s){if(!s)return d;var u=d.includes("?")?"&":"?";return""+d+u+s},a}()},"./src/controller/eme-controller.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/events.ts"),y=T("./src/errors.ts"),C=T("./src/utils/logger.ts"),A=T("./src/utils/mediakeys-helper.ts");function g(i,a){for(var c=0;c<a.length;c++){var h=a[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,a,c){return a&&g(i.prototype,a),c&&g(i,c),i}var f=3,r=function(a,c,h){var d={audioCapabilities:[],videoCapabilities:[]};return a.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]},l=function(a,c,h,d){switch(a){case A.KeySystems.WIDEVINE:return r(c,h,d);default:throw new Error("Unknown key-system: "+a)}},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 a=i.prototype;return a.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},a._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)},a._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)},a.getLicenseServerUrl=function(h){switch(h){case A.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+h+'"')},a._attemptKeySystemAccess=function(h,d,s){var u=this,S=l(h,d,s,this._drmSystemOptions);C.logger.log("Requesting encrypted media key-system access");var E=this.requestMediaKeySystemAccess(h,S);this.mediaKeysPromise=E.then(function(_){return u._onMediaKeySystemAccessObtained(h,_)}),E.catch(function(_){C.logger.error('Failed to obtain key-system "'+h+'" access:',_)})},a._onMediaKeySystemAccessObtained=function(h,d){var s=this;C.logger.log('Access for key-system "'+h+'" obtained');var u={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:d,mediaKeySystemDomain:h};this._mediaKeysList.push(u);var S=Promise.resolve().then(function(){return d.createMediaKeys()}).then(function(E){return u.mediaKeys=E,C.logger.log('Media-keys created for key-system "'+h+'"'),s._onMediaKeysCreated(),E});return S.catch(function(E){C.logger.error("Failed to create media-keys:",E)}),S},a._onMediaKeysCreated=function(){var h=this;this._mediaKeysList.forEach(function(d){d.mediaKeysSession||(d.mediaKeysSession=d.mediaKeys.createSession(),h._onNewMediaKeySession(d.mediaKeysSession))})},a._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)},a._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)})},a.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(S){if(!d._media)return;d._attemptSetMediaKeys(S),d._generateRequestWithPreferredKeySession(h.initDataType,h.initData)};this.mediaKeysPromise.then(s).catch(s)},a._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}},a._generateRequestWithPreferredKeySession=function(h,d){var s=this,u=this._mediaKeysList[0];if(!u){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(u.mediaKeysSessionInitialized){C.logger.warn("Key-Session already initialized but requested again");return}var S=u.mediaKeysSession;if(!S){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'),u.mediaKeysSessionInitialized=!0,S.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})})},a._createLicenseXhr=function(h,d,s){var u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,u,h,d,s);var S=this._licenseXhrSetup;if(S)try{S.call(this.hls,u,h),S=void 0}catch(E){C.logger.error(E)}try{u.readyState||u.open("POST",h,!0),S&&S.call(this.hls,u,h)}catch(E){throw new Error("issue setting up KeySystem license XHR "+E)}return u},a._onLicenseRequestReadyStageChange=function(h,d,s,u){switch(h.readyState){case 4:if(h.status===200){this._requestLicenseFailureCount=0,C.logger.log("License request succeeded");var S=h.response,E=this._licenseResponseCallback;if(E)try{S=E.call(this.hls,h,d)}catch(P){C.logger.error(P)}u(S)}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,u)}break}},a._generateLicenseRequestChallenge=function(h,d){switch(h.mediaKeySystemDomain){case A.KeySystems.WIDEVINE:return d}throw new Error("unsupported key-system: "+h.mediaKeySystemDomain)},a._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 u=this.getLicenseServerUrl(s.mediaKeySystemDomain),S=this._createLicenseXhr(u,h,d);C.logger.log("Sending license request to URL: "+u);var E=this._generateLicenseRequestChallenge(s,h);S.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})}},a.onMediaAttached=function(h,d){if(!this._emeEnabled)return;var s=d.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},a.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(){})},a.onManifestParsed=function(h,d){if(!this._emeEnabled)return;var s=d.levels.map(function(S){return S.audioCodec}).filter(function(S){return!!S}),u=d.levels.map(function(S){return S.videoCodec}).filter(function(S){return!!S});this._attemptKeySystemAccess(A.KeySystems.WIDEVINE,s,u)},e(i,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),i}();m.default=n},"./src/controller/fps-controller.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/events.ts"),y=T("./src/utils/logger.ts"),C=function(){function A(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 g=A.prototype;return g.setStreamController=function(f){this.streamController=f},g.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},g.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},g.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},g.onMediaAttaching=function(f,r){var l=this.hls.config;if(l.capLevelOnFPSDrop){var n=r.media instanceof self.HTMLVideoElement?r.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),l.fpsDroppedMonitoringPeriod)}},g.checkFPS=function(f,r,l){var n=performance.now();if(r){if(this.lastTime){var i=n-this.lastTime,a=l-this.lastDroppedFrames,c=r-this.lastDecodedFrames,h=1e3*a/i,d=this.hls;if(d.trigger(b.Events.FPS_DROP,{currentDropped:a,currentDecoded:c,totalDroppedFrames:l}),h>0&&a>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=l,this.lastDecodedFrames=r}},g.checkFPSInterval=function(){var f=this.media;if(f)if(this.isVideoPlaybackQualityAvailable){var r=f.getVideoPlaybackQuality();this.checkFPS(f,r.totalVideoFrames,r.droppedVideoFrames)}else this.checkFPS(f,f.webkitDecodedFrameCount,f.webkitDroppedFrameCount)},A}();m.default=C},"./src/controller/fragment-finders.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"findFragmentByPDT",function(){return C}),T.d(m,"findFragmentByPTS",function(){return A}),T.d(m,"fragmentWithinToleranceTest",function(){return g}),T.d(m,"pdtWithinToleranceTest",function(){return e}),T.d(m,"findFragWithCC",function(){return f});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/binary-search.ts");function C(r,l,n){if(l===null||!Array.isArray(r)||!r.length||!Object(b.isFiniteNumber)(l))return null;var i=r[0].programDateTime;if(l<(i||0))return null;var a=r[r.length-1].endProgramDateTime;if(l>=(a||0))return null;n=n||0;for(var c=0;c<r.length;++c){var h=r[c];if(e(l,n,h))return h}return null}function A(r,l,n,i){n===void 0&&(n=0),i===void 0&&(i=0);var a=null;if(r?a=l[r.sn-l[0].sn+1]||null:n===0&&l[0].start===0&&(a=l[0]),a&&g(n,i,a)===0)return a;var c=y.default.search(l,g.bind(null,n,i));return c||a}function g(r,l,n){r===void 0&&(r=0),l===void 0&&(l=0);var i=Math.min(l,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=r?1:n.start-i>r&&n.start?-1:0}function e(r,l,n){var i=Math.min(l,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3,a=n.endProgramDateTime||0;return a-i>r}function f(r,l){return y.default.search(r,function(n){return n.cc<l?1:n.cc>l?-1:0})}},"./src/controller/fragment-tracker.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"FragmentState",function(){return C}),T.d(m,"FragmentTracker",function(){return A});var b=T("./src/events.ts"),y=T("./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 A=function(){function f(l){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=l,this._registerListeners()}var r=f.prototype;return r._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)},r._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)},r.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},r.getAppendedFrag=function(n,i){if(i===y.PlaylistLevelType.MAIN){var a=this.activeFragment,c=this.activeParts;if(!a)return null;if(c)for(var h=c.length;h--;){var d=c[h],s=d?d.end:a.appendedPTS;if(d.start<=n&&s!==void 0&&n<=s)return h>9&&(this.activeParts=c.slice(h-9)),d}else if(a.start<=n&&a.appendedPTS!==void 0&&n<=a.appendedPTS)return a}return this.getBufferedFrag(n,i)},r.getBufferedFrag=function(n,i){for(var a=this.fragments,c=Object.keys(a),h=c.length;h--;){var d=a[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},r.detectEvictedFragments=function(n,i,a){var c=this;Object.keys(this.fragments).forEach(function(h){var d=c.fragments[h];if(!d)return;if(!d.buffered){d.body.type===a&&c.removeFragment(d.body);return}var s=d.range[n];if(!s)return;s.time.some(function(u){var S=!c.isTimeBuffered(u.startPTS,u.endPTS,i);return S&&c.removeFragment(d.body),S})})},r.detectPartialFragments=function(n){var i=this,a=this.timeRanges,c=n.frag,h=n.part;if(!a||c.sn==="initSegment")return;var d=e(c),s=this.fragments[d];if(!s)return;Object.keys(a).forEach(function(u){var S=c.elementaryStreams[u];if(!S)return;var E=a[u],_=h!==null||S.partial===!0;s.range[u]=i.getBufferedTimes(c,h,_,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},r.fragBuffered=function(n){var i=e(n),a=this.fragments[i];a&&(a.backtrack=a.loaded=null,a.buffered=!0)},r.getBufferedTimes=function(n,i,a,c){for(var h={time:[],partial:a},d=i?i.start:n.start,s=i?i.end:n.end,u=n.minEndPTS||s,S=n.maxStartPTS||d,E=0;E<c.length;E++){var _=c.start(E)-this.bufferPadding,P=c.end(E)+this.bufferPadding;if(S>=_&&u<=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},r.getPartialFragment=function(n){var i=null,a,c,h,d=0,s=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(S){var E=u[S];if(!E)return;g(E)&&(c=E.body.start-s,h=E.body.end+s,n>=c&&n<=h&&(a=Math.min(n-c,h-n),d<=a&&(i=E.body,d=a)))}),i},r.getState=function(n){var i=e(n),a=this.fragments[i];return a?a.buffered?g(a)?C.PARTIAL:C.OK:a.backtrack?C.BACKTRACKED:C.APPENDING:C.NOT_LOADED},r.backtrack=function(n,i){var a=e(n),c=this.fragments[a];if(!c||c.backtrack)return null;var h=c.backtrack=i||c.loaded;return c.loaded=null,h},r.getBacktrackData=function(n){var i=e(n),a=this.fragments[i];if(a){var c,h=a.backtrack;if(h!=null&&(c=h.payload)!==null&&c!==void 0&&c.byteLength)return h;this.removeFragment(n)}return null},r.isTimeBuffered=function(n,i,a){for(var c,h,d=0;d<a.length;d++){if(c=a.start(d)-this.bufferPadding,h=a.end(d)+this.bufferPadding,n>=c&&i<=h)return!0;if(i<=c)return!1}return!1},r.onFragLoaded=function(n,i){var a=i.frag,c=i.part;if(a.sn==="initSegment"||a.bitrateTest||c)return;var h=e(a);this.fragments[h]={body:a,loaded:i,backtrack:null,buffered:!1,range:Object.create(null)}},r.onBufferAppended=function(n,i){var a=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(u){var S=d[u];if(a.detectEvictedFragments(u,S),!h)for(var E=0;E<S.length;E++)c.appendedPTS=Math.max(S.end(E),c.appendedPTS||0)})},r.onFragBuffered=function(n,i){this.detectPartialFragments(i)},r.hasFragment=function(n){var i=e(n);return!!this.fragments[i]},r.removeFragmentsInRange=function(n,i,a){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===a&&s.start<i&&s.end>n&&c.removeFragment(s)}})},r.removeFragment=function(n){var i=e(n);n.stats.loaded=0,n.clearElementaryStreamInfo(),delete this.fragments[i]},r.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},f}();function g(f){var r,l;return f.buffered&&(((r=f.range.video)===null||r===void 0?void 0:r.partial)||((l=f.range.audio)===null||l===void 0?void 0:l.partial))}function e(f){return f.type+"_"+f.level+"_"+f.urlId+"_"+f.sn}},"./src/controller/gap-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"STALL_MINIMUM_DURATION_MS",function(){return g}),T.d(m,"MAX_START_GAP_JUMP",function(){return e}),T.d(m,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return f}),T.d(m,"SKIP_BUFFER_RANGE_START",function(){return r}),T.d(m,"default",function(){return l});var b=T("./src/utils/buffer-helper.ts"),y=T("./src/errors.ts"),C=T("./src/events.ts"),A=T("./src/utils/logger.ts"),g=250,e=2,f=.1,r=.05,l=function(){function n(a,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=a,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,u=d.currentTime,S=d.seeking,E=this.seeking&&!S,_=!this.seeking&&S;if(this.seeking=S,u!==c){if(this.moved=!0,s!==null){if(this.stallReported){var P=self.performance.now()-s;A.logger.warn("playback not stuck anymore @"+u+", 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,u,0),x=R.len>0,w=R.nextStart||0;if(!x&&!w)return;if(S){var v=R.len>e,O=!w||w-u>e&&!this.fragmentTracker.getPartialFragment(u);if(v||O)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var U,I=Math.max(w,R.start||0)-u,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(I>0&&I<=H){this._trySkipBufferHole(null);return}}var D=self.performance.now();if(s===null){this.stalled=D;return}var W=D-s;!S&&W>=g&&this._reportStall(R.len);var F=b.BufferHelper.bufferInfo(d,u,h.maxBufferHole);this._tryFixBufferStall(F,W)},i._tryFixBufferStall=function(c,h){var d=this.config,s=this.fragmentTracker,u=this.media,S=u.currentTime,E=s.getPartialFragment(S);if(E){var _=this._trySkipBufferHole(E);if(_)return}c.len>d.maxBufferHole&&h>d.highBufferWatchdogPeriod*1e3&&(A.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,A.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,u=s.currentTime,S=0,E=b.BufferHelper.getBuffered(s),_=0;_<E.length;_++){var P=E.start(_);if(u+h.maxBufferHole>=S&&u<P){var R=Math.max(P+r,s.currentTime+f);return A.logger.warn("skipping hole, adjusting currentTime from "+u+" 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 "+u+" to "+R,frag:c}),R}S=E.end(_)}return 0},i._tryNudgeBuffer=function(){var c=this.config,h=this.hls,d=this.media,s=d.currentTime,u=(this.nudgeRetry||0)+1;if(this.nudgeRetry=u,u<c.nudgeMaxRetry){var S=s+u*c.nudgeOffset;A.logger.warn("Nudging 'currentTime' from "+s+" to "+S),d.currentTime=S,h.trigger(C.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else A.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,m,T){"use strict";T.r(m);var b=T("./src/events.ts"),y=T("./src/utils/texttrack-utils.ts"),C=T("./src/demux/id3.ts"),A=.25,g=function(){function e(r){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=r,this._registerListeners()}var f=e.prototype;return f.destroy=function(){this._unregisterListeners()},f._registerListeners=function(){var l=this.hls;l.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),l.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f._unregisterListeners=function(){var l=this.hls;l.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),l.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f.onMediaAttached=function(l,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(l){if(!this.media)return;for(var n=0;n<l.length;n++){var i=l[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(l,n){if(!this.media)return;var i=n.frag,a=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<a.length;h++){var d=C.getID3Frames(a[h].data);if(d){var s=a[h].pts,u=h<a.length-1?a[h+1].pts:i.end,S=u-s;S<=0&&(u=s+A);for(var E=0;E<d.length;E++){var _=d[E];if(!C.isTimeStampFrame(_)){var P=new c(s,u,"");P.value=_,this.id3Track.addCue(P)}}}}},f.onBufferFlushing=function(l,n){var i=n.startOffset,a=n.endOffset,c=n.type;if(!c||c==="audio"){var h=this.id3Track;h&&Object(y.removeCuesInRange)(h,i,a)}},e}();m.default=g},"./src/controller/latency-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return e});var b=T("./src/errors.ts"),y=T("./src/events.ts"),C=T("./src/utils/logger.ts");function A(f,r){for(var l=0;l<r.length;l++){var n=r[l];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function g(f,r,l){return r&&A(f.prototype,r),l&&A(f,l),f}var e=function(){function f(l){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=l,this.config=l.config,this.registerListeners()}var r=f.prototype;return r.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},r.registerListeners=function(){this.hls.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(y.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(y.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){this.hls.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(y.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(y.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(y.Events.ERROR,this.onError)},r.onMediaAttached=function(n,i){this.media=i.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},r.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},r.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},r.onLevelUpdated=function(n,i){var a=i.details;this.levelDetails=a,a.advanced&&this.timeupdate(),!a.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},r.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")},r.timeupdate=function(){var n=this.media,i=this.levelDetails;if(!n||!i)return;this.currentTime=n.currentTime;var a=this.computeLatency();if(a===null)return;this._latency=a;var c=this.config,h=c.lowLatencyMode,d=c.maxLiveSyncPlaybackRate;if(!h||d===1)return;var s=this.targetLatency;if(s===null)return;var u=a-s,S=Math.min(this.maxLatency,s+i.targetduration),E=u<S;if(i.live&&E&&u>.05&&this.forwardBufferLength>1){var _=Math.min(2,Math.max(1,d)),P=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;n.playbackRate=Math.min(_,Math.max(1,P))}else n.playbackRate!==1&&n.playbackRate!==0&&(n.playbackRate=1)},r.estimateLiveEdge=function(){var n=this.levelDetails;return n===null?null:n.edge+n.age},r.computeLatency=function(){var n=this.estimateLiveEdge();return n===null?null:n-this.currentTime},g(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,a=n.partHoldBack,c=n.targetduration,h=this.config,d=h.liveSyncDuration,s=h.liveSyncDurationCount,u=h.lowLatencyMode,S=this.hls.userConfig,E=u&&a||i;(S.liveSyncDuration||S.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,a=this.levelDetails;if(n===null||i===null||a===null)return null;var c=a.edge,h=n-i-this.edgeStalled,d=c-a.totalduration,s=c-(this.config.lowLatencyMode&&a.partTarget||a.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 a=n.buffered.length;return a?n.buffered.end(a-1):i.edge-this.currentTime}}]),f}()},"./src/controller/level-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return h});var b=T("./src/types/level.ts"),y=T("./src/events.ts"),C=T("./src/errors.ts"),A=T("./src/utils/codecs.ts"),g=T("./src/controller/level-helper.ts"),e=T("./src/controller/base-playlist-controller.ts"),f=T("./src/types/loader.ts");function r(){return r=Object.assign||function(d){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var S in u)Object.prototype.hasOwnProperty.call(u,S)&&(d[S]=u[S])}return d},r.apply(this,arguments)}function l(d,s){for(var u=0;u<s.length;u++){var S=s[u];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(d,S.key,S)}}function n(d,s,u){return s&&l(d.prototype,s),u&&l(d,u),d}function i(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,a(d,s)}function a(d,s){return a=Object.setPrototypeOf||function(S,E){return S.__proto__=E,S},a(d,s)}var c=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),h=function(d){i(s,d);function s(S){var E;return E=d.call(this,S,"[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 u=s.prototype;return u._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)},u._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)},u.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,d.prototype.destroy.call(this)},u.startLoad=function(){var E=this._levels;E.forEach(function(_){_.loadError=0}),d.prototype.startLoad.call(this)},u.onManifestLoaded=function(E,_){var P=[],R=[],x=[],w,v={},O,U=!1,I=!1,N=!1;if(_.levels.forEach(function(W){var F=W.attrs;U=U||!!(W.width&&W.height),I=I||!!W.videoCodec,N=N||!!W.audioCodec,c&&W.audioCodec&&W.audioCodec.indexOf("mp4a.40.34")!==-1&&(W.audioCodec=void 0);var L=W.bitrate+"-"+W.attrs.RESOLUTION+"-"+W.attrs.CODECS;O=v[L],O?O.url.push(W.url):(O=new b.Level(W),v[L]=O,P.push(O)),F&&(F.AUDIO&&Object(g.addGroupId)(O,"audio",F.AUDIO),F.SUBTITLES&&Object(g.addGroupId)(O,"text",F.SUBTITLES))}),(U||I)&&N&&(P=P.filter(function(W){var F=W.videoCodec,L=W.width,K=W.height;return!!F||!!(L&&K)})),P=P.filter(function(W){var F=W.audioCodec,L=W.videoCodec;return(!F||Object(A.isCodecSupportedInMp4)(F,"audio"))&&(!L||Object(A.isCodecSupportedInMp4)(L,"video"))}),_.audioTracks&&(R=_.audioTracks.filter(function(W){return!W.audioCodec||Object(A.isCodecSupportedInMp4)(W.audioCodec,"audio")}),Object(g.assignTrackIdsByGroup)(R)),_.subtitles&&(x=_.subtitles,Object(g.assignTrackIdsByGroup)(x)),P.length>0){w=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===w){this._firstLevel=V,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+w);break}var H=N&&!I,D={levels:P,audioTracks:R,subtitleTracks:x,firstLevel:this._firstLevel,stats:_.stats,audio:N,video:I,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"})},u.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,w=!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 O=this._levels[_.frag.level];O?(O.fragmentError++,O.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&&(w=!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,w)},u.recoverLevel=function(E,_,P,R){var x=E.details,w=this._levels[_];if(w.loadError++,P){var v=this.retryLoadingOrFail(E);if(v)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var O=w.url.length;if(O>1&&w.loadError<O)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)}}},u.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}},u.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)}},u.onLevelLoaded=function(E,_){var P,R=_.level,x=_.details,w=this._levels[R];if(!w){var v;this.warn("Invalid level index "+R),(v=_.deliveryDirectives)!==null&&v!==void 0&&v.skip&&(x.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(w.fragmentError===0&&(w.loadError=0,this.retryCount=0),this.playlistLoaded(R,_,w.details)):(P=_.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(x.deltaUpdateFailed=!0)},u.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,w=0;w<P.audioGroupIds.length;w++)if(P.audioGroupIds[w]===x){R=w;break}R!==P.urlId&&(P.urlId=R,this.startLoad())}},u.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(w){this.warn("Could not construct new URL with HLS Delivery Directives: "+w)}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})}},u.removeLevel=function(E,_){var P=function(w,v){return v!==_},R=this._levels.filter(function(x,w){return w!==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,w){var v=x.details;return v!=null&&v.fragments&&v.fragments.forEach(function(O){O.level=w}),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,w=P[x],v=P[E];this.log("switching to level "+E+" from "+x),this.currentLevelIndex=E;var O=r({},v,{level:E,maxBitrate:v.maxBitrate,uri:v.uri,urlId:v.urlId});delete O._urlId,this.hls.trigger(y.Events.LEVEL_SWITCHING,O);var U=v.details;if(!U||U.live){var I=this.switchParams(v.uri,w==null?void 0:w.details);this.loadPlaylist(I)}}},{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,m,T){"use strict";T.r(m),T.d(m,"addGroupId",function(){return C}),T.d(m,"assignTrackIdsByGroup",function(){return A}),T.d(m,"updatePTS",function(){return g}),T.d(m,"updateFragPTSDTS",function(){return f}),T.d(m,"mergeDetails",function(){return r}),T.d(m,"mapPartIntersection",function(){return l}),T.d(m,"mapFragmentIntersection",function(){return n}),T.d(m,"adjustSliding",function(){return i}),T.d(m,"addSliding",function(){return a}),T.d(m,"computeReloadInterval",function(){return c}),T.d(m,"getFragmentWithSN",function(){return h}),T.d(m,"getPartWith",function(){return d});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/logger.ts");function C(s,u,S){switch(u){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(S);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(S);break}}function A(s){var u={};s.forEach(function(S){var E=S.groupId||"";S.id=u[E]=u[E]||0,u[E]++})}function g(s,u,S){var E=s[u],_=s[S];e(E,_)}function e(s,u){var S=u.startPTS;if(Object(b.isFiniteNumber)(S)){var E=0,_;u.sn>s.sn?(E=S-s.start,_=s):(E=s.start-S,_=u),_.duration!==E&&(_.duration=E)}else if(u.sn>s.sn){var P=s.cc===u.cc;P&&s.minEndPTS?u.start=s.start+(s.minEndPTS-s.start):u.start=s.start+s.duration}else u.start=Math.max(s.start-u.duration,0)}function f(s,u,S,E,_,P){var R=E-S;R<=0&&(y.logger.warn("Fragment should have a positive duration",u),E=S+u.duration,P=_+u.duration);var x=S,w=E,v=u.startPTS,O=u.endPTS;if(Object(b.isFiniteNumber)(v)){var U=Math.abs(v-S);Object(b.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(U,u.deltaPTS):u.deltaPTS=U,x=Math.max(S,v),S=Math.min(S,v),_=Math.min(_,u.startDTS),w=Math.min(E,O),E=Math.max(E,O),P=Math.max(P,u.endDTS)}u.duration=E-S;var I=S-u.start;u.appendedPTS=E,u.start=u.startPTS=S,u.maxStartPTS=x,u.startDTS=_,u.endPTS=E,u.minEndPTS=w,u.endDTS=P;var N=u.sn;if(!s||N<s.startSN||N>s.endSN)return 0;var V,H=N-s.startSN,D=s.fragments;for(D[H]=u,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,I}function r(s,u){for(var S=null,E=s.fragments,_=E.length-1;_>=0;_--){var P=E[_].initSegment;if(P){S=P;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,x;if(n(s,u,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),u.PTSKnown=u.alignedSliding=!0),H.elementaryStreams=V.elementaryStreams,H.loader=V.loader,H.stats=V.stats,H.urlId=V.urlId,V.initSegment&&(H.initSegment=V.initSegment,S=V.initSegment)}),S){var w=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;w.forEach(function(V){var H;(!V.initSegment||V.initSegment.relurl===((H=S)===null||H===void 0?void 0:H.relurl))&&(V.initSegment=S)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(V){return!V}),u.deltaUpdateFailed)){y.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var v=u.skippedSegments;v--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var O=u.fragments;if(R){y.logger.warn("discontinuity sliding from playlist, take drift into account");for(var U=0;U<O.length;U++)O[U].cc+=R}u.skippedSegments&&(u.startCC=u.fragments[0].cc),l(s.partList,u.partList,function(V,H){H.elementaryStreams=V.elementaryStreams,H.stats=V.stats}),x?f(u,x,x.startPTS,x.endPTS,x.startDTS,x.endDTS):i(s,u),O.length&&(u.totalduration=u.edge-O[0].start),u.driftStartTime=s.driftStartTime,u.driftStart=s.driftStart;var I=u.advancedDateTime;if(u.advanced&&I){var N=u.edge;u.driftStart||(u.driftStartTime=I,u.driftStart=N),u.driftEndTime=I,u.driftEnd=N}else u.driftEndTime=s.driftEndTime,u.driftEnd=s.driftEnd,u.advancedDateTime=s.advancedDateTime}function l(s,u,S){if(s&&u)for(var E=0,_=0,P=s.length;_<=P;_++){var R=s[_],x=u[_+E];R&&x&&R.index===x.index&&R.fragment.sn===x.fragment.sn?S(R,x):E--}}function n(s,u,S){for(var E=u.skippedSegments,_=Math.max(s.startSN,u.startSN)-u.startSN,P=(s.fragmentHint?1:0)+(E?u.endSN:Math.min(s.endSN,u.endSN))-u.startSN,R=u.startSN-s.startSN,x=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments,w=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments,v=_;v<=P;v++){var O=w[R+v],U=x[v];E&&!U&&v<E&&(U=u.fragments[v]=O),O&&U&&S(O,U)}}function i(s,u){var S=u.startSN+u.skippedSegments-s.startSN,E=s.fragments;if(S<0||S>=E.length)return;a(u,E[S].start)}function a(s,u){if(u){for(var S=s.fragments,E=s.skippedSegments;E<S.length;E++)S[E].start+=u;s.fragmentHint&&(s.fragmentHint.start+=u)}}function c(s,u){var S=1e3*s.levelTargetDuration,E=S/2,_=s.age,P=_>0&&_<S*3,R=u.loading.end-u.loading.start,x,w=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?(w=Math.min(w||S/2,_),s.availabilityDelay=w,x=w+S-_):x=S-R;return Math.round(x)}function h(s,u,S){if(!s||!s.details)return null;var E=s.details,_=E.fragments[u-E.startSN];return _||(_=E.fragmentHint,_&&_.sn===u?_:u<E.startSN&&S&&S.sn===u?S:null)}function d(s,u,S){if(!s||!s.details)return null;var E=s.details.partList;if(E)for(var _=E.length;_--;){var P=E[_];if(P.index===S&&P.fragment.sn===u)return P}return null}},"./src/controller/stream-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return E});var b=T("./src/polyfills/number.ts"),y=T("./src/controller/base-stream-controller.ts"),C=T("./src/is-supported.ts"),A=T("./src/events.ts"),g=T("./src/utils/buffer-helper.ts"),e=T("./src/controller/fragment-tracker.ts"),f=T("./src/types/loader.ts"),r=T("./src/loader/fragment.ts"),l=T("./src/demux/transmuxer-interface.ts"),n=T("./src/types/transmuxer.ts"),i=T("./src/controller/gap-controller.ts"),a=T("./src/errors.ts"),c=T("./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=_,u(_,P)}function u(_,P){return u=Object.setPrototypeOf||function(x,w){return x.__proto__=w,x},u(_,P)}var S=100,E=function(_){s(P,_);function P(x,w){var v;return v=_.call(this,x,w,"[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 w=this.hls;w.on(A.Events.MEDIA_ATTACHED,this.onMediaAttached,this),w.on(A.Events.MEDIA_DETACHING,this.onMediaDetaching,this),w.on(A.Events.MANIFEST_LOADING,this.onManifestLoading,this),w.on(A.Events.MANIFEST_PARSED,this.onManifestParsed,this),w.on(A.Events.LEVEL_LOADING,this.onLevelLoading,this),w.on(A.Events.LEVEL_LOADED,this.onLevelLoaded,this),w.on(A.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),w.on(A.Events.ERROR,this.onError,this),w.on(A.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),w.on(A.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),w.on(A.Events.BUFFER_CREATED,this.onBufferCreated,this),w.on(A.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),w.on(A.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),w.on(A.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R._unregisterListeners=function(){var w=this.hls;w.off(A.Events.MEDIA_ATTACHED,this.onMediaAttached,this),w.off(A.Events.MEDIA_DETACHING,this.onMediaDetaching,this),w.off(A.Events.MANIFEST_LOADING,this.onManifestLoading,this),w.off(A.Events.MANIFEST_PARSED,this.onManifestParsed,this),w.off(A.Events.LEVEL_LOADED,this.onLevelLoaded,this),w.off(A.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),w.off(A.Events.ERROR,this.onError,this),w.off(A.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),w.off(A.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),w.off(A.Events.BUFFER_CREATED,this.onBufferCreated,this),w.off(A.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),w.off(A.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),w.off(A.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},R.startLoad=function(w){if(this.levels){var v=this.lastCurrentTime,O=this.hls;if(this.stopLoad(),this.setInterval(S),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var U=O.startLevel;U===-1&&(O.config.testBandwidth?(U=0,this.bitrateTest=!0):U=O.nextAutoLevel),this.level=O.nextLoadLevel=U,this.loadedmetadata=!1}v>0&&w===-1&&(this.log("Override startPosition with lastCurrentTime @"+v.toFixed(3)),w=v),this.state=y.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=w,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 w,v=this.levels,O=this.level,U=v==null||((w=v[O])===null||w===void 0)?void 0:w.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 I,N=self.performance.now(),V=this.retryDate;(!V||N>=V||(I=this.media)!==null&&I!==void 0&&I.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 w,v,O=this.hls,U=this.levelLastLoaded,I=this.levels,N=this.media,V=O.config,H=O.nextLoadLevel;if(U===null||!N&&(this.startFragRequested||!V.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!I||!I[H])return;var D=I[H];this.level=O.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 L=F.len,K=this.getMaxBufferLength(D.maxBitrate);if(L>=K)return;if(this._streamEnded(F,W)){var te={};this.altAudio&&(te.type="video"),this.hls.trigger(A.Events.BUFFER_EOS,te),this.state=y.State.ENDED;return}var fe=F.end,de=this.getNextFragment(fe,W);if(this.couldBacktrack&&!this.fragPrevious&&de&&de.sn!=="initSegment"){var Ce=de.sn-W.startSN;Ce>1&&(de=W.fragments[Ce-1],this.fragmentTracker.removeFragment(de))}if(de&&this.fragmentTracker.getState(de)===e.FragmentState.OK&&this.nextLoadPosition>fe){var Oe=this.audioOnly&&!this.altAudio?r.ElementaryStreamTypes.AUDIO:r.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(N,Oe,f.PlaylistLevelType.MAIN),de=this.getNextFragment(this.nextLoadPosition,W)}if(!de)return;de.initSegment&&!de.initSegment.data&&!this.bitrateTest&&(de=de.initSegment),((w=de.decryptdata)===null||w===void 0?void 0:w.keyFormat)==="identity"&&!((v=de.decryptdata)!==null&&v!==void 0&&v.key)?this.loadKey(de,W):this.loadFragment(de,W,fe)},R.loadFragment=function(w,v,O){var U,I=this.fragmentTracker.getState(w);if(this.fragCurrent=w,I===e.FragmentState.BACKTRACKED){var N=this.fragmentTracker.getBacktrackData(w);if(N){this._handleFragmentLoadProgress(N),this._handleFragmentLoadComplete(N);return}else I=e.FragmentState.NOT_LOADED}I===e.FragmentState.NOT_LOADED||I===e.FragmentState.PARTIAL?w.sn==="initSegment"?this._loadInitSegment(w):this.bitrateTest?(w.bitrateTest=!0,this.log("Fragment "+w.sn+" of level "+w.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(w)):(this.startFragRequested=!0,_.prototype.loadFragment.call(this,w,v,O)):I===e.FragmentState.APPENDING?this.reduceMaxBufferLength(w.duration)&&this.fragmentTracker.removeFragment(w):((U=this.media)===null||U===void 0?void 0:U.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(w){var v=this.fragmentTracker.getAppendedFrag(w,f.PlaylistLevelType.MAIN);return v&&"fragment"in v?v.fragment:v},R.getBufferedFrag=function(w){return this.fragmentTracker.getBufferedFrag(w,f.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(w){return w?this.getBufferedFrag(w.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var w=this.levels,v=this.media;if(v!=null&&v.readyState){var O,U=this.getAppendedFrag(v.currentTime);if(U&&U.start>1&&this.flushMainBuffer(0,U.start-1),!v.paused&&w){var I=this.hls.nextLoadLevel,N=w[I],V=this.fragLastKbps;V&&this.fragCurrent?O=this.fragCurrent.duration*N.maxBitrate/(1e3*V)+1:O=0}else O=0;var H=this.getBufferedFrag(v.currentTime+O);if(H){var D=this.followingBufferedFrag(H);if(D){this.abortCurrentFrag();var W=D.maxStartPTS?D.maxStartPTS:D.start,F=D.duration,L=Math.max(H.end,W+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(L,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var w=this.fragCurrent;this.fragCurrent=null,w!=null&&w.loader&&w.loader.abort(),this.state===y.State.KEY_LOADING&&(this.state=y.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(w,v){_.prototype.flushMainBuffer.call(this,w,v,this.altAudio?"video":null)},R.onMediaAttached=function(w,v){_.prototype.onMediaAttached.call(this,w,v);var O=v.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),O.addEventListener("playing",this.onvplaying),O.addEventListener("seeked",this.onvseeked),this.gapController=new i.default(this.config,O,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var w=this.media;w&&(w.removeEventListener("playing",this.onvplaying),w.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 w=this.media,v=w?w.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(A.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(w,v){var O=!1,U=!1,I;v.levels.forEach(function(N){I=N.audioCodec,I&&(I.indexOf("mp4a.40.2")!==-1&&(O=!0),I.indexOf("mp4a.40.5")!==-1&&(U=!0))}),this.audioCodecSwitch=O&&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(w,v){var O=this.levels;if(!O||this.state!==y.State.IDLE)return;var U=O[v.level];(!U.details||U.details.live&&this.levelLastLoaded!==v.level||this.waitForCdnTuneIn(U.details))&&(this.state=y.State.WAITING_LEVEL)},R.onLevelLoaded=function(w,v){var O,U=this.levels,I=v.level,N=v.details,V=N.totalduration;if(!U){this.warn("Levels were reset while loading level "+I);return}this.log("Level "+I+" 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[I],W=0;if(N.live||(O=D.details)!==null&&O!==void 0&&O.live){if(N.fragments[0]||(N.deltaUpdateFailed=!0),N.deltaUpdateFailed)return;W=this.alignPlaylists(N,D.details)}if(D.details=N,this.levelLastLoaded=I,this.hls.trigger(A.Events.LEVEL_UPDATED,{details:N,level:I}),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(w){var v,O=w.frag,U=w.part,I=w.payload,N=this.levels;if(!N){this.warn("Levels were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var V=N[O.level],H=V.details;if(!H){this.warn("Dropping fragment "+O.sn+" of level "+O.level+" after level details were reset");return}var D=V.videoCodec,W=H.PTSKnown||!H.live,F=(v=O.initSegment)===null||v===void 0?void 0:v.data,L=this._getAudioCodec(V),K=this.transmuxer=this.transmuxer||new l.default(this.hls,f.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),te=U?U.index:-1,fe=te!==-1,de=new n.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,I.byteLength,te,fe),Ce=this.initPTS[O.cc];K.push(I,F,L,D,O,U,H.totalduration,W,de,Ce)},R.onAudioTrackSwitching=function(w,v){var O=this.altAudio,U=!!v.url,I=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;O&&V.trigger(A.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),V.trigger(A.Events.AUDIO_TRACK_SWITCHED,{id:I})}},R.onAudioTrackSwitched=function(w,v){var O=v.id,U=!!this.hls.audioTracks[O].url;if(U){var I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=U,this.tick()},R.onBufferCreated=function(w,v){var O=v.tracks,U,I,N=!1;for(var V in O){var H=O[V];if(H.id==="main"){if(I=V,U=H,V==="video"){var D=O[V];D&&(this.videoBuffer=D.buffer)}}else N=!0}N&&U?(this.log("Alternate track found, use "+I+".buffered to schedule main fragment loading"),this.mediaBuffer=U.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(w,v){var O=v.frag,U=v.part;if(O&&O.type!==f.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(U?" p: "+U.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state),this.state===y.State.PARSED&&(this.state=y.State.IDLE);return}var I=U?U.stats:O.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),O.sn!=="initSegment"&&(this.fragPrevious=O),this.fragBufferedComplete(O,U)},R.onError=function(w,v){switch(v.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.PlaylistLevelType.MAIN,v);break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.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 a.ErrorDetails.BUFFER_FULL_ERROR:if(v.parent==="main"&&(this.state===y.State.PARSING||this.state===y.State.PARSED)){var O=!0,U=this.getFwdBufferInfo(this.media,f.PlaylistLevelType.MAIN);U&&U.len>.5&&(O=!this.reduceMaxBufferLength(U.len)),O&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var w=this.media,v=this.gapController;if(!w||!v||!w.readyState)return;var O=g.BufferHelper.getBuffered(w);!this.loadedmetadata&&O.length?(this.loadedmetadata=!0,this.seekToStartPos()):v.poll(this.lastCurrentTime),this.lastCurrentTime=w.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=y.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(w,v){var O=v.type;if(O!==r.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var U=(O===r.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(U,O,f.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(w,v){this.levels=v.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var w=this.media,v=w.currentTime,O=this.startPosition;if(O>=0&&v<O){if(w.seeking){c.logger.log("could not seek to "+O+", already seeking at "+v);return}var U=g.BufferHelper.getBuffered(w),I=U.length?U.start(0):0,N=I-O;N>0&&(N<this.config.maxBufferHole||N<this.config.maxFragLookUpTolerance)&&(c.logger.log("adjusting start position by "+N+" to match buffer start"),O+=N,this.startPosition=O),this.log("seek to target start position "+O+" from current time "+v),w.currentTime=O}},R._getAudioCodec=function(w){var v=this.config.defaultAudioCodec||w.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(w){var v=this;this._doFragLoad(w).then(function(O){var U=v.hls;if(!O||U.nextLoadLevel||v.fragContextChanged(w))return;v.fragLoadError=0,v.state=y.State.IDLE,v.startFragRequested=!1,v.bitrateTest=!1;var I=w.stats;I.parsing.start=I.parsing.end=I.buffering.start=I.buffering.end=self.performance.now(),U.trigger(A.Events.FRAG_LOADED,O)})},R._handleTransmuxComplete=function(w){var v,O="main",U=this.hls,I=w.remuxResult,N=w.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=I.video,L=I.text,K=I.id3,te=I.initSegment,fe=this.altAudio?void 0:I.audio;if(this.fragContextChanged(H))return;if(this.state=y.State.PARSING,te){te.tracks&&(this._bufferInitSegment(W,te.tracks,H,N),U.trigger(A.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:O,tracks:te.tracks}));var de=te.initPTS,Ce=te.timescale;Object(b.isFiniteNumber)(de)&&(this.initPTS[H.cc]=de,U.trigger(A.Events.INIT_PTS_FOUND,{frag:H,id:O,initPTS:de,timescale:Ce}))}if(F&&I.independent!==!1){if(W.details){var Oe=F.startPTS,ce=F.endPTS,Ee=F.startDTS,ye=F.endDTS;if(D)D.elementaryStreams[F.type]={startPTS:Oe,endPTS:ce,startDTS:Ee,endDTS:ye};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var ue=this.getLoadPosition()+this.config.maxBufferHole;if(ue<Oe){this.backtrack(H);return}H.setElementaryStreamInfo(F.type,H.start,ce,H.start,ye,!0)}H.setElementaryStreamInfo(F.type,Oe,ce,Ee,ye),this.bufferFragmentData(F,H,D,N)}}else if(I.independent===!1){this.backtrack(H);return}if(fe){var le=fe.startPTS,$=fe.endPTS,me=fe.startDTS,re=fe.endDTS;D&&(D.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:le,endPTS:$,startDTS:me,endDTS:re}),H.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,le,$,me,re),this.bufferFragmentData(fe,H,D,N)}if(K!=null&&(v=K.samples)!==null&&v!==void 0&&v.length){var ae={frag:H,id:O,samples:K.samples};U.trigger(A.Events.FRAG_PARSING_METADATA,ae)}if(L){var Se={frag:H,id:O,samples:L.samples};U.trigger(A.Events.FRAG_PARSING_USERDATA,Se)}},R._bufferInitSegment=function(w,v,O,U){var I=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=w.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)),w.audioCodec&&w.audioCodec!==D&&this.log('Swapping manifest audio codec "'+w.audioCodec+'" for "'+D+'"'),N.levelCodec=D,N.id="main",this.log("Init audio buffer, container:"+N.container+", codecs[selected/level/parsed]=["+(D||"")+"/"+(w.audioCodec||"")+"/"+N.codec+"]")}V&&(V.levelCodec=w.videoCodec,V.id="main",this.log("Init video buffer, container:"+V.container+", codecs[level/parsed]=["+(w.videoCodec||"")+"/"+V.codec+"]")),H&&this.log("Init audiovideo buffer, container:"+H.container+", codecs[level/parsed]=["+(w.attrs.CODECS||"")+"/"+H.codec+"]"),this.hls.trigger(A.Events.BUFFER_CODECS,v),Object.keys(v).forEach(function(F){var L=v[F],K=L.initSegment;K!=null&&K.byteLength&&I.hls.trigger(A.Events.BUFFER_APPENDING,{type:F,data:K,frag:O,part:null,chunkMeta:U,parent:O.type})}),this.tick()},R.backtrack=function(w){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(w);var v=this.fragmentTracker.backtrack(w);this.fragPrevious=null,this.nextLoadPosition=w.start,v?this.resetFragmentLoading(w):this.state=y.State.BACKTRACKING},R.checkFragmentChanged=function(){var w=this.media,v=null;if(w&&w.readyState>1&&w.seeking===!1){var O=w.currentTime;if(g.BufferHelper.isBuffered(w,O)?v=this.getAppendedFrag(O):g.BufferHelper.isBuffered(w,O+.1)&&(v=this.getAppendedFrag(O+.1)),v){var U=this.fragPlaying,I=v.level;(!U||v.sn!==U.sn||U.level!==I||v.urlId!==U.urlId)&&(this.hls.trigger(A.Events.FRAG_CHANGED,{frag:v}),(!U||U.level!==I)&&this.hls.trigger(A.Events.LEVEL_SWITCHED,{level:I}),this.fragPlaying=v)}}},d(P,[{key:"nextLevel",get:function(){var w=this.nextBufferedFrag;return w?w.level:-1}},{key:"currentLevel",get:function(){var w=this.media;if(w){var v=this.getAppendedFrag(w.currentTime);if(v)return v.level}return-1}},{key:"nextBufferedFrag",get:function(){var w=this.media;if(w){var v=this.getAppendedFrag(w.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,m,T){"use strict";T.r(m),T.d(m,"SubtitleStreamController",function(){return s});var b=T("./src/events.ts"),y=T("./src/utils/logger.ts"),C=T("./src/utils/buffer-helper.ts"),A=T("./src/controller/fragment-finders.ts"),g=T("./src/utils/discontinuities.ts"),e=T("./src/controller/level-helper.ts"),f=T("./src/controller/fragment-tracker.ts"),r=T("./src/controller/base-stream-controller.ts"),l=T("./src/types/loader.ts"),n=T("./src/types/level.ts");function i(u,S){for(var E=0;E<S.length;E++){var _=S[E];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(u,_.key,_)}}function a(u,S,E){return S&&i(u.prototype,S),E&&i(u,E),u}function c(u,S){u.prototype=Object.create(S.prototype),u.prototype.constructor=u,h(u,S)}function h(u,S){return h=Object.setPrototypeOf||function(_,P){return _.__proto__=P,_},h(u,S)}var d=500,s=function(u){c(S,u);function S(_,P){var R;return R=u.call(this,_,P,"[subtitle-stream-controller]")||this,R.levels=[],R.currentTrackId=-1,R.tracksBuffered=[],R.mainDetails=null,R._registerListeners(),R}var E=S.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=r.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,w=R.success;if(this.fragPrevious=x,this.state=r.State.IDLE,!w)return;var v=this.tracksBuffered[this.currentTrackId];if(!v)return;for(var O,U=x.start,I=0;I<v.length;I++)if(U>=v[I].start&&U<=v[I].end){O=v[I];break}var N=x.start+x.duration;O?O.end=N:(O={start:U,end:N},v.push(O)),this.fragmentTracker.fragBuffered(x)},E.onBufferFlushing=function(P,R){var x=R.startOffset,w=R.endOffset;if(x===0&&w!==Number.POSITIVE_INFINITY){var v=this.currentTrackId,O=this.levels;if(!O.length||!O[v]||!O[v].details)return;var U=O[v].details,I=U.targetduration,N=w-I;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,l.PlaylistLevelType.SUBTITLE)}},E.onError=function(P,R){var x,w=R.frag;if(!w||w.type!==l.PlaylistLevelType.SUBTITLE)return;(x=this.fragCurrent)!==null&&x!==void 0&&x.loader&&this.fragCurrent.loader.abort(),this.state=r.State.IDLE},E.onSubtitleTracksUpdated=function(P,R){var x=this,w=R.subtitleTracks;this.tracksBuffered=[],this.levels=w.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,w=R.details,v=R.id,O=this.currentTrackId,U=this.levels;if(!U.length)return;var I=U[O];if(v>=U.length||v!==O||!I)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,w.live||(x=I.details)!==null&&x!==void 0&&x.live){var N=this.mainDetails;if(w.deltaUpdateFailed||!N)return;var V=N.fragments[0];if(!I.details)w.hasProgramDateTime&&N.hasProgramDateTime?Object(g.alignMediaPlaylistByPDT)(w,N):V&&Object(e.addSliding)(w,V.start);else{var H=this.alignPlaylists(w,I.details);H===0&&V&&Object(e.addSliding)(w,V.start)}}if(I.details=w,this.levelLastLoaded=v,this.tick(),w.live&&!this.fragCurrent&&this.media&&this.state===r.State.IDLE){var D=Object(A.findFragmentByPTS)(null,w.fragments,this.media.currentTime,0);D||(this.warn("Subtitle playlist not aligned with playback"),I.details=void 0)}},E._handleFragmentLoadComplete=function(P){var R=P.frag,x=P.payload,w=R.decryptdata,v=this.hls;if(this.fragContextChanged(R))return;if(x&&x.byteLength>0&&w&&w.key&&w.iv&&w.method==="AES-128"){var O=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(x),w.key.buffer,w.iv.buffer).then(function(U){var I=performance.now();v.trigger(b.Events.FRAG_DECRYPTED,{frag:R,payload:U,stats:{tstart:O,tdecrypt:I}})})}},E.doTick=function(){if(!this.media){this.state=r.State.IDLE;return}if(this.state===r.State.IDLE){var P,R=this.currentTrackId,x=this.levels;if(!x.length||!x[R]||!x[R].details)return;var w=x[R].details,v=w.targetduration,O=this.config,U=this.media,I=C.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,U.currentTime-v,O.maxBufferHole),N=I.end,V=I.len,H=this.getMaxBufferLength()+v;if(V>H)return;console.assert(w,"Subtitle track details are defined on idle subtitle stream controller tick");var D=w.fragments,W=D.length,F=w.edge,L,K=this.fragPrevious;if(N<F){var te=O.maxFragLookUpTolerance;K&&w.hasProgramDateTime&&(L=Object(A.findFragmentByPDT)(D,K.endProgramDateTime,te)),L||(L=Object(A.findFragmentByPTS)(K,D,N,te),!L&&K&&K.start<D[0].start&&(L=D[0]))}else L=D[W-1];(P=L)!==null&&P!==void 0&&P.encrypted?(y.logger.log("Loading key for "+L.sn),this.state=r.State.KEY_LOADING,this.hls.trigger(b.Events.KEY_LOADING,{frag:L})):L&&this.fragmentTracker.getState(L)===f.FragmentState.NOT_LOADED&&this.loadFragment(L,w,N)}},E.loadFragment=function(P,R,x){this.fragCurrent=P,u.prototype.loadFragment.call(this,P,R,x)},a(S,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),S}(r.default)},"./src/controller/subtitle-track-controller.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/events.ts"),y=T("./src/utils/texttrack-utils.ts"),C=T("./src/controller/base-playlist-controller.ts"),A=T("./src/types/loader.ts");function g(i,a){for(var c=0;c<a.length;c++){var h=a[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function e(i,a,c){return a&&g(i.prototype,a),c&&g(i,c),i}function f(i,a){i.prototype=Object.create(a.prototype),i.prototype.constructor=i,r(i,a)}function r(i,a){return r=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h},r(i,a)}var l=function(i){f(a,i);function a(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=a.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 u=s.id,S=s.details,E=this.trackId,_=this.tracksInGroup[E];if(!_){this.warn("Invalid subtitle track id "+u);return}var P=_.details;_.details=s.details,this.log("subtitle track "+u+" loaded ["+S.startSN+"-"+S.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,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 u=s.textGroupIds[s.urlId];if(this.groupId!==u){var S=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(R){return!u||R.groupId===u});this.tracksInGroup=E;var _=this.findTrackId(S==null?void 0:S.name)||this.findTrackId();this.groupId=u;var P={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,P),_!==-1&&this.setSubtitleTrack(_,S)}},c.findTrackId=function(d){for(var s=this.tracksInGroup,u=0;u<s.length;u++){var S=s[u];if((!this.selectDefaultTrack||S.default)&&(!d||d===S.name))return S.id}return-1},c.onError=function(d,s){if(i.prototype.onError.call(this,d,s),s.fatal||!s.context)return;s.context.type===A.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 u=s.id,S=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 "+u),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:E,id:u,groupId:S,deliveryDirectives:d||null})}},c.toggleTrackModes=function(d){var s=this,u=this.media,S=this.subtitleDisplay,E=this.trackId;if(!u)return;var _=n(u.textTracks),P=_.filter(function(w){return w.groupId===s.groupId});if(d===-1)[].slice.call(_).forEach(function(w){w.mode="disabled"});else{var R=P[E];R&&(R.mode="disabled")}var x=P[d];x&&(x.mode=S?"showing":"hidden")},c.setSubtitleTrack=function(d,s){var u,S=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=d;return}if(this.trackId!==d&&this.toggleTrackModes(d),this.trackId===d&&(d===-1||(u=S[d])!==null&&u!==void 0&&u.details)||d<-1||d>=S.length)return;this.clearTimer();var E=S[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,w=E.type,v=E.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:_,groupId:R,name:x,type:w,url:v});var O=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(O)}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),u=0;u<s.length;u++)if(s[u].mode==="hidden")d=u;else if(s[u].mode==="showing"){d=u;break}this.subtitleTrack!==d&&(this.subtitleTrack=d)},e(a,[{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)}}]),a}(C.default);function n(i){for(var a=[],c=0;c<i.length;c++){var h=i[c];h.kind==="subtitles"&&h.label&&a.push(i[c])}return a}m.default=l},"./src/controller/timeline-controller.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"TimelineController",function(){return n});var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),C=T("./src/utils/cea-608-parser.ts"),A=T("./src/utils/output-filter.ts"),g=T("./src/utils/webvtt-parser.ts"),e=T("./src/utils/texttrack-utils.ts"),f=T("./src/utils/imsc1-ttml-parser.ts"),r=T("./src/types/loader.ts"),l=T("./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 u=new A.default(this,"textTrack1"),S=new A.default(this,"textTrack2"),E=new A.default(this,"textTrack3"),_=new A.default(this,"textTrack4");this.cea608Parser1=new C.default(1,u,S),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 u=this.hls;u.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),u.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(y.Events.MANIFEST_LOADED,this.onManifestLoaded,this),u.off(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),u.off(y.Events.FRAG_LOADING,this.onFragLoading,this),u.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(y.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),u.off(y.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),u.off(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),u.off(y.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),u.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},d.addCues=function(u,S,E,_,P){for(var R=!1,x=P.length;x--;){var w=P[x],v=a(w[0],w[1],S,E);if(v>=0&&(w[0]=Math.min(w[0],S),w[1]=Math.max(w[1],E),R=!0,v/(E-S)>.5))return}if(R||P.push([S,E]),this.config.renderTextTracksNatively){var O=this.captionsTracks[u];this.Cues.newCue(O,S,E,_)}else{var U=this.Cues.newCue(null,S,E,_);this.hls.trigger(y.Events.CUES_PARSED,{type:"captions",cues:U,track:u})}},d.onInitPtsFound=function(u,S){var E=this,_=S.frag,P=S.id,R=S.initPTS,x=S.timescale,w=this.unparsedVttFrags;P==="main"&&(this.initPTS[_.cc]=R,this.timescale[_.cc]=x),w.length&&(this.unparsedVttFrags=[],w.forEach(function(v){E.onFragLoaded(y.Events.FRAG_LOADED,v)}))},d.getExistingTrack=function(u){var S=this.media;if(S)for(var E=0;E<S.textTracks.length;E++){var _=S.textTracks[E];if(_[u])return _}return null},d.createCaptionsTrack=function(u){this.config.renderTextTracksNatively?this.createNativeTrack(u):this.createNonNativeTrack(u)},d.createNativeTrack=function(u){if(this.captionsTracks[u])return;var S=this.captionsProperties,E=this.captionsTracks,_=this.media,P=S[u],R=P.label,x=P.languageCode,w=this.getExistingTrack(u);if(w)E[u]=w,Object(e.clearCurrentCues)(E[u]),Object(e.sendAddTrackEvent)(E[u],_);else{var v=this.createTextTrack("captions",R,x);v&&(v[u]=!0,E[u]=v)}},d.createNonNativeTrack=function(u){if(this.nonNativeCaptionsTracks[u])return;var S=this.captionsProperties[u];if(!S)return;var E=S.label,_={_id:u,label:E,kind:"captions",default:S.media?!!S.media.default:!1,closedCaptions:S.media};this.nonNativeCaptionsTracks[u]=_,this.hls.trigger(y.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[_]})},d.createTextTrack=function(u,S,E){var _=this.media;return _?_.addTextTrack(u,S,E):void 0},d.onMediaAttaching=function(u,S){this.media=S.media,this._cleanTracks()},d.onMediaDetaching=function(){var u=this.captionsTracks;Object.keys(u).forEach(function(S){Object(e.clearCurrentCues)(u[S]),delete u[S]}),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 u=this.media;if(!u)return;var S=u.textTracks;if(S)for(var E=0;E<S.length;E++)Object(e.clearCurrentCues)(S[E])},d.onSubtitleTracksUpdated=function(u,S){var E=this;this.textTracks=[];var _=S.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,O){var U;if(O<x.length){for(var I=null,N=0;N<x.length;N++)if(i(x[N],v)){I=x[N];break}I&&(U=I)}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 w=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:w})}}},d.onManifestLoaded=function(u,S){var E=this;this.config.enableCEA708Captions&&S.captions&&S.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(u,S){var E=this.cea608Parser1,_=this.cea608Parser2,P=this.lastSn,R=this.lastPartIndex;if(!this.enabled||!(E&&_))return;if(S.frag.type===r.PlaylistLevelType.MAIN){var x,w,v=S.frag.sn,O=(x=S==null||((w=S.part)===null||w===void 0)?void 0:w.index)!=null?x:-1;v===P+1||v===P&&O===R+1||(E.reset(),_.reset()),this.lastSn=v,this.lastPartIndex=O}},d.onFragLoaded=function(u,S){var E=S.frag,_=S.payload,P=this.initPTS,R=this.unparsedVttFrags;if(E.type===r.PlaylistLevelType.SUBTITLE)if(_.byteLength){if(!Object(b.isFiniteNumber)(P[E.cc])){R.push(S),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 w=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),w&&w.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(u,S){var E=this,_=this.hls;Object(f.parseIMSC1)(S,this.initPTS[u.cc],this.timescale[u.cc],function(P){E._appendCues(P,u.level),_.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(P){l.logger.log("Failed to parse IMSC1: "+P),_.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:P})})},d._parseVTTs=function(u,S,E){var _=this,P=this.hls;Object(g.parseWebVTT)(S,this.initPTS[u.cc],this.timescale[u.cc],E,u.cc,u.start,function(R){_._appendCues(R,u.level),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(R){_._fallbackToIMSC1(u,S),l.logger.log("Failed to parse VTT cue: "+R),P.trigger(y.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:R})})},d._fallbackToIMSC1=function(u,S){var E=this,_=this.tracks[u.level];_.textCodec||Object(f.parseIMSC1)(S,this.initPTS[u.cc],this.timescale[u.cc],function(){_.textCodec=f.IMSC1_CODEC,E._parseIMSC1(u,S)},function(){_.textCodec="wvtt"})},d._appendCues=function(u,S){var E=this.hls;if(this.config.renderTextTracksNatively){var _=this.textTracks[S];if(_.mode==="disabled")return;u.forEach(function(x){return Object(e.addCueToTrack)(_,x)})}else{var P=this.tracks[S],R=P.default?"default":"subtitles"+S;E.trigger(y.Events.CUES_PARSED,{type:"subtitles",cues:u,track:R})}},d.onFragDecrypted=function(u,S){var E=S.frag;if(E.type===r.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[E.cc])){this.unparsedVttFrags.push(S);return}this.onFragLoaded(y.Events.FRAG_LOADED,S)}},d.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},d.onFragParsingUserdata=function(u,S){var E=this.cea608Parser1,_=this.cea608Parser2;if(!this.enabled||!(E&&_))return;for(var P=0;P<S.samples.length;P++){var R=S.samples[P].bytes;if(R){var x=this.extractCea608Data(R);E.addData(S.samples[P].pts,x[0]),_.addData(S.samples[P].pts,x[1])}}},d.onBufferFlushing=function(u,S){var E=S.startOffset,_=S.endOffset,P=S.endOffsetSubtitles,R=S.type,x=this.media;if(!x||x.currentTime<_)return;if(!R||R==="video"){var w=this.captionsTracks;Object.keys(w).forEach(function(O){return Object(e.removeCuesInRange)(w[O],E,_)})}if(this.config.renderTextTracksNatively&&(E===0&&P!==void 0)){var v=this.textTracks;Object.keys(v).forEach(function(O){return Object(e.removeCuesInRange)(v[O],E,P)})}},d.extractCea608Data=function(u){for(var S=u[0]&31,E=2,_=[[],[]],P=0;P<S;P++){var R=u[E++],x=127&u[E++],w=127&u[E++],v=(4&R)!==0,O=3&R;if(x===0&&w===0)continue;v&&((O===0||O===1)&&(_[O].push(x),_[O].push(w)))}return _},h}();function i(h,d){return h&&h.label===d.name&&!(h.textTrack1||h.textTrack2)}function a(h,d,s,u){return Math.min(d,u)-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,m,T){"use strict";T.r(m),T.d(m,"default",function(){return b});var b=function(){function y(A,g){this.subtle=void 0,this.aesIV=void 0,this.subtle=A,this.aesIV=g}var C=y.prototype;return C.decrypt=function(g,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,g)},y}()},"./src/crypt/aes-decryptor.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"removePadding",function(){return y}),T.d(m,"default",function(){return C});var b=T("./src/utils/typed-array.ts");function y(A){var g=A.byteLength,e=g&&new DataView(A.buffer).getUint8(g-1);return e?Object(b.sliceUint8)(A,0,g-e):A}var C=function(){function A(){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 g=A.prototype;return g.uint8ArrayToUint32Array_=function(f){for(var r=new DataView(f),l=new Uint32Array(4),n=0;n<4;n++)l[n]=r.getUint32(n*4);return l},g.initTable=function(){var f=this.sBox,r=this.invSBox,l=this.subMix,n=l[0],i=l[1],a=l[2],c=l[3],h=this.invSubMix,d=h[0],s=h[1],u=h[2],S=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,r[x]=_;var w=E[_],v=E[w],O=E[v],U=E[x]*257^x*16843008;n[_]=U<<24|U>>>8,i[_]=U<<16|U>>>16,a[_]=U<<8|U>>>24,c[_]=U,U=O*16843009^v*65537^w*257^_*16843008,d[x]=U<<24|U>>>8,s[x]=U<<16|U>>>16,u[x]=U<<8|U>>>24,S[x]=U,_?(_=w^E[E[E[O^w]]],P^=E[E[P]]):_=P=1}},g.expandKey=function(f){for(var r=this.uint8ArrayToUint32Array_(f),l=!0,n=0;n<r.length&&l;)l=r[n]===this.key[n],n++;if(l)return;this.key=r;var i=this.keySize=r.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);var a=this.ksRows=(i+6+1)*4,c,h,d=this.keySchedule=new Uint32Array(a),s=this.invKeySchedule=new Uint32Array(a),u=this.sBox,S=this.rcon,E=this.invSubMix,_=E[0],P=E[1],R=E[2],x=E[3],w,v;for(c=0;c<a;c++){if(c<i){w=d[c]=r[c];continue}v=w,c%i===0?(v=v<<8|v>>>24,v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255],v^=S[c/i|0]<<24):i>6&&c%i===4&&(v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255]),d[c]=w=(d[c-i]^v)>>>0}for(h=0;h<a;h++)c=a-h,h&3?v=d[c]:v=d[c-4],h<4||c<=4?s[h]=v:s[h]=_[u[v>>>24]]^P[u[v>>>16&255]]^R[u[v>>>8&255]]^x[u[v&255]],s[h]=s[h]>>>0},g.networkToHostOrderSwap=function(f){return f<<24|(f&65280)<<8|(f&16711680)>>8|f>>>24},g.decrypt=function(f,r,l){for(var n=this.keySize+6,i=this.invKeySchedule,a=this.invSBox,c=this.invSubMix,h=c[0],d=c[1],s=c[2],u=c[3],S=this.uint8ArrayToUint32Array_(l),E=S[0],_=S[1],P=S[2],R=S[3],x=new Int32Array(f),w=new Int32Array(x.length),v,O,U,I,N,V,H,D,W,F,L,K,te,fe,de=this.networkToHostOrderSwap;r<x.length;){for(W=de(x[r]),F=de(x[r+1]),L=de(x[r+2]),K=de(x[r+3]),N=W^i[0],V=K^i[1],H=L^i[2],D=F^i[3],te=4,fe=1;fe<n;fe++)v=h[N>>>24]^d[V>>16&255]^s[H>>8&255]^u[D&255]^i[te],O=h[V>>>24]^d[H>>16&255]^s[D>>8&255]^u[N&255]^i[te+1],U=h[H>>>24]^d[D>>16&255]^s[N>>8&255]^u[V&255]^i[te+2],I=h[D>>>24]^d[N>>16&255]^s[V>>8&255]^u[H&255]^i[te+3],N=v,V=O,H=U,D=I,te=te+4;v=a[N>>>24]<<24^a[V>>16&255]<<16^a[H>>8&255]<<8^a[D&255]^i[te],O=a[V>>>24]<<24^a[H>>16&255]<<16^a[D>>8&255]<<8^a[N&255]^i[te+1],U=a[H>>>24]<<24^a[D>>16&255]<<16^a[N>>8&255]<<8^a[V&255]^i[te+2],I=a[D>>>24]<<24^a[N>>16&255]<<16^a[V>>8&255]<<8^a[H&255]^i[te+3],w[r]=de(v^E),w[r+1]=de(I^_),w[r+2]=de(U^P),w[r+3]=de(O^R),E=W,_=F,P=L,R=K,r=r+4}return w.buffer},A}()},"./src/crypt/decrypter.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return r});var b=T("./src/crypt/aes-crypto.ts"),y=T("./src/crypt/fast-aes-key.ts"),C=T("./src/crypt/aes-decryptor.ts"),A=T("./src/utils/logger.ts"),g=T("./src/utils/mp4-tools.ts"),e=T("./src/utils/typed-array.ts"),f=16,r=function(){function l(i,a,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=a,this.removePKCS7Padding=s,s)try{var u=self.crypto;u&&(this.subtle=u.subtle||u.webkitSubtle)}catch(S){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var n=l.prototype;return n.destroy=function(){this.observer=null},n.isSync=function(){return this.config.enableSoftwareAES},n.flush=function(){var a=this.currentResult;if(!a){this.reset();return}var c=new Uint8Array(a);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(a,c,h,d){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(a),c,h);var s=this.flush();s&&d(s.buffer)}else this.webCryptoDecrypt(new Uint8Array(a),c,h).then(d)},n.softwareDecrypt=function(a,c,h){var d=this.currentIV,s=this.currentResult,u=this.remainderData;this.logOnce("JS AES decrypt"),u&&(a=Object(g.appendUint8Array)(u,a),this.remainderData=null);var S=this.getValidChunk(a);if(!S.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(S.buffer,0,h),this.currentIV=Object(e.sliceUint8)(S,-16).buffer,_||null},n.webCryptoDecrypt=function(a,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(u){if(!s)return Promise.reject(new Error("web crypto not initialized"));var S=new b.default(s,h);return S.decrypt(a.buffer,u)}).catch(function(u){return d.onWebCryptoError(u,a,c,h)})},n.onWebCryptoError=function(a,c,h,d){return A.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",a),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(c,h,d)},n.getValidChunk=function(a){var c=a,h=a.length-a.length%f;return h!==a.length&&(c=Object(e.sliceUint8)(a,0,h),this.remainderData=Object(e.sliceUint8)(a,h)),c},n.logOnce=function(a){if(!this.logEnabled)return;A.logger.log("[decrypter.ts]: "+a),this.logEnabled=!1},l}()},"./src/crypt/fast-aes-key.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return b});var b=function(){function y(A,g){this.subtle=void 0,this.key=void 0,this.subtle=A,this.key=g}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,m,T){"use strict";T.r(m);var b=T("./src/demux/base-audio-demuxer.ts"),y=T("./src/demux/adts.ts"),C=T("./src/utils/logger.ts"),A=T("./src/demux/id3.ts");function g(r,l){r.prototype=Object.create(l.prototype),r.prototype.constructor=r,e(r,l)}function e(r,l){return e=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},e(r,l)}var f=function(r){g(l,r);function l(i,a){var c;return c=r.call(this)||this,c.observer=void 0,c.config=void 0,c.observer=i,c.config=a,c}var n=l.prototype;return n.resetInitSegment=function(a,c,h){r.prototype.resetInitSegment.call(this,a,c,h),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:a,duration:h,inputTimeScale:9e4,dropped:0}},l.probe=function(a){if(!a)return!1;for(var c=A.getID3Data(a,0)||[],h=c.length,d=a.length;h<d;h++)if(y.probe(a,h))return C.logger.log("ADTS sync word found !"),!0;return!1},n.canParse=function(a,c){return y.canParse(a,c)},n.appendFrame=function(a,c,h){y.initTrackConfig(a,this.observer,c,h,a.manifestCodec);var d=y.appendFrame(a,c,h,this.initPTS,this.frameIndex);if(d&&d.missing===0)return d},l}(b.default);f.minProbeByteLength=9,m.default=f},"./src/demux/adts.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"getAudioConfig",function(){return A}),T.d(m,"isHeaderPattern",function(){return g}),T.d(m,"getHeaderLength",function(){return e}),T.d(m,"getFullFrameLength",function(){return f}),T.d(m,"canGetFrameLength",function(){return r}),T.d(m,"isHeader",function(){return l}),T.d(m,"canParse",function(){return n}),T.d(m,"probe",function(){return i}),T.d(m,"initTrackConfig",function(){return a}),T.d(m,"getFrameDuration",function(){return c}),T.d(m,"parseFrameHeader",function(){return h}),T.d(m,"appendFrame",function(){return d});var b=T("./src/utils/logger.ts"),y=T("./src/errors.ts"),C=T("./src/events.ts");function A(s,u,S,E){var _,P,R,x,w=navigator.userAgent.toLowerCase(),v=E,O=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];_=((u[S+2]&192)>>>6)+1;var U=(u[S+2]&60)>>>2;if(U>O.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=(u[S+2]&1)<<2,R|=(u[S+3]&192)>>>6,b.logger.log("manifest codec:"+E+", ADTS type:"+_+", samplingIndex:"+U),/firefox/i.test(w)?U>=6?(_=5,x=new Array(4),P=U-3):(_=2,x=new Array(2),P=U):w.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(w))||!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:O[U],channelCount:R,codec:"mp4a.40."+_,manifestCodec:v}}function g(s,u){return s[u]===255&&(s[u+1]&246)===240}function e(s,u){return s[u+1]&1?7:9}function f(s,u){return(s[u+3]&3)<<11|s[u+4]<<3|(s[u+5]&224)>>>5}function r(s,u){return u+5<s.length}function l(s,u){return u+1<s.length&&g(s,u)}function n(s,u){return r(s,u)&&g(s,u)&&f(s,u)<=s.length-u}function i(s,u){if(l(s,u)){var S=e(s,u);if(u+S>=s.length)return!1;var E=f(s,u);if(E<=S)return!1;var _=u+E;return _===s.length||l(s,_)}return!1}function a(s,u,S,E,_){if(!s.samplerate){var P=A(u,S,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,u,S,E,_){var P=e(s,u),R=f(s,u);if(R-=P,R>0){var x=S+E*_;return{headerLength:P,frameLength:R,stamp:x}}}function d(s,u,S,E,_){var P=c(s.samplerate),R=h(u,S,E,_,P);if(R){var x=R.frameLength,w=R.headerLength,v=R.stamp,O=w+x,U=Math.max(0,S+O-u.length),I;U?(I=new Uint8Array(O-w),I.set(u.subarray(S+w,u.length),0)):I=u.subarray(S+w,S+O);var N={unit:I,pts:v};return U||s.samples.push(N),{sample:N,length:O,missing:U}}}},"./src/demux/base-audio-demuxer.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"initPTSFn",function(){return f});var b=T("./src/polyfills/number.ts"),y=T("./src/demux/id3.ts"),C=T("./src/demux/dummy-demuxed-track.ts"),A=T("./src/utils/mp4-tools.ts"),g=T("./src/utils/typed-array.ts"),e=function(){function r(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var l=r.prototype;return l.resetInitSegment=function(i,a,c){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},l.resetTimeStamp=function(){},l.resetContiguity=function(){},l.canParse=function(i,a){return!1},l.appendFrame=function(i,a,c){},l.demux=function(i,a){this.cachedData&&(i=Object(A.appendUint8Array)(this.cachedData,i),this.cachedData=null);var c=y.getID3Data(i,0),h=c?c.length:0,d,s,u=this._audioTrack,S=this._id3Track,E=c?y.getTimeStamp(c):void 0,_=i.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=f(E,a)),c&&c.length>0&&S.samples.push({pts:this.initPTS,dts:this.initPTS,data:c}),s=this.initPTS;h<_;){if(this.canParse(i,h)){var P=this.appendFrame(u,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),S.samples.push({pts:s,dts:s,data:c}),h+=c.length,d=h):h++;if(h===_&&d!==_){var R=Object(g.sliceUint8)(i,d);this.cachedData?this.cachedData=Object(A.appendUint8Array)(this.cachedData,R):this.cachedData=R}}return{audioTrack:u,avcTrack:Object(C.dummyTrack)(),id3Track:S,textTrack:Object(C.dummyTrack)()}},l.demuxSampleAes=function(i,a,c){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},l.flush=function(i){var a=this.cachedData;return a&&(this.cachedData=null,this.demux(a,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(C.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(C.dummyTrack)()}},l.destroy=function(){},r}(),f=function(l,n){return Object(b.isFiniteNumber)(l)?l*90:n*9e4};m.default=e},"./src/demux/chunk-cache.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return b});var b=function(){function C(){this.chunks=[],this.dataLength=0}var A=C.prototype;return A.push=function(e){this.chunks.push(e),this.dataLength+=e.length},A.flush=function(){var e=this.chunks,f=this.dataLength,r;if(e.length)e.length===1?r=e[0]:r=y(e,f);else return new Uint8Array(0);return this.reset(),r},A.reset=function(){this.chunks.length=0,this.dataLength=0},C}();function y(C,A){for(var g=new Uint8Array(A),e=0,f=0;f<C.length;f++){var r=C[f];g.set(r,e),e+=r.length}return g}},"./src/demux/dummy-demuxed-track.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"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,m,T){"use strict";T.r(m);var b=T("./src/utils/logger.ts"),y=function(){function C(g){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=g,this.bytesAvailable=g.byteLength,this.word=0,this.bitsAvailable=0}var A=C.prototype;return A.loadWord=function(){var e=this.data,f=this.bytesAvailable,r=e.byteLength-f,l=new Uint8Array(4),n=Math.min(4,f);if(n===0)throw new Error("no bytes available");l.set(e.subarray(r,r+n)),this.word=new DataView(l.buffer).getUint32(0),this.bitsAvailable=n*8,this.bytesAvailable-=n},A.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)},A.readBits=function(e){var f=Math.min(this.bitsAvailable,e),r=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?r<<f|this.readBits(f):r},A.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()},A.skipUEG=function(){this.skipBits(1+this.skipLZ())},A.skipEG=function(){this.skipBits(1+this.skipLZ())},A.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},A.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},A.readBoolean=function(){return this.readBits(1)===1},A.readUByte=function(){return this.readBits(8)},A.readUShort=function(){return this.readBits(16)},A.readUInt=function(){return this.readBits(32)},A.skipScalingList=function(e){for(var f=8,r=8,l,n=0;n<e;n++)r!==0&&(l=this.readEG(),r=(f+l+256)%256),f=r===0?f:r},A.readSPS=function(){var e=0,f=0,r=0,l=0,n,i,a,c=this.readUByte.bind(this),h=this.readBits.bind(this),d=this.readUEG.bind(this),s=this.readBoolean.bind(this),u=this.skipBits.bind(this),S=this.skipEG.bind(this),E=this.skipUEG.bind(this),_=this.skipScalingList.bind(this);c();var P=c();if(h(5),u(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&&u(1),E(),E(),u(1),s())for(i=R!==3?8:12,a=0;a<i;a++)s()&&(a<6?_(16):_(64))}E();var x=d();if(x===0)d();else if(x===1)for(u(1),S(),S(),n=d(),a=0;a<n;a++)S();E(),u(1);var w=d(),v=d(),O=h(1);O===0&&u(1),u(1),s()&&(e=d(),f=d(),r=d(),l=d());var U=[1,1];if(s()&&s()){var I=c();switch(I){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((w+1)*16-e*2-f*2),height:(2-O)*(v+1)*16-(O?2:4)*(r+l),pixelRatio:U}},A.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},C}();m.default=y},"./src/demux/id3.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"isHeader",function(){return b}),T.d(m,"isFooter",function(){return y}),T.d(m,"getID3Data",function(){return C}),T.d(m,"canParse",function(){return g}),T.d(m,"getTimeStamp",function(){return e}),T.d(m,"isTimeStampFrame",function(){return f}),T.d(m,"getID3Frames",function(){return l}),T.d(m,"decodeFrame",function(){return n}),T.d(m,"utf8ArrayToStr",function(){return d}),T.d(m,"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 w=A(_,P+6);x+=w,y(_,P+10)&&(x+=10),P+=x}return x>0?_.subarray(R,R+x):void 0},A=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},g=function(_,P){return b(_,P)&&A(_,P+6)+10<=_.length-P},e=function(_){for(var P=l(_),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"},r=function(_){var P=String.fromCharCode(_[0],_[1],_[2],_[3]),R=A(_,4),x=10;return{type:P,size:R,data:_.subarray(x,x+R)}},l=function(_){for(var P=0,R=[];b(_,P);){var x=A(_,P+6);P+=10;for(var w=P+x;P+8<w;){var v=r(_.subarray(P)),O=n(v);O&&R.push(O),P+=v.size+10}y(_,P)&&(P+=10)}return R},n=function(_){return _.type==="PRIV"?i(_):_.type[0]==="W"?c(_):a(_)},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}},a=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 w=d(_.data.subarray(1));return{key:_.type,data:w}},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 w=d(_.data);return{key:_.type,data:w}},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=S();if(R){var x=R.decode(_);if(P){var w=x.indexOf("\0");return w!==-1?x.substring(0,w):x}return x.replace(/\0/g,"")}for(var v=_.length,O,U,I,N="",V=0;V<v;){if(O=_[V++],O===0&&P)return N;if(O===0||O===3)continue;switch(O>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:N+=String.fromCharCode(O);break;case 12:case 13:U=_[V++],N+=String.fromCharCode((O&31)<<6|U&63);break;case 14:U=_[V++],I=_[V++],N+=String.fromCharCode((O&15)<<12|(U&63)<<6|(I&63)<<0);break;default:}}return N},s={decodeTextFrame:a},u;function S(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/demux/base-audio-demuxer.ts"),y=T("./src/demux/id3.ts"),C=T("./src/utils/logger.ts"),A=T("./src/demux/mpegaudio.ts");function g(r,l){r.prototype=Object.create(l.prototype),r.prototype.constructor=r,e(r,l)}function e(r,l){return e=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},e(r,l)}var f=function(r){g(l,r);function l(){return r.apply(this,arguments)||this}var n=l.prototype;return n.resetInitSegment=function(a,c,h){r.prototype.resetInitSegment.call(this,a,c,h),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:a,duration:h,inputTimeScale:9e4,dropped:0}},l.probe=function(a){if(!a)return!1;for(var c=y.getID3Data(a,0)||[],h=c.length,d=a.length;h<d;h++)if(A.probe(a,h))return C.logger.log("MPEG Audio sync word found !"),!0;return!1},n.canParse=function(a,c){return A.canParse(a,c)},n.appendFrame=function(a,c,h){return this.initPTS===null?void 0:A.appendFrame(a,c,h,this.initPTS,this.frameIndex)},l}(b.default);f.minProbeByteLength=4,m.default=f},"./src/demux/mp4demuxer.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/utils/mp4-tools.ts"),y=T("./src/demux/dummy-demuxed-track.ts"),C=function(){function A(e,f){this.remainderData=null,this.config=void 0,this.config=f}var g=A.prototype;return g.resetTimeStamp=function(){},g.resetInitSegment=function(){},g.resetContiguity=function(){},A.probe=function(f){return Object(b.findBox)({data:f,start:0,end:Math.min(f.length,16384)},["moof"]).length>0},g.demux=function(f){var r=f,l=Object(y.dummyTrack)();if(this.config.progressive){this.remainderData&&(r=Object(b.appendUint8Array)(this.remainderData,f));var n=Object(b.segmentValidRange)(r);this.remainderData=n.remainder,l.samples=n.valid||new Uint8Array}else l.samples=r;return{audioTrack:Object(y.dummyTrack)(),avcTrack:l,id3Track:Object(y.dummyTrack)(),textTrack:Object(y.dummyTrack)()}},g.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)()}},g.demuxSampleAes=function(f,r,l){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},g.destroy=function(){},A}();C.minProbeByteLength=1024,m.default=C},"./src/demux/mpegaudio.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"appendFrame",function(){return e}),T.d(m,"parseHeader",function(){return f}),T.d(m,"isHeaderPattern",function(){return r}),T.d(m,"isHeader",function(){return l}),T.d(m,"canParse",function(){return n}),T.d(m,"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],A=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],g=[0,1,1,4];function e(a,c,h,d,s){if(h+24>c.length)return;var u=f(c,h);if(u&&h+u.frameLength<=c.length){var S=u.samplesPerFrame*9e4/u.sampleRate,E=d+s*S,_={unit:c.subarray(h,h+u.frameLength),pts:E,dts:E};return a.config=[],a.channelCount=u.channelCount,a.samplerate=u.sampleRate,a.samples.push(_),{sample:_,length:u.frameLength,missing:0}}}function f(a,c){var h=a[c+1]>>3&3,d=a[c+1]>>1&3,s=a[c+2]>>4&15,u=a[c+2]>>2&3;if(h!==1&&s!==0&&s!==15&&u!==3){var S=a[c+2]>>1&1,E=a[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+u],w=E===3?1:2,v=A[h][d],O=g[d],U=v*8*O,I=Math.floor(v*P/x+S)*O;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&&(a[c+3]=a[c+3]|128),{sampleRate:x,channelCount:w,frameLength:I,samplesPerFrame:U}}}function r(a,c){return a[c]===255&&(a[c+1]&224)===224&&(a[c+1]&6)!==0}function l(a,c){return c+1<a.length&&r(a,c)}function n(a,c){var h=4;return r(a,c)&&h<=a.length-c}function i(a,c){if(c+1<a.length&&r(a,c)){var h=4,d=f(a,c),s=h;d!=null&&d.frameLength&&(s=d.frameLength);var u=c+s;return u===a.length||l(a,u)}return!1}},"./src/demux/sample-aes.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/crypt/decrypter.ts"),y=T("./src/demux/tsdemuxer.ts"),C=function(){function A(e,f,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new b.default(e,f,{removePKCS7Padding:!1})}var g=A.prototype;return g.decryptBuffer=function(f,r){this.decrypter.decrypt(f,this.keyData.key.buffer,this.keyData.iv.buffer,r)},g.decryptAacSample=function(f,r,l,n){var i=f[r].unit,a=i.subarray(16,i.length-i.length%16),c=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),h=this;this.decryptBuffer(c,function(d){var s=new Uint8Array(d);i.set(s,16),n||h.decryptAacSamples(f,r+1,l)})},g.decryptAacSamples=function(f,r,l){for(;;r++){if(r>=f.length){l();return}if(f[r].unit.length<32)continue;var n=this.decrypter.isSync();if(this.decryptAacSample(f,r,l,n),!n)return}},g.getAvcEncryptedData=function(f){for(var r=Math.floor((f.length-48)/160)*16+16,l=new Int8Array(r),n=0,i=32;i<=f.length-16;i+=160,n+=16)l.set(f.subarray(i,i+16),n);return l},g.getAvcDecryptedUnit=function(f,r){for(var l=new Uint8Array(r),n=0,i=32;i<=f.length-16;i+=160,n+=16)f.set(l.subarray(n,n+16),i);return f},g.decryptAvcSample=function(f,r,l,n,i,a){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),a||d.decryptAvcSamples(f,r,l+1,n)})},g.decryptAvcSamples=function(f,r,l,n){if(f instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;r++,l=0){if(r>=f.length){n();return}for(var i=f[r].units;!(l>=i.length);l++){var a=i[l];if(a.data.length<=48||a.type!==1&&a.type!==5)continue;var c=this.decrypter.isSync();if(this.decryptAvcSample(f,r,l,n,a,c),!c)return}}},A}();m.default=C},"./src/demux/transmuxer-interface.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return i});var b=T("./node_modules/webworkify-webpack/index.js"),y=T.n(b),C=T("./src/events.ts"),A=T("./src/demux/transmuxer.ts"),g=T("./src/utils/logger.ts"),e=T("./src/errors.ts"),f=T("./src/utils/mediasource-helper.ts"),r=T("./node_modules/eventemitter3/index.js"),l=T.n(r),n=Object(f.getMediaSource)()||{isTypeSupported:function(){return!1}},i=function(){function a(h,d,s,u){var S=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=u;var E=h.config,_=function(v,O){O=O||{},O.frag=S.frag,O.id=S.id,h.trigger(v,O)};this.observer=new r.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"){g.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(w){h.trigger(C.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(w.message+" ("+w.filename+":"+w.lineno+")")})},x.postMessage({cmd:"init",typeSupported:P,vendor:R,id:d,config:JSON.stringify(E)})}catch(w){g.logger.warn("Error in worker:",w),g.logger.error("Error while initializing DemuxerWorker, fallback to inline"),x&&self.URL.revokeObjectURL(x.objectURL),this.transmuxer=new A.default(this.observer,P,E,R,d),this.worker=null}}else this.transmuxer=new A.default(this.observer,P,E,R,d)}var c=a.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 u=this.observer;u&&u.removeAllListeners(),this.observer=null},c.push=function(d,s,u,S,E,_,P,R,x,w){var v=this;x.transmuxing.start=self.performance.now();var O=this.transmuxer,U=this.worker,I=_?_.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,L=!D&&(W===1||W===0&&F===1),K=self.performance.now();(D||W||E.stats.parsing.start===0)&&(E.stats.parsing.start=K),_&&(F||!L)&&(_.stats.parsing.start=K);var te=new A.TransmuxState(H,L,R,D,I);if(!L||H){g.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: `+L+`
|
|
|
accurateTimeOffset: `+R+`
|
|
|
timeOffset: `+I);var fe=new A.TransmuxConfig(u,S,s,P,w);this.configureTransmuxer(fe)}if(this.frag=E,this.part=_,U)U.postMessage({cmd:"demux",data:d,decryptdata:N,chunkMeta:x,state:te},d instanceof ArrayBuffer?[d]:[]);else if(O){var de=O.push(d,N,x,te);Object(A.isPromise)(de)?de.then(function(Ce){v.handleTransmuxComplete(Ce)}):this.handleTransmuxComplete(de)}},c.flush=function(d){var s=this;d.transmuxing.start=self.performance.now();var u=this.transmuxer,S=this.worker;if(S)S.postMessage({cmd:"flush",chunkMeta:d});else if(u){var E=u.flush(d);Object(A.isPromise)(E)?E.then(function(_){s.handleFlushResult(_,d)}):this.handleFlushResult(E,d)}},c.handleFlushResult=function(d,s){var u=this;d.forEach(function(S){u.handleTransmuxComplete(S)}),this.onFlush(s)},c.onWorkerMessage=function(d){var s=d.data,u=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,u.trigger(s.event,s.data);break}}},c.configureTransmuxer=function(d){var s=this.worker,u=this.transmuxer;s?s.postMessage({cmd:"configure",config:d}):u&&u.configure(d)},c.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},a}()},"./src/demux/transmuxer-worker.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return e});var b=T("./src/demux/transmuxer.ts"),y=T("./src/events.ts"),C=T("./src/utils/logger.ts"),A=T("./node_modules/eventemitter3/index.js"),g=T.n(A);function e(i){var a=new A.EventEmitter,c=function(d,s){i.postMessage({event:d,data:s})};a.on(y.Events.FRAG_DECRYPTED,c),a.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(a,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 u=i.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(b.isPromise)(u)?u.then(function(_){f(i,_)}):f(i,u);break}case"flush":{var S=d.chunkMeta,E=i.transmuxer.flush(S);Object(b.isPromise)(E)?E.then(function(_){l(i,_,S)}):l(i,E,S);break}default:break}})}function f(i,a){if(n(a.remuxResult))return;var c=[],h=a.remuxResult,d=h.audio,s=h.video;d&&r(c,d),s&&r(c,s),i.postMessage({event:"transmuxComplete",data:a},c)}function r(i,a){a.data1&&i.push(a.data1.buffer),a.data2&&i.push(a.data2.buffer)}function l(i,a,c){a.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,m,T){"use strict";T.r(m),T.d(m,"default",function(){return s}),T.d(m,"isPromise",function(){return E}),T.d(m,"TransmuxConfig",function(){return _}),T.d(m,"TransmuxState",function(){return P});var b=T("./src/events.ts"),y=T("./src/errors.ts"),C=T("./src/crypt/decrypter.ts"),A=T("./src/demux/aacdemuxer.ts"),g=T("./src/demux/mp4demuxer.ts"),e=T("./src/demux/tsdemuxer.ts"),f=T("./src/demux/mp3demuxer.ts"),r=T("./src/remux/mp4-remuxer.ts"),l=T("./src/remux/passthrough-remuxer.ts"),n=T("./src/demux/chunk-cache.ts"),i=T("./src/utils/mp4-tools.ts"),a=T("./src/utils/logger.ts"),c;try{c=self.performance.now.bind(self.performance)}catch(R){a.logger.debug("Unable to use Performance API on this environment"),c=self.Date.now}var h=[{demux:e.default,remux:r.default},{demux:g.default,remux:l.default},{demux:A.default,remux:r.default},{demux:f.default,remux:r.default}],d=1024;h.forEach(function(R){var x=R.demux;d=Math.max(d,x.minProbeByteLength)});var s=function(){function R(w,v,O,U,I){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=w,this.typeSupported=v,this.config=O,this.vendor=U,this.id=I}var x=R.prototype;return x.configure=function(v){this.transmuxConfig=v,this.decrypter&&this.decrypter.reset()},x.push=function(v,O,U,I){var N=this,V=U.transmuxing;V.executeStart=c();var H=new Uint8Array(v),D=this.cache,W=this.config,F=this.currentTransmuxState,L=this.transmuxConfig;I&&(this.currentTransmuxState=I);var K=u(H,O);if(K&&K.method==="AES-128"){var te=this.getDecrypter();if(W.enableSoftwareAES){var fe=te.softwareDecrypt(H,K.key.buffer,K.iv.buffer);if(!fe)return V.executeEnd=c(),S(U);H=new Uint8Array(fe)}else return this.decryptionPromise=te.webCryptoDecrypt(H,K.key.buffer,K.iv.buffer).then(function(ee){var J=N.push(ee,null,U);return N.decryptionPromise=null,J}),this.decryptionPromise}var de=I||F,Ce=de.contiguous,Oe=de.discontinuity,ce=de.trackSwitch,Ee=de.accurateTimeOffset,ye=de.timeOffset,ue=L.audioCodec,le=L.videoCodec,$=L.defaultInitPts,me=L.duration,re=L.initSegmentData;if((Oe||ce)&&this.resetInitSegment(re,ue,le,me),Oe&&this.resetInitialTimestamp($),Ce||this.resetContiguity(),this.needsProbing(H,Oe,ce)){if(D.dataLength){var ae=D.flush();H=Object(i.appendUint8Array)(ae,H)}this.configureTransmuxer(H,L)}var Se=this.transmux(H,K,ye,Ee,U),oe=this.currentTransmuxState;return oe.contiguous=!0,oe.discontinuity=!1,oe.trackSwitch=!1,V.executeEnd=c(),Se},x.flush=function(v){var O=this,U=v.transmuxing;U.executeStart=c();var I=this.decrypter,N=this.cache,V=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return O.flush(v)});var D=[],W=V.timeOffset;if(I){var F=I.flush();F&&D.push(this.push(F,null,v))}var L=N.dataLength;N.reset();var K=this.demuxer,te=this.remuxer;if(!K||!te)return L>=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(),[S(v)];var fe=K.flush(W);return E(fe)?fe.then(function(de){return O.flushRemux(D,de,v),D}):(this.flushRemux(D,fe,v),D)},x.flushRemux=function(v,O,U){var I=O.audioTrack,N=O.avcTrack,V=O.id3Track,H=O.textTrack,D=this.currentTransmuxState,W=D.accurateTimeOffset,F=D.timeOffset;a.logger.log("[transmuxer.ts]: Flushed fragment "+U.sn+(U.part>-1?" p: "+U.part:"")+" of level "+U.level);var L=this.remuxer.remux(I,N,V,H,F,W,!0,this.id);v.push({remuxResult:L,chunkMeta:U}),U.transmuxing.executeEnd=c()},x.resetInitialTimestamp=function(v){var O=this.demuxer,U=this.remuxer;if(!O||!U)return;O.resetTimeStamp(v),U.resetTimeStamp(v)},x.resetContiguity=function(){var v=this.demuxer,O=this.remuxer;if(!v||!O)return;v.resetContiguity(),O.resetNextTimestamp()},x.resetInitSegment=function(v,O,U,I){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(O,U,I),V.resetInitSegment(v,O,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,O,U,I,N){var V;return O&&O.method==="SAMPLE-AES"?V=this.transmuxSampleAes(v,O,U,I,N):V=this.transmuxUnencrypted(v,U,I,N),V},x.transmuxUnencrypted=function(v,O,U,I){var N=this.demuxer.demux(v,O,!1,!this.config.progressive),V=N.audioTrack,H=N.avcTrack,D=N.id3Track,W=N.textTrack,F=this.remuxer.remux(V,H,D,W,O,U,!1,this.id);return{remuxResult:F,chunkMeta:I}},x.transmuxSampleAes=function(v,O,U,I,N){var V=this;return this.demuxer.demuxSampleAes(v,O,U).then(function(H){var D=V.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,U,I,!1,V.id);return{remuxResult:D,chunkMeta:N}})},x.configureTransmuxer=function(v,O){for(var U=this.config,I=this.observer,N=this.typeSupported,V=this.vendor,H=O.audioCodec,D=O.defaultInitPts,W=O.duration,F=O.initSegmentData,L=O.videoCodec,K,te=0,fe=h.length;te<fe;te++)if(h[te].demux.probe(v)){K=h[te];break}K||(a.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),K={demux:g.default,remux:l.default});var de=this.demuxer,Ce=this.remuxer,Oe=K.remux,ce=K.demux;(!Ce||!(Ce instanceof Oe))&&(this.remuxer=new Oe(I,U,N,V)),(!de||!(de instanceof ce))&&(this.demuxer=new ce(I,U,N),this.probe=ce.probe),this.resetInitSegment(F,H,L,W),this.resetInitialTimestamp(D)},x.needsProbing=function(v,O,U){return!this.demuxer||!this.remuxer||O||U},x.getDecrypter=function(){var v=this.decrypter;return v||(v=this.decrypter=new C.default(this.observer,this.config)),v},R}();function u(R,x){var w=null;return R.byteLength>0&&x!=null&&x.key!=null&&x.iv!==null&&x.method!=null&&(w=x),w}var S=function(x){return{remuxResult:{},chunkMeta:x}};function E(R){return"then"in R&&R.then instanceof Function}var _=function(x,w,v,O,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=w,this.initSegmentData=v,this.duration=O,this.defaultInitPts=U},P=function(x,w,v,O,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=w,this.accurateTimeOffset=v,this.trackSwitch=O,this.timeOffset=U}},"./src/demux/tsdemuxer.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"discardEPB",function(){return S});var b=T("./src/demux/adts.ts"),y=T("./src/demux/mpegaudio.ts"),C=T("./src/demux/exp-golomb.ts"),A=T("./src/demux/id3.ts"),g=T("./src/demux/sample-aes.ts"),e=T("./src/events.ts"),f=T("./src/utils/mp4-tools.ts"),r=T("./src/utils/logger.ts"),l=T("./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&&r.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),w=0;w<x;){if(R[w]===71&&R[w+188]===71&&R[w+2*188]===71)return w;w++}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,w){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=E.createTrack("video",w),this._audioTrack=E.createTrack("audio",w),this._id3Track=E.createTrack("id3",w),this._txtTrack=E.createTrack("text",w),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=R,this.videoCodec=x,this._duration=w},_.resetTimeStamp=function(){},_.resetContiguity=function(){var R=this._audioTrack,x=this._avcTrack,w=this._id3Track;R&&(R.pesData=null),x&&(x.pesData=null),w&&(w.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},_.demux=function(R,x,w,v){w===void 0&&(w=!1),v===void 0&&(v=!1),w||(this.sampleAes=null);var O,U=this._avcTrack,I=this._audioTrack,N=this._id3Track,V=U.pid,H=U.pesData,D=I.pid,W=N.pid,F=I.pesData,L=N.pesData,K=!1,te=this.pmtParsed,fe=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:I,avcTrack:U,id3Track:N,textTrack:this._txtTrack};var Ce=Math.max(0,E.syncOffset(R));de-=(de+Ce)%188,de<R.byteLength&&!v&&(this.remainderData=new Uint8Array(R.buffer,de,R.buffer.byteLength-de));for(var Oe=Ce;Oe<de;Oe+=188)if(R[Oe]===71){var ce=!!(R[Oe+1]&64),Ee=((R[Oe+1]&31)<<8)+R[Oe+2],ye=(R[Oe+3]&48)>>4,ue=void 0;if(ye>1){if(ue=Oe+5+R[Oe+4],ue===Oe+188)continue}else ue=Oe+4;switch(Ee){case V:ce&&(H&&(O=d(H))&&this.parseAVCPES(O,!1),H={data:[],size:0}),H&&(H.data.push(R.subarray(ue,Oe+188)),H.size+=Oe+188-ue);break;case D:ce&&(F&&(O=d(F))&&(I.isAAC?this.parseAACPES(O):this.parseMPEGPES(O)),F={data:[],size:0}),F&&(F.data.push(R.subarray(ue,Oe+188)),F.size+=Oe+188-ue);break;case W:ce&&(L&&(O=d(L))&&this.parseID3PES(O),L={data:[],size:0}),L&&(L.data.push(R.subarray(ue,Oe+188)),L.size+=Oe+188-ue);break;case 0:ce&&(ue+=R[ue]+1),fe=this._pmtId=c(R,ue);break;case fe:{ce&&(ue+=R[ue]+1);var le=h(R,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,w);V=le.avc,V>0&&(U.pid=V),D=le.audio,D>0&&(I.pid=D,I.isAAC=le.isAAC),W=le.id3,W>0&&(N.pid=W),K&&!te&&(r.logger.log("reparse from beginning"),K=!1,Oe=Ce-188),te=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});U.pesData=H,I.pesData=F,N.pesData=L;var $={audioTrack:I,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,w=R.avcTrack,v=R.id3Track,O=w.pesData,U=x.pesData,I=v.pesData,N;O&&(N=d(O))?(this.parseAVCPES(N,!0),w.pesData=null):w.pesData=O,U&&(N=d(U))?(x.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),x.pesData=null):(U!=null&&U.size&&r.logger.log("last AAC PES packet truncated,might overlap between fragments"),x.pesData=U),I&&(N=d(I))?(this.parseID3PES(N),v.pesData=null):v.pesData=I},_.demuxSampleAes=function(R,x,w){var v=this.demux(R,w,!0,!this.config.progressive),O=this.sampleAes=new g.default(this.observer,this.config,x);return this.decrypt(v,O)},_.decrypt=function(R,x){return new Promise(function(w){var v=R.audioTrack,O=R.avcTrack;v.samples&&v.isAAC?x.decryptAacSamples(v.samples,0,function(){O.samples?x.decryptAvcSamples(O.samples,0,0,function(){w(R)}):w(R)}):O.samples&&x.decryptAvcSamples(O.samples,0,0,function(){w(R)})})},_.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},_.parseAVCPES=function(R,x){var w=this,v=this._avcTrack,O=this.parseAVCNALu(R.data),U=!1,I=this.avcSample,N,V=!1;R.data=null,I&&O.length&&!v.audFound&&(s(I,v),I=this.avcSample=a(!1,R.pts,R.dts,"")),O.forEach(function(H){switch(H.type){case 1:{N=!0,I||(I=w.avcSample=a(!0,R.pts,R.dts,"")),U&&(I.debug+="NDR "),I.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)&&(I.key=!0)}break}case 5:N=!0,I||(I=w.avcSample=a(!0,R.pts,R.dts,"")),U&&(I.debug+="IDR "),I.key=!0,I.frame=!0;break;case 6:{N=!0,U&&I&&(I.debug+="SEI ");var F=new C.default(S(H.data));F.readUByte();for(var L=0,K=0,te=!1,fe=0;!te&&F.bytesAvailable>1;){L=0;do fe=F.readUByte(),L+=fe;while(fe===255);K=0;do fe=F.readUByte(),K+=fe;while(fe===255);if(L===4&&F.bytesAvailable!==0){te=!0;var de=F.readUByte();if(de===181){var Ce=F.readUShort();if(Ce===49){var Oe=F.readUInt();if(Oe===1195456820){var ce=F.readUByte();if(ce===3){for(var Ee=F.readUByte(),ye=F.readUByte(),ue=31&Ee,le=[Ee,ye],$=0;$<ue;$++)le.push(F.readUByte()),le.push(F.readUByte()),le.push(F.readUByte());u(w._txtTrack.samples,{type:3,pts:R.pts,bytes:le})}}}}}else if(L===5&&F.bytesAvailable!==0){if(te=!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,Se=new Uint8Array(ae),oe=0;oe<ae;oe++)Se[oe]=F.readUByte();u(w._txtTrack.samples,{pts:R.pts,payloadType:L,uuid:me.join(""),userData:Object(A.utf8ArrayToStr)(Se),userDataBytes:Se})}}else if(K<F.bytesAvailable)for(var ee=0;ee<K;ee++)F.readUByte()}break}case 7:if(N=!0,V=!0,U&&I&&(I.debug+="SPS "),!v.sps){var J=new C.default(H.data),Q=J.readSPS();v.width=Q.width,v.height=Q.height,v.pixelRatio=Q.pixelRatio,v.sps=[H.data],v.duration=w._duration;for(var ve=H.data.subarray(1,4),_e="avc1.",Te=0;Te<3;Te++){var Ge=ve[Te].toString(16);Ge.length<2&&(Ge="0"+Ge),_e+=Ge}v.codec=_e}break;case 8:N=!0,U&&I&&(I.debug+="PPS "),v.pps||(v.pps=[H.data]);break;case 9:N=!1,v.audFound=!0,I&&s(I,v),I=w.avcSample=a(!1,R.pts,R.dts,U?"AUD ":"");break;case 12:N=!1;break;default:N=!1,I&&(I.debug+="unknown NAL "+H.type+" ");break}if(I&&N){var qe=I.units;qe.push(H)}}),x&&I&&(s(I,v),this.avcSample=null)},_.getLastNalUnit=function(){var R,x=this.avcSample,w;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 O=x.units;w=O[O.length-1]}return w},_.parseAVCNALu=function(R){var x=R.byteLength,w=this._avcTrack,v=w.naluState||0,O=v,U=[],I=0,N,V,H,D=-1,W=0;for(v===-1&&(D=0,W=R[0]&31,v=0,I=1);I<x;){if(N=R[I++],!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,I-v-1),type:W};U.push(F)}else{var L=this.getLastNalUnit();if(L&&(O&&I<=4-O&&(L.state&&(L.data=L.data.subarray(0,L.data.byteLength-O))),V=I-v-1,V>0)){var K=new Uint8Array(L.data.byteLength+V);K.set(L.data,0),K.set(R.subarray(0,V),L.data.byteLength),L.data=K,L.state=0}}I<x?(H=R[I]&31,D=I,W=H,v=0):v=-1}else v=0}if(D>=0&&v>=0){var te={data:R.subarray(D,x),type:W,state:v};U.push(te)}if(U.length===0){var fe=this.getLastNalUnit();if(fe){var de=new Uint8Array(fe.data.byteLength+R.byteLength);de.set(fe.data,0),de.set(R,fe.data.byteLength),fe.data=de}}return w.naluState=v,U},_.parseAACPES=function(R){var x=0,w=this._audioTrack,v=this.aacOverFlow,O=R.data;if(v){this.aacOverFlow=null;var U=v.sample.unit.byteLength,I=Math.min(v.missing,U),N=U-I;v.sample.unit.set(O.subarray(0,I),N),w.samples.push(v.sample),x=v.missing}var V,H;for(V=x,H=O.length;V<H-1&&!b.isHeader(O,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),r.logger.warn("parsing error:"+D),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:l.ErrorTypes.MEDIA_ERROR,details:l.ErrorDetails.FRAG_PARSING_ERROR,fatal:W,reason:D}),W)return}b.initTrackConfig(w,this.observer,O,V,this.audioCodec);var F;if(R.pts!==void 0)F=R.pts;else if(v){var L=b.getFrameDuration(w.samplerate);F=v.sample.pts+L}else{r.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var K=0;V<H;)if(b.isHeader(O,V)){if(V+5<H){var te=b.appendFrame(w,O,V,F,K);if(te)if(te.missing)this.aacOverFlow=te;else{V+=te.length,K++;continue}}break}else V++},_.parseMPEGPES=function(R){var x=R.data,w=x.length,v=0,O=0,U=R.pts;if(U===void 0){r.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;O<w;)if(y.isHeader(x,O)){var I=y.appendFrame(this._audioTrack,x,O,U,v);if(I)O+=I.length,v++;else break}else O++},_.parseID3PES=function(R){if(R.pts===void 0){r.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(R)},E}();i.minProbeByteLength=188;function a(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},w=(E[_+1]&15)<<8|E[_+2],v=_+3+w-4,O=(E[_+10]&15)<<8|E[_+11];for(_+=12+O;_<v;){var U=(E[_+1]&31)<<8|E[_+2];switch(E[_]){case 207:if(!R){r.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){r.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):r.logger.log("MPEG audio found, not supported in this browser");break;case 36:r.logger.warn("Unsupported HEVC stream type found");break;default:break}_+=((E[_+3]&15)<<8|E[_+4])+5}return x}function d(E){var _=0,P,R,x,w,v,O=E.data;if(!E||E.size===0)return null;for(;O[0].length<19&&O.length>1;){var U=new Uint8Array(O[0].length+O[1].length);U.set(O[0]),U.set(O[1],O[0].length),O[0]=U,O.splice(1,1)}P=O[0];var I=(P[0]<<16)+(P[1]<<8)+P[2];if(I===1){if(R=(P[4]<<8)+P[5],R&&R>E.size-6)return null;var N=P[7];N&192&&(w=(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,w-v>60*9e4&&(r.logger.warn(Math.round((w-v)/9e4)+"s delta between PTS and DTS, align them"),w=v)):v=w),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=O.length;D<W;D++){P=O[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:w,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&&r.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function u(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 S(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,w=new Uint8Array(x),v=0;for(R=0;R<x;v++,R++)v===P[0]&&(v++,P.shift()),w[R]=E[v];return w}m.default=i},"./src/errors.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"ErrorTypes",function(){return b}),T.d(m,"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,m,T){"use strict";T.r(m),T.d(m,"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,m,T){"use strict";T.r(m),T.d(m,"default",function(){return E});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(b),C=T("./src/loader/playlist-loader.ts"),A=T("./src/loader/key-loader.ts"),g=T("./src/controller/id3-track-controller.ts"),e=T("./src/controller/latency-controller.ts"),f=T("./src/controller/level-controller.ts"),r=T("./src/controller/fragment-tracker.ts"),l=T("./src/controller/stream-controller.ts"),n=T("./src/is-supported.ts"),i=T("./src/utils/logger.ts"),a=T("./src/config.ts"),c=T("./node_modules/eventemitter3/index.js"),h=T.n(c),d=T("./src/events.ts"),s=T("./src/errors.ts");function u(_,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 S(_,P,R){return P&&u(_.prototype,P),R&&u(_,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(a.mergeConfig)(_.DefaultConfig,R);this.userConfig=R,Object(i.enableLogs)(x.debug),this._autoLevelCapping=-1,x.progressive&&Object(a.enableStreamingMode)(x);var w=x.abrController,v=x.bufferController,O=x.capLevelController,U=x.fpsController,I=this.abrController=new w(this),N=this.bufferController=new v(this),V=this.capLevelController=new O(this),H=new U(this),D=new C.default(this),W=new A.default(this),F=new g.default(this),L=this.levelController=new f.default(this),K=new r.FragmentTracker(this),te=this.streamController=new l.default(this,K);V.setStreamController(te),H.setStreamController(te);var fe=[L,te];this.networkControllers=fe;var de=[D,W,I,N,V,H,F,K];this.audioTrackController=this.createController(x.audioTrackController,null,fe),this.createController(x.audioStreamController,K,fe),this.subtitleTrackController=this.createController(x.subtitleTrackController,null,fe),this.createController(x.subtitleStreamController,K,fe),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,w,v){if(x){var O=w?new x(this,w):new x(this);return v&&v.push(O),O}return null},P.on=function(x,w,v){v===void 0&&(v=this),this._emitter.on(x,w,v)},P.once=function(x,w,v){v===void 0&&(v=this),this._emitter.once(x,w,v)},P.removeAllListeners=function(x){this._emitter.removeAllListeners(x)},P.off=function(x,w,v,O){v===void 0&&(v=this),this._emitter.off(x,w,v,O)},P.listeners=function(x){return this._emitter.listeners(x)},P.emit=function(x,w,v){return this._emitter.emit(x,w,v)},P.trigger=function(x,w){if(this.config.debug)return this.emit(x,x,w);try{return this.emit(x,x,w)}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 w=this.media,v=this.url,O=this.url=b.buildAbsoluteURL(self.location.href,x,{alwaysNormalize:!0});i.logger.log("loadSource:"+O),w&&v&&v!==O&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(w)),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(w){w.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,w){w===void 0&&(w=0),this.levelController.removeLevel(x,w)},S(_,[{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 w=!!x;w!==this.config.capLevelToPlayerSize&&(w?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=w)}},{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,w=this.config.minAutoBitrate;if(!x)return 0;for(var v=x.length,O=0;O<v;O++)if(x[O].maxBitrate>w)return O;return 0}},{key:"maxAutoLevel",get:function(){var x=this.levels,w=this.autoLevelCapping,v;return w===-1&&x&&x.length?v=x.length-1:v=w,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 w=this.audioTrackController;w&&(w.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 w=this.subtitleTrackController;w&&(w.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 w=this.subtitleTrackController;w&&(w.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:a.hlsDefaultConfig},set:function(x){_.defaultConfig=x}}]),_}();E.defaultConfig=void 0},"./src/is-supported.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"isSupported",function(){return C}),T.d(m,"changeTypeSupported",function(){return A});var b=T("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function C(){var g=Object(b.getMediaSource)();if(!g)return!1;var e=y(),f=g&&typeof g.isTypeSupported=="function"&&g.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!f&&!!r}function A(){var g,e=y();return typeof(e==null||((g=e.prototype)===null||g===void 0)?void 0:g.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return i}),T.d(m,"LoadError",function(){return c});var b=T("./src/polyfills/number.ts"),y=T("./src/errors.ts");function C(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,r(h,d)}function A(h){var d=typeof Map=="function"?new Map:void 0;return A=function(u){if(u===null||!f(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(u))return d.get(u);d.set(u,S)}function S(){return g(u,arguments,l(this).constructor)}return S.prototype=Object.create(u.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),r(S,u)},A(h)}function g(h,d,s){return e()?g=Reflect.construct:g=function(S,E,_){var P=[null];P.push.apply(P,E);var R=Function.bind.apply(S,P),x=new R;return _&&r(x,_.prototype),x},g.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 r(h,d){return r=Object.setPrototypeOf||function(u,S){return u.__proto__=S,u},r(h,d)}function l(h){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},l(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(u,S){var E=this,_=u.url;if(!_)return Promise.reject(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,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(w,v){E.loader&&E.loader.destroy();var O=E.loader=u.loader=R?new R(P):new x(P),U=a(u),I={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};u.stats=O.stats,O.load(U,I,{onSuccess:function(V,H,D,W){E.resetLoader(u,O),w({frag:u,part:null,payload:V.data,networkDetails:W})},onError:function(V,H,D){E.resetLoader(u,O),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:V,networkDetails:D}))},onAbort:function(V,H,D){E.resetLoader(u,O),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:D}))},onTimeout:function(V,H,D){E.resetLoader(u,O),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:D}))},onProgress:function(V,H,D,W){S&&S({frag:u,part:null,payload:D,networkDetails:W})}})})},d.loadPart=function(u,S,E){var _=this;this.abort();var P=this.config,R=P.fLoader,x=P.loader;return new Promise(function(w,v){_.loader&&_.loader.destroy();var O=_.loader=u.loader=R?new R(P):new x(P),U=a(u,S),I={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};S.stats=O.stats,O.load(U,I,{onSuccess:function(V,H,D,W){_.resetLoader(u,O),_.updateStatsFromPart(u,S);var F={frag:u,part:S,payload:V.data,networkDetails:W};E(F),w(F)},onError:function(V,H,D){_.resetLoader(u,O),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:S,response:V,networkDetails:D}))},onAbort:function(V,H,D){u.stats.aborted=S.stats.aborted,_.resetLoader(u,O),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:S,networkDetails:D}))},onTimeout:function(V,H,D){_.resetLoader(u,O),v(new c({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:S,networkDetails:D}))}})})},d.updateStatsFromPart=function(u,S){var E=u.stats,_=S.stats,P=_.total;if(E.loaded+=_.loaded,P){var R=Math.round(u.duration/S.duration),x=Math.min(Math.round(E.loaded/P),R),w=R-x,v=w*Math.round(E.loaded/x);E.total=E.loaded+v}else E.total=Math.max(E.loaded,E.total);var O=E.loading,U=_.loading;O.start?O.first+=U.first-U.start:(O.start=U.start,O.first=U.first),O.end=U.end},d.resetLoader=function(u,S){u.loader=null,this.loader===S&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),S.destroy()},h}();function a(h,d){d===void 0&&(d=null);var s=d||h,u={frag:h,part:d,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},S=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(b.isFiniteNumber)(S)&&Object(b.isFiniteNumber)(E)&&(u.rangeStart=S,u.rangeEnd=E),u}var c=function(h){C(d,h);function d(s){for(var u,S=arguments.length,E=new Array(S>1?S-1:0),_=1;_<S;_++)E[_-1]=arguments[_];return u=h.call.apply(h,[this].concat(E))||this,u.data=void 0,u.data=s,u}return d}(A(Error))},"./src/loader/fragment.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"ElementaryStreamTypes",function(){return i}),T.d(m,"BaseSegment",function(){return a}),T.d(m,"Fragment",function(){return c}),T.d(m,"Part",function(){return h});var b=T("./src/polyfills/number.ts"),y=T("./node_modules/url-toolkit/src/url-toolkit.js"),C=T.n(y),A=T("./src/utils/logger.ts"),g=T("./src/loader/level-key.ts"),e=T("./src/loader/load-stats.ts");function f(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,r(d,s)}function r(d,s){return r=Object.setPrototypeOf||function(S,E){return S.__proto__=E,S},r(d,s)}function l(d,s){for(var u=0;u<s.length;u++){var S=s[u];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(d,S.key,S)}}function n(d,s,u){return s&&l(d.prototype,s),u&&l(d,u),d}var i;(function(d){d.AUDIO="audio",d.VIDEO="video",d.AUDIOVIDEO="audiovideo"})(i||(i={}));var a=function(){function d(u){var S;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(S={},S[i.AUDIO]=null,S[i.VIDEO]=null,S[i.AUDIOVIDEO]=null,S),this.baseurl=u}var s=d.prototype;return s.setByteRange=function(S,E){var _=S.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(S){this._url=S}}]),d}(),c=function(d){f(s,d);function s(S,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=S,_}var u=s.prototype;return u.createInitializationVector=function(E){for(var _=new Uint8Array(16),P=12;P<16;P++)_[P]=E>>8*(15-P)&255;return _},u.setDecryptDataFromLevelKey=function(E,_){var P=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(P=g.LevelKey.fromURI(E.uri),P.method=E.method,P.iv=this.createInitializationVector(_),P.keyFormat="identity"),P},u.setElementaryStreamInfo=function(E,_,P,R,x,w){w===void 0&&(w=!1);var v=this.elementaryStreams,O=v[E];if(!O){v[E]={startPTS:_,endPTS:P,startDTS:R,endDTS:x,partial:w};return}O.startPTS=Math.min(O.startPTS,_),O.endPTS=Math.max(O.endPTS,P),O.startDTS=Math.min(O.startDTS,R),O.endDTS=Math.max(O.endDTS,x)},u.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&&A.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}(a),h=function(d){f(s,d);function s(u,S,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=u.decimalFloatingPoint("DURATION"),R.gap=u.bool("GAP"),R.independent=u.bool("INDEPENDENT"),R.relurl=u.enumeratedString("URI"),R.fragment=S,R.index=_;var x=u.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 S=this.elementaryStreams;return!!(S.audio||S.video||S.audiovideo)}}]),s}(a)},"./src/loader/key-loader.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return A});var b=T("./src/events.ts"),y=T("./src/errors.ts"),C=T("./src/utils/logger.ts"),A=function(){function g(f){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=f,this._registerListeners()}var e=g.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 r in this.loaders){var l=this.loaders[r];l&&l.destroy()}this.loaders={}},e.onKeyLoading=function(r,l){var n=l.frag,i=n.type,a=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(a&&(C.logger.warn("abort previous key loader for type:"+i),a.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 u={url:c,frag:n,responseType:"arraybuffer"},S={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(u,S,E)}else this.decryptkey&&(n.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:n}))},e.loadsuccess=function(r,l,n){var i=n.frag;if(!i.decryptdata){C.logger.error("after key load, decryptdata unset");return}this.decryptkey=i.decryptdata.key=new Uint8Array(r.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:i})},e.loaderror=function(r,l){var n=l.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:r})},e.loadtimeout=function(r,l){var n=l.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})},g}()},"./src/loader/level-details.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"LevelDetails",function(){return g});var b=T("./src/polyfills/number.ts");function y(e,f){for(var r=0;r<f.length;r++){var l=f[r];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function C(e,f,r){return f&&y(e.prototype,f),r&&y(e,r),e}var A=10,g=function(){function e(r){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=r}var f=e.prototype;return f.reloaded=function(l){if(!l){this.advanced=!0,this.updated=!0;return}var n=this.lastPartSn-l.lastPartSn,i=this.lastPartIndex-l.lastPartIndex;this.updated=this.endSN!==l.endSN||!!i||!!n,this.advanced=this.endSN>l.endSN||n>0||n===0&&i>0,this.updated||this.advanced?this.misses=Math.floor(l.misses*.6):this.misses=l.misses+1,this.availabilityDelay=l.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||A}},{key:"drift",get:function(){var l=this.driftEndTime-this.driftStartTime;if(l>0){var n=this.driftEnd-this.driftStart;return n*1e3/l}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var l;return(l=this.fragments)!==null&&l!==void 0&&l.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 l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var l;return(l=this.partList)!==null&&l!==void 0&&l.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"LevelKey",function(){return g});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(b);function C(e,f){for(var r=0;r<f.length;r++){var l=f[r];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function A(e,f,r){return f&&C(e.prototype,f),r&&C(e,r),e}var g=function(){e.fromURL=function(r,l){return new e(r,l)},e.fromURI=function(r){return new e(r)};function e(f,r){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,r?this._uri=Object(b.buildAbsoluteURL)(f,r,{alwaysNormalize:!0}):this._uri=f}return A(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"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,m,T){"use strict";T.r(m),T.d(m,"default",function(){return s});var b=T("./src/polyfills/number.ts"),y=T("./node_modules/url-toolkit/src/url-toolkit.js"),C=T.n(y),A=T("./src/loader/fragment.ts"),g=T("./src/loader/level-details.ts"),e=T("./src/loader/level-key.ts"),f=T("./src/utils/attr-list.ts"),r=T("./src/utils/logger.ts"),l=T("./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,a=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,w){for(var v=0;v<x.length;v++){var O=x[v];if(O.id===w)return O}},P.convertAVC1ToAVCOTI=function(x){var w=x.split(".");if(w.length>2){var v=w.shift()+".";return v+=parseInt(w.shift()).toString(16),v+=("000"+parseInt(w.shift()).toString(16)).substr(-4),v}return x},P.resolve=function(x,w){return y.buildAbsoluteURL(w,x,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(x,w){var v=[],O={},U=!1;n.lastIndex=0;for(var I;(I=n.exec(x))!=null;)if(I[1]){var N=new f.AttrList(I[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:P.resolve(I[2],w)},H=N.decimalResolution("RESOLUTION");H&&(V.width=H.width,V.height=H.height),u((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(I[3]){var D=new f.AttrList(I[3]);D["DATA-ID"]&&(U=!0,O[D["DATA-ID"]]=D)}return{levels:v,sessionData:U?O:null}},P.parseMasterPlaylistMedia=function(x,w,v,O){O===void 0&&(O=[]);var U,I=[],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,w):""};if(O.length){var D=P.findGroup(O,H.groupId)||O[0];S(H,D,"audioCodec"),S(H,D,"textCodec")}I.push(H)}}return I},P.parseLevelPlaylist=function(x,w,v,O,U){var I=new g.LevelDetails(w),N=I.fragments,V=null,H=0,D=0,W=0,F=0,L=null,K=new A.Fragment(O,w),te,fe,de,Ce=-1,Oe=!1;for(a.lastIndex=0,I.m3u8=x;(te=a.exec(x))!==null;){Oe&&(Oe=!1,K=new A.Fragment(O,w),K.start=W,K.sn=H,K.cc=F,K.level=v,V&&(K.initSegment=V,K.rawProgramDateTime=V.rawProgramDateTime));var ce=te[1];if(ce){K.duration=parseFloat(ce);var Ee=(" "+te[2]).slice(1);K.title=Ee||null,K.tagList.push(Ee?["INF",ce,Ee]:["INF",ce])}else if(te[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=(" "+te[3]).slice(1),_(K,L),L=K,W+=K.duration,H++,D=0,Oe=!0);else if(te[4]){var ye=(" "+te[4]).slice(1);L?K.setByteRange(ye,L):K.setByteRange(ye)}else if(te[5])K.rawProgramDateTime=(" "+te[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Ce===-1&&(Ce=N.length);else{if(te=te[0].match(c),!te){r.logger.warn("No matches on slow regex match for level playlist!");continue}for(fe=1;fe<te.length&&!(typeof te[fe]!="undefined");fe++);var ue=(" "+te[fe]).slice(1),le=(" "+te[fe+1]).slice(1),$=te[fe+2]?(" "+te[fe+2]).slice(1):"";switch(ue){case"PLAYLIST-TYPE":I.type=le.toUpperCase();break;case"MEDIA-SEQUENCE":H=I.startSN=parseInt(le);break;case"SKIP":{var me=new f.AttrList(le),re=me.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(re)){I.skippedSegments=re;for(var ae=re;ae--;)N.unshift(null);H+=re}var Se=me.enumeratedString("RECENTLY-REMOVED-DATERANGES");Se&&(I.recentlyRemovedDateranges=Se.split(" "));break}case"TARGETDURATION":I.targetduration=parseFloat(le);break;case"VERSION":I.version=parseInt(le);break;case"EXTM3U":break;case"ENDLIST":I.live=!1;break;case"#":(le||$)&&K.tagList.push($?[le,$]:[le]);break;case"DIS":F++;case"GAP":K.tagList.push([ue]);break;case"BITRATE":K.tagList.push([ue,le]);break;case"DISCONTINUITY-SEQ":F=parseInt(le);break;case"KEY":{var oe,ee=new f.AttrList(le),J=ee.enumeratedString("METHOD"),Q=ee.URI,ve=ee.hexadecimalInteger("IV"),_e=ee.enumeratedString("KEYFORMATVERSIONS"),Te=ee.enumeratedString("KEYID"),Ge=(oe=ee.enumeratedString("KEYFORMAT"))!=null?oe:"identity",qe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(qe.indexOf(Ge)>-1){r.logger.warn("Keyformat "+Ge+" is not supported from the manifest");continue}else if(Ge!=="identity")continue;J&&(de=e.LevelKey.fromURL(w,Q),Q&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(J)>=0&&(de.method=J,de.keyFormat=Ge,Te&&(de.keyID=Te),_e&&(de.keyFormatVersions=_e),de.iv=ve));break}case"START":{var ut=new f.AttrList(le),st=ut.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(st)&&(I.startTimeOffset=st);break}case"MAP":{var ft=new f.AttrList(le);K.relurl=ft.URI,ft.BYTERANGE&&K.setByteRange(ft.BYTERANGE),K.level=v,K.sn="initSegment",de&&(K.levelkey=de),K.initSegment=null,V=K,Oe=!0;break}case"SERVER-CONTROL":{var gt=new f.AttrList(le);I.canBlockReload=gt.bool("CAN-BLOCK-RELOAD"),I.canSkipUntil=gt.optionalFloat("CAN-SKIP-UNTIL",0),I.canSkipDateRanges=I.canSkipUntil>0&>.bool("CAN-SKIP-DATERANGES"),I.partHoldBack=gt.optionalFloat("PART-HOLD-BACK",0),I.holdBack=gt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ve=new f.AttrList(le);I.partTarget=Ve.decimalFloatingPoint("PART-TARGET");break}case"PART":{var ke=I.partList;ke||(ke=I.partList=[]);var dt=D>0?ke[ke.length-1]:void 0,Bt=D++,vt=new A.Part(new f.AttrList(le),K,w,Bt,dt);ke.push(vt),K.duration+=vt.duration;break}case"PRELOAD-HINT":{var Rt=new f.AttrList(le);I.preloadHint=Rt;break}case"RENDITION-REPORT":{var ot=new f.AttrList(le);I.renditionReports=I.renditionReports||[],I.renditionReports.push(ot);break}default:r.logger.warn("line parsed but not handled: "+te);break}}}L&&!L.relurl?(N.pop(),W-=L.duration,I.partList&&(I.fragmentHint=L)):I.partList&&(_(K,L),K.cc=F,I.fragmentHint=K);var Je=N.length,et=N[0],Me=N[Je-1];if(W+=I.skippedSegments*I.targetduration,W>0&&Je&&Me){I.averagetargetduration=W/Je;var Be=Me.sn;I.endSN=Be!=="initSegment"?Be:0,et&&(I.startCC=et.cc,et.initSegment||I.fragments.every(function(Xe){return Xe.relurl&&d(Xe.relurl)})&&(r.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new A.Fragment(O,w),K.relurl=Me.relurl,K.level=v,K.sn="initSegment",et.initSegment=K,I.needSidxRanges=!0))}else I.endSN=0,I.startCC=0;return I.fragmentHint&&(W+=I.fragmentHint.duration),I.totalduration=W,I.endCC=F,Ce>0&&E(N,Ce),I},P}();function u(P,R){["video","audio","text"].forEach(function(x){var w=P.filter(function(O){return Object(l.isCodecType)(O,x)});if(w.length){var v=w.filter(function(O){return O.lastIndexOf("avc1",0)===0||O.lastIndexOf("mp4a",0)===0});R[x+"Codec"]=v.length>0?v[0]:w[0],P=P.filter(function(O){return w.indexOf(O)===-1})}}),R.unknownCodecs=P}function S(P,R,x){var w=R[x];w&&(P[x]=w)}function E(P,R){for(var x=P[R],w=R;w--;){var v=P[w];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,m,T){"use strict";T.r(m);var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),C=T("./src/errors.ts"),A=T("./src/utils/logger.ts"),g=T("./src/utils/mp4-tools.ts"),e=T("./src/loader/m3u8-parser.ts"),f=T("./src/types/loader.ts"),r=T("./src/utils/attr-list.ts");function l(a){var c=a.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(a,c){var h=a.url;return(h===void 0||h.indexOf("data:")===0)&&(h=c.url),h}var i=function(){function a(h){this.hls=void 0,this.loaders=Object.create(null),this.hls=h,this.registerListeners()}var c=a.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,u=s.pLoader,S=s.loader,E=u||S,_=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 u=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:f.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},c.onLevelLoading=function(d,s){var u=s.id,S=s.level,E=s.url,_=s.deliveryDirectives;this.load({id:u,groupId:null,level:S,responseType:"text",type:f.PlaylistContextType.LEVEL,url:E,deliveryDirectives:_})},c.onAudioTrackLoading=function(d,s){var u=s.id,S=s.groupId,E=s.url,_=s.deliveryDirectives;this.load({id:u,groupId:S,level:null,responseType:"text",type:f.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:_})},c.onSubtitleTrackLoading=function(d,s){var u=s.id,S=s.groupId,E=s.url,_=s.deliveryDirectives;this.load({id:u,groupId:S,level:null,responseType:"text",type:f.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:_})},c.load=function(d){var s,u=this.hls.config,S=this.getInternalLoader(d);if(S){var E=S.context;if(E&&E.url===d.url){A.logger.trace("[playlist-loader]: playlist request ongoing");return}A.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),S.abort()}var _,P,R,x;switch(d.type){case f.PlaylistContextType.MANIFEST:_=u.manifestLoadingMaxRetry,P=u.manifestLoadingTimeOut,R=u.manifestLoadingRetryDelay,x=u.manifestLoadingMaxRetryTimeout;break;case f.PlaylistContextType.LEVEL:case f.PlaylistContextType.AUDIO_TRACK:case f.PlaylistContextType.SUBTITLE_TRACK:_=0,P=u.levelLoadingTimeOut;break;default:_=u.levelLoadingMaxRetry,P=u.levelLoadingTimeOut,R=u.levelLoadingRetryDelay,x=u.levelLoadingMaxRetryTimeout;break}if(S=this.createInternalLoader(d),(s=d.deliveryDirectives)!==null&&s!==void 0&&s.part){var w;if(d.type===f.PlaylistContextType.LEVEL&&d.level!==null?w=this.hls.levels[d.level].details:d.type===f.PlaylistContextType.AUDIO_TRACK&&d.id!==null?w=this.hls.audioTracks[d.id].details:d.type===f.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(w=this.hls.subtitleTracks[d.id].details),w){var v=w.partTarget,O=w.targetduration;v&&O&&(P=Math.min(Math.max(v*3,O*.8)*1e3,P))}}var U={timeout:P,maxRetry:_,retryDelay:R,maxRetryDelay:x,highWaterMark:0},I={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};S.load(d,U,I)},c.loadsuccess=function(d,s,u,S){if(S===void 0&&(S=null),u.isSidxRequest){this.handleSidxRequest(d,u),this.handlePlaylistLoaded(d,s,u,S);return}this.resetInternalLoader(u.type);var E=d.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,u,"no EXTM3U delimiter",S);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,s,u,S):this.handleMasterPlaylist(d,s,u,S)},c.loaderror=function(d,s,u){u===void 0&&(u=null),this.handleNetworkError(s,u,!1,d)},c.loadtimeout=function(d,s,u){u===void 0&&(u=null),this.handleNetworkError(s,u,!0)},c.handleMasterPlaylist=function(d,s,u,S){var E=this.hls,_=d.data,P=n(d,u),R=e.default.parseMasterPlaylist(_,P),x=R.levels,w=R.sessionData;if(!x.length){this.handleManifestParsingError(d,u,"no level found in manifest",S);return}var v=x.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),O=x.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),U=e.default.parseMasterPlaylistMedia(_,P,"AUDIO",v),I=e.default.parseMasterPlaylistMedia(_,P,"SUBTITLES",O),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&&(A.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 r.AttrList({}),bitrate:0,url:""}))}E.trigger(y.Events.MANIFEST_LOADED,{levels:x,audioTracks:U,subtitles:I,captions:N,url:P,stats:s,networkDetails:S,sessionData:w})},c.handleTrackOrLevelPlaylist=function(d,s,u,S){var E=this.hls,_=u.id,P=u.level,R=u.type,x=n(d,u),w=Object(b.isFiniteNumber)(_)?_:0,v=Object(b.isFiniteNumber)(P)?P:w,O=l(u),U=e.default.parseLevelPlaylist(d.data,x,v,O,w);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 u.level=="number"?u.level:void 0});return}if(R===f.PlaylistContextType.MANIFEST){var I={attrs:new r.AttrList({}),bitrate:0,details:U,name:"",url:x};E.trigger(y.Events.MANIFEST_LOADED,{levels:[I],audioTracks:[],url:x,stats:s,networkDetails:S,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}u.levelDetails=U,this.handlePlaylistLoaded(d,s,u,S)},c.handleSidxRequest=function(d,s){var u=Object(g.parseSegmentIndex)(new Uint8Array(d.data));if(!u)return;var S=u.references,E=s.levelDetails;S.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(u.moovEndOffset)+"@0")})},c.handleManifestParsingError=function(d,s,u,S){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:u,response:d,context:s,networkDetails:S})},c.handleNetworkError=function(d,s,u,S){u===void 0&&(u=!1),A.logger.warn("[playlist-loader]: A network "+(u?"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=u?C.ErrorDetails.MANIFEST_LOAD_TIMEOUT:C.ErrorDetails.MANIFEST_LOAD_ERROR,_=!0;break;case f.PlaylistContextType.LEVEL:E=u?C.ErrorDetails.LEVEL_LOAD_TIMEOUT:C.ErrorDetails.LEVEL_LOAD_ERROR,_=!1;break;case f.PlaylistContextType.AUDIO_TRACK:E=u?C.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:C.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case f.PlaylistContextType.SUBTITLE_TRACK:E=u?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};S&&(R.response=S),this.hls.trigger(y.Events.ERROR,R)},c.handlePlaylistLoaded=function(d,s,u,S){var E=u.type,_=u.level,P=u.id,R=u.groupId,x=u.loader,w=u.levelDetails,v=u.deliveryDirectives;if(!(w!=null&&w.targetduration)){this.handleManifestParsingError(d,u,"invalid target duration",S);return}if(!x)return;w.live&&(x.getCacheAge&&(w.ageHeader=x.getCacheAge()||0),(!x.getCacheAge||isNaN(w.ageHeader))&&(w.ageHeader=0));switch(E){case f.PlaylistContextType.MANIFEST:case f.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:w,level:_||0,id:P||0,stats:s,networkDetails:S,deliveryDirectives:v});break;case f.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:w,id:P||0,groupId:R||"",stats:s,networkDetails:S,deliveryDirectives:v});break;case f.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:w,id:P||0,groupId:R||"",stats:s,networkDetails:S,deliveryDirectives:v});break}},a}();m.default=i},"./src/polyfills/number.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"isFiniteNumber",function(){return b}),T.d(m,"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,m,T){"use strict";T.r(m);var b=function(){function y(){}return y.getSilentFrame=function(A,g){switch(A){case"mp4a.40.2":if(g===1)return new Uint8Array([0,200,0,128,35,128]);if(g===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(g===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(g===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(g===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(g===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(g===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(g===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(g===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}();m.default=b},"./src/remux/mp4-generator.ts":function(M,m,T){"use strict";T.r(m);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 g;for(g in C.types)C.types.hasOwnProperty(g)&&(C.types[g]=[g.charCodeAt(0),g.charCodeAt(1),g.charCodeAt(2),g.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 r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),l=new Uint8Array([0,0,0,0,0,0,0,0]);C.STTS=C.STSC=C.STCO=l,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]),a=new Uint8Array([0,0,0,1]);C.FTYP=C.box(C.types.ftyp,n,a,n,i),C.DINF=C.box(C.types.dinf,C.box(C.types.dref,r))},C.box=function(g){for(var e=8,f=arguments.length,r=new Array(f>1?f-1:0),l=1;l<f;l++)r[l-1]=arguments[l];for(var n=r.length,i=n;n--;)e+=r[n].byteLength;var a=new Uint8Array(e);for(a[0]=e>>24&255,a[1]=e>>16&255,a[2]=e>>8&255,a[3]=e&255,a.set(g,4),n=0,e=8;n<i;n++)a.set(r[n],e),e+=r[n].byteLength;return a},C.hdlr=function(g){return C.box(C.types.hdlr,C.HDLR_TYPES[g])},C.mdat=function(g){return C.box(C.types.mdat,g)},C.mdhd=function(g,e){e*=g;var f=Math.floor(e/(b+1)),r=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,g>>24&255,g>>16&255,g>>8&255,g&255,f>>24,f>>16&255,f>>8&255,f&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))},C.mdia=function(g){return C.box(C.types.mdia,C.mdhd(g.timescale,g.duration),C.hdlr(g.type),C.minf(g))},C.mfhd=function(g){return C.box(C.types.mfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255]))},C.minf=function(g){return g.type==="audio"?C.box(C.types.minf,C.box(C.types.smhd,C.SMHD),C.DINF,C.stbl(g)):C.box(C.types.minf,C.box(C.types.vmhd,C.VMHD),C.DINF,C.stbl(g))},C.moof=function(g,e,f){return C.box(C.types.moof,C.mfhd(g),C.traf(f,e))},C.moov=function(g){for(var e=g.length,f=[];e--;)f[e]=C.trak(g[e]);return C.box.apply(null,[C.types.moov,C.mvhd(g[0].timescale,g[0].duration)].concat(f).concat(C.mvex(g)))},C.mvex=function(g){for(var e=g.length,f=[];e--;)f[e]=C.trex(g[e]);return C.box.apply(null,[C.types.mvex].concat(f))},C.mvhd=function(g,e){e*=g;var f=Math.floor(e/(b+1)),r=Math.floor(e%(b+1)),l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,g>>24&255,g>>16&255,g>>8&255,g&255,f>>24,f>>16&255,f>>8&255,f&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return C.box(C.types.mvhd,l)},C.sdtp=function(g){var e=g.samples||[],f=new Uint8Array(4+e.length),r,l;for(r=0;r<e.length;r++)l=e[r].flags,f[r+4]=l.dependsOn<<4|l.isDependedOn<<2|l.hasRedundancy;return C.box(C.types.sdtp,f)},C.stbl=function(g){return C.box(C.types.stbl,C.stsd(g),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(g){var e=[],f=[],r,l,n;for(r=0;r<g.sps.length;r++)l=g.sps[r],n=l.byteLength,e.push(n>>>8&255),e.push(n&255),e=e.concat(Array.prototype.slice.call(l));for(r=0;r<g.pps.length;r++)l=g.pps[r],n=l.byteLength,f.push(n>>>8&255),f.push(n&255),f=f.concat(Array.prototype.slice.call(l));var i=C.box(C.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|g.sps.length].concat(e).concat([g.pps.length]).concat(f))),a=g.width,c=g.height,h=g.pixelRatio[0],d=g.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,a>>8&255,a&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(g){var e=g.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(g.config).concat([6,1,2]))},C.mp4a=function(g){var e=g.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,g.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),C.box(C.types.esds,C.esds(g)))},C.mp3=function(g){var e=g.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,g.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},C.stsd=function(g){return g.type==="audio"?!g.isAAC&&g.codec==="mp3"?C.box(C.types.stsd,C.STSD,C.mp3(g)):C.box(C.types.stsd,C.STSD,C.mp4a(g)):C.box(C.types.stsd,C.STSD,C.avc1(g))},C.tkhd=function(g){var e=g.id,f=g.duration*g.timescale,r=g.width,l=g.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,r>>8&255,r&255,0,0,l>>8&255,l&255,0,0]))},C.traf=function(g,e){var f=C.sdtp(g),r=g.id,l=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,r>>24,r>>16&255,r>>8&255,r&255])),C.box(C.types.tfdt,new Uint8Array([1,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,n>>24,n>>16&255,n>>8&255,n&255])),C.trun(g,f.length+16+20+8+16+8+8),f)},C.trak=function(g){return g.duration=g.duration||4294967295,C.box(C.types.trak,C.tkhd(g),C.mdia(g))},C.trex=function(g){var e=g.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(g,e){var f=g.samples||[],r=f.length,l=12+16*r,n=new Uint8Array(l),i,a,c,h,d,s;for(e+=8+l,n.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),i=0;i<r;i++)a=f[i],c=a.duration,h=a.size,d=a.flags,s=a.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(g){C.types||C.init();var e=C.moov(g),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,m.default=y},"./src/remux/mp4-remuxer.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return s}),T.d(m,"normalizePts",function(){return u});var b=T("./src/polyfills/number.ts"),y=T("./src/remux/aac-helper.ts"),C=T("./src/remux/mp4-generator.ts"),A=T("./src/events.ts"),g=T("./src/errors.ts"),e=T("./src/utils/logger.ts"),f=T("./src/types/loader.ts"),r=T("./src/utils/timescale-conversion.ts");function l(){return l=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var x=arguments[R];for(var w in x)Object.prototype.hasOwnProperty.call(x,w)&&(P[w]=x[w])}return P},l.apply(this,arguments)}var n=10*1e3,i=1024,a=1152,c=null,h=null,d=!1,s=function(){function P(x,w,v,O){if(O===void 0&&(O=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=x,this.config=w,this.typeSupported=v,this.ISGenerated=!1,c===null){var U=navigator.userAgent||"",I=U.match(/Chrome\/(\d+)/i);c=I?parseInt(I[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(w){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=w},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(w){var v=!1,O=w.reduce(function(U,I){var N=I.pts-U;return N<-4294967296?(v=!0,u(U,I.pts)):N>0?U:I.pts},w[0].pts);return v&&e.logger.debug("PTS rollover detected"),O},R.remux=function(w,v,O,U,I,N,V,H){var D,W,F,L,K,te,fe=I,de=I,Ce=w.pid>-1,Oe=v.pid>-1,ce=v.samples.length,Ee=w.samples.length>0,ye=ce>1,ue=(!Ce||Ee)&&(!Oe||ye)||this.ISGenerated||V;if(ue){this.ISGenerated||(F=this.generateIS(w,v,I));var le=this.isVideoContiguous,$=-1;if(ye&&($=S(v.samples),!le&&this.config.forceKeyFrameOnDiscontinuity))if(te=!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"),te=!1);if(this.ISGenerated){if(Ee&&ye){var re=this.getVideoStartPts(v.samples),ae=u(w.samples[0].pts,re)-re,Se=ae/v.inputTimeScale;fe+=Math.max(0,Se),de+=Math.max(0,-Se)}if(Ee){if(w.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(w,v,I)),W=this.remuxAudio(w,fe,this.isAudioContiguous,N,Oe||ye||H===f.PlaylistLevelType.AUDIO?de:void 0),ye){var oe=W?W.endPTS-W.startPTS:0;v.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(w,v,I)),D=this.remuxVideo(v,de,le,oe)}}else ye&&(D=this.remuxVideo(v,de,le,0));D&&(D.firstKeyFrame=$,D.independent=$!==-1)}}return this.ISGenerated&&(O.samples.length&&(K=this.remuxID3(O,I)),U.samples.length&&(L=this.remuxText(U,I))),{audio:W,video:D,initSegment:F,independent:te,text:L,id3:K}},R.generateIS=function(w,v,O){var U=w.samples,I=v.samples,N=this.typeSupported,V={},H=!Object(b.isFiniteNumber)(this._initPTS),D="audio/mp4",W,F,L;if(H&&(W=F=Infinity),w.config&&U.length&&(w.timescale=w.samplerate,w.isAAC||(N.mpeg?(D="audio/mpeg",w.codec=""):N.mp3&&(w.codec="mp3")),V.audio={id:"audio",container:D,codec:w.codec,initSegment:!w.isAAC&&N.mpeg?new Uint8Array(0):C.default.initSegment([w]),metadata:{channelCount:w.channelCount}},H&&(L=w.inputTimeScale,W=F=U[0].pts-Math.round(L*O))),v.sps&&v.pps&&I.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)){L=v.inputTimeScale;var K=this.getVideoStartPts(I),te=Math.round(L*O);F=Math.min(F,u(I[0].dts,K)-te),W=Math.min(W,K-te)}if(Object.keys(V).length)return this.ISGenerated=!0,H&&(this._initPTS=W,this._initDTS=F),{tracks:V,initPTS:W,timescale:L}},R.remuxVideo=function(w,v,O,U){var I=w.inputTimeScale,N=w.samples,V=[],H=N.length,D=this._initPTS,W=this.nextAvcDts,F=8,L,K,te,fe=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,Ce=0,Oe=!1;if(!O||W===null){var ce=v*I,Ee=N[0].pts-u(N[0].dts,N[0].pts);W=ce-Ee}for(var ye=0;ye<H;ye++){var ue=N[ye];if(ue.pts=u(ue.pts-D,W),ue.dts=u(ue.dts-D,W),ue.dts>ue.pts){var le=9e4*.2;Ce=Math.max(Math.min(Ce,ue.pts-ue.dts),-1*le)}ue.dts<N[ye>0?ye-1:ye].dts&&(Oe=!0)}Oe&&N.sort(function(Et,je){var rt=Et.dts-je.dts,at=Et.pts-je.pts;return rt||at}),K=N[0].dts,te=N[N.length-1].dts;var $=Math.round((te-K)/(H-1));if(Ce<0){if(Ce<$*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(r.toMsFromMpegTsClock)(-$,!0)+" ms");for(var me=Ce,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(r.toMsFromMpegTsClock)(Ce,!0)+" ms to overcome this issue");for(var ae=0;ae<H;ae++)N[ae].dts=N[ae].dts+Ce}K=N[0].dts}if(O){var Se=K-W,oe=Se>$,ee=Se<-1;if(oe||ee){oe?e.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(Se,!0)+" ms ("+Se+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(-Se,!0)+" ms ("+Se+"dts) overlapping between fragments detected"),K=W;var J=N[0].pts-Se;N[0].dts=K,N[0].pts=J,e.logger.log("Video: First PTS/DTS adjusted: "+Object(r.toMsFromMpegTsClock)(J,!0)+"/"+Object(r.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(r.toMsFromMpegTsClock)(Se,!0)+" ms")}}d&&(K=Math.max(0,K));for(var Q=0,ve=0,_e=0;_e<H;_e++){for(var Te=N[_e],Ge=Te.units,qe=Ge.length,ut=0,st=0;st<qe;st++)ut+=Ge[st].data.length;ve+=ut,Q+=qe,Te.length=ut,Te.dts=Math.max(Te.dts,K),Te.pts=Math.max(Te.pts,Te.dts,0),fe=Math.min(Te.pts,fe),de=Math.max(Te.pts,de)}te=N[H-1].dts;var ft=ve+4*Q+8,gt;try{gt=new Uint8Array(ft)}catch(Et){this.observer.emit(A.Events.ERROR,A.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ft,reason:"fail allocating video mdat "+ft});return}var Ve=new DataView(gt.buffer);Ve.setUint32(0,ft),gt.set(C.default.types.mdat,4);for(var ke=0;ke<H;ke++){for(var dt=N[ke],Bt=dt.units,vt=0,Rt=0,ot=Bt.length;Rt<ot;Rt++){var Je=Bt[Rt],et=Je.data,Me=Je.data.byteLength;Ve.setUint32(F,Me),F+=4,gt.set(et,F),F+=Me,vt+=4+Me}if(ke<H-1)L=N[ke+1].dts-dt.dts;else{var Be=this.config,Xe=dt.dts-N[ke>0?ke-1:ke].dts;if(Be.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ke=Math.floor(Be.maxBufferHole*I),$e=(U?fe+U*I:this.nextAudioPts)-dt.pts;$e>Ke?(L=$e-Xe,L<0&&(L=Xe),e.logger.log("[mp4-remuxer]: It is approximately "+$e/90+" ms to the next segment; using duration "+L/90+" ms for the last video frame.")):L=Xe}else L=Xe}var _t=Math.round(dt.pts-dt.dts);V.push(new E(dt.key,L,vt,_t))}if(V.length&&c&&c<70){var Ft=V[0].flags;Ft.dependsOn=2,Ft.isNonSync=0}console.assert(L!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=te+L,this.isVideoContiguous=!0;var qt=C.default.moof(w.sequenceNumber++,K,l({},w,{samples:V})),bn="video",At={data1:qt,data2:gt,startPTS:fe/I,endPTS:(de+L)/I,startDTS:K/I,endDTS:W/I,type:bn,hasAudio:!1,hasVideo:!0,nb:V.length,dropped:w.dropped};return w.samples=[],w.dropped=0,console.assert(gt.length,"MDAT length must not be zero"),At},R.remuxAudio=function(w,v,O,U,I){var N=w.inputTimeScale,V=w.samplerate?w.samplerate:N,H=N/V,D=w.isAAC?i:a,W=D*H,F=this._initPTS,L=!w.isAAC&&this.typeSupported.mpeg,K=[],te=w.samples,fe=L?0:8,de=this.nextAudioPts||-1,Ce=v*N;if(this.isAudioContiguous=O=O||te.length&&de>0&&(U&&Math.abs(Ce-de)<9e3||Math.abs(u(te[0].pts-F,Ce)-de)<20*W),te.forEach(function(et){et.pts=u(et.pts-F,Ce)}),!O||de<0){if(te=te.filter(function(et){return et.pts>=0}),!te.length)return;I===0?de=0:U?de=Math.max(0,Ce):de=te[0].pts}if(w.isAAC)for(var Oe=I!==void 0,ce=this.config.maxAudioFramesDrift,Ee=0,ye=de;Ee<te.length;Ee++){var ue=te[Ee],le=ue.pts,$=le-ye,me=Math.abs(1e3*$/N);if($<=-ce*W&&Oe)Ee===0&&(e.logger.warn("Audio frame @ "+(le/N).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*$/N)+" ms."),this.nextAudioPts=de=ye=le);else if($>=ce*W&&me<n&&Oe){var re=Math.round($/W);ye=le-re*W,ye<0&&(re--,ye+=W),Ee===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 Se=Math.max(ye,0),oe=y.default.getSilentFrame(w.manifestCodec||w.codec,w.channelCount);oe||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),oe=ue.unit.subarray()),te.splice(Ee,0,{unit:oe,pts:Se}),ye+=W,Ee++}}ue.pts=ye,ye+=W}for(var ee=null,J=null,Q,ve=0,_e=te.length;_e--;)ve+=te[_e].unit.byteLength;for(var Te=0,Ge=te.length;Te<Ge;Te++){var qe=te[Te],ut=qe.unit,st=qe.pts;if(J!==null){var ft=K[Te-1];ft.duration=Math.round((st-J)/H)}else if(O&&w.isAAC&&(st=de),ee=st,ve>0){ve+=fe;try{Q=new Uint8Array(ve)}catch(et){this.observer.emit(A.Events.ERROR,A.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!L){var gt=new DataView(Q.buffer);gt.setUint32(0,ve),Q.set(C.default.types.mdat,4)}}else return;Q.set(ut,fe);var Ve=ut.byteLength;fe+=Ve,K.push(new E(!0,D,Ve,0)),J=st}var ke=K.length;if(!ke)return;var dt=K[K.length-1];this.nextAudioPts=de=J+H*dt.duration;var Bt=L?new Uint8Array(0):C.default.moof(w.sequenceNumber++,ee/H,l({},w,{samples:K}));w.samples=[];var vt=ee/N,Rt=de/N,ot="audio",Je={data1:Bt,data2:Q,startPTS:vt,endPTS:Rt,startDTS:vt,endDTS:Rt,type:ot,hasAudio:!0,hasVideo:!1,nb:ke};return this.isAudioContiguous=!0,console.assert(Q.length,"MDAT length must not be zero"),Je},R.remuxEmptyAudio=function(w,v,O,U){var I=w.inputTimeScale,N=w.samplerate?w.samplerate:I,V=I/N,H=this.nextAudioPts,D=(H!==null?H:U.startDTS*I)+this._initDTS,W=U.endDTS*I+this._initDTS,F=V*i,L=Math.ceil((W-D)/F),K=y.default.getSilentFrame(w.manifestCodec||w.codec,w.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 te=[],fe=0;fe<L;fe++){var de=D+fe*F;te.push({unit:K,pts:de,dts:de})}return w.samples=te,this.remuxAudio(w,v,O,!1)},R.remuxID3=function(w,v){var O=w.samples.length;if(!O)return;for(var U=w.inputTimeScale,I=this._initPTS,N=this._initDTS,V=0;V<O;V++){var H=w.samples[V];H.pts=u(H.pts-I,v*U)/U,H.dts=u(H.dts-N,v*U)/U}var D=w.samples;return w.samples=[],{samples:D}},R.remuxText=function(w,v){var O=w.samples.length;if(!O)return;for(var U=w.inputTimeScale,I=this._initPTS,N=0;N<O;N++){var V=w.samples[N];V.pts=u(V.pts-I,v*U)/U}w.samples.sort(function(D,W){return D.pts-W.pts});var H=w.samples;return w.samples=[],{samples:H}},P}();function u(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 S(P){for(var R=0;R<P.length;R++)if(P[R].key)return R;return-1}var E=function(R,x,w,v){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=x,this.size=w,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,m,T){"use strict";T.r(m);var b=T("./src/polyfills/number.ts"),y=T("./src/utils/mp4-tools.ts"),C=T("./src/loader/fragment.ts"),A=T("./src/utils/logger.ts"),g=function(){function r(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var l=r.prototype;return l.destroy=function(){},l.resetTimeStamp=function(i){this.initPTS=i,this.lastEndDTS=null},l.resetNextTimestamp=function(){this.lastEndDTS=null},l.resetInitSegment=function(i,a,c){this.audioCodec=a,this.videoCodec=c,this.generateInitSegment(i),this.emitInitSegment=!0},l.generateInitSegment=function(i){var a=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);a||(a=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:a+","+c,initSegment:i,id:"main"}:h.audio?d.audio={container:"audio/mp4",codec:a,initSegment:i,id:"audio"}:h.video?d.video={container:"video/mp4",codec:c,initSegment:i,id:"main"}:A.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=d},l.remux=function(i,a,c,h,d){var s=this.initPTS,u=this.lastEndDTS,S={audio:void 0,video:void 0,text:h,id3:c,initSegment:void 0};Object(b.isFiniteNumber)(u)||(u=this.lastEndDTS=d||0);var E=a.samples;if(!E||!E.length)return S;var _={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(E),P=this.initData),!P||!P.length)return A.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),S;this.emitInitSegment&&(_.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(s)||(this.initPTS=_.initPTS=s=e(P,E,u));var R=Object(y.getDuration)(E,P),x=u,w=R+x;Object(y.offsetStartDTS)(P,E,s),R>0?this.lastEndDTS=w:(A.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var v=!!P.audio,O=!!P.video,U="";v&&(U+="audio"),O&&(U+="video");var I={data1:E,startPTS:x,startDTS:x,endPTS:w,endDTS:w,type:U,hasAudio:v,hasVideo:O,nb:1,dropped:0};return S.audio=I.type==="audio"?I:void 0,S.video=I.type!=="audio"?I:void 0,S.text=h,S.id3=c,S.initSegment=_,S},r}(),e=function(l,n,i){return Object(y.getStartDTS)(l,n)-i};function f(r,l){var n=r==null?void 0:r.codec;return n&&n.length>4?n:n==="hvc1"?"hvc1.1.c.L120.90":n==="av01"?"av01.0.04M.08":n==="avc1"||l===C.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}m.default=g},"./src/task-loop.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"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(g){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,g),!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,m,T){"use strict";T.r(m),T.d(m,"CMCDVersion",function(){return b}),T.d(m,"CMCDObjectType",function(){return y}),T.d(m,"CMCDStreamingFormat",function(){return C}),T.d(m,"CMCDStreamType",function(){return A});var b=1,y;(function(g){g.MANIFEST="m",g.AUDIO="a",g.VIDEO="v",g.MUXED="av",g.INIT="i",g.CAPTION="c",g.TIMED_TEXT="tt",g.KEY="k",g.OTHER="o"})(y||(y={}));var C;(function(g){g.DASH="d",g.HLS="h",g.SMOOTH="s",g.OTHER="o"})(C||(C={}));var A;(function(g){g.VOD="v",g.LIVE="l"})(A||(A={}))},"./src/types/level.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"HlsSkip",function(){return C}),T.d(m,"getSkipValue",function(){return A}),T.d(m,"HlsUrlParameters",function(){return g}),T.d(m,"Level",function(){return e});function b(f,r){for(var l=0;l<r.length;l++){var n=r[l];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function y(f,r,l){return r&&b(f.prototype,r),l&&b(f,l),f}var C;(function(f){f.No="",f.Yes="YES",f.v2="v2"})(C||(C={}));function A(f,r){var l=f.canSkipUntil,n=f.canSkipDateRanges,i=f.endSN,a=r!==void 0?r-i:0;return l&&a<l?n?C.v2:C.Yes:C.No}var g=function(){function f(l,n,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=l,this.part=n,this.skip=i}var r=f.prototype;return r.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(r){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[r.url],this.attrs=r.attrs,this.bitrate=r.bitrate,r.details&&(this.details=r.details),this.id=r.id||0,this.name=r.name,this.width=r.width||0,this.height=r.height||0,this.audioCodec=r.audioCodec,this.videoCodec=r.videoCodec,this.unknownCodecs=r.unknownCodecs,this.codecSet=[r.videoCodec,r.audioCodec].filter(function(l){return l}).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(l){var n=l%this.url.length;this._urlId!==n&&(this.details=void 0,this._urlId=n)}}]),f}()},"./src/types/loader.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"PlaylistContextType",function(){return b}),T.d(m,"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,m,T){"use strict";T.r(m),T.d(m,"ChunkMetadata",function(){return b});var b=function(A,g,e,f,r,l){f===void 0&&(f=0),r===void 0&&(r=-1),l===void 0&&(l=!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=A,this.sn=g,this.id=e,this.size=f,this.part=r,this.partial=l};function y(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"AttrList",function(){return C});var b=/^(\d+)x(\d+)$/,y=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,C=function(){function A(e){typeof e=="string"&&(e=A.parseAttrList(e));for(var f in e)e.hasOwnProperty(f)&&(this[f]=e[f])}var g=A.prototype;return g.decimalInteger=function(f){var r=parseInt(this[f],10);return r>Number.MAX_SAFE_INTEGER?Infinity:r},g.hexadecimalInteger=function(f){if(this[f]){var r=(this[f]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var l=new Uint8Array(r.length/2),n=0;n<r.length/2;n++)l[n]=parseInt(r.slice(n*2,n*2+2),16);return l}else return null},g.hexadecimalIntegerAsNumber=function(f){var r=parseInt(this[f],16);return r>Number.MAX_SAFE_INTEGER?Infinity:r},g.decimalFloatingPoint=function(f){return parseFloat(this[f])},g.optionalFloat=function(f,r){var l=this[f];return l?parseFloat(l):r},g.enumeratedString=function(f){return this[f]},g.bool=function(f){return this[f]==="YES"},g.decimalResolution=function(f){var r=b.exec(this[f]);return r===null?void 0:{width:parseInt(r[1],10),height:parseInt(r[2],10)}},A.parseAttrList=function(f){var r,l={},n='"';for(y.lastIndex=0;(r=y.exec(f))!==null;){var i=r[2];i.indexOf(n)===0&&i.lastIndexOf(n)===i.length-1&&(i=i.slice(1,-1)),l[r[1]]=i}return l},A}()},"./src/utils/binary-search.ts":function(M,m,T){"use strict";T.r(m);var b={search:function(C,A){for(var g=0,e=C.length-1,f=null,r=null;g<=e;){f=(g+e)/2|0,r=C[f];var l=A(r);if(l>0)g=f+1;else if(l<0)e=f-1;else return r}return null}};m.default=b},"./src/utils/buffer-helper.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"BufferHelper",function(){return C});var b=T("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},C=function(){function A(){}return A.isBuffered=function(e,f){try{if(e){for(var r=A.getBuffered(e),l=0;l<r.length;l++)if(f>=r.start(l)&&f<=r.end(l))return!0}}catch(n){}return!1},A.bufferInfo=function(e,f,r){try{if(e){var l=A.getBuffered(e),n=[],i;for(i=0;i<l.length;i++)n.push({start:l.start(i),end:l.end(i)});return this.bufferedInfo(n,f,r)}}catch(a){}return{len:0,start:f,end:f,nextStart:void 0}},A.bufferedInfo=function(e,f,r){f=Math.max(0,f),e.sort(function(_,P){var R=_.start-P.start;return R||P.end-_.end});var l=[];if(r)for(var n=0;n<e.length;n++){var i=l.length;if(i){var a=l[i-1].end;e[n].start-a<r?e[n].end>a&&(l[i-1].end=e[n].end):l.push(e[n])}else l.push(e[n])}else l=e;for(var c=0,h,d=f,s=f,u=0;u<l.length;u++){var S=l[u].start,E=l[u].end;if(f+r>=S&&f<E)d=S,s=E,c=s-f;else if(f+r<S){h=S;break}}return{len:c,start:d||0,end:s||0,nextStart:h}},A.getBuffered=function(e){try{return e.buffered}catch(f){return b.logger.log("failed to get media.buffered",f),y}},A}()},"./src/utils/cea-608-parser.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"Row",function(){return s}),T.d(m,"CaptionScreen",function(){return u});var b=T("./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(w){var v=w;return y.hasOwnProperty(w)&&(v=y[w]),String.fromCharCode(v)},A=15,g=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},r={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},l={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 a=function(){function x(){this.time=null,this.verboseLevel=i.ERROR}var w=x.prototype;return w.log=function(O,U){this.verboseLevel>=O&&b.logger.log(this.time+" ["+O+"] "+U)},x}(),c=function(w){for(var v=[],O=0;O<w.length;O++)v.push(w[O].toString(16));return v},h=function(){function x(v,O,U,I,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=O||!1,this.italics=U||!1,this.background=I||"black",this.flash=N||!1}var w=x.prototype;return w.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},w.setStyles=function(O){for(var U=["foreground","underline","italics","background","flash"],I=0;I<U.length;I++){var N=U[I];O.hasOwnProperty(N)&&(this[N]=O[N])}},w.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},w.equals=function(O){return this.foreground===O.foreground&&this.underline===O.underline&&this.italics===O.italics&&this.background===O.background&&this.flash===O.flash},w.copy=function(O){this.foreground=O.foreground,this.underline=O.underline,this.italics=O.italics,this.background=O.background,this.flash=O.flash},w.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},x}(),d=function(){function x(v,O,U,I,N,V){this.uchar=void 0,this.penState=void 0,this.uchar=v||" ",this.penState=new h(O,U,I,N,V)}var w=x.prototype;return w.reset=function(){this.uchar=" ",this.penState.reset()},w.setChar=function(O,U){this.uchar=O,this.penState.copy(U)},w.setPenState=function(O){this.penState.copy(O)},w.equals=function(O){return this.uchar===O.uchar&&this.penState.equals(O.penState)},w.copy=function(O){this.uchar=O.uchar,this.penState.copy(O.penState)},w.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 O=0;O<g;O++)this.chars.push(new d);this.logger=v,this.pos=0,this.currPenState=new h}var w=x.prototype;return w.equals=function(O){for(var U=!0,I=0;I<g;I++)if(!this.chars[I].equals(O.chars[I])){U=!1;break}return U},w.copy=function(O){for(var U=0;U<g;U++)this.chars[U].copy(O.chars[U])},w.isEmpty=function(){for(var O=!0,U=0;U<g;U++)if(!this.chars[U].isEmpty()){O=!1;break}return O},w.setCursor=function(O){this.pos!==O&&(this.pos=O),this.pos<0?(this.logger.log(i.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>g&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=g)},w.moveCursor=function(O){var U=this.pos+O;if(O>1)for(var I=this.pos+1;I<U+1;I++)this.chars[I].setPenState(this.currPenState);this.setCursor(U)},w.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},w.insertChar=function(O){O>=144&&this.backSpace();var U=C(O);if(this.pos>=g){this.logger.log(i.ERROR,"Cannot insert "+O.toString(16)+" ("+U+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(U,this.currPenState),this.moveCursor(1)},w.clearFromPos=function(O){var U;for(U=O;U<g;U++)this.chars[U].reset()},w.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},w.clearToEndOfRow=function(){this.clearFromPos(this.pos)},w.getTextString=function(){for(var O=[],U=!0,I=0;I<g;I++){var N=this.chars[I].uchar;N!==" "&&(U=!1),O.push(N)}return U?"":O.join("")},w.setPenStyles=function(O){this.currPenState.setStyles(O);var U=this.chars[this.pos];U.setPenState(this.currPenState)},x}(),u=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 O=0;O<A;O++)this.rows.push(new s(v));this.logger=v,this.currRow=A-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var w=x.prototype;return w.reset=function(){for(var O=0;O<A;O++)this.rows[O].clear();this.currRow=A-1},w.equals=function(O){for(var U=!0,I=0;I<A;I++)if(!this.rows[I].equals(O.rows[I])){U=!1;break}return U},w.copy=function(O){for(var U=0;U<A;U++)this.rows[U].copy(O.rows[U])},w.isEmpty=function(){for(var O=!0,U=0;U<A;U++)if(!this.rows[U].isEmpty()){O=!1;break}return O},w.backSpace=function(){var O=this.rows[this.currRow];O.backSpace()},w.clearToEndOfRow=function(){var O=this.rows[this.currRow];O.clearToEndOfRow()},w.insertChar=function(O){var U=this.rows[this.currRow];U.insertChar(O)},w.setPen=function(O){var U=this.rows[this.currRow];U.setPenStyles(O)},w.moveCursor=function(O){var U=this.rows[this.currRow];U.moveCursor(O)},w.setCursor=function(O){this.logger.log(i.INFO,"setCursor: "+O);var U=this.rows[this.currRow];U.setCursor(O)},w.setPAC=function(O){this.logger.log(i.INFO,"pacData = "+JSON.stringify(O));var U=O.row-1;if(this.nrRollUpRows&&U<this.nrRollUpRows-1&&(U=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==U){for(var I=0;I<A;I++)this.rows[I].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(O.indent!==null){var L=O.indent,K=Math.max(L-1,0);F.setCursor(O.indent),O.color=F.chars[K].penState.foreground}var te={foreground:O.color,underline:O.underline,italics:O.italics,background:"black",flash:!1};this.setPen(te)},w.setBkgData=function(O){this.logger.log(i.INFO,"bkgData = "+JSON.stringify(O)),this.backSpace(),this.setPen(O),this.insertChar(32)},w.setRollUpRows=function(O){this.nrRollUpRows=O},w.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 O=this.currRow+1-this.nrRollUpRows,U=this.rows.splice(O,1)[0];U.clear(),this.rows.splice(this.currRow,0,U),this.logger.log(i.INFO,"Rolling up")},w.getDisplayText=function(O){O=O||!1;for(var U=[],I="",N=-1,V=0;V<A;V++){var H=this.rows[V].getTextString();H&&(N=V+1,O?U.push("Row "+N+": '"+H+"'"):U.push(H.trim()))}return U.length>0&&(O?I="["+U.join(" | ")+"]":I=U.join(`
|
|
|
`)),I},w.getTextAndFormat=function(){return this.rows},x}(),S=function(){function x(v,O,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=O,this.mode=null,this.verbose=0,this.displayedMemory=new u(U),this.nonDisplayedMemory=new u(U),this.lastOutputScreen=new u(U),this.currRollUpRow=this.displayedMemory.rows[A-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=U}var w=x.prototype;return w.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[A-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},w.getHandler=function(){return this.outputFilter},w.setHandler=function(O){this.outputFilter=O},w.setPAC=function(O){this.writeScreen.setPAC(O)},w.setBkgData=function(O){this.writeScreen.setBkgData(O)},w.setMode=function(O){if(O===this.mode)return;this.mode=O,this.logger.log(i.INFO,"MODE="+O),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=O},w.insertChars=function(O){for(var U=0;U<O.length;U++)this.writeScreen.insertChar(O[U]);var I=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(i.INFO,I+": "+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())},w.ccRCL=function(){this.logger.log(i.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},w.ccBS=function(){if(this.logger.log(i.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},w.ccAOF=function(){},w.ccAON=function(){},w.ccDER=function(){this.logger.log(i.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},w.ccRU=function(O){this.logger.log(i.INFO,"RU("+O+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(O)},w.ccFON=function(){this.logger.log(i.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},w.ccRDC=function(){this.logger.log(i.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},w.ccTR=function(){this.logger.log(i.INFO,"TR"),this.setMode("MODE_TEXT")},w.ccRTD=function(){this.logger.log(i.INFO,"RTD"),this.setMode("MODE_TEXT")},w.ccEDM=function(){this.logger.log(i.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},w.ccCR=function(){this.logger.log(i.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},w.ccENM=function(){this.logger.log(i.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},w.ccEOC=function(){if(this.logger.log(i.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var O=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=O,this.writeScreen=this.nonDisplayedMemory,this.logger.log(i.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},w.ccTO=function(O){this.logger.log(i.INFO,"TO("+O+") - Tab Offset"),this.writeScreen.moveCursor(O)},w.ccMIDROW=function(O){var U={flash:!1};if(U.underline=O%2===1,U.italics=O>=46,U.italics)U.foreground="white";else{var I=Math.floor(O/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];U.foreground=N[I]}this.logger.log(i.INFO,"MIDROW: "+JSON.stringify(U)),this.writeScreen.setPen(U)},w.outputDataUpdate=function(O){O===void 0&&(O=!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),O&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:U),this.lastOutputScreen.copy(this.displayedMemory))},w.cueSplitAtTime=function(O){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,O,this.displayedMemory),this.cueStartTime=O))},x}(),E=function(){function x(v,O,U){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var I=new a;this.channels=[null,new S(v,O,I),new S(v+1,U,I)],this.cmdHistory=R(),this.logger=I}var w=x.prototype;return w.getHandler=function(O){return this.channels[O].getHandler()},w.setHandler=function(O,U){this.channels[O].setHandler(U)},w.addData=function(O,U){var I,N,V,H=!1;this.logger.time=O;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])+")"),I=this.parseCmd(N,V),I||(I=this.parseMidrow(N,V)),I||(I=this.parsePAC(N,V)),I||(I=this.parseBackgroundAttributes(N,V)),!I&&(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?")}!I&&!H&&this.logger.log(i.WARNING,"Couldn't parse cleaned data "+c([N,V])+" orig: "+c([U[D],U[D+1]]))}},w.parseCmd=function(O,U){var I=this.cmdHistory,N=(O===20||O===28||O===21||O===29)&&U>=32&&U<=47,V=(O===23||O===31)&&U>=33&&U<=35;if(!(N||V))return!1;if(P(O,U,I))return _(null,null,I),this.logger.log(i.DEBUG,"Repeated command ("+c([O,U])+") is dropped"),!0;var H=O===20||O===21||O===23?1:2,D=this.channels[H];return O===20||O===21||O===28||O===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),_(O,U,I),this.currentChannel=H,!0},w.parseMidrow=function(O,U){var I=0;if((O===17||O===25)&&U>=32&&U<=47){if(O===17?I=1:I=2,I!==this.currentChannel)return this.logger.log(i.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[I];return N?(N.ccMIDROW(U),this.logger.log(i.DEBUG,"MIDROW ("+c([O,U])+")"),!0):!1}return!1},w.parsePAC=function(O,U){var I,N=this.cmdHistory,V=(O>=17&&O<=23||O>=25&&O<=31)&&U>=64&&U<=127,H=(O===16||O===24)&&U>=64&&U<=95;if(!(V||H))return!1;if(P(O,U,N))return _(null,null,N),!0;var D=O<=23?1:2;U>=64&&U<=95?I=D===1?e[O]:r[O]:I=D===1?f[O]:l[O];var W=this.channels[D];return W?(W.setPAC(this.interpretPAC(I,U)),_(O,U,N),this.currentChannel=D,!0):!1},w.interpretPAC=function(O,U){var I,N={color:null,italics:!1,indent:null,underline:!1,row:O};return U>95?I=U-96:I=U-64,N.underline=(I&1)===1,I<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(I/2)]:I<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((I-16)/2)*4,N},w.parseChars=function(O,U){var I,N=null,V=null;if(O>=25?(I=2,V=O-8):(I=1,V=O),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 "+I),N=[H]}else O>=32&&O<=127&&(N=U===0?[O]:[O,U]);if(N){var D=c(N);this.logger.log(i.DEBUG,"Char codes = "+D.join(",")),_(O,U,this.cmdHistory)}return N},w.parseBackgroundAttributes=function(O,U){var I=(O===16||O===24)&&U>=32&&U<=47,N=(O===23||O===31)&&U>=45&&U<=47;if(!(I||N))return!1;var V,H={};O===16||O===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=O<=23?1:2,W=this.channels[D];return W.setBkgData(H),_(O,U,this.cmdHistory),!0},w.reset=function(){for(var O=0;O<Object.keys(this.channels).length;O++){var U=this.channels[O];U&&U.reset()}this.cmdHistory=R()},w.cueSplitAtTime=function(O){for(var U=0;U<this.channels.length;U++){var I=this.channels[U];I&&I.cueSplitAtTime(O)}},x}();function _(x,w,v){v.a=x,v.b=w}function P(x,w,v){return v.a===x&&v.b===w}function R(){return{a:null,b:null}}m.default=E},"./src/utils/codecs.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"isCodecType",function(){return y}),T.d(m,"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(A,g){var e=b[g];return!!e&&e[A.slice(0,4)]===!0}function C(A,g){return MediaSource.isTypeSupported((g||"video")+'/mp4;codecs="'+A+'"')}},"./src/utils/cues.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/utils/vttparser.ts"),y=T("./src/utils/webvtt-parser.ts"),C=T("./src/utils/texttrack-utils.ts"),A=/\s/,g={newCue:function(f,r,l,n){for(var i=[],a,c,h,d,s,u=self.VTTCue||self.TextTrackCue,S=0;S<n.rows.length;S++)if(a=n.rows[S],h=!0,d=0,s="",!a.isEmpty()){for(var E=0;E<a.chars.length;E++)A.test(a.chars[E].uchar)&&h?d++:(s+=a.chars[E].uchar,h=!1);a.cueStartTime=r,r===l&&(l+=1e-4),d>=16?d--:d++;var _=Object(b.fixLineBreaks)(s.trim()),P=Object(y.generateCueId)(r,l,_);(!f||!f.cues||!f.cues.getCueById(P))&&(c=new u(r,l,_),c.id=P,c.line=S+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}};m.default=g},"./src/utils/discontinuities.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"findFirstFragWithCC",function(){return A}),T.d(m,"shouldAlignOnDiscontinuities",function(){return g}),T.d(m,"findDiscontinuousReferenceFrag",function(){return e}),T.d(m,"adjustSlidingStart",function(){return r}),T.d(m,"alignStream",function(){return l}),T.d(m,"alignPDT",function(){return i}),T.d(m,"alignFragmentByPDTDelta",function(){return a}),T.d(m,"alignMediaPlaylistByPDT",function(){return c});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/logger.ts"),C=T("./src/controller/level-helper.ts");function A(h,d){for(var s=null,u=0,S=h.length;u<S;u++){var E=h[u];if(E&&E.cc===d){s=E;break}}return s}function g(h,d,s){return!!(d.details&&(s.endCC>s.startCC||h&&h.cc<s.startCC))}function e(h,d){var s=h.fragments,u=d.fragments;if(!u.length||!s.length){y.logger.log("No fragments to align");return}var S=A(s,u[0].cc);if(!S||S&&!S.startPTS){y.logger.log("No frag in previous level to align on");return}return S}function f(h,d){if(h){var s=h.start+d;h.start=h.startPTS=s,h.endPTS=s+h.duration}}function r(h,d){for(var s=d.fragments,u=0,S=s.length;u<S;u++)f(s[u],h);d.fragmentHint&&f(d.fragmentHint,h),d.alignedSliding=!0}function l(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(g(h,s,d)){var u=e(s.details,d);u&&Object(b.isFiniteNumber)(u.start)&&(y.logger.log("Adjusting PTS using last level due to CC increase within current level "+d.url),r(u.start,d))}}function i(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,u=h.fragments[0].programDateTime,S=(u-s)/1e3+d.fragments[0].start;S&&Object(b.isFiniteNumber)(S)&&(y.logger.log("Adjusting PTS using programDateTime delta "+(u-s)+"ms, sliding:"+S.toFixed(3)+" "+h.url+" "),r(S,h))}function a(h,d){var s=h.programDateTime;if(!s)return;var u=(s-d)/1e3;h.start=h.startPTS=u,h.endPTS=u+h.duration}function c(h,d){if(!d.fragments.length||!h.hasProgramDateTime||!d.hasProgramDateTime)return;var s=d.fragments[0].programDateTime,u=d.fragments[0].start,S=s-u*1e3;h.fragments.forEach(function(E){a(E,S)}),h.fragmentHint&&a(h.fragmentHint,S),h.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/utils/ewma.ts"),y=function(){function C(g,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(g),this.fast_=new b.default(e)}var A=C.prototype;return A.update=function(e,f){var r=this.slow_,l=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new b.default(e,r.getEstimate(),r.getTotalWeight())),this.fast_.halfLife!==f&&(this.fast_=new b.default(f,l.getEstimate(),l.getTotalWeight()))},A.sample=function(e,f){e=Math.max(e,this.minDelayMs_);var r=8*f,l=e/1e3,n=r/l;this.fast_.sample(l,n),this.slow_.sample(l,n)},A.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},A.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},A.destroy=function(){},C}();m.default=y},"./src/utils/ewma.ts":function(M,m,T){"use strict";T.r(m);var b=function(){function y(A,g,e){g===void 0&&(g=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=A,this.alpha_=A?Math.exp(Math.log(.5)/A):0,this.estimate_=g,this.totalWeight_=e}var C=y.prototype;return C.sample=function(g,e){var f=Math.pow(this.alpha_,g);this.estimate_=e*(1-f)+f*this.estimate_,this.totalWeight_+=g},C.getTotalWeight=function(){return this.totalWeight_},C.getEstimate=function(){if(this.alpha_){var g=1-Math.pow(this.alpha_,this.totalWeight_);if(g)return this.estimate_/g}return this.estimate_},y}();m.default=b},"./src/utils/fetch-loader.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"fetchSupported",function(){return a});var b=T("./src/polyfills/number.ts"),y=T("./src/loader/load-stats.ts"),C=T("./src/demux/chunk-cache.ts");function A(u,S){u.prototype=Object.create(S.prototype),u.prototype.constructor=u,l(u,S)}function g(u){var S=typeof Map=="function"?new Map:void 0;return g=function(_){if(_===null||!r(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof S!="undefined"){if(S.has(_))return S.get(_);S.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}}),l(P,_)},g(u)}function e(u,S,E){return f()?e=Reflect.construct:e=function(P,R,x){var w=[null];w.push.apply(w,R);var v=Function.bind.apply(P,w),O=new v;return x&&l(O,x.prototype),O},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(u){return!1}}function r(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function l(u,S){return l=Object.setPrototypeOf||function(_,P){return _.__proto__=P,_},l(u,S)}function n(u){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},n(u)}function i(){return i=Object.assign||function(u){for(var S=1;S<arguments.length;S++){var E=arguments[S];for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(u[_]=E[_])}return u},i.apply(this,arguments)}function a(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(u){}return!1}var c=function(){function u(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 S=u.prototype;return S.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},S.abortInternal=function(){var _=this.response;(!_||!_.ok)&&(this.stats.aborted=!0,this.controller.abort())},S.abort=function(){var _;this.abortInternal(),(_=this.callbacks)!==null&&_!==void 0&&_.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},S.load=function(_,P,R){var x=this,w=this.stats;if(w.loading.start)throw new Error("Loader can only be used once.");w.loading.start=self.performance.now();var v=h(_,this.controller.signal),O=R.onProgress,U=_.responseType==="arraybuffer",I=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(w,_,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 w.loading.first=Math.max(self.performance.now(),w.loading.start),w.total=parseInt(N.headers.get("Content-Length")||"0"),O&&Object(b.isFiniteNumber)(P.highWaterMark)?x.loadProgressively(N,w,_,P.highWaterMark,O):U?N.arrayBuffer():N.text()}).then(function(N){var V=x.response;self.clearTimeout(x.requestTimeout),w.loading.end=Math.max(self.performance.now(),w.loading.first),w.loaded=w.total=N[I];var H={url:V.url,data:N};O&&!Object(b.isFiniteNumber)(P.highWaterMark)&&O(w,_,N,V),R.onSuccess(H,w,_,V)}).catch(function(N){if(self.clearTimeout(x.requestTimeout),w.aborted)return;var V=N.code||0;R.onError({code:V,text:N.message},_,N.details)})},S.getCacheAge=function(){var _=null;if(this.response){var P=this.response.headers.get("age");_=P?parseFloat(P):null}return _},S.loadProgressively=function(_,P,R,x,w){x===void 0&&(x=0);var v=new C.default,O=_.body.getReader(),U=function I(){return O.read().then(function(N){if(N.done)return v.dataLength&&w(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&&w(P,R,v.flush(),_)):w(P,R,V,_),I()}).catch(function(){return Promise.reject()})};return U()},u}();function h(u,S){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:S,headers:new self.Headers(i({},u.headers))};return u.rangeEnd&&E.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),E}function d(u,S){return new self.Request(u.url,S)}var s=function(u){A(S,u);function S(E,_,P){var R;return R=u.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=_,R.details=P,R}return S}(g(Error));m.default=c},"./src/utils/imsc1-ttml-parser.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"IMSC1_CODEC",function(){return r}),T.d(m,"parseIMSC1",function(){return a});var b=T("./src/utils/mp4-tools.ts"),y=T("./src/utils/vttparser.ts"),C=T("./src/utils/vttcue.ts"),A=T("./src/demux/id3.ts"),g=T("./src/utils/timescale-conversion.ts"),e=T("./src/utils/webvtt-parser.ts");function f(){return f=Object.assign||function(x){for(var w=1;w<arguments.length;w++){var v=arguments[w];for(var O in v)Object.prototype.hasOwnProperty.call(v,O)&&(x[O]=v[O])}return x},f.apply(this,arguments)}var r="stpp.ttml.im1t",l=/^(\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 a(x,w,v,O,U){var I=Object(b.findBox)(new Uint8Array(x),["mdat"]);if(I.length===0){U(new Error("Could not parse IMSC1 mdat"));return}var N=I[0],V=Object(A.utf8ArrayToStr)(new Uint8Array(x,N.start,N.end-N.start)),H=Object(g.toTimescaleFromScale)(w,1,v);try{O(c(V,H))}catch(D){U(D)}}function c(x,w){var v=new DOMParser,O=v.parseFromString(x,"text/xml"),U=O.getElementsByTagName("tt")[0];if(!U)throw new Error("Invalid ttml");var I={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(I).reduce(function(F,L){return F[L]=U.getAttribute("ttp:"+L)||I[L],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 L=s(F,V);if(!L||!F.hasAttribute("begin"))return null;var K=_(F.getAttribute("begin"),N),te=_(F.getAttribute("dur"),N),fe=_(F.getAttribute("end"),N);if(K===null)throw E(F);if(fe===null){if(te===null)throw E(F);fe=K+te}var de=new C.default(K-w,fe-w,L);de.id=Object(e.generateCueId)(de.startTime,de.endTime,de.text);var Ce=D[F.getAttribute("region")],Oe=H[F.getAttribute("style")];de.position=10,de.size=80;var ce=u(Ce,Oe),Ee=ce.textAlign;if(Ee){var ye=i[Ee];ye&&(de.lineAlign=ye),de.align=Ee}return f(de,ce),de}).filter(function(F){return F!==null})}function h(x,w,v){var O=x.getElementsByTagName(w)[0];return O?[].slice.call(O.querySelectorAll(v)):[]}function d(x){return x.reduce(function(w,v){var O=v.getAttribute("xml:id");return O&&(w[O]=v),w},{})}function s(x,w){return[].slice.call(x.childNodes).reduce(function(v,O,U){var I;return O.nodeName==="br"&&U?v+`
|
|
|
`:(I=O.childNodes)!==null&&I!==void 0&&I.length?s(O,w):w?v+O.textContent.trim().replace(/\s+/g," "):v+O.textContent},"")}function u(x,w){var v="http://www.w3.org/ns/ttml#styling",O=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return O.reduce(function(U,I){var N=S(w,v,I)||S(x,v,I);return N&&(U[I]=N),U},{})}function S(x,w,v){return x.hasAttributeNS(w,v)?x.getAttributeNS(w,v):null}function E(x){return new Error("Could not parse ttml timestamp "+x)}function _(x,w){if(!x)return null;var v=Object(y.parseTimeStamp)(x);return v===null&&(l.test(x)?v=P(x,w):n.test(x)&&(v=R(x,w))),v}function P(x,w){var v=l.exec(x),O=(v[4]|0)+(v[5]|0)/w.subFrameRate;return(v[1]|0)*3600+(v[2]|0)*60+(v[3]|0)+O/w.frameRate}function R(x,w){var v=n.exec(x),O=Number(v[1]),U=v[2];switch(U){case"h":return O*3600;case"m":return O*60;case"ms":return O*1e3;case"f":return O/w.frameRate;case"t":return O/w.tickRate}return O}},"./src/utils/logger.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"enableLogs",function(){return e}),T.d(m,"logger",function(){return f});var b=function(){},y={trace:b,debug:b,log:b,warn:b,info:b,error:b},C=y;function A(r){var l=self.console[r];return l?l.bind(self.console,"["+r+"] >"):b}function g(r){for(var l=arguments.length,n=new Array(l>1?l-1:0),i=1;i<l;i++)n[i-1]=arguments[i];n.forEach(function(a){C[a]=r[a]?r[a].bind(r):A(a)})}function e(r){if(self.console&&r===!0||typeof r=="object"){g(r,"debug","log","info","warn","error");try{C.log()}catch(l){C=y}}else C=y}var f=C},"./src/utils/mediakeys-helper.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"KeySystems",function(){return b}),T.d(m,"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,m,T){"use strict";T.r(m),T.d(m,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"bin2str",function(){return g}),T.d(m,"readUint16",function(){return e}),T.d(m,"readUint32",function(){return f}),T.d(m,"writeUint32",function(){return r}),T.d(m,"findBox",function(){return l}),T.d(m,"parseSegmentIndex",function(){return n}),T.d(m,"parseInitSegment",function(){return i}),T.d(m,"getStartDTS",function(){return a}),T.d(m,"getDuration",function(){return c}),T.d(m,"computeRawDurationFromSamples",function(){return h}),T.d(m,"offsetStartDTS",function(){return d}),T.d(m,"segmentValidRange",function(){return s}),T.d(m,"appendUint8Array",function(){return u});var b=T("./src/utils/typed-array.ts"),y=T("./src/loader/fragment.ts"),C=Math.pow(2,32)-1,A=[].push;function g(S){return String.fromCharCode.apply(null,S)}function e(S,E){"data"in S&&(E+=S.start,S=S.data);var _=S[E]<<8|S[E+1];return _<0?65536+_:_}function f(S,E){"data"in S&&(E+=S.start,S=S.data);var _=S[E]<<24|S[E+1]<<16|S[E+2]<<8|S[E+3];return _<0?4294967296+_:_}function r(S,E,_){"data"in S&&(E+=S.start,S=S.data),S[E]=_>>24,S[E+1]=_>>16&255,S[E+2]=_>>8&255,S[E+3]=_&255}function l(S,E){var _=[];if(!E.length)return _;var P,R,x;"data"in S?(P=S.data,R=S.start,x=S.end):(P=S,R=0,x=P.byteLength);for(var w=R;w<x;){var v=f(P,w),O=g(P.subarray(w+4,w+8)),U=v>1?w+v:x;if(O===E[0])if(E.length===1)_.push({data:P,start:w+8,end:U});else{var I=l({data:P,start:w+8,end:U},E.slice(1));I.length&&A.apply(_,I)}w=U}return _}function n(S){var E=l(S,["moov"]),_=E[0],P=_?_.end:null,R=l(S,["sidx"]);if(!R||!R[0])return null;var x=[],w=R[0],v=w.data[0],O=v===0?8:16,U=f(w,O);O+=4;var I=0,N=0;v===0?O+=8:O+=16,O+=2;var V=w.end+N,H=e(w,O);O+=2;for(var D=0;D<H;D++){var W=O,F=f(w,W);W+=4;var L=F&2147483647,K=(F&2147483648)>>>31;if(K===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var te=f(w,W);W+=4,x.push({referenceSize:L,subsegmentDuration:te,info:{duration:te/U,start:V,end:V+L-1}}),V+=L,W+=4,O=W}return{earliestPresentationTime:I,timescale:U,version:v,referencesCount:H,references:x,moovEndOffset:P}}function i(S){for(var E=[],_=l(S,["moov","trak"]),P=0;P<_.length;P++){var R=_[P],x=l(R,["tkhd"])[0];if(x){var w=x.data[x.start],v=w===0?12:20,O=f(x,v),U=l(R,["mdia","mdhd"])[0];if(U){w=U.data[U.start],v=w===0?12:20;var I=f(U,v),N=l(R,["mdia","hdlr"])[0];if(N){var V=g(N.data.subarray(N.start+8,N.start+12)),H={soun:y.ElementaryStreamTypes.AUDIO,vide:y.ElementaryStreamTypes.VIDEO}[V];if(H){var D=l(R,["mdia","minf","stbl","stsd"])[0],W=void 0;D&&(W=g(D.data.subarray(D.start+12,D.start+16))),E[O]={timescale:I,type:H},E[H]={timescale:I,id:O,codec:W}}}}}}var F=l(S,["moov","mvex","trex"]);return F.forEach(function(L){var K=f(L,4),te=E[K];te&&(te.default={duration:f(L,12),flags:f(L,20)})}),E}function a(S,E){return l(E,["moof","traf"]).reduce(function(_,P){var R=l(P,["tfdt"])[0],x=R.data[R.start],w=l(P,["tfhd"]).reduce(function(v,O){var U=f(O,4),I=S[U];if(I){var N=f(R,4);x===1&&(N*=Math.pow(2,32),N+=f(R,8));var V=I.timescale||9e4,H=N/V;if(isFinite(H)&&(v===null||H<v))return H}return v},null);return w!==null&&isFinite(w)&&(_===null||w<_)?w:_},null)||0}function c(S,E){for(var _=0,P=0,R=0,x=l(S,["moof","traf"]),w=0;w<x.length;w++){var v=x[w],O=l(v,["tfhd"])[0],U=f(O,4),I=E[U];if(!I)continue;var N=I.default,V=f(O,0)|(N==null?void 0:N.flags),H=N==null?void 0:N.duration;V&8&&(V&2?H=f(O,12):H=f(O,8));for(var D=I.timescale||9e4,W=l(v,["trun"]),F=0;F<W.length;F++){if(H){var L=f(W[F],4);_=H*L}else _=h(W[F]);I.type===y.ElementaryStreamTypes.VIDEO?P+=_/D:I.type===y.ElementaryStreamTypes.AUDIO&&(R+=_/D)}}if(P===0&&R===0){var K=n(S);if(K!=null&&K.references)return K.references.reduce(function(te,fe){return te+fe.info.duration||0},0)}return P||R}function h(S){var E=f(S,0),_=8;E&1&&(_+=4),E&4&&(_+=4);for(var P=0,R=f(S,4),x=0;x<R;x++){if(E&256){var w=f(S,_);P+=w,_+=4}E&512&&(_+=4),E&1024&&(_+=4),E&2048&&(_+=4)}return P}function d(S,E,_){l(E,["moof","traf"]).forEach(function(P){l(P,["tfhd"]).forEach(function(R){var x=f(R,4),w=S[x];if(!w)return;var v=w.timescale||9e4;l(P,["tfdt"]).forEach(function(O){var U=O.data[O.start],I=f(O,4);if(U===0)r(O,4,I-_*v);else{I*=Math.pow(2,32),I+=f(O,8),I-=_*v,I=Math.max(I,0);var N=Math.floor(I/(C+1)),V=Math.floor(I%(C+1));r(O,4,N),r(O,8,V)}})})})}function s(S){var E={valid:null,remainder:null},_=l(S,["moof"]);if(_){if(_.length<2)return E.remainder=S,E}else return E;var P=_[_.length-1];return E.valid=Object(b.sliceUint8)(S,0,P.start-8),E.remainder=Object(b.sliceUint8)(S,P.start-8),E}function u(S,E){var _=new Uint8Array(S.length+E.length);return _.set(S),_.set(E,S.length),_}},"./src/utils/output-filter.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"default",function(){return b});var b=function(){function y(A,g){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=A,this.trackName=g}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(g,e,f){(this.startTime===null||this.startTime>g)&&(this.startTime=g),this.endTime=e,this.screen=f,this.timelineController.createCaptionsTrack(this.trackName)},C.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"sendAddTrackEvent",function(){return y}),T.d(m,"addCueToTrack",function(){return C}),T.d(m,"clearCurrentCues",function(){return A}),T.d(m,"removeCuesInRange",function(){return g}),T.d(m,"getCuesInRange",function(){return f});var b=T("./src/utils/logger.ts");function y(r,l){var n;try{n=new Event("addtrack")}catch(i){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=r,l.dispatchEvent(n)}function C(r,l){var n=r.mode;if(n==="disabled"&&(r.mode="hidden"),r.cues&&!r.cues.getCueById(l.id))try{if(r.addCue(l),!r.cues.getCueById(l.id))throw new Error("addCue is failed for: "+l)}catch(a){b.logger.debug("[texttrack-utils]: "+a);var i=new self.TextTrackCue(l.startTime,l.endTime,l.text);i.id=l.id,r.addCue(i)}n==="disabled"&&(r.mode=n)}function A(r){var l=r.mode;if(l==="disabled"&&(r.mode="hidden"),r.cues)for(var n=r.cues.length;n--;)r.removeCue(r.cues[n]);l==="disabled"&&(r.mode=l)}function g(r,l,n){var i=r.mode;if(i==="disabled"&&(r.mode="hidden"),r.cues&&r.cues.length>0)for(var a=f(r.cues,l,n),c=0;c<a.length;c++)r.removeCue(a[c]);i==="disabled"&&(r.mode=i)}function e(r,l){if(l<r[0].startTime)return 0;var n=r.length-1;if(l>r[n].endTime)return-1;for(var i=0,a=n;i<=a;){var c=Math.floor((a+i)/2);if(l<r[c].startTime)a=c-1;else if(l>r[c].startTime&&i<n)i=c+1;else return c}return r[i].startTime-l<l-r[a].startTime?i:a}function f(r,l,n){var i=[],a=e(r,l);if(a>-1)for(var c=a,h=r.length;c<h;c++){var d=r[c];if(d.startTime>=l&&d.endTime<=n)i.push(d);else if(d.startTime>n)return i}return i}},"./src/utils/time-ranges.ts":function(M,m,T){"use strict";T.r(m);var b={toString:function(C){for(var A="",g=C.length,e=0;e<g;e++)A+="["+C.start(e).toFixed(3)+","+C.end(e).toFixed(3)+"]";return A}};m.default=b},"./src/utils/timescale-conversion.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"toTimescaleFromBase",function(){return y}),T.d(m,"toTimescaleFromScale",function(){return C}),T.d(m,"toMsFromMpegTsClock",function(){return A}),T.d(m,"toMpegTsClockFromTimescale",function(){return g});var b=9e4;function y(e,f,r,l){r===void 0&&(r=1),l===void 0&&(l=!1);var n=e*f*r;return l?Math.round(n):n}function C(e,f,r,l){return r===void 0&&(r=1),l===void 0&&(l=!1),y(e,f,1/r,l)}function A(e,f){return f===void 0&&(f=!1),y(e,1e3,1/b,f)}function g(e,f){return f===void 0&&(f=1),y(e,b,1/f)}},"./src/utils/typed-array.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"sliceUint8",function(){return b});function b(y,C,A){return Uint8Array.prototype.slice?y.slice(C,A):new Uint8Array(Array.prototype.slice.call(y,C,A))}},"./src/utils/vttcue.ts":function(M,m,T){"use strict";T.r(m),m.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var b=["","lr","rl"],y=["start","middle","end","left","right"];function C(r,l){if(typeof l!="string")return!1;if(!Array.isArray(r))return!1;var n=l.toLowerCase();return~r.indexOf(n)?n:!1}function A(r){return C(b,r)}function g(r){return C(y,r)}function e(r){for(var l=arguments.length,n=new Array(l>1?l-1:0),i=1;i<l;i++)n[i-1]=arguments[i];for(var a=1;a<arguments.length;a++){var c=arguments[a];for(var h in c)r[h]=c[h]}return r}function f(r,l,n){var i=this,a={enumerable:!0};i.hasBeenReset=!1;var c="",h=!1,d=r,s=l,u=n,S=null,E="",_=!0,P="auto",R="start",x=50,w="middle",v=50,O="middle";Object.defineProperty(i,"id",e({},a,{get:function(){return c},set:function(I){c=""+I}})),Object.defineProperty(i,"pauseOnExit",e({},a,{get:function(){return h},set:function(I){h=!!I}})),Object.defineProperty(i,"startTime",e({},a,{get:function(){return d},set:function(I){if(typeof I!="number")throw new TypeError("Start time must be set to a number.");d=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",e({},a,{get:function(){return s},set:function(I){if(typeof I!="number")throw new TypeError("End time must be set to a number.");s=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",e({},a,{get:function(){return u},set:function(I){u=""+I,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",e({},a,{get:function(){return S},set:function(I){S=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",e({},a,{get:function(){return E},set:function(I){var N=A(I);if(N===!1)throw new SyntaxError("An invalid or illegal string was specified.");E=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",e({},a,{get:function(){return _},set:function(I){_=!!I,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",e({},a,{get:function(){return P},set:function(I){if(typeof I!="number"&&I!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",e({},a,{get:function(){return R},set:function(I){var N=g(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");R=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",e({},a,{get:function(){return x},set:function(I){if(I<0||I>100)throw new Error("Position must be between 0 and 100.");x=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",e({},a,{get:function(){return w},set:function(I){var N=g(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");w=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",e({},a,{get:function(){return v},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");v=I,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",e({},a,{get:function(){return O},set:function(I){var N=g(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");O=N,this.hasBeenReset=!0}})),i.displayState=void 0}return f.prototype.getCueAsHTML=function(){var r=self.WebVTT;return r.convertCueToDOMTree(self,this.text)},f}()},"./src/utils/vttparser.ts":function(M,m,T){"use strict";T.r(m),T.d(m,"parseTimeStamp",function(){return C}),T.d(m,"fixLineBreaks",function(){return l}),T.d(m,"VTTParser",function(){return n});var b=T("./src/utils/vttcue.ts"),y=function(){function i(){}var a=i.prototype;return a.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 a(h,d,s,u){return(h|0)*3600+(d|0)*60+(s|0)+parseFloat(u||0)}var c=i.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return c?parseFloat(c[2])>59?a(c[2],c[3],0,c[4]):a(c[1],c[2],c[3],c[4]):null}var A=function(){function i(){this.values=Object.create(null)}var a=i.prototype;return a.set=function(h,d){!this.get(h)&&d!==""&&(this.values[h]=d)},a.get=function(h,d,s){return s?this.has(h)?this.values[h]:d[s]:this.has(h)?this.values[h]:d},a.has=function(h){return h in this.values},a.alt=function(h,d,s){for(var u=0;u<s.length;++u)if(d===s[u]){this.set(h,d);break}},a.integer=function(h,d){/^-?\d+$/.test(d)&&this.set(h,parseInt(d,10))},a.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 g(i,a,c,h){var d=h?i.split(h):[i];for(var s in d){if(typeof d[s]!="string")continue;var u=d[s].split(c);if(u.length!==2)continue;var S=u[0],E=u[1];a(S,E)}}var e=new b.default(0,0,""),f=e.align==="middle"?"middle":"center";function r(i,a,c){var h=i;function d(){var S=C(i);if(S===null)throw new Error("Malformed timestamp: "+h);return i=i.replace(/^[^\sa-zA-Z-]+/,""),S}function s(S,E){var _=new A;g(S,function(x,w){var v;switch(x){case"region":for(var O=c.length-1;O>=0;O--)if(c[O].id===w){_.set(x,c[O].region);break}break;case"vertical":_.alt(x,w,["rl","lr"]);break;case"line":v=w.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=w.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,w);break;case"align":_.alt(x,w,["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 u(){i=i.replace(/^\s+/,"")}if(u(),a.startTime=d(),u(),i.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+h);i=i.substr(3),u(),a.endTime=d(),u(),s(i,a)}function l(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 a=i.prototype;return a.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=l(R);x<R.length&&R[x]!=="\r"&&R[x]!==`
|
|
|
`;)++x;var w=R.substr(0,x);return R[x]==="\r"&&++x,R[x]===`
|
|
|
`&&++x,d.buffer=R.substr(x),w}function u(R){g(R,function(x,w){},/:/)}try{var S="";if(d.state==="INITIAL"){if(!/\r\n|\n/.test(d.buffer))return this;S=s();var E=S.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:S=s();switch(d.state){case"HEADER":/:/.test(S)?u(S):S||(d.state="ID");continue;case"NOTE":S||(d.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(S)){d.state="NOTE";break}if(!S)continue;if(d.cue=new b.default(0,0,""),d.state="CUE",S.indexOf("-->")===-1){d.cue.id=S;continue}case"CUE":if(!d.cue){d.state="BADCUE";continue}try{r(S,d.cue,d.regionList)}catch(R){d.cue=null,d.state="BADCUE";continue}d.state="CUETEXT";continue;case"CUETEXT":{var P=S.indexOf("-->")!==-1;if(!S||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+=S}continue;case"BADCUE":S||(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},a.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,m,T){"use strict";T.r(m),T.d(m,"generateCueId",function(){return n}),T.d(m,"parseWebVTT",function(){return a});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/vttparser.ts"),C=T("./src/demux/id3.ts"),A=T("./src/utils/timescale-conversion.ts"),g=T("./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},r=function(h){var d=parseInt(h.substr(-3)),s=parseInt(h.substr(-6,2)),u=parseInt(h.substr(-9,2)),S=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(d)||!Object(b.isFiniteNumber)(s)||!Object(b.isFiniteNumber)(u)||!Object(b.isFiniteNumber)(S))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return d+=1e3*s,d+=60*1e3*u,d+=60*60*1e3*S,d},l=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 l(c.toString())+l(h.toString())+l(d)}var i=function(h,d,s){var u=h[d],S=h[u.prevCC];if(!S||!S.new&&u.new){h.ccOffset=h.presentationOffset=u.start,u.new=!1;return}for(;(E=S)!==null&&E!==void 0&&E.new;){var E;h.ccOffset+=u.start-S.start,u.new=!1,u=S,S=h[u.prevCC]}h.presentationOffset=s};function a(c,h,d,s,u,S,E,_){var P=new y.VTTParser,R=Object(C.utf8ArrayToStr)(new Uint8Array(c)).trim().replace(e,`
|
|
|
`).split(`
|
|
|
`),x=[],w=Object(A.toMpegTsClockFromTimescale)(h,d),v="00:00.000",O=0,U=0,I,N=!0,V=!1;P.oncue=function(H){var D=s[u],W=s.ccOffset,F=(O-w)/9e4;if(D!=null&&D.new&&(U!==void 0?W=s.ccOffset=D.start:i(s,u,F)),F&&(W=F-s.presentationOffset),V){var L=H.endTime-H.startTime,K=Object(g.normalizePts)((H.startTime+W-U)*9e4,S*9e4)/9e4;H.startTime=K,H.endTime=K+L}var te=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(te)),H.id||(H.id=n(H.startTime,H.endTime,te)),H.endTime>0&&x.push(H)},P.onparsingerror=function(H){I=H},P.onflush=function(){if(I){_(I);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:")&&(O=parseInt(D.substr(7)))});try{U=r(v)/1e3}catch(D){V=!1,I=D}return}else H===""&&(N=!1);P.parse(H+`
|
|
|
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(M,m,T){"use strict";T.r(m);var b=T("./src/utils/logger.ts"),y=T("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,A=function(){function g(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=g.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))},e.abort=function(){var r;this.abortInternal(),(r=this.callbacks)!==null&&r!==void 0&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(r,l,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=l,this.callbacks=n,this.retryDelay=l.retryDelay,this.loadInternal()},e.loadInternal=function(){var r=this.config,l=this.context;if(!r)return;var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var a=this.xhrSetup;try{if(a)try{a(n,l.url)}catch(d){n.open("GET",l.url,!0),a(n,l.url)}n.readyState||n.open("GET",l.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},l,n);return}l.rangeEnd&&n.setRequestHeader("Range","bytes="+l.rangeStart+"-"+(l.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=l.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),n.send()},e.readystatechange=function(){var r=this.context,l=this.loader,n=this.stats;if(!r||!l)return;var i=l.readyState,a=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){l.onreadystatechange=null,l.onprogress=null;var c=l.status;if(c>=200&&c<300){n.loading.end=Math.max(self.performance.now(),n.loading.first);var h,d;if(r.responseType==="arraybuffer"?(h=l.response,d=h.byteLength):(h=l.responseText,d=h.length),n.loaded=n.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(n,r,h,l),!this.callbacks)return;var u={url:l.responseURL,data:h};this.callbacks.onSuccess(u,n,r,l)}else n.retry>=a.maxRetry||c>=400&&c<499?(b.logger.error(c+" while loading "+r.url),this.callbacks.onError({code:c,text:l.statusText},r,l)):(b.logger.warn(c+" while loading "+r.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)},e.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(r){var l=this.stats;l.loaded=r.loaded,r.lengthComputable&&(l.total=r.total)},e.getCacheAge=function(){var r=null;if(this.loader&&C.test(this.loader.getAllResponseHeaders())){var l=this.loader.getResponseHeader("age");r=l?parseFloat(l):null}return r},g}();m.default=A}}).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,m,T){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.StreamCipher,y=m.algo,C=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,r=e.sigBytes,l=this._S=[],n=0;n<256;n++)l[n]=n;for(var n=0,i=0;n<256;n++){var a=n%r,c=f[a>>>2]>>>24-a%4*8&255;i=(i+l[n]+c)%256;var h=l[n];l[n]=l[i],l[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=A.call(this)},keySize:256/32,ivSize:0});function A(){for(var e=this._S,f=this._i,r=this._j,l=0,n=0;n<4;n++){f=(f+1)%256,r=(r+e[f])%256;var i=e[f];e[f]=e[r],e[r]=i,l|=e[(e[f]+e[r])%256]<<24-n*8}return this._i=f,this._j=r,l}m.RC4=b._createHelper(C);var g=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--)A.call(this)}});m.RC4Drop=b._createHelper(g)}(),M.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return ut});var M=o("rePB"),m=o("VTBJ"),T=o("KQm4"),b=o("U8pU"),y=o("ODXe"),C=o("q1tI"),A=o("TSYQ"),g=o.n(A),e=o("Gytx"),f=o.n(e),r=o("Kwbf"),l=o("t23M"),n=o("qx4F"),i=o("6eGT"),a=o("IBYe"),c=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function u(Ve,ke,dt,Bt,vt){var Rt=dt[Ve]||{},ot=dt[ke]||{},Je,et;Rt.fixed==="left"?Je=Bt.left[Ve]:ot.fixed==="right"&&(et=Bt.right[ke]);var Me=!1,Be=!1,Xe=!1,Ke=!1,$e=dt[ke+1],_t=dt[Ve-1];if(vt==="rtl"){if(Je!==void 0){var Ft=_t&&_t.fixed==="left";Ke=!Ft}else if(et!==void 0){var qt=$e&&$e.fixed==="right";Xe=!qt}}else if(Je!==void 0){var bn=$e&&$e.fixed==="left";Me=!bn}else if(et!==void 0){var At=_t&&_t.fixed==="right";Be=!At}return{fixLeft:Je,fixRight:et,lastFixLeft:Me,firstFixRight:Be,lastFixRight:Xe,firstFixLeft:Ke,isSticky:Bt.isSticky}}var S=o("sR1s");function E(Ve){var ke=Ve.cells,dt=Ve.stickyOffsets,Bt=Ve.flattenColumns,vt=Ve.rowComponent,Rt=Ve.cellComponent,ot=Ve.onHeaderRow,Je=Ve.index,et=C.useContext(s.a),Me=et.prefixCls,Be=et.direction,Xe;ot&&(Xe=ot(ke.map(function($e){return $e.column}),Je));var Ke=Object(S.a)(ke.map(function($e){return $e.column}));return C.createElement(vt,Object.assign({},Xe),ke.map(function($e,_t){var Ft=$e.column,qt=u($e.colStart,$e.colEnd,Bt,dt,Be),bn;return Ft&&Ft.onHeaderCell&&(bn=$e.column.onHeaderCell(Ft)),C.createElement(d.a,Object.assign({},$e,{ellipsis:Ft.ellipsis,align:Ft.align,component:Rt,prefixCls:Me,key:Ke[_t]},qt,{additionalProps:bn,rowType:"header"}))}))}E.displayName="HeaderRow";var _=E;function P(Ve){var ke=[];function dt(ot,Je){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ke[et]=ke[et]||[];var Me=Je,Be=ot.filter(Boolean).map(function(Xe){var Ke={key:Xe.key,className:Xe.className||"",children:Xe.title,column:Xe,colStart:Me},$e=1,_t=Xe.children;return _t&&_t.length>0&&($e=dt(_t,Me,et+1).reduce(function(Ft,qt){return Ft+qt},0),Ke.hasSubColumns=!0),"colSpan"in Xe&&($e=Xe.colSpan),"rowSpan"in Xe&&(Ke.rowSpan=Xe.rowSpan),Ke.colSpan=$e,Ke.colEnd=Ke.colStart+$e-1,ke[et].push(Ke),Me+=$e,$e});return Be}dt(Ve,0);for(var Bt=ke.length,vt=function(Je){ke[Je].forEach(function(et){!("rowSpan"in et)&&!et.hasSubColumns&&(et.rowSpan=Bt-Je)})},Rt=0;Rt<Bt;Rt+=1)vt(Rt);return ke}function R(Ve){var ke=Ve.stickyOffsets,dt=Ve.columns,Bt=Ve.flattenColumns,vt=Ve.onHeaderRow,Rt=C.useContext(s.a),ot=Rt.prefixCls,Je=Rt.getComponent,et=C.useMemo(function(){return P(dt)},[dt]),Me=Je(["header","wrapper"],"thead"),Be=Je(["header","row"],"tr"),Xe=Je(["header","cell"],"th");return C.createElement(Me,{className:"".concat(ot,"-thead")},et.map(function(Ke,$e){var _t=C.createElement(_,{key:$e,flattenColumns:Bt,cells:Ke,stickyOffsets:ke,rowComponent:Be,cellComponent:Xe,onHeaderRow:vt,index:$e});return _t}))}var x=R,w=o("hW8S");function v(Ve){for(var ke=Ve.colWidths,dt=Ve.columns,Bt=Ve.columCount,vt=[],Rt=Bt||dt.length,ot=!1,Je=Rt-1;Je>=0;Je-=1){var et=ke[Je],Me=dt&&dt[Je],Be=Me&&Me[w.a];(et||Be||ot)&&(vt.unshift(C.createElement("col",Object.assign({key:Je,style:{width:et,minWidth:et}},Be))),ot=!0)}return C.createElement("colgroup",null,vt)}var O=v;function U(Ve,ke){return Object(C.useMemo)(function(){for(var dt=[],Bt=0;Bt<ke;Bt+=1){var vt=Ve[Bt];if(vt!==void 0)dt[Bt]=vt;else return null}return dt},[Ve.join("_"),ke])}var I=C.forwardRef(function(Ve,ke){var dt=Ve.noData,Bt=Ve.columns,vt=Ve.flattenColumns,Rt=Ve.colWidths,ot=Ve.columCount,Je=Ve.stickyOffsets,et=Ve.direction,Me=Ve.fixHeader,Be=Ve.offsetHeader,Xe=Ve.stickyClassName,Ke=Ve.onScroll,$e=Object(c.a)(Ve,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),_t=C.useContext(s.a),Ft=_t.prefixCls,qt=_t.scrollbarSize,bn=_t.isSticky,At=bn&&!Me?0:qt,Et=C.useRef(null),je=C.useCallback(function(Ot){Object(h.b)(ke,Ot),Object(h.b)(Et,Ot)},[]);C.useEffect(function(){var Ot;function Lt(tt){var Ut=tt.currentTarget,Pt=tt.deltaX;Pt&&(Ke({currentTarget:Ut,scrollLeft:Ut.scrollLeft+Pt}),tt.preventDefault())}return(Ot=Et.current)===null||Ot===void 0||Ot.addEventListener("wheel",Lt),function(){var tt;(tt=Et.current)===null||tt===void 0||tt.removeEventListener("wheel",Lt)}},[]);var rt=vt[vt.length-1],at={fixed:rt?rt.fixed:null,onHeaderCell:function(){return{className:"".concat(Ft,"-cell-scrollbar")}}},Ae=Object(C.useMemo)(function(){return At?[].concat(Object(T.a)(Bt),[at]):Bt},[At,Bt]),Fe=Object(C.useMemo)(function(){return At?[].concat(Object(T.a)(vt),[at]):vt},[At,vt]),Tt=Object(C.useMemo)(function(){var Ot=Je.right,Lt=Je.left;return Object(m.a)(Object(m.a)({},Je),{},{left:et==="rtl"?[].concat(Object(T.a)(Lt.map(function(tt){return tt+At})),[0]):Lt,right:et==="rtl"?Ot:[].concat(Object(T.a)(Ot.map(function(tt){return tt+At})),[0]),isSticky:bn})},[At,Je,bn]),yt=U(Rt,ot);return C.createElement("div",{style:Object(m.a)({overflow:"hidden"},bn?{top:Be}:{}),ref:je,className:g()("".concat(Ft,"-header"),Object(M.a)({},Xe,!!Xe))},C.createElement("table",{style:{tableLayout:"fixed",visibility:dt||yt?null:"hidden"}},C.createElement(O,{colWidths:yt?[].concat(Object(T.a)(yt),[At]):[],columCount:ot+1,columns:Fe}),C.createElement(x,Object.assign({},$e,{stickyOffsets:Tt,columns:Ae,flattenColumns:Fe}))))});I.displayName="FixedHeader";var N=I,V=C.createContext(null),H=V;function D(Ve){var ke=Ve.prefixCls,dt=Ve.children,Bt=Ve.component,vt=Ve.cellComponent,Rt=Ve.fixHeader,ot=Ve.fixColumn,Je=Ve.horizonScroll,et=Ve.className,Me=Ve.expanded,Be=Ve.componentWidth,Xe=Ve.colSpan,Ke=C.useContext(s.a),$e=Ke.scrollbarSize;return C.useMemo(function(){var _t=dt;return ot&&(_t=C.createElement("div",{style:{width:Be-(Rt?$e:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ke,"-expanded-row-fixed")},_t)),C.createElement(Bt,{className:et,style:{display:Me?null:"none"}},C.createElement(d.a,{component:vt,prefixCls:ke,colSpan:Xe},_t))},[dt,Bt,Rt,Je,et,Me,Be,Xe,$e])}var W=D;function F(Ve){var ke=Ve.className,dt=Ve.style,Bt=Ve.record,vt=Ve.index,Rt=Ve.rowKey,ot=Ve.getRowKey,Je=Ve.rowExpandable,et=Ve.expandedKeys,Me=Ve.onRow,Be=Ve.indent,Xe=Be===void 0?0:Be,Ke=Ve.rowComponent,$e=Ve.cellComponent,_t=Ve.childrenColumnName,Ft=C.useContext(s.a),qt=Ft.prefixCls,bn=Ft.fixedInfoList,At=C.useContext(H),Et=At.fixHeader,je=At.fixColumn,rt=At.horizonScroll,at=At.componentWidth,Ae=At.flattenColumns,Fe=At.expandableType,Tt=At.expandRowByClick,yt=At.onTriggerExpand,Ot=At.rowClassName,Lt=At.expandedRowClassName,tt=At.indentSize,Ut=At.expandIcon,Pt=At.expandedRowRender,an=At.expandIconColumnIndex,nn=C.useState(!1),rn=Object(y.a)(nn,2),Tn=rn[0],sn=rn[1],un=et&&et.has(Ve.recordKey);C.useEffect(function(){un&&sn(!0)},[un]);var Jn=Fe==="row"&&(!Je||Je(Bt)),kn=Fe==="nest",Yn=_t&&Bt&&Bt[_t],tr=Jn||kn,pr;Me&&(pr=Me(Bt,vt));var ar=function(X){if(Tt&&tr&&yt(Bt,X),pr&&pr.onClick){for(var q,se=arguments.length,De=new Array(se>1?se-1:0),he=1;he<se;he++)De[he-1]=arguments[he];(q=pr).onClick.apply(q,[X].concat(De))}},mn;typeof Ot=="string"?mn=Ot:typeof Ot=="function"&&(mn=Ot(Bt,vt,Xe));var en=Object(S.a)(Ae),Nn=C.createElement(Ke,Object.assign({},pr,{"data-row-key":Rt,className:g()(ke,"".concat(qt,"-row"),"".concat(qt,"-row-level-").concat(Xe),mn,pr&&pr.className),style:Object(m.a)(Object(m.a)({},dt),pr?pr.style:null),onClick:ar}),Ae.map(function(pe,X){var q=pe.render,se=pe.dataIndex,De=pe.className,he=en[X],pt=bn[X],vn;X===(an||0)&&kn&&(vn=C.createElement(C.Fragment,null,C.createElement("span",{style:{paddingLeft:"".concat(tt*Xe,"px")},className:"".concat(qt,"-row-indent indent-level-").concat(Xe)}),Ut({prefixCls:qt,expanded:un,expandable:Yn,record:Bt,onExpand:yt})));var Kn;return pe.onCell&&(Kn=pe.onCell(Bt,vt)),C.createElement(d.a,Object.assign({className:De,ellipsis:pe.ellipsis,align:pe.align,component:$e,prefixCls:qt,key:he,record:Bt,index:vt,dataIndex:se,render:q,shouldCellUpdate:pe.shouldCellUpdate},pt,{appendNode:vn,additionalProps:Kn}))})),Zr;if(Jn&&(Tn||un)){var zr=Pt(Bt,vt,Xe+1,un),Ur=Lt&&Lt(Bt,vt,Xe);Zr=C.createElement(W,{expanded:un,className:g()("".concat(qt,"-expanded-row"),"".concat(qt,"-expanded-row-level-").concat(Xe+1),Ur),prefixCls:qt,fixHeader:Et,fixColumn:je,horizonScroll:rt,component:Ke,componentWidth:at,cellComponent:$e,colSpan:Ae.length},zr)}var Dr;return Yn&&un&&(Dr=(Bt[_t]||[]).map(function(pe,X){var q=ot(pe,X);return C.createElement(F,Object.assign({},Ve,{key:q,rowKey:q,record:pe,recordKey:q,index:X,indent:Xe+1}))})),C.createElement(C.Fragment,null,Nn,Zr,Dr)}F.displayName="BodyRow";var L=F,K=C.createContext(null),te=K;function fe(Ve){var ke=Ve.columnKey,dt=Ve.onColumnResize,Bt=C.useRef();return C.useEffect(function(){Bt.current&&dt(ke,Bt.current.offsetWidth)},[]),C.createElement(l.a,{onResize:function(Rt){var ot=Rt.offsetWidth;dt(ke,ot)}},C.createElement("td",{ref:Bt,style:{padding:0,border:0,height:0}},C.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function de(Ve){var ke=Ve.data,dt=Ve.getRowKey,Bt=Ve.measureColumnWidth,vt=Ve.expandedKeys,Rt=Ve.onRow,ot=Ve.rowExpandable,Je=Ve.emptyNode,et=Ve.childrenColumnName,Me=C.useContext(te),Be=Me.onColumnResize,Xe=C.useContext(s.a),Ke=Xe.prefixCls,$e=Xe.getComponent,_t=C.useContext(H),Ft=_t.fixHeader,qt=_t.horizonScroll,bn=_t.flattenColumns,At=_t.componentWidth;return C.useMemo(function(){var Et=$e(["body","wrapper"],"tbody"),je=$e(["body","row"],"tr"),rt=$e(["body","cell"],"td"),at;ke.length?at=ke.map(function(Fe,Tt){var yt=dt(Fe,Tt);return C.createElement(L,{key:yt,rowKey:yt,record:Fe,recordKey:yt,index:Tt,rowComponent:je,cellComponent:rt,expandedKeys:vt,onRow:Rt,getRowKey:dt,rowExpandable:ot,childrenColumnName:et})}):at=C.createElement(W,{expanded:!0,className:"".concat(Ke,"-placeholder"),prefixCls:Ke,fixHeader:Ft,fixColumn:qt,horizonScroll:qt,component:je,componentWidth:At,cellComponent:rt,colSpan:bn.length},Je);var Ae=Object(S.a)(bn);return C.createElement(Et,{className:"".concat(Ke,"-tbody")},Bt&&C.createElement("tr",{"aria-hidden":"true",className:"".concat(Ke,"-measure-row"),style:{height:0}},Ae.map(function(Fe){return C.createElement(fe,{key:Fe,columnKey:Fe,onColumnResize:Be})})),at)},[ke,Ke,Rt,Bt,vt,dt,$e,At,Je,bn])}var Ce=C.memo(de);Ce.displayName="Body";var Oe=Ce,ce=o("wRmb"),Ee=o("xEkU"),ye=o.n(Ee);function ue(Ve){var ke=Object(C.useRef)(Ve),dt=Object(C.useState)({}),Bt=Object(y.a)(dt,2),vt=Bt[1],Rt=Object(C.useRef)(null),ot=Object(C.useRef)([]);function Je(et){Rt.current===null&&(ot.current=[],Rt.current=ye()(function(){ot.current.forEach(function(Me){ke.current=Me(ke.current)}),Rt.current=null,vt({})})),ot.current.push(et)}return Object(C.useEffect)(function(){return function(){ye.a.cancel(Rt.current)}},[]),[ke.current,Je]}function le(Ve){var ke=Object(C.useRef)(Ve),dt=Object(C.useRef)(null);function Bt(){window.clearTimeout(dt.current)}function vt(ot){ke.current=ot,Bt(),dt.current=window.setTimeout(function(){ke.current=null,dt.current=null},100)}function Rt(){return ke.current}return Object(C.useEffect)(function(){return Bt},[]),[vt,Rt]}function $(Ve,ke,dt){var Bt=Object(C.useMemo)(function(){for(var vt=[],Rt=[],ot=0,Je=0,et=0;et<ke;et+=1)if(dt==="rtl"){Rt[et]=Je,Je+=Ve[et]||0;var Me=ke-et-1;vt[Me]=ot,ot+=Ve[Me]||0}else{vt[et]=ot,ot+=Ve[et]||0;var Be=ke-et-1;Rt[Be]=Je,Je+=Ve[Be]||0}return{left:vt,right:Rt}},[Ve,ke,dt]);return Bt}var me=$;function re(Ve){var ke=Ve.className,dt=Ve.children;return C.createElement("div",{className:ke},dt)}var ae=re,Se=o("n6Qo");function oe(Ve){var ke,dt=Ve.prefixCls,Bt=Ve.record,vt=Ve.onExpand,Rt=Ve.expanded,ot=Ve.expandable,Je="".concat(dt,"-row-expand-icon");if(!ot)return C.createElement("span",{className:g()(Je,"".concat(dt,"-row-spaced"))});var et=function(Be){vt(Bt,Be),Be.stopPropagation()};return C.createElement("span",{className:g()(Je,(ke={},Object(M.a)(ke,"".concat(dt,"-row-expanded"),Rt),Object(M.a)(ke,"".concat(dt,"-row-collapsed"),!Rt),ke)),onClick:et})}function ee(Ve,ke,dt){var Bt=[];function vt(Rt){(Rt||[]).forEach(function(ot,Je){Bt.push(ke(ot,Je)),vt(ot[dt])})}return vt(Ve),Bt}var J=o("zT1h"),Q=o("y0+3"),ve=function(ke,dt){var Bt,vt,Rt=ke.scrollBodyRef,ot=ke.onScroll,Je=ke.offsetScroll,et=C.useContext(s.a),Me=et.prefixCls,Be=((Bt=Rt.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,Xe=((vt=Rt.current)===null||vt===void 0?void 0:vt.clientWidth)||0,Ke=Be&&Xe*(Xe/Be),$e=C.useRef(),_t=ue({scrollLeft:0,isHiddenScrollBar:!1}),Ft=Object(y.a)(_t,2),qt=Ft[0],bn=Ft[1],At=C.useRef({delta:0,x:0}),Et=C.useState(!1),je=Object(y.a)(Et,2),rt=je[0],at=je[1],Ae=function(){at(!1)},Fe=function(tt){tt.persist(),At.current.delta=tt.pageX-qt.scrollLeft,At.current.x=0,at(!0),tt.preventDefault()},Tt=function(tt){var Ut,Pt=tt||((Ut=window)===null||Ut===void 0?void 0:Ut.event),an=Pt.buttons;if(!rt||an===0){rt&&at(!1);return}var nn=At.current.x+tt.pageX-At.current.x-At.current.delta;nn<=0&&(nn=0),nn+Ke>=Xe&&(nn=Xe-Ke),ot({scrollLeft:nn/Xe*(Be+2)}),At.current.x=tt.pageX},yt=function(){var tt=Object(Q.b)(Rt.current).top,Ut=tt+Rt.current.offsetHeight,Pt=document.documentElement.scrollTop+window.innerHeight;Ut-Object(n.a)()<=Pt||tt>=Pt-Je?bn(function(an){return Object(m.a)(Object(m.a)({},an),{},{isHiddenScrollBar:!0})}):bn(function(an){return Object(m.a)(Object(m.a)({},an),{},{isHiddenScrollBar:!1})})},Ot=function(tt){bn(function(Ut){return Object(m.a)(Object(m.a)({},Ut),{},{scrollLeft:tt/Be*Xe||0})})};return C.useImperativeHandle(dt,function(){return{setScrollLeft:Ot}}),C.useEffect(function(){var Lt=Object(J.a)(document.body,"mouseup",Ae,!1),tt=Object(J.a)(document.body,"mousemove",Tt,!1);return yt(),function(){Lt.remove(),tt.remove()}},[Ke,rt]),C.useEffect(function(){var Lt=Object(J.a)(window,"scroll",yt,!1),tt=Object(J.a)(window,"resize",yt,!1);return function(){Lt.remove(),tt.remove()}},[]),C.useEffect(function(){qt.isHiddenScrollBar||bn(function(Lt){var tt,Ut;return Object(m.a)(Object(m.a)({},Lt),{},{scrollLeft:Rt.current.scrollLeft/((tt=Rt.current)===null||tt===void 0?void 0:tt.scrollWidth)*((Ut=Rt.current)===null||Ut===void 0?void 0:Ut.clientWidth)})})},[qt.isHiddenScrollBar]),Be<=Xe||!Ke||qt.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(n.a)(),width:Xe,bottom:Je},className:"".concat(Me,"-sticky-scroll")},C.createElement("div",{onMouseDown:Fe,ref:$e,className:g()("".concat(Me,"-sticky-scroll-bar"),Object(M.a)({},"".concat(Me,"-sticky-scroll-bar-active"),rt)),style:{width:"".concat(Ke,"px"),transform:"translate3d(".concat(qt.scrollLeft,"px, 0, 0)")}}))},_e=C.forwardRef(ve);function Te(Ve,ke){return C.useMemo(function(){var dt=!!Ve;return{isSticky:dt,stickyClassName:dt?"".concat(ke,"-sticky-header"):"",offsetHeader:Object(b.a)(Ve)==="object"&&Ve.offsetHeader||0,offsetScroll:Object(b.a)(Ve)==="object"&&Ve.offsetScroll||0}},[Ve,ke])}var Ge=[],qe={},ut="rc-table-internal-hook",st=C.memo(function(Ve){var ke=Ve.children;return ke},function(Ve,ke){return f()(Ve.props,ke.props)?Ve.pingLeft!==ke.pingLeft||Ve.pingRight!==ke.pingRight:!1});function ft(Ve){var ke,dt=Ve.prefixCls,Bt=Ve.className,vt=Ve.rowClassName,Rt=Ve.style,ot=Ve.data,Je=Ve.rowKey,et=Ve.scroll,Me=Ve.tableLayout,Be=Ve.direction,Xe=Ve.title,Ke=Ve.footer,$e=Ve.summary,_t=Ve.id,Ft=Ve.showHeader,qt=Ve.components,bn=Ve.emptyText,At=Ve.onRow,Et=Ve.onHeaderRow,je=Ve.internalHooks,rt=Ve.transformColumns,at=Ve.internalRefs,Ae=Ve.sticky,Fe=ot||Ge,Tt=!!Fe.length,yt=C.useState(0),Ot=Object(y.a)(yt,2),Lt=Ot[0],tt=Ot[1];C.useEffect(function(){tt(Object(n.a)())});var Ut=C.useMemo(function(){return Object(S.c)(qt,{})},[qt]),Pt=C.useCallback(function(Kt,Jt){return Object(S.b)(Ut,Kt)||Jt},[Ut]),an=C.useMemo(function(){return typeof Je=="function"?Je:function(Kt){var Jt=Kt&&Kt[Je];return Jt}},[Je]),nn=Object(w.c)(Ve),rn=nn.expandIcon,Tn=nn.expandedRowKeys,sn=nn.defaultExpandedRowKeys,un=nn.defaultExpandAllRows,Jn=nn.expandedRowRender,kn=nn.onExpand,Yn=nn.onExpandedRowsChange,tr=nn.expandRowByClick,pr=nn.rowExpandable,ar=nn.expandIconColumnIndex,mn=nn.expandedRowClassName,en=nn.childrenColumnName,Nn=nn.indentSize,Zr=rn||oe,zr=en||"children",Ur=C.useMemo(function(){return Jn?"row":Ve.expandable&&je===ut&&Ve.expandable.__PARENT_RENDER_ICON__||Fe.some(function(Kt){return Kt&&Object(b.a)(Kt)==="object"&&Kt[zr]})?"nest":!1},[!!Jn,Fe]),Dr=C.useState(function(){return sn||(un?ee(Fe,an,zr):[])}),pe=Object(y.a)(Dr,2),X=pe[0],q=pe[1],se=C.useMemo(function(){return new Set(Tn||X||[])},[Tn,X]),De=C.useCallback(function(Kt){var Jt=an(Kt,Fe.indexOf(Kt)),Yt,Vn=se.has(Jt);Vn?(se.delete(Jt),Yt=Object(T.a)(se)):Yt=[].concat(Object(T.a)(se),[Jt]),q(Yt),kn&&kn(!Vn,Kt),Yn&&Yn(Yt)},[an,se,Fe,kn,Yn]),he=C.useState(0),pt=Object(y.a)(he,2),vn=pt[0],Kn=pt[1],dr=Object(ce.b)(Object(m.a)(Object(m.a)(Object(m.a)({},Ve),nn),{},{expandable:!!Jn,expandedKeys:se,getRowKey:an,onTriggerExpand:De,expandIcon:Zr,expandIconColumnIndex:ar,direction:Be}),je===ut?rt:null),on=Object(y.a)(dr,2),Mn=on[0],Xn=on[1],$r=C.useMemo(function(){return{columns:Mn,flattenColumns:Xn}},[Mn,Xn]),ga=C.useRef(),pa=C.useRef(),fr=C.useRef(),za=C.useState(!1),ja=Object(y.a)(za,2),Ra=ja[0],Ha=ja[1],wa=C.useState(!1),Ja=Object(y.a)(wa,2),ka=Ja[0],li=Ja[1],oi=ue(new Map),ua=Object(y.a)(oi,2),fa=ua[0],oa=ua[1],xe=Object(S.a)(Xn),lt=xe.map(function(Kt){return fa.get(Kt)}),Mt=C.useMemo(function(){return lt},[lt.join("_")]),wt=me(Mt,Xn.length,Be),Ht=et&&Object(S.d)(et.y),Nt=et&&Object(S.d)(et.x),Vt=Nt&&Xn.some(function(Kt){var Jt=Kt.fixed;return Jt}),$t=C.useRef(),En=Te(Ae,dt),gn=En.isSticky,Un=En.offsetHeader,An=En.offsetScroll,tn=En.stickyClassName,Pn,yn,jn;Ht&&(yn={overflowY:"scroll",maxHeight:et.y}),Nt&&(Pn={overflowX:"auto"},Ht||(yn={overflowY:"hidden"}),jn={width:et.x===!0?"auto":et.x,minWidth:"100%"});var Rn=C.useCallback(function(Kt,Jt){oa(function(Yt){var Vn=new Map(Yt);return Vn.set(Kt,Jt),Vn})},[]),Qn=le(null),mr=Object(y.a)(Qn,2),kr=mr[0],wn=mr[1];function Xt(Kt,Jt){if(!Jt)return;typeof Jt=="function"?Jt(Kt):Jt.scrollLeft!==Kt&&(Jt.scrollLeft=Kt)}var fn=function(Jt){var Yt=Jt.currentTarget,Vn=Jt.scrollLeft,er=typeof Vn=="number"?Vn:Yt.scrollLeft,Ln=Yt||qe;if(!wn()||wn()===Ln){var ir;kr(Ln),Xt(er,pa.current),Xt(er,fr.current),Xt(er,(ir=$t.current)===null||ir===void 0?void 0:ir.setScrollLeft)}if(Yt){var cr=Yt.scrollWidth,sr=Yt.clientWidth;Ha(er>0),li(er<cr-sr)}},Dn=function(){fr.current&&fn({currentTarget:fr.current})},Qt=function(Jt){var Yt=Jt.width;Dn(),Kn(ga.current?ga.current.offsetWidth:Yt)};C.useEffect(function(){return Dn},[]),C.useEffect(function(){Nt&&Dn()},[Nt]),C.useEffect(function(){je===ut&&at&&(at.body.current=fr.current)});var Sn=Pt(["table"],"table"),_n=C.useMemo(function(){return Me||(Vt?et.x==="max-content"?"auto":"fixed":Ht||Xn.some(function(Kt){var Jt=Kt.ellipsis;return Jt})?"fixed":"auto")},[Ht,Vt,Xn,Me]),In,Bn={colWidths:Mt,columCount:Xn.length,stickyOffsets:wt,onHeaderRow:Et,fixHeader:Ht},or=C.useMemo(function(){return Tt?null:typeof bn=="function"?bn():bn},[Tt,bn]),$n=C.createElement(Oe,{data:Fe,measureColumnWidth:Ht||Nt||gn,expandedKeys:se,rowExpandable:pr,getRowKey:an,onRow:At,emptyNode:or,childrenColumnName:zr}),Or=C.createElement(O,{colWidths:Xn.map(function(Kt){var Jt=Kt.width;return Jt}),columns:Xn}),Pr=$e&&C.createElement(Se.b,null,$e(Fe)),Zn=Pt(["body"]);if(Ht||gn){var Tr;typeof Zn=="function"?(Tr=Zn(Fe,{scrollbarSize:Lt,ref:fr,onScroll:fn}),Bn.colWidths=Xn.map(function(Kt,Jt){var Yt=Kt.width,Vn=Jt===Mn.length-1?Yt-Lt:Yt;return typeof Vn=="number"&&!Number.isNaN(Vn)?Vn:(Object(r.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Tr=C.createElement("div",{style:Object(m.a)(Object(m.a)({},Pn),yn),onScroll:fn,ref:fr,className:g()("".concat(dt,"-body"))},C.createElement(Sn,{style:Object(m.a)(Object(m.a)({},jn),{},{tableLayout:_n})},Or,$n,Pr),gn&&C.createElement(_e,{ref:$t,offsetScroll:An,scrollBodyRef:fr,onScroll:fn})),In=C.createElement(C.Fragment,null,Ft!==!1&&C.createElement(N,Object.assign({noData:!Fe.length},Bn,$r,{direction:Be,offsetHeader:Un,stickyClassName:tn,ref:pa,onScroll:fn})),Tr)}else In=C.createElement("div",{style:Object(m.a)(Object(m.a)({},Pn),yn),className:g()("".concat(dt,"-content")),onScroll:fn,ref:fr},C.createElement(Sn,{style:Object(m.a)(Object(m.a)({},jn),{},{tableLayout:_n})},Or,Ft!==!1&&C.createElement(x,Object.assign({},Bn,$r)),$n,Pr));var vr=Object(w.b)(Ve),Hr=C.createElement("div",Object.assign({className:g()(dt,Bt,(ke={},Object(M.a)(ke,"".concat(dt,"-rtl"),Be==="rtl"),Object(M.a)(ke,"".concat(dt,"-ping-left"),Ra),Object(M.a)(ke,"".concat(dt,"-ping-right"),ka),Object(M.a)(ke,"".concat(dt,"-layout-fixed"),Me==="fixed"),Object(M.a)(ke,"".concat(dt,"-fixed-header"),Ht),Object(M.a)(ke,"".concat(dt,"-fixed-column"),Vt),Object(M.a)(ke,"".concat(dt,"-scroll-horizontal"),Nt),Object(M.a)(ke,"".concat(dt,"-has-fix-left"),Xn[0]&&Xn[0].fixed),Object(M.a)(ke,"".concat(dt,"-has-fix-right"),Xn[Xn.length-1]&&Xn[Xn.length-1].fixed==="right"),ke)),style:Rt,id:_t,ref:ga},vr),C.createElement(st,{pingLeft:Ra,pingRight:ka,props:Object(m.a)(Object(m.a)({},Ve),{},{stickyOffsets:wt,mergedExpandedKeys:se})},Xe&&C.createElement(ae,{className:"".concat(dt,"-title")},Xe(Fe)),C.createElement("div",{className:"".concat(dt,"-container")},In),Ke&&C.createElement(ae,{className:"".concat(dt,"-footer")},Ke(Fe))));Nt&&(Hr=C.createElement(l.a,{onResize:Qt},Hr));var Mr=C.useMemo(function(){return{prefixCls:dt,getComponent:Pt,scrollbarSize:Lt,direction:Be,fixedInfoList:Xn.map(function(Kt,Jt){return u(Jt,Jt,Xn,wt,Be)}),isSticky:gn}},[dt,Pt,Lt,Be,Xn,wt,Be,gn]),qr=C.useMemo(function(){return Object(m.a)(Object(m.a)({},$r),{},{tableLayout:_n,rowClassName:vt,expandedRowClassName:mn,componentWidth:vn,fixHeader:Ht,fixColumn:Vt,horizonScroll:Nt,expandIcon:Zr,expandableType:Ur,expandRowByClick:tr,expandedRowRender:Jn,onTriggerExpand:De,expandIconColumnIndex:ar,indentSize:Nn})},[$r,_n,vt,mn,vn,Ht,Vt,Nt,Zr,Ur,tr,Jn,De,ar,Nn]),rr=C.useMemo(function(){return{onColumnResize:Rn}},[Rn]);return C.createElement(s.a.Provider,{value:Mr},C.createElement(H.Provider,{value:qr},C.createElement(te.Provider,{value:rr},Hr)))}ft.Column=a.a,ft.ColumnGroup=i.a,ft.Summary=Se.a,ft.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var gt=z.b=ft},wRmb:function(k,z,o){"use strict";o.d(z,"a",function(){return f});var M=o("rePB"),m=o("KQm4"),T=o("VTBJ"),b=o("Ff2n"),y=o("q1tI"),C=o.n(y),A=o("Kwbf"),g=o("Zm9Q"),e=o("hW8S");function f(a){return Object(g.a)(a).filter(function(c){return y.isValidElement(c)}).map(function(c){var h=c.key,d=c.props,s=d.children,u=Object(b.a)(d,["children"]),S=Object(T.a)({key:h},u);return s&&(S.children=f(s)),S})}function r(a){return a.reduce(function(c,h){var d=h.fixed,s=d===!0?"left":d,u=h.children;return u&&u.length>0?[].concat(Object(m.a)(c),Object(m.a)(r(u).map(function(S){return Object(T.a)({fixed:s},S)}))):[].concat(Object(m.a)(c),[Object(T.a)(Object(T.a)({},h),{},{fixed:s})])},[])}function l(a){for(var c=!0,h=0;h<a.length;h+=1){var d=a[h];if(c&&d.fixed!=="left")c=!1;else if(!c&&d.fixed==="left"){Object(A.a)(!1,"Index ".concat(h-1," of `columns` missing `fixed='left'` prop."));break}}for(var s=!0,u=a.length-1;u>=0;u-=1){var S=a[u];if(s&&S.fixed!=="right")s=!1;else if(!s&&S.fixed==="right"){Object(A.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function n(a){return a.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(T.a)({fixed:s},d)})}function i(a,c){var h=a.prefixCls,d=a.columns,s=a.children,u=a.expandable,S=a.expandedKeys,E=a.getRowKey,_=a.onTriggerExpand,P=a.expandIcon,R=a.rowExpandable,x=a.expandIconColumnIndex,w=a.direction,v=a.expandRowByClick,O=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(u){var V,H=x||0,D=O[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,te,fe){var de=E(te,fe),Ce=S.has(de),Oe=R?R(te):!0,ce=P({prefixCls:h,expanded:Ce,expandable:Oe,record:te,onExpand:_});return v?y.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ce):ce}),V),F=O.slice();return H>=0&&F.splice(H,0,W),F}return O},[u,O,E,S,P,w]),I=y.useMemo(function(){var V=U;return c&&(V=c(V)),V.length||(V=[{render:function(){return null}}]),V},[c,U,w]),N=y.useMemo(function(){return w==="rtl"?n(r(I)):r(I)},[I,w]);return[I,N]}z.b=i},wZgz:function(k,z,o){(function(M,m,T){k.exports=z=m(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.BlockCipher,y=m.algo,C=[],A=[],g=[],e=[],f=[],r=[],l=[],n=[],i=[],a=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var u=0,S=0,s=0;s<256;s++){var E=S^S<<1^S<<2^S<<3^S<<4;E=E>>>8^E&255^99,C[u]=E,A[E]=u;var _=d[u],P=d[_],R=d[P],x=d[E]*257^E*16843008;g[u]=x<<24|x>>>8,e[u]=x<<16|x>>>16,f[u]=x<<8|x>>>24,r[u]=x;var x=R*16843009^P*65537^_*257^u*16843008;l[E]=x<<24|x>>>8,n[E]=x<<16|x>>>16,i[E]=x<<8|x>>>24,a[E]=x,u?(u=_^d[d[d[R^_]]],S^=d[d[S]]):u=S=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,u=s.words,S=s.sigBytes/4,E=this._nRounds=S+6,_=(E+1)*4,P=this._keySchedule=[],R=0;R<_;R++)R<S?P[R]=u[R]:(d=P[R-1],R%S?S>6&&R%S==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/S|0]<<24),P[R]=P[R-S]^d);for(var x=this._invKeySchedule=[],w=0;w<_;w++){var R=_-w;if(w%4)var d=P[R];else var d=P[R-4];w<4||R<=4?x[w]=d:x[w]=l[C[d>>>24]]^n[C[d>>>16&255]]^i[C[d>>>8&255]]^a[C[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,g,e,f,r,C)},decryptBlock:function(d,s){var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u,this._doCryptBlock(d,s,this._invKeySchedule,l,n,i,a,A);var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u},_doCryptBlock:function(d,s,u,S,E,_,P,R){for(var x=this._nRounds,w=d[s]^u[0],v=d[s+1]^u[1],O=d[s+2]^u[2],U=d[s+3]^u[3],I=4,N=1;N<x;N++){var V=S[w>>>24]^E[v>>>16&255]^_[O>>>8&255]^P[U&255]^u[I++],H=S[v>>>24]^E[O>>>16&255]^_[U>>>8&255]^P[w&255]^u[I++],D=S[O>>>24]^E[U>>>16&255]^_[w>>>8&255]^P[v&255]^u[I++],W=S[U>>>24]^E[w>>>16&255]^_[v>>>8&255]^P[O&255]^u[I++];w=V,v=H,O=D,U=W}var V=(R[w>>>24]<<24|R[v>>>16&255]<<16|R[O>>>8&255]<<8|R[U&255])^u[I++],H=(R[v>>>24]<<24|R[O>>>16&255]<<16|R[U>>>8&255]<<8|R[w&255])^u[I++],D=(R[O>>>24]<<24|R[U>>>16&255]<<16|R[w>>>8&255]<<8|R[v&255])^u[I++],W=(R[U>>>24]<<24|R[w>>>16&255]<<16|R[v>>>8&255]<<8|R[O&255])^u[I++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});m.AES=b._createHelper(h)}(),M.AES})},wbyO:function(k,z,o){(function(M,m){k.exports=z=m(o("Ib8C"))})(this,function(M){return function(){var m=M,T=m.lib,b=T.WordArray,y=m.enc,C=y.Base64url={stringify:function(g,e=!0){var f=g.words,r=g.sigBytes,l=e?this._safe_map:this._map;g.clamp();for(var n=[],i=0;i<r;i+=3)for(var a=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=a<<16|c<<8|h,s=0;s<4&&i+s*.75<r;s++)n.push(l.charAt(d>>>6*(3-s)&63));var u=l.charAt(64);if(u)for(;n.length%4;)n.push(u);return n.join("")},parse:function(g,e=!0){var f=g.length,r=e?this._safe_map:this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var n=0;n<r.length;n++)l[r.charCodeAt(n)]=n}var i=r.charAt(64);if(i){var a=g.indexOf(i);a!==-1&&(f=a)}return A(g,f,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function A(g,e,f){for(var r=[],l=0,n=0;n<e;n++)if(n%4){var i=f[g.charCodeAt(n-1)]<<n%4*2,a=f[g.charCodeAt(n)]>>>6-n%4*2,c=i|a;r[l>>>2]|=c<<24-l%4*8,l++}return b.create(r,l)}}(),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",logo_style:"logo_style___3Gfgr"}},"y0+3":function(k,z,o){"use strict";o.d(z,"a",function(){return r}),o.d(z,"b",function(){return n});var M=/margin|padding|width|height|max|min|offset/,m={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,a,c){if(a=a.toLowerCase(),c==="auto"){if(a==="height")return i.offsetHeight;if(a==="width")return i.offsetWidth}return a in m||(m[a]=M.test(a)),m[a]?parseFloat(c)||0:c}function C(i,a){var c=arguments.length,h=b(i);return a=T[a]?"cssFloat"in i.style?"cssFloat":"styleFloat":a,c===1?h:y(i,a,h[a]||i.style[a])}function A(i,a,c){var h=arguments.length;if(a=T[a]?"cssFloat"in i.style?"cssFloat":"styleFloat":a,h===3)return typeof c=="number"&&M.test(a)&&(c="".concat(c,"px")),i.style[a]=c,c;for(var d in a)a.hasOwnProperty(d)&&A(i,d,a[d]);return b(i)}function g(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),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:a}}function r(){var i=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:a}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function n(i){var a=i.getBoundingClientRect(),c=document.documentElement;return{left:a.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:a.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,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"},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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"}}]);
|