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

599 lines
2.5 MiB

This file contains invisible Unicode characters!

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

(window.webpackJsonp=window.webpackJsonp||[]).push([[268,3,5,6,7,8,9,10,11,12,15,16,21,275],{"+GGh":function(N,Y){N.exports="data:image/png;base64,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"},"+NIl":function(N,Y,i){(function(M){M(i("VrN/"))})(function(M){"use strict";M.defineMode("stex",function(E,T){"use strict";function v(a,o){a.cmdState.push(o)}function m(a){return a.cmdState.length>0?a.cmdState[a.cmdState.length-1]:null}function y(a){var o=a.cmdState.pop();o&&o.closeBracket()}function O(a){for(var o=a.cmdState,l=o.length-1;l>=0;l--){var d=o[l];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function g(a,o,l){return function(){this.name=a,this.bracketNo=0,this.style=o,this.styles=l,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(a,o){a.f=o}function r(a,o){var l;if(a.match(/^\\[a-zA-Z@]+/)){var d=a.current().slice(1);return l=e.hasOwnProperty(d)?e[d]:e.DEFAULT,l=new l,v(o,l),f(o,n),l.style}if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/\\]/))return"tag";if(a.match("\\["))return f(o,function(s,u){return c(s,u,"\\]")}),"keyword";if(a.match("\\("))return f(o,function(s,u){return c(s,u,"\\)")}),"keyword";if(a.match("$$"))return f(o,function(s,u){return c(s,u,"$$")}),"keyword";if(a.match("$"))return f(o,function(s,u){return c(s,u,"$")}),"keyword";var h=a.next();if(h=="%")return a.skipToEnd(),"comment";if(h=="}"||h=="]"){if(l=m(o),l)l.closeBracket(h),f(o,n);else return"error";return"bracket"}else return h=="{"||h=="["?(l=e.DEFAULT,l=new l,v(o,l),"bracket"):/\d/.test(h)?(a.eatWhile(/[\w.%]/),"atom"):(a.eatWhile(/[\w\-_]/),l=O(o),l.name=="begin"&&(l.argument=a.current()),l.styleIdentifier())}function c(a,o,l){if(a.eatSpace())return null;if(l&&a.match(l))return f(o,r),"keyword";if(a.match(/^\\[a-zA-Z@]+/))return"tag";if(a.match(/^[a-zA-Z]+/))return"variable-2";if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/]/))return"tag";if(a.match(/^[\^_&]/))return"tag";if(a.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(a.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=a.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(a.skipToEnd(),"comment"):"error"}function n(a,o){var l=a.peek(),d;return l=="{"||l=="["?(d=m(o),d.openBracket(l),a.eat(l),f(o,r),"bracket"):/[ \t\r]/.test(l)?(a.eat(l),null):(f(o,r),y(o),r(a,o))}return{startState:function(){var a=T.inMathMode?function(o,l){return c(o,l)}:r;return{cmdState:[],f:a}},copyState:function(a){return{cmdState:a.cmdState.slice(),f:a.f}},token:function(a,o){return o.f(a,o)},blankLine:function(a){a.f=r,a.cmdState.length=0},lineComment:"%"}}),M.defineMIME("text/x-stex","stex"),M.defineMIME("text/x-latex","stex")})},"+QRC":function(N,Y,i){"use strict";var M=i("E9nw"),E={"text/plain":"Text","text/html":"Url",default:"Text"},T="Copy to clipboard: #{key}, Enter";function v(y){var O=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return y.replace(/#{\s*key\s*}/g,O)}function m(y,O){var g,e,f,r,c,n,a=!1;O||(O={}),g=O.debug||!1;try{f=M(),r=document.createRange(),c=document.getSelection(),n=document.createElement("span"),n.textContent=y,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(l){if(l.stopPropagation(),O.format)if(l.preventDefault(),typeof l.clipboardData=="undefined"){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=E[O.format]||E.default;window.clipboardData.setData(d,y)}else l.clipboardData.clearData(),l.clipboardData.setData(O.format,y);O.onCopy&&(l.preventDefault(),O.onCopy(l.clipboardData))}),document.body.appendChild(n),r.selectNodeContents(n),c.addRange(r);var o=document.execCommand("copy");if(!o)throw new Error("copy command was unsuccessful");a=!0}catch(l){g&&console.error("unable to copy using execCommand: ",l),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(O.format||"text",y),O.onCopy&&O.onCopy(window.clipboardData),a=!0}catch(d){g&&console.error("unable to copy using clipboardData: ",d),g&&console.error("falling back to prompt"),e=v("message"in O?O.message:T),window.prompt(e,y)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(r):c.removeAllRanges()),n&&document.body.removeChild(n),f()}return a}N.exports=m},"+Xk9":function(N,Y,i){N.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+oxA":function(N,Y,i){N.exports={flex_box_center:"flex_box_center___1SA8P",flex_space_between:"flex_space_between___3iSxN",flex_box_vertical_center:"flex_box_vertical_center___2JAtS",flex_box_center_end:"flex_box_center_end___2w-PB",flex_box_column:"flex_box_column___2s4Ak",head:"head___3iBvF",node:"node____ISDx"}},"+ua5":function(N,Y,i){},"/GNS":function(N,Y,i){N.exports=i.p+"static/search1.c4136dd4.png"},"/cxE":function(N,Y,i){"use strict";i.d(Y,"f",function(){return T}),i.d(Y,"g",function(){return v}),i.d(Y,"h",function(){return m}),i.d(Y,"e",function(){return O}),i.d(Y,"b",function(){return g}),i.d(Y,"c",function(){return e}),i.d(Y,"d",function(){return f}),i.d(Y,"a",function(){return r});class M{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?new Error(c.message+`
`+c.stack):c},0)}}emit(c){this.listeners.forEach(n=>{n(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const E=new M;function T(c){O(c)||E.onUnexpectedError(c);return}function v(c){O(c)||E.onUnexpectedExternalError(c);return}function m(c){if(c instanceof Error){let{name:n,message:a}=c;const o=c.stacktrace||c.stack;return{$isError:!0,name:n,message:a,stack:o}}return c}const y="Canceled";function O(c){return c instanceof Error&&c.name===y&&c.message===y}function g(){const c=new Error(y);return c.name=c.message,c}function e(c){return c?new Error(`Illegal argument: ${c}`):new Error("Illegal argument")}function f(c){return c?new Error(`Illegal state: ${c}`):new Error("Illegal state")}class r extends Error{constructor(c){super("NotSupported");c&&(this.message=c)}}},"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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__),react__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_38__),umi__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("Ty5D"),umi__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("9kvl"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("1nVM"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_41__),moment__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("wd/R"),moment__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_42__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("Z0Lh"),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("w5pM"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("wlus"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("y3Kf"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("8Skl"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("RCxd"),_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("ZW9T"),_utils_authority__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("xKgJ"),_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("FrRK"),_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("QNag"),_utils_fetch__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ErOA"),_components_Permission__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("sLOW"),_utils_env__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("m3rI"),_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("NLgs"),timeFormat="YYYY-MM-DD HH:mm",Option=antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,handleDateString=function(Y){if(!Y)return Y;var i=Y.split(":");if(i[1]=="00"||i[1]=="30")return Y;var M=parseInt(i[1]);if(M<30||M==60)return[i[0],"30"].join(":");if(M<60){var E=[i[0],"00"].join(":"),T="YYYY-MM-DD HH:mm",v=moment__WEBPACK_IMPORTED_MODULE_42___default()(E,T);return v.add(1,"hours"),v.format(T)}return Y},radioStyle={display:"block",height:"30px",lineHeight:"30px"};function Setting(_ref){var _user$userInfo,_user$userInfo$shixun,_shixunsDetail$detail,_shixunsDetail$detail2,_shixunsDetail$detail3,_shixunsDetail$detail4,_shixunsDetail$detail5,_shixunsDetail$settin97,_shixunsDetail$settin98,_shixunsDetail$detail6,_shixunsDetail$detail7,_shixunsDetail$settin150,_shixunsDetail$settin151,_shixunsDetail$settin152,_shixunsDetail$settin153,_shixunsDetail$detail8,user=_ref.user,dispatch=_ref.dispatch,shixunsDetail=_ref.shixunsDetail,practiceSetting=_ref.practiceSetting,shixunId=Object(react__WEBPACK_IMPORTED_MODULE_38__.useRef)(),_useState=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!0),_useState2=Object(_root_workspace_ppte5yg23_local_v8_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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_test2_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 N=Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(i){var M;return _root_workspace_ppte5yg23_local_v8_test2_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:i}});case 2:M=T.sent,M&&setDepartmentList(M.shools_name||[]);case 4:case"end":return T.stop()}},Y)}));return function(i){return N.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var N,Y;(N=shixunsDetail.setting)!==null&&N!==void 0&&(Y=N.shixun)!==null&&Y!==void 0&&Y.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var N,Y;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(N=location.pathname)===null||N===void 0||((Y=N.split("/"))===null||Y===void 0)?void 0:Y[2]},[]);var handleSelectDepartment=function(Y){if(selectDepartmentList.includes(Y)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([].concat(Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[Y]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function N(){var Y;return _root_workspace_ppte5yg23_local_v8_test2_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:Y=M.sent,Y&&setCreateTitle(Y==null?void 0:Y.data);case 4:case"end":return M.stop()}},N)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(Y,i,M){var E=serviceConfigList.map(function(T,v){return v===M?Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v8_test2_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_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},i,Y)):T});setServiceConfigList(E)},handleInitState=function(){var Y,i,M,E,T,v,m,y,O,g,e,f,r,c,n,a,o,l,d,h,s,u,w,x,b,P,R,C,S,_,A,j,I,k,J,G,D,H,W,L,z,ie,ce,ue,xe,Te,de,ve,_e,le,ee,U,K,X,Q,te,ae,re,$,Z,fe,me,Oe,He,Qe,ot,st,ct=(shixunsDetail==null||((Y=shixunsDetail.setting)===null||Y===void 0)?void 0:Y.shixun)||{},dt=ct.choice_main_type,Xe=ct.main_type,ke=ct.small_type,lt=ct.choice_small_type,Mt=ct.is_secret_repository,Ce=ct.standard_scripts,he=ct.evaluate_script,be=ct.shixun_service_configs;if(setEvaluateScript(he),setServiceConfigList(be),setStandardScripts(Ce||[]),setWindowVNCTemplate((i=shixunsDetail.setting)===null||i===void 0||((M=i.shixun)===null||M===void 0)?void 0:M.windows_start_template),setWebsshCloud((E=shixunsDetail.setting)===null||E===void 0||((T=E.shixun)===null||T===void 0)?void 0:T.webssh_cloud),setWindowVNC((v=shixunsDetail.setting)===null||v===void 0||((m=v.shixun)===null||m===void 0)?void 0:m.windows_vnc),setVirtualMachine((y=shixunsDetail.setting)===null||y===void 0||((O=y.shixun)===null||O===void 0)?void 0:O.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((c=shixunsDetail.setting)===null||c===void 0||((n=c.shixun)===null||n===void 0)?void 0:n.vnc),setWebsshShow(!!((a=shixunsDetail.setting)!==null&&a!==void 0&&(o=a.shixun)!==null&&o!==void 0&&o.webssh)),setSshRadioValue((l=shixunsDetail.setting)===null||l===void 0||((d=l.shixun)===null||d===void 0)?void 0:d.webssh),setMultiWebssh((h=shixunsDetail.setting)===null||h===void 0||((s=h.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((u=shixunsDetail.setting)===null||u===void 0||((w=u.shixun)===null||w===void 0)?void 0:w.hide_code),setCodeEditPermission((x=shixunsDetail.setting)===null||x===void 0||((b=x.shixun)===null||b===void 0)?void 0:b.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((C=shixunsDetail.setting)===null||C===void 0||((S=C.shixun)===null||S===void 0)?void 0:S.forbid_copy),setTaskPass((_=shixunsDetail.setting)===null||_===void 0||((A=_.shixun)===null||A===void 0)?void 0:A.task_pass),setTestSetPermission((j=shixunsDetail.setting)===null||j===void 0||((I=j.shixun)===null||I===void 0)?void 0:I.test_set_permission),set_display_git_address((k=shixunsDetail.setting.shixun)===null||k===void 0?void 0:k.display_git_address),setIsCopy((J=shixunsDetail.setting)===null||J===void 0||((G=J.shixun)===null||G===void 0)?void 0:G.can_copy),setOpenValue((D=shixunsDetail.setting)===null||D===void 0||((H=D.shixun)===null||H===void 0)?void 0:H.use_scope),setIsOpenTime(!!((W=shixunsDetail.setting)!==null&&W!==void 0&&(L=W.shixun)!==null&&L!==void 0&&L.opening_time)),setOpenTime((z=shixunsDetail.setting)===null||z===void 0||((ie=z.shixun)===null||ie===void 0)?void 0:ie.opening_time),setSelectDepartmentList((ce=shixunsDetail.setting)===null||ce===void 0||((ue=ce.shixun)===null||ue===void 0)?void 0:ue.scope_partment),setevaluationScript((xe=shixunsDetail.setting)===null||xe===void 0||((Te=xe.shixun)===null||Te===void 0)?void 0:Te.choice_standard_scripts),setDisableDiscuss((de=shixunsDetail.setting)===null||de===void 0||((ve=de.shixun)===null||ve===void 0)?void 0:ve.is_disable_discuss),setterminal_count((_e=shixunsDetail.setting)===null||_e===void 0||((le=_e.shixun)===null||le===void 0)?void 0:le.terminal_count),setSurvivalTime((ee=shixunsDetail.setting)===null||ee===void 0||((U=ee.shixun)===null||U===void 0)?void 0:U.survival_time),(shixunsDetail==null||((K=shixunsDetail.setting)===null||K===void 0||((X=K.shixun)===null||X===void 0||((Q=X.shixun_virtual_templates)===null||Q===void 0)))?void 0:Q.length)>0){var Ee,Ne;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((Ee=shixunsDetail.setting)===null||Ee===void 0||((Ne=Ee.shixun)===null||Ne===void 0))?void 0:Ne.shixun_virtual_templates))}setport((te=shixunsDetail.setting)===null||te===void 0||((ae=te.shixun)===null||ae===void 0)?void 0:ae.port_mapping),(re=shixunsDetail.setting)!==null&&re!==void 0&&($=re.shixun)!==null&&$!==void 0&&$.windows_vnc||(Z=shixunsDetail.setting)!==null&&Z!==void 0&&(fe=Z.shixun)!==null&&fe!==void 0&&fe.linux_vnc||(me=shixunsDetail.setting)!==null&&me!==void 0&&(Oe=me.shixun)!==null&&Oe!==void 0&&Oe.vnc||(He=shixunsDetail.setting)!==null&&He!==void 0&&(Qe=He.shixun)!==null&&Qe!==void 0&&Qe.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(ot=shixunsDetail.setting)!==null&&ot!==void 0&&(st=ot.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(N,Y){var i,M;N!=((i=shixunsDetail.setting)===null||i===void 0||((M=i.shixun)===null||M===void 0)?void 0:M.scope_partment[Y])&&(confirmLeave=!0)}),serviceConfigList.length!=((_shixunsDetail$settin82=shixunsDetail.setting)===null||_shixunsDetail$settin82===void 0||((_shixunsDetail$settin83=_shixunsDetail$settin82.shixun)===null||_shixunsDetail$settin83===void 0||((_shixunsDetail$settin84=_shixunsDetail$settin83.shixun_service_configs)===null||_shixunsDetail$settin84===void 0))?void 0:_shixunsDetail$settin84.length)&&(confirmLeave=!0),serviceConfigList==null||serviceConfigList.map(function(N,Y){var i,M,E,T,v,m,y,O,g,e,f,r;(N==null?void 0:N.cpu_limit)!=((i=shixunsDetail.setting)===null||i===void 0||((M=i.shixun)===null||M===void 0||((E=M.shixun_service_configs[Y])===null||E===void 0))?void 0:E.cpu_limit)&&(confirmLeave=!0),(N==null?void 0:N.lower_cpu_limit)!=((T=shixunsDetail.setting)===null||T===void 0||((v=T.shixun)===null||v===void 0||((m=v.shixun_service_configs[Y])===null||m===void 0))?void 0:m.lower_cpu_limit)&&(confirmLeave=!0),(N==null?void 0:N.memory_limit)!=((y=shixunsDetail.setting)===null||y===void 0||((O=y.shixun)===null||O===void 0||((g=O.shixun_service_configs[Y])===null||g===void 0))?void 0:g.memory_limit)&&(confirmLeave=!0),(N==null?void 0:N.request_limit)!=((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0||((r=f.shixun_service_configs[Y])===null||r===void 0))?void 0:r.request_limit)&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,selectDepartmentList,isOpenTime,openTime,isRadiuvalue,sshRadioValue,multiWebssh,hideCode,display_git_address,codeHidden,codeEditPermission,forbidCopy,evaluationScript,evaluateScript,serviceConfigList,disableDiscuss,webssh_cloud]);var handleUseCustomScript=function(){dispatch({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:shixunId.current}}})};function handSubmeit(){return _handSubmeit.apply(this,arguments)}function _handSubmeit(){return _handSubmeit=Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function N(){var Y,i,M,E;return _root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!(isOpenTime&&!openTime)){v.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),v.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){v.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"),v.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){v.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),v.abrupt("return");case 9:if(i=(Y=shixunsDetail.detail)===null||Y===void 0?void 0:Y.is_jupyter,M=!1,isRadiuvalue==5&&virtual_machine&&(shixun_virtual_templates==null||shixun_virtual_templates.map(function(m){if(!(m!=null&&m.template_name)||!(m!=null&&m.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){v.next=14;break}return v.abrupt("return");case 14:return v.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:i?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:i?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(m){return{mirror_repository_id:m.mirror_repository_id,cpu_limit:m.cpu_limit,lower_cpu_limit:m.lower_cpu_limit,memory_limit:m.memory_limit,request_limit:m.request_limit}})}});case 16:E=v.sent,(E==null?void 0:E.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 v.stop()}},N)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(Y){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var i=Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function E(){return _root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,handleGetScriptContent(Y);case 2:antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return v.stop()}},E)}));function M(){return i.apply(this,arguments)}return M}()})},handleGetScriptContent=function(){var N=Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(i){var M;return _root_workspace_ppte5yg23_local_v8_test2_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:i}});case 2:M=T.sent,M&&setEvaluateScript(M.content);case 4:case"end":return T.stop()}},Y)}));return function(i){return N.apply(this,arguments)}}(),handleDeleteShixun=function(){var N=Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function Y(){var i,M,E,T,v,m,y;return _root_workspace_ppte5yg23_local_v8_test2_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:y=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)},!!((i=y.subjects)!==null&&i!==void 0&&i.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=y.subjects)===null||M===void 0||((E=M.splice(0,2))===null||E===void 0)?void 0:E.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},y==null?void 0:y.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((T=y.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",(v=y.courses)===null||v===void 0||((m=v.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},y==null?void 0:y.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_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function r(){var c;return _root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:c=a.sent,c.status===1&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns"));case 4:case"end":return a.stop()}},r)}));function f(){return e.apply(this,arguments)}return f}()});case 7:case"end":return g.stop()}},Y)}));return function(){return N.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(N){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(N),parseInt(N)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus()),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}})}return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",display:"flex",background:"#fff",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",background:"#0A143D",width:"25%",maxWidth:"440px",padding:"20px 20px",color:"#ffffff"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{padding:"0px 15px",fontSize:"16px"}},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a,{selectedKeys:[MenuSelectKey],theme:"dark",style:{background:"#0A143D",marginTop:"30px",fontSize:"14px"},onClick:function(Y){var i;if(practiceSetting!=null&&(i=practiceSetting.sideBar)!==null&&i!==void 0&&i.confirmLeave){showExitmodel(Y.key);return}setMenuSelectKey(Y.key),parseInt(Y.key)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus())}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:1},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:2},"\u5173\u4E8E\u5B9E\u8BAD"))),isShowSetting&&(shixunsDetail==null||((_shixunsDetail$detail=shixunsDetail.detail)===null||_shixunsDetail$detail===void 0)?void 0:_shixunsDetail$detail.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_Permission__WEBPACK_IMPORTED_MODULE_54__.a,null),isShowSetting&&!(shixunsDetail!=null&&(_shixunsDetail$detail2=shixunsDetail.detail)!==null&&_shixunsDetail$detail2!==void 0&&_shixunsDetail$detail2.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{width:"calc(100% - 24%)",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px 40px",marginBottom:"70px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{flex:"1"}},"\u5173\u5361\u548C\u6D4B\u8BD5\u96C6"),(shixunsDetail==null||((_shixunsDetail$detail3=shixunsDetail.detail)===null||_shixunsDetail$detail3===void 0)?void 0:_shixunsDetail$detail3.shixun_status)!==2?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteElseShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u8DF3\u5173\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:taskPass,disabled:!editable,onChange:function(Y){return setTaskPass(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u5B66\u4E60\u5B9E\u8BAD\u5173\u5361\u4EFB\u52A1\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u6D4B\u8BD5\u96C6\u89E3\u9501\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:testSetPermission,disabled:!editable,onChange:function(Y){return setTestSetPermission(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u7684\u5185\u5BB9\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u6743\u9650"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u590D\u5236/\u5408\u5E76:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isCopy,onChange:function(Y){return setIsCopy(Y.target.checked)},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((_shixunsDetail$detail4=shixunsDetail.detail)===null||_shixunsDetail$detail4===void 0?void 0:_shixunsDetail$detail4.shixun_status)>1||((_shixunsDetail$detail5=shixunsDetail.detail)===null||_shixunsDetail$detail5===void 0?void 0:_shixunsDetail$detail5.public)===2)&&((_shixunsDetail$settin97=shixunsDetail.setting)===null||_shixunsDetail$settin97===void 0||((_shixunsDetail$settin98=_shixunsDetail$settin97.shixun)===null||_shixunsDetail$settin98===void 0)?void 0:_shixunsDetail$settin98.use_scope)===0&&((_shixunsDetail$detail6=shixunsDetail.detail)===null||_shixunsDetail$detail6===void 0?void 0:_shixunsDetail$detail6.identity)>2)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"4px 0px"}},"\u516C\u5F00\u7A0B\u5EA6:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:openValue,onChange:function(Y){return setOpenValue(Y.target.value)},disabled:!editable},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,value:0},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),openValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__.a,{showSearch:!0,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.selectSchool,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:departmentValue,onChange:function(Y){setDepartmentValue(Y),handleGetDepartments(Y)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(N){return{value:N}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(N){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(i){return i!==N}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},N)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},N)}))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5F00\u542F\u65F6\u95F4:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isOpenTime,onChange:function(Y){setIsOpenTime(Y.target.checked),Y.target.checked||setOpenTime("")},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\u624D\u80FD\u5F00\u542F\u6311\u6218\uFF09")),isOpenTime&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__.a,{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.dataPicker),format:timeFormat,locale:antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default.a,bordered:!1,disabled:!editable,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(Y){return Y&&Y<moment__WEBPACK_IMPORTED_MODULE_42___default()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:openTime&&moment__WEBPACK_IMPORTED_MODULE_42___default()(openTime,timeFormat),onChange:function(Y,i){return setOpenTime(handleDateString(i))}})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u5B9E\u9A8C\u6A21\u5F0F"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"5px 0px"}},"\u7F16\u7A0B\u754C\u9762\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginTop:"5px"},value:0,checked:hideCode!=1,onChange:function(Y){var i=Y.target.checked;setHideCode(hideCode===1?0:1),i?setCodeEditPermission(!1):(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1))}},"IDE\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u4EE3\u7801\u7F16\u8F91\u5668\uFF0C\u7F16\u8BD1\u5668\uFF0C\u8C03\u8BD5\u5668\u7B49\u5DE5\u5177\uFF09")),hideCode!=1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:hideCode,className:"mt20",onChange:function(Y){setHideCode(Y.target.value)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_space__WEBPACK_IMPORTED_MODULE_11__.a,{direction:"vertical"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:0},"\u9ED8\u8BA4\u7F16\u8F91\u5668"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:2},"VSCode\u7F16\u8F91\u5668"))),hideCode===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:Remote,onChange:function(Y){var i=Y.target.checked;setRemote(i),i?(setIsRadiuValue(3),setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2)):(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1),setshixun_virtual_templates([]),setVirtualMachine(!1))}},"\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u8FDC\u7A0B\u8FDE\u63A5\u754C\u9762\uFF09")),Remote&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{marginTop:"5px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:isRadiuvalue,onChange:function(Y){var i,M,E,T,v,m,y,O,g,e;if(setIsRadiuValue(Y.target.value),setSshRadioValue(1),setport(!1),Y.target.value===3&&((i=shixunsDetail.setting)===null||i===void 0||((M=i.shixun)===null||M===void 0)?void 0:M.webssh)===2&&!((E=shixunsDetail.setting)!==null&&E!==void 0&&(T=E.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(Y.target.value===5&&!((v=shixunsDetail.setting)!==null&&v!==void 0&&(m=v.shixun)!==null&&m!==void 0&&m.linux_vnc)&&!((y=shixunsDetail.setting)!==null&&y!==void 0&&(O=y.shixun)!==null&&O!==void 0&&O.windows_vnc)&&(g=shixunsDetail.setting)!==null&&g!==void 0&&(e=g.shixun)!==null&&e!==void 0&&e.vnc){var c,n;setport((c=shixunsDetail.setting)===null||c===void 0||((n=c.shixun)===null||n===void 0)?void 0:n.port_mapping)}Y.target.value===1?(setVNC(!1),setLinuxVNC(!1),setWebsshShow(!1),setWindowVNC(!1)):Y.target.value===2?(setWindowVNC(!1),setLinuxVNC(!1),setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0)):Y.target.value===3?(setVNC(!1),setWebsshShow(!0),setWindowVNC(!1),setLinuxVNC(!1),setSshRadioValue(2),setshixun_virtual_templates([]),setVirtualMachine(!1)):Y.target.value===4?(setHideCode(!1),setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1)):Y.target.value===5&&(setCodeEditPermission(!1),setCodeHidden(!1),setForbidCopy(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!0))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:3,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u547D\u4EE4\u884C\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4E3A\u5B66\u5458\u63D0\u4F9B\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")),websshShow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40"),style:{borderRadius:"8px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:sshRadioValue,disabled:!editable,onChange:function(Y){var i,M,E,T,v,m,y=Y.target.value;if(setport(!1),y===1&&((i=shixunsDetail.setting)===null||i===void 0||((M=i.shixun)===null||M===void 0)?void 0:M.webssh)===1){var O,g;setport((O=shixunsDetail.setting)===null||O===void 0||((g=O.shixun)===null||g===void 0)?void 0:g.port_mapping)}else if(y===2&&((E=shixunsDetail.setting)===null||E===void 0||((T=E.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(y),y!==1&&setMultiWebssh(!1),setWindowVNCTemplate(""),setWebsshCloud(1),y===3&&((v=shixunsDetail.setting)===null||v===void 0||((m=v.shixun)===null||m===void 0)?void 0:m.webssh)===3){var r,c,n,a;setWebsshCloud((r=shixunsDetail.setting)===null||r===void 0||((c=r.shixun)===null||c===void 0)?void 0:c.webssh_cloud),setWindowVNCTemplate((n=shixunsDetail.setting)===null||n===void 0||((a=n.shixun)===null||a===void 0)?void 0:a.windows_start_template)}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:2},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BC4\u6D4B\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u8BC4\u6D4B\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u53EF\u4EE5\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u4EA7\u751F\u5F71\u54CD\uFF09")),sshRadioValue===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:multiWebssh,disabled:!editable,onChange:function(Y){return setMultiWebssh(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u540C\u65F6\u5F00\u542F\u591A\u4E2A\u547D\u4EE4\u884C\u7A97\u53E3\uFF09")))),sshRadioValue===2&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09"))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u7EC3\u4E60\u7A97\u53E3"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u9009\u4E2D\u5219\u7ED9\u5B66\u5458\u63D0\u4F9B\u7528\u4E8E\u7EC3\u4E60\u64CD\u4F5C\u7684\u547D\u4EE4\u884C\uFF0C\u547D\u4EE4\u884C\u7684\u64CD\u4F5C\u4E0D\u4F1A\u5BF9\u5B66\u751F\u7684\u5B9E\u9A8C\u73AF\u5883\u9020\u6210\u5F71\u54CD\uFF09")),sshRadioValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u52308081\u7AEF\u53E3\uFF09"))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(Y){return setWindowVNCTemplate(Y.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),webssh_cloud===1&&sshRadioValue===3&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap,style:{alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u4E91\u4E3B\u673A\u6570\u91CF\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:terminal_count,onChange:function(Y){setterminal_count(Y)},max:3,min:1,defaultValue:1}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"c-grey-999 ml20 font14"},"(\u6CE8\u610F\uFF1A\u4E91\u4E3B\u673A\u4E0A\u9650\u662F10\u53F0)")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:5,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u56FE\u5F62\u5316\u754C\u9762",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")))),isRadiuvalue===5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(sshRadioValue!=2?_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graayminglthree:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaymingl," ml40")},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:linux_vnc?"linux_vnc":windows_vnc?"windows_vnc":virtual_machine?"virtual_machine":"linux",disabled:!editable,onChange:function(Y){var i,M,E,T,v,m,y,O,g,e=Y.target.value;if(setWindowVNCTemplate(""),setport(!1),e==="linux_vnc"&&(i=shixunsDetail.setting)!==null&&i!==void 0&&(M=i.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"&&(E=shixunsDetail.setting)!==null&&E!==void 0&&(T=E.shixun)!==null&&T!==void 0&&T.windows_vnc){var c,n;setWindowVNCTemplate((c=shixunsDetail.setting)===null||c===void 0||((n=c.shixun)===null||n===void 0)?void 0:n.windows_start_template)}else if(e==="virtual_machine"&&(v=shixunsDetail.setting)!==null&&v!==void 0&&(m=v.shixun)!==null&&m!==void 0&&m.virtual_machine){var a,o;setWindowVNCTemplate((a=shixunsDetail.setting)===null||a===void 0||((o=a.shixun)===null||o===void 0)?void 0:o.windows_start_template)}else{var l,d,h,s,u,w;e==="linux"&&!((l=shixunsDetail.setting)!==null&&l!==void 0&&(d=l.shixun)!==null&&d!==void 0&&d.linux_vnc)&&!((h=shixunsDetail.setting)!==null&&h!==void 0&&(s=h.shixun)!==null&&s!==void 0&&s.windows_vnc)&&setport((u=shixunsDetail.setting)===null||u===void 0||((w=u.shixun)===null||w===void 0)?void 0:w.port_mapping)}switch(e){case"linux_vnc":setLinuxVNC(!0),setWindowVNC(!1),setVirtualMachine(!1),setVNC(!1);break;case"windows_vnc":setLinuxVNC(!1),setWindowVNC(!0),setVirtualMachine(!1),setVNC(!1);break;case"linux":setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVirtualMachine(!1),setVNC(!0);break;case"virtual_machine":if(setWindowVNC(!1),setLinuxVNC(!1),setMultiWebssh(!1),setWebsshShow(!1),setVNC(!1),setVirtualMachine(!0),(shixunsDetail==null||((y=shixunsDetail.setting)===null||y===void 0||((O=y.shixun)===null||O===void 0||((g=O.shixun_virtual_templates)===null||g===void 0)))?void 0:g.length)>0){var x,b;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((x=shixunsDetail.setting)===null||x===void 0||((b=x.shixun)===null||b===void 0))?void 0:b.shixun_virtual_templates))}else setshixun_virtual_templates([{template_name:"",template_identity:""}]);break}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u5BB9\u5668",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),!linux_vnc&&!windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(Y){return setport(Y.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u6307\u5B9A\u7AEF\u53E3\uFF09"))),isRadiuvalue==5&&linux_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(Y){return setWindowVNCTemplate(Y.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),isRadiuvalue==5&&windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(Y){return setWindowVNCTemplate(Y.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Windows\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{value:windows_connection_mode,onChange:function(Y){return setWindowsConnectionMode(Y)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"vnc"},"VNC\u65B9\u5F0F\u542F\u52A8"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"rdp"},"RDP\u65B9\u5F0F\u542F\u52A8")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__.a,{title:Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)()?"":"\u53EA\u6709\u5E73\u53F0\u7BA1\u7406\u5458\u6216\u8FD0\u8425\u4EBA\u5458\u624D\u80FD\u914D\u7F6E\u865A\u62DF\u673A\u6A21\u5F0F"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{disabled:!Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)(),value:"virtual_machine",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u865A\u62DF\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u865A\u62DF\u673A\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09"))),isRadiuvalue==5&&virtual_machine&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",width:213,marginRight:42,color:"#333333"}},"\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",color:"#333333"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A")),shixun_virtual_templates==null?void 0:shixun_virtual_templates.map(function(N,Y){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{maxLength:8,style:{width:213,height:32,marginRight:42},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0",value:N==null?void 0:N.template_name,onChange:function(M){N.template_name=M.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test2_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:N==null?void 0:N.template_identity,onChange:function(M){N.template_identity=M.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test2_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__.w)()&&(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_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Y!=0&&Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.w)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__.a,{style:{fontSize:"16px",marginLeft:10,color:"#165DFF"},onClick:function(){shixun_virtual_templates.splice(Y,1),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_test2_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}))}))))))),hideCode&&websshShow?null:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u5E93\u5730\u5740\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:display_git_address,disabled:!editable,onChange:function(Y){return set_display_git_address(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")}," ","\uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u516C\u5F00\u4EE3\u7801\u5E93\u5730\u5740\uFF0C\u5B66\u5458\u53EF\u4EE5\u5C06\u6240\u6709\u4EE3\u7801\u4E0B\u8F7D\u5230\u672C\u5730\uFF09")))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u76EE\u5F55\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeHidden,disabled:!editable,onChange:function(Y){return setCodeHidden(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u9875\u9762\u663E\u793A\u7248\u672C\u5E93\u76EE\u5F55\uFF09")),codeHidden&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"54px",background:"#f5f5f5",marginTop:"10px",borderRadius:"8px",display:"flex",justifyContent:"left",alignItems:"center",padding:"0px 20px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",null,"\u4EE3\u7801\u5E93\u6587\u4EF6\u4FEE\u6539\u6743\u9650\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent,style:{padding:"0px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeEditPermission,disabled:!editable,onChange:function(Y){return setCodeEditPermission(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u52FE\u9009\u540E\u5141\u8BB8\u5B66\u5458\u4FEE\u6539\u4EE3\u7801\u5E93\u6240\u6709\u6587\u4EF6\uFF0C\u5426\u5219\u4EC5\u53EF\u4FEE\u6539\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\uFF09"))))))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u7981\u7528\u7C98\u8D34\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:forbidCopy,disabled:!editable,onChange:function(Y){return setForbidCopy(Y.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u7F16\u7801\u533A\u57DF\u65E0\u6CD5\u4F7F\u7528\u7C98\u8D34\u529F\u80FD\uFF09")))),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.w)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:survival_time,onChange:function(Y){return setSurvivalTime(Y)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\u5206")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px",display:"none"}},"\u9AD8\u7EA7\u8BBE\u7F6E"," ",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{onClick:function(){return setAdvancedSettingShow(!advancedsettingshow)},style:{color:"#0152d9",fontSize:"14px",cursor:"pointer",marginLeft:"20px"}},advancedsettingshow?"\u6536\u8D77":"\u5C55\u5F00",advancedsettingshow?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__.a,null):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__.a,null))),advancedsettingshow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,!((_shixunsDetail$detail7=shixunsDetail.detail)!==null&&_shixunsDetail$detail7!==void 0&&_shixunsDetail$detail7.is_jupyter)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexRow," ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexAlignCenter)},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{style:{fontSize:"16px"}},"\u8BC4\u6D4B\u811A\u672C\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{style:{width:"200px"},value:evaluationScript,disabled:((_shixunsDetail$settin150=shixunsDetail.setting)===null||_shixunsDetail$settin150===void 0||((_shixunsDetail$settin151=_shixunsDetail$settin150.shixun)===null||_shixunsDetail$settin151===void 0)?void 0:_shixunsDetail$settin151.status)===2?!0:!editable,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(Y){handleChangeEvaluationScript(Y),setevaluationScript(Y)}},(standardScriptList||[]).map(function(N,Y){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(N.id),name:N.scptname,key:Y},N.scptname)})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color0152d9," font14 current ml10"),style:{marginTop:"2px"},onClick:handleUseCustomScript},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_popover__WEBPACK_IMPORTED_MODULE_3__.a,{overlayClassName:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.popover,placement:"bottomLeft",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"challengeProgramNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"sourceClassNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step1/HelloWorld.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step2/Other.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step1.HelloWorld",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step2.Other",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'" "step2.Other")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__.a,null)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:evaluateScript,options:{readOnly:((_shixunsDetail$settin152=shixunsDetail.setting)===null||_shixunsDetail$settin152===void 0||((_shixunsDetail$settin153=_shixunsDetail$settin152.shixun)===null||_shixunsDetail$settin153===void 0)?void 0:_shixunsDetail$settin153.status)===2?!0:!editable},onChange:function(Y){return setEvaluateScript(Y)}})),((_shixunsDetail$detail8=shixunsDetail.detail)===null||_shixunsDetail$detail8===void 0?void 0:_shixunsDetail$detail8.identity)<3&&editable&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingName},"\u670D\u52A1\u914D\u7F6E"),serviceConfigList==null?void 0:serviceConfigList.map(function(N,Y){var i,M,E,T,v,m,y,O;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:Y},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},N.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:N.cpu_limit,disabled:((i=shixunsDetail.setting)===null||i===void 0||((M=i.shixun)===null||M===void 0)?void 0:M.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"cpu_limit",Y)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:N.lower_cpu_limit,disabled:((E=shixunsDetail.setting)===null||E===void 0||((T=E.shixun)===null||T===void 0)?void 0:T.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"lower_cpu_limit",Y)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:N.memory_limit,disabled:((v=shixunsDetail.setting)===null||v===void 0||((m=v.shixun)===null||m===void 0)?void 0:m.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"memory_limit",Y)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetMemoryInput,value:N.request_limit,disabled:((y=shixunsDetail.setting)===null||y===void 0||((O=y.shixun)===null||O===void 0)?void 0:O.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"request_limit",Y)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetTip," ml5")},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")))}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}}," ","\u8BC4\u8BBA\u533A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u8BC4\u8BBA\u533A\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_switch__WEBPACK_IMPORTED_MODULE_1__.a,{checked:!disableDiscuss,onChange:function(Y){return setDisableDiscuss(!Y)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5173\u95ED\u540E\uFF0C\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5\u9875\u53CA\u5173\u5361\u6311\u6218\u9875\u9762\u4E0D\u663E\u793A\u4EFB\u4F55\u8BC4\u8BBA\uFF09"))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"70px",width:"76%",background:"#ffffff",boxShadow:"0px -4px 8px 1px #F1F1F1",position:"absolute",bottom:"0px",display:"flex",alignItems:"center",justifyContent:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginRight:"10px",width:"100px",height:"40px",borderRadius:"4px",border:"1px solid #0152d9",color:"#0152d9"},onClick:function(){umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns/".concat(params.id,"/challenges"))}},"\u53D6\u6D88"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginLeft:"10px",width:"100px",height:"40px",fontSize:"16px",background:"#0152d9",borderRadius:"4px"},type:"primary",onClick:function(){return handSubmeit()}},"\u4FDD\u5B58"))),!isShowSetting&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u8005"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"60",width:"60",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.img,src:"".concat(_utils_env__WEBPACK_IMPORTED_MODULE_55__.a.IMG_SERVER,"/images/").concat(createTitle==null?void 0:createTitle.user_image_url)}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.nameWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.name},createTitle==null?void 0:createTitle.user_name),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.actionGroup})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.schoolWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.school},createTitle==null?void 0:createTitle.user_school)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.created_at),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u66F4\u65B0\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.updated_at)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__.a,null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__.a,{onFinish:function(Y){return setEvaluateScript(Y)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(N){var Y=N.user,i=N.shixunsDetail,M=N.practiceSetting;return{user:Y,shixunsDetail:i,practiceSetting:M}})(Setting)},"19Vz":function(N,Y,i){(function(M){M(i("VrN/"))})(function(M){M.defineOption("placeholder","",function(g,e,f){var r=f&&f!=M.Init;if(e&&!r)g.on("blur",m),g.on("change",y),g.on("swapDoc",y),M.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){v(g)}),y(g);else if(!e&&r){g.off("blur",m),g.off("change",y),g.off("swapDoc",y),M.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),E(g);var c=g.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}e&&!g.hasFocus()&&m(g)});function E(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function T(g){E(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 v(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):E(g)},20)}function m(g){O(g)&&T(g)}function y(g){var e=g.getWrapperElement(),f=O(g);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?T(g):E(g)}function O(g){return g.lineCount()===1&&g.getLine(0)===""}})},"1Sn+":function(N,Y,i){},"1XHU":function(N,Y,i){"use strict";var M=i("2qtc"),E=i("kLXV"),T=i("q1tI"),v=i.n(T),m=i("9kvl"),y=i("3wET"),O=i.n(y),g=i("bUJZ"),e=i.n(g),f=i("Ct/S"),r=i.n(f),c=function(a){var o=a.visible,l=a.occupationValue,d=a.onCancel,h=d===void 0?function(){}:d,s=function(){return v.a.createElement("div",{className:r.a.flexColumn},v.a.createElement("img",{className:r.a.img,src:e.a}),v.a.createElement("span",{className:r.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},u=function(){return v.a.createElement("div",{className:r.a.flexColumn},v.a.createElement("img",{className:r.a.img,src:O.a}),v.a.createElement("span",{className:r.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},w=function(){return l===3?v.a.createElement(v.a.Fragment,null,u(),s()):l===2?s():u()};return v.a.createElement(E.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:o,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){h(),m.d.push("/account/certification")},onCancel:function(){h()}},v.a.createElement("div",{className:r.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),v.a.createElement("div",{className:r.a.flexRow},w()))};Y.a=Object(m.a)(function(n){var a=n.paperlibrary,o=n.loading,l=n.globalSetting;return{paperlibrary:a,globalSetting:l,loading:o.effects}})(c)},"1eCo":function(N,Y,i){(function(M){M(i("VrN/"))})(function(M){"use strict";var E={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(v,m){var y=v.indentUnit,O={},g=m.htmlMode?E:T;for(var e in g)O[e]=g[e];for(var e in m)O[e]=m[e];var f,r;function c(A,j){function I(G){return j.tokenize=G,G(A,j)}var k=A.next();if(k=="<")return A.eat("!")?A.eat("[")?A.match("CDATA[")?I(o("atom","]]>")):null:A.match("--")?I(o("comment","-->")):A.match("DOCTYPE",!0,!0)?(A.eatWhile(/[\w\._\-]/),I(l(1))):null:A.eat("?")?(A.eatWhile(/[\w\._\-]/),j.tokenize=o("meta","?>"),"meta"):(f=A.eat("/")?"closeTag":"openTag",j.tokenize=n,"tag bracket");if(k=="&"){var J;return A.eat("#")?A.eat("x")?J=A.eatWhile(/[a-fA-F\d]/)&&A.eat(";"):J=A.eatWhile(/[\d]/)&&A.eat(";"):J=A.eatWhile(/[\w\.\-:]/)&&A.eat(";"),J?"atom":"error"}else return A.eatWhile(/[^&<]/),null}c.isInText=!0;function n(A,j){var I=A.next();if(I==">"||I=="/"&&A.eat(">"))return j.tokenize=c,f=I==">"?"endTag":"selfcloseTag","tag bracket";if(I=="=")return f="equals",null;if(I=="<"){j.tokenize=c,j.state=u,j.tagName=j.tagStart=null;var k=j.tokenize(A,j);return k?k+" tag error":"tag error"}else return/[\'\"]/.test(I)?(j.tokenize=a(I),j.stringStartCol=A.column(),j.tokenize(A,j)):(A.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(A){var j=function(I,k){for(;!I.eol();)if(I.next()==A){k.tokenize=n;break}return"string"};return j.isInAttribute=!0,j}function o(A,j){return function(I,k){for(;!I.eol();){if(I.match(j)){k.tokenize=c;break}I.next()}return A}}function l(A){return function(j,I){for(var k;(k=j.next())!=null;){if(k=="<")return I.tokenize=l(A+1),I.tokenize(j,I);if(k==">")if(A==1){I.tokenize=c;break}else return I.tokenize=l(A-1),I.tokenize(j,I)}return"meta"}}function d(A,j,I){this.prev=A.context,this.tagName=j,this.indent=A.indented,this.startOfLine=I,(O.doNotIndent.hasOwnProperty(j)||A.context&&A.context.noIndent)&&(this.noIndent=!0)}function h(A){A.context&&(A.context=A.context.prev)}function s(A,j){for(var I;;){if(!A.context)return;if(I=A.context.tagName,!O.contextGrabbers.hasOwnProperty(I)||!O.contextGrabbers[I].hasOwnProperty(j))return;h(A)}}function u(A,j,I){return A=="openTag"?(I.tagStart=j.column(),w):A=="closeTag"?x:u}function w(A,j,I){return A=="word"?(I.tagName=j.current(),r="tag",R):O.allowMissingTagName&&A=="endTag"?(r="tag bracket",R(A,j,I)):(r="error",w)}function x(A,j,I){if(A=="word"){var k=j.current();return I.context&&I.context.tagName!=k&&O.implicitlyClosed.hasOwnProperty(I.context.tagName)&&h(I),I.context&&I.context.tagName==k||O.matchClosing===!1?(r="tag",b):(r="tag error",P)}else return O.allowMissingTagName&&A=="endTag"?(r="tag bracket",b(A,j,I)):(r="error",P)}function b(A,j,I){return A!="endTag"?(r="error",b):(h(I),u)}function P(A,j,I){return r="error",b(A,j,I)}function R(A,j,I){if(A=="word")return r="attribute",C;if(A=="endTag"||A=="selfcloseTag"){var k=I.tagName,J=I.tagStart;return I.tagName=I.tagStart=null,A=="selfcloseTag"||O.autoSelfClosers.hasOwnProperty(k)?s(I,k):(s(I,k),I.context=new d(I,k,J==I.indented)),u}return r="error",R}function C(A,j,I){return A=="equals"?S:(O.allowMissing||(r="error"),R(A,j,I))}function S(A,j,I){return A=="string"?_:A=="word"&&O.allowUnquoted?(r="string",R):(r="error",R(A,j,I))}function _(A,j,I){return A=="string"?_:R(A,j,I)}return{startState:function(A){var j={tokenize:c,state:u,indented:A||0,tagName:null,tagStart:null,context:null};return A!=null&&(j.baseIndent=A),j},token:function(A,j){if(!j.tagName&&A.sol()&&(j.indented=A.indentation()),A.eatSpace())return null;f=null;var I=j.tokenize(A,j);return(I||f)&&I!="comment"&&(r=null,j.state=j.state(f||I,A,j),r&&(I=r=="error"?I+" error":r)),I},indent:function(A,j,I){var k=A.context;if(A.tokenize.isInAttribute)return A.tagStart==A.indented?A.stringStartCol+1:A.indented+y;if(k&&k.noIndent)return M.Pass;if(A.tokenize!=n&&A.tokenize!=c)return I?I.match(/^(\s*)/)[0].length:0;if(A.tagName)return O.multilineTagIndentPastTag!==!1?A.tagStart+A.tagName.length+2:A.tagStart+y*(O.multilineTagIndentFactor||1);if(O.alignCDATA&&/<!\[CDATA\[/.test(j))return 0;var J=j&&/^<(\/)?([\w_:\.-]*)/.exec(j);if(J&&J[1])for(;k;)if(k.tagName==J[2]){k=k.prev;break}else if(O.implicitlyClosed.hasOwnProperty(k.tagName))k=k.prev;else break;else if(J)for(;k;){var G=O.contextGrabbers[k.tagName];if(G&&G.hasOwnProperty(J[2]))k=k.prev;else break}for(;k&&k.prev&&!k.startOfLine;)k=k.prev;return k?k.indent+y:A.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:O.htmlMode?"html":"xml",helperType:O.htmlMode?"html":"xml",skipAttribute:function(A){A.state==S&&(A.state=R)},xmlCurrentTag:function(A){return A.tagName?{name:A.tagName,close:A.type=="closeTag"}:null},xmlCurrentContext:function(A){for(var j=[],I=A.context;I;I=I.prev)I.tagName&&j.push(I.tagName);return j.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(N,Y,i){"use strict";i.d(Y,"d",function(){return He}),i.d(Y,"b",function(){return Je}),i.d(Y,"c",function(){return pt}),i.d(Y,"a",function(){return fn});var M=i("VTBJ"),E=i("1OyB"),T=i("vuIU"),v=i("JX7q"),m=i("Ji7U"),y=i("LK+K"),O=i("q1tI"),g=i("I8Z2"),e=i("BGR+"),f=i("wx14"),r=i("rePB"),c=i("4IlW"),n=i("2GS6"),a=i("Gytx"),o=i.n(a),l=i("TSYQ"),d=i.n(l),h=i("U8pU"),s=i("ODXe"),u=/iPhone/i,w=/iPod/i,x=/iPad/i,b=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,C=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,S=/Windows Phone/i,_=/\bWindows(?:.+)ARM\b/i,A=/BlackBerry/i,j=/BB10/i,I=/Opera Mini/i,k=/\b(CriOS|Chrome)(?:.+)Mobile/i,J=/Mobile(?:.+)Firefox\b/i;function G(St,Be){return St.test(Be)}function D(St){var Be=St||(typeof navigator!="undefined"?navigator.userAgent:""),at=Be.split("[FBAN");if(typeof at[1]!="undefined"){var it=at,Me=Object(s.a)(it,1);Be=Me[0]}if(at=Be.split("Twitter"),typeof at[1]!="undefined"){var Ve=at,xt=Object(s.a)(Ve,1);Be=xt[0]}var _t={apple:{phone:G(u,Be)&&!G(S,Be),ipod:G(w,Be),tablet:!G(u,Be)&&G(x,Be)&&!G(S,Be),device:(G(u,Be)||G(w,Be)||G(x,Be))&&!G(S,Be)},amazon:{phone:G(R,Be),tablet:!G(R,Be)&&G(C,Be),device:G(R,Be)||G(C,Be)},android:{phone:!G(S,Be)&&G(R,Be)||!G(S,Be)&&G(b,Be),tablet:!G(S,Be)&&!G(R,Be)&&!G(b,Be)&&(G(C,Be)||G(P,Be)),device:!G(S,Be)&&(G(R,Be)||G(C,Be)||G(b,Be)||G(P,Be))||G(/\bokhttp\b/i,Be)},windows:{phone:G(S,Be),tablet:G(_,Be),device:G(S,Be)||G(_,Be)},other:{blackberry:G(A,Be),blackberry10:G(j,Be),opera:G(I,Be),firefox:G(J,Be),chrome:G(k,Be),device:G(A,Be)||G(j,Be)||G(I,Be)||G(J,Be)||G(k,Be)},any:null,phone:null,tablet:null};return _t.any=_t.apple.device||_t.android.device||_t.windows.device||_t.other.device,_t.phone=_t.apple.phone||_t.android.phone||_t.windows.phone,_t.tablet=_t.apple.tablet||_t.android.tablet||_t.windows.tablet,_t}var H=Object(M.a)(Object(M.a)({},D()),{},{isMobile:D}),W=H;function L(){}function z(St,Be,at){var it=Be||"";return St.key||"".concat(it,"item_").concat(at)}function ie(St){return"".concat(St,"-menu-")}function ce(St,Be){var at=-1;O.Children.forEach(St,function(it){at+=1,it&&it.type&&it.type.isMenuItemGroup?O.Children.forEach(it.props.children,function(Me){at+=1,Be(Me,at)}):Be(it,at)})}function ue(St,Be,at){if(!St||at.find)return;O.Children.forEach(St,function(it){if(it){var Me=it.type;if(!Me||!(Me.isSubMenu||Me.isMenuItem||Me.isMenuItemGroup))return;Be.indexOf(it.key)!==-1?at.find=!0:it.props.children&&ue(it.props.children,Be,at)}})}var xe=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Te=function(Be){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Be&&typeof Be.getBoundingClientRect=="function"&&Be.getBoundingClientRect().width;if(it){if(at){var Me=getComputedStyle(Be),Ve=Me.marginLeft,xt=Me.marginRight;it+=+Ve.replace("px","")+ +xt.replace("px","")}it=+it.toFixed(6)}return it||0},de=function(Be,at,it){Be&&Object(h.a)(Be.style)==="object"&&(Be.style[at]=it)},ve=function(){return W.any},_e=i("KQm4"),le=i("Ff2n"),ee=i("i8i4"),U=i("bdgK"),K=i("uciX"),X=i("8XRh"),Q={adjustX:1,adjustY:1},te={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Q,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Q,offset:[4,0]}},ae={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Q,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Q,offset:[4,0]}},re=te,$=0,Z={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},fe=function(Be,at,it){var Me=ie(at),Ve=Be.getState();Be.setState({defaultActiveFirst:Object(M.a)(Object(M.a)({},Ve.defaultActiveFirst),{},Object(r.a)({},Me,it))})},me=function(St){Object(m.a)(at,St);var Be=Object(y.a)(at);function at(it){var Me;Object(E.a)(this,at),Me=Be.call(this,it),Me.onDestroy=function(Ct){Me.props.onDestroy(Ct)},Me.onKeyDown=function(Ct){var Bt=Ct.keyCode,It=Me.menuInstance,yt=Me.props,zt=yt.isOpen,sn=yt.store;if(Bt===c.a.ENTER)return Me.onTitleClick(Ct),fe(sn,Me.props.eventKey,!0),!0;if(Bt===c.a.RIGHT)return zt?It.onKeyDown(Ct):(Me.triggerOpenChange(!0),fe(sn,Me.props.eventKey,!0)),!0;if(Bt===c.a.LEFT){var hn;if(zt)hn=It.onKeyDown(Ct);else return;return hn||(Me.triggerOpenChange(!1),hn=!0),hn}return zt&&(Bt===c.a.UP||Bt===c.a.DOWN)?It.onKeyDown(Ct):void 0},Me.onOpenChange=function(Ct){Me.props.onOpenChange(Ct)},Me.onPopupVisibleChange=function(Ct){Me.triggerOpenChange(Ct,Ct?"mouseenter":"mouseleave")},Me.onMouseEnter=function(Ct){var Bt=Me.props,It=Bt.eventKey,yt=Bt.onMouseEnter,zt=Bt.store;fe(zt,Me.props.eventKey,!1),yt({key:It,domEvent:Ct})},Me.onMouseLeave=function(Ct){var Bt=Me.props,It=Bt.parentMenu,yt=Bt.eventKey,zt=Bt.onMouseLeave;It.subMenuInstance=Object(v.a)(Me),zt({key:yt,domEvent:Ct})},Me.onTitleMouseEnter=function(Ct){var Bt=Me.props,It=Bt.eventKey,yt=Bt.onItemHover,zt=Bt.onTitleMouseEnter;yt({key:It,hover:!0}),zt({key:It,domEvent:Ct})},Me.onTitleMouseLeave=function(Ct){var Bt=Me.props,It=Bt.parentMenu,yt=Bt.eventKey,zt=Bt.onItemHover,sn=Bt.onTitleMouseLeave;It.subMenuInstance=Object(v.a)(Me),zt({key:yt,hover:!1}),sn({key:yt,domEvent:Ct})},Me.onTitleClick=function(Ct){var Bt=Object(v.a)(Me),It=Bt.props;if(It.onTitleClick({key:It.eventKey,domEvent:Ct}),It.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!It.isOpen,"click"),fe(It.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(Ct){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(Ct))},Me.onSelect=function(Ct){Me.props.onSelect(Ct)},Me.onDeselect=function(Ct){Me.props.onDeselect(Ct)},Me.getPrefixCls=function(){return"".concat(Me.props.rootPrefixCls,"-submenu")},Me.getActiveClassName=function(){return"".concat(Me.getPrefixCls(),"-active")},Me.getDisabledClassName=function(){return"".concat(Me.getPrefixCls(),"-disabled")},Me.getSelectedClassName=function(){return"".concat(Me.getPrefixCls(),"-selected")},Me.getOpenClassName=function(){return"".concat(Me.props.rootPrefixCls,"-submenu-open")},Me.saveMenuInstance=function(Ct){Me.menuInstance=Ct},Me.addKeyPath=function(Ct){return Object(M.a)(Object(M.a)({},Ct),{},{keyPath:(Ct.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(Ct,Bt){var It=Me.props.eventKey,yt=function(){Me.onOpenChange({key:It,item:Object(v.a)(Me),trigger:Bt,open:Ct})};Bt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){yt()},0):yt()},Me.isChildrenSelected=function(){var Ct={find:!1};return ue(Me.props.children,Me.props.selectedKeys,Ct),Ct.find},Me.isOpen=function(){return Me.props.openKeys.indexOf(Me.props.eventKey)!==-1},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var Ct=ee.findDOMNode(Me.menuInstance);if(Ct.offsetWidth>=Me.subMenuTitle.offsetWidth)return;Ct.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(Ct){Me.subMenuTitle=Ct},Me.getBaseProps=function(){var Ct=Object(v.a)(Me),Bt=Ct.props;return{mode:Bt.mode==="horizontal"?"vertical":Bt.mode,visible:Me.props.isOpen,level:Bt.level+1,inlineIndent:Bt.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:Bt.selectedKeys,eventKey:"".concat(Bt.eventKey,"-menu-"),openKeys:Bt.openKeys,motion:Bt.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:Bt.subMenuOpenDelay,parentMenu:Object(v.a)(Me),subMenuCloseDelay:Bt.subMenuCloseDelay,forceSubMenuRender:Bt.forceSubMenuRender,triggerSubMenuAction:Bt.triggerSubMenuAction,builtinPlacements:Bt.builtinPlacements,defaultActiveFirst:Bt.store.getState().defaultActiveFirst[ie(Bt.eventKey)],multiple:Bt.multiple,prefixCls:Bt.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:Bt.itemIcon,expandIcon:Bt.expandIcon,direction:Bt.direction}},Me.getMotion=function(Ct,Bt){var It=Object(v.a)(Me),yt=It.haveRendered,zt=Me.props,sn=zt.motion,hn=zt.rootPrefixCls,un=Object(M.a)(Object(M.a)({},sn),{},{leavedClassName:"".concat(hn,"-hidden"),removeOnLeave:!1,motionAppear:yt||!Bt||Ct!=="inline"});return un};var Ve=it.store,xt=it.eventKey,_t=Ve.getState(),At=_t.defaultActiveFirst;Me.isRootMenu=!1;var Ot=!1;return At&&(Ot=At[xt]),fe(Ve,xt,Ot),Me}return Object(T.a)(at,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Ve=this.props,xt=Ve.mode,_t=Ve.parentMenu,At=Ve.manualRef;if(At&&At(this),xt!=="horizontal"||!_t.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Ve=Me.onDestroy,xt=Me.eventKey;Ve&&Ve(xt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Me){var Ve=this,xt=this.getBaseProps(),_t=this.getMotion(xt.mode,xt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||xt.visible||xt.forceSubMenuRender,!this.haveOpened)return O.createElement("div",null);var At=xt.direction;return O.createElement(X.default,Object.assign({visible:xt.visible},_t),function(Ot){var Ct=Ot.className,Bt=Ot.style,It=d()("".concat(xt.prefixCls,"-sub"),Ct,Object(r.a)({},"".concat(xt.prefixCls,"-rtl"),At==="rtl"));return O.createElement(be,Object.assign({},xt,{id:Ve.internalMenuId,className:It,style:Bt}),Me)})}},{key:"render",value:function(){var Me,Ve=Object(M.a)({},this.props),xt=Ve.isOpen,_t=this.getPrefixCls(),At=Ve.mode==="inline",Ot=d()(_t,"".concat(_t,"-").concat(Ve.mode),(Me={},Object(r.a)(Me,Ve.className,!!Ve.className),Object(r.a)(Me,this.getOpenClassName(),xt),Object(r.a)(Me,this.getActiveClassName(),Ve.active||xt&&!At),Object(r.a)(Me,this.getDisabledClassName(),Ve.disabled),Object(r.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||(Ve.eventKey?this.internalMenuId="".concat(Ve.eventKey,"$Menu"):($+=1,this.internalMenuId="$__$".concat($,"$Menu")));var Ct={},Bt={},It={};Ve.disabled||(Ct={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Bt={onClick:this.onTitleClick},It={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var yt={},zt=Ve.direction;At&&(zt==="rtl"?yt.paddingRight=Ve.inlineIndent*Ve.level:yt.paddingLeft=Ve.inlineIndent*Ve.level);var sn={};this.props.isOpen&&(sn={"aria-owns":this.internalMenuId});var hn=null;Ve.mode!=="horizontal"&&(hn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(hn=O.createElement(this.props.expandIcon,Object(M.a)({},this.props))));var un=O.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:yt,className:"".concat(_t,"-title"),role:"button"},It,Bt,{"aria-expanded":xt},sn,{"aria-haspopup":"true",title:typeof Ve.title=="string"?Ve.title:void 0}),Ve.title,hn||O.createElement("i",{className:"".concat(_t,"-arrow")})),Kt=this.renderChildren(Ve.children),gn=Ve.parentMenu.isRootMenu?Ve.parentMenu.props.getPopupContainer:function(Vn){return Vn.parentNode},Rn=Z[Ve.mode],Cn=Ve.popupOffset?{offset:Ve.popupOffset}:{},an=Ve.mode==="inline"?"":Ve.popupClassName;an+=zt==="rtl"?" ".concat(_t,"-rtl"):"";var _n=Ve.disabled,vn=Ve.triggerSubMenuAction,Ft=Ve.subMenuOpenDelay,Nt=Ve.forceSubMenuRender,pn=Ve.subMenuCloseDelay,qn=Ve.builtinPlacements;xe.forEach(function(Vn){return delete Ve[Vn]}),delete Ve.onClick;var Qt=zt==="rtl"?Object.assign({},ae,qn):Object.assign({},te,qn);return delete Ve.direction,O.createElement("li",Object.assign({},Ve,Ct,{className:Ot,role:"menuitem"}),At&&un,At&&Kt,!At&&O.createElement(K.a,{prefixCls:_t,popupClassName:d()("".concat(_t,"-popup"),an),getPopupContainer:gn,builtinPlacements:Qt,popupPlacement:Rn,popupVisible:xt,popupAlign:Cn,popup:Kt,action:_n?[]:[vn],mouseEnterDelay:Ft,mouseLeaveDelay:pn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Nt},un))}}]),at}(O.Component);me.defaultProps={onMouseEnter:L,onMouseLeave:L,onTitleMouseEnter:L,onTitleMouseLeave:L,onTitleClick:L,manualRef:L,mode:"vertical",title:""};var Oe=Object(g.b)(function(St,Be){var at=St.openKeys,it=St.activeKey,Me=St.selectedKeys,Ve=Be.eventKey,xt=Be.subMenuKey;return{isOpen:at.indexOf(Ve)>-1,active:it[xt]===Ve,selectedKeys:Me}})(me);Oe.isSubMenu=!0;var He=Oe,Qe="menuitem-overflowed",ot=.5,st=function(St){Object(m.a)(at,St);var Be=Object(y.a)(at);function at(){var it;return Object(E.a)(this,at),it=Be.apply(this,arguments),it.resizeObserver=null,it.mutationObserver=null,it.originalTotalWidth=0,it.overflowedItems=[],it.menuItemSizes=[],it.cancelFrameId=null,it.state={lastVisibleIndex:void 0},it.getMenuItemNodes=function(){var Me=it.props.prefixCls,Ve=ee.findDOMNode(Object(v.a)(it));return Ve?[].slice.call(Ve.children).filter(function(xt){return xt.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},it.getOverflowedSubMenuItem=function(Me,Ve,xt){var _t=it.props,At=_t.overflowedIndicator,Ot=_t.level,Ct=_t.mode,Bt=_t.prefixCls,It=_t.theme;if(Ot!==1||Ct!=="horizontal")return null;var yt=it.props.children[0],zt=yt.props,sn=zt.children,hn=zt.title,un=zt.style,Kt=Object(le.a)(zt,["children","title","style"]),gn=Object(M.a)({},un),Rn="".concat(Me,"-overflowed-indicator"),Cn="".concat(Me,"-overflowed-indicator");Ve.length===0&&xt!==!0?gn=Object(M.a)(Object(M.a)({},gn),{},{display:"none"}):xt&&(gn=Object(M.a)(Object(M.a)({},gn),{},{visibility:"hidden",position:"absolute"}),Rn="".concat(Rn,"-placeholder"),Cn="".concat(Cn,"-placeholder"));var an=It?"".concat(Bt,"-").concat(It):"",_n={};return xe.forEach(function(vn){Kt[vn]!==void 0&&(_n[vn]=Kt[vn])}),O.createElement(He,Object.assign({title:At,className:"".concat(Bt,"-overflowed-submenu"),popupClassName:an},_n,{key:Rn,eventKey:Cn,disabled:!1,style:gn}),Ve)},it.setChildrenWidthAndResize=function(){if(it.props.mode!=="horizontal")return;var Me=ee.findDOMNode(Object(v.a)(it));if(!Me)return;var Ve=Me.children;if(!Ve||Ve.length===0)return;var xt=Me.children[Ve.length-1];de(xt,"display","inline-block");var _t=it.getMenuItemNodes(),At=_t.filter(function(Ot){return Ot.className.split(" ").indexOf(Qe)>=0});At.forEach(function(Ot){de(Ot,"display","inline-block")}),it.menuItemSizes=_t.map(function(Ot){return Te(Ot,!0)}),At.forEach(function(Ot){de(Ot,"display","none")}),it.overflowedIndicatorWidth=Te(Me.children[Me.children.length-1],!0),it.originalTotalWidth=it.menuItemSizes.reduce(function(Ot,Ct){return Ot+Ct},0),it.handleResize(),de(xt,"display","none")},it.handleResize=function(){if(it.props.mode!=="horizontal")return;var Me=ee.findDOMNode(Object(v.a)(it));if(!Me)return;var Ve=Te(Me);it.overflowedItems=[];var xt=0,_t;it.originalTotalWidth>Ve+ot&&(_t=-1,it.menuItemSizes.forEach(function(At){xt+=At,xt+it.overflowedIndicatorWidth<=Ve&&(_t+=1)})),it.setState({lastVisibleIndex:_t})},it}return Object(T.a)(at,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ve=ee.findDOMNode(this);if(!Ve)return;this.resizeObserver=new U.default(function(xt){xt.forEach(function(){var _t=Me.cancelFrameId;cancelAnimationFrame(_t),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Ve.children).concat(Ve).forEach(function(xt){Me.resizeObserver.observe(xt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Ve.children).concat(Ve).forEach(function(xt){Me.resizeObserver.observe(xt)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ve,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Me){var Ve=this,xt=this.state.lastVisibleIndex;return(Me||[]).reduce(function(_t,At,Ot){var Ct=At;if(Ve.props.mode==="horizontal"){var Bt=Ve.getOverflowedSubMenuItem(At.props.eventKey,[]);xt!==void 0&&Ve.props.className.indexOf("".concat(Ve.props.prefixCls,"-root"))!==-1&&(Ot>xt&&(Ct=O.cloneElement(At,{style:{display:"none"},eventKey:"".concat(At.props.eventKey,"-hidden"),className:"".concat(Qe)})),Ot===xt+1&&(Ve.overflowedItems=Me.slice(xt+1).map(function(yt){return O.cloneElement(yt,{key:yt.props.eventKey,mode:"vertical-left"})}),Bt=Ve.getOverflowedSubMenuItem(At.props.eventKey,Ve.overflowedItems)));var It=[].concat(Object(_e.a)(_t),[Bt,Ct]);return Ot===Me.length-1&&It.push(Ve.getOverflowedSubMenuItem(At.props.eventKey,[],!0)),It}return[].concat(Object(_e.a)(_t),[Ct])},[])}},{key:"render",value:function(){var Me=this.props,Ve=Me.visible,xt=Me.prefixCls,_t=Me.overflowedIndicator,At=Me.mode,Ot=Me.level,Ct=Me.tag,Bt=Me.children,It=Me.theme,yt=Object(le.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),zt=Ct;return O.createElement(zt,Object.assign({},yt),this.renderChildren(Bt))}}]),at}(O.Component);st.defaultProps={tag:"div",className:""};var ct=st;function dt(St){return St.length?St.every(function(Be){return!!Be.props.disabled}):!0}function Xe(St,Be,at){var it=St.getState();St.setState({activeKey:Object(M.a)(Object(M.a)({},it.activeKey),{},Object(r.a)({},Be,at))})}function ke(St){return St.eventKey||"0-menu-"}function lt(St,Be){var at=Be,it=St.children,Me=St.eventKey;if(at){var Ve;if(ce(it,function(xt,_t){xt&&xt.props&&!xt.props.disabled&&at===z(xt,Me,_t)&&(Ve=!0)}),Ve)return at}return at=null,St.defaultActiveFirst&&ce(it,function(xt,_t){!at&&xt&&!xt.props.disabled&&(at=z(xt,Me,_t))}),at}function Mt(St){if(St){var Be=this.instanceArray.indexOf(St);Be!==-1?this.instanceArray[Be]=St:this.instanceArray.push(St)}}var Ce=function(St){Object(m.a)(at,St);var Be=Object(y.a)(at);function at(it){var Me;return Object(E.a)(this,at),Me=Be.call(this,it),Me.onKeyDown=function(Ve,xt){var _t=Ve.keyCode,At;if(Me.getFlatInstanceArray().forEach(function(Ct){Ct&&Ct.props.active&&Ct.onKeyDown&&(At=Ct.onKeyDown(Ve))}),At)return 1;var Ot=null;return(_t===c.a.UP||_t===c.a.DOWN)&&(Ot=Me.step(_t===c.a.UP?-1:1)),Ot?(Ve.preventDefault(),Xe(Me.props.store,ke(Me.props),Ot.props.eventKey),typeof xt=="function"&&xt(Ot),1):void 0},Me.onItemHover=function(Ve){var xt=Ve.key,_t=Ve.hover;Xe(Me.props.store,ke(Me.props),_t?xt:null)},Me.onDeselect=function(Ve){Me.props.onDeselect(Ve)},Me.onSelect=function(Ve){Me.props.onSelect(Ve)},Me.onClick=function(Ve){Me.props.onClick(Ve)},Me.onOpenChange=function(Ve){Me.props.onOpenChange(Ve)},Me.onDestroy=function(Ve){Me.props.onDestroy(Ve)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Ve){var xt=Me.getFlatInstanceArray(),_t=Me.props.store.getState().activeKey[ke(Me.props)],At=xt.length;if(!At)return null;Ve<0&&(xt=xt.concat().reverse());var Ot=-1;if(xt.every(function(yt,zt){return yt&&yt.props.eventKey===_t?(Ot=zt,!1):!0}),!Me.props.defaultActiveFirst&&Ot!==-1&&dt(xt.slice(Ot,At-1)))return;var Ct=(Ot+1)%At,Bt=Ct;do{var It=xt[Bt];if(!It||It.props.disabled)Bt=(Bt+1)%At;else return It}while(Bt!==Ct);return null},Me.renderCommonMenuItem=function(Ve,xt,_t){var At=Me.props.store.getState(),Ot=Object(v.a)(Me),Ct=Ot.props,Bt=z(Ve,Ct.eventKey,xt),It=Ve.props;if(!It||typeof Ve.type=="string")return Ve;var yt=Bt===At.activeKey,zt=Object(M.a)(Object(M.a)({mode:It.mode||Ct.mode,level:Ct.level,inlineIndent:Ct.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:Ct.prefixCls,index:xt,parentMenu:Ct.parentMenu,manualRef:It.disabled?void 0:Object(n.a)(Ve.ref,Mt.bind(Object(v.a)(Me))),eventKey:Bt,active:!It.disabled&&yt,multiple:Ct.multiple,onClick:function(hn){(It.onClick||L)(hn),Me.onClick(hn)},onItemHover:Me.onItemHover,motion:Ct.motion,subMenuOpenDelay:Ct.subMenuOpenDelay,subMenuCloseDelay:Ct.subMenuCloseDelay,forceSubMenuRender:Ct.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:Ct.builtinPlacements,itemIcon:It.itemIcon||Me.props.itemIcon,expandIcon:It.expandIcon||Me.props.expandIcon},_t),{},{direction:Ct.direction});return(Ct.mode==="inline"||ve())&&(zt.triggerSubMenuAction="click"),O.cloneElement(Ve,zt)},Me.renderMenuItem=function(Ve,xt,_t){if(!Ve)return null;var At=Me.props.store.getState(),Ot={openKeys:At.openKeys,selectedKeys:At.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:_t};return Me.renderCommonMenuItem(Ve,xt,Ot)},it.store.setState({activeKey:Object(M.a)(Object(M.a)({},it.store.getState().activeKey),{},Object(r.a)({},it.eventKey,lt(it,it.activeKey)))}),Me.instanceArray=[],Me}return Object(T.a)(at,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Me){return this.props.visible||Me.visible||this.props.className!==Me.className||!o()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Ve=this.props,xt="activeKey"in Ve?Ve.activeKey:Ve.store.getState().activeKey[ke(Ve)],_t=lt(Ve,xt);if(_t!==xt)Xe(Ve.store,ke(Ve),_t);else if("activeKey"in Me){var At=lt(Me,Me.activeKey);_t!==At&&Xe(Ve.store,ke(Ve),_t)}}},{key:"render",value:function(){var Me=this,Ve=Object(f.a)({},this.props);this.instanceArray=[];var xt=d()(Ve.prefixCls,Ve.className,"".concat(Ve.prefixCls,"-").concat(Ve.mode)),_t={className:xt,role:Ve.role||"menu"};Ve.id&&(_t.id=Ve.id),Ve.focusable&&(_t.tabIndex=0,_t.onKeyDown=this.onKeyDown);var At=Ve.prefixCls,Ot=Ve.eventKey,Ct=Ve.visible,Bt=Ve.level,It=Ve.mode,yt=Ve.overflowedIndicator,zt=Ve.theme;return xe.forEach(function(sn){return delete Ve[sn]}),delete Ve.onClick,O.createElement(ct,Object.assign({},Ve,{prefixCls:At,mode:It,tag:"ul",level:Bt,theme:zt,visible:Ct,overflowedIndicator:yt},_t),O.Children.map(Ve.children,function(sn,hn){return Me.renderMenuItem(sn,hn,Ot||"0-menu-")}))}}]),at}(O.Component);Ce.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:L};var he=Object(g.b)()(Ce),be=he,Ee=i("Kwbf");function Ne(St,Be,at){var it=St.prefixCls,Me=St.motion,Ve=St.defaultMotions,xt=Ve===void 0?{}:Ve,_t=St.openAnimation,At=St.openTransitionName,Ot=Be.switchingModeFromInline;if(Me)return Me;if(Object(h.a)(_t)==="object"&&_t)Object(Ee.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof _t=="string")return{motionName:"".concat(it,"-open-").concat(_t)};if(At)return{motionName:At};var Ct=xt[at];return Ct||(Ot?null:xt.other)}var we=function(St){Object(m.a)(at,St);var Be=Object(y.a)(at);function at(it){var Me;Object(E.a)(this,at),Me=Be.call(this,it),Me.inlineOpenKeys=[],Me.onSelect=function(_t){var At=Object(v.a)(Me),Ot=At.props;if(Ot.selectable){var Ct=Me.store.getState(),Bt=Ct.selectedKeys,It=_t.key;Ot.multiple?Bt=Bt.concat([It]):Bt=[It],"selectedKeys"in Ot||Me.store.setState({selectedKeys:Bt}),Ot.onSelect(Object(M.a)(Object(M.a)({},_t),{},{selectedKeys:Bt}))}},Me.onClick=function(_t){var At=Me.getRealMenuMode(),Ot=Object(v.a)(Me),Ct=Ot.store,Bt=Ot.props.onOpenChange;At!=="inline"&&!("openKeys"in Me.props)&&(Ct.setState({openKeys:[]}),Bt([])),Me.props.onClick(_t)},Me.onKeyDown=function(_t,At){Me.innerMenu.getWrappedInstance().onKeyDown(_t,At)},Me.onOpenChange=function(_t){var At=Object(v.a)(Me),Ot=At.props,Ct=Me.store.getState().openKeys.concat(),Bt=!1,It=function(zt){var sn=!1;if(zt.open)sn=Ct.indexOf(zt.key)===-1,sn&&Ct.push(zt.key);else{var hn=Ct.indexOf(zt.key);sn=hn!==-1,sn&&Ct.splice(hn,1)}Bt=Bt||sn};Array.isArray(_t)?_t.forEach(It):It(_t),Bt&&("openKeys"in Me.props||Me.store.setState({openKeys:Ct}),Ot.onOpenChange(Ct))},Me.onDeselect=function(_t){var At=Object(v.a)(Me),Ot=At.props;if(Ot.selectable){var Ct=Me.store.getState().selectedKeys.concat(),Bt=_t.key,It=Ct.indexOf(Bt);It!==-1&&Ct.splice(It,1),"selectedKeys"in Ot||Me.store.setState({selectedKeys:Ct}),Ot.onDeselect(Object(M.a)(Object(M.a)({},_t),{},{selectedKeys:Ct}))}},Me.onMouseEnter=function(_t){Me.restoreModeVerticalFromInline();var At=Me.props.onMouseEnter;At&&At(_t)},Me.onTransitionEnd=function(_t){var At=_t.propertyName==="width"&&_t.target===_t.currentTarget,Ot=_t.target.className,Ct=Object.prototype.toString.call(Ot)==="[object SVGAnimatedString]"?Ot.animVal:Ot,Bt=_t.propertyName==="font-size"&&Ct.indexOf("anticon")>=0;(At||Bt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function(_t){Me.innerMenu=_t},Me.isRootMenu=!0;var Ve=it.defaultSelectedKeys,xt=it.defaultOpenKeys;return"selectedKeys"in it&&(Ve=it.selectedKeys||[]),"openKeys"in it&&(xt=it.openKeys||[]),Me.store=Object(g.c)({selectedKeys:Ve,openKeys:xt,activeKey:{"0-menu-":lt(it,it.activeKey)}}),Me.state={switchingModeFromInline:!1},Me}return Object(T.a)(at,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){this.updateOpentKeysWhenSwitchMode(Me),this.updateMiniStore();var Ve=this.props,xt=Ve.siderCollapsed,_t=Ve.inlineCollapsed,At=Ve.onOpenChange;(!Me.inlineCollapsed&&_t||!Me.siderCollapsed&&xt)&&At([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Me){var Ve=this.props,xt=this.store,_t=this.inlineOpenKeys,At=xt.getState(),Ot={};Me.mode==="inline"&&Ve.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ve||((Ve.inlineCollapsed&&!Me.inlineCollapsed||Ve.siderCollapsed&&!Me.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=At.openKeys.concat(),Ot.openKeys=[]),(!Ve.inlineCollapsed&&Me.inlineCollapsed||!Ve.siderCollapsed&&Me.siderCollapsed)&&(Ot.openKeys=_t,this.inlineOpenKeys=[])),Object.keys(Ot).length&&xt.setState(Ot)}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Ve=this.store,xt=this.prevOpenKeys,_t=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");_t?(this.prevOpenKeys=Ve.getState().openKeys.concat(),this.store.setState({openKeys:[]})):xt&&(this.store.setState({openKeys:xt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Ve=this.state.switchingModeFromInline,xt=this.getInlineCollapsed();return Ve&&xt?"inline":xt?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Ve=Me.inlineCollapsed,xt=Me.siderCollapsed;return xt!==void 0?xt:Ve}},{key:"restoreModeVerticalFromInline",value:function(){var Me=this.state.switchingModeFromInline;Me&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Me=Object(M.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ve=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(M.a)(Object(M.a)({},Me),{},{mode:Ve,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ne(this.props,this.state,Ve)}),delete Me.openAnimation,delete Me.openTransitionName,O.createElement(g.a,{store:this.store},O.createElement(be,Object.assign({},Me,{ref:this.setInnerMenu}),this.props.children))}}]),at}(O.Component);we.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:O.createElement("span",null,"\xB7\xB7\xB7")};var Ae=we,Ue=function(St){Object(m.a)(at,St);var Be=Object(y.a)(at);function at(){var it;return Object(E.a)(this,at),it=Be.apply(this,arguments),it.onKeyDown=function(Me){var Ve=Me.keyCode;return Ve===c.a.ENTER?(it.onClick(Me),!0):void 0},it.onMouseLeave=function(Me){var Ve=it.props,xt=Ve.eventKey,_t=Ve.onItemHover,At=Ve.onMouseLeave;_t({key:xt,hover:!1}),At({key:xt,domEvent:Me})},it.onMouseEnter=function(Me){var Ve=it.props,xt=Ve.eventKey,_t=Ve.onItemHover,At=Ve.onMouseEnter;_t({key:xt,hover:!0}),At({key:xt,domEvent:Me})},it.onClick=function(Me){var Ve=it.props,xt=Ve.eventKey,_t=Ve.multiple,At=Ve.onClick,Ot=Ve.onSelect,Ct=Ve.onDeselect,Bt=Ve.isSelected,It={key:xt,keyPath:[xt],item:Object(v.a)(it),domEvent:Me};At(It),_t?Bt?Ct(It):Ot(It):Bt||Ot(It)},it.saveNode=function(Me){it.node=Me},it}return Object(T.a)(at,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Me=this.props;Me.onDestroy&&Me.onDestroy(Me.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Me,Ve=Object(M.a)({},this.props),xt=d()(this.getPrefixCls(),Ve.className,(Me={},Object(r.a)(Me,this.getActiveClassName(),!Ve.disabled&&Ve.active),Object(r.a)(Me,this.getSelectedClassName(),Ve.isSelected),Object(r.a)(Me,this.getDisabledClassName(),Ve.disabled),Me)),_t=Object(M.a)(Object(M.a)({},Ve.attribute),{},{title:typeof Ve.title=="string"?Ve.title:void 0,className:xt,role:Ve.role||"menuitem","aria-disabled":Ve.disabled});Ve.role==="option"?_t=Object(M.a)(Object(M.a)({},_t),{},{role:"option","aria-selected":Ve.isSelected}):(Ve.role===null||Ve.role==="none")&&(_t.role="none");var At={onClick:Ve.disabled?null:this.onClick,onMouseLeave:Ve.disabled?null:this.onMouseLeave,onMouseEnter:Ve.disabled?null:this.onMouseEnter},Ot=Object(M.a)({},Ve.style);Ve.mode==="inline"&&(Ve.direction==="rtl"?Ot.paddingRight=Ve.inlineIndent*Ve.level:Ot.paddingLeft=Ve.inlineIndent*Ve.level),xe.forEach(function(Bt){return delete Ve[Bt]}),delete Ve.direction;var Ct=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ct=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object.assign({},Object(e.default)(Ve,["onClick","onMouseEnter","onMouseLeave","onSelect"]),_t,At,{style:Ot,ref:this.saveNode}),Ve.children,Ct)}}]),at}(O.Component);Ue.isMenuItem=!0,Ue.defaultProps={onSelect:L,onMouseEnter:L,onMouseLeave:L,manualRef:L};var We=Object(g.b)(function(St,Be){var at=St.activeKey,it=St.selectedKeys,Me=Be.eventKey,Ve=Be.subMenuKey;return{active:at[Ve]===Me,isSelected:it.indexOf(Me)!==-1}})(Ue),Je=We,$e=function(St){Object(m.a)(at,St);var Be=Object(y.a)(at);function at(){var it;return Object(E.a)(this,at),it=Be.apply(this,arguments),it.renderInnerMenuItem=function(Me){var Ve=it.props,xt=Ve.renderMenuItem,_t=Ve.index;return xt(Me,_t,it.props.subMenuKey)},it}return Object(T.a)(at,[{key:"render",value:function(){var Me=Object(f.a)({},this.props),Ve=Me.className,xt=Ve===void 0?"":Ve,_t=Me.rootPrefixCls,At="".concat(_t,"-item-group-title"),Ot="".concat(_t,"-item-group-list"),Ct=Me.title,Bt=Me.children;return xe.forEach(function(It){return delete Me[It]}),delete Me.onClick,delete Me.direction,O.createElement("li",Object.assign({},Me,{className:"".concat(xt," ").concat(_t,"-item-group")}),O.createElement("div",{className:At,title:typeof Ct=="string"?Ct:void 0},Ct),O.createElement("ul",{className:Ot},O.Children.map(Bt,this.renderInnerMenuItem)))}}]),at}(O.Component);$e.isMenuItemGroup=!0,$e.defaultProps={disabled:!0};var pt=$e,Jt=function(Be){var at=Be.className,it=Be.rootPrefixCls,Me=Be.style;return O.createElement("li",{className:"".concat(at," ").concat(it,"-item-divider"),style:Me})};Jt.defaultProps={disabled:!0,className:"",style:{}};var fn=Jt,qt=Y.e=Ae},"1nVM":function(N,Y,i){N.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(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("MlIO"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.Hasher,m=E.x64,y=m.Word,O=m.WordArray,g=E.algo;function e(){return y.create.apply(y,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 c=g.SHA512=v.extend({_doReset:function(){this._hash=new O.init([new y.init(1779033703,4089235720),new y.init(3144134277,2227873595),new y.init(1013904242,4271175723),new y.init(2773480762,1595750129),new y.init(1359893119,2917565137),new y.init(2600822924,725511199),new y.init(528734635,4215389547),new y.init(1541459225,327033209)])},_doProcessBlock:function(n,a){for(var o=this._hash.words,l=o[0],d=o[1],h=o[2],s=o[3],u=o[4],w=o[5],x=o[6],b=o[7],P=l.high,R=l.low,C=d.high,S=d.low,_=h.high,A=h.low,j=s.high,I=s.low,k=u.high,J=u.low,G=w.high,D=w.low,H=x.high,W=x.low,L=b.high,z=b.low,ie=P,ce=R,ue=C,xe=S,Te=_,de=A,ve=j,_e=I,le=k,ee=J,U=G,K=D,X=H,Q=W,te=L,ae=z,re=0;re<80;re++){var $,Z,fe=r[re];if(re<16)Z=fe.high=n[a+re*2]|0,$=fe.low=n[a+re*2+1]|0;else{var me=r[re-15],Oe=me.high,He=me.low,Qe=(Oe>>>1|He<<31)^(Oe>>>8|He<<24)^Oe>>>7,ot=(He>>>1|Oe<<31)^(He>>>8|Oe<<24)^(He>>>7|Oe<<25),st=r[re-2],ct=st.high,dt=st.low,Xe=(ct>>>19|dt<<13)^(ct<<3|dt>>>29)^ct>>>6,ke=(dt>>>19|ct<<13)^(dt<<3|ct>>>29)^(dt>>>6|ct<<26),lt=r[re-7],Mt=lt.high,Ce=lt.low,he=r[re-16],be=he.high,Ee=he.low;$=ot+Ce,Z=Qe+Mt+($>>>0<ot>>>0?1:0),$=$+ke,Z=Z+Xe+($>>>0<ke>>>0?1:0),$=$+Ee,Z=Z+be+($>>>0<Ee>>>0?1:0),fe.high=Z,fe.low=$}var Ne=le&U^~le&X,we=ee&K^~ee&Q,Ae=ie&ue^ie&Te^ue&Te,Ue=ce&xe^ce&de^xe&de,We=(ie>>>28|ce<<4)^(ie<<30|ce>>>2)^(ie<<25|ce>>>7),Je=(ce>>>28|ie<<4)^(ce<<30|ie>>>2)^(ce<<25|ie>>>7),$e=(le>>>14|ee<<18)^(le>>>18|ee<<14)^(le<<23|ee>>>9),pt=(ee>>>14|le<<18)^(ee>>>18|le<<14)^(ee<<23|le>>>9),Jt=f[re],fn=Jt.high,qt=Jt.low,St=ae+pt,Be=te+$e+(St>>>0<ae>>>0?1:0),St=St+we,Be=Be+Ne+(St>>>0<we>>>0?1:0),St=St+qt,Be=Be+fn+(St>>>0<qt>>>0?1:0),St=St+$,Be=Be+Z+(St>>>0<$>>>0?1:0),at=Je+Ue,it=We+Ae+(at>>>0<Je>>>0?1:0);te=X,ae=Q,X=U,Q=K,U=le,K=ee,ee=_e+St|0,le=ve+Be+(ee>>>0<_e>>>0?1:0)|0,ve=Te,_e=de,Te=ue,de=xe,ue=ie,xe=ce,ce=St+at|0,ie=Be+it+(ce>>>0<St>>>0?1:0)|0}R=l.low=R+ce,l.high=P+ie+(R>>>0<ce>>>0?1:0),S=d.low=S+xe,d.high=C+ue+(S>>>0<xe>>>0?1:0),A=h.low=A+de,h.high=_+Te+(A>>>0<de>>>0?1:0),I=s.low=I+_e,s.high=j+ve+(I>>>0<_e>>>0?1:0),J=u.low=J+ee,u.high=k+le+(J>>>0<ee>>>0?1:0),D=w.low=D+K,w.high=G+U+(D>>>0<K>>>0?1:0),W=x.low=W+Q,x.high=H+X+(W>>>0<Q>>>0?1:0),z=b.low=z+ae,b.high=L+te+(z>>>0<ae>>>0?1:0)},_doFinalize:function(){var n=this._data,a=n.words,o=this._nDataBytes*8,l=n.sigBytes*8;a[l>>>5]|=128<<24-l%32,a[(l+128>>>10<<5)+30]=Math.floor(o/4294967296),a[(l+128>>>10<<5)+31]=o,n.sigBytes=a.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var n=v.clone.call(this);return n._hash=this._hash.clone(),n},blockSize:1024/32});E.SHA512=v._createHelper(c),E.HmacSHA512=v._createHmacHelper(c)}(),M.SHA512})},"24hK":function(N,Y,i){"use strict";i.d(Y,"a",function(){return E});class M{constructor(T){this.element=T,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class E{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 v=T.next;T.prev=M.Undefined,T.next=M.Undefined,T=v}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,v){const m=new M(T);if(this._first===M.Undefined)this._first=m,this._last=m;else if(v){const O=this._last;this._last=m,m.prev=O,O.next=m}else{const O=this._first;this._first=m,m.next=O,O.prev=m}this._size+=1;let y=!1;return()=>{y||(y=!0,this._remove(m))}}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 v=T.prev;v.next=T.next,T.next.prev=v}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(N,Y,i){"use strict";i.d(Y,"a",function(){return E});function M(T,v){let m;return v.length===0?m=T:m=T.replace(/\{(\d+)\}/g,function(y,O){const g=O[0];return typeof v[g]!="undefined"?v[g]:y}),m}function E(T,v,...m){return M(v,m)}},"3d99":function(N,Y,i){N.exports={flex_box_center:"flex_box_center___29402",flex_space_between:"flex_space_between___1DQkL",flex_box_vertical_center:"flex_box_vertical_center___2c5rw",flex_box_center_end:"flex_box_center_end___31UwQ",flex_box_column:"flex_box_column___27HfP",dataset:"dataset___1COtX",header:"header___3oVtK",title:"title___pTdL6",dataPath:"dataPath___2IjLi",pathTitle:"pathTitle___3y3r0",btns:"btns___3HrP1",content:"content___2DtrV",customTable:"customTable____cu3-",row:"row___18XmF",empty:"empty___1WFDJ",path:"path___2fzVn",text:"text___5NWvD",actionsBtns:"actionsBtns___YB-ud",customModal:"customModal___S24dW",shareModal:"shareModal___1fTc3",fileName:"fileName___3b0gK",renameModal:"renameModal___3antI",errorDes:"errorDes___3PXc9",uploadFileModal:"uploadFileModal___3cGWq"}},"3wET":function(N,Y){N.exports="data:image/png;base64,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"},"3y9D":function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.WordArray,m=T.Hasher,y=E.algo,O=[],g=y.SHA1=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,f){for(var r=this._hash.words,c=r[0],n=r[1],a=r[2],o=r[3],l=r[4],d=0;d<80;d++){if(d<16)O[d]=e[f+d]|0;else{var h=O[d-3]^O[d-8]^O[d-14]^O[d-16];O[d]=h<<1|h>>>31}var s=(c<<5|c>>>27)+l+O[d];d<20?s+=(n&a|~n&o)+1518500249:d<40?s+=(n^a^o)+1859775393:d<60?s+=(n&a|n&o|a&o)-1894007588:s+=(n^a^o)-899497514,l=o,o=a,a=n<<30|n>>>2,n=c,c=s}r[0]=r[0]+c|0,r[1]=r[1]+n|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,f=e.words,r=this._nDataBytes*8,c=e.sigBytes*8;return f[c>>>5]|=128<<24-c%32,f[(c+64>>>9<<4)+14]=Math.floor(r/4294967296),f[(c+64>>>9<<4)+15]=r,e.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var e=m.clone.call(this);return e._hash=this._hash.clone(),e}});E.SHA1=m._createHelper(g),E.HmacSHA1=m._createHmacHelper(g)}(),M.SHA1})},4:function(N,Y){},"4SAo":function(N,Y,i){N.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(N,Y){N.exports="data:image/png;base64,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"},"4u4S":function(N,Y){N.exports="data:image/png;base64,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"},"55Ip":function(N,Y,i){"use strict";i.d(Y,"a",function(){return s});var M=i("Ty5D"),E=i("dI71"),T=i("q1tI"),v=i.n(T),m=i("YS25"),y=i("17x9"),O=i.n(y),g=i("wx14"),e=i("zLVn"),f=i("9R94"),r=function(S){Object(E.a)(_,S);function _(){for(var j,I=arguments.length,k=new Array(I),J=0;J<I;J++)k[J]=arguments[J];return j=S.call.apply(S,[this].concat(k))||this,j.history=Object(m.a)(j.props),j}var A=_.prototype;return A.render=function(){return v.a.createElement(M.c,{history:this.history,children:this.props.children})},_}(v.a.Component),c=function(S){Object(E.a)(_,S);function _(){for(var j,I=arguments.length,k=new Array(I),J=0;J<I;J++)k[J]=arguments[J];return j=S.call.apply(S,[this].concat(k))||this,j.history=Object(m.b)(j.props),j}var A=_.prototype;return A.render=function(){return v.a.createElement(M.c,{history:this.history,children:this.props.children})},_}(v.a.Component),n=function(_,A){return typeof _=="function"?_(A):_},a=function(_,A){return typeof _=="string"?Object(m.c)(_,null,null,A):_},o=function(_){return _},l=v.a.forwardRef;typeof l=="undefined"&&(l=o);function d(S){return!!(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey)}var h=l(function(S,_){var A=S.innerRef,j=S.navigate,I=S.onClick,k=Object(e.a)(S,["innerRef","navigate","onClick"]),J=k.target,G=Object(g.a)({},k,{onClick:function(H){try{I&&I(H)}catch(W){throw H.preventDefault(),W}!H.defaultPrevented&&H.button===0&&(!J||J==="_self")&&!d(H)&&(H.preventDefault(),j())}});return o!==l?G.ref=_||A:G.ref=A,v.a.createElement("a",G)}),s=l(function(S,_){var A=S.component,j=A===void 0?h:A,I=S.replace,k=S.to,J=S.innerRef,G=Object(e.a)(S,["component","replace","to","innerRef"]);return v.a.createElement(M.e.Consumer,null,function(D){D||Object(f.a)(!1);var H=D.history,W=a(n(k,D.location),D.location),L=W?H.createHref(W):"",z=Object(g.a)({},G,{href:L,navigate:function(){var ce=n(k,D.location),ue=I?H.replace:H.push;ue(ce)}});return o!==l?z.ref=_||J:z.innerRef=J,v.a.createElement(j,z)})});if(!1)var u,w;var x=function(_){return _},b=v.a.forwardRef;typeof b=="undefined"&&(b=x);function P(){for(var S=arguments.length,_=new Array(S),A=0;A<S;A++)_[A]=arguments[A];return _.filter(function(j){return j}).join(" ")}var R=b(function(S,_){var A=S["aria-current"],j=A===void 0?"page":A,I=S.activeClassName,k=I===void 0?"active":I,J=S.activeStyle,G=S.className,D=S.exact,H=S.isActive,W=S.location,L=S.sensitive,z=S.strict,ie=S.style,ce=S.to,ue=S.innerRef,xe=Object(e.a)(S,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return v.a.createElement(M.e.Consumer,null,function(Te){Te||Object(f.a)(!1);var de=W||Te.location,ve=a(n(ce,de),de),_e=ve.pathname,le=_e&&_e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),ee=le?Object(M.f)(de.pathname,{path:le,exact:D,sensitive:L,strict:z}):null,U=!!(H?H(ee,de):ee),K=U?P(G,k):G,X=U?Object(g.a)({},ie,{},J):ie,Q=Object(g.a)({"aria-current":U&&j||null,className:K,style:X,to:ve},xe);return x!==b?Q.ref=_||ue:Q.innerRef=ue,v.a.createElement(s,Q)})});if(!1)var C},"5D2P":function(N,Y){N.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(N,Y,i){"use strict";var M,E;function T(v,m,y){var O=function(g,e){return v.js_beautify(g,e)};return O.js=v.js_beautify,O.css=m.css_beautify,O.html=y.html_beautify,O.js_beautify=v.js_beautify,O.css_beautify=m.css_beautify,O.html_beautify=y.html_beautify,O}!(M=[i("6UM0"),i("TXwP"),i("psGv")],E=function(v,m,y){return T(v,m,y)}.apply(Y,M),E!==void 0&&(N.exports=E))},"5Y4S":function(N,Y,i){"use strict";i.d(Y,"a",function(){return T});var M=i("MNsG");const E=M.b.performance&&typeof M.b.performance.now=="function";class T{constructor(v){this._highResolution=E&&v,this._startTime=this._now(),this._stopTime=-1}static create(v=!0){return new T(v)}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(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("MlIO"))})(this,function(M){return function(E){var T=M,v=T.lib,m=v.WordArray,y=v.Hasher,O=T.x64,g=O.Word,e=T.algo,f=[],r=[],c=[];(function(){for(var o=1,l=0,d=0;d<24;d++){f[o+5*l]=(d+1)*(d+2)/2%64;var h=l%5,s=(2*o+3*l)%5;o=h,l=s}for(var o=0;o<5;o++)for(var l=0;l<5;l++)r[o+5*l]=l+(2*o+3*l)%5*5;for(var u=1,w=0;w<24;w++){for(var x=0,b=0,P=0;P<7;P++){if(u&1){var R=(1<<P)-1;R<32?b^=1<<R:x^=1<<R-32}u&128?u=u<<1^113:u<<=1}c[w]=g.create(x,b)}})();var n=[];(function(){for(var o=0;o<25;o++)n[o]=g.create()})();var a=e.SHA3=y.extend({cfg:y.cfg.extend({outputLength:512}),_doReset:function(){for(var o=this._state=[],l=0;l<25;l++)o[l]=new g.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(o,l){for(var d=this._state,h=this.blockSize/2,s=0;s<h;s++){var u=o[l+2*s],w=o[l+2*s+1];u=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var x=d[s];x.high^=w,x.low^=u}for(var b=0;b<24;b++){for(var P=0;P<5;P++){for(var R=0,C=0,S=0;S<5;S++){var x=d[P+5*S];R^=x.high,C^=x.low}var _=n[P];_.high=R,_.low=C}for(var P=0;P<5;P++)for(var A=n[(P+4)%5],j=n[(P+1)%5],I=j.high,k=j.low,R=A.high^(I<<1|k>>>31),C=A.low^(k<<1|I>>>31),S=0;S<5;S++){var x=d[P+5*S];x.high^=R,x.low^=C}for(var J=1;J<25;J++){var R,C,x=d[J],G=x.high,D=x.low,H=f[J];H<32?(R=G<<H|D>>>32-H,C=D<<H|G>>>32-H):(R=D<<H-32|G>>>64-H,C=G<<H-32|D>>>64-H);var W=n[r[J]];W.high=R,W.low=C}var L=n[0],z=d[0];L.high=z.high,L.low=z.low;for(var P=0;P<5;P++)for(var S=0;S<5;S++){var J=P+5*S,x=d[J],ie=n[J],ce=n[(P+1)%5+5*S],ue=n[(P+2)%5+5*S];x.high=ie.high^~ce.high&ue.high,x.low=ie.low^~ce.low&ue.low}var x=d[0],xe=c[b];x.high^=xe.high,x.low^=xe.low}},_doFinalize:function(){var o=this._data,l=o.words,d=this._nDataBytes*8,h=o.sigBytes*8,s=this.blockSize*32;l[h>>>5]|=1<<24-h%32,l[(E.ceil((h+1)/s)*s>>>5)-1]|=128,o.sigBytes=l.length*4,this._process();for(var u=this._state,w=this.cfg.outputLength/8,x=w/8,b=[],P=0;P<x;P++){var R=u[P],C=R.high,S=R.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,b.push(S),b.push(C)}return new m.init(b,w)},clone:function(){for(var o=y.clone.call(this),l=o._state=this._state.slice(0),d=0;d<25;d++)l[d]=l[d].clone();return o}});T.SHA3=y._createHelper(a),T.HmacSHA3=y._createHmacHelper(a)}(Math),M.SHA3})},"6+eU":function(N,Y,i){"use strict";i.d(Y,"a",function(){return b});var M=i("wx14"),E=i("rePB"),T=i("VTBJ"),v=i("1OyB"),m=i("vuIU"),y=i("Ji7U"),O=i("LK+K"),g=i("q1tI"),e=i.n(g),f=i("TSYQ"),r=i.n(f),c=function(R){var C,S="".concat(R.rootPrefixCls,"-item"),_=r()(S,"".concat(S,"-").concat(R.page),(C={},Object(E.a)(C,"".concat(S,"-active"),R.active),Object(E.a)(C,R.className,!!R.className),Object(E.a)(C,"".concat(S,"-disabled"),!R.page),C)),A=function(){R.onClick(R.page)},j=function(k){R.onKeyPress(k,R.onClick,R.page)};return e.a.createElement("li",{title:R.showTitle?R.page:null,className:_,onClick:A,onKeyPress:j,tabIndex:"0"},R.itemRender(R.page,"page",e.a.createElement("a",{rel:"nofollow"},R.page)))},n=c,a={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},o=function(P){Object(y.a)(C,P);var R=Object(O.a)(C);function C(){var S;Object(v.a)(this,C);for(var _=arguments.length,A=new Array(_),j=0;j<_;j++)A[j]=arguments[j];return S=R.call.apply(R,[this].concat(A)),S.state={goInputText:""},S.buildOptionText=function(I){return"".concat(I," ").concat(S.props.locale.items_per_page)},S.changeSize=function(I){S.props.changeSize(Number(I))},S.handleChange=function(I){S.setState({goInputText:I.target.value})},S.handleBlur=function(I){var k=S.props,J=k.goButton,G=k.quickGo,D=k.rootPrefixCls,H=S.state.goInputText;if(J||H==="")return;if(I.relatedTarget&&(I.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||I.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;S.setState({goInputText:""}),G(S.getValidValue())},S.go=function(I){var k=S.state.goInputText;if(k==="")return;(I.keyCode===a.ENTER||I.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(m.a)(C,[{key:"getValidValue",value:function(){var _=this.state,A=_.goInputText,j=_.current;return!A||isNaN(A)?j:Number(A)}},{key:"getPageSizeOptions",value:function(){var _=this.props,A=_.pageSize,j=_.pageSizeOptions;return j.some(function(I){return I.toString()===A.toString()})?j:j.concat([A.toString()]).sort(function(I,k){var J=isNaN(Number(I))?0:Number(I),G=isNaN(Number(k))?0:Number(k);return J-G})}},{key:"render",value:function(){var _=this,A=this.props,j=A.pageSize,I=A.locale,k=A.rootPrefixCls,J=A.changeSize,G=A.quickGo,D=A.goButton,H=A.selectComponentClass,W=A.buildOptionText,L=A.selectPrefixCls,z=A.disabled,ie=this.state.goInputText,ce="".concat(k,"-options"),ue=H,xe=null,Te=null,de=null;if(!J&&!G)return null;var ve=this.getPageSizeOptions();if(J&&ue){var _e=ve.map(function(le,ee){return e.a.createElement(ue.Option,{key:ee,value:le.toString()},(W||_.buildOptionText)(le))});xe=e.a.createElement(ue,{disabled:z,prefixCls:L,showSearch:!1,className:"".concat(ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(j||ve[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ee){return ee.parentNode}},_e)}return G&&(D&&(de=typeof D=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:z,className:"".concat(ce,"-quick-jumper-button")},I.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Te=e.a.createElement("div",{className:"".concat(ce,"-quick-jumper")},I.jump_to,e.a.createElement("input",{disabled:z,type:"text",value:ie,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),I.page,de)),e.a.createElement("li",{className:"".concat(ce)},xe,Te)}}]),C}(e.a.Component);o.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=o,d=i("N2Kk");function h(){}function s(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function u(P,R,C){return C}function w(P,R,C){var S=typeof P=="undefined"?R.pageSize:P;return Math.floor((C.total-1)/S)+1}var x=function(P){Object(y.a)(C,P);var R=Object(O.a)(C);function C(S){var _;Object(v.a)(this,C),_=R.call(this,S),_.getJumpPrevPage=function(){return Math.max(1,_.state.current-(_.props.showLessItems?3:5))},_.getJumpNextPage=function(){return Math.min(w(void 0,_.state,_.props),_.state.current+(_.props.showLessItems?3:5))},_.getItemIcon=function(J,G){var D=_.props.prefixCls,H=J||e.a.createElement("button",{type:"button","aria-label":G,className:"".concat(D,"-item-link")});return typeof J=="function"&&(H=e.a.createElement(J,Object(T.a)({},_.props))),H},_.savePaginationNode=function(J){_.paginationNode=J},_.isValid=function(J){return s(J)&&J!==_.state.current},_.shouldDisplayQuickJumper=function(){var J=_.props,G=J.showQuickJumper,D=J.pageSize,H=J.total;return H<=D?!1:G},_.handleKeyDown=function(J){(J.keyCode===a.ARROW_UP||J.keyCode===a.ARROW_DOWN)&&J.preventDefault()},_.handleKeyUp=function(J){var G=_.getValidValue(J),D=_.state.currentInputValue;G!==D&&_.setState({currentInputValue:G}),J.keyCode===a.ENTER?_.handleChange(G):J.keyCode===a.ARROW_UP?_.handleChange(G-1):J.keyCode===a.ARROW_DOWN&&_.handleChange(G+1)},_.changePageSize=function(J){var G=_.state.current,D=w(J,_.state,_.props);G=G>D?D:G,D===0&&(G=_.state.current),typeof J=="number"&&("pageSize"in _.props||_.setState({pageSize:J}),"current"in _.props||_.setState({current:G,currentInputValue:G})),_.props.onShowSizeChange(G,J),"onChange"in _.props&&_.props.onChange&&_.props.onChange(G,J)},_.handleChange=function(J){var G=_.props.disabled,D=J;if(_.isValid(D)&&!G){var H=w(void 0,_.state,_.props);D>H?D=H:D<1&&(D=1),"current"in _.props||_.setState({current:D,currentInputValue:D});var W=_.state.pageSize;return _.props.onChange(D,W),D}return _.state.current},_.prev=function(){_.hasPrev()&&_.handleChange(_.state.current-1)},_.next=function(){_.hasNext()&&_.handleChange(_.state.current+1)},_.jumpPrev=function(){_.handleChange(_.getJumpPrevPage())},_.jumpNext=function(){_.handleChange(_.getJumpNextPage())},_.hasPrev=function(){return _.state.current>1},_.hasNext=function(){return _.state.current<w(void 0,_.state,_.props)},_.runIfEnter=function(J,G){if(J.key==="Enter"||J.charCode===13){for(var D=arguments.length,H=new Array(D>2?D-2:0),W=2;W<D;W++)H[W-2]=arguments[W];G.apply(void 0,H)}},_.runIfEnterPrev=function(J){_.runIfEnter(J,_.prev)},_.runIfEnterNext=function(J){_.runIfEnter(J,_.next)},_.runIfEnterJumpPrev=function(J){_.runIfEnter(J,_.jumpPrev)},_.runIfEnterJumpNext=function(J){_.runIfEnter(J,_.jumpNext)},_.handleGoTO=function(J){(J.keyCode===a.ENTER||J.type==="click")&&_.handleChange(_.state.currentInputValue)};var A=S.onChange!==h,j="current"in S;j&&!A&&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=S.defaultCurrent;"current"in S&&(I=S.current);var k=S.defaultPageSize;return"pageSize"in S&&(k=S.pageSize),I=Math.min(I,w(k,void 0,S)),_.state={current:I,currentInputValue:I,pageSize:k},_}return Object(m.a)(C,[{key:"componentDidUpdate",value:function(_,A){var j=this.props.prefixCls;if(A.current!==this.state.current&&this.paginationNode){var I=this.paginationNode.querySelector(".".concat(j,"-item-").concat(A.current));I&&document.activeElement===I&&I.blur()}}},{key:"getValidValue",value:function(_){var A=_.target.value,j=w(void 0,this.state,this.props),I=this.state.currentInputValue,k;return A===""?k=A:isNaN(Number(A))?k=I:A>=j?k=j:k=Number(A),k}},{key:"getShowSizeChanger",value:function(){var _=this.props,A=_.showSizeChanger,j=_.total,I=_.totalBoundaryShowSizeChanger;return typeof A!="undefined"?A:j>I}},{key:"renderPrev",value:function(_){var A=this.props,j=A.prevIcon,I=A.itemRender,k=I(_,"prev",this.getItemIcon(j,"prev page")),J=!this.hasPrev();return Object(g.isValidElement)(k)?Object(g.cloneElement)(k,{disabled:J}):k}},{key:"renderNext",value:function(_){var A=this.props,j=A.nextIcon,I=A.itemRender,k=I(_,"next",this.getItemIcon(j,"next page")),J=!this.hasNext();return Object(g.isValidElement)(k)?Object(g.cloneElement)(k,{disabled:J}):k}},{key:"render",value:function(){var _=this,A=this.props,j=A.prefixCls,I=A.className,k=A.style,J=A.disabled,G=A.hideOnSinglePage,D=A.total,H=A.locale,W=A.showQuickJumper,L=A.showLessItems,z=A.showTitle,ie=A.showTotal,ce=A.simple,ue=A.itemRender,xe=A.showPrevNextJumpers,Te=A.jumpPrevIcon,de=A.jumpNextIcon,ve=A.selectComponentClass,_e=A.selectPrefixCls,le=A.pageSizeOptions,ee=this.state,U=ee.current,K=ee.pageSize,X=ee.currentInputValue;if(G===!0&&D<=K)return null;var Q=w(void 0,this.state,this.props),te=[],ae=null,re=null,$=null,Z=null,fe=null,me=W&&W.goButton,Oe=L?1:2,He=U-1>0?U-1:0,Qe=U+1<Q?U+1:Q,ot=Object.keys(this.props).reduce(function(we,Ae){return(Ae.substr(0,5)==="data-"||Ae.substr(0,5)==="aria-"||Ae==="role")&&(we[Ae]=_.props[Ae]),we},{});if(ce)return me&&(typeof me=="boolean"?fe=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},H.jump_to_confirm):fe=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},me),fe=e.a.createElement("li",{title:z?"".concat(H.jump_to).concat(U,"/").concat(Q):null,className:"".concat(j,"-simple-pager")},fe)),e.a.createElement("ul",Object(M.a)({className:r()(j,"".concat(j,"-simple"),Object(E.a)({},"".concat(j,"-disabled"),J),I),style:k,ref:this.savePaginationNode},ot),e.a.createElement("li",{title:z?H.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(j,"-prev"),Object(E.a)({},"".concat(j,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(He)),e.a.createElement("li",{title:z?"".concat(U,"/").concat(Q):null,className:"".concat(j,"-simple-pager")},e.a.createElement("input",{type:"text",value:X,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(j,"-slash")},"/"),Q),e.a.createElement("li",{title:z?H.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(j,"-next"),Object(E.a)({},"".concat(j,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Qe)),fe);if(Q<=3+Oe*2){var st={locale:H,rootPrefixCls:j,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:z,itemRender:ue};Q||te.push(e.a.createElement(n,Object(M.a)({},st,{key:"noPager",page:Q,className:"".concat(j,"-disabled")})));for(var ct=1;ct<=Q;ct+=1){var dt=U===ct;te.push(e.a.createElement(n,Object(M.a)({},st,{key:ct,page:ct,active:dt})))}}else{var Xe=L?H.prev_3:H.prev_5,ke=L?H.next_3:H.next_5;xe&&(ae=e.a.createElement("li",{title:z?Xe:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(j,"-jump-prev"),Object(E.a)({},"".concat(j,"-jump-prev-custom-icon"),!!Te))},ue(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Te,"prev page"))),re=e.a.createElement("li",{title:z?ke:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(j,"-jump-next"),Object(E.a)({},"".concat(j,"-jump-next-custom-icon"),!!de))},ue(this.getJumpNextPage(),"jump-next",this.getItemIcon(de,"next page")))),Z=e.a.createElement(n,{locale:H,last:!0,rootPrefixCls:j,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Q,page:Q,active:!1,showTitle:z,itemRender:ue}),$=e.a.createElement(n,{locale:H,rootPrefixCls:j,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:z,itemRender:ue});var lt=Math.max(1,U-Oe),Mt=Math.min(U+Oe,Q);U-1<=Oe&&(Mt=1+Oe*2),Q-U<=Oe&&(lt=Q-Oe*2);for(var Ce=lt;Ce<=Mt;Ce+=1){var he=U===Ce;te.push(e.a.createElement(n,{locale:H,rootPrefixCls:j,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ce,page:Ce,active:he,showTitle:z,itemRender:ue}))}U-1>=Oe*2&&U!==1+2&&(te[0]=Object(g.cloneElement)(te[0],{className:"".concat(j,"-item-after-jump-prev")}),te.unshift(ae)),Q-U>=Oe*2&&U!==Q-2&&(te[te.length-1]=Object(g.cloneElement)(te[te.length-1],{className:"".concat(j,"-item-before-jump-next")}),te.push(re)),lt!==1&&te.unshift($),Mt!==Q&&te.push(Z)}var be=null;ie&&(be=e.a.createElement("li",{className:"".concat(j,"-total-text")},ie(D,[D===0?0:(U-1)*K+1,U*K>D?D:U*K])));var Ee=!this.hasPrev()||!Q,Ne=!this.hasNext()||!Q;return e.a.createElement("ul",Object(M.a)({className:r()(j,I,Object(E.a)({},"".concat(j,"-disabled"),J)),style:k,unselectable:"unselectable",ref:this.savePaginationNode},ot),be,e.a.createElement("li",{title:z?H.prev_page:null,onClick:this.prev,tabIndex:Ee?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(j,"-prev"),Object(E.a)({},"".concat(j,"-disabled"),Ee)),"aria-disabled":Ee},this.renderPrev(He)),te,e.a.createElement("li",{title:z?H.next_page:null,onClick:this.next,tabIndex:Ne?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(j,"-next"),Object(E.a)({},"".concat(j,"-disabled"),Ne)),"aria-disabled":Ne},this.renderNext(Qe)),e.a.createElement(l,{disabled:J,locale:H,rootPrefixCls:j,selectComponentClass:ve,selectPrefixCls:_e,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:U,pageSize:K,pageSizeOptions:le,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(_,A){var j={};if("current"in _&&(j.current=_.current,_.current!==A.current&&(j.currentInputValue=j.current)),"pageSize"in _&&_.pageSize!==A.pageSize){var I=A.current,k=w(_.pageSize,A,_);I=I>k?k:I,"current"in _||(j.current=I,j.currentInputValue=I),j.pageSize=_.pageSize}return j}}]),C}(e.a.Component);x.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:h,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:h,locale:d.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var b=x},"6Fuo":function(N,Y,i){N.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":function(N,Y,i){"use strict";var M=i("wCXF"),E=i("n6Qo");i.d(Y,"b",function(){return E.a});var T=i("IBYe"),v=i("6eGT"),m=i("hW8S");i.d(Y,"a",function(){return m.a}),Y.c=M.b},"6UM0":function(N,Y,i){var M,E;(function(){var T;(function(){"use strict";var m=[function(e,f,r){var c=r(1).Beautifier,n=r(5).Options;function a(o,l){var d=new c(o,l);return d.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new n}},function(e,f,r){var c=r(2).Output,n=r(3).Token,a=r(4),o=r(5).Options,l=r(7).Tokenizer,d=r(7).line_starters,h=r(7).positionable_operators,s=r(7).TOKEN;function u(L,z){return z.indexOf(L)!==-1}function w(L){return L.replace(/^\s+/g,"")}function x(L){for(var z={},ie=0;ie<L.length;ie++)z[L[ie].replace(/-/g,"_")]=L[ie];return z}function b(L,z){return L&&L.type===s.RESERVED&&L.text===z}function P(L,z){return L&&L.type===s.RESERVED&&u(L.text,z)}var R=["case","return","do","if","throw","else","await","break","continue","async"],C=["before-newline","after-newline","preserve-newline"],S=x(C),_=[S.before_newline,S.preserve_newline],A={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function j(L,z){if(z.multiline_frame||z.mode===A.ForInitializer||z.mode===A.Conditional)return;L.remove_indent(z.start_line_index)}function I(L){L=L.replace(a.allLineBreaks,`
`);for(var z=[],ie=L.indexOf(`
`);ie!==-1;)z.push(L.substring(0,ie)),L=L.substring(ie+1),ie=L.indexOf(`
`);return L.length&&z.push(L),z}function k(L){return L===A.ArrayLiteral}function J(L){return u(L,[A.Expression,A.ForInitializer,A.Conditional])}function G(L,z){for(var ie=0;ie<L.length;ie++){var ce=L[ie].trim();if(ce.charAt(0)!==z)return!1}return!0}function D(L,z){for(var ie=0,ce=L.length,ue;ie<ce;ie++)if(ue=L[ie],ue&&ue.indexOf(z)!==0)return!1;return!0}function H(L,z){z=z||{},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 o(z)}H.prototype.create_flags=function(L,z){var ie=0;L&&(ie=L.indentation_level,!this._output.just_added_newline()&&L.line_indent_level>ie&&(ie=L.line_indent_level));var ce={mode:z,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:ie,alignment:0,line_indent_level:L?L.line_indent_level:ie,start_line_index:this._output.get_line_number(),ternary_depth:0};return ce},H.prototype._reset=function(L){var z=L.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new c(this._options,z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(A.BlockStatement);var ie=new l(L,this._options);return this._tokens=ie.tokenize(),L},H.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L,z=this._reset(this._source_text),ie=this._options.eol;this._options.eol==="auto"&&(ie=`
`,z&&a.lineBreak.test(z||"")&&(ie=z.match(a.lineBreak)[0]));for(var ce=this._tokens.next();ce;)this.handle_token(ce),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ce,ce=this._tokens.next();return L=this._output.get_code(ie),L},H.prototype.handle_token=function(L,z){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,z):L.type===s.COMMENT?this.handle_comment(L,z):L.type===s.DOT?this.handle_dot(L):L.type===s.EOF?this.handle_eof(L):L.type===s.UNKNOWN?this.handle_unknown(L,z):this.handle_unknown(L,z)},H.prototype.handle_whitespace_and_comments=function(L,z){var ie=L.newlines,ce=this._options.keep_array_indentation&&k(this._flags.mode);if(L.comments_before)for(var ue=L.comments_before.next();ue;)this.handle_whitespace_and_comments(ue,z),this.handle_token(ue,z),ue=L.comments_before.next();if(ce)for(var xe=0;xe<ie;xe+=1)this.print_newline(xe>0,z);else if(this._options.max_preserve_newlines&&ie>this._options.max_preserve_newlines&&(ie=this._options.max_preserve_newlines),this._options.preserve_newlines&&ie>1){this.print_newline(!1,z);for(var Te=1;Te<ie;Te+=1)this.print_newline(!0,z)}};var W=["async","break","continue","return","throw","yield"];H.prototype.allow_wrap_or_preserved_newline=function(L,z){if(z=z===void 0?!1:z,this._output.just_added_newline())return;var ie=this._options.preserve_newlines&&L.newlines||z,ce=u(this._flags.last_token.text,h)||u(L.text,h);if(ce){var ue=u(this._flags.last_token.text,h)&&u(this._options.operator_position,_)||u(L.text,h);ie=ie&&ue}if(ie)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,W))return;this._output.set_wrap_point()}},H.prototype.print_newline=function(L,z){if(!z&&(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 ie=this._tokens.peek();this._flags.mode===A.Statement&&!(this._flags.if_block&&b(ie,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(L)&&(this._flags.multiline_frame=!0)},H.prototype.print_token_line_indentation=function(L){this._output.just_added_newline()&&(this._options.keep_array_indentation&&L.newlines&&(L.text==="["||k(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))},H.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 z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(z),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)},H.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.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))},H.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)},H.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===A.Statement&&j(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},H.prototype.start_of_object_property=function(){return this._flags.parent.mode===A.ObjectLiteral&&this._flags.mode===A.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},H.prototype.start_of_statement=function(L){var z=!1;return z=z||P(this._flags.last_token,["var","let","const"])&&L.type===s.WORD,z=z||b(this._flags.last_token,"do"),z=z||!(this._flags.parent.mode===A.ObjectLiteral&&this._flags.mode===A.Statement)&&P(this._flags.last_token,W)&&!L.newlines,z=z||b(this._flags.last_token,"else")&&!(b(L,"if")&&!L.comments_before),z=z||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===A.ForInitializer||this._previous_flags.mode===A.Conditional),z=z||this._flags.last_token.type===s.WORD&&this._flags.mode===A.BlockStatement&&!this._flags.in_case&&!(L.text==="--"||L.text==="++")&&this._last_last_text!=="function"&&L.type!==s.WORD&&L.type!==s.RESERVED,z=z||this._flags.mode===A.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),z?(this.set_mode(A.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},H.prototype.handle_start_expr=function(L){this.start_of_statement(L)||this.handle_whitespace_and_comments(L);var z=A.Expression;if(L.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,d)&&(this._output.space_before_token=!0),this.print_token(L),this.set_mode(z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}z=A.ArrayLiteral,k(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,z=A.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,z=A.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,d)||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 ie=this._tokens.peek(-3);if(this._options.space_after_named_function&&ie){var ce=this._tokens.peek(-4);P(ie,["async","function"])||ie.text==="*"&&P(ce,["async","function"])?this._output.space_before_token=!0:this._flags.mode===A.ObjectLiteral?(ie.text==="{"||ie.text===","||ie.text==="*"&&(ce.text==="{"||ce.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===A.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(z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},H.prototype.handle_end_expr=function(L){for(;this._flags.mode===A.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(L,L.text==="]"&&k(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(),j(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===A.Conditional&&(this._previous_flags.mode=A.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},H.prototype.handle_start_block=function(L){this.handle_whitespace_and_comments(L);var z=this._tokens.peek(),ie=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(A.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(A.BlockStatement):ie&&(u(ie.text,[":",","])&&u(z.type,[s.STRING,s.WORD,s.RESERVED])||u(z.text,["get","set","..."])&&u(ie.type,[s.WORD,s.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(ie.text,[":",","])?this.set_mode(A.BlockStatement):this.set_mode(A.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(A.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(A.ObjectLiteral):this.set_mode(A.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var ce=!z.comments_before&&z.text==="}",ue=ce&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var xe=0,Te=null;this._flags.inline_frame=!0;do if(xe+=1,Te=this._tokens.peek(xe-1),Te.newlines){this._flags.inline_frame=!1;break}while(Te.type!==s.EOF&&!(Te.type===s.END_BLOCK&&Te.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&&(ue||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):(k(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(),!ce&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},H.prototype.handle_end_block=function(L){for(this.handle_whitespace_and_comments(L);this._flags.mode===A.Statement;)this.restore_mode();var z=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!z?this._output.space_before_token=!0:this._options.brace_style==="expand"?z||this.print_newline():z||(k(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)},H.prototype.handle_word=function(L){if(L.type===s.RESERVED){if(u(L.text,["set","get"])&&this._flags.mode!==A.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===A.ObjectLiteral){var z=this._tokens.peek();z.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&&!J(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(b(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&&b(L,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===A.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)),b(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,W)?this._output.space_before_token=!0:b(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&&(J(this._flags.mode)||k(this._flags.mode))||this.print_newline(),this.print_token(L),this._flags.last_word=L.text;return}var ie="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?ie="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?ie="NEWLINE":(ie="SPACE",this._output.space_before_token=!0):ie="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===A.BlockStatement?ie="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&J(this._flags.mode)?ie="SPACE":this._flags.last_token.type===s.STRING?ie="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===A.ObjectLiteral&&u(this._last_last_text,["{",","]))?ie="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?ie="SPACE":ie="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,ie="NEWLINE"),P(L,d)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ie="SPACE":ie="NEWLINE"),P(L,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===A.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 ce=this._output.current_line;ce.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ie==="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!==":"&&(b(L,"if")&&b(L.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(L,d)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&k(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ie==="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&&b(L,"from")&&(this._flags.import_block=!1))},H.prototype.handle_semicolon=function(L){this.start_of_statement(L)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(L);for(var z=this._tokens.peek();this._flags.mode===A.Statement&&!(this._flags.if_block&&b(z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(L)},H.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)},H.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},H.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?(J(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===A.ObjectLiteral||this._flags.mode===A.Statement&&this._flags.parent.mode===A.ObjectLiteral?(this._flags.mode===A.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(L)},H.prototype.handle_operator=function(L){var z=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])),ie=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,d)||this._flags.last_token.text===",");if(!this.start_of_statement(L)){var ce=!z;this.handle_whitespace_and_comments(L,ce)}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,_)&&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 ue=!0,xe=!0,Te=!1;if(L.text===":"?this._flags.ternary_depth===0?ue=!1:(this._flags.ternary_depth-=1,Te=!0):L.text==="?"&&(this._flags.ternary_depth+=1),!ie&&!z&&this._options.preserve_newlines&&u(L.text,h)){var de=L.text===":",ve=de&&Te,_e=de&&!Te;switch(this._options.operator_position){case S.before_newline:this._output.space_before_token=!_e,this.print_token(L),(!de||ve)&&this.allow_wrap_or_preserved_newline(L),this._output.space_before_token=!0;return;case S.after_newline:this._output.space_before_token=!0,!de||ve?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 S.preserve_newline:_e||this.allow_wrap_or_preserved_newline(L),ue=!(this._output.just_added_newline()||_e),this._output.space_before_token=ue,this.print_token(L),this._output.space_before_token=!0;return}}if(z){this.allow_wrap_or_preserved_newline(L),ue=!1;var le=this._tokens.peek();xe=le&&u(le.type,[s.WORD,s.RESERVED])}else if(L.text==="...")this.allow_wrap_or_preserved_newline(L),ue=this._flags.last_token.type===s.START_BLOCK,xe=!1;else if(u(L.text,["--","++","!","~"])||ie){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(L),ue=!1,xe=!1,L.newlines&&(L.text==="--"||L.text==="++"||L.text==="~")){var ee=P(this._flags.last_token,R)&&L.newlines;ee&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(ee,!0)}this._flags.last_token.text===";"&&J(this._flags.mode)&&(ue=!0),this._flags.last_token.type===s.RESERVED?ue=!0:this._flags.last_token.type===s.END_EXPR?ue=!(this._flags.last_token.text==="]"&&(L.text==="--"||L.text==="++")):this._flags.last_token.type===s.OPERATOR&&(ue=u(L.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(L.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(xe=!0)),(this._flags.mode===A.BlockStatement&&!this._flags.inline_frame||this._flags.mode===A.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ue,this.print_token(L),this._output.space_before_token=xe},H.prototype.handle_block_comment=function(L,z){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,z),this.print_token(L),L.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.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,z)},H.prototype.print_block_commment=function(L,z){var ie=I(L.text),ce,ue=!1,xe=!1,Te=L.whitespace_before,de=Te.length;if(this.print_newline(!1,z),this.print_token_line_indentation(L),this._output.add_token(ie[0]),this.print_newline(!1,z),ie.length>1){for(ie=ie.slice(1),ue=G(ie,"*"),xe=D(ie,Te),ue&&(this._flags.alignment=1),ce=0;ce<ie.length;ce++)ue?(this.print_token_line_indentation(L),this._output.add_token(w(ie[ce]))):xe&&ie[ce]?(this.print_token_line_indentation(L),this._output.add_token(ie[ce].substring(de))):(this._output.current_line.set_indent(-1),this._output.add_token(ie[ce])),this.print_newline(!1,z);this._flags.alignment=0}},H.prototype.handle_comment=function(L,z){L.newlines?this.print_newline(!1,z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(L),this.print_newline(!1,z)},H.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)},H.prototype.handle_unknown=function(L,z){this.print_token(L),L.text[L.text.length-1]===`
`&&this.print_newline(!1,z)},H.prototype.handle_eof=function(L){for(;this._flags.mode===A.Statement;)this.restore_mode();this.handle_whitespace_and_comments(L)},e.exports.Beautifier=H},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 a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(n))return!0;return!1},f.prototype.set_indent=function(n,a){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=a||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 a=n.lastIndexOf(`
`);a!==-1?this.__character_count=n.length-a: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,a){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)),a=a||"",n.indent_level>0&&(a=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}r.prototype.get_indent_size=function(n,a){var o=this.__base_string_length;return a=a||0,n<0&&(o=0),o+=n*this.__indent_size,o+=a,o},r.prototype.get_indent_string=function(n,a){var o=this.__base_string;return a=a||0,n<0&&(n=0,o=""),a+=n*this.__indent_size,this.__ensure_cache(a),o+=this.__cache[a],o},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,a=0,o="";this.__indent_size&&n>=this.__indent_size&&(a=Math.floor(n/this.__indent_size),n-=a*this.__indent_size,o=new Array(a+1).join(this.__indent_string)),n&&(o+=new Array(n+1).join(" ")),this.__cache.push(o)};function c(n,a){this.__indent_cache=new r(n,a),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()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(n,a){return this.__indent_cache.get_indent_string(n,a)},c.prototype.get_indent_size=function(n,a){return this.__indent_cache.get_indent_size(n,a)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.prototype.get_code=function(n){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
`);return n!==`
`&&(o=o.replace(/[\n]/g,n)),o},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(n,a){return n=n||0,a=a||0,this.next_line.set_indent(n,a),this.__lines.length>1?(this.current_line.set_indent(n,a),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(n){for(var a=0;a<n.newlines;a++)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},c.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()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(n){for(var a=this.__lines.length;n<a;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},c.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},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(n,a){for(var o=this.__lines.length-2;o>=0;){var l=this.__lines[o];if(l.is_empty())break;if(l.item(0).indexOf(n)!==0&&l.item(-1)!==a){this.__lines.splice(o+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},e.exports.Output=c},function(e){function f(r,c,n,a){this.type=r,this.text=c,this.comments_before=null,this.newlines=n||0,this.whitespace_before=a||"",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",c="\\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",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="(?:\\\\u[0-9a-fA-F]{4}|["+r+n+"])",l="(?:\\\\u[0-9a-fA-F]{4}|["+c+n+a+"])*";f.identifier=new RegExp(o+l,"g"),f.identifierStart=new RegExp(o),f.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+c+n+a+"])+");var d=/[\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 c=r(6).Options,n=["before-newline","after-newline","preserve-newline"];function a(o){c.call(this,o,"js");var l=this.raw_options.brace_style||null;l==="expand-strict"?this.raw_options.brace_style="expand":l==="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 d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<d.length;h++)d[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=d[h];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)}a.prototype=new c,e.exports.Options=a},function(e){function f(n,a){this.raw_options=r(n,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}f.prototype._get_array=function(n,a){var o=this.raw_options[n],l=a||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(l=o.concat()):typeof o=="string"&&(l=o.split(/[^a-zA-Z0-9_\/\-]+/)),l},f.prototype._get_boolean=function(n,a){var o=this.raw_options[n],l=o===void 0?!!a:!!o;return l},f.prototype._get_characters=function(n,a){var o=this.raw_options[n],l=a||"";return typeof o=="string"&&(l=o.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),l},f.prototype._get_number=function(n,a){var o=this.raw_options[n];a=parseInt(a,10),isNaN(a)&&(a=0);var l=parseInt(o,10);return isNaN(l)&&(l=a),l},f.prototype._get_selection=function(n,a,o){var l=this._get_selection_list(n,a,o);if(l.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+a+`
You passed in: '`+this.raw_options[n]+"'");return l[0]},f.prototype._get_selection_list=function(n,a,o){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[a[0]],!this._is_valid_selection(o,a))throw new Error("Invalid Default Value!");var l=this._get_array(n,o);if(!this._is_valid_selection(l,a))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+a+`
You passed in: '`+this.raw_options[n]+"'");return l},f.prototype._is_valid_selection=function(n,a){return n.length&&a.length&&!n.some(function(o){return a.indexOf(o)===-1})};function r(n,a){var o={};n=c(n);var l;for(l in n)l!==a&&(o[l]=n[l]);if(a&&n[a])for(l in n[a])o[l]=n[a][l];return o}function c(n){var a={},o;for(o in n){var l=o.replace(/-/g,"_");a[l]=n[o]}return a}e.exports.Options=f,e.exports.normalizeOpts=c,e.exports.mergeOpts=r},function(e,f,r){var c=r(8).InputScanner,n=r(9).Tokenizer,a=r(9).TOKEN,o=r(13).Directives,l=r(4),d=r(12).Pattern,h=r(14).TemplatablePattern;function s(G,D){return D.indexOf(G)!==-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:a.START,RAW:a.RAW,EOF:a.EOF},w=new o(/\/\*/,/\*\//),x=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,b=/[0-9]/,P=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),C=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";C=C.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),C="\\?\\.(?!\\d) "+C,C=C.replace(/ /g,"|");var S=new RegExp(C),_="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),A=_.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),j=new RegExp("^(?:"+A.join("|")+")$"),I,k=function(G,D){n.call(this,G,D),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var H=new d(this._input),W=new h(this._input).read_options(this._options);this.__patterns={template:W,identifier:W.starting_with(l.identifier).matching(l.identifierMatch),number:H.matching(x),punct:H.matching(S),comment:H.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:H.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:H.matching(/<!--/),html_comment_end:H.matching(/-->/),include:H.starting_with(/#include/).until_after(l.lineBreak),shebang:H.starting_with(/#!/).until_after(l.lineBreak),xml:H.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:W.until(/['\\\n\r\u2028\u2029]/),double_quote:W.until(/["\\\n\r\u2028\u2029]/),template_text:W.until(/[`\\$]/),template_expression:W.until(/[`}\\]/)}};k.prototype=new n,k.prototype._is_comment=function(G){return G.type===u.COMMENT||G.type===u.BLOCK_COMMENT||G.type===u.UNKNOWN},k.prototype._is_opening=function(G){return G.type===u.START_BLOCK||G.type===u.START_EXPR},k.prototype._is_closing=function(G,D){return(G.type===u.END_BLOCK||G.type===u.END_EXPR)&&D&&(G.text==="]"&&D.text==="["||G.text===")"&&D.text==="("||G.text==="}"&&D.text==="{")},k.prototype._reset=function(){I=!1},k.prototype._get_next_token=function(G,D){var H=null;this._readWhitespace();var W=this._input.peek();return W===null?this._create_token(u.EOF,""):(H=H||this._read_non_javascript(W),H=H||this._read_string(W),H=H||this._read_word(G),H=H||this._read_singles(W),H=H||this._read_comment(W),H=H||this._read_regexp(W,G),H=H||this._read_xml(W,G),H=H||this._read_punctuation(),H=H||this._create_token(u.UNKNOWN,this._input.next()),H)},k.prototype._read_word=function(G){var D;if(D=this.__patterns.identifier.read(),D!=="")return D=D.replace(l.allLineBreaks,`
`),!(G.type===u.DOT||G.type===u.RESERVED&&(G.text==="set"||G.text==="get"))&&j.test(D)?(D==="in"||D==="of")&&(G.type===u.WORD||G.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)},k.prototype._read_singles=function(G){var D=null;return G==="("||G==="["?D=this._create_token(u.START_EXPR,G):G===")"||G==="]"?D=this._create_token(u.END_EXPR,G):G==="{"?D=this._create_token(u.START_BLOCK,G):G==="}"?D=this._create_token(u.END_BLOCK,G):G===";"?D=this._create_token(u.SEMICOLON,G):G==="."&&P.test(this._input.peek(1))?D=this._create_token(u.DOT,G):G===","&&(D=this._create_token(u.COMMA,G)),D&&this._input.next(),D},k.prototype._read_punctuation=function(){var G=this.__patterns.punct.read();if(G!=="")return G==="="?this._create_token(u.EQUALS,G):G==="?."?this._create_token(u.DOT,G):this._create_token(u.OPERATOR,G)},k.prototype._read_non_javascript=function(G){var D="";if(G==="#"){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()+`
`);G=this._input.next();var H="#";if(this._input.hasNext()&&this._input.testChar(b)){do G=this._input.next(),H+=G;while(this._input.hasNext()&&G!=="#"&&G!=="=");return G==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(H+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(H+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,H)}this._input.back()}else if(G==="<"&&this._is_first_token()){if(D=this.__patterns.html_comment_start.read(),D){for(;this._input.hasNext()&&!this._input.testChar(l.newline);)D+=this._input.next();return I=!0,this._create_token(u.COMMENT,D)}}else if(I&&G==="-"&&(D=this.__patterns.html_comment_end.read(),D))return I=!1,this._create_token(u.COMMENT,D);return null},k.prototype._read_comment=function(G){var D=null;if(G==="/"){var H="";if(this._input.peek(1)==="*"){H=this.__patterns.block_comment.read();var W=w.get_directives(H);W&&W.ignore==="start"&&(H+=w.readIgnored(this._input)),H=H.replace(l.allLineBreaks,`
`),D=this._create_token(u.BLOCK_COMMENT,H),D.directives=W}else this._input.peek(1)==="/"&&(H=this.__patterns.comment.read(),D=this._create_token(u.COMMENT,H))}return D},k.prototype._read_string=function(G){if(G==="`"||G==="'"||G==='"'){var D=this._input.next();return this.has_char_escapes=!1,G==="`"?D+=this._read_string_recursive("`",!0,"${"):D+=this._read_string_recursive(G),this.has_char_escapes&&this._options.unescape_strings&&(D=J(D)),this._input.peek()===G&&(D+=this._input.next()),D=D.replace(l.allLineBreaks,`
`),this._create_token(u.STRING,D)}return null},k.prototype._allow_regexp_or_xml=function(G){return G.type===u.RESERVED&&s(G.text,["return","case","throw","else","do","typeof","yield"])||G.type===u.END_EXPR&&G.text===")"&&G.opened.previous.type===u.RESERVED&&s(G.opened.previous.text,["if","while","for"])||s(G.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},k.prototype._read_regexp=function(G,D){if(G==="/"&&this._allow_regexp_or_xml(D)){for(var H=this._input.next(),W=!1,L=!1;this._input.hasNext()&&(W||L||this._input.peek()!==G)&&!this._input.testChar(l.newline);)H+=this._input.peek(),W?W=!1:(W=this._input.peek()==="\\",this._input.peek()==="["?L=!0:this._input.peek()==="]"&&(L=!1)),this._input.next();return this._input.peek()===G&&(H+=this._input.next(),H+=this._input.read(l.identifier)),this._create_token(u.STRING,H)}return null},k.prototype._read_xml=function(G,D){if(this._options.e4x&&G==="<"&&this._allow_regexp_or_xml(D)){var H="",W=this.__patterns.xml.read_match();if(W){for(var L=W[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),z=L.indexOf("{")===0,ie=0;W;){var ce=!!W[1],ue=W[2],xe=!!W[W.length-1]||ue.slice(0,8)==="![CDATA[";if(!xe&&(ue===L||z&&ue.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ce?--ie:++ie),H+=W[0],ie<=0)break;W=this.__patterns.xml.read_match()}return W||(H+=this._input.match(/[\s\S]*/g)[0]),H=H.replace(l.allLineBreaks,`
`),this._create_token(u.STRING,H)}}return null};function J(G){for(var D="",H=0,W=new c(G),L=null;W.hasNext();)if(L=W.match(/([\s]|[^\\]|\\\\)+/g),L&&(D+=L[0]),W.peek()==="\\"){if(W.next(),W.peek()==="x")L=W.match(/x([0-9A-Fa-f]{2})/g);else if(W.peek()==="u")L=W.match(/u([0-9A-Fa-f]{4})/g);else{D+="\\",W.hasNext()&&(D+=W.next());continue}if(!L)return G;if(H=parseInt(L[1],16),H>126&&H<=255&&L[0].indexOf("x")===0)return G;if(H>=0&&H<32){D+="\\"+L[0];continue}else H===34||H===39||H===92?D+="\\"+String.fromCharCode(H):D+=String.fromCharCode(H)}return D}k.prototype._read_string_recursive=function(G,D,H){var W,L;G==="'"?L=this.__patterns.single_quote:G==='"'?L=this.__patterns.double_quote:G==="`"?L=this.__patterns.template_text:G==="}"&&(L=this.__patterns.template_expression);for(var z=L.read(),ie="";this._input.hasNext();){if(ie=this._input.next(),ie===G||!D&&l.newline.test(ie)){this._input.back();break}else ie==="\\"&&this._input.hasNext()?(W=this._input.peek(),W==="x"||W==="u"?this.has_char_escapes=!0:W==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ie+=this._input.next()):H&&(H==="${"&&ie==="$"&&this._input.peek()==="{"&&(ie+=this._input.next()),H===ie&&(G==="`"?ie+=this._read_string_recursive("}",D,"`"):ie+=this._read_string_recursive("`",D,"${"),this._input.hasNext()&&(ie+=this._input.next())));ie+=L.read(),z+=ie}return z},e.exports.Tokenizer=k,e.exports.TOKEN=u,e.exports.positionable_operators=R.slice(),e.exports.line_starters=_.slice()},function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function r(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},r.prototype.peek=function(c){var n=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(n=this.__input.charAt(c)),n},r.prototype.__match=function(c,n){c.lastIndex=n;var a=c.exec(this.__input);return a&&!(f&&c.sticky)&&(a.index!==n&&(a=null)),a},r.prototype.test=function(c,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(c,n):!1},r.prototype.testChar=function(c,n){var a=this.peek(n);return c.lastIndex=0,a!==null&&c.test(a)},r.prototype.match=function(c){var n=this.__match(c,this.__position);return n?this.__position+=n[0].length:n=null,n},r.prototype.read=function(c,n,a){var o="",l;return c&&(l=this.match(c),l&&(o+=l[0])),n&&(l||!c)&&(o+=this.readUntil(n,a)),o},r.prototype.readUntil=function(c,n){var a="",o=this.__position;c.lastIndex=this.__position;var l=c.exec(this.__input);return l?(o=l.index,n&&(o+=l[0].length)):o=this.__input_length,a=this.__input.substring(this.__position,o),this.__position=o,a},r.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},r.prototype.get_regexp=function(c,n){var a=null,o="g";return n&&f&&(o="y"),typeof c=="string"&&c!==""?a=new RegExp(c,o):c&&(a=new RegExp(c.source,o)),a},r.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(c){var n=this.__position,a=this.readUntilAfter(c);return this.__position=n,a},r.prototype.lookBack=function(c){var n=this.__position-1;return n>=c.length&&this.__input.substring(n-c.length,n).toLowerCase()===c},e.exports.InputScanner=r},function(e,f,r){var c=r(8).InputScanner,n=r(3).Token,a=r(10).TokenStream,o=r(11).WhitespacePattern,l={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},d=function(h,s){this._input=new c(h),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};d.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var h,s=new n(l.START,""),u=null,w=[],x=new a;s.type!==l.EOF;){for(h=this._get_next_token(s,u);this._is_comment(h);)x.add(h),h=this._get_next_token(s,u);x.isEmpty()||(h.comments_before=x,x=new a),h.parent=u,this._is_opening(h)?(w.push(u),u=h):u&&this._is_closing(h,u)&&(h.opened=u,u.closed=h,u=w.pop(),h.parent=u),h.previous=s,s.next=h,this.__tokens.add(h),s=h}return this.__tokens},d.prototype._is_first_token=function(){return this.__tokens.isEmpty()},d.prototype._reset=function(){},d.prototype._get_next_token=function(h,s){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(l.RAW,u):this._create_token(l.EOF,"")},d.prototype._is_comment=function(h){return!1},d.prototype._is_opening=function(h){return!1},d.prototype._is_closing=function(h,s){return!1},d.prototype._create_token=function(h,s){var u=new n(h,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},d.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=d,e.exports.TOKEN=l},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 c=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(c=this.__tokens[r]),c},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 c=r(12).Pattern;function n(a,o){c.call(this,a,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new c,n.prototype.__set_whitespace_patterns=function(a,o){a+="\\t ",o+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+o+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+o+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var o=this.__split(this._newline_regexp,a);this.newline_count=o.length-1,this.whitespace_before_token=o[this.newline_count]}return a},n.prototype.matching=function(a,o){var l=this._create();return l.__set_whitespace_patterns(a,o),l._update(),l},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(a,o){a.lastIndex=0;for(var l=0,d=[],h=a.exec(o);h;)d.push(o.substring(l,h.index)),l=h.index+h[0].length,h=a.exec(o);return l<o.length?d.push(o.substring(l,o.length)):d.push(""),d},e.exports.WhitespacePattern=n},function(e){function f(r,c){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,c&&(this._starting_pattern=this._input.get_regexp(c._starting_pattern,!0),this._match_pattern=this._input.get_regexp(c._match_pattern,!0),this._until_pattern=this._input.get_regexp(c._until_pattern),this._until_after=c._until_after)}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 c=this._create();return c._until_after=!0,c._until_pattern=this._input.get_regexp(r),c._update(),c},f.prototype.until=function(r){var c=this._create();return c._until_after=!1,c._until_pattern=this._input.get_regexp(r),c._update(),c},f.prototype.starting_with=function(r){var c=this._create();return c._starting_pattern=this._input.get_regexp(r,!0),c._update(),c},f.prototype.matching=function(r){var c=this._create();return c._match_pattern=this._input.get_regexp(r,!0),c._update(),c},f.prototype._create=function(){return new f(this._input,this)},f.prototype._update=function(){},e.exports.Pattern=f},function(e){function f(r,c){r=typeof r=="string"?r:r.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+c,"g")}f.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(r);n;)c[n[1]]=n[2],n=this.__directive_pattern.exec(r);return c},f.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},function(e,f,r){var c=r(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function a(o,l){c.call(this,o,l),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),l&&(this.__template_pattern=this._input.get_regexp(l.__template_pattern),this._excluded=Object.assign(this._excluded,l._excluded),this._disabled=Object.assign(this._disabled,l._disabled));var d=new c(o);this.__patterns={handlebars_comment:d.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:d.starting_with(/{{{/).until_after(/}}}/),handlebars:d.starting_with(/{{/).until_after(/}}/),php:d.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:d.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:d.starting_with(/{%/).until_after(/%}/),django_value:d.starting_with(/{{/).until_after(/}}/),django_comment:d.starting_with(/{#/).until_after(/#}/),smarty:d.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:d.starting_with(/{\*/).until_after(/\*}/),smarty_literal:d.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new c,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(o){var l=this._create();return l._disabled[o]=!0,l._update(),l},a.prototype.read_options=function(o){var l=this._create();for(var d in n)l._disabled[d]=o.templating.indexOf(d)===-1;return l._update(),l},a.prototype.exclude=function(o){var l=this._create();return l._excluded[o]=!0,l._update(),l},a.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var l=this._read_template();l;)this._match_pattern?l+=this._input.read(this._match_pattern):l+=this._input.readUntil(this.__template_pattern),o+=l,l=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},a.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},a.prototype._read_template=function(){var o="",l=this._input.peek();if(l==="<"){var d=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&d==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&d==="%"&&(o=o||this.__patterns.erb.read())}else l==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},e.exports.TemplatablePattern=a}],y={};function O(e){var f=y[e];if(f!==void 0)return f.exports;var r=y[e]={exports:{}};return m[e](r,r.exports,O),r.exports}var g=O(0);T=g})();var v=T;!(M=[],E=function(){return{js_beautify:v}}.apply(Y,M),E!==void 0&&(N.exports=E))})()},"6eGT":function(N,Y,i){"use strict";function M(E){return null}Y.a=M},"6nfa":function(N,Y,i){N.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(N,Y,i){"use strict";i.d(Y,"f",function(){return M}),i.d(Y,"l",function(){return E}),i.d(Y,"k",function(){return T}),i.d(Y,"j",function(){return v}),i.d(Y,"g",function(){return m}),i.d(Y,"m",function(){return y}),i.d(Y,"h",function(){return O}),i.d(Y,"n",function(){return g}),i.d(Y,"c",function(){return e}),i.d(Y,"a",function(){return f}),i.d(Y,"i",function(){return r}),i.d(Y,"o",function(){return c}),i.d(Y,"e",function(){return o}),i.d(Y,"d",function(){return l}),i.d(Y,"p",function(){return d}),i.d(Y,"b",function(){return h});function M(s){return Array.isArray(s)}function E(s){return typeof s=="string"}function T(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function v(s){return typeof s=="number"&&!isNaN(s)}function m(s){return s===!0||s===!1}function y(s){return typeof s=="undefined"}function O(s){return!g(s)}function g(s){return y(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 c(s,u){const w=Math.min(s.length,u.length);for(let x=0;x<w;x++)n(s[x],u[x])}function n(s,u){if(E(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(w){}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 a(s){let u=[],w=Object.getPrototypeOf(s);for(;Object.prototype!==w;)u=u.concat(Object.getOwnPropertyNames(w)),w=Object.getPrototypeOf(w);return u}function o(s){const u=[];for(const w of a(s))typeof s[w]=="function"&&u.push(w);return u}function l(s,u){const w=b=>function(){const P=Array.prototype.slice.call(arguments,0);return u(b,P)};let x={};for(const b of s)x[b]=w(b);return x}function d(s){return s===null?void 0:s}function h(s,u="Unreachable"){throw new Error(u)}},"7Cbv":function(N,Y,i){"use strict";var M=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),E=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(E)}var v=/^(?:[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 m(n){return typeof n=="string"&&v.test(n)}for(var y=m,O=[],g=0;g<256;++g)O.push((g+256).toString(16).substr(1));function e(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=(O[n[a+0]]+O[n[a+1]]+O[n[a+2]]+O[n[a+3]]+"-"+O[n[a+4]]+O[n[a+5]]+"-"+O[n[a+6]]+O[n[a+7]]+"-"+O[n[a+8]]+O[n[a+9]]+"-"+O[n[a+10]]+O[n[a+11]]+O[n[a+12]]+O[n[a+13]]+O[n[a+14]]+O[n[a+15]]).toLowerCase();if(!y(o))throw TypeError("Stringified UUID is invalid");return o}var f=e;function r(n,a,o){n=n||{};var l=n.random||(n.rng||T)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,a){o=o||0;for(var d=0;d<16;++d)a[o+d]=l[d];return a}return f(l)}var c=Y.a=r},"7ZXX":function(N,Y,i){N.exports=i.p+"static/err.6e7c5817.png"},"7ahc":function(N,Y,i){"use strict";i.d(Y,"a",function(){return w});var M=i("k1fw"),E=i("0Owb"),T=i("+L6B"),v=i("2/Rp"),m=i("y8nQ"),y=i("Vl3Y"),O=i("tJVT"),g=i("OaEy"),e=i("2fM7"),f=i("q1tI"),r=i.n(f),c=i("VrN/"),n=i.n(c),a=i("p77/"),o=i.n(a),l=i("c5Ni"),d=i.n(l),h=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"]};Y.b=function(x){var b=x.callback,P=x.onCancel,R=Object(f.useState)("python"),C=Object(O.a)(R,2),S=C[0],_=C[1];function A(I){_(u[I][1])}function j(I){b(I)}return r.a.createElement(y.a,Object(E.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:j}),r.a.createElement(y.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(e.a,{onChange:A},Object.keys(u).map(function(I){return r.a.createElement(h,{key:I,value:I},u[I][0])}))),r.a.createElement(y.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(w,{mode:S})),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(v.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(v.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function w(x){var b=x.value,P=x.onChange,R=x.mode,C=x.options,S=C===void 0?{}:C,_=Object(f.useRef)(),A=Object(f.useState)(),j=Object(O.a)(A,2),I=j[0],k=j[1];return Object(f.useEffect)(function(){if(I){function J(G){var D=G.getValue();P&&P(D)}return I.on("change",J),function(){I.off("change",J)}}},[I,P]),Object(f.useEffect)(function(){I&&I.setOption("mode",R)},[I,R]),Object(f.useEffect)(function(){I&&((b!==I.getValue()||b==="")&&setTimeout(function(){I.setValue(b||" ")},300))},[I,b]),Object(f.useEffect)(function(){if(_.current&&!I){var J=n.a.fromTextArea(_.current,Object(M.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},S));k(J)}},[_.current,I]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:_}))}},"7ixt":function(N,Y,i){"use strict";i.d(Y,"a",function(){return T});var M={adjustX:1,adjustY:1},E=[0,0],T={left:{points:["cr","cl"],overflow:M,offset:[-4,0],targetOffset:E},right:{points:["cl","cr"],overflow:M,offset:[4,0],targetOffset:E},top:{points:["bc","tc"],overflow:M,offset:[0,-4],targetOffset:E},bottom:{points:["tc","bc"],overflow:M,offset:[0,4],targetOffset:E},topLeft:{points:["bl","tl"],overflow:M,offset:[0,-4],targetOffset:E},leftTop:{points:["tr","tl"],overflow:M,offset:[-4,0],targetOffset:E},topRight:{points:["br","tr"],overflow:M,offset:[0,-4],targetOffset:E},rightTop:{points:["tl","tr"],overflow:M,offset:[4,0],targetOffset:E},bottomRight:{points:["tr","br"],overflow:M,offset:[0,4],targetOffset:E},rightBottom:{points:["bl","br"],overflow:M,offset:[4,0],targetOffset:E},bottomLeft:{points:["tl","bl"],overflow:M,offset:[0,4],targetOffset:E},leftBottom:{points:["br","bl"],overflow:M,offset:[-4,0],targetOffset:E}},v=T},"7v3h":function(N,Y,i){N.exports=i.p+"static/empty2.dd73f390.png"},"8/bI":function(N,Y,i){N.exports=i.p+"static/empty.8918e228.png"},"815F":function(N,Y,i){"use strict";i.d(Y,"e",function(){return O}),i.d(Y,"c",function(){return e}),i.d(Y,"d",function(){return f}),i.d(Y,"a",function(){return c}),i.d(Y,"f",function(){return n}),i.d(Y,"b",function(){return a});var M=i("KQm4"),E=i("VTBJ"),T=i("Ff2n"),v=i("Zm9Q"),m=i("Kwbf"),y=i("OZM5");function O(o,l){return o!=null?o:l}function g(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function d(h){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(u){var w=u.key,x=u.children;Object(m.a)(w!=null,"Tree node must have a certain key: [".concat(s).concat(w,"]"));var b=String(w);Object(m.a)(!l.has(b)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(b)),l.set(b,!0),d(x,"".concat(s).concat(b," > "))})}d(o)}function e(o){function l(d){var h=Object(v.a)(d);return h.map(function(s){if(!Object(y.i)(s))return Object(m.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var u=s.key,w=s.props,x=w.children,b=Object(T.a)(w,["children"]),P=Object(E.a)({key:u},b),R=l(x);return R.length&&(P.children=R),P}).filter(function(s){return s})}return l(o)}function f(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(l===!0?[]:l),h=[];function s(u){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(x,b){var P=Object(y.h)(w?w.pos:"0",b),R=O(x.key,P),C=Object(E.a)(Object(E.a)({},x),{},{parent:w,pos:P,children:null,data:x,isStart:[].concat(Object(M.a)(w?w.isStart:[]),[b===0]),isEnd:[].concat(Object(M.a)(w?w.isEnd:[]),[b===u.length-1])});return h.push(C),l===!0||d.has(R)?C.children=s(x.children||[],C):C.children=[],C})}return s(o),h}function r(o,l,d){var h;d?typeof d=="string"?h=function(w){return w[d]}:typeof d=="function"&&(h=function(w){return d(w)}):h=function(w,x){return O(w.key,x)};function s(u,w,x){var b=u?u.children:o,P=u?Object(y.h)(x.pos,w):"0";if(u){var R=h(u,P),C={node:u,index:w,pos:P,key:R,parentPos:x.node?x.pos:null,level:x.level+1};l(C)}b&&b.forEach(function(S,_){s(S,_,{node:u,pos:P,level:x?x.level+1:-1})})}s(null)}function c(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=l.initWrapper,h=l.processEntity,s=l.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,w={},x={},b={posEntities:w,keyEntities:x};return d&&(b=d(b)||b),r(o,function(P){var R=P.node,C=P.index,S=P.pos,_=P.key,A=P.parentPos,j=P.level,I={node:R,index:C,key:_,pos:S,level:j},k=O(_,S);w[S]=I,x[k]=I,I.parent=w[A],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),h&&h(I,b)},u),s&&s(b),b}function n(o,l){var d=l.expandedKeys,h=l.selectedKeys,s=l.loadedKeys,u=l.loadingKeys,w=l.checkedKeys,x=l.halfCheckedKeys,b=l.dragOverNodeKey,P=l.dropPosition,R=l.keyEntities,C=R[o],S={eventKey:o,expanded:d.indexOf(o)!==-1,selected:h.indexOf(o)!==-1,loaded:s.indexOf(o)!==-1,loading:u.indexOf(o)!==-1,checked:w.indexOf(o)!==-1,halfChecked:x.indexOf(o)!==-1,pos:String(C?C.pos:""),dragOver:b===o&&P===0,dragOverGapTop:b===o&&P===-1,dragOverGapBottom:b===o&&P===1};return S}function a(o){var l=o.data,d=o.expanded,h=o.selected,s=o.checked,u=o.loaded,w=o.loading,x=o.halfChecked,b=o.dragOver,P=o.dragOverGapTop,R=o.dragOverGapBottom,C=o.pos,S=o.active,_=Object(E.a)(Object(E.a)({},l),{},{expanded:d,selected:h,checked:s,loaded:u,loading:w,halfChecked:x,dragOver:b,dragOverGapTop:P,dragOverGapBottom:R,pos:C,active:S});return"props"in _||Object.defineProperty(_,"props",{get:function(){return Object(m.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),o}}),_}},"8EBN":function(N,Y,i){(function(M){M(i("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 E=0;E<M.modeInfo.length;E++){var T=M.modeInfo[E];T.mimes&&(T.mime=T.mimes[0])}M.findModeByMIME=function(v){v=v.toLowerCase();for(var m=0;m<M.modeInfo.length;m++){var y=M.modeInfo[m];if(y.mime==v)return y;if(y.mimes){for(var O=0;O<y.mimes.length;O++)if(y.mimes[O]==v)return y}}if(/\+xml$/.test(v))return M.findModeByMIME("application/xml");if(/\+json$/.test(v))return M.findModeByMIME("application/json")},M.findModeByExtension=function(v){v=v.toLowerCase();for(var m=0;m<M.modeInfo.length;m++){var y=M.modeInfo[m];if(y.ext){for(var O=0;O<y.ext.length;O++)if(y.ext[O]==v)return y}}},M.findModeByFileName=function(v){for(var m=0;m<M.modeInfo.length;m++){var y=M.modeInfo[m];if(y.file&&y.file.test(v))return y}var O=v.lastIndexOf("."),g=O>-1&&v.substring(O+1,v.length);if(g)return M.findModeByExtension(g)},M.findModeByName=function(v){v=v.toLowerCase();for(var m=0;m<M.modeInfo.length;m++){var y=M.modeInfo[m];if(y.name.toLowerCase()==v)return y;if(y.alias){for(var O=0;O<y.alias.length;O++)if(y.alias[O].toLowerCase()==v)return y}}}})},"8HAY":function(N,Y,i){"use strict";i.d(Y,"a",function(){return m}),i.d(Y,"b",function(){return y}),i.d(Y,"d",function(){return O}),i.d(Y,"e",function(){return g}),i.d(Y,"c",function(){return e});var M=i("MI8n"),E=i("pmY6"),T=i("3/fG"),v=function(f,r,c,n){function a(o){return o instanceof c?o:new c(function(l){l(o)})}return new(c||(c=Promise))(function(o,l){function d(u){try{s(n.next(u))}catch(w){l(w)}}function h(u){try{s(n.throw(u))}catch(w){l(w)}}function s(u){u.done?o(u.value):a(u.value).then(d,h)}s((n=n.apply(f,r||[])).next())})};class m extends E.a{constructor(f,r="",c="",n=!0,a){super();this._onDidChange=this._register(new M.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=f,this._label=r,this._cssClass=c,this._enabled=n,this._actionCallback=a}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 v(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(f))})}}class y extends E.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 v(this,void 0,void 0,function*(){if(!f.enabled)return;this._onBeforeRun.fire({action:f});let c;try{yield this.runAction(f,r)}catch(n){c=n}this._onDidRun.fire({action:f,error:c})})}runAction(f,r){return v(this,void 0,void 0,function*(){yield f.run(r)})}}class O extends m{constructor(f){super(O.ID,f,f?"separator text":"separator");this.checked=!1,this.enabled=!1}}O.ID="vs.actions.separator";class g{constructor(f,r,c,n){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=f,this.label=r,this.class=n,this._actions=c}get actions(){return this._actions}dispose(){}run(){return v(this,void 0,void 0,function*(){})}}class e extends m{constructor(){super(e.ID,T.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8WcF":function(N,Y,i){N.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(N,Y,i){N.exports={button:"button___1wy9m"}},"8j3D":function(N,Y,i){"use strict";var M=i("2qtc"),E=i("kLXV"),T=i("5NDa"),v=i("5rEg"),m=i("miYZ"),y=i("tsqr"),O=i("k1fw"),g=i("9og8"),e=i("y8nQ"),f=i("Vl3Y"),r=i("tJVT"),c=i("WmNS"),n=i.n(c),a=i("q1tI"),o=i.n(a),l=i("Ty5D"),d=i("9kvl"),h=i("KVXO"),s=i.n(h),u=function(x){var b=x.shixunsDetail,P=x.globalSetting,R=x.loading,C=x.dispatch,S=x.title,_=x.pathList,A=_===void 0?[]:_,j=x.showInputPath,I=j===void 0?!1:j,k=x.isMergeSelectFile,J=k===void 0?!1:k,G=x.onFinish,D=G===void 0?function(){}:G,H=f.a.useForm(),W=Object(r.a)(H,1),L=W[0],z=Object(l.i)(),ie=Object(l.h)(),ce=Object(a.useRef)(),ue=Object(a.useState)(""),xe=Object(r.a)(ue,2),Te=xe[0],de=xe[1],ve=Object(a.useState)(""),_e=Object(r.a)(ve,2),le=_e[0],ee=_e[1],U=Object(a.useState)([]),K=Object(r.a)(U,2),X=K[0],Q=K[1],te=Object(a.useState)([]),ae=Object(r.a)(te,2),re=ae[0],$=ae[1];Object(a.useEffect)(function(){var Qe,ot;ce.current=((Qe=ie.pathname)===null||Qe===void 0||((ot=Qe.split("/"))===null||ot===void 0)?void 0:ot[3])==="repository"},[]),Object(a.useEffect)(function(){if(b.actionTabs.key!=="Repository-SelectFilePath")return;var Qe=A.join("/"),ot=[];A.map(function(st,ct){ct===0?ot.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(st),path:Qe}):ot.push({val:"/".concat(st),path:Qe})}),Q(ot),de(Qe),ee(Qe),Z(Qe)},[b.actionTabs.key]);var Z=function(){var Qe=Object(g.a)(n.a.mark(function ot(st){var ct;return n.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,C({type:ce.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:z.id,path:st}});case 2:ct=Xe.sent,ct&&$(ct.trees||[]);case 4:case"end":return Xe.stop()}},ot)}));return function(st){return Qe.apply(this,arguments)}}(),fe=function(ot){var st=Te;ot.type==="tree"&&(X.length?X.push({val:"/".concat(ot.name),path:ot.name}):X.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(ot.name),path:ot.name}),Q(X),st=Te?"".concat(Te,"/").concat(ot.name):ot.name,de(st)),Z(st)},me=function(ot,st){var ct=X.filter(function(Xe,ke){return ke<=st});Q(ct);var dt=ct.filter(function(Xe,ke){return ke!==0}).map(function(Xe){return Xe.val}).join("").substr(1);de(dt),Z(dt)},Oe=function(){var Qe=Object(g.a)(n.a.mark(function ot(){var st,ct,dt;return n.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(st=L==null?void 0:L.getFieldsValue(),ct=Te?"".concat(Te).concat(st!=null&&st.name?"/".concat(st==null?void 0:st.name):""):st==null?void 0:st.name,!J){ke.next=6;break}return D(ct),He(),ke.abrupt("return");case 6:if(!I){ke.next=16;break}return ke.next=9,L.validateFields();case 9:return ke.next=11,C({type:"shixunsDetail/uploadGitFolder",payload:Object(O.a)(Object(O.a)({},{id:z.id,path:ct}),ce.current?{}:{secret_repository:!0})});case 11:dt=ke.sent,D(le),dt.status===0&&y.b.info("\u65B0\u5EFA\u6210\u529F"),ke.next=18;break;case 16:D(ct),y.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:He();case 19:case"end":return ke.stop()}},ot)}));return function(){return Qe.apply(this,arguments)}}(),He=function(){C({type:"shixunsDetail/setActionTabs",payload:{}}),L.resetFields()};return o.a.createElement(E.a,{centered:!0,title:S||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:b.actionTabs.key==="Repository-SelectFilePath",onOk:Oe,onCancel:He},o.a.createElement("div",{className:s.a.wrap},o.a.createElement("div",{className:s.a.content},o.a.createElement("div",{className:s.a.mainPathWrap},!!(X!=null&&X.length)&&X.map(function(Qe,ot){return o.a.createElement("a",{key:ot,onClick:function(){return me(Qe,ot)}},Qe.val)})),!!(re!=null&&re.length)&&re.map(function(Qe,ot){return Qe.type==="tree"&&o.a.createElement("a",{key:ot,onClick:function(){return fe(Qe)}},o.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(s.a.colorBlue)}),Qe.name)})),o.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),o.a.createElement("div",{className:"mt5 mb5"},Te),I&&o.a.createElement(f.a,{form:L,scrollToFirstError:!0,className:"mt20"},o.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"}]},o.a.createElement(v.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};Y.a=Object(d.a)(function(w){var x=w.shixunsDetail,b=w.loading,P=w.globalSetting;return{shixunsDetail:x,globalSetting:P,loading:b.models.index}})(u)},"8mKB":function(N,Y,i){"use strict";var M=i("rePB"),E=i("1OyB"),T=i("vuIU"),v=i("Ji7U"),m=i("md7G"),y=i("foSv"),O=i("q1tI"),g=i.n(O),e=i("m+aA"),f=i("TSYQ"),r=i.n(f),c=i("4IlW");function n(S){var _=S.pageXOffset,A="scrollLeft";if(typeof _!="number"){var j=S.document;_=j.documentElement[A],typeof _!="number"&&(_=j.body[A])}return _}function a(S){var _,A,j=S.ownerDocument,I=j.body,k=j&&j.documentElement,J=S.getBoundingClientRect();return _=J.left,A=J.top,_-=k.clientLeft||I.clientLeft||0,A-=k.clientTop||I.clientTop||0,{left:_,top:A}}function o(S){var _=a(S),A=S.ownerDocument,j=A.defaultView||A.parentWindow;return _.left+=n(j),_.left}function l(S){var _=d();return function(){var j=Object(y.a)(S),I;if(_){var k=Object(y.a)(this).constructor;I=Reflect.construct(j,arguments,k)}else I=j.apply(this,arguments);return Object(m.a)(this,I)}}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(S){return!1}}var h=function(S){Object(v.a)(A,S);var _=l(A);function A(){var j;return Object(E.a)(this,A),j=_.apply(this,arguments),j.onHover=function(I){var k=j.props,J=k.onHover,G=k.index;J(I,G)},j.onClick=function(I){var k=j.props,J=k.onClick,G=k.index;J(I,G)},j.onKeyDown=function(I){var k=j.props,J=k.onClick,G=k.index;I.keyCode===13&&J(I,G)},j}return Object(T.a)(A,[{key:"getClassName",value:function(){var I=this.props,k=I.prefixCls,J=I.index,G=I.value,D=I.allowHalf,H=I.focused,W=J+1,L=k;return G===0&&J===0&&H?L+=" ".concat(k,"-focused"):D&&G+.5>=W&&G<W?(L+=" ".concat(k,"-half ").concat(k,"-active"),H&&(L+=" ".concat(k,"-focused"))):(L+=W<=G?" ".concat(k,"-full"):" ".concat(k,"-zero"),W===G&&H&&(L+=" ".concat(k,"-focused"))),L}},{key:"render",value:function(){var I=this.onHover,k=this.onClick,J=this.onKeyDown,G=this.props,D=G.disabled,H=G.prefixCls,W=G.character,L=G.characterRender,z=G.index,ie=G.count,ce=G.value,ue=typeof W=="function"?W(this.props):W,xe=g.a.createElement("li",{className:this.getClassName()},g.a.createElement("div",{onClick:D?null:k,onKeyDown:D?null:J,onMouseMove:D?null:I,role:"radio","aria-checked":ce>z?"true":"false","aria-posinset":z+1,"aria-setsize":ie,tabIndex:D?-1:0},g.a.createElement("div",{className:"".concat(H,"-first")},ue),g.a.createElement("div",{className:"".concat(H,"-second")},ue)));return L&&(xe=L(xe,this.props)),xe}}]),A}(g.a.Component);function s(S,_){var A=Object.keys(S);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(S);_&&(j=j.filter(function(I){return Object.getOwnPropertyDescriptor(S,I).enumerable})),A.push.apply(A,j)}return A}function u(S){for(var _=1;_<arguments.length;_++){var A=arguments[_]!=null?arguments[_]:{};_%2?s(Object(A),!0).forEach(function(j){Object(M.a)(S,j,A[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(A)):s(Object(A)).forEach(function(j){Object.defineProperty(S,j,Object.getOwnPropertyDescriptor(A,j))})}return S}function w(S){var _=x();return function(){var j=Object(y.a)(S),I;if(_){var k=Object(y.a)(this).constructor;I=Reflect.construct(j,arguments,k)}else I=j.apply(this,arguments);return Object(m.a)(this,I)}}function x(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}function b(){}var P=function(S){Object(v.a)(A,S);var _=w(A);function A(j){var I;Object(E.a)(this,A),I=_.call(this,j),I.onHover=function(J,G){var D=I.props.onHoverChange,H=I.getStarValue(G,J.pageX),W=I.state.cleanedValue;H!==W&&I.setState({hoverValue:H,cleanedValue:null}),D(H)},I.onMouseLeave=function(){var J=I.props.onHoverChange;I.setState({hoverValue:void 0,cleanedValue:null}),J(void 0)},I.onClick=function(J,G){var D=I.props.allowClear,H=I.state.value,W=I.getStarValue(G,J.pageX),L=!1;D&&(L=W===H),I.onMouseLeave(),I.changeValue(L?0:W),I.setState({cleanedValue:L?W:null})},I.onFocus=function(){var J=I.props.onFocus;I.setState({focused:!0}),J&&J()},I.onBlur=function(){var J=I.props.onBlur;I.setState({focused:!1}),J&&J()},I.onKeyDown=function(J){var G=J.keyCode,D=I.props,H=D.count,W=D.allowHalf,L=D.onKeyDown,z=D.direction,ie=z==="rtl",ce=I.state.value;G===c.a.RIGHT&&ce<H&&!ie?(W?ce+=.5:ce+=1,I.changeValue(ce),J.preventDefault()):G===c.a.LEFT&&ce>0&&!ie||G===c.a.RIGHT&&ce>0&&ie?(W?ce-=.5:ce-=1,I.changeValue(ce),J.preventDefault()):G===c.a.LEFT&&ce<H&&ie&&(W?ce+=.5:ce+=1,I.changeValue(ce),J.preventDefault()),L&&L(J)},I.saveRef=function(J){return function(G){I.stars[J]=G}},I.saveRate=function(J){I.rate=J};var k=j.value;return k===void 0&&(k=j.defaultValue),I.stars={},I.state={value:k,focused:!1,cleanedValue:null},I}return Object(T.a)(A,[{key:"componentDidMount",value:function(){var I=this.props,k=I.autoFocus,J=I.disabled;k&&!J&&this.focus()}},{key:"getStarDOM",value:function(I){return Object(e.a)(this.stars[I])}},{key:"getStarValue",value:function(I,k){var J=this.props,G=J.allowHalf,D=J.direction,H=D==="rtl",W=I+1;if(G){var L=this.getStarDOM(I),z=o(L),ie=L.clientWidth;(H&&k-z>ie/2||!H&&k-z<ie/2)&&(W-=.5)}return W}},{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 k=this.props.onChange;"value"in this.props||this.setState({value:I}),k(I)}},{key:"render",value:function(){for(var I=this.props,k=I.count,J=I.allowHalf,G=I.style,D=I.prefixCls,H=I.disabled,W=I.className,L=I.character,z=I.characterRender,ie=I.tabIndex,ce=I.direction,ue=this.state,xe=ue.value,Te=ue.hoverValue,de=ue.focused,ve=[],_e=H?"".concat(D,"-disabled"):"",le=0;le<k;le+=1)ve.push(g.a.createElement(h,{ref:this.saveRef(le),index:le,count:k,disabled:H,prefixCls:"".concat(D,"-star"),allowHalf:J,value:Te===void 0?xe:Te,onClick:this.onClick,onHover:this.onHover,key:le,character:L,characterRender:z,focused:de}));var ee=r()(D,_e,W,Object(M.a)({},"".concat(D,"-rtl"),ce==="rtl"));return g.a.createElement("ul",{className:ee,style:G,onMouseLeave:H?null:this.onMouseLeave,tabIndex:H?-1:ie,onFocus:H?null:this.onFocus,onBlur:H?null:this.onBlur,onKeyDown:H?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ve)}}],[{key:"getDerivedStateFromProps",value:function(I,k){return"value"in I&&I.value!==void 0?u(u({},k),{},{value:I.value}):k}}]),A}(g.a.Component);P.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:b,character:"\u2605",onHoverChange:b,tabIndex:0,direction:"ltr"};var R=P,C=Y.a=R},"9Bee":function(N,Y,i){"use strict";var M=i("DYRE"),E=i("zeV3"),T=i("+L6B"),v=i("2/Rp"),m=i("k1fw"),y=i("9og8"),O=i("tJVT"),g=i("WmNS"),e=i.n(g),f=i("q1tI"),r=i.n(f),c=i("vg9a"),n=i("DlQD"),a=i.n(n),o=i("rUJ1");function l(Ce,he){var be=Ce.match(/^(\s+)(?:```)/);if(be===null)return he;var Ee=be[1];return he.split(`
`).map(function(Ne){var we=Ne.match(/^\s+/);if(we===null)return Ne;var Ae=Object(O.a)(we,1),Ue=Ae[0];return Ue.length>=Ee.length?Ne.slice(Ee.length):Ne}).join(`
`)}var d=[],h=["<ul>"],s=new a.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){d.length=0,h=["<ul>"]}var x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function b(Ce,he,be,Ee){if(he>=Ce.length||Ce[he].level<=be)return he;var Ne=Ce[he];Ee.push("<li><a href='#"+Ne.anchor+"'>"+Ne.text+"</a>"),he++;var we=[];return he=b(Ce,he,Ne.level,we),we.length>0&&(Ee.push("<ul>"),we.forEach(function(Ae){Ee.push(Ae)}),Ee.push("</ul>")),Ee.push("</li>"),he=b(Ce,he,be,Ee),he}function P(){return b(d,0,0,h),h.push("</ul>"),h.join("")}var R={heading:function(he){var be=u.exec(he);if(be)return{type:"heading",raw:be[0],depth:be[1].length,text:be[2]}},fences:function(he){var be=this.rules.block.fences.exec(he);if(be){var Ee=be[0],Ne=l(Ee,be[3]||""),we=be[2]?be[2].trim():be[2];if(["latex","katex","math"].indexOf(we)>=0){var Ae=_(),Ue=Ne;Ne=Ae,A[Ae]={type:"block",expression:Ue}}return{type:"code",raw:Ee,lang:we,text:Ne}}}},C=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,_=function(){return"__special_katext_id_".concat(S++,"__")},A={};function j(){return A}function I(){S=0,A={}}function k(Ce){return Ce=Ce.replace(C,function(he,be){var Ee=_();return A[Ee]={type:"inline",expression:be},Ee}),Ce}var J=s.listitem;s.listitem=function(Ce){return J(k(Ce))};var G=s.paragraph;s.paragraph=function(Ce){return G(k(Ce))};var D=s.tablecell;s.tablecell=function(Ce,he){return D(k(Ce),he)},s.code=function(Ce,he,be){var Ee=(he||"").match(/\S*/)[0];return Ee?["latex","katex","math"].indexOf(Ee)>=0?"<p class='editormd-tex'>".concat(Ce,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(he,'">').concat(be?Ce:Object(o.escape)(Ce,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(be?Ce:Object(o.escape)(Ce,!0))+"</code></pre>"},s.heading=function(Ce,he,be){var Ee=this.options.headerPrefix+be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:Ee,level:he,text:Ce}),"<h"+he+' id="'+Ee+'">'+Ce+"</h"+he+">"},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:R,renderer:s});var H=a.a,W=i("SJMd"),L=i("ulZh"),z=i.n(L),ie=i("m3rI"),ce=i("Oy/b"),ue=i("p5ED"),xe=i("ErOA"),Te=i("STEk");/* **********************************
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 de=function(Ce,he){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,Ee){be.__proto__=Ee}||function(be,Ee){for(var Ne in Ee)Object.prototype.hasOwnProperty.call(Ee,Ne)&&(be[Ne]=Ee[Ne])})(Ce,he)};function ve(Ce,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");function be(){this.constructor=Ce}de(Ce,he),Ce.prototype=he===null?Object.create(he):(be.prototype=he.prototype,new be)}function _e(Ce,he,be,Ee){return new(be||(be=Promise))(function(Ne,we){function Ae(Je){try{We(Ee.next(Je))}catch($e){we($e)}}function Ue(Je){try{We(Ee.throw(Je))}catch($e){we($e)}}function We(Je){var $e;Je.done?Ne(Je.value):($e=Je.value,$e instanceof be?$e:new be(function(pt){pt($e)})).then(Ae,Ue)}We((Ee=Ee.apply(Ce,he||[])).next())})}function le(Ce,he){var be,Ee,Ne,we,Ae={label:0,sent:function(){if(1&Ne[0])throw Ne[1];return Ne[1]},trys:[],ops:[]};return we={next:Ue(0),throw:Ue(1),return:Ue(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function Ue(We){return function(Je){return function($e){if(be)throw new TypeError("Generator is already executing.");for(;Ae;)try{if(be=1,Ee&&(Ne=2&$e[0]?Ee.return:$e[0]?Ee.throw||((Ne=Ee.return)&&Ne.call(Ee),0):Ee.next)&&!(Ne=Ne.call(Ee,$e[1])).done)return Ne;switch(Ee=0,Ne&&($e=[2&$e[0],Ne.value]),$e[0]){case 0:case 1:Ne=$e;break;case 4:return Ae.label++,{value:$e[1],done:!1};case 5:Ae.label++,Ee=$e[1],$e=[0];continue;case 7:$e=Ae.ops.pop(),Ae.trys.pop();continue;default:if(!(Ne=Ae.trys,(Ne=Ne.length>0&&Ne[Ne.length-1])||$e[0]!==6&&$e[0]!==2)){Ae=0;continue}if($e[0]===3&&(!Ne||$e[1]>Ne[0]&&$e[1]<Ne[3])){Ae.label=$e[1];break}if($e[0]===6&&Ae.label<Ne[1]){Ae.label=Ne[1],Ne=$e;break}if(Ne&&Ae.label<Ne[2]){Ae.label=Ne[2],Ae.ops.push($e);break}Ne[2]&&Ae.ops.pop(),Ae.trys.pop();continue}$e=he.call(Ce,Ae)}catch(pt){$e=[6,pt],Ee=0}finally{be=Ne=0}if(5&$e[0])throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}([We,Je])}}}var ee=function(){function Ce(){}return Ce.addKey=function(he){Ce.key=he},Object.defineProperty(Ce,"isLicensed",{get:function(){return!!Ce.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ce.key)},enumerable:!1,configurable:!0}),Ce}(),U=function(){function Ce(){}return Ce.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ce.setAttributes=function(he,be){for(var Ee=0,Ne=be;Ee<Ne.length;Ee++){var we=Ne[Ee],Ae=we[0],Ue=we[1];he.setAttribute(Ae,Ue)}},Ce.createRect=function(he,be,Ee){var Ne=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ne.setAttribute("width",he.toString()),Ne.setAttribute("height",be.toString()),Ee&&Ce.setAttributes(Ne,Ee),Ne},Ce.createLine=function(he,be,Ee,Ne,we){var Ae=document.createElementNS("http://www.w3.org/2000/svg","line");return Ae.setAttribute("x1",he.toString()),Ae.setAttribute("y1",be.toString()),Ae.setAttribute("x2",Ee.toString()),Ae.setAttribute("y2",Ne.toString()),we&&Ce.setAttributes(Ae,we),Ae},Ce.createPolygon=function(he,be){var Ee=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ee.setAttribute("points",he),be&&Ce.setAttributes(Ee,be),Ee},Ce.createCircle=function(he,be){var Ee=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ee.setAttribute("cx",(he/2).toString()),Ee.setAttribute("cy",(he/2).toString()),Ee.setAttribute("r",he.toString()),be&&Ce.setAttributes(Ee,be),Ee},Ce.createEllipse=function(he,be,Ee){var Ne=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ne.setAttribute("cx",(he/2).toString()),Ne.setAttribute("cy",(be/2).toString()),Ne.setAttribute("rx",(he/2).toString()),Ne.setAttribute("ry",(be/2).toString()),Ee&&Ce.setAttributes(Ne,Ee),Ne},Ce.createGroup=function(he){var be=document.createElementNS("http://www.w3.org/2000/svg","g");return he&&Ce.setAttributes(be,he),be},Ce.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ce.createMarker=function(he,be,Ee,Ne,we,Ae,Ue){var We=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ce.setAttributes(We,[["id",he],["orient",be],["markerWidth",Ee.toString()],["markerHeight",Ne.toString()],["refX",we.toString()],["refY",Ae.toString()]]),We.appendChild(Ue),We},Ce.createText=function(he){var be=document.createElementNS("http://www.w3.org/2000/svg","text");return be.setAttribute("x","0"),be.setAttribute("y","0"),he&&Ce.setAttributes(be,he),be},Ce.createTSpan=function(he,be){var Ee=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ee.textContent=he,be&&Ce.setAttributes(Ee,be),Ee},Ce.createImage=function(he){var be=document.createElementNS("http://www.w3.org/2000/svg","image");return he&&Ce.setAttributes(be,he),be},Ce.createPoint=function(he,be){var Ee=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ee.x=he,Ee.y=be,Ee},Ce.createPath=function(he,be){var Ee=document.createElementNS("http://www.w3.org/2000/svg","path");return Ee.setAttribute("d",he),be&&Ce.setAttributes(Ee,be),Ee},Ce.createElement=function(he,be){var Ee=document.createElementNS("http://www.w3.org/2000/svg",he);return be&&Ce.setAttributes(Ee,be),Ee},Ce.getHollowRectanglePath=function(he,be,Ee,Ne,we,Ae,Ue,We){return"M"+he+","+be+"V"+(be+Ne)+"H"+(he+Ee)+"V"+be+"H"+we+"V"+Ae+"H"+(we+Ue)+"V"+(Ae+We)+"H"+we+"V"+be+"Z"},Ce}(),K=function(){function Ce(he){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+he+"_"}return Object.defineProperty(Ce.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.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(Ce.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),Ce.prototype.addClass=function(he){return this.styleSheet===void 0&&this.addStyleSheet(),he.name=""+this.classNamePrefix+he.localName,this.classes.push(he),this.styleSheet.sheet.insertRule("."+he.name+" {"+he.style+"}",this.styleSheet.sheet.cssRules.length),he},Ce.prototype.addRule=function(he){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(he),this.styleSheet.sheet.insertRule(he.selector+" {"+he.style+"}",this.styleSheet.sheet.cssRules.length)},Ce.prototype.addStyleSheet=function(){var he;this.styleSheet=document.createElement("style"),((he=this.styleSheetRoot)!==null&&he!==void 0?he:document.head).appendChild(this.styleSheet),this.addRule(new X("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new X("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new X("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Q("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Q("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ce.prototype.removeStyleSheet=function(){var he;this.styleSheet&&(((he=this.styleSheetRoot)!==null&&he!==void 0?he:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ce}(),X=function(Ce,he){this.selector=Ce,this.style=he},Q=function(Ce,he){this.localName=Ce,this.style=he},te=function(){function Ce(){this.blocks=[],this.display=""}return Ce.prototype.addButtonBlock=function(he){he.className=this.blockClassName,he.buttonClassName=this.buttonClassName,he.buttonColorsClassName=this.buttonColorsClassName,he.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(he)},Ce.prototype.addElementBlock=function(he){he.className===void 0&&(he.className=this.blockClassName),this.blocks.push(he)},Ce.prototype.getUI=function(){var he=document.createElement("div");return he.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,he.style.display=this.display,this.blocks.forEach(function(be){return he.appendChild(be.getUI())}),he},Ce}(),ae=function(){function Ce(){}return Ce.prototype.getUI=function(){var he=document.createElement("div");if(he.className=this.className,this.minWidth!==void 0&&(he.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":he.style.justifyContent="flex-start";break;case"center":he.style.justifyContent="center";break;case"end":he.style.justifyContent="flex-end"}return he.style.whiteSpace="nowrap",he},Ce}(),re=function(Ce){function he(){var be=Ce!==null&&Ce.apply(this,arguments)||this;return be.buttons=[],be}return ve(he,Ce),he.prototype.addButton=function(be){be.className=this.buttonClassName,be.colorsClassName=this.buttonColorsClassName,be.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(be)},he.prototype.getUI=function(){var be=Ce.prototype.getUI.call(this);return this.buttons.forEach(function(Ee){return be.appendChild(Ee.getUI())}),be},he}(ae),$=function(){function Ce(he,be){this._isActive=!1,this._isHidden=!1,this._icon=he,this.title=be,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Ce.prototype,"icon",{get:function(){return this._icon},set:function(he){this._icon=he,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isActive",{get:function(){return this._isActive},set:function(he){this._isActive=he,this.adjustClassName()},enumerable:!1,configurable:!0}),Ce.prototype.getUI=function(){var he=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 he.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},Ce.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,"")))},Ce.prototype.hide=function(){this._isHidden=!0},Ce}(),Z=function(Ce){function he(){var be=Ce!==null&&Ce.apply(this,arguments)||this;return be.elements=[],be}return ve(he,Ce),he.prototype.addElement=function(be){this.elements.push(be)},he.prototype.getUI=function(){var be=Ce.prototype.getUI.call(this);return this.elements.forEach(function(Ee){return be.appendChild(Ee)}),be},he}(ae),fe=function(){function Ce(he,be){this.horizontal=he,this.vertical=be}return Object.defineProperty(Ce.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Ce.prototype.getVerticalLength=function(he){return he/this.ratio},Ce.prototype.getHorizontalLength=function(he){return he*this.ratio},Ce}(),me=function(){function Ce(){}return Ce.getIcon=function(he,be){if(he>0&&be>0){var Ee=new fe(he,be),Ne=Ee.ratio>=1?20:Ee.getHorizontalLength(20),we=Ee.ratio<1?20:Ee.getVerticalLength(20),Ae=document.createElementNS("http://www.w3.org/2000/svg","svg");Ae.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ae.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Ae);var Ue=U.createDefs();Ae.appendChild(Ue);var We=U.createElement("clipPath",[["id","text-bg-clip"]]);Ue.appendChild(We);var Je=U.createPath(U.getHollowRectanglePath((24-Ne)/2,(24-we)/2,Ne,we,(24-Ne)/2+2,(24-we)/2+2,Ne-4,we-4));Ae.appendChild(Je);var $e=U.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);$e.appendChild(U.createTSpan(he+":"+be)),Ae.appendChild($e);var pt=$e.getBBox();U.setAttributes($e,[["x",((24-pt.width)/2).toString()],["y",((24-pt.height)/2-pt.y).toString()]]);var Jt=U.createPath(U.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(pt.width))/2,(24-Math.ceil(pt.height))/2,Math.ceil(pt.width),Math.ceil(pt.height)));return We.appendChild(Jt),U.setAttributes(Je,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Ae),Ae.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>'},Ce}(),Oe=function(Ce){function he(be,Ee,Ne){var we=Ce.call(this,be,Ee)||this;return we.isDropdownOpen=!1,we.onClick=we.dropdownButtonClicked,we.dropdownButtons=Ne,we}return ve(he,Ce),he.prototype.setupDropdown=function(){var be=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(Ee){Ee.className=be.className,Ee.colorsClassName=be.colorsClassName,be.dropdownBlock.appendChild(Ee.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},he.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},he.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},he.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},he.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},he.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},he}($),He=function(){function Ce(he,be){this.GRIP_SIZE=10,this.color=he,this.fillColor=be,this.visual=U.createGroup(),this.visual.appendChild(U.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(U.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ce.prototype.ownsTarget=function(he){return he===this.visual||he===this.visual.childNodes[0]||he===this.visual.childNodes[1]},Ce.prototype.setCenter=function(he,be){this.visual.childNodes.forEach(function(Ee){return U.setAttributes(Ee,[["cx",he.toString()],["cy",be.toString()]])})},Ce}(),Qe=function(){function Ce(he,be,Ee,Ne){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=he,this.canvasHeight=be,this.margin=Ee,this.container=Ne,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(Ce.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(he){this._aspectRatio=he,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(he){this._isGridVisible=he,this.gridContainer&&U.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(he){this._zoomFactor=he,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Ce.prototype.open=function(){var he=this;this.cropShadeElement=U.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=U.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var be=0;be<this.numberOfGridLines;be++)this.horizontalGridLines.push(U.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(U.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(Ee){return he.gridContainer.appendChild(Ee)}),this.verticalGridLines.forEach(function(Ee){return he.gridContainer.appendChild(Ee)}),this.cropRectElement=U.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new He(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new He(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new He(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new He(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},Ce.prototype.setCropRectangle=function(he){this.cropRect=he;var be=Object.assign({},this.cropRect);this.zoomFactor!==1&&(be.width=this.cropRect.width*this.zoomFactor,be.height=this.cropRect.height*this.zoomFactor,be.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-be.width/2,be.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-be.height/2),U.setAttributes(this.cropRectElement,[["x",be.x.toString()],["y",be.y.toString()],["width",be.width.toString()],["height",be.height.toString()]]);var Ee=be.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(we,Ae){var Ue=be.y+Ee*(Ae+1);U.setAttributes(we,[["x1",""+be.x],["y1",""+Ue],["x2",""+(be.x+be.width)],["y2",""+Ue]])});var Ne=be.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(we,Ae){var Ue=be.x+Ne*(Ae+1);U.setAttributes(we,[["x1",""+Ue],["y1",""+be.y],["x2",""+Ue],["y2",""+(be.y+be.height)]])}),U.setAttributes(this.cropShadeElement,[["d",U.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,be.x,be.y,be.width,be.height)]]),this.topLeftGrip.setCenter(be.x,be.y),this.topRightGrip.setCenter(be.x+be.width,be.y),this.bottomLeftGrip.setCenter(be.x,be.y+be.height),this.bottomRightGrip.setCenter(be.x+be.width,be.y+be.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Ce.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)},Ce.prototype.clientToLocalCoordinates=function(he,be){var Ee=this.container.getBoundingClientRect();return{x:he-Ee.left+this.margin,y:be-Ee.top+this.margin}},Ce.prototype.onPointerDown=function(he){this.container.setPointerCapture(he.pointerId),this.previousPoint=this.clientToLocalCoordinates(he.clientX,he.clientY),this.cropRectElement===he.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(he.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(he.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(he.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(he.target)&&(this.activeGrip=this.bottomRightGrip)},Ce.prototype.onPointerMove=function(he){if(this.isMoving)this.move(this.clientToLocalCoordinates(he.clientX,he.clientY));else if(this.activeGrip){var be=this.clientToLocalCoordinates(he.clientX,he.clientY);this.resize(be)}he.preventDefault()},Ce.prototype.onPointerUp=function(he){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(he.pointerId)},Ce.prototype.move=function(he){var be=he.x-this.previousPoint.x,Ee=he.y-this.previousPoint.y;this.zoomFactor!==1&&(be=-be/this.zoomFactor,Ee=-Ee/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+be),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+Ee),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=he},Ce.prototype.resize=function(he){var be=Object.assign({},this.cropRect),Ee=he.x-this.previousPoint.x,Ne=he.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:be.x+Ee<this.margin&&(Ee=this.margin-be.x),be.x+=Ee,be.width=this.cropRect.x+this.cropRect.width-be.x;break;case this.bottomRightGrip:case this.topRightGrip:be.width+Ee>this.canvasWidth*this.zoomFactor&&(Ee=this.canvasWidth*this.zoomFactor-be.width),be.width+=Ee}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(be.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(Ee),be.height=this.aspectRatio.getVerticalLength(be.width)):(be.y+=Ne,be.height=this.cropRect.y+this.cropRect.height-be.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?be.height=this.aspectRatio.getVerticalLength(be.width):be.height+=Ne}be.width<10&&(be.x=this.cropRect.x,be.width=10),be.height<10&&(be.y=this.cropRect.y,be.height=10),this.previousPoint=he,be.x>=this.margin&&be.y>=this.margin&&be.x-this.margin+be.width<=this.canvasWidth&&be.y-this.margin+be.height<=this.canvasHeight&&(this.cropRect=be,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Ce.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var he=this.cropRect.x+this.cropRect.width/2,be=this.cropRect.y+this.cropRect.height/2,Ee=this.aspectRatio.getHorizontalLength(this.cropRect.height),Ne=this.aspectRatio.getVerticalLength(this.cropRect.width);Ee/this.canvasWidth<Ne/this.canvasHeight?this.cropRect.width=Ee:this.cropRect.height=Ne,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=he-this.cropRect.width/2,this.cropRect.y=be-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)}},Ce.prototype.getRescaledRect=function(he,be,Ee,Ne,we,Ae){var Ue=Ee/he,We=Ne/be;return{x:(we.x-Ae)*Ue+Ae,y:(we.y-Ae)*We+Ae,width:we.width*Ue,height:we.height*We}},Ce.prototype.scaleCanvas=function(he,be){var Ee=this.getRescaledRect(this.canvasWidth,this.canvasHeight,he,be,this.cropRect,this.margin);this.canvasWidth=he,this.canvasHeight=be,this.onCropChange&&this.onCropChange(Ee),this.setCropRectangle(Ee)},Ce}(),ot=function(){function Ce(he){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=he,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(Ce.prototype,"angle",{get:function(){return this._angle},set:function(he){this._angle=he,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Ce.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},Ce.prototype.onPointerDown=function(he){this.controlContainer.setPointerCapture(he.pointerId),this.isDragging=!0,this.previousPoint={x:he.clientX,y:he.clientY}},Ce.prototype.onPointerMove=function(he){this.isDragging&&(this.onAngleChange&&this.onAngleChange((he.clientX-this.previousPoint.x)/5),this.previousPoint.x=he.clientX)},Ce.prototype.onPointerUp=function(he){this.isDragging&&this.onAngleChange&&this.onAngleChange((he.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(he.pointerId)},Ce.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var he=this.angleLabelText.getBBox();U.setAttributes(this.angleLabelElement,[["x",((this.width-he.width)/2).toString()],["y",(this.height/2).toString()]])}},Ce.prototype.positionScaleShape=function(){if(this.scaleShape){var he=this.scaleShape.transform.baseVal.getItem(0);he.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(he,0)}},Ce.prototype.getVisual=function(){var he=document.createElementNS("http://www.w3.org/2000/svg","svg");he.setAttribute("xmlns","http://www.w3.org/2000/svg"),he.setAttribute("width",this.width+"px"),he.setAttribute("height",this.height+"px"),he.setAttribute("viewBox","0 0 "+this.width+" "+this.height),he.style.flexShrink="0",document.body.appendChild(he);for(var be="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,Ee=1;Ee<=this.width/5+10;Ee++){var Ne=Ee%5==0?this.height/3:this.height/6;be+="h4v"+-Ne+"h1v"+Ne}be+="v1H0Z",this.scaleShape=U.createPath(be);var we=U.createTransform();this.scaleShape.transform.baseVal.appendItem(we),he.appendChild(this.scaleShape),this.angleLabelElement=U.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=U.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Ae=U.createTSpan("");return Ae.innerHTML="&deg;",this.angleLabelElement.appendChild(Ae),he.appendChild(this.angleLabelElement),document.body.removeChild(he),he},Ce}(),st=function(){function Ce(){this.naturalSize=!1,this.imageType="image/png"}return Ce.prototype.rasterize=function(he,be,Ee,Ne,we,Ae,Ue){var We=this;return new Promise(function(Je){var $e=document.createElement("canvas");$e.width=he.width.baseVal.value-2*Ne,$e.height=he.height.baseVal.value-2*Ne;var pt=1,Jt=1;We.naturalSize===!0?(pt=be.naturalWidth/(he.width.baseVal.value-2*Ne)/Ae,Jt=be.naturalHeight/(he.height.baseVal.value-2*Ne)/Ue,$e.width=be.naturalWidth/Ae,$e.height=be.naturalHeight/Ue):We.width!==void 0&&We.height!==void 0&&(pt=We.width/Ee.width,Jt=We.height/Ee.height,$e.width*=pt,$e.height*=Jt);var fn=$e.getContext("2d");fn.translate($e.width/2,$e.height/2),fn.rotate(we*Math.PI/180),fn.scale(Ae,Ue),fn.translate(-$e.width/2,-$e.height/2),fn.drawImage(be,0,0,$e.width,$e.height);var qt=document.createElement("canvas");qt.width=Ee.width*pt,qt.height=Ee.height*Jt,qt.getContext("2d").putImageData(fn.getImageData((Ee.x-Ne)*pt,(Ee.y-Ne)*Jt,Ee.width*pt,Ee.height*Jt),0,0),Je(qt.toDataURL(We.imageType,We.imageQuality))})},Ce}(),ct=function(){function Ce(he){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=Ce.instanceCounter++,this.styles=new K(this.instanceNo),this.target=he,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(Ce.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(he){this._zoomToCropEnabled=he,he?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(he){this._isGridVisible=he,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"gridLines",{get:function(){return this._gridLines},set:function(he){this._gridLines=he,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(he){this._rotationAngle=he,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"aspectRatio",{get:function(){var he;return(he=this._aspectRatio)!==null&&he!==void 0?he:this.aspectRatios[0]},set:function(he){this._aspectRatio=he},enumerable:!1,configurable:!0}),Ce.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},Ce.prototype.show=function(){this.showUI(),this.open()},Ce.prototype.close=function(he){he===void 0&&(he=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),he||this.closeEventListeners.forEach(function(be){return be()}),this._isOpen=!1)},Ce.prototype.addRenderEventListener=function(he){this.renderEventListeners.push(he)},Ce.prototype.removeRenderEventListener=function(he){this.renderEventListeners.indexOf(he)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(he),1)},Ce.prototype.addCloseEventListener=function(he){this.closeEventListeners.push(he)},Ce.prototype.removeCloseEventListener=function(he){this.closeEventListeners.indexOf(he)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(he),1)},Ce.prototype.setupResizeObserver=function(){var he=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){he.resize(he.target.clientWidth,he.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))},Ce.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var he=1*this.target.clientWidth/this.target.clientHeight,be=this.contentDiv.clientWidth/he>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*he:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,Ee=be+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/he;this.resize(be,Ee)}},Ce.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ce.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",U.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},Ce.prototype.resize=function(he,be){this.imageWidth=Math.round(he),this.imageHeight=Math.round(be),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()},Ce.prototype.setEditingTarget=function(){var he=document.createElement("canvas");he.width=this.target.naturalWidth,he.height=this.target.naturalHeight,he.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var be=he.toDataURL();U.setAttributes(this.editingTarget,[["href",be]]),this.setEditingTargetSize()},Ce.prototype.setTopLeft=function(){var he=this.target.getBoundingClientRect(),be=this.editorCanvas.getBoundingClientRect();this.left=he.left-be.left-this.CANVAS_MARGIN,this.top=he.top-be.top-this.CANVAS_MARGIN},Ce.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=U.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=U.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=U.createGroup(),this.editingTargetRotationScaleContainer=U.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var he=U.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(he);var be=U.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(be),this.editingTargetContainer=U.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)},Ce.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},Ce.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=U.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Qe(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()},Ce.prototype.zoomToCrop=function(){if(this.cropRect){var he=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,be=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=he+"px "+be+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-he+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-be+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},Ce.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)},Ce.prototype.cropRectChanged=function(he){this.cropRect=he,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},Ce.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},Ce.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"},Ce.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ce.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 he=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,be=this.target.offsetTop>he+this.CANVAS_MARGIN?this.target.offsetTop-(he+this.CANVAS_MARGIN):0;this.coverDiv.style.top=be+"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},Ce.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Ce.prototype.addTopToolbar=function(){var he=this;this.topToolbar=new te,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 be=new re;be.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(be);var Ee=[];this.aspectRatios.forEach(function(Jt){var fn=new $(me.getIcon(Jt.horizontal,Jt.vertical),Jt.horizontal===0&&Jt.vertical===0?"FREE":Jt.horizontal+":"+Jt.vertical);fn.onClick=function(){return he.ratioButtonClicked(Jt)},Ee.push(fn)}),this.aspectRatioButton=new Oe(me.getIcon(0,0),"Aspect ratio",Ee),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,be.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Ne=new $('<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");Ne.isActive=this.isGridVisible,Ne.onClick=function(){he.isGridVisible=!he.isGridVisible,Ne.isActive=he.isGridVisible},be.addButton(Ne);var we=new $('<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(we.isActive=this.zoomToCropEnabled,we.onClick=function(){he.zoomToCropEnabled=!he.zoomToCropEnabled,we.isActive=he.zoomToCropEnabled},be.addButton(we),!ee.isLicensed){var Ae=new Z;this.topToolbar.addElementBlock(Ae);var Ue=document.createElement("div");Ue.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var We=document.createElement("a");We.style.color="currentColor",We.href="https://markerjs.com/products/cropro",We.target="_blank",We.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>',Ue.appendChild(We),Ae.addElement(Ue)}var Je=new re;Je.minWidth=3*this.toolbarHeight+"px",Je.contentAlign="end",this.topToolbar.addButtonBlock(Je);var $e=new $('<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");$e.onClick=this.startRenderAndClose,Je.addButton($e),this.styles.settings.toolbarOkButtonStyleColorsClassName&&($e.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var pt=new $('<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");pt.onClick=this.close,Je.addButton(pt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(pt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Ce.prototype.addBottomToolbar=function(){var he=this;this.bottomToolbar=new te,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 be=new re;be.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(be);var Ee=new $('<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");Ee.onClick=this.rotateLeftButtonClicked,be.addButton(Ee);var Ne=new $('<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");Ne.onClick=this.rotateRightButtonClicked,be.addButton(Ne);var we=new Z;we.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(we),this.straightener=new ot("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(Je){he.rotateBy(Je),he.straightener.angle=he.rotationAngle},we.addElement(this.straightener.getUI());var Ae=new re;Ae.minWidth=2*this.toolbarHeight+"px",Ae.contentAlign="end",this.bottomToolbar.addButtonBlock(Ae);var Ue=new $('<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");Ue.onClick=this.flipHorizontallyButtonClicked,Ae.addButton(Ue);var We=new $('<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");We.onClick=this.flipVerticallyButtonClicked,Ae.addButton(We)},Ce.prototype.ratioButtonClicked=function(he){this.aspectRatio=he,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Ce.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=me.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Ce.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new fe(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Ce.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ce.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Ce.prototype.restoreState=function(he){if(he){var be=this.cropLayer.getRescaledRect(he.width,he.height,this.imageWidth,this.imageHeight,he.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(be),this.cropRectChanged(be),this.flippedHorizontally=he.flippedHorizontally,this.flippedVertically=he.flippedVertically,this.applyFlip(),this.rotationAngle=he.rotationAngle,this.applyRotation()}},Ce.prototype.clientToLocalCoordinates=function(he,be){var Ee=this.cropImage.getBoundingClientRect();return{x:he-Ee.left,y:be-Ee.top}},Ce.prototype.onWindowResize=function(){this.positionUI()},Ce.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var he=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=he+"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()},Ce.prototype.rotateLeftButtonClicked=function(){var he=this.rotationAngle-90;this.rotationAngle%90!=0&&(he+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(he)},Ce.prototype.rotateRightButtonClicked=function(){var he=this.rotationAngle+90;this.rotationAngle%90!=0&&(he-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(he)},Ce.prototype.rotateTo=function(he){he=(he=he>180?he-360:he)<=-180?he+360:he,this.rotationAngle=he,this.applyRotation()},Ce.prototype.rotateBy=function(he){this.rotateTo((this.rotationAngle+he)%360)},Ce.prototype.applyRotation=function(){var he=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var be=this.editingTargetRotationContainer.transform.baseVal.getItem(0);be.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(be,0);var Ee=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/Ee.width,this.imageHeight/Ee.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=he},Ce.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Ce.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Ce.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Ce.prototype.startRenderAndClose=function(){return _e(this,void 0,void 0,function(){var he,be;return le(this,function(Ee){switch(Ee.label){case 0:return[4,this.render()];case 1:return he=Ee.sent(),be=this.getState(),this.renderEventListeners.forEach(function(Ne){return Ne(he,be)}),this.close(!0),[2]}})})},Ce.prototype.render=function(){return _e(this,void 0,void 0,function(){var he;return le(this,function(be){switch(be.label){case 0:return(he=new st).naturalSize=this.renderAtNaturalSize,he.imageType=this.renderImageType,he.imageQuality=this.renderImageQuality,he.width=this.renderWidth,he.height=this.renderHeight,this.unzoomFromCrop(),U.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,he.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 be.sent(),[4,he.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,be.sent()]}})})},Ce.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Q("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 Q("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Q("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var he=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Q("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*he)+`px;
height: `+(this.toolbarHeight-2*he)+`px;
padding: `+he+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Q("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Q("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new X("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new X("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new Q("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 Q("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Q("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 Q("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*he)+`px;
padding: `+he+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Q("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},Ce.instanceCounter=0,Ce}(),dt=i("8hTe"),Xe=i.n(dt),ke=/<pre[^>]*>/g;function lt(Ce){var he=document.createElement("div");return he.innerHTML=Ce,he.childNodes.length===0?"":he.childNodes[0].nodeValue}var Mt=Y.a=function(Ce){var he=Ce.value,be=he===void 0?"":he,Ee=Ce.edit,Ne=Ee===void 0?!1:Ee,we=Ce.className,Ae=Ce.showTextOnly,Ue=Ce.showLines,We=Ce.replaces,Je=Ce.zoomImg,$e=Ce.hasMask,pt=Ce.style,Jt=pt===void 0?{}:pt,fn=Ce.stylesPrev,qt=fn===void 0?{}:fn,St=String(be),Be=Object(f.useRef)(),at=Object(f.useRef)(),it=Object(f.useState)(""),Me=Object(O.a)(it,2),Ve=Me[0],xt=Me[1],_t=Object(f.useState)("office"),At=Object(O.a)(_t,2),Ot=At[0],Ct=At[1],Bt=function(){var gn=new ct(at.current);gn.displayMode="popup",gn.addRenderEventListener(function(){var Rn=Object(y.a)(e.a.mark(function Cn(an){var _n;return e.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Be.current.style.display="none",Ft.next=3,Object(xe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:an}});case 3:_n=Ft.sent,_n!=null&&_n.id&&We(at.current.getAttribute("src").replace(ie.a.API_SERVER,""),"/api/attachments/".concat(_n==null?void 0:_n.id,"?type=").concat(_n.content_type));case 5:case"end":return Ft.stop()}},Cn)}));return function(Cn){return Rn.apply(this,arguments)}}()),gn.show()},It=function(){var gn=new Te.a(at.current);gn.settings.displayMode="popup",gn.addEventListener("render",function(){var Rn=Object(y.a)(e.a.mark(function Cn(an){var _n;return e.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:if(Be.current.style.display="none",!at.current){Ft.next=6;break}return Ft.next=4,Object(xe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:an.dataUrl}});case 4:_n=Ft.sent,_n!=null&&_n.id&&We(at.current.getAttribute("src").replace(ie.a.API_SERVER,""),"/api/attachments/".concat(_n==null?void 0:_n.id,"?type=").concat(_n.content_type));case 6:case"end":return Ft.stop()}},Cn)}));return function(Cn){return Rn.apply(this,arguments)}}()),gn.show(),window.markerArea=gn},yt=Object(f.useMemo)(function(){Be.current&&(Be.current.style.zIndex=-1);try{var Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,gn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Rn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;St=St.replace(Kt,"("+ie.a.API_SERVER+"/api/attachments/").replace(gn,'"'+ie.a.API_SERVER+"/api/attachments/").replace(Rn,'"'+ie.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(vn){}var Cn=H(St),an=j();if(St.match(/\[TOC\]/)&&(Cn=Cn.replace("<p>[TOC]</p>",P()),w()),Cn=Cn.replace(/(__special_katext_id_\d+__)/g,function(vn,Ft){var Nt=an[Ft],pn=Nt.type,qn=Nt.expression;return Object(ce.renderToString)(lt(qn)||"",{displayMode:pn==="block",throwOnError:!1,output:"html"})}),Cn=Cn.replace(/▁/g,"\u2581\u2581\u2581"),I(),Ae){var _n=document.createElement("div");return _n.innerHTML=Cn,_n.innerText}return setTimeout(function(){return hn()},500),Cn},[St]),zt=Object(f.useRef)();x.WebkitLineClamp=Ue,Ue&&(Jt=Object(m.a)(Object(m.a)({},Jt),x));function sn(Kt){var gn=Kt.target;if(gn.tagName.toUpperCase()==="IMG"){if(Je){var Rn=gn.getAttribute("src");xt(Rn),Ct("image")}}else if(gn.tagName.toUpperCase()==="A"){var Cn=gn.getAttribute("href");if(Cn.indexOf("office")>-1)Kt.preventDefault(),xt(Cn),Ct("office");else if(Cn.indexOf("application/pdf")>-1)Kt.preventDefault(),xt(Cn),Ct("pdf");else if(Cn.indexOf("text/html")>-1)Kt.preventDefault(),xt(Cn),Ct("html");else if(Cn.startsWith("#")){Kt.preventDefault();var an=document.getElementById(Cn.replace("#",""));an&&an.scrollIntoView(!0)}}}var hn=function(){var gn,Rn=(gn=zt.current)===null||gn===void 0?void 0:gn.querySelectorAll("video");Rn==null||Rn.forEach(function(Cn){if(Cn.oncontextmenu=function(){return!1},Cn.src.indexOf(".m3u8")>-1&&!Cn.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var an=new z.a;an.loadSource(Cn.src),an.attachMedia(Cn)}}})};Object(f.useEffect)(function(){if(zt.current&&yt&&(yt.match(ke)&&window.PR.prettyPrint()),zt.current)return zt.current.addEventListener("click",sn),function(){zt.current.removeEventListener("click",sn),I(),w()}},[yt,zt.current,sn]);var un=function(gn){if(!Ne)return;gn.target.nodeName==="IMG"?(Be.current.style.zIndex=1,Be.current.style.display="flex",Be.current.style.width=gn.target.clientWidth+"px",Be.current.style.height=gn.target.clientHeight+"px",Be.current.style.top=gn.target.offsetTop+"px",Be.current.style.left=gn.target.offsetLeft+"px",at.current.src=gn.target.getAttribute("src")):Be.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:zt,style:Object(m.a)({},Jt),className:"".concat(we||""," markdown-body ").concat(Xe.a.mdBody),onMouseOver:un,dangerouslySetInnerHTML:{__html:yt}}),r.a.createElement("div",{ref:Be,className:Xe.a.button},r.a.createElement(E.a,null,r.a.createElement(v.a,{onClick:function(){return Bt()}},"\u88C1\u526A"),r.a.createElement(v.a,{onClick:function(){return It()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:at,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),r.a.createElement(ue.a,{close:!0,data:Ve,type:Ve!=null&&Ve.length?Ot:"",style:Object(m.a)({},qt),onClose:function(){return xt("")}}))}},"9JIy":function(N,Y,i){N.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(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.mode.CTR=function(){var E=M.lib.BlockCipherMode.extend(),T=E.Encryptor=E.extend({processBlock:function(v,m){var y=this._cipher,O=y.blockSize,g=this._iv,e=this._counter;g&&(e=this._counter=g.slice(0),this._iv=void 0);var f=e.slice(0);y.encryptBlock(f,0),e[O-1]=e[O-1]+1|0;for(var r=0;r<O;r++)v[m+r]^=f[r]}});return E.Decryptor=T,E}(),M.mode.CTR})},"9VGf":function(N,Y,i){"use strict";i.d(Y,"a",function(){return T});var M=i("q1tI"),E=i.n(M);function T(v,m){var y=Object(M.useRef)();Object(M.useEffect)(function(){y.current=v}),Object(M.useEffect)(function(){function O(){y.current()}if(m!==null){var g=setInterval(O,m);return function(){return clearInterval(g)}}},[m])}},"9ZNV":function(N,Y,i){"use strict";i.d(Y,"a",function(){return f});var M=i("0Owb"),E=i("+L6B"),T=i("2/Rp"),v=i("q1tI"),m=i.n(v),y=i("UUDw"),O=i.n(y),g=i("TSYQ"),e=i.n(g),f=function(c){var n=c.cancelText,a=n===void 0?"\u53D6\u6D88":n,o=c.okText,l=o===void 0?"\u786E\u5B9A":o,d=c.loading,h=d===void 0?!1:d,s=c.hasOkBtn,u=s===void 0?!0:s,w=c.okButtonProps,x=w===void 0?{}:w,b=c.onCancel,P=b===void 0?function(){}:b,R=c.onOk,C=R===void 0?function(){}:R,S=c.className,_=S===void 0?"":S;return m.a.createElement("div",{className:e()(O.a.buttonFixed,_)},m.a.createElement("div",{className:O.a.buttonWrap},m.a.createElement(T.a,{size:"large",className:"".concat(O.a.button," mr20"),onClick:P},a),u&&m.a.createElement(T.a,Object(M.a)({size:"large",type:"primary",className:"".concat(O.a.button," mr20"),loading:h,onClick:C},x),l)))}},"A/g1":function(N,Y){N.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},ALsQ:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.mode.CFB=function(){var E=M.lib.BlockCipherMode.extend();E.Encryptor=E.extend({processBlock:function(v,m){var y=this._cipher,O=y.blockSize;T.call(this,v,m,O,y),this._prevBlock=v.slice(m,m+O)}}),E.Decryptor=E.extend({processBlock:function(v,m){var y=this._cipher,O=y.blockSize,g=v.slice(m,m+O);T.call(this,v,m,O,y),this._prevBlock=g}});function T(v,m,y,O){var g,e=this._iv;e?(g=e.slice(0),this._iv=void 0):g=this._prevBlock,O.encryptBlock(g,0);for(var f=0;f<y;f++)v[m+f]^=g[f]}return E}(),M.mode.CFB})},B6bo:function(N,Y,i){N.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(N,Y,i){N.exports={wrap:"wrap___1gcMR",content:"content___31AN8",mainPathWrap:"mainPathWrap___1HrSg",colorBlue:"colorBlue___2eq2Y"}},BU3w:function(N,Y,i){"use strict";i.d(Y,"a",function(){return y});var M=i("MNnm"),E="rc-util-key";function T(O){if(O.attachTo)return O.attachTo;var g=document.querySelector("head");return g||document.body}function v(O){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=O;var c=T(e),n=c.firstChild;return e.prepend&&c.prepend?c.prepend(f):e.prepend&&n?c.insertBefore(f,n):c.appendChild(f),f}var m=new Map;function y(O,g){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=T(e);if(!m.has(f)){var r=v("",e),c=r.parentNode;m.set(f,c),c.removeChild(r)}var n=Array.from(m.get(f).children).find(function(h){return h.tagName==="STYLE"&&h[E]===g});if(n){var a,o;if(((a=e.csp)===null||a===void 0?void 0:a.nonce)&&n.nonce!==((o=e.csp)===null||o===void 0?void 0:o.nonce)){var l;n.nonce=(l=e.csp)===null||l===void 0?void 0:l.nonce}return n.innerHTML!==O&&(n.innerHTML=O),n}var d=v(O,e);return d[E]=g,d}},Bbdw:function(N,Y,i){N.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(N,Y,i){(function(M){M(i("VrN/"),i("osHv"))})(function(M){M.defineOption("autoCloseTags",!1,function(e,f,r){if(r!=M.Init&&r&&e.removeKeyMap("autoCloseTags"),!f)return;var c={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(c["'/'"]=function(n){return y(n)}),(typeof f!="object"||f.whenOpening!==!1)&&(c["'>'"]=function(n){return v(n)}),e.addKeyMap(c)});var E=["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 v(e){if(e.getOption("disableInput"))return M.Pass;for(var f=e.listSelections(),r=[],c=e.getOption("autoCloseTags"),n=0;n<f.length;n++){if(!f[n].empty())return M.Pass;var a=f[n].head,o=e.getTokenAt(a),l=M.innerMode(e.getMode(),o.state),d=l.state,h=l.mode.xmlCurrentTag&&l.mode.xmlCurrentTag(d),s=h&&h.name;if(!s)return M.Pass;var u=l.mode.configuration=="html",w=typeof c=="object"&&c.dontCloseTags||u&&E,x=typeof c=="object"&&c.indentTags||u&&T;o.end>a.ch&&(s=s.slice(0,s.length-o.end+a.ch));var b=s.toLowerCase();if(!s||o.type=="string"&&(o.end!=a.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&h.close||o.string.indexOf("/")==a.ch-o.start-1||w&&O(w,b)>-1||g(e,l.mode.xmlCurrentContext&&l.mode.xmlCurrentContext(d)||[],s,a,!0))return M.Pass;var P=typeof c=="object"&&c.emptyTags;if(P&&O(P,s)>-1){r[n]={text:"/>",newPos:M.Pos(a.line,a.ch+2)};continue}var R=x&&O(x,b)>-1;r[n]={indent:R,text:">"+(R?`
`:"")+"</"+s+">",newPos:R?M.Pos(a.line+1,0):M.Pos(a.line,a.ch+1)}}for(var C=typeof c=="object"&&c.dontIndentOnAutoClose,n=f.length-1;n>=0;n--){var S=r[n];e.replaceRange(S.text,f[n].head,f[n].anchor,"+insert");var _=e.listSelections().slice(0);_[n]={head:S.newPos,anchor:S.newPos},e.setSelections(_),!C&&S.indent&&(e.indentLine(S.newPos.line,null,!0),e.indentLine(S.newPos.line+1,null,!0))}}function m(e,f){for(var r=e.listSelections(),c=[],n=f?"/":"</",a=e.getOption("autoCloseTags"),o=typeof a=="object"&&a.dontIndentOnSlash,l=0;l<r.length;l++){if(!r[l].empty())return M.Pass;var d=r[l].head,h=e.getTokenAt(d),s=M.innerMode(e.getMode(),h.state),u=s.state;if(f&&(h.type=="string"||h.string.charAt(0)!="<"||h.start!=d.ch-1))return M.Pass;var w,x=s.mode.name!="xml"&&e.getMode().name=="htmlmixed";if(x&&s.mode.name=="javascript")w=n+"script";else if(x&&s.mode.name=="css")w=n+"style";else{var b=s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(u);if(!b||b.length&&g(e,b,b[b.length-1],d))return M.Pass;w=n+b[b.length-1]}e.getLine(d.line).charAt(h.end)!=">"&&(w+=">"),c[l]=w}if(e.replaceSelections(c),r=e.listSelections(),!o)for(var l=0;l<r.length;l++)(l==r.length-1||r[l].head.line<r[l+1].head.line)&&e.indentLine(r[l].head.line)}function y(e){return e.getOption("disableInput")?M.Pass:m(e,!0)}M.commands.closeTag=function(e){return m(e)};function O(e,f){if(e.indexOf)return e.indexOf(f);for(var r=0,c=e.length;r<c;++r)if(e[r]==f)return r;return-1}function g(e,f,r,c,n){if(!M.scanForClosingTag)return!1;var a=Math.min(e.lastLine()+1,c.line+500),o=M.scanForClosingTag(e,c,null,a);if(!o||o.tag!=r)return!1;for(var l=n?1:0,d=f.length-1;d>=0&&f[d]==r;d--)++l;c=o.to;for(var d=1;d<l;d++){var h=M.scanForClosingTag(e,c,null,a);if(!h||h.tag!=r)return!1;c=h.to}return!0}})},BdwD:function(N,Y,i){"use strict";var M=i("+L6B"),E=i("2/Rp"),T=i("0Owb"),v=i("k1fw"),m=i("q1tI"),y=i.n(m),O=i("FOrL"),g=i.n(O),e=function(r){var c=r.buttonProps,n=c===void 0?{}:c,a=r.styles,o=a===void 0?{}:a,l=r.imgStyles,d=l===void 0?{}:l,h=r.customText,s=r.ButtonText,u=r.ButtonClick,w=r.Buttonclass,x=r.ButtonTwo;return y.a.createElement("section",{className:"tc animated fadeIn",style:Object(v.a)(Object(v.a)({},{color:"#999",margin:"0 auto",padding:"100px 0"}),o)},y.a.createElement("img",{src:g.a,style:Object(v.a)(Object(v.a)({},{width:"200px",height:"150px"}),d)}),y.a.createElement("p",{className:"mt10 font14"},h||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),s&&y.a.createElement(E.a,Object(T.a)({className:w,onClick:u},n),s),x&&x)};Y.a=e},BjJ7:function(N,Y,i){"use strict";i.d(Y,"d",function(){return E}),i.d(Y,"c",function(){return T}),i.d(Y,"e",function(){return v}),i.d(Y,"b",function(){return m}),i.d(Y,"a",function(){return O});var M=i("m3rI");function E(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 c=g[r],n=e?"".concat(e,"/").concat(c.name):"".concat(c.name);f.push({title:c.name,isLeaf:!(c.type==="tree"),key:n})}return f}function v(g,e,f){for(var r=0;r<g.length;r++){var c=g[r];if(c.key===e){c.children=f;break}c.children&&v(c.children,e,f)}return g}function m(g,e,f){var r;return function(){var c=this,n=arguments,a=function(){r=null,f||g.apply(c,n)},o=f&&!r;clearTimeout(r),r=setTimeout(a,e),o&&g.apply(c,n)}}var y=!0,O=M.a.API_SERVER},Bq7L:function(N,Y){N.exports="data:image/png;base64,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"},"C+DQ":function(N,Y,i){},"C/vA":function(N,Y,i){"use strict";i.d(Y,"a",function(){return M});function M(E){const T=this;let v=!1,m;return function(){return v||(v=!0,m=E.apply(T,arguments)),m}}},"Cg/j":function(N,Y,i){"use strict";i.d(Y,"b",function(){return M}),i.d(Y,"a",function(){return E}),i.d(Y,"c",function(){return v}),i.d(Y,"d",function(){return m});var M;(function(y){y.serviceIds=new Map,y.DI_TARGET="$di$target",y.DI_DEPENDENCIES="$di$dependencies";function O(g){return g[y.DI_DEPENDENCIES]||[]}y.getServiceDependencies=O})(M||(M={}));const E=v("instantiationService");function T(y,O,g,e){O[M.DI_TARGET]===O?O[M.DI_DEPENDENCIES].push({id:y,index:g,optional:e}):(O[M.DI_DEPENDENCIES]=[{id:y,index:g,optional:e}],O[M.DI_TARGET]=O)}function v(y){if(M.serviceIds.has(y))return M.serviceIds.get(y);const O=function(g,e,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");T(O,g,f,!1)};return O.toString=()=>y,M.serviceIds.set(y,O),O}function m(y){return function(O,g,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");T(y,O,e,!0)}}},"Cs+z":function(N,Y,i){N.exports=i.p+"static/jqr.b801d45b.png"},"Ct/S":function(N,Y,i){N.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},"DDK+":function(N,Y,i){"use strict";var M=i("+L6B"),E=i("2/Rp"),T=i("y8nQ"),v=i("Vl3Y"),m=i("cWXX"),y=i("/ezw"),O=i("rAM+"),g=i("9og8"),e=i("tJVT"),f=i("7Kak"),r=i("9yH6"),c=i("WmNS"),n=i.n(c),a=i("q1tI"),o=i.n(a),l=i("ErOA"),d=i("2qtc"),h=i("kLXV"),s=i("k1fw"),u=i("Se0u"),w=i("pUFm"),x=i.n(w);function b(){return Object(l.c)("teach_groups.json")}function P(U){return Object(l.f)("teach_groups.json",U)}function R(U,K){return Object(l.g)("teach_groups/".concat(U,".json"),K)}function C(U){return Object(l.f)("teach_group_members.json",U)}function S(U){return Object(l.b)("teach_group_members/".concat(U,".json"))}function _(U,K){return Object(l.b)("teach_groups/".concat(U,"/del_member.json?member_id=").concat(K))}function A(U){return Object(l.b)("teach_groups/".concat(U,".json"))}var j=i("5NDa"),I=i("5rEg"),k=function(U){var K=U.callback,X=U.visible,Q=U.onCancel,te=U.id,ae=U.name;function re(me){K(me)}var $=v.a.useForm(),Z=Object(e.a)($,1),fe=Z[0];return Object(a.useEffect)(function(){fe.setFieldsValue({name:ae})},[ae]),o.a.createElement(h.a,{centered:!0,title:te?"\u6539\u540D":"\u65B0\u5EFA",visible:X,onCancel:Q,footer:null},o.a.createElement(v.a,{layout:"vertical",form:fe,initialValues:{name:ae},onFinish:re},o.a.createElement(v.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"}]},o.a.createElement(I.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),o.a.createElement(v.a.Item,null,o.a.createElement("div",{className:"flex-container flex-end"},o.a.createElement(E.a,{type:"ghost",onClick:Q,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",o.a.createElement(E.a,{type:"primary",htmlType:"submit"}," ","\u786E\u5B9A"," ")))))},J=i("Fxgj"),G=i("3ouR"),D=i("xGfz"),H=50,W=function(U){var K=U.data,X=U.isAdminOrTeacher,Q=U.onDelGroup,te=U.onChangeGroupName,ae=U.onPlusMember,re=U.onDelMember,$=U.onExitGroup,Z=Object(a.useState)(0),fe=Object(e.a)(Z,2),me=fe[0],Oe=fe[1],He=Object(a.useState)(0),Qe=Object(e.a)(He,2),ot=Qe[0],st=Qe[1];function ct(ke){var lt=parseInt(ke.target.id,10);h.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(){Q(lt)}})}function dt(ke){var lt=parseInt(ke.target.id,10);h.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(){$(lt)}})}function Xe(ke,lt){h.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){re(ke,lt)}})}return o.a.createElement("ul",{className:"teaching-list"},K.map(function(ke,lt){return o.a.createElement("li",{key:ke.id,onClick:function(){return Oe(lt)}},o.a.createElement("div",{className:"item-group"},o.a.createElement("span",null,ke.name," \xA0"," ",lt!==me&&o.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),o.a.createElement("div",{className:"action-group"},X?o.a.createElement("a",{onClick:function(){te(ke)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,ke.is_creat?o.a.createElement("a",{id:ke.id+"",className:"c-grey-c",onClick:ct},"\u89E3\u6563"):o.a.createElement("a",{id:ke.id+"",className:"c-grey-c",onClick:dt},"\u9000\u51FA"))),lt===me?o.a.createElement("ul",{className:"info"},ke.memers.map(function(Mt){return o.a.createElement("li",{key:Mt.id||Mt.name,onClick:function(){st(Mt.id)},className:ot===Mt.id?"active":""},o.a.createElement("div",null,Mt.name),ke.is_creat&&Mt.id&&ot===Mt.id?o.a.createElement("a",{className:"btn-del",onClick:function(he){he.preventDefault(),he.stopPropagation(),Xe(ke.id,ot)}},o.a.createElement(G.a,null)):null)}),X?o.a.createElement("li",null,o.a.createElement(E.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(){ae(ke)}}," ",o.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},L=i("9kvl"),z=i("ju9d");function ie(U){var K=U.children;return o.a.createElement("div",{className:"no-data"},o.a.createElement("img",{src:x.a,alt:"no-data",width:300}),K)}var ce={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},ue;(function(U){U[U.INITDATA=0]="INITDATA",U[U.SHOWLOADING=1]="SHOWLOADING",U[U.SHOWFORMPANEL=2]="SHOWFORMPANEL",U[U.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",U[U.SELECTGROUP=4]="SELECTGROUP",U[U.SETINDEX=5]="SETINDEX"})(ue||(ue={}));function xe(U,K){switch(K.type){case ue.INITDATA:return Object(s.a)(Object(s.a)({},U),K.payload);case ue.SHOWLOADING:return Object(s.a)(Object(s.a)({},U),{},{loading:K.payload});case ue.SETINDEX:return Object(s.a)(Object(s.a)({},U),{},{index:K.payload});case ue.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},U),K.payload);case ue.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},U),K.payload);case ue.SELECTGROUP:return Object(s.a)(Object(s.a)({},U),{},{selectedGroup:K.payload,showFormPanel:!0});default:throw new Error}}function Te(U){var K,X=U.user,Q=Object(a.useReducer)(xe,ce),te=Object(e.a)(Q,2),ae=te[0],re=te[1],$=ae.data,Z=ae.index,fe=ae.loading,me=ae.showFormPanel,Oe=ae.selectedGroup,He=ae.showMemberPanel,Qe=(K=X.userInfo)===null||K===void 0?void 0:K.role,ot=Object(a.useMemo)(function(){var pt=[],Jt=[],fn=Object(O.a)($),qt;try{for(fn.s();!(qt=fn.n()).done;){var St=qt.value;St.is_creat?pt.push(St):Jt.push(St)}}catch(Be){fn.e(Be)}finally{fn.f()}return[pt,Jt]},[$]);Object(a.useEffect)(function(){Qe===15&&re({type:ue.SETINDEX,payload:1})},[Qe]);function st(){return ct.apply(this,arguments)}function ct(){return ct=Object(g.a)(n.a.mark(function pt(){var Jt;return n.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.next=2,b();case 2:Jt=qt.sent,re({type:ue.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Jt.groups}});case 4:case"end":return qt.stop()}},pt)})),ct.apply(this,arguments)}Object(a.useEffect)(function(){st()},[]);function dt(pt){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(g.a)(n.a.mark(function pt(Jt){return n.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:if(!Oe.id){qt.next=5;break}return qt.next=3,R(Oe.id,Jt);case 3:qt.next=7;break;case 5:return qt.next=7,P(Jt);case 7:st();case 8:case"end":return qt.stop()}},pt)})),Xe.apply(this,arguments)}function ke(){re({type:ue.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function lt(pt){re({type:ue.SELECTGROUP,payload:pt})}function Mt(){re({type:ue.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function Ce(){re({type:ue.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function he(pt){re({type:ue.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:pt}})}function be(pt,Jt){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(g.a)(n.a.mark(function pt(Jt,fn){return n.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,_(Jt,fn);case 2:st();case 3:case"end":return St.stop()}},pt)})),Ee.apply(this,arguments)}function Ne(pt){return we.apply(this,arguments)}function we(){return we=Object(g.a)(n.a.mark(function pt(Jt){return n.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.next=2,A(Jt);case 2:st();case 3:case"end":return qt.stop()}},pt)})),we.apply(this,arguments)}function Ae(pt){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(g.a)(n.a.mark(function pt(Jt){return n.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.next=2,S(Jt);case 2:st();case 3:case"end":return qt.stop()}},pt)})),Ue.apply(this,arguments)}function We(pt){re({type:ue.SETINDEX,payload:parseInt(pt.target.id,10)})}function Je(pt,Jt){return $e.apply(this,arguments)}function $e(){return $e=Object(g.a)(n.a.mark(function pt(Jt,fn){return n.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return Ce(),St.next=3,C({user_ids:Jt,group_id:fn});case 3:st();case 4:case"end":return St.stop()}},pt)})),$e.apply(this,arguments)}return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"teaching-circling-container"},o.a.createElement("h3",null," ","\u6559\u7814\u56E2\u961F"," ",Qe<=12&&o.a.createElement(E.a,{type:"primary",disabled:$.length>=50,title:$.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:ke},"\u65B0\u5EFA")," "),o.a.createElement("div",{className:"teaching-circling-body"},Qe===15?null:o.a.createElement("ul",{className:"navs"},o.a.createElement("li",{className:Z===0?"active":""},o.a.createElement("a",{id:"0",onClick:We},"\u6211\u521B\u5EFA\u7684")),o.a.createElement("li",{className:Z===1?"active":""},o.a.createElement("a",{id:"1",onClick:We},"\u6211\u52A0\u5165\u7684"))),o.a.createElement("div",{className:ot[Z].length===0?"nodata-content":"main-content"},ot[Z].length===0?o.a.createElement(ie,null,Qe<=12?o.a.createElement(o.a.Fragment,null," ",o.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")," ",o.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")," "):o.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 ")):o.a.createElement(W,{onExitGroup:Ae,onPlusMember:he,onDelMember:be,onDelGroup:Ne,isAdminOrTeacher:Qe<=12,onChangeGroupName:lt,data:ot[Z]}))),o.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"," ")),o.a.createElement(k,{callback:dt,visible:me,onCancel:Mt,id:Oe.id,name:Oe.name}),o.a.createElement(h.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:He,onCancel:Ce,footer:null,width:1100,bodyStyle:{minHeight:200}},o.a.createElement(z.a,{container_id:Oe.id,container_type:4,onSelect:Je,onCancel:Ce})))}var de=Object(L.a)(function(U){var K=U.user;return{user:K}})(Te),ve=i("SLjR"),_e=i("55Ip"),le=r.a.Group,ee=Y.a=function(U){var K=U.onSelect,X=U.onCancel,Q=Object(a.useState)([]),te=Object(e.a)(Q,2),ae=te[0],re=te[1],$=Object(a.useState)(!0),Z=Object(e.a)($,2),fe=Z[0],me=Z[1];Object(a.useEffect)(function(){function Qe(){return ot.apply(this,arguments)}function ot(){return ot=Object(g.a)(n.a.mark(function st(){var ct,dt;return n.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(l.c)("teach_groups/my.json");case 2:ct=ke.sent,dt=ct.groups,re(dt),me(!1);case 6:case"end":return ke.stop()}},st)})),ot.apply(this,arguments)}Qe()},[]);var Oe=Object(a.useMemo)(function(){var Qe=[],ot=[],st=Object(O.a)(ae),ct;try{for(st.s();!(ct=st.n()).done;){var dt=ct.value;dt.is_creat?Qe.push(dt):ot.push(dt)}}catch(Xe){st.e(Xe)}finally{st.f()}return[Qe,ot]},[ae]);function He(Qe){K(Qe)}return o.a.createElement(v.a,{className:"select-teach-group",onFinish:He},fe?o.a.createElement(y.a,{paragraph:!0}):ae.length===0?o.a.createElement(ie,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",o.a.createElement(_e.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):o.a.createElement(o.a.Fragment,null,o.a.createElement(v.a.Item,{name:"group_id"},o.a.createElement(le,null,o.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),o.a.createElement("ul",{className:"groups"},Oe[0].map(function(Qe){return o.a.createElement("li",{key:Qe.id},o.a.createElement(r.a,{value:Qe.id},Qe.name))})),o.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),o.a.createElement("ul",{className:"groups"},Oe[1].map(function(Qe){return o.a.createElement("li",{key:Qe.id},o.a.createElement(r.a,{value:Qe.id},Qe.name))})))),o.a.createElement("div",{className:"btn-actions"},o.a.createElement(E.a,{type:"ghost",onClick:X,style:{marginRight:10}},"\u53D6\u6D88"),o.a.createElement(E.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(N,Y,i){(function(M,E){N.exports=E()})(this,function(){"use strict";function M(be,Ee){for(var Ne=0;Ne<Ee.length;Ne++){var we=Ee[Ne];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(be,we.key,we)}}function E(be,Ee,Ne){return Ee&&M(be.prototype,Ee),Ne&&M(be,Ne),be}function T(be,Ee){if(!be)return;if(typeof be=="string")return v(be,Ee);var Ne=Object.prototype.toString.call(be).slice(8,-1);if(Ne==="Object"&&be.constructor&&(Ne=be.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(be);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return v(be,Ee)}function v(be,Ee){(Ee==null||Ee>be.length)&&(Ee=be.length);for(var Ne=0,we=new Array(Ee);Ne<Ee;Ne++)we[Ne]=be[Ne];return we}function m(be,Ee){var Ne;if(typeof Symbol=="undefined"||be[Symbol.iterator]==null){if(Array.isArray(be)||(Ne=T(be))||Ee&&be&&typeof be.length=="number"){Ne&&(be=Ne);var we=0;return function(){return we>=be.length?{done:!0}:{done:!1,value:be[we++]}}}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 Ne=be[Symbol.iterator](),Ne.next.bind(Ne)}function y(be,Ee){return Ee={exports:{}},be(Ee,Ee.exports),Ee.exports}var O=y(function(be){function Ee(){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 Ne(we){be.exports.defaults=we}be.exports={defaults:Ee(),getDefaults:Ee,changeDefaults:Ne}}),g=O.defaults,e=O.getDefaults,f=O.changeDefaults,r=/[&<>"']/,c=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},l=function(Ee){return o[Ee]};function d(be,Ee){if(Ee){if(r.test(be))return be.replace(c,l)}else if(n.test(be))return be.replace(a,l);return be}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(be){return be.replace(h,function(Ee,Ne){return Ne=Ne.toLowerCase(),Ne==="colon"?":":Ne.charAt(0)==="#"?Ne.charAt(1)==="x"?String.fromCharCode(parseInt(Ne.substring(2),16)):String.fromCharCode(+Ne.substring(1)):""})}var u=/(^|[^\[])\^/g;function w(be,Ee){be=be.source||be,Ee=Ee||"";var Ne={replace:function(Ae,Ue){return Ue=Ue.source||Ue,Ue=Ue.replace(u,"$1"),be=be.replace(Ae,Ue),Ne},getRegex:function(){return new RegExp(be,Ee)}};return Ne}var x=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(be,Ee,Ne){if(be){var we;try{we=decodeURIComponent(s(Ne)).replace(x,"").toLowerCase()}catch(Ae){return null}if(we.indexOf("javascript:")===0||we.indexOf("vbscript:")===0||we.indexOf("data:")===0)return null}Ee&&!b.test(Ne)&&(Ne=A(Ee,Ne));try{Ne=encodeURI(Ne).replace(/%25/g,"%")}catch(Ae){return null}return Ne}var R={},C=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function A(be,Ee){R[" "+be]||(C.test(be)?R[" "+be]=be+"/":R[" "+be]=J(be,"/",!0)),be=R[" "+be];var Ne=be.indexOf(":")===-1;return Ee.substring(0,2)==="//"?Ne?Ee:be.replace(S,"$1")+Ee:Ee.charAt(0)==="/"?Ne?Ee:be.replace(_,"$1")+Ee:be+Ee}var j={exec:function(){}};function I(be){for(var Ee=1,Ne,we;Ee<arguments.length;Ee++){Ne=arguments[Ee];for(we in Ne)Object.prototype.hasOwnProperty.call(Ne,we)&&(be[we]=Ne[we])}return be}function k(be,Ee){var Ne=be.replace(/\|/g,function(Ue,We,Je){for(var $e=!1,pt=We;--pt>=0&&Je[pt]==="\\";)$e=!$e;return $e?"|":" |"}),we=Ne.split(/ \|/),Ae=0;if(we.length>Ee)we.splice(Ee);else for(;we.length<Ee;)we.push("");for(;Ae<we.length;Ae++)we[Ae]=we[Ae].trim().replace(/\\\|/g,"|");return we}function J(be,Ee,Ne){var we=be.length;if(we===0)return"";for(var Ae=0;Ae<we;){var Ue=be.charAt(we-Ae-1);if(Ue===Ee&&!Ne)Ae++;else if(Ue!==Ee&&Ne)Ae++;else break}return be.substr(0,we-Ae)}function G(be,Ee){if(be.indexOf(Ee[1])===-1)return-1;for(var Ne=be.length,we=0,Ae=0;Ae<Ne;Ae++)if(be[Ae]==="\\")Ae++;else if(be[Ae]===Ee[0])we++;else if(be[Ae]===Ee[1]&&(we--,we<0))return Ae;return-1}function D(be){be&&be.sanitize&&!be.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 H={escape:d,unescape:s,edit:w,cleanUrl:P,resolveUrl:A,noopTest:j,merge:I,splitCells:k,rtrim:J,findClosingBracket:G,checkSanitizeDeprecation:D},W=O.defaults,L=H.rtrim,z=H.splitCells,ie=H.escape,ce=H.findClosingBracket;function ue(be,Ee,Ne){var we=Ee.href,Ae=Ee.title?ie(Ee.title):null,Ue=be[1].replace(/\\([\[\]])/g,"$1");return be[0].charAt(0)!=="!"?{type:"link",raw:Ne,href:we,title:Ae,text:Ue}:{type:"image",raw:Ne,href:we,title:Ae,text:ie(Ue)}}function xe(be,Ee){var Ne=be.match(/^(\s+)(?:```)/);if(Ne===null)return Ee;var we=Ne[1];return Ee.split(`
`).map(function(Ae){var Ue=Ae.match(/^\s+/);if(Ue===null)return Ae;var We=Ue[0];return We.length>=we.length?Ae.slice(we.length):Ae}).join(`
`)}var Te=function(){function be(Ne){this.options=Ne||W}var Ee=be.prototype;return Ee.space=function(we){var Ae=this.rules.block.newline.exec(we);if(Ae)return Ae[0].length>1?{type:"space",raw:Ae[0]}:{raw:`
`}},Ee.code=function(we,Ae){var Ue=this.rules.block.code.exec(we);if(Ue){var We=Ae[Ae.length-1];if(We&&We.type==="paragraph")return{raw:Ue[0],text:Ue[0].trimRight()};var Je=Ue[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ue[0],codeBlockStyle:"indented",text:this.options.pedantic?Je:L(Je,`
`)}}},Ee.fences=function(we){var Ae=this.rules.block.fences.exec(we);if(Ae){var Ue=Ae[0],We=xe(Ue,Ae[3]||"");return{type:"code",raw:Ue,lang:Ae[2]?Ae[2].trim():Ae[2],text:We}}},Ee.heading=function(we){var Ae=this.rules.block.heading.exec(we);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},Ee.nptable=function(we){var Ae=this.rules.block.nptable.exec(we);if(Ae){var Ue={type:"table",header:z(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[],raw:Ae[0]};if(Ue.header.length===Ue.align.length){var We=Ue.align.length,Je;for(Je=0;Je<We;Je++)/^ *-+: *$/.test(Ue.align[Je])?Ue.align[Je]="right":/^ *:-+: *$/.test(Ue.align[Je])?Ue.align[Je]="center":/^ *:-+ *$/.test(Ue.align[Je])?Ue.align[Je]="left":Ue.align[Je]=null;for(We=Ue.cells.length,Je=0;Je<We;Je++)Ue.cells[Je]=z(Ue.cells[Je],Ue.header.length);return Ue}}},Ee.hr=function(we){var Ae=this.rules.block.hr.exec(we);if(Ae)return{type:"hr",raw:Ae[0]}},Ee.blockquote=function(we){var Ae=this.rules.block.blockquote.exec(we);if(Ae){var Ue=Ae[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ae[0],text:Ue}}},Ee.list=function(we){var Ae=this.rules.block.list.exec(we);if(Ae){for(var Ue=Ae[0],We=Ae[2],Je=We.length>1,$e=We[We.length-1]===")",pt={type:"list",raw:Ue,ordered:Je,start:Je?+We.slice(0,-1):"",loose:!1,items:[]},Jt=Ae[0].match(this.rules.block.item),fn=!1,qt,St,Be,at,it,Me,Ve,xt=Jt.length,_t=0;_t<xt;_t++)qt=Jt[_t],Ue=qt,St=qt.length,qt=qt.replace(/^ *([*+-]|\d+[.)]) */,""),~qt.indexOf(`
`)&&(St-=qt.length,qt=this.options.pedantic?qt.replace(/^ {1,4}/gm,""):qt.replace(new RegExp("^ {1,"+St+"}","gm"),"")),_t!==xt-1&&(Be=this.rules.block.bullet.exec(Jt[_t+1])[0],(Je?Be.length===1||!$e&&Be[Be.length-1]===")":Be.length>1||this.options.smartLists&&Be!==We)&&(at=Jt.slice(_t+1).join(`
`),pt.raw=pt.raw.substring(0,pt.raw.length-at.length),_t=xt-1)),it=fn||/\n\n(?!\s*$)/.test(qt),_t!==xt-1&&(fn=qt.charAt(qt.length-1)===`
`,it||(it=fn)),it&&(pt.loose=!0),Me=/^\[[ xX]\] /.test(qt),Ve=void 0,Me&&(Ve=qt[1]!==" ",qt=qt.replace(/^\[[ xX]\] +/,"")),pt.items.push({type:"list_item",raw:Ue,task:Me,checked:Ve,loose:it,text:qt});return pt}},Ee.html=function(we){var Ae=this.rules.block.html.exec(we);if(Ae)return{type:this.options.sanitize?"paragraph":"html",raw:Ae[0],pre:!this.options.sanitizer&&(Ae[1]==="pre"||Ae[1]==="script"||Ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ae[0]):ie(Ae[0]):Ae[0]}},Ee.def=function(we){var Ae=this.rules.block.def.exec(we);if(Ae){Ae[3]&&(Ae[3]=Ae[3].substring(1,Ae[3].length-1));var Ue=Ae[1].toLowerCase().replace(/\s+/g," ");return{tag:Ue,raw:Ae[0],href:Ae[2],title:Ae[3]}}},Ee.table=function(we){var Ae=this.rules.block.table.exec(we);if(Ae){var Ue={type:"table",header:z(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split(`
`):[]};if(Ue.header.length===Ue.align.length){Ue.raw=Ae[0];var We=Ue.align.length,Je;for(Je=0;Je<We;Je++)/^ *-+: *$/.test(Ue.align[Je])?Ue.align[Je]="right":/^ *:-+: *$/.test(Ue.align[Je])?Ue.align[Je]="center":/^ *:-+ *$/.test(Ue.align[Je])?Ue.align[Je]="left":Ue.align[Je]=null;for(We=Ue.cells.length,Je=0;Je<We;Je++)Ue.cells[Je]=z(Ue.cells[Je].replace(/^ *\| *| *\| *$/g,""),Ue.header.length);return Ue}}},Ee.lheading=function(we){var Ae=this.rules.block.lheading.exec(we);if(Ae)return{type:"heading",raw:Ae[0],depth:Ae[2].charAt(0)==="="?1:2,text:Ae[1]}},Ee.paragraph=function(we){var Ae=this.rules.block.paragraph.exec(we);if(Ae)return{type:"paragraph",raw:Ae[0],text:Ae[1].charAt(Ae[1].length-1)===`
`?Ae[1].slice(0,-1):Ae[1]}},Ee.text=function(we,Ae){var Ue=this.rules.block.text.exec(we);if(Ue){var We=Ae[Ae.length-1];return We&&We.type==="text"?{raw:Ue[0],text:Ue[0]}:{type:"text",raw:Ue[0],text:Ue[0]}}},Ee.escape=function(we){var Ae=this.rules.inline.escape.exec(we);if(Ae)return{type:"escape",raw:Ae[0],text:ie(Ae[1])}},Ee.tag=function(we,Ae,Ue){var We=this.rules.inline.tag.exec(we);if(We)return!Ae&&/^<a /i.test(We[0])?Ae=!0:Ae&&/^<\/a>/i.test(We[0])&&(Ae=!1),!Ue&&/^<(pre|code|kbd|script)(\s|>)/i.test(We[0])?Ue=!0:Ue&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(We[0])&&(Ue=!1),{type:this.options.sanitize?"text":"html",raw:We[0],inLink:Ae,inRawBlock:Ue,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):ie(We[0]):We[0]}},Ee.link=function(we){var Ae=this.rules.inline.link.exec(we);if(Ae){var Ue=ce(Ae[2],"()");if(Ue>-1){var We=Ae[0].indexOf("!")===0?5:4,Je=We+Ae[1].length+Ue;Ae[2]=Ae[2].substring(0,Ue),Ae[0]=Ae[0].substring(0,Je).trim(),Ae[3]=""}var $e=Ae[2],pt="";if(this.options.pedantic){var Jt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);Jt?($e=Jt[1],pt=Jt[3]):pt=""}else pt=Ae[3]?Ae[3].slice(1,-1):"";$e=$e.trim().replace(/^<([\s\S]*)>$/,"$1");var fn=ue(Ae,{href:$e&&$e.replace(this.rules.inline._escapes,"$1"),title:pt&&pt.replace(this.rules.inline._escapes,"$1")},Ae[0]);return fn}},Ee.reflink=function(we,Ae){var Ue;if((Ue=this.rules.inline.reflink.exec(we))||(Ue=this.rules.inline.nolink.exec(we))){var We=(Ue[2]||Ue[1]).replace(/\s+/g," ");if(We=Ae[We.toLowerCase()],!We||!We.href){var Je=Ue[0].charAt(0);return{type:"text",raw:Je,text:Je}}var $e=ue(Ue,We,Ue[0]);return $e}},Ee.strong=function(we,Ae,Ue){Ue===void 0&&(Ue="");var We=this.rules.inline.strong.start.exec(we);if(We&&(!We[1]||We[1]&&(Ue===""||this.rules.inline.punctuation.exec(Ue)))){Ae=Ae.slice(-1*we.length);var Je=We[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Je.lastIndex=0;for(var $e;(We=Je.exec(Ae))!=null;)if($e=this.rules.inline.strong.middle.exec(Ae.slice(0,We.index+3)),$e)return{type:"strong",raw:we.slice(0,$e[0].length),text:we.slice(2,$e[0].length-2)}}},Ee.em=function(we,Ae,Ue){Ue===void 0&&(Ue="");var We=this.rules.inline.em.start.exec(we);if(We&&(!We[1]||We[1]&&(Ue===""||this.rules.inline.punctuation.exec(Ue)))){Ae=Ae.slice(-1*we.length);var Je=We[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Je.lastIndex=0;for(var $e;(We=Je.exec(Ae))!=null;)if($e=this.rules.inline.em.middle.exec(Ae.slice(0,We.index+2)),$e)return{type:"em",raw:we.slice(0,$e[0].length),text:we.slice(1,$e[0].length-1)}}},Ee.codespan=function(we){var Ae=this.rules.inline.code.exec(we);if(Ae){var Ue=Ae[2].replace(/\n/g," "),We=/[^ ]/.test(Ue),Je=Ue.startsWith(" ")&&Ue.endsWith(" ");return We&&Je&&(Ue=Ue.substring(1,Ue.length-1)),Ue=ie(Ue,!0),{type:"codespan",raw:Ae[0],text:Ue}}},Ee.br=function(we){var Ae=this.rules.inline.br.exec(we);if(Ae)return{type:"br",raw:Ae[0]}},Ee.del=function(we){var Ae=this.rules.inline.del.exec(we);if(Ae)return{type:"del",raw:Ae[0],text:Ae[1]}},Ee.autolink=function(we,Ae){var Ue=this.rules.inline.autolink.exec(we);if(Ue){var We,Je;return Ue[2]==="@"?(We=ie(this.options.mangle?Ae(Ue[1]):Ue[1]),Je="mailto:"+We):(We=ie(Ue[1]),Je=We),{type:"link",raw:Ue[0],text:We,href:Je,tokens:[{type:"text",raw:We,text:We}]}}},Ee.url=function(we,Ae){var Ue;if(Ue=this.rules.inline.url.exec(we)){var We,Je;if(Ue[2]==="@")We=ie(this.options.mangle?Ae(Ue[0]):Ue[0]),Je="mailto:"+We;else{var $e;do $e=Ue[0],Ue[0]=this.rules.inline._backpedal.exec(Ue[0])[0];while($e!==Ue[0]);We=ie(Ue[0]),Ue[1]==="www."?Je="http://"+We:Je=We}return{type:"link",raw:Ue[0],text:We,href:Je,tokens:[{type:"text",raw:We,text:We}]}}},Ee.inlineText=function(we,Ae,Ue){var We=this.rules.inline.text.exec(we);if(We){var Je;return Ae?Je=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):ie(We[0]):We[0]:Je=ie(this.options.smartypants?Ue(We[0]):We[0]),{type:"text",raw:We[0],text:Je}}},be}(),de=H.noopTest,ve=H.edit,_e=H.merge,le={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:de,table:de,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};le._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,le._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,le.def=ve(le.def).replace("label",le._label).replace("title",le._title).getRegex(),le.bullet=/(?:[*+-]|\d{1,9}[.)])/,le.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,le.item=ve(le.item,"gm").replace(/bull/g,le.bullet).getRegex(),le.list=ve(le.list).replace(/bull/g,le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+le.def.source+")").getRegex(),le._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",le._comment=/<!--(?!-?>)[\s\S]*?-->/,le.html=ve(le.html,"i").replace("comment",le._comment).replace("tag",le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le.paragraph=ve(le._paragraph).replace("hr",le.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",le._tag).getRegex(),le.blockquote=ve(le.blockquote).replace("paragraph",le.paragraph).getRegex(),le.normal=_e({},le),le.gfm=_e({},le.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*|$)"}),le.gfm.nptable=ve(le.gfm.nptable).replace("hr",le.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",le._tag).getRegex(),le.gfm.table=ve(le.gfm.table).replace("hr",le.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",le._tag).getRegex(),le.pedantic=_e({},le.normal,{html:ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",le._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:de,paragraph:ve(le.normal._paragraph).replace("hr",le.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ee={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:de,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:de,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};ee._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ee.punctuation=ve(ee.punctuation).replace(/punctuation/g,ee._punctuation).getRegex(),ee._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ee._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ee.em.start=ve(ee.em.start).replace(/punctuation/g,ee._punctuation).getRegex(),ee.em.middle=ve(ee.em.middle).replace(/punctuation/g,ee._punctuation).replace(/overlapSkip/g,ee._overlapSkip).getRegex(),ee.em.endAst=ve(ee.em.endAst,"g").replace(/punctuation/g,ee._punctuation).getRegex(),ee.em.endUnd=ve(ee.em.endUnd,"g").replace(/punctuation/g,ee._punctuation).getRegex(),ee.strong.start=ve(ee.strong.start).replace(/punctuation/g,ee._punctuation).getRegex(),ee.strong.middle=ve(ee.strong.middle).replace(/punctuation/g,ee._punctuation).replace(/blockSkip/g,ee._blockSkip).getRegex(),ee.strong.endAst=ve(ee.strong.endAst,"g").replace(/punctuation/g,ee._punctuation).getRegex(),ee.strong.endUnd=ve(ee.strong.endUnd,"g").replace(/punctuation/g,ee._punctuation).getRegex(),ee.blockSkip=ve(ee._blockSkip,"g").getRegex(),ee.overlapSkip=ve(ee._overlapSkip,"g").getRegex(),ee._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ee._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ee._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])?)+(?![-_])/,ee.autolink=ve(ee.autolink).replace("scheme",ee._scheme).replace("email",ee._email).getRegex(),ee._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ee.tag=ve(ee.tag).replace("comment",le._comment).replace("attribute",ee._attribute).getRegex(),ee._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ee._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ee._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ee.link=ve(ee.link).replace("label",ee._label).replace("href",ee._href).replace("title",ee._title).getRegex(),ee.reflink=ve(ee.reflink).replace("label",ee._label).getRegex(),ee.reflinkSearch=ve(ee.reflinkSearch,"g").replace("reflink",ee.reflink).replace("nolink",ee.nolink).getRegex(),ee.normal=_e({},ee),ee.pedantic=_e({},ee.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:ve(/^!?\[(label)\]\((.*?)\)/).replace("label",ee._label).getRegex(),reflink:ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ee._label).getRegex()}),ee.gfm=_e({},ee.normal,{escape:ve(ee.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),ee.gfm.url=ve(ee.gfm.url,"i").replace("email",ee.gfm._extended_email).getRegex(),ee.breaks=_e({},ee.gfm,{br:ve(ee.br).replace("{2,}","*").getRegex(),text:ve(ee.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var U={block:le,inline:ee},K=O.defaults,X=U.block,Q=U.inline;function te(be){return be.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 ae(be){var Ee="",Ne,we,Ae=be.length;for(Ne=0;Ne<Ae;Ne++)we=be.charCodeAt(Ne),Math.random()>.5&&(we="x"+we.toString(16)),Ee+="&#"+we+";";return Ee}var re=function(){function be(Ne){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ne||K,this.options.tokenizer=this.options.tokenizer||new Te,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var we={block:X.normal,inline:Q.normal};this.options.pedantic?(we.block=X.pedantic,we.inline=Q.pedantic):this.options.gfm&&(we.block=X.gfm,this.options.breaks?we.inline=Q.breaks:we.inline=Q.gfm),this.tokenizer.rules=we}be.lex=function(we,Ae){var Ue=new be(Ae);return Ue.lex(we)};var Ee=be.prototype;return Ee.lex=function(we){return we=we.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(we,this.tokens,!0),this.inline(this.tokens),this.tokens},Ee.blockTokens=function(we,Ae,Ue){Ae===void 0&&(Ae=[]),Ue===void 0&&(Ue=!0),we=we.replace(/^ +$/gm,"");for(var We,Je,$e,pt;we;){if(We=this.tokenizer.space(we)){we=we.substring(We.raw.length),We.type&&Ae.push(We);continue}if(We=this.tokenizer.code(we,Ae)){we=we.substring(We.raw.length),We.type?Ae.push(We):(pt=Ae[Ae.length-1],pt.raw+=`
`+We.raw,pt.text+=`
`+We.text);continue}if(We=this.tokenizer.fences(we)){we=we.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.heading(we)){we=we.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.nptable(we)){we=we.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.hr(we)){we=we.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.blockquote(we)){we=we.substring(We.raw.length),We.tokens=this.blockTokens(We.text,[],Ue),Ae.push(We);continue}if(We=this.tokenizer.list(we)){for(we=we.substring(We.raw.length),$e=We.items.length,Je=0;Je<$e;Je++)We.items[Je].tokens=this.blockTokens(We.items[Je].text,[],!1);Ae.push(We);continue}if(We=this.tokenizer.html(we)){we=we.substring(We.raw.length),Ae.push(We);continue}if(Ue&&(We=this.tokenizer.def(we))){we=we.substring(We.raw.length),this.tokens.links[We.tag]||(this.tokens.links[We.tag]={href:We.href,title:We.title});continue}if(We=this.tokenizer.table(we)){we=we.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.lheading(we)){we=we.substring(We.raw.length),Ae.push(We);continue}if(Ue&&(We=this.tokenizer.paragraph(we))){we=we.substring(We.raw.length),Ae.push(We);continue}if(We=this.tokenizer.text(we,Ae)){we=we.substring(We.raw.length),We.type?Ae.push(We):(pt=Ae[Ae.length-1],pt.raw+=`
`+We.raw,pt.text+=`
`+We.text);continue}if(we){var Jt="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(Jt);break}else throw new Error(Jt)}}return Ae},Ee.inline=function(we){var Ae,Ue,We,Je,$e,pt,Jt=we.length;for(Ae=0;Ae<Jt;Ae++){pt=we[Ae];switch(pt.type){case"paragraph":case"text":case"heading":{pt.tokens=[],this.inlineTokens(pt.text,pt.tokens);break}case"table":{for(pt.tokens={header:[],cells:[]},Je=pt.header.length,Ue=0;Ue<Je;Ue++)pt.tokens.header[Ue]=[],this.inlineTokens(pt.header[Ue],pt.tokens.header[Ue]);for(Je=pt.cells.length,Ue=0;Ue<Je;Ue++)for($e=pt.cells[Ue],pt.tokens.cells[Ue]=[],We=0;We<$e.length;We++)pt.tokens.cells[Ue][We]=[],this.inlineTokens($e[We],pt.tokens.cells[Ue][We]);break}case"blockquote":{this.inline(pt.tokens);break}case"list":{for(Je=pt.items.length,Ue=0;Ue<Je;Ue++)this.inline(pt.items[Ue].tokens);break}}}return we},Ee.inlineTokens=function(we,Ae,Ue,We,Je){Ae===void 0&&(Ae=[]),Ue===void 0&&(Ue=!1),We===void 0&&(We=!1),Je===void 0&&(Je="");var $e,pt=we,Jt;if(this.tokens.links){var fn=Object.keys(this.tokens.links);if(fn.length>0)for(;(Jt=this.tokenizer.rules.inline.reflinkSearch.exec(pt))!=null;)fn.includes(Jt[0].slice(Jt[0].lastIndexOf("[")+1,-1))&&(pt=pt.slice(0,Jt.index)+"["+"a".repeat(Jt[0].length-2)+"]"+pt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Jt=this.tokenizer.rules.inline.blockSkip.exec(pt))!=null;)pt=pt.slice(0,Jt.index)+"["+"a".repeat(Jt[0].length-2)+"]"+pt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;we;){if($e=this.tokenizer.escape(we)){we=we.substring($e.raw.length),Ae.push($e);continue}if($e=this.tokenizer.tag(we,Ue,We)){we=we.substring($e.raw.length),Ue=$e.inLink,We=$e.inRawBlock,Ae.push($e);continue}if($e=this.tokenizer.link(we)){we=we.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,We)),Ae.push($e);continue}if($e=this.tokenizer.reflink(we,this.tokens.links)){we=we.substring($e.raw.length),$e.type==="link"&&($e.tokens=this.inlineTokens($e.text,[],!0,We)),Ae.push($e);continue}if($e=this.tokenizer.strong(we,pt,Je)){we=we.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],Ue,We),Ae.push($e);continue}if($e=this.tokenizer.em(we,pt,Je)){we=we.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],Ue,We),Ae.push($e);continue}if($e=this.tokenizer.codespan(we)){we=we.substring($e.raw.length),Ae.push($e);continue}if($e=this.tokenizer.br(we)){we=we.substring($e.raw.length),Ae.push($e);continue}if($e=this.tokenizer.del(we)){we=we.substring($e.raw.length),$e.tokens=this.inlineTokens($e.text,[],Ue,We),Ae.push($e);continue}if($e=this.tokenizer.autolink(we,ae)){we=we.substring($e.raw.length),Ae.push($e);continue}if(!Ue&&($e=this.tokenizer.url(we,ae))){we=we.substring($e.raw.length),Ae.push($e);continue}if($e=this.tokenizer.inlineText(we,We,te)){we=we.substring($e.raw.length),Je=$e.raw.slice(-1),Ae.push($e);continue}if(we){var qt="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(qt);break}else throw new Error(qt)}}return Ae},E(be,null,[{key:"rules",get:function(){return{block:X,inline:Q}}}]),be}(),$=O.defaults,Z=H.cleanUrl,fe=H.escape,me=function(){function be(Ne){this.options=Ne||$}var Ee=be.prototype;return Ee.code=function(we,Ae,Ue){var We=(Ae||"").match(/\S*/)[0];if(this.options.highlight){var Je=this.options.highlight(we,We);Je!=null&&Je!==we&&(Ue=!0,we=Je)}return We?'<pre><code class="'+this.options.langPrefix+fe(We,!0)+'">'+(Ue?we:fe(we,!0))+`</code></pre>
`:"<pre><code>"+(Ue?we:fe(we,!0))+`</code></pre>
`},Ee.blockquote=function(we){return`<blockquote>
`+we+`</blockquote>
`},Ee.html=function(we){return we},Ee.heading=function(we,Ae,Ue,We){return this.options.headerIds?"<h"+Ae+' id="'+this.options.headerPrefix+We.slug(Ue)+'">'+we+"</h"+Ae+`>
`:"<h"+Ae+">"+we+"</h"+Ae+`>
`},Ee.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Ee.list=function(we,Ae,Ue){var We=Ae?"ol":"ul",Je=Ae&&Ue!==1?' start="'+Ue+'"':"";return"<"+We+Je+`>
`+we+"</"+We+`>
`},Ee.listitem=function(we){return"<li>"+we+`</li>
`},Ee.checkbox=function(we){return"<input "+(we?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ee.paragraph=function(we){return"<p>"+we+`</p>
`},Ee.table=function(we,Ae){return Ae&&(Ae="<tbody>"+Ae+"</tbody>"),`<table>
<thead>
`+we+`</thead>
`+Ae+`</table>
`},Ee.tablerow=function(we){return`<tr>
`+we+`</tr>
`},Ee.tablecell=function(we,Ae){var Ue=Ae.header?"th":"td",We=Ae.align?"<"+Ue+' align="'+Ae.align+'">':"<"+Ue+">";return We+we+"</"+Ue+`>
`},Ee.strong=function(we){return"<strong>"+we+"</strong>"},Ee.em=function(we){return"<em>"+we+"</em>"},Ee.codespan=function(we){return"<code>"+we+"</code>"},Ee.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ee.del=function(we){return"<del>"+we+"</del>"},Ee.link=function(we,Ae,Ue){if(we=Z(this.options.sanitize,this.options.baseUrl,we),we===null)return Ue;var We='<a href="'+fe(we)+'"';return Ae&&(We+=' title="'+Ae+'"'),We+=">"+Ue+"</a>",We},Ee.image=function(we,Ae,Ue){if(we=Z(this.options.sanitize,this.options.baseUrl,we),we===null)return Ue;var We='<img src="'+we+'" alt="'+Ue+'"';return Ae&&(We+=' title="'+Ae+'"'),We+=this.options.xhtml?"/>":">",We},Ee.text=function(we){return we},be}(),Oe=function(){function be(){}var Ee=be.prototype;return Ee.strong=function(we){return we},Ee.em=function(we){return we},Ee.codespan=function(we){return we},Ee.del=function(we){return we},Ee.html=function(we){return we},Ee.text=function(we){return we},Ee.link=function(we,Ae,Ue){return""+Ue},Ee.image=function(we,Ae,Ue){return""+Ue},Ee.br=function(){return""},be}(),He=function(){function be(){this.seen={}}var Ee=be.prototype;return Ee.slug=function(we){var Ae=we.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ae)){var Ue=Ae;do this.seen[Ue]++,Ae=Ue+"-"+this.seen[Ue];while(this.seen.hasOwnProperty(Ae))}return this.seen[Ae]=0,Ae},be}(),Qe=O.defaults,ot=H.unescape,st=function(){function be(Ne){this.options=Ne||Qe,this.options.renderer=this.options.renderer||new me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Oe,this.slugger=new He}be.parse=function(we,Ae){var Ue=new be(Ae);return Ue.parse(we)};var Ee=be.prototype;return Ee.parse=function(we,Ae){Ae===void 0&&(Ae=!0);var Ue="",We,Je,$e,pt,Jt,fn,qt,St,Be,at,it,Me,Ve,xt,_t,At,Ot,Ct,Bt=we.length;for(We=0;We<Bt;We++){at=we[We];switch(at.type){case"space":continue;case"hr":{Ue+=this.renderer.hr();continue}case"heading":{Ue+=this.renderer.heading(this.parseInline(at.tokens),at.depth,ot(this.parseInline(at.tokens,this.textRenderer)),this.slugger);continue}case"code":{Ue+=this.renderer.code(at.text,at.lang,at.escaped);continue}case"table":{for(St="",qt="",pt=at.header.length,Je=0;Je<pt;Je++)qt+=this.renderer.tablecell(this.parseInline(at.tokens.header[Je]),{header:!0,align:at.align[Je]});for(St+=this.renderer.tablerow(qt),Be="",pt=at.cells.length,Je=0;Je<pt;Je++){for(fn=at.tokens.cells[Je],qt="",Jt=fn.length,$e=0;$e<Jt;$e++)qt+=this.renderer.tablecell(this.parseInline(fn[$e]),{header:!1,align:at.align[$e]});Be+=this.renderer.tablerow(qt)}Ue+=this.renderer.table(St,Be);continue}case"blockquote":{Be=this.parse(at.tokens),Ue+=this.renderer.blockquote(Be);continue}case"list":{for(it=at.ordered,Me=at.start,Ve=at.loose,pt=at.items.length,Be="",Je=0;Je<pt;Je++)_t=at.items[Je],At=_t.checked,Ot=_t.task,xt="",_t.task&&(Ct=this.renderer.checkbox(At),Ve?_t.tokens.length>0&&_t.tokens[0].type==="text"?(_t.tokens[0].text=Ct+" "+_t.tokens[0].text,_t.tokens[0].tokens&&_t.tokens[0].tokens.length>0&&_t.tokens[0].tokens[0].type==="text"&&(_t.tokens[0].tokens[0].text=Ct+" "+_t.tokens[0].tokens[0].text)):_t.tokens.unshift({type:"text",text:Ct}):xt+=Ct),xt+=this.parse(_t.tokens,Ve),Be+=this.renderer.listitem(xt,Ot,At);Ue+=this.renderer.list(Be,it,Me);continue}case"html":{Ue+=this.renderer.html(at.text);continue}case"paragraph":{Ue+=this.renderer.paragraph(this.parseInline(at.tokens));continue}case"text":{for(Be=at.tokens?this.parseInline(at.tokens):at.text;We+1<Bt&&we[We+1].type==="text";)at=we[++We],Be+=`
`+(at.tokens?this.parseInline(at.tokens):at.text);Ue+=Ae?this.renderer.paragraph(Be):Be;continue}default:{var It='Token with "'+at.type+'" type was not found.';if(this.options.silent){console.error(It);return}else throw new Error(It)}}}return Ue},Ee.parseInline=function(we,Ae){Ae=Ae||this.renderer;var Ue="",We,Je,$e=we.length;for(We=0;We<$e;We++){Je=we[We];switch(Je.type){case"escape":{Ue+=Ae.text(Je.text);break}case"html":{Ue+=Ae.html(Je.text);break}case"link":{Ue+=Ae.link(Je.href,Je.title,this.parseInline(Je.tokens,Ae));break}case"image":{Ue+=Ae.image(Je.href,Je.title,Je.text);break}case"strong":{Ue+=Ae.strong(this.parseInline(Je.tokens,Ae));break}case"em":{Ue+=Ae.em(this.parseInline(Je.tokens,Ae));break}case"codespan":{Ue+=Ae.codespan(Je.text);break}case"br":{Ue+=Ae.br();break}case"del":{Ue+=Ae.del(this.parseInline(Je.tokens,Ae));break}case"text":{Ue+=Ae.text(Je.text);break}default:{var pt='Token with "'+Je.type+'" type was not found.';if(this.options.silent){console.error(pt);return}else throw new Error(pt)}}}return Ue},be}(),ct=H.merge,dt=H.checkSanitizeDeprecation,Xe=H.escape,ke=O.getDefaults,lt=O.changeDefaults,Mt=O.defaults;function Ce(be,Ee,Ne){if(typeof be=="undefined"||be===null)throw new Error("marked(): input parameter is undefined or null");if(typeof be!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(be)+", string expected");if(typeof Ee=="function"&&(Ne=Ee,Ee=null),Ee=ct({},Ce.defaults,Ee||{}),dt(Ee),Ne){var we=Ee.highlight,Ae;try{Ae=re.lex(be,Ee)}catch($e){return Ne($e)}var Ue=function(pt){var Jt;if(!pt)try{Jt=st.parse(Ae,Ee)}catch(fn){pt=fn}return Ee.highlight=we,pt?Ne(pt):Ne(null,Jt)};if(!we||we.length<3)return Ue();if(delete Ee.highlight,!Ae.length)return Ue();var We=0;Ce.walkTokens(Ae,function($e){$e.type==="code"&&(We++,setTimeout(function(){we($e.text,$e.lang,function(pt,Jt){if(pt)return Ue(pt);Jt!=null&&Jt!==$e.text&&($e.text=Jt,$e.escaped=!0),We--,We===0&&Ue()})},0))}),We===0&&Ue();return}try{var Je=re.lex(be,Ee);return Ee.walkTokens&&Ce.walkTokens(Je,Ee.walkTokens),st.parse(Je,Ee)}catch($e){if($e.message+=`
Please report this to https://github.com/markedjs/marked.`,Ee.silent)return"<p>An error occurred:</p><pre>"+Xe($e.message+"",!0)+"</pre>";throw $e}}Ce.options=Ce.setOptions=function(be){return ct(Ce.defaults,be),lt(Ce.defaults),Ce},Ce.getDefaults=ke,Ce.defaults=Mt,Ce.use=function(be){var Ee=ct({},be);if(be.renderer&&function(){var we=Ce.defaults.renderer||new me,Ae=function(Je){var $e=we[Je];we[Je]=function(){for(var pt=arguments.length,Jt=new Array(pt),fn=0;fn<pt;fn++)Jt[fn]=arguments[fn];var qt=be.renderer[Je].apply(we,Jt);return qt===!1&&(qt=$e.apply(we,Jt)),qt}};for(var Ue in be.renderer)Ae(Ue);Ee.renderer=we}(),be.tokenizer&&function(){var we=Ce.defaults.tokenizer||new Te,Ae=function(Je){var $e=we[Je];we[Je]=function(){for(var pt=arguments.length,Jt=new Array(pt),fn=0;fn<pt;fn++)Jt[fn]=arguments[fn];var qt=be.tokenizer[Je].apply(we,Jt);return qt===!1&&(qt=$e.apply(we,Jt)),qt}};for(var Ue in be.tokenizer)Ae(Ue);Ee.tokenizer=we}(),be.walkTokens){var Ne=Ce.defaults.walkTokens;Ee.walkTokens=function(we){be.walkTokens(we),Ne&&Ne(we)}}Ce.setOptions(Ee)},Ce.walkTokens=function(be,Ee){for(var Ne=m(be),we;!(we=Ne()).done;){var Ae=we.value;Ee(Ae);switch(Ae.type){case"table":{for(var Ue=m(Ae.tokens.header),We;!(We=Ue()).done;){var Je=We.value;Ce.walkTokens(Je,Ee)}for(var $e=m(Ae.tokens.cells),pt;!(pt=$e()).done;)for(var Jt=pt.value,fn=m(Jt),qt;!(qt=fn()).done;){var St=qt.value;Ce.walkTokens(St,Ee)}break}case"list":{Ce.walkTokens(Ae.items,Ee);break}default:Ae.tokens&&Ce.walkTokens(Ae.tokens,Ee)}}},Ce.Parser=st,Ce.parser=st.parse,Ce.Renderer=me,Ce.TextRenderer=Oe,Ce.Lexer=re,Ce.lexer=re.lex,Ce.Tokenizer=Te,Ce.Slugger=He,Ce.parse=Ce;var he=Ce;return he})},E4JC:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.StreamCipher,m=E.algo,y=[],O=[],g=[],e=m.Rabbit=v.extend({_doReset:function(){for(var r=this._key.words,c=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 a=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],o=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++)o[n]^=a[n+4&7];if(c){var l=c.words,d=l[0],h=l[1],s=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,u=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,w=s>>>16|u&4294901760,x=u<<16|s&65535;o[0]^=s,o[1]^=w,o[2]^=u,o[3]^=x,o[4]^=s,o[5]^=w,o[6]^=u,o[7]^=x;for(var n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(r,c){var n=this._X;f.call(this),y[0]=n[0]^n[5]>>>16^n[3]<<16,y[1]=n[2]^n[7]>>>16^n[5]<<16,y[2]=n[4]^n[1]>>>16^n[7]<<16,y[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)y[a]=(y[a]<<8|y[a]>>>24)&16711935|(y[a]<<24|y[a]>>>8)&4278255360,r[c+a]^=y[a]},blockSize:128/32,ivSize:64/32});function f(){for(var r=this._X,c=this._C,n=0;n<8;n++)O[n]=c[n];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0<O[0]>>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0<O[1]>>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0<O[2]>>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0<O[3]>>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0<O[4]>>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0<O[5]>>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0<O[6]>>>0?1:0)|0,this._b=c[7]>>>0<O[7]>>>0?1:0;for(var n=0;n<8;n++){var a=r[n]+c[n],o=a&65535,l=a>>>16,d=((o*o>>>17)+o*l>>>15)+l*l,h=((a&4294901760)*a|0)+((a&65535)*a|0);g[n]=d^h}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}E.Rabbit=v._createHelper(e)}(),M.Rabbit})},E7E6:function(N,Y){N.exports="data:image/png;base64,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"},E9nw:function(N,Y){N.exports=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var M=document.activeElement,E=[],T=0;T<i.rangeCount;T++)E.push(i.getRangeAt(T));switch(M.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":M.blur();break;default:M=null;break}return i.removeAllRanges(),function(){i.type==="Caret"&&i.removeAllRanges(),i.rangeCount||E.forEach(function(v){i.addRange(v)}),M&&M.focus()}}},ELLl:function(N,Y,i){(function(M){M(i("VrN/"))})(function(M){var E={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=M.Pos;M.defineOption("autoCloseBrackets",!1,function(o,l,d){d&&d!=M.Init&&(o.removeKeyMap(m),o.state.closeBrackets=null),l&&(y(v(l,"pairs")),o.state.closeBrackets=l,o.addKeyMap(m))});function v(o,l){return l=="pairs"&&typeof o=="string"?o:typeof o=="object"&&o[l]!=null?o[l]:E[l]}var m={Backspace:e,Enter:f};function y(o){for(var l=0;l<o.length;l++){var d=o.charAt(l),h="'"+d+"'";m[h]||(m[h]=O(d))}}y(E.pairs+"`");function O(o){return function(l){return c(l,o)}}function g(o){var l=o.state.closeBrackets;if(!l||l.override)return l;var d=o.getModeAt(o.getCursor());return d.closeBrackets||l}function e(o){var l=g(o);if(!l||o.getOption("disableInput"))return M.Pass;for(var d=v(l,"pairs"),h=o.listSelections(),s=0;s<h.length;s++){if(!h[s].empty())return M.Pass;var u=n(o,h[s].head);if(!u||d.indexOf(u)%2!=0)return M.Pass}for(var s=h.length-1;s>=0;s--){var w=h[s].head;o.replaceRange("",T(w.line,w.ch-1),T(w.line,w.ch+1),"+delete")}}function f(o){var l=g(o),d=l&&v(l,"explode");if(!d||o.getOption("disableInput"))return M.Pass;for(var h=o.listSelections(),s=0;s<h.length;s++){if(!h[s].empty())return M.Pass;var u=n(o,h[s].head);if(!u||d.indexOf(u)%2!=0)return M.Pass}o.operation(function(){var w=o.lineSeparator()||`
`;o.replaceSelection(w+w,null),o.execCommand("goCharLeft"),h=o.listSelections();for(var x=0;x<h.length;x++){var b=h[x].head.line;o.indentLine(b,null,!0),o.indentLine(b+1,null,!0)}})}function r(o){var l=M.cmpPos(o.anchor,o.head)>0;return{anchor:new T(o.anchor.line,o.anchor.ch+(l?-1:1)),head:new T(o.head.line,o.head.ch+(l?1:-1))}}function c(o,l){var d=g(o);if(!d||o.getOption("disableInput"))return M.Pass;var h=v(d,"pairs"),s=h.indexOf(l);if(s==-1)return M.Pass;for(var u=v(d,"closeBefore"),w=v(d,"triples"),x=h.charAt(s+1)==l,b=o.listSelections(),P=s%2==0,R,C=0;C<b.length;C++){var S=b[C],_=S.head,A,j=o.getRange(_,T(_.line,_.ch+1));if(P&&!S.empty())A="surround";else if((x||!P)&&j==l)x&&a(o,_)?A="both":w.indexOf(l)>=0&&o.getRange(_,T(_.line,_.ch+3))==l+l+l?A="skipThree":A="skip";else if(x&&_.ch>1&&w.indexOf(l)>=0&&o.getRange(T(_.line,_.ch-2),_)==l+l){if(_.ch>2&&/\bstring/.test(o.getTokenTypeAt(T(_.line,_.ch-2))))return M.Pass;A="addFour"}else if(x){var I=_.ch==0?" ":o.getRange(T(_.line,_.ch-1),_);if(!M.isWordChar(j)&&I!=l&&!M.isWordChar(I))A="both";else return M.Pass}else if(P&&(j.length===0||/\s/.test(j)||u.indexOf(j)>-1))A="both";else return M.Pass;if(!R)R=A;else if(R!=A)return M.Pass}var k=s%2?h.charAt(s-1):l,J=s%2?l:h.charAt(s+1);o.operation(function(){if(R=="skip")o.execCommand("goCharRight");else if(R=="skipThree")for(var G=0;G<3;G++)o.execCommand("goCharRight");else if(R=="surround"){for(var D=o.getSelections(),G=0;G<D.length;G++)D[G]=k+D[G]+J;o.replaceSelections(D,"around"),D=o.listSelections().slice();for(var G=0;G<D.length;G++)D[G]=r(D[G]);o.setSelections(D)}else R=="both"?(o.replaceSelection(k+J,null),o.triggerElectric(k+J),o.execCommand("goCharLeft")):R=="addFour"&&(o.replaceSelection(k+k+k+k,"before"),o.execCommand("goCharRight"))})}function n(o,l){var d=o.getRange(T(l.line,l.ch-1),T(l.line,l.ch+1));return d.length==2?d:null}function a(o,l){var d=o.getTokenAt(T(l.line,l.ch+1));return/\bstring/.test(d.type)&&d.start==l.ch&&(l.ch==0||!/\bstring/.test(o.getTokenTypeAt(l)))}})},ELcG:function(N,Y,i){(function(M,E){N.exports=Y=E(i("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(E){var T=M,v=T.lib,m=v.WordArray,y=v.Hasher,O=T.algo,g=m.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=m.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=m.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=m.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=m.create([0,1518500249,1859775393,2400959708,2840853838]),n=m.create([1352829926,1548603684,1836072691,2053994217,0]),a=O.RIPEMD160=y.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,x){for(var b=0;b<16;b++){var P=x+b,R=w[P];w[P]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var C=this._hash.words,S=c.words,_=n.words,A=g.words,j=e.words,I=f.words,k=r.words,J,G,D,H,W,L,z,ie,ce,ue;L=J=C[0],z=G=C[1],ie=D=C[2],ce=H=C[3],ue=W=C[4];for(var xe,b=0;b<80;b+=1)xe=J+w[x+A[b]]|0,b<16?xe+=o(G,D,H)+S[0]:b<32?xe+=l(G,D,H)+S[1]:b<48?xe+=d(G,D,H)+S[2]:b<64?xe+=h(G,D,H)+S[3]:xe+=s(G,D,H)+S[4],xe=xe|0,xe=u(xe,I[b]),xe=xe+W|0,J=W,W=H,H=u(D,10),D=G,G=xe,xe=L+w[x+j[b]]|0,b<16?xe+=s(z,ie,ce)+_[0]:b<32?xe+=h(z,ie,ce)+_[1]:b<48?xe+=d(z,ie,ce)+_[2]:b<64?xe+=l(z,ie,ce)+_[3]:xe+=o(z,ie,ce)+_[4],xe=xe|0,xe=u(xe,k[b]),xe=xe+ue|0,L=ue,ue=ce,ce=u(ie,10),ie=z,z=xe;xe=C[1]+D+ce|0,C[1]=C[2]+H+ue|0,C[2]=C[3]+W+L|0,C[3]=C[4]+J+z|0,C[4]=C[0]+G+ie|0,C[0]=xe},_doFinalize:function(){var w=this._data,x=w.words,b=this._nDataBytes*8,P=w.sigBytes*8;x[P>>>5]|=128<<24-P%32,x[(P+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w.sigBytes=(x.length+1)*4,this._process();for(var R=this._hash,C=R.words,S=0;S<5;S++){var _=C[S];C[S]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return R},clone:function(){var w=y.clone.call(this);return w._hash=this._hash.clone(),w}});function o(w,x,b){return w^x^b}function l(w,x,b){return w&x|~w&b}function d(w,x,b){return(w|~x)^b}function h(w,x,b){return w&b|x&~b}function s(w,x,b){return w^(x|~b)}function u(w,x){return w<<x|w>>>32-x}T.RIPEMD160=y._createHelper(a),T.HmacRIPEMD160=y._createHmacHelper(a)}(Math),M.RIPEMD160})},ETIr:function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.WordArray,m=E.enc,y=m.Base64={stringify:function(g){var e=g.words,f=g.sigBytes,r=this._map;g.clamp();for(var c=[],n=0;n<f;n+=3)for(var a=e[n>>>2]>>>24-n%4*8&255,o=e[n+1>>>2]>>>24-(n+1)%4*8&255,l=e[n+2>>>2]>>>24-(n+2)%4*8&255,d=a<<16|o<<8|l,h=0;h<4&&n+h*.75<f;h++)c.push(r.charAt(d>>>6*(3-h)&63));var s=r.charAt(64);if(s)for(;c.length%4;)c.push(s);return c.join("")},parse:function(g){var e=g.length,f=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var c=0;c<f.length;c++)r[f.charCodeAt(c)]=c}var n=f.charAt(64);if(n){var a=g.indexOf(n);a!==-1&&(e=a)}return O(g,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function O(g,e,f){for(var r=[],c=0,n=0;n<e;n++)if(n%4){var a=f[g.charCodeAt(n-1)]<<n%4*2,o=f[g.charCodeAt(n)]>>>6-n%4*2,l=a|o;r[c>>>2]|=l<<24-c%4*8,c++}return v.create(r,c)}}(),M.enc.Base64})},EkPF:function(N,Y,i){N.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(){if(typeof ArrayBuffer!="function")return;var E=M,T=E.lib,v=T.WordArray,m=v.init,y=v.init=function(O){if(O instanceof ArrayBuffer&&(O=new Uint8Array(O)),(O instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&O instanceof Uint8ClampedArray||O instanceof Int16Array||O instanceof Uint16Array||O instanceof Int32Array||O instanceof Uint32Array||O instanceof Float32Array||O instanceof Float64Array)&&(O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength)),O instanceof Uint8Array){for(var g=O.byteLength,e=[],f=0;f<g;f++)e[f>>>2]|=O[f]<<24-f%4*8;m.call(this,e,g)}else m.apply(this,arguments)};y.prototype=v}(),M.lib.WordArray})},FOrL:function(N,Y,i){N.exports=i.p+"static/nodata.a6b3f948.png"},FPkq:function(N,Y,i){N.exports=i.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(N,Y){N.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},FWmy:function(N,Y,i){"use strict";i.d(Y,"a",function(){return M});function M(E,T){if(!E)throw new Error(T?`Assertion failed (${T})`:"Assertion Failed")}},Fhpe:function(N,Y,i){N.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(N,Y,i){"use strict";var M=i("+L6B"),E=i("2/Rp"),T=i("DZo9"),v=i("8z0m"),m=i("miYZ"),y=i("tsqr"),O=i("9og8"),g=i("2qtc"),e=i("kLXV"),f=i("y8nQ"),r=i("Vl3Y"),c=i("tJVT"),n=i("PpiC"),a=i("5NDa"),o=i("5rEg"),l=i("WmNS"),d=i.n(l),h=i("q1tI"),s=i.n(h),u=i("9kvl"),w=i("m3rI"),x=i("FPkq"),b=i.n(x),P=i("qB8g"),R=i.n(P),C=o.a.TextArea,S=function(A){var j=A.newShixuns,I=A.globalSetting,k=A.loading,J=A.dispatch,G=Object(n.a)(A,["newShixuns","globalSetting","loading","dispatch"]),D=r.a.useForm(),H=Object(c.a)(D,1),W=H[0],L=Object(h.useState)([]),z=Object(c.a)(L,2),ie=z[0],ce=z[1],ue=function(le){var ee=["uploading","done","removed"];ee.includes(le.file.status)&&ce(le.fileList)},xe=function(le){if(!le.percent||le.percent==100){var ee,U=(ee=le.response)===null||ee===void 0?void 0:ee.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 K=Object(O.a)(d.a.mark(function Q(){var te;return d.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,J({type:"newShixuns/deleteAttachment",payload:{id:U}});case 2:te=re.sent,te&&ce(ie.filter(function($){var Z;return((Z=$.response)===null||Z===void 0?void 0:Z.id)!==U}));case 4:case"end":return re.stop()}},Q)}));function X(){return K.apply(this,arguments)}return X}()}),!1}},Te=function(le){if(ie.length)return!1;var ee=le.size/1024/1024>50;return ee?(y.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},de=function(){var _e=Object(O.a)(d.a.mark(function le(ee){var U,K,X,Q,te,ae,re,$;return d.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return X=ee||{},Q=X.language,te=X.env,ae=X.mode,re=X.code,fe.next=3,J({type:"newShixuns/applyShixunMirror",payload:{language:Q,runtime:te,run_method:ae,attachment_id:ie==null||((U=ie[0])===null||U===void 0||((K=U.response)===null||K===void 0))?void 0:K.id}});case 3:$=fe.sent,J({type:"newShixuns/setActionTabs",payload:{}}),$&&y.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return fe.stop()}},le)}));return function(ee){return _e.apply(this,arguments)}}(),ve=function(){W.resetFields(),ce([])};return s.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:j.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:ve},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:b.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:W,labelCol:{span:4},wrapperCol:{span:20},onFinish:de},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(C,{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(C,{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(C,{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(v.a,{fileList:ie,action:"".concat(w.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:ue,onRemove:xe,beforeUpload:Te,withCredentials:!0},s.a.createElement("span",{className:"".concat(R.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(R.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:R.a.footerWrap},s.a.createElement(r.a.Item,null,s.a.createElement(E.a,{className:"mr5",size:"large",onClick:function(){J({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(E.a,{size:"large",type:"primary",htmlType:"submit",loading:k["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};Y.a=Object(u.a)(function(_){var A=_.newShixuns,j=_.loading,I=_.globalSetting;return{newShixuns:A,globalSetting:I,loading:j.effects}})(S)},Fxgj:function(N,Y,i){},GABl:function(N,Y){N.exports="data:image/png;base64,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"},GRuw:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("lPiR"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.WordArray,m=E.algo,y=m.SHA256,O=m.SHA224=y.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var g=y._doFinalize.call(this);return g.sigBytes-=4,g}});E.SHA224=y._createHelper(O),E.HmacSHA224=y._createHmacHelper(O)}(),M.SHA224})},GfqC:function(N,Y,i){"use strict";var M=i("q1tI"),E=i.n(M),T=i("TSYQ"),v=i.n(T);function m(H,W){var L="cannot "+H.method+" "+H.action+" "+W.status+"'",z=new Error(L);return z.status=W.status,z.method=H.method,z.url=H.action,z}function y(H){var W=H.responseText||H.response;if(!W)return W;try{return JSON.parse(W)}catch(L){return W}}function O(H){var W=new XMLHttpRequest;H.onProgress&&W.upload&&(W.upload.onprogress=function(ce){ce.total>0&&(ce.percent=ce.loaded/ce.total*100),H.onProgress(ce)});var L=new FormData;H.data&&Object.keys(H.data).forEach(function(ie){var ce=H.data[ie];if(Array.isArray(ce)){ce.forEach(function(ue){L.append(ie+"[]",ue)});return}L.append(ie,H.data[ie])}),H.file instanceof Blob?L.append(H.filename,H.file,H.file.name):L.append(H.filename,H.file),W.onerror=function(ce){H.onError(ce)},W.onload=function(){return W.status<200||W.status>=300?H.onError(m(H,W),y(W)):H.onSuccess(y(W),W)},W.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in W&&(W.withCredentials=!0);var z=H.headers||{};return z["X-Requested-With"]!==null&&W.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(z).forEach(function(ie){z[ie]!==null&&W.setRequestHeader(ie,z[ie])}),W.send(L),{abort:function(){W.abort()}}}var g=+new Date,e=0;function f(){return"rc-upload-"+g+"-"+ ++e}function r(H,W){return H.indexOf(W,H.length-W.length)!==-1}var c=function(H,W){if(H&&W){var L=Array.isArray(W)?W:W.split(","),z=H.name||"",ie=H.type||"",ce=ie.replace(/\/.*$/,"");return L.some(function(ue){var xe=ue.trim();return xe.charAt(0)==="."?r(z.toLowerCase(),xe.toLowerCase()):/\/\*$/.test(xe)?ce===xe.replace(/\/.*$/,""):ie===xe})}return!0};function n(H,W){var L=H.createReader(),z=[];function ie(){L.readEntries(function(ce){var ue=Array.prototype.slice.apply(ce);z=z.concat(ue);var xe=!ue.length;xe?W(z):ie()})}ie()}var a=function(W,L,z){var ie=function ce(ue,xe){xe=xe||"",ue.isFile?ue.file(function(Te){z(Te)&&(ue.fullPath&&!Te.webkitRelativePath&&(Object.defineProperties(Te,{webkitRelativePath:{writable:!0}}),Te.webkitRelativePath=ue.fullPath.replace(/^\//,""),Object.defineProperties(Te,{webkitRelativePath:{writable:!1}})),L([Te]))}):ue.isDirectory&&n(ue,function(Te){Te.forEach(function(de){ce(de,""+xe+ue.name+"/")})})};W.forEach(function(ce){ie(ce.webkitGetAsEntry())})},o=a,l=Object.assign||function(H){for(var W=1;W<arguments.length;W++){var L=arguments[W];for(var z in L)Object.prototype.hasOwnProperty.call(L,z)&&(H[z]=L[z])}return H},d=function(){function H(W,L){var z=[],ie=!0,ce=!1,ue=void 0;try{for(var xe=W[Symbol.iterator](),Te;!(ie=(Te=xe.next()).done)&&!(z.push(Te.value),L&&z.length===L);ie=!0);}catch(de){ce=!0,ue=de}finally{try{!ie&&xe.return&&xe.return()}finally{if(ce)throw ue}}return z}return function(W,L){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return H(W,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function H(W,L){for(var z=0;z<L.length;z++){var ie=L[z];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(W,ie.key,ie)}}return function(W,L,z){return L&&H(W.prototype,L),z&&H(W,z),W}}();function s(H,W,L){return W in H?Object.defineProperty(H,W,{value:L,enumerable:!0,configurable:!0,writable:!0}):H[W]=L,H}function u(H,W){var L={};for(var z in H){if(W.indexOf(z)>=0)continue;if(!Object.prototype.hasOwnProperty.call(H,z))continue;L[z]=H[z]}return L}function w(H,W){if(!(H instanceof W))throw new TypeError("Cannot call a class as a function")}function x(H,W){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:H}function b(H,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);H.prototype=Object.create(W&&W.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(H,W):H.__proto__=W)}var P=function(W){return Object.keys(W).reduce(function(L,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-"||z==="role")&&(L[z]=W[z]),L},{})},R=function(H){b(W,H);function W(){var L,z,ie,ce;w(this,W);for(var ue=arguments.length,xe=Array(ue),Te=0;Te<ue;Te++)xe[Te]=arguments[Te];return ce=(z=(ie=x(this,(L=W.__proto__||Object.getPrototypeOf(W)).call.apply(L,[this].concat(xe))),ie),ie.state={uid:f()},ie.reqs={},ie.onChange=function(de){var ve=de.target.files;ie.uploadFiles(ve),ie.reset()},ie.onClick=function(de){var ve=ie.fileInput;if(!ve)return;var _e=ie.props,le=_e.children,ee=_e.onClick;le&&le.type==="button"&&(ve.parentNode.focus(),ve.parentNode.querySelector("button").blur()),ve.click(),ee&&ee(de)},ie.onKeyDown=function(de){de.key==="Enter"&&ie.onClick()},ie.onFileDrop=function(de){var ve=ie.props.multiple;if(de.preventDefault(),de.type==="dragover")return;if(ie.props.directory)o(Array.prototype.slice.call(de.dataTransfer.items),ie.uploadFiles,function(le){return c(le,ie.props.accept)});else{var _e=Array.prototype.slice.call(de.dataTransfer.files).filter(function(le){return c(le,ie.props.accept)});ve===!1&&(_e=_e.slice(0,1)),ie.uploadFiles(_e)}},ie.uploadFiles=function(de){var ve=Array.prototype.slice.call(de);ve.map(function(_e){return _e.uid=f(),_e}).forEach(function(_e){ie.upload(_e,ve)})},ie.saveFileInput=function(de){ie.fileInput=de},z),x(ie,ce)}return h(W,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(z,ie){var ce=this,ue=this.props;if(!ue.beforeUpload)return setTimeout(function(){return ce.post(z)},0);var xe=ue.beforeUpload(z,ie);xe&&xe.then?xe.then(function(Te){var de=Object.prototype.toString.call(Te);return de==="[object File]"||de==="[object Blob]"?ce.post(Te):ce.post(z)}).catch(function(Te){console.log(Te)}):xe!==!1&&setTimeout(function(){return ce.post(z)},0);return}},{key:"post",value:function(z){var ie=this;if(!this._isMounted)return;var ce=this.props,ue=ce.onStart,xe=ce.onProgress,Te=ce.transformFile,de=Te===void 0?function(ve){return ve}:Te;new Promise(function(ve){var _e=ce.action;return typeof _e=="function"&&(_e=_e(z)),ve(_e)}).then(function(ve){var _e=z.uid,le=ce.customRequest||O,ee=Promise.resolve(de(z)).then(function(U){var K=ce.data;return typeof K=="function"&&(K=K(U)),Promise.all([U,K])}).catch(function(U){console.error(U)});ee.then(function(U){var K=d(U,2),X=K[0],Q=K[1],te={action:ve,filename:ce.name,data:Q,file:X,headers:ce.headers,withCredentials:ce.withCredentials,method:ce.method||"post",onProgress:xe?function(ae){xe(ae,z)}:null,onSuccess:function(re,$){delete ie.reqs[_e],ce.onSuccess(re,z,$)},onError:function(re,$){delete ie.reqs[_e],ce.onError(re,$,z)}};ue(z),ie.reqs[_e]=le(te)})})}},{key:"reset",value:function(){this.setState({uid:f()})}},{key:"abort",value:function(z){var ie=this.reqs;if(z){var ce=z;z&&z.uid&&(ce=z.uid),ie[ce]&&ie[ce].abort&&ie[ce].abort(),delete ie[ce]}else Object.keys(ie).forEach(function(ue){ie[ue]&&ie[ue].abort&&ie[ue].abort(),delete ie[ue]})}},{key:"render",value:function(){var z,ie=this.props,ce=ie.component,ue=ie.prefixCls,xe=ie.className,Te=ie.disabled,de=ie.id,ve=ie.style,_e=ie.multiple,le=ie.accept,ee=ie.children,U=ie.directory,K=ie.openFileDialogOnClick,X=ie.onMouseEnter,Q=ie.onMouseLeave,te=u(ie,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),ae=v()((z={},s(z,ue,!0),s(z,ue+"-disabled",Te),s(z,xe,xe),z)),re=Te?{}:{onClick:K?this.onClick:function(){},onKeyDown:K?this.onKeyDown:function(){},onMouseEnter:X,onMouseLeave:Q,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return E.a.createElement(ce,l({},re,{className:ae,role:"button",style:ve}),E.a.createElement("input",l({},P(te),{id:de,type:"file",ref:this.saveFileInput,onClick:function(Z){return Z.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:le,directory:U?"directory":null,webkitdirectory:U?"webkitdirectory":null,multiple:_e,onChange:this.onChange})),ee)}}]),W}(M.Component),C=R,S=Object.assign||function(H){for(var W=1;W<arguments.length;W++){var L=arguments[W];for(var z in L)Object.prototype.hasOwnProperty.call(L,z)&&(H[z]=L[z])}return H},_=function(){function H(W,L){for(var z=0;z<L.length;z++){var ie=L[z];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(W,ie.key,ie)}}return function(W,L,z){return L&&H(W.prototype,L),z&&H(W,z),W}}();function A(H,W){if(!(H instanceof W))throw new TypeError("Cannot call a class as a function")}function j(H,W){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:H}function I(H,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);H.prototype=Object.create(W&&W.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(H,W):H.__proto__=W)}function k(){}var J=function(H){I(W,H);function W(){var L,z,ie,ce;A(this,W);for(var ue=arguments.length,xe=Array(ue),Te=0;Te<ue;Te++)xe[Te]=arguments[Te];return ce=(z=(ie=j(this,(L=W.__proto__||Object.getPrototypeOf(W)).call.apply(L,[this].concat(xe))),ie),ie.saveUploader=function(de){ie.uploader=de},z),j(ie,ce)}return _(W,[{key:"abort",value:function(z){this.uploader.abort(z)}},{key:"render",value:function(){return E.a.createElement(C,S({},this.props,{ref:this.saveUploader}))}}]),W}(M.Component);J.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:k,onError:k,onSuccess:k,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var G=J,D=Y.a=G},Gytx:function(N,Y){N.exports=function(M,E,T,v){var m=T?T.call(v,M,E):void 0;if(m!==void 0)return!!m;if(M===E)return!0;if(typeof M!="object"||!M||typeof E!="object"||!E)return!1;var y=Object.keys(M),O=Object.keys(E);if(y.length!==O.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(E),e=0;e<y.length;e++){var f=y[e];if(!g(f))return!1;var r=M[f],c=E[f];if(m=T?T.call(v,r,c,f):void 0,m===!1||m===void 0&&r!==c)return!1}return!0}},HjOm:function(N,Y,i){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.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"},E=M;Y.default=E},HmJG:function(N,Y,i){},HpTS:function(N,Y,i){N.exports=i.p+"static/small_program.f74069ec.png"},HpfO:function(N,Y,i){N.exports={wrap:"wrap___r5XlG",content:"content___1KVgv",mainPathWrap:"mainPathWrap___256K2",colorBlue:"colorBlue___3S7DM"}},I8Z2:function(N,Y,i){"use strict";i.d(Y,"a",function(){return v}),i.d(Y,"b",function(){return n}),i.d(Y,"c",function(){return o});var M=i("q1tI"),E=function(){var l=function(d,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var w in u)u.hasOwnProperty(w)&&(s[w]=u[w])},l(d,h)};return function(d,h){l(d,h);function s(){this.constructor=d}d.prototype=h===null?Object.create(h):(s.prototype=h.prototype,new s)}}(),T=M.createContext(null),v=function(l){E(d,l);function d(){return l!==null&&l.apply(this,arguments)||this}return d.prototype.render=function(){return M.createElement(T.Provider,{value:this.props.store},this.props.children)},d}(M.Component),m=i("Gytx"),y=i.n(m),O=i("2mql"),g=i.n(O),e=function(){var l=function(d,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var w in u)u.hasOwnProperty(w)&&(s[w]=u[w])},l(d,h)};return function(d,h){l(d,h);function s(){this.constructor=d}d.prototype=h===null?Object.create(h):(s.prototype=h.prototype,new s)}}(),f=function(){return f=Object.assign||function(l){for(var d,h=1,s=arguments.length;h<s;h++){d=arguments[h];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(l[u]=d[u])}return l},f.apply(this,arguments)};function r(l){return l.displayName||l.name||"Component"}var c=function(){return{}};function n(l,d){d===void 0&&(d={});var h=!!l,s=l||c;return function(w){var x=function(P){e(R,P);function R(C,S){var _=P.call(this,C,S)||this;return _.unsubscribe=null,_.handleChange=function(){if(!_.unsubscribe)return;var A=s(_.store.getState(),_.props);_.setState({subscribed:A})},_.store=_.context,_.state={subscribed:s(_.store.getState(),C),store:_.store,props:C},_}return R.getDerivedStateFromProps=function(C,S){return l&&l.length===2&&C!==S.props?{subscribed:s(S.store.getState(),C),props:C}:{props:C}},R.prototype.componentDidMount=function(){this.trySubscribe()},R.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},R.prototype.shouldComponentUpdate=function(C,S){return!y()(this.props,C)||!y()(this.state.subscribed,S.subscribed)},R.prototype.trySubscribe=function(){h&&(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 C=f(f(f({},this.props),this.state.subscribed),{store:this.store});return M.createElement(w,f({},C,{ref:this.props.miniStoreForwardedRef}))},R.displayName="Connect("+r(w)+")",R.contextType=T,R}(M.Component);if(d.forwardRef){var b=M.forwardRef(function(P,R){return M.createElement(x,f({},P,{miniStoreForwardedRef:R}))});return g()(b,w)}return g()(x,w)}}var a=function(){return a=Object.assign||function(l){for(var d,h=1,s=arguments.length;h<s;h++){d=arguments[h];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(l[u]=d[u])}return l},a.apply(this,arguments)};function o(l){var d=l,h=[];function s(x){d=a(a({},d),x);for(var b=0;b<h.length;b++)h[b]()}function u(){return d}function w(x){return h.push(x),function(){var P=h.indexOf(x);h.splice(P,1)}}return{setState:s,getState:u,subscribe:w}}},IBYe:function(N,Y,i){"use strict";function M(E){return null}Y.a=M},Ib8C:function(N,Y,i){(function(M){(function(E,T){N.exports=Y=T()})(this,function(){var E=E||function(T,v){var m;if(typeof window!="undefined"&&window.crypto&&(m=window.crypto),typeof self!="undefined"&&self.crypto&&(m=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window!="undefined"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof M!="undefined"&&M.crypto&&(m=M.crypto),!m&&!0)try{m=i(4)}catch(s){}var y=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch(s){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(s){}}throw new Error("Native crypto module could not be used to get secure random number.")},O=Object.create||function(){function s(){}return function(u){var w;return s.prototype=u,w=new s,s.prototype=null,w}}(),g={},e=g.lib={},f=e.Base=function(){return{extend:function(s){var u=O(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!=v?this.sigBytes=u:this.sigBytes=s.length*4},toString:function(s){return(s||n).stringify(this)},concat:function(s){var u=this.words,w=s.words,x=this.sigBytes,b=s.sigBytes;if(this.clamp(),x%4)for(var P=0;P<b;P++){var R=w[P>>>2]>>>24-P%4*8&255;u[x+P>>>2]|=R<<24-(x+P)%4*8}else for(var C=0;C<b;C+=4)u[x+C>>>2]=w[C>>>2];return this.sigBytes+=b,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=[],w=0;w<s;w+=4)u.push(y());return new r.init(u,s)}}),c=g.enc={},n=c.Hex={stringify:function(s){for(var u=s.words,w=s.sigBytes,x=[],b=0;b<w;b++){var P=u[b>>>2]>>>24-b%4*8&255;x.push((P>>>4).toString(16)),x.push((P&15).toString(16))}return x.join("")},parse:function(s){for(var u=s.length,w=[],x=0;x<u;x+=2)w[x>>>3]|=parseInt(s.substr(x,2),16)<<24-x%8*4;return new r.init(w,u/2)}},a=c.Latin1={stringify:function(s){for(var u=s.words,w=s.sigBytes,x=[],b=0;b<w;b++){var P=u[b>>>2]>>>24-b%4*8&255;x.push(String.fromCharCode(P))}return x.join("")},parse:function(s){for(var u=s.length,w=[],x=0;x<u;x++)w[x>>>2]|=(s.charCodeAt(x)&255)<<24-x%4*8;return new r.init(w,u)}},o=c.Utf8={stringify:function(s){try{return decodeURIComponent(escape(a.stringify(s)))}catch(u){throw new Error("Malformed UTF-8 data")}},parse:function(s){return a.parse(unescape(encodeURIComponent(s)))}},l=e.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=o.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var u,w=this._data,x=w.words,b=w.sigBytes,P=this.blockSize,R=P*4,C=b/R;s?C=T.ceil(C):C=T.max((C|0)-this._minBufferSize,0);var S=C*P,_=T.min(S*4,b);if(S){for(var A=0;A<S;A+=P)this._doProcessBlock(x,A);u=x.splice(0,S),w.sigBytes-=_}return new r.init(u,_)},clone:function(){var s=f.clone.call(this);return s._data=this._data.clone(),s},_minBufferSize:0}),d=e.Hasher=l.extend({cfg:f.extend(),init:function(s){this.cfg=this.cfg.extend(s),this.reset()},reset:function(){l.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,w){return new s.init(w).finalize(u)}},_createHmacHelper:function(s){return function(u,w){return new h.HMAC.init(s,w).finalize(u)}}}),h=g.algo={};return g}(Math);return E})}).call(this,i("IyRk"))},JAbv:function(N,Y){N.exports="data:image/png;base64,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"},JFl9:function(N,Y,i){N.exports={footerWrap:"footerWrap___3bmMI"}},JWDV:function(N,Y,i){N.exports=i.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(N,Y,i){"use strict";i.d(Y,"a",function(){return M});var M;(function(E){function T(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}E.is=T;const v=Object.freeze([]);function m(){return v}E.empty=m;function*y(u){yield u}E.single=y;function O(u){return u||v}E.from=O;function g(u){return!u||u[Symbol.iterator]().next().done===!0}E.isEmpty=g;function e(u){return u[Symbol.iterator]().next().value}E.first=e;function f(u,w){for(const x of u)if(w(x))return!0;return!1}E.some=f;function r(u,w){for(const x of u)if(w(x))return x;return}E.find=r;function*c(u,w){for(const x of u)w(x)&&(yield x)}E.filter=c;function*n(u,w){let x=0;for(const b of u)yield w(b,x++)}E.map=n;function*a(...u){for(const w of u)for(const x of w)yield x}E.concat=a;function*o(u){for(const w of u)for(const x of w)yield x}E.concatNested=o;function l(u,w,x){let b=x;for(const P of u)b=w(b,P);return b}E.reduce=l;function*d(u,w,x=u.length){for(w<0&&(w+=u.length),x<0?x+=u.length:x>u.length&&(x=u.length);w<x;w++)yield u[w]}E.slice=d;function h(u,w=Number.POSITIVE_INFINITY){const x=[];if(w===0)return[x,u];const b=u[Symbol.iterator]();for(let P=0;P<w;P++){const R=b.next();if(R.done)return[x,E.empty()];x.push(R.value)}return[x,{[Symbol.iterator](){return b}}]}E.consume=h;function s(u,w,x=(b,P)=>b===P){const b=u[Symbol.iterator](),P=w[Symbol.iterator]();for(;;){const R=b.next(),C=P.next();if(R.done!==C.done)return!1;if(R.done)return!0;if(!x(R.value,C.value))return!1}}E.equals=s})(M||(M={}))},JeFH:function(N,Y){N.exports="data:image/png;base64,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"},Jky8:function(N,Y,i){"use strict";var M=i("sRBo"),E=i("kaz8"),T=i("5NDa"),v=i("5rEg"),m=i("miYZ"),y=i("tsqr"),O=i("9og8"),g=i("2qtc"),e=i("kLXV"),f=i("tJVT"),r=i("WmNS"),c=i.n(r),n=i("q1tI"),a=i.n(n),o=i("9kvl"),l=i("6CvP"),d=i("1XHU"),h=i("1vsH"),s;(function(w){w[w.Professor=1]="Professor",w[w.AssistantProfessor=2]="AssistantProfessor",w[w.Student=3]="Student"})(s||(s={}));var u=function(x){var b=x.visible,P=x.user,R=x.onCancel,C=R===void 0?function(){}:R,S=Object(n.useState)(),_=Object(f.a)(S,2),A=_[0],j=_[1],I=Object(n.useState)([]),k=Object(f.a)(I,2),J=k[0],G=k[1],D=Object(n.useState)(!1),H=Object(f.a)(D,2),W=H[0],L=H[1],z=Object(n.useState)(!1),ie=Object(f.a)(z,2),ce=ie[0],ue=ie[1],xe=Object(n.useState)(),Te=Object(f.a)(xe,2),de=Te[0],ve=Te[1];Object(n.useEffect)(function(){var U;if(P!=null&&(U=P.userInfo)!==null&&U!==void 0&&U.identity){var K;G([(P==null||((K=P.userInfo)===null||K===void 0)?void 0:K.identity)==="student"?3:1])}},[P]);var _e=function(K,X){if(J.includes(s.Professor)){e.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:a.a.createElement("div",{className:"tc"},X||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){o.d.push("/classrooms/".concat(K,"/students"))}});return}o.d.push("/classrooms/".concat(K,"/students"))},le=function(){var U=Object(O.a)(c.a.mark(function K(){var X;return c.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(A){te.next=3;break}return y.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),te.abrupt("return");case 3:return L(!0),te.next=6,Object(l.c)({invite_code:A,professor:J.includes(s.Professor)?1:null,assistant_professor:J.includes(s.AssistantProfessor)?1:null,student:J.includes(s.Student)?1:null});case 6:if(X=te.sent,L(!1),!((X==null?void 0:X.status)===-2)){te.next=22;break}if(ee(),!(X.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){te.next=14;break}return ue(!0),ve(1),te.abrupt("return");case 14:if(!(X.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){te.next=18;break}return ue(!0),ve(2),te.abrupt("return");case 18:if(!(X.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){te.next=22;break}return ue(!0),ve(3),te.abrupt("return");case 22:if(!((X==null?void 0:X.status)===0)){te.next=27;break}return Object(h.db)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),ee(),(X==null?void 0:X.course_id)&&_e(X.course_id,X.message),te.abrupt("return");case 27:case"end":return te.stop()}},K)}));return function(){return U.apply(this,arguments)}}(),ee=function(){var U=Object(O.a)(c.a.mark(function K(){return c.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:C();case 1:case"end":return Q.stop()}},K)}));return function(){return U.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,a.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:b,confirmLoading:W,onOk:le,onCancel:ee},a.a.createElement("div",{className:"tc"},a.a.createElement("div",null,a.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),a.a.createElement(v.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:A,onChange:function(K){if(K.target.value.length>=7){y.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}j(K.target.value)}})),a.a.createElement("div",{className:"mt10 font14"},a.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),a.a.createElement(E.a.Group,{value:J,onChange:function(K){return G(K)}},a.a.createElement(E.a,{value:s.Professor,disabled:J.includes(2)||J.includes(3)},"\u6559\u5E08"),a.a.createElement(E.a,{value:s.AssistantProfessor,disabled:J.includes(1)},"\u52A9\u6559"),a.a.createElement(E.a,{value:s.Student,disabled:J.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),a.a.createElement(d.a,{visible:ce,onCancel:function(){return ue(!1)},occupationValue:de}))};Y.a=Object(o.a)(function(w){var x=w.user;return{user:x}})(u)},Jq4h:function(N,Y,i){N.exports=i.p+"static/qrcode.2267e4d5.png"},Jv0p:function(N,Y,i){N.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(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("3y9D"),i("WYAk"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.Base,m=T.WordArray,y=E.algo,O=y.MD5,g=y.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:O,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var r,c=this.cfg,n=c.hasher.create(),a=m.create(),o=a.words,l=c.keySize,d=c.iterations;o.length<l;){r&&n.update(r),r=n.update(e).finalize(f),n.reset();for(var h=1;h<d;h++)r=n.finalize(r),n.reset();a.concat(r)}return a.sigBytes=l*4,a}});E.EvpKDF=function(e,f,r){return g.create(r).compute(e,f)}}(),M.EvpKDF})},KOXS:function(N,Y,i){N.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(N,Y,i){N.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KeGQ:function(N,Y,i){N.exports=i.p+"static/noLevelData.36460f71.png"},KhGG:function(N,Y,i){"use strict";i.d(Y,"a",function(){return b}),i.d(Y,"c",function(){return C});var M=i("0Owb"),E=i("miYZ"),T=i("tsqr"),v=i("oBTY"),m=i("tJVT"),y=i("PpiC"),O=i("k1fw"),g=i("9og8"),e=i("DZo9"),f=i("8z0m"),r=i("WmNS"),c=i.n(r),n=i("q1tI"),a=i.n(n),o=i("ErOA"),l=i("NFKh"),d=i.n(l),h=i("7Cbv"),s=i("9kvl"),u=i("mxV5"),w=i.n(u),x=f.a.Dragger,b=function(A){var j="bf3c199c2470cb477d907b1e0917c17b",I="5183666c72eec9e4",k=d.a.enc.Utf8.parse(j),J=d.a.enc.Utf8.parse(I),G=d.a.AES.decrypt(A,k,{iv:J,mode:d.a.mode.CBC});return G.toString(d.a.enc.Utf8)},P,R=function(){var _=Object(g.a)(c.a.mark(function A(j){var I,k,J,G,D,H,W,L,z,ie,ce;return c.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return W=j.identifier,L=j.oldFilename,z=j.newFilename,xe.next=3,Object(o.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 3:return ie=xe.sent,ie.data=JSON.parse(b(ie.data)),ce=new w.a({endpoint:ie==null||((I=ie.data)===null||I===void 0)?void 0:I.end_point,region:ie==null||((k=ie.data)===null||k===void 0)?void 0:k.region,accessKeyId:ie==null||((J=ie.data)===null||J===void 0)?void 0:J.access_key_id,accessKeySecret:ie==null||((G=ie.data)===null||G===void 0)?void 0:G.access_key_secret,bucket:ie==null||((D=ie.data)===null||D===void 0)?void 0:D.bucket,stsToken:ie==null||((H=ie.data)===null||H===void 0)?void 0:H.security_token}),xe.abrupt("return",new Promise(function(Te,de){console.log(11111,"".concat(W,"/").concat(L),"".concat(W,"/").concat(z),ie.data),ce.copy("/".concat(W,"/").concat(L),"/".concat(W,"/").concat(z)).then(function(ve){console.log("\u62F7\u8D1D\u6210\u529F",ve)}).catch(function(ve){console.log(ve)})}));case 7:case"end":return xe.stop()}},A)}));return function(j){return _.apply(this,arguments)}}(),C=function(){var _=Object(g.a)(c.a.mark(function A(j,I,k){var J,G,D,H,W,L,z,ie,ce,ue;return c.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return I.file_name=j.name,Te.next=3,Object(o.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return z=Te.sent,console.log("decrypt(res.data):",b(z.data)),z.data=JSON.parse(b(z.data)),ie=j.name.split("."),ie.pop(),ce=I.realFileName?ie:Object(h.a)(),ue=new w.a({endpoint:z==null||((J=z.data)===null||J===void 0)?void 0:J.end_point,region:z==null||((G=z.data)===null||G===void 0)?void 0:G.region,accessKeyId:z==null||((D=z.data)===null||D===void 0)?void 0:D.access_key_id,accessKeySecret:z==null||((H=z.data)===null||H===void 0)?void 0:H.access_key_secret,bucket:z==null||((W=z.data)===null||W===void 0)?void 0:W.bucket,stsToken:z==null||((L=z.data)===null||L===void 0)?void 0:L.security_token}),Te.abrupt("return",new Promise(function(de,ve){var _e;ue.multipartUpload("".concat(ce),new Blob([j],{type:j.type}),Object(O.a)(Object(O.a)({timeout:200*1e3,partSize:102400},k),{},{callback:{url:z==null||((_e=z.data)===null||_e===void 0)?void 0:_e.callback_url,host:z==null?void 0:z.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(o.e)(I)}})).then(function(le){var ee;j.response=(ee=le.data)===null||ee===void 0?void 0:ee.data,de(le==null?void 0:le.data)}).catch(function(le){ve(le),console.log("err:",le)})}));case 11:case"end":return Te.stop()}},A)}));return function(j,I,k){return _.apply(this,arguments)}}(),S=function(A){var j=A.user,I=A.cancelUpload,k=Object(y.a)(A,["user","cancelUpload"]),J=Object(n.useState)([]),G=Object(m.a)(J,2),D=G[0],H=G[1],W=Object(n.useState)(),L=Object(m.a)(W,2),z=L[0],ie=L[1],ce={onRemove:function(Te){H(Object(v.a)(D.filter(function(de){return de.name!==Te.name}))),k.onChange(D.filter(function(de){return de.name!==Te.name}))},disabled:k.disabled,multiple:!0,fileList:D==null?void 0:D.map(function(xe){return xe.file}),customRequest:function(){},beforeUpload:function(){var xe=Object(g.a)(c.a.mark(function de(ve){var _e;return c.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(_e=k.maxSize||1024*1024*1024*1,!D.filter(function(U){return U.name===ve.name}).length){ee.next=4;break}return T.b.info("".concat(ve.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),ee.abrupt("return");case 4:if(!((ve==null?void 0:ve.size)>_e)){ee.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(_e/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),ee.abrupt("return",!1);case 7:return D.push({name:ve.name,file:ve}),H(Object(v.a)(D)),k.onChange(D),ee.abrupt("return",!1);case 11:case"end":return ee.stop()}},de)}));function Te(de){return xe.apply(this,arguments)}return Te}()},ue=function(){var xe=Object(g.a)(c.a.mark(function Te(de,ve){var _e,le,ee,U,K,X,Q,te,ae,re;return c.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return ve.file_name=de.name,Q=de.name,Z.next=4,Object(o.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(te=Z.sent,te.data=JSON.parse(b(te.data)),!((te==null?void 0:te.status)!==0)){Z.next=12;break}return D[D.findIndex(function(fe){return fe.name===Q})].status="error",D[D.findIndex(function(fe){return fe.name===Q})].file.status="error",k.onChange(D),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Z.abrupt("return");case 12:return z=new w.a({endpoint:te==null||((_e=te.data)===null||_e===void 0)?void 0:_e.end_point,region:te==null||((le=te.data)===null||le===void 0)?void 0:le.region,accessKeyId:te==null||((ee=te.data)===null||ee===void 0)?void 0:ee.access_key_id,accessKeySecret:te==null||((U=te.data)===null||U===void 0)?void 0:U.access_key_secret,bucket:te==null||((K=te.data)===null||K===void 0)?void 0:K.bucket,stsToken:te==null||((X=te.data)===null||X===void 0)?void 0:X.security_token}),console.log(de,"file"),ie(z),ae=de.name.split("."),ae.pop(),re=ve.realFileName?ae:Object(h.a)(),Z.abrupt("return",new Promise(function(fe,me){try{var Oe;z.multipartUpload("".concat(k.identifier,"/").concat(re).concat(Q.indexOf(".")>-1?"."+Q.split(".").pop():""),new Blob([de.file],{type:de.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Qe,ot,st){try{console.log("\u8FDB\u5EA6",Qe,ot,st);var ct=D.findIndex(function(dt){return dt.name===Q});D[ct].file.percent=Qe*100,D[ct].tempCheckpoint=ot,H(Object(v.a)(D))}catch(dt){}},checkpoint:D[D.findIndex(function(He){return He.name===Q})].tempCheckpoint,callback:{customValue:{id:Q+""},url:te==null||((Oe=te.data)===null||Oe===void 0)?void 0:Oe.callback_url,host:te==null?void 0:te.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(o.e)(ve)}}).then(function(He){var Qe,ot=D.findIndex(function(ke){return ke.name===Q}),st="done";if(((Qe=He.data)===null||Qe===void 0?void 0:Qe.status)===0){var ct;de.response=(ct=He.data)===null||ct===void 0?void 0:ct.data;var dt=D.findIndex(function(ke){return ke.name===Q});D[dt].status="done",D[dt].file.status="done"}else{var Xe;T.b.warn((Xe=He.data)===null||Xe===void 0?void 0:Xe.message),st="error"}D[ot].status=st,D[ot].file.status=st,k.onChange(D),fe(He==null?void 0:He.data)}).catch(function(He){D[D.findIndex(function(Qe){return Qe.name===Q})].status="error",D[D.findIndex(function(Qe){return Qe.name===Q})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),H(Object(v.a)(D)),k.onChange(D),me(He),console.log("err:",He)})}catch(He){}}));case 19:case"end":return Z.stop()}},Te)}));return function(de,ve){return xe.apply(this,arguments)}}();return Object(n.useEffect)(function(){D.every(function(xe){return xe==="done"||xe==="error"})&&k.onComplete(D)},[D]),Object(n.useEffect)(function(){if(I){var xe;(xe=z)===null||xe===void 0||xe.cancel()}},[I]),Object(n.useEffect)(function(){k.uploading&&D.map(function(){var xe=Object(g.a)(c.a.mark(function Te(de){var ve,_e;return c.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(!((!de.status||de.status==="error")&&!I)){ee.next=6;break}return de.status="uploading",de.file.status="uploading",ee.next=5,ue(de,{login:j==null||((ve=j.userInfo)===null||ve===void 0)?void 0:ve.login,container_type:k.container_type,container_id:k.container_id,description:k.description,realFileName:k.realFileName});case 5:_e=ee.sent;case 6:case"end":return ee.stop()}},Te)}));return function(Te){return xe.apply(this,arguments)}}())},[k.uploading]),a.a.createElement(x,Object(M.a)({},ce,{height:k.height,className:k.className}),a.a.createElement("p",{className:"ant-upload-hint"},k.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Y.b=Object(s.a)(function(_){var A=_.loading,j=_.globalSetting,I=_.user;return{globalSetting:j,loading:A.models.competitions,user:I}})(S)},KmYQ:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.pad.ZeroPadding={pad:function(E,T){var v=T*4;E.clamp(),E.sigBytes+=v-(E.sigBytes%v||v)},unpad:function(E){for(var T=E.words,v=E.sigBytes-1,v=E.sigBytes-1;v>=0;v--)if(T[v>>>2]>>>24-v%4*8&255){E.sigBytes=v+1;break}}},M.pad.ZeroPadding})},"L+Ii":function(N,Y,i){N.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(N,Y,i){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var M=function(){function c(n,a){for(var o=0;o<a.length;o++){var l=a[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}return function(n,a,o){return a&&c(n.prototype,a),o&&c(n,o),n}}(),E=i("q1tI"),T=y(E),v=i("17x9"),m=y(v);function y(c){return c&&c.__esModule?c:{default:c}}function O(c,n){var a={};for(var o in c){if(n.indexOf(o)>=0)continue;if(!Object.prototype.hasOwnProperty.call(c,o))continue;a[o]=c[o]}return a}function g(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function e(c,n){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:c}function f(c,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);c.prototype=Object.create(n&&n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(c,n):c.__proto__=n)}var r=function(c){f(n,c);function n(a){g(this,n);var o=e(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a));return o.scrollListener=o.scrollListener.bind(o),o.eventListenerOptions=o.eventListenerOptions.bind(o),o.mousewheelListener=o.mousewheelListener.bind(o),o}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 o=this.getParentElement(this.scrollComponent);o.scrollTop=o.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var o=!1,l={get passive(){o=!0}};try{document.addEventListener("test",null,l),document.removeEventListener("test",null,l)}catch(d){}return o}},{key:"eventListenerOptions",value:function(){var o=this.props.useCapture;return this.isPassiveSupported()&&(o={useCapture:this.props.useCapture,passive:!0}),o}},{key:"setDefaultLoader",value:function(o){this.defaultLoader=o}},{key:"detachMousewheelListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.scrollComponent.parentNode),o.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.getParentElement(this.scrollComponent)),o.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(o){var l=this.props.getScrollParent&&this.props.getScrollParent();return l!=null?l:o&&o.parentNode}},{key:"filterProps",value:function(o){return o}},{key:"attachScrollListener",value:function(){var o=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!o)return;var l=window;this.props.useWindow===!1&&(l=o),l.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),l.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),l.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(o){o.deltaY===1&&!this.isPassiveSupported()&&o.preventDefault()}},{key:"scrollListener",value:function(){var o=this.scrollComponent,l=window,d=this.getParentElement(o),h=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,u=l.pageYOffset!==void 0?l.pageYOffset:s.scrollTop;this.props.isReverse?h=u:h=this.calculateOffset(o,u)}else this.props.isReverse?h=d.scrollTop:h=o.scrollHeight-d.scrollTop-d.clientHeight;h<Number(this.props.threshold)&&o&&o.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=d.scrollHeight,this.beforeScrollTop=d.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(o,l){return o?this.calculateTopPosition(o)+(o.offsetHeight-l-window.innerHeight):0}},{key:"calculateTopPosition",value:function(o){return o?o.offsetTop+this.calculateTopPosition(o.offsetParent):0}},{key:"render",value:function(){var o=this,l=this.filterProps(this.props),d=l.children,h=l.element,s=l.hasMore,u=l.initialLoad,w=l.isReverse,x=l.loader,b=l.loadMore,P=l.pageStart,R=l.ref,C=l.threshold,S=l.useCapture,_=l.useWindow,A=l.getScrollParent,j=O(l,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);j.ref=function(k){o.scrollComponent=k,R&&R(k)};var I=[d];return s&&(x?w?I.unshift(x):I.push(x):this.defaultLoader&&(w?I.unshift(this.defaultLoader):I.push(this.defaultLoader))),T.default.createElement(h,j,I)}}]),n}(E.Component);r.propTypes={children:m.default.node.isRequired,element:m.default.node,hasMore:m.default.bool,initialLoad:m.default.bool,isReverse:m.default.bool,loader:m.default.node,loadMore:m.default.func.isRequired,pageStart:m.default.number,ref:m.default.func,getScrollParent:m.default.func,threshold:m.default.number,useCapture:m.default.bool,useWindow:m.default.bool},r.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},Y.default=r,N.exports=Y.default},Lai7:function(N,Y,i){N.exports=i.p+"static/noEnvData.6108fa6c.png"},LdHM:function(N,Y,i){"use strict";i.d(Y,"b",function(){return u}),i.d(Y,"a",function(){return x});var M=i("1OyB"),E=i("vuIU"),T=i("Ji7U"),v=i("LK+K"),m=i("q1tI"),y=i("rePB"),O=i("Ff2n"),g=i("ODXe"),e=i("4IlW"),f=i("bX4T"),r=i("YrtM"),c=i("TSYQ"),n=i.n(c),a=i("+nKL"),o=i("8OUc"),l=function(z,ie){var ce=z.prefixCls,ue=z.id,xe=z.flattenOptions,Te=z.childrenAsData,de=z.values,ve=z.searchValue,_e=z.multiple,le=z.defaultActiveFirstOption,ee=z.height,U=z.itemHeight,K=z.notFoundContent,X=z.open,Q=z.menuItemSelectedIcon,te=z.virtual,ae=z.onSelect,re=z.onToggleOpen,$=z.onActiveValue,Z=z.onScroll,fe=z.onMouseEnter,me="".concat(ce,"-item"),Oe=Object(r.a)(function(){return xe},[X,xe],function(he,be){return be[0]&&he[1]!==be[1]}),He=m.useRef(null),Qe=function(be){be.preventDefault()},ot=function(be){He.current&&He.current.scrollTo({index:be})},st=function(be){for(var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ne=Oe.length,we=0;we<Ne;we+=1){var Ae=(be+we*Ee+Ne)%Ne,Ue=Oe[Ae],We=Ue.group,Je=Ue.data;if(!We&&!Je.disabled)return Ae}return-1},ct=m.useState(function(){return st(0)}),dt=Object(g.a)(ct,2),Xe=dt[0],ke=dt[1],lt=function(be){ke(be);var Ee=Oe[be];if(!Ee){$(null,-1);return}$(Ee.data.value,be)};m.useEffect(function(){lt(le!==!1?st(0):-1)},[Oe.length,ve]),m.useEffect(function(){var he=setTimeout(function(){if(!_e&&X&&de.size===1){var be=Array.from(de)[0],Ee=Oe.findIndex(function(Ne){var we=Ne.data;return we.value===be});lt(Ee),ot(Ee)}});return function(){return clearTimeout(he)}},[X]);var Mt=function(be){be!==void 0&&ae(be,{selected:!de.has(be)}),_e||re(!1)};if(m.useImperativeHandle(ie,function(){return{onKeyDown:function(be){var Ee=be.which;switch(Ee){case e.a.UP:case e.a.DOWN:{var Ne=0;if(Ee===e.a.UP?Ne=-1:Ee===e.a.DOWN&&(Ne=1),Ne!==0){var we=st(Xe+Ne,Ne);ot(we),lt(we)}break}case e.a.ENTER:{var Ae=Oe[Xe];Ae&&!Ae.data.disabled?Mt(Ae.data.value):Mt(void 0),X&&be.preventDefault();break}case e.a.ESC:re(!1)}},onKeyUp:function(){},scrollTo:function(be){ot(be)}}}),Oe.length===0)return m.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),className:"".concat(me,"-empty"),onMouseDown:Qe},K);function Ce(he){var be=Oe[he];if(!be)return null;var Ee=be.data||{},Ne=Ee.value,we=Ee.label,Ae=Ee.children,Ue=Object(f.a)(Ee,!0),We=Te?Ae:we;return be?m.createElement("div",Object.assign({"aria-label":typeof We=="string"?We:null},Ue,{key:he,role:"option",id:"".concat(ue,"_list_").concat(he),"aria-selected":de.has(Ne)}),Ne):null}return m.createElement(m.Fragment,null,m.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ce(Xe-1),Ce(Xe),Ce(Xe+1)),m.createElement(a.a,{itemKey:"key",ref:He,data:Oe,height:ee,itemHeight:U,fullHeight:!1,onMouseDown:Qe,onScroll:Z,virtual:te,onMouseEnter:fe},function(he,be){var Ee,Ne=he.group,we=he.groupOption,Ae=he.data,Ue=Ae.label,We=Ae.key;if(Ne)return m.createElement("div",{className:n()(me,"".concat(me,"-group"))},Ue!==void 0?Ue:We);var Je=Ae.disabled,$e=Ae.value,pt=Ae.title,Jt=Ae.children,fn=Ae.style,qt=Ae.className,St=Object(O.a)(Ae,["disabled","value","title","children","style","className"]),Be=de.has($e),at="".concat(me,"-option"),it=n()(me,at,qt,(Ee={},Object(y.a)(Ee,"".concat(at,"-grouped"),we),Object(y.a)(Ee,"".concat(at,"-active"),Xe===be&&!Je),Object(y.a)(Ee,"".concat(at,"-disabled"),Je),Object(y.a)(Ee,"".concat(at,"-selected"),Be),Ee)),Me=Te?Jt:Ue,Ve=!Q||typeof Q=="function"||Be;return m.createElement("div",Object.assign({},St,{"aria-selected":Be,className:it,title:pt,onMouseMove:function(){if(Xe===be||Je)return;lt(be)},onClick:function(){Je||Mt($e)},style:fn}),m.createElement("div",{className:"".concat(at,"-content")},Me||$e),m.isValidElement(Q)||Be,Ve&&m.createElement(o.a,{className:"".concat(me,"-option-state"),customizeIcon:Q,customizeIconProps:{isSelected:Be}},Be?"\u2713":null))}))},d=m.forwardRef(l);d.displayName="OptionList";var h=d,s=function(){return null};s.isSelectOption=!0;var u=s,w=function(){return null};w.isSelectOptGroup=!0;var x=w,b=i("VTBJ"),P=i("Zm9Q");function R(L){var z=L.key,ie=L.props,ce=ie.children,ue=ie.value,xe=Object(O.a)(ie,["children","value"]);return Object(b.a)({key:z,value:ue!==void 0?ue:z,children:ce},xe)}function C(L){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(L).map(function(ie,ce){if(!m.isValidElement(ie)||!ie.type)return null;var ue=ie.type.isSelectOptGroup,xe=ie.key,Te=ie.props,de=Te.children,ve=Object(O.a)(Te,["children"]);return z||!ue?R(ie):Object(b.a)(Object(b.a)({key:"__RC_SELECT_GRP__".concat(xe===null?ce:xe,"__"),label:xe},ve),{},{options:C(de)})}).filter(function(ie){return ie})}var S=i("2Qr1"),_=i("qNPg"),A=i("U8pU"),j=i("Kwbf"),I=i("WKfj");function k(L){var z=L.mode,ie=L.options,ce=L.children,ue=L.backfill,xe=L.allowClear,Te=L.placeholder,de=L.getInputElement,ve=L.showSearch,_e=L.onSearch,le=L.defaultOpen,ee=L.autoFocus,U=L.labelInValue,K=L.value,X=L.inputValue,Q=L.optionLabelProp,te=z==="multiple"||z==="tags",ae=ve!==void 0?ve:te||z==="combobox",re=ie||C(ce);if(Object(j.a)(z!=="tags"||re.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),z==="tags"||z==="combobox"){var $=re.some(function(me){return me.options?me.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(j.a)(!$,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(j.a)(z!=="combobox"||!Q,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(j.a)(z==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(j.a)(z==="combobox"||!de,"`getInputElement` only work with `combobox` mode."),Object(j.b)(z!=="combobox"||!de||!xe||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_e&&!ae&&z!=="combobox"&&z!=="tags"&&Object(j.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(j.b)(!le||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),K!=null){var Z=Object(I.d)(K);Object(j.a)(!U||Z.every(function(me){return Object(A.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(j.a)(!te||Array.isArray(K),"`value` should be array when `mode` is `multiple` or `tags`")}if(ce){var fe=null;Object(P.a)(ce).some(function(me){if(!m.isValidElement(me)||!me.type)return!1;var Oe=me.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var He=Object(P.a)(me.props.children).every(function(Qe){return!m.isValidElement(Qe)||!me.type||Qe.type.isSelectOption?!0:(fe=Qe.type,!1)});return!He}return fe=Oe,!0}),fe&&Object(j.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(fe.displayName||fe.name||fe,"`.")),Object(j.a)(X===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var J=k,G=Object(_.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:C,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:J,fillOptionsWithMissingValue:S.a}),D=function(L){Object(T.a)(ie,L);var z=Object(v.a)(ie);function ie(){var ce;return Object(M.a)(this,ie),ce=z.apply(this,arguments),ce.selectRef=m.createRef(),ce.focus=function(){ce.selectRef.current.focus()},ce.blur=function(){ce.selectRef.current.blur()},ce}return Object(E.a)(ie,[{key:"render",value:function(){return m.createElement(G,Object.assign({ref:this.selectRef},this.props))}}]),ie}(m.Component);D.Option=u,D.OptGroup=x;var H=D,W=Y.c=H},Lf5v:function(N,Y,i){"use strict";var M=i("5NDa"),E=i("5rEg"),T=i("2qtc"),v=i("kLXV"),m=i("k1fw"),y=i("oBTY"),O=i("9og8"),g=i("miYZ"),e=i("tsqr"),f=i("y8nQ"),r=i("Vl3Y"),c=i("tJVT"),n=i("DZo9"),a=i("8z0m"),o=i("WmNS"),l=i.n(o),d=i("q1tI"),h=i.n(d),s=i("m3rI"),u=i("ErOA"),w=i("sckv"),x=i.n(w),b=i("KhGG"),P=i("1vsH"),R=a.a.Dragger,C=function(_){var A,j=_.dispatch,I=_.id,k=_.onClose,J=_.onOK,G=_.visible,D=_.wrapClassName,H=_.local,W=_.containerId,L=_.rootIdentifier,z=Object(d.useState)({}),ie=Object(c.a)(z,2),ce=ie[0],ue=ie[1],xe=Object(d.useState)([]),Te=Object(c.a)(xe,2),de=Te[0],ve=Te[1],_e=Object(d.useState)([]),le=Object(c.a)(_e,2),ee=le[0],U=le[1],K=Object(d.useState)(0),X=Object(c.a)(K,2),Q=X[0],te=X[1],ae=Object(d.useState)(!1),re=Object(c.a)(ae,2),$=re[0],Z=re[1],fe=Object(d.useState)(!1),me=Object(c.a)(fe,2),Oe=me[0],He=me[1],Qe=r.a.useForm(),ot=Object(c.a)(Qe,1),st=ot[0],ct=Object(d.useState)([]),dt=Object(c.a)(ct,2),Xe=dt[0],ke=dt[1],lt=Object(d.useRef)([]);Object(d.useEffect)(function(){G&&(st.resetFields(),ke([]),U([]),ve([]),te(0),He(!1),Z(!1))},[G]);var Mt=function(Be){if(Be.file.status==="done"||Be.file.status==="uploading"){var at,it,Me;if(ke(Be.fileList),!Be.file.response)return;if((at=Be.file.response)!==null&&at!==void 0&&at.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}ke(Xe.filter(function(Ve){return Ve.uid!==Be.file.uid})),((it=Be.file.response)===null||it===void 0?void 0:it.message)&&e.b.info((Me=Be.file.response)===null||Me===void 0?void 0:Me.message)}},Ce=function(){var St=Object(O.a)(l.a.mark(function Be(at){var it,Me,Ve;return l.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(Q){_t.next=8;break}return Me=Xe.filter(function(At){return At.uid!==at.uid}),ke(Me),lt.current=Object(y.a)(Me),ve(de.filter(function(At){return At!==at.name})),e.b.info("\u5220\u9664\u6210\u529F"),Me.length||(st.setFieldsValue({file:void 0}),st.validateFields()),_t.abrupt("return");case 8:if(at.response){_t.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),_t.abrupt("return");case 11:return _t.next=13,Object(u.a)("/api/shixuns/".concat(I,"/destroy_data_sets.json"),{method:"Delete",body:{id:[at==null||((it=at.response)===null||it===void 0)?void 0:it.id]}});case 13:Ve=_t.sent,Ve.status===0&&(ke(Xe.filter(function(At){return At.uid!==at.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return _t.stop()}},Be)}));return function(at){return St.apply(this,arguments)}}(),he=function(Be){if(Xe!=null&&Xe.some(function(it){return it.name===Be.name}))return e.b.info("".concat(Be.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var at={name:Be.name,uid:Be.uid,file:Be,percent:0};return Xe.push(at),lt.current=Object(y.a)(Xe),ke(Object(y.a)(Xe)),!1},be={height:300,multiple:!0,disabled:Q>0,withCredentials:!0,fileList:Xe,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:Mt,onRemove:Ce,beforeUpload:he},Ee=function(Be,at,it,Me,Ve,xt){debugger;var _t=new FormData;Object.keys(Be).forEach(function(Ot){_t.append(Ot,Be[Ot])});var At=new window.XMLHttpRequest;return At.withCredentials=!0,At.addEventListener("load",function(Ot){var Ct;debugger;it(JSON.parse(Ot==null||((Ct=Ot.target)===null||Ct===void 0)?void 0:Ct.response))},!1),At.addEventListener("error",function(Ot){debugger;Ve&&Ve(Ot)},!1),At.upload.onprogress=function(Ot){Me&&Me(Ot)},At.open("POST",at),At.send(_t),At},Ne=function(Be,at){if(Be.lengthComputable){var it=Math.floor(Be.loaded/Be.total*100),Me=Object(m.a)(Object(m.a)({},at),{},{percent:it,status:it===100?"done":"uploading"});console.log(lt.current,333),lt.current=lt.current.map(function(Ve){return Ve.uid===at.uid?Me:Ve}),ke(lt.current)}},we=function(Be,at){debugger;var it=Object(m.a)(Object(m.a)({},at),{},{status:"error"});e.b.warn("\u4E0A\u4F20\u5931\u8D25"),lt.current=lt.current.map(function(Me){return Me.uid===at.uid?it:Me}),lt.current.every(function(Me){return Me.status==="done"||Me.status==="error"})&&(He(!1),te(2)),ke(lt.current)},Ae=function(Be,at){var it=Object(m.a)(Object(m.a)({},at),{},{status:"done"});if(Be.status===0||(it=Object(m.a)(Object(m.a)({},at),{},{status:"error"}),e.b.error(Be==null?void 0:Be.message)),lt.current=lt.current.map(function(Me){return Me.uid===at.uid?it:Me}),lt.current.every(function(Me){return Me.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),pt(!0);return}lt.current.every(function(Me){return Me.status==="done"||Me.status==="error"})&&(He(!1),te(2)),ke(lt.current)},Ue=function(){var Be=!0;return window.navigator.onLine==!0?Be=!0:Be=!1,Be},We=function(){var St=Object(O.a)(l.a.mark(function Be(at){var it,Me,Ve,xt,_t,At,Ot,Ct;return l.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(He(!0),!(Q===3)){It.next=4;break}return te(2),It.abrupt("return");case 4:if(!(Q===2||Q===1)){It.next=7;break}return Je(),It.abrupt("return");case 7:return it=at||{},Me=it.commitMessage,Ve=Me===void 0?"":Me,xt=it.fileOss,_t=xt===void 0?[]:xt,At=H?Xe:_t,Ot=At.map(function(yt){return yt.name}),It.next=12,Object(u.a)("/api/shixuns/".concat(I,"/check_data_sets"),{method:"post",body:{files_name:Ot}});case 12:if(Ct=It.sent,!(Ct.status===-3)){It.next=17;break}return ve(Ct==null?void 0:Ct.exist_files),He(!1),It.abrupt("return");case 17:if(!(JSON.stringify(Ct)==="{}")){It.next=21;break}return He(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),It.abrupt("return");case 21:Ct.status===0&&(Xe.forEach(function(yt){var zt=Ee({file:yt.file,description:Ve,message:Ct.message},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(I,"/upload_data_sets.json"),function(sn){return Ae(sn,yt)},function(sn){return Ne(sn,yt)},function(sn){return we(sn,yt)});ee.push(zt)}),te(1));case 22:case"end":return It.stop()}},Be)}));return function(at){return St.apply(this,arguments)}}(),Je=function(){var Be=Object(m.a)({},st.getFieldsValue())||{},at=Be.commitMessage,it=at===void 0?"":at,Me=lt.current.filter(function(xt){return xt.status==="error"}),Ve=lt.current.map(function(xt){return Object(m.a)(Object(m.a)({},xt),{},{status:xt.status==="error"?"uploading":xt.status})});ke(Ve),Me.forEach(function(xt){var _t=Ee({file:xt.file,description:it},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(I,"/upload_data_sets.json"),function(At){return Ae(At,xt)},function(At){return Ne(At,xt)},function(At){return we(At,xt)});ee.push(_t)})},$e=function(Be){if(console.log(Be,"changedValues"),"fileOss"in Be){var at,it;if(Be!=null&&Be.fileOss.every(function(Me){return Me.status==="done"})&&Be!==null&&Be!==void 0&&(at=Be.fileOss)!==null&&at!==void 0&&at.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),pt(!0);return}if(Be!=null&&Be.fileOss.every(function(Me){return Me.status==="done"||Me.status==="error"})&&Be!==null&&Be!==void 0&&(it=Be.fileOss)!==null&&it!==void 0&&it.length){te(3),He(!1);return}ve(de.filter(function(Me){var Ve;return Be==null||((Ve=Be.fileOss)===null||Ve===void 0)?void 0:Ve.some(function(xt){return xt.name===Me})}))}ue(Object(m.a)({},st.getFieldsValue()))},pt=function(Be){Be||(Z(!0),ee.forEach(function(at){at.abort()})),J(),k()},Jt=function(){var Be=Object(m.a)({},st.getFieldsValue())||{},at=Be.fileOss,it=at===void 0?[]:at,Me=Xe==null?void 0:Xe.every(function(xt){return xt.status==="done"}),Ve=it==null?void 0:it.every(function(xt){return xt.status==="done"});if(!Me||!Ve){v.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){pt()}});return}pt()},fn=function(){return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",null,h.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(x.a.colorBlue)})),h.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",h.a.createElement("span",{className:"".concat(x.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},qt=function(Be){console.log(Be,444)};return h.a.createElement(v.a,{visible:G,wrapClassName:D,onOk:function(){Object(P.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),st.submit()},centered:!0,okText:Q===0?"\u786E\u5B9A":Q===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Oe},onCancel:Jt,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},h.a.createElement("div",{className:x.a.wrap},h.a.createElement(r.a,{className:"mt10",form:st,scrollToFirstError:!0,layout:"vertical",onFinish:We,onValuesChange:$e},H?h.a.createElement(r.a.Item,{label:h.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",h.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"}]},h.a.createElement(R,be," ",fn())):h.a.createElement(r.a.Item,{label:h.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",h.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"}]},h.a.createElement(b.b,{identifier:L,cancelUpload:$,container_type:"Shixun",container_id:W,uploading:Q<3?Q:0,disabled:Q>0,height:300,maxSize:100*1024*1024*1024,description:ce.commitMessage||"",text:fn(),onComplete:qt,realFileName:!0})),!!de.length&&h.a.createElement("span",{className:x.a.repeatedName},de.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),h.a.createElement(r.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},h.a.createElement(E.a,{bordered:!1,disabled:Q>0,maxLength:100,suffix:"".concat(((A=ce.commitMessage)===null||A===void 0?void 0:A.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};Y.a=C},M8RZ:function(N,Y,i){"use strict";i.d(Y,"a",function(){return e});var M=i("fWQN"),E=i("mtLc"),T=i("yKVA"),v=i("879j"),m=i("q1tI"),y=i.n(m),O=i("i8i4"),g=i.n(O),e=function(f){Object(T.a)(c,f);var r=Object(v.a)(c);function c(n){var a;Object(M.a)(this,c),a=r.call(this,n);var o=window.document;return a.node=o.createElement("div"),o.body.appendChild(a.node),a}return Object(E.a)(c,[{key:"render",value:function(){var a=this.props.children;return Object(O.createPortal)(a,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),c}(y.a.Component)},MEgm:function(N,Y){N.exports="data:image/png;base64,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"},MI8n:function(N,Y,i){"use strict";i.d(Y,"c",function(){return m}),i.d(Y,"b",function(){return e}),i.d(Y,"e",function(){return f}),i.d(Y,"a",function(){return r}),i.d(Y,"d",function(){return c}),i.d(Y,"f",function(){return n});var M=i("/cxE"),E=i("pmY6"),T=i("24hK"),v=i("5Y4S"),m;(function(a){a.None=()=>E.a.None;function o(k){return(J,G=null,D)=>{let H=!1,W;return W=k(L=>H?void 0:(W?W.dispose():H=!0,J.call(G,L)),null,D),H&&W.dispose(),W}}a.once=o;function l(k,J){return x((G,D=null,H)=>k(W=>G.call(D,J(W)),null,H))}a.map=l;function d(k,J){return x((G,D=null,H)=>k(W=>{J(W),G.call(D,W)},null,H))}a.forEach=d;function h(k,J){return x((G,D=null,H)=>k(W=>J(W)&&G.call(D,W),null,H))}a.filter=h;function s(k){return k}a.signal=s;function u(...k){return(J,G=null,D)=>Object(E.e)(...k.map(H=>H(W=>J.call(G,W),null,D)))}a.any=u;function w(k,J,G){let D=G;return l(k,H=>(D=J(D,H),D))}a.reduce=w;function x(k){let J;const G=new e({onFirstListenerAdd(){J=k(G.fire,G)},onLastListenerRemove(){J.dispose()}});return G.event}function b(k,J,G=100,D=!1,H){let W,L,z,ie=0;const ce=new e({leakWarningThreshold:H,onFirstListenerAdd(){W=k(ue=>{ie++,L=J(L,ue),D&&!z&&(ce.fire(L),L=void 0),clearTimeout(z),z=setTimeout(()=>{const xe=L;L=void 0,z=void 0,(!D||ie>1)&&ce.fire(xe),ie=0},G)})},onLastListenerRemove(){W.dispose()}});return ce.event}a.debounce=b;function P(k,J=(G,D)=>G===D){let G=!0,D;return h(k,H=>{const W=G||!J(H,D);return G=!1,D=H,W})}a.latch=P;function R(k,J){return[a.filter(k,J),a.filter(k,G=>!J(G))]}a.split=R;function C(k,J=!1,G=[]){let D=G.slice(),H=k(z=>{D?D.push(z):L.fire(z)});const W=()=>{D&&D.forEach(z=>L.fire(z)),D=null},L=new e({onFirstListenerAdd(){H||(H=k(z=>L.fire(z)))},onFirstListenerDidAdd(){D&&(J?setTimeout(W):W())},onLastListenerRemove(){H&&H.dispose(),H=null}});return L.event}a.buffer=C;class S{constructor(k){this.event=k}map(k){return new S(l(this.event,k))}forEach(k){return new S(d(this.event,k))}filter(k){return new S(h(this.event,k))}reduce(k,J){return new S(w(this.event,k,J))}latch(){return new S(P(this.event))}debounce(k,J=100,G=!1,D){return new S(b(this.event,k,J,G,D))}on(k,J,G){return this.event(k,J,G)}once(k,J,G){return o(this.event)(k,J,G)}}function _(k){return new S(k)}a.chain=_;function A(k,J,G=D=>D){const D=(...z)=>L.fire(G(...z)),H=()=>k.on(J,D),W=()=>k.removeListener(J,D),L=new e({onFirstListenerAdd:H,onLastListenerRemove:W});return L.event}a.fromNodeEventEmitter=A;function j(k,J,G=D=>D){const D=(...z)=>L.fire(G(...z)),H=()=>k.addEventListener(J,D),W=()=>k.removeEventListener(J,D),L=new e({onFirstListenerAdd:H,onLastListenerRemove:W});return L.event}a.fromDOMEventEmitter=j;function I(k){return new Promise(J=>o(k)(J))}a.toPromise=I})(m||(m={}));class y{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${y._idPool++}`}start(a){this._stopWatch=new v.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}y._idPool=0;let O=-1;class g{constructor(a,o=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=o,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let o=O;if(typeof this.customThreshold=="number"&&(o=this.customThreshold),o<=0||a<o)return;this._stacks||(this._stacks=new Map);const l=new Error().stack.split(`
`).slice(3).join(`
`),d=this._stacks.get(l)||0;if(this._stacks.set(l,d+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=o*.5;let h,s=0;for(const[u,w]of this._stacks)(!h||s<w)&&(h=u,s=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${a} listeners already. MOST frequent listener (${s}):`),console.warn(h)}return()=>{const h=this._stacks.get(l)||0;this._stacks.set(l,h-1)}}}class e{constructor(a){var o;this._disposed=!1,this._options=a,this._leakageMon=O>0?new g(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((o=this._options)===null||o===void 0?void 0:o._profName)?new y(this._options._profName):void 0}get event(){return this._event||(this._event=(a,o,l)=>{var d;this._listeners||(this._listeners=new T.a);const h=this._listeners.isEmpty();h&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(o?[a,o]:a);h&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,o);const u=(d=this._leakageMon)===null||d===void 0?void 0:d.check(this._listeners.size),w=Object(E.i)(()=>{if(u&&u(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const x=this._listeners&&!this._listeners.isEmpty();x||this._options.onLastListenerRemove(this)}});return l instanceof E.b?l.add(w):Array.isArray(l)&&l.push(w),w}),this._event}fire(a){var o,l;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.a);for(let d of this._listeners)this._deliveryQueue.push([d,a]);for((o=this._perfMon)===null||o===void 0||o.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[d,h]=this._deliveryQueue.shift();try{typeof d=="function"?d.call(void 0,h):d[0].call(d[1],h)}catch(s){Object(M.f)(s)}}(l=this._perfMon)===null||l===void 0||l.stop()}}dispose(){var a,o,l,d,h;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(o=this._deliveryQueue)===null||o===void 0||o.clear(),(d=(l=this._options)===null||l===void 0?void 0:l.onLastListenerRemove)===null||d===void 0||d.call(l),(h=this._leakageMon)===null||h===void 0||h.dispose())}}class f extends e{constructor(a){super(a);this._isPaused=0,this._eventQueue=new T.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class r extends f{constructor(a){var o;super(a);this._delay=(o=a.delay)!==null&&o!==void 0?o:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class c{constructor(){this.buffers=[]}wrapEvent(a){return(o,l,d)=>a(h=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>o.call(l,h)):o.call(l,h)},void 0,d)}bufferEvents(a){const o=[];this.buffers.push(o);const l=a();return this.buffers.pop(),o.forEach(d=>d()),l}}class n{constructor(){this.listening=!1,this.inputEvent=m.None,this.inputEventListener=E.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(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(N,Y,i){"use strict";(function(M,E){i.d(Y,"b",function(){return l}),i.d(Y,"i",function(){return u}),i.d(Y,"f",function(){return w}),i.d(Y,"d",function(){return x}),i.d(Y,"g",function(){return b}),i.d(Y,"h",function(){return P}),i.d(Y,"c",function(){return R}),i.d(Y,"k",function(){return C}),i.d(Y,"j",function(){return S}),i.d(Y,"a",function(){return _}),i.d(Y,"e",function(){return I});var T;const v="en";let m=!1,y=!1,O=!1,g=!1,e=!1,f=!1,r=!1,c,n=v,a,o;const l=typeof self=="object"?self:typeof M=="object"?M:{};let d;typeof l.vscode!="undefined"&&typeof l.vscode.process!="undefined"?d=l.vscode.process:typeof E!="undefined"&&(d=E);const h=typeof((T=d==null?void 0:d.versions)===null||T===void 0?void 0:T.electron)=="string"&&d.type==="renderer";if(typeof navigator=="object"&&!h)o=navigator.userAgent,m=o.indexOf("Windows")>=0,y=o.indexOf("Macintosh")>=0,r=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,O=o.indexOf("Linux")>=0,f=!0,c=navigator.language,n=c;else if(typeof d=="object"){m=d.platform==="win32",y=d.platform==="darwin",O=d.platform==="linux",g=O&&!!d.env.SNAP&&!!d.env.SNAP_REVISION,c=v,n=v;const k=d.env.VSCODE_NLS_CONFIG;if(k)try{const J=JSON.parse(k),G=J.availableLanguages["*"];c=J.locale,n=G||v,a=J._translationsConfigFile}catch(J){}e=!0}else console.error("Unable to resolve platform.");let s=0;y?s=1:m?s=3:O&&(s=2);const u=m,w=y,x=O,b=e,P=f,R=r,C=o,S=function(){if(l.setImmediate)return l.setImmediate.bind(l);if(typeof l.postMessage=="function"&&!l.importScripts){let G=[];l.addEventListener("message",H=>{if(H.data&&H.data.vscodeSetImmediateId)for(let W=0,L=G.length;W<L;W++){const z=G[W];if(z.id===H.data.vscodeSetImmediateId){G.splice(W,1),z.callback();return}}});let D=0;return H=>{const W=++D;G.push({id:W,callback:H}),l.postMessage({vscodeSetImmediateId:W},"*")}}if(typeof(d==null?void 0:d.nextTick)=="function")return d.nextTick.bind(d);const J=Promise.resolve();return G=>J.then(G)}(),_=y||r?2:m?1:3;let A=!0,j=!1;function I(){if(!j){j=!0;const k=new Uint8Array(2);k[0]=1,k[1]=2;const J=new Uint16Array(k.buffer);A=J[0]===(2<<8)+1}return A}}).call(this,i("IyRk"),i("Q2Ig"))},MlIO:function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(E){var T=M,v=T.lib,m=v.Base,y=v.WordArray,O=T.x64={},g=O.Word=m.extend({init:function(f,r){this.high=f,this.low=r}}),e=O.WordArray=m.extend({init:function(f,r){f=this.words=f||[],r!=E?this.sigBytes=r:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,r=f.length,c=[],n=0;n<r;n++){var a=f[n];c.push(a.high),c.push(a.low)}return y.create(c,this.sigBytes)},clone:function(){for(var f=m.clone.call(this),r=f.words=this.words.slice(0),c=r.length,n=0;n<c;n++)r[n]=r[n].clone();return f}})}(),M})},N0LK:function(N,Y,i){"use strict";i.d(Y,"C",function(){return M}),i.d(Y,"v",function(){return T}),i.d(Y,"s",function(){return v}),i.d(Y,"t",function(){return m}),i.d(Y,"U",function(){return y}),i.d(Y,"J",function(){return O}),i.d(Y,"O",function(){return g}),i.d(Y,"p",function(){return e}),i.d(Y,"T",function(){return f}),i.d(Y,"q",function(){return r}),i.d(Y,"N",function(){return c}),i.d(Y,"M",function(){return n}),i.d(Y,"Q",function(){return a}),i.d(Y,"u",function(){return o}),i.d(Y,"x",function(){return l}),i.d(Y,"I",function(){return d}),i.d(Y,"f",function(){return h}),i.d(Y,"h",function(){return s}),i.d(Y,"g",function(){return u}),i.d(Y,"i",function(){return w}),i.d(Y,"G",function(){return x}),i.d(Y,"H",function(){return b}),i.d(Y,"r",function(){return P}),i.d(Y,"R",function(){return R}),i.d(Y,"d",function(){return C}),i.d(Y,"e",function(){return S}),i.d(Y,"E",function(){return _}),i.d(Y,"F",function(){return A}),i.d(Y,"j",function(){return j}),i.d(Y,"z",function(){return I}),i.d(Y,"K",function(){return J}),i.d(Y,"L",function(){return G}),i.d(Y,"m",function(){return H}),i.d(Y,"k",function(){return L}),i.d(Y,"A",function(){return ie}),i.d(Y,"a",function(){return ce}),i.d(Y,"n",function(){return ue}),i.d(Y,"l",function(){return xe}),i.d(Y,"D",function(){return Te}),i.d(Y,"B",function(){return de}),i.d(Y,"b",function(){return ve}),i.d(Y,"S",function(){return _e}),i.d(Y,"o",function(){return le}),i.d(Y,"P",function(){return ee}),i.d(Y,"w",function(){return U}),i.d(Y,"c",function(){return K}),i.d(Y,"y",function(){return te});function M(Z){return!Z||typeof Z!="string"?!0:Z.trim().length===0}const E=/{(\d+)}/g;function T(Z,...fe){return fe.length===0?Z:Z.replace(E,function(me,Oe){const He=parseInt(Oe,10);return isNaN(He)||He<0||He>=fe.length?me:fe[He]})}function v(Z){return Z.replace(/[<>&]/g,function(fe){switch(fe){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return fe}})}function m(Z){return Z.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function y(Z,fe=" "){const me=O(Z,fe);return g(me,fe)}function O(Z,fe){if(!Z||!fe)return Z;const me=fe.length;if(me===0||Z.length===0)return Z;let Oe=0;for(;Z.indexOf(fe,Oe)===Oe;)Oe=Oe+me;return Z.substring(Oe)}function g(Z,fe){if(!Z||!fe)return Z;const me=fe.length,Oe=Z.length;if(me===0||Oe===0)return Z;let He=Oe,Qe=-1;for(;!(Qe=Z.lastIndexOf(fe,He-1),Qe===-1||Qe+me!==He);){if(Qe===0)return"";He=Qe}return Z.substring(0,He)}function e(Z){return Z.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(Z){return Z.replace(/\*/g,"")}function r(Z,fe,me={}){if(!Z)throw new Error("Cannot create regex from empty string");fe||(Z=m(Z)),me.wholeWord&&(/\B/.test(Z.charAt(0))||(Z="\\b"+Z),/\B/.test(Z.charAt(Z.length-1))||(Z=Z+"\\b"));let Oe="";return me.global&&(Oe+="g"),me.matchCase||(Oe+="i"),me.multiline&&(Oe+="m"),me.unicode&&(Oe+="u"),new RegExp(Z,Oe)}function c(Z){if(Z.source==="^"||Z.source==="^$"||Z.source==="$"||Z.source==="^\\s*$")return!1;const fe=Z.exec("");return!!(fe&&Z.lastIndex===0)}function n(Z){return(Z.global?"g":"")+(Z.ignoreCase?"i":"")+(Z.multiline?"m":"")+(Z.unicode?"u":"")}function a(Z){return Z.split(/\r\n|\r|\n/)}function o(Z){for(let fe=0,me=Z.length;fe<me;fe++){const Oe=Z.charCodeAt(fe);if(Oe!==32&&Oe!==9)return fe}return-1}function l(Z,fe=0,me=Z.length){for(let Oe=fe;Oe<me;Oe++){const He=Z.charCodeAt(Oe);if(He!==32&&He!==9)return Z.substring(fe,Oe)}return Z.substring(fe,me)}function d(Z,fe=Z.length-1){for(let me=fe;me>=0;me--){const Oe=Z.charCodeAt(me);if(Oe!==32&&Oe!==9)return me}return-1}function h(Z,fe){return Z<fe?-1:Z>fe?1:0}function s(Z,fe,me=0,Oe=Z.length,He=0,Qe=fe.length){for(;me<Oe&&He<Qe;me++,He++){let ct=Z.charCodeAt(me),dt=fe.charCodeAt(He);if(ct<dt)return-1;if(ct>dt)return 1}const ot=Oe-me,st=Qe-He;return ot<st?-1:ot>st?1:0}function u(Z,fe){return w(Z,fe,0,Z.length,0,fe.length)}function w(Z,fe,me=0,Oe=Z.length,He=0,Qe=fe.length){for(;me<Oe&&He<Qe;me++,He++){let ct=Z.charCodeAt(me),dt=fe.charCodeAt(He);if(ct===dt)continue;if(ct>=128||dt>=128)return s(Z.toLowerCase(),fe.toLowerCase(),me,Oe,He,Qe);x(ct)&&(ct-=32),x(dt)&&(dt-=32);const Xe=ct-dt;if(Xe===0)continue;return Xe}const ot=Oe-me,st=Qe-He;return ot<st?-1:ot>st?1:0}function x(Z){return Z>=97&&Z<=122}function b(Z){return Z>=65&&Z<=90}function P(Z,fe){return Z.length===fe.length&&w(Z,fe)===0}function R(Z,fe){const me=fe.length;return fe.length>Z.length?!1:w(Z,fe,0,me)===0}function C(Z,fe){let me,Oe=Math.min(Z.length,fe.length);for(me=0;me<Oe;me++)if(Z.charCodeAt(me)!==fe.charCodeAt(me))return me;return Oe}function S(Z,fe){let me,Oe=Math.min(Z.length,fe.length);const He=Z.length-1,Qe=fe.length-1;for(me=0;me<Oe;me++)if(Z.charCodeAt(He-me)!==fe.charCodeAt(Qe-me))return me;return Oe}function _(Z){return 55296<=Z&&Z<=56319}function A(Z){return 56320<=Z&&Z<=57343}function j(Z,fe){return(Z-55296<<10)+(fe-56320)+65536}function I(Z,fe,me){const Oe=Z.charCodeAt(me);if(_(Oe)&&me+1<fe){const He=Z.charCodeAt(me+1);if(A(He))return j(Oe,He)}return Oe}function k(Z,fe){const me=Z.charCodeAt(fe-1);if(A(me)&&fe>1){const Oe=Z.charCodeAt(fe-2);if(_(Oe))return j(Oe,me)}return me}function J(Z,fe){const me=X.getInstance(),Oe=fe,He=Z.length,Qe=I(Z,He,fe);fe+=Qe>=65536?2:1;let ot=me.getGraphemeBreakType(Qe);for(;fe<He;){const st=I(Z,He,fe),ct=me.getGraphemeBreakType(st);if(K(ot,ct))break;fe+=st>=65536?2:1,ot=ct}return fe-Oe}function G(Z,fe){const me=X.getInstance(),Oe=fe,He=k(Z,fe);fe-=He>=65536?2:1;let Qe=me.getGraphemeBreakType(He);for(;fe>0;){const ot=k(Z,fe),st=me.getGraphemeBreakType(ot);if(K(st,Qe))break;fe-=ot>=65536?2:1,Qe=st}return Oe-fe}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 H(Z){return D.test(Z)}const W=/(?:[\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(Z){return W.test(Z)}const z=/^[\t\n\r\x20-\x7E]*$/;function ie(Z){return z.test(Z)}const ce=/[\u2028\u2029]/;function ue(Z){return ce.test(Z)}function xe(Z){for(let fe=0,me=Z.length;fe<me;fe++)if(Te(Z.charCodeAt(fe)))return!0;return!1}function Te(Z){return Z=+Z,Z>=11904&&Z<=55215||Z>=63744&&Z<=64255||Z>=65281&&Z<=65374}function de(Z){return Z>=127462&&Z<=127487||Z===8986||Z===8987||Z===9200||Z===9203||Z>=9728&&Z<=10175||Z===11088||Z===11093||Z>=127744&&Z<=128591||Z>=128640&&Z<=128764||Z>=128992&&Z<=129003||Z>=129280&&Z<=129535||Z>=129648&&Z<=129750}const ve=String.fromCharCode(65279);function _e(Z){return!!(Z&&Z.length>0&&Z.charCodeAt(0)===65279)}function le(Z,fe=!1){return Z?(fe&&(Z=Z.replace(/\\./g,"")),Z.toLowerCase()!==Z):!1}function ee(Z){const fe=90-65+1;return Z=Z%(2*fe),Z<fe?String.fromCharCode(97+Z):String.fromCharCode(65+Z-fe)}function U(Z){const fe=X.getInstance();return fe.getGraphemeBreakType(Z)}function K(Z,fe){return Z===0?fe!==5&&fe!==7:Z===2&&fe===3?!1:Z===4||Z===2||Z===3||(fe===4||fe===2||fe===3)?!0:Z===8&&(fe===8||fe===9||fe===11||fe===12)||((Z===11||Z===9)&&(fe===9||fe===10)||((Z===12||Z===10)&&fe===10||(fe===5||fe===13||(fe===7||(Z===1||Z===13&&fe===14)))))?!1:!(Z===6&&fe===6)}class X{constructor(){this._data=Q()}static getInstance(){return X._INSTANCE||(X._INSTANCE=new X),X._INSTANCE}getGraphemeBreakType(Z){if(Z<32)return Z===10?3:Z===13?2:4;if(Z<127)return 0;const fe=this._data,me=fe.length/3;let Oe=1;for(;Oe<=me;)if(Z<fe[3*Oe])Oe=2*Oe;else if(Z>fe[3*Oe+1])Oe=2*Oe+1;else return fe[3*Oe+2];return 0}}X._INSTANCE=null;function Q(){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 te(Z,fe){if(Z===0)return 0;const me=ae(Z,fe);if(me!==void 0)return me;const Oe=k(fe,Z);return Z-=re(Oe),Z}function ae(Z,fe){let me=k(fe,Z);for(Z-=re(me);$(me)||me===65039||me===8419;){if(Z===0)return;me=k(fe,Z),Z-=re(me)}if(!de(me))return;if(Z>=0){const Oe=k(fe,Z);Oe===8205&&(Z-=re(Oe))}return Z}function re(Z){return Z>=65536?2:1}function $(Z){return 127995<=Z&&Z<=127999}},N3QO:function(N,Y,i){"use strict";var M=i("2qtc"),E=i("kLXV"),T=i("tJVT"),v=i("q1tI"),m=i.n(v),y=i("9kvl"),O=i("FPkq"),g=i.n(O),e=function(r){var c,n=r.newShixuns,a=r.dispatch,o=r.user,l=Object(v.useState)(!1),d=Object(T.a)(l,2),h=d[0],s=d[1];Object(v.useEffect)(function(){n.actionTabs.key==="Create-Environment"&&w()},[n==null||((c=n.actionTabs)===null||c===void 0)?void 0:c.key]);var u=function(){a({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var b,P,R;u(),((b=o.userInfo)===null||b===void 0?void 0:b.mirror_marker_status)===0?s(!0):((P=o.userInfo)===null||P===void 0?void 0:P.mirror_marker_status)===1?y.d.push("/shixuns/new/CreateImg"):((R=o.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===2&&E.a.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk:function(){var S;y.d.push("/users/".concat((S=o.userInfo)===null||S===void 0?void 0:S.login,"/experiment-img"))}})};return m.a.createElement(E.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:h,footer:null,onCancel:function(){s(!1)}},m.a.createElement("div",{style:{textAlign:"center"}},m.a.createElement("br",null),m.a.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:g.a,alt:"\u4E8C\u7EF4\u7801"})),m.a.createElement("img",null))};Y.a=Object(y.a)(function(f){var r=f.newShixuns,c=f.user,n=f.globalSetting;return{newShixuns:r,globalSetting:n,user:c}})(e)},NFKh:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("MlIO"),i("F+F2"),i("qM6L"),i("ETIr"),i("wbyO"),i("cv67"),i("3y9D"),i("lPiR"),i("GRuw"),i("1uat"),i("uGsb"),i("5hvy"),i("ELcG"),i("WYAk"),i("e7zE"),i("K3mO"),i("OLod"),i("ALsQ"),i("9OqN"),i("qu8F"),i("S6kV"),i("gb/T"),i("qBft"),i("oRuE"),i("jO9C"),i("KmYQ"),i("uGxW"),i("bQjk"),i("wZgz"),i("pA7S"),i("w7YG"),i("E4JC"),i("PVpz"))})(this,function(M){return M})},NLgs:function(N,Y,i){"use strict";i.d(Y,"e",function(){return d}),i.d(Y,"f",function(){return h}),i.d(Y,"d",function(){return u}),i.d(Y,"c",function(){return w}),i.d(Y,"a",function(){return x}),i.d(Y,"b",function(){return b});var M=i("miYZ"),E=i("tsqr"),T=i("9og8"),v=i("2qtc"),m=i("kLXV"),y=i("WmNS"),O=i.n(y),g=i("q1tI"),e=i.n(g),f=i("9kvl"),r=i("xKgJ"),c=i("1vsH"),n=i("RCxd"),a=i("yTi+"),o=i.n(a),l=i("m3rI"),d=function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(h(R)&&s(C))},h=function(R){return Object(r.p)()?!0:(R({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},s=function(){var R,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S=Object(f.c)()._store.getState(),_=S.user;return(R=_.userInfo)!==null&&R!==void 0&&R.profile_completed?!0:(m.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:C?"\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,C=Object(f.c)()._store.getState(),S=C.user;return(R=S.userInfo)!==null&&R!==void 0&&R.professional_certification?!0:(m.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(c.S)("/account/certification")}}),!1)},w=function(){var R;if(Object(r.a)())return!0;var C=Object(f.c)()._store.getState(),S=C.user,_=C.globalSetting;return m.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:l.a.IMG_SERVER+(_==null||((R=_.setting)===null||R===void 0)?void 0:R.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},x=function(R,C){var S;if(R)return!0;var _=Object(f.c)()._store.getState(),A=_.user,j=_.globalSetting;return m.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,C||"\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:l.a.IMG_SERVER+(j==null||((S=j.setting)===null||S===void 0)?void 0:S.authority_qrcode_url),width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(c.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},b=function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",S=Object(f.c)()._store.getState(),_=S.shixunsDetail.detail;return(_==null?void 0:_.public)===2||(_==null?void 0:_.public)===1||(_==null?void 0:_.shixun_status)===3?(m.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",(_==null?void 0:_.public)===2?"\u5DF2\u516C\u5F00":(_==null?void 0:_.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",C,"\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:o.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(_==null?void 0:_.shixun_status)===2?(m.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",C,"\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(){m.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 j=Object(T.a)(O.a.mark(function k(){var J;return O.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,R({type:"shixunsDetail/cancelRelease",payload:{id:_==null?void 0:_.identifier}});case 2:J=D.sent,J.status!==401&&(E.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:_==null?void 0:_.identifier}}),R({type:"practiceSetting/getCommonData",payload:{id:_==null?void 0:_.identifier}}));case 4:case"end":return D.stop()}},k)}));function I(){return j.apply(this,arguments)}return I}()})}}),!0):!1}},NQs2:function(N,Y,i){N.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",img_noactive:"img_noactive___s1naU",img_active:"img_active___11s7p",input_warp:"input_warp___3Y7JU"}},Nf5h:function(N,Y,i){"use strict";i.d(Y,"a",function(){return e}),i.d(Y,"i",function(){return o}),i.d(Y,"l",function(){return s}),i.d(Y,"f",function(){return b}),i.d(Y,"j",function(){return S}),i.d(Y,"d",function(){return re}),i.d(Y,"b",function(){return Oe}),i.d(Y,"h",function(){return st}),i.d(Y,"g",function(){return ke}),i.d(Y,"k",function(){return Ae}),i.d(Y,"e",function(){return it}),i.d(Y,"c",function(){return Bt});var M=i("5NDa"),E=i("5rEg"),T=i("tJVT"),v=i("q1tI"),m=i.n(v),y=i("NQs2"),O=i.n(y),g=function(yt){var zt=yt.dataSource,sn=zt===void 0?[]:zt,hn=yt.bannerImg,un=yt.img,Kt=yt.imgWidth,gn=Kt===void 0?346:Kt,Rn=yt.title,Cn=yt.sunTitle,an=yt.bannerExtraContent,_n=yt.placeholder,vn=yt.onChange,Ft=Object(v.useState)(""),Nt=Object(T.a)(Ft,2),pn=Nt[0],qn=Nt[1];return m.a.createElement("div",{className:O.a.banner,style:{backgroundImage:"url('".concat(hn,"')"),backgroundPosition:"center",backgroundSize:"cover"}},m.a.createElement("div",{className:O.a.content},m.a.createElement("aside",null,m.a.createElement("p",{style:{marginBottom:"".concat(sn.length==0?"0":"")}},m.a.createElement("b",null,Rn),m.a.createElement("span",null,Cn)),sn.length>0&&m.a.createElement("div",{className:O.a.btns},sn.map(function(Qt,Vn){return Qt.buttonShow&&m.a.createElement(m.a.Fragment,null,Qt.Button?Qt.Button:m.a.createElement("div",{key:Vn,onClick:Qt.click},m.a.createElement("img",{src:Qt.img,className:O.a.img_noactive}),m.a.createElement("img",{src:Qt.img_active,className:O.a.img_active}),Qt.name))})),an),sn.length>0&&m.a.createElement("div",{className:O.a.input_warp},m.a.createElement(E.a,{value:pn,onChange:function(Vn){qn(Vn.target.value)},placeholder:_n,onPressEnter:function(){return vn(pn)},color:"#fff"}),m.a.createElement("i",{onClick:function(){return vn(pn)},className:"iconfont icon-sousuo9 font14 pl10 current"}))))},e=g,f=i("6nfa"),r=i.n(f),c=i("TSYQ"),n=i.n(c),a=function(yt){var zt=yt.dataSource,sn=zt===void 0?[]:zt,hn=yt.value,un=yt.onChange,Kt=yt.className,gn=yt.title,Rn=yt.titleWidth,Cn=Rn===void 0?56:Rn,an=yt.style,_n=an===void 0?{}:an,vn=yt.fontColor,Ft=vn===void 0?"#6A7283":vn,Nt=yt.isId,pn=Nt===void 0?!1:Nt,qn=Object(v.useState)(0),Qt=Object(T.a)(qn,2),Vn=Qt[0],Gn=Qt[1],xr=Object(v.useState)(!1),Sn=Object(T.a)(xr,2),Pn=Sn[0],Yt=Sn[1],Hr=Object(v.useRef)(null);return Object(v.useEffect)(function(){if(sn.length!==0){var ar;(Hr==null||((ar=Hr.current)===null||ar===void 0)?void 0:ar.clientHeight)>98?Gn(1):Gn(0)}sn.length===0&&Gn(0)},[sn]),m.a.createElement("div",{className:n()(r.a.row,Kt),style:_n},m.a.createElement("div",{style:{width:Cn,marginTop:Pn?12:4},className:r.a.title},gn),m.a.createElement("div",{className:Pn?"".concat(r.a.tagsWrap," ").concat(r.a.tagsBorderWrap):r.a.tagsWrap},m.a.createElement("div",{className:r.a.bar,style:Vn>0?{height:Vn===1?100:"auto",overflow:Vn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},m.a.createElement("div",{className:r.a.name,ref:Hr},sn==null?void 0:sn.map(function(ar){return m.a.createElement("span",{onClick:function(){return un(pn?ar.id:ar.name)},key:pn?ar.id:ar.name,title:ar.name,style:{color:Ft},className:hn===(pn?ar.id:ar.name)?r.a.active:""},ar.name)}))),!!Vn&&m.a.createElement(v.Fragment,null,Vn===1?m.a.createElement("div",{onClick:function(){var ma;Gn(2),(Hr==null||((ma=Hr.current)===null||ma===void 0)?void 0:ma.clientHeight)>205?Yt(!0):Yt(!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(){Gn(1),Yt(!1)},className:r.a.action},"\u6536\u8D77",m.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},o=a,l=i("cz0n"),d=i.n(l),h=function(yt){var zt=yt.dataSource,sn=zt===void 0?[]:zt,hn=yt.value,un=yt.onChange,Kt=yt.className;return m.a.createElement("div",{className:n()(d.a.tabs,Kt)},sn.map(function(gn){return m.a.createElement("span",{onClick:function(){return un(gn.id)},className:hn===gn.id?d.a.active:"",key:gn.id},gn.name)}))},s=h,u=i("KOXS"),w=i.n(u),x=function(yt){var zt,sn=yt.dataSource,hn=sn===void 0?[]:sn,un=yt.value,Kt=yt.onChange,gn=yt.className,Rn=yt.style,Cn=Rn===void 0?{}:Rn,an=yt.placeholder,_n=Object(v.useState)(""),vn=Object(T.a)(_n,2),Ft=vn[0],Nt=vn[1],pn=Object(v.useState)(""),qn=Object(T.a)(pn,2),Qt=qn[0],Vn=qn[1];Object(v.useEffect)(function(){var Sn;(Sn=JSON.stringify(un))!==null&&Sn!==void 0&&Sn.includes("{")?(Nt(un.id),Vn(un.value)):Vn(un)},[un]);var Gn=function(){Kt(Qt||null,Ft||"")},xr=function(Pn){if(Pn===Ft)return;Nt(Pn),Kt(Qt,Pn)};return m.a.createElement("div",{className:n()(w.a.input,gn),style:Cn},!!hn.length&&m.a.createElement("div",{className:w.a.dropdown},m.a.createElement("div",{className:w.a.text},(zt=hn.find(function(Sn){return Sn.id===Ft}))===null||zt===void 0?void 0:zt.name,m.a.createElement("i",{className:"iconfont icon-zhankai4"}),m.a.createElement("b",{className:w.a.b1}),m.a.createElement("b",{className:w.a.b2})),m.a.createElement("div",{className:w.a.menu},hn.map(function(Sn,Pn){return m.a.createElement("div",{key:Pn,onClick:function(){return xr(Sn.id)}},Sn.name)}))),m.a.createElement(E.a,{onPressEnter:Gn,value:Qt,onChange:function(Pn){return Vn(Pn.target.value||"")},bordered:!1,placeholder:an}),m.a.createElement("i",{onClick:Gn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},b=x,P=i("f9pc"),R=i.n(P),C=function(yt){var zt=yt.value,sn=yt.onChange,hn=yt.className,un=yt.total,Kt=yt.pageSize,gn=yt.style,Rn=gn===void 0?{}:gn,Cn=zt<2,an=zt>=Math.ceil(un/Kt);return un<=Kt?m.a.createElement(m.a.Fragment,null):m.a.createElement("div",{className:n()(R.a.quickPager,hn),style:Rn},m.a.createElement("div",{onClick:function(){Cn||sn(zt-1,"prev")},className:Cn?R.a.disabled:""},"\u4E0A\u4E00\u9875"),m.a.createElement("div",{onClick:function(){an||sn(zt+1,"next")},className:an?R.a.disabled:""},"\u4E0B\u4E00\u9875"))},S=C,_=i("T2oS"),A=i("W9HT"),j=i("pC0b"),I=i("GzdX"),k=i("5Dmo"),J=i("3S7+"),G=i("Oe0F"),D=i.n(G),H=i("m3rI"),W=i("1vsH"),L=i("JAbv"),z=i.n(L),ie=i("Bq7L"),ce=i.n(ie),ue=i("MEgm"),xe=i.n(ue),Te=i("BdwD"),de=function(yt){var zt=yt.className,sn=yt.dataSource,hn=sn===void 0?[]:sn,un=yt.col,Kt=un===void 0?4:un,gn=yt.right,Rn=yt.bottom,Cn=Rn===void 0?23:Rn,an=yt.precision,_n=an===void 0?0:an,vn=yt.wrapWidth,Ft=vn===void 0?1200:vn,Nt=yt.trackEventItems,pn=yt.loading,qn=Math.floor((Ft-(Kt-1)*gn)/Kt);return m.a.createElement(A.a,{spinning:pn},m.a.createElement("div",{className:n()(D.a.list,zt)},!!hn.length&&hn.map(function(Qt,Vn){var Gn=Qt.name,xr=Qt.id,Sn=Qt.identifier,Pn=Qt.power,Yt=Qt.cover_image_id,Hr=Qt.pic;return m.a.createElement("div",{className:D.a.wrap,key:xr,style:{width:qn,marginRight:(1+Vn)%Kt===0?0:gn+_n,marginBottom:Cn}},m.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(Sn,"/challenges"),className:D.a.li,onClick:function(ma){ma.preventDefault(),Nt&&Object(W.db)([Nt]),Pn&&Object(W.S)("/shixuns/".concat(Sn,"/challenges"))}},m.a.createElement("div",{className:D.a.img},m.a.createElement("img",{className:D.a.cover,src:Yt?"".concat(H.a.API_SERVER,"/api/attachments/").concat(Yt):"".concat(H.a.IMG_SERVER,"/").concat(Hr)}),Qt.is_jupyter&&m.a.createElement("img",{className:D.a.sign,src:z.a}),Qt.is_jupyter_lab&&m.a.createElement("img",{className:D.a.sign,src:ce.a}),Qt.is_unity_3d&&m.a.createElement("img",{className:D.a.sign,src:xe.a})),m.a.createElement("div",{className:D.a.name},m.a.createElement(J.a,{title:Gn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},m.a.createElement("span",{className:D.a.e},Gn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),m.a.createElement("div",{className:D.a.tags},m.a.createElement(J.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,Qt.challenges_count))),!!Qt.myshixuns_count&&m.a.createElement(J.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,Qt.myshixuns_count))),m.a.createElement(J.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},m.a.createElement("span",null,m.a.createElement("span",null,Qt.level))),m.a.createElement("div",{className:D.a.rate},m.a.createElement(I.a,{allowHalf:!0,disabled:!0,defaultValue:Qt.score_info}),m.a.createElement("span",null,"\xA0",Qt.score_info?"".concat(Qt.score_info,"\u5206"):"5\u5206")))),!Pn&&m.a.createElement("div",{className:D.a.lockWrap},m.a.createElement("img",{src:"".concat(H.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")))}),!hn.length&&m.a.createElement(Te.a,null)))},ve=de,_e=i("ZJlW"),le=i.n(_e),ee=i("z4EP"),U=i.n(ee),K=i("+GGh"),X=i.n(K),Q=i("cFMs"),te=i.n(Q),ae=function(yt){var zt=yt.className,sn=yt.dataSource,hn=sn===void 0?[]:sn,un=yt.col,Kt=un===void 0?4:un,gn=yt.right,Rn=yt.bottom,Cn=Rn===void 0?23:Rn,an=yt.precision,_n=an===void 0?0:an,vn=yt.wrapWidth,Ft=vn===void 0?1200:vn,Nt=yt.trackEventItems,pn=yt.loading,qn=Math.floor((Ft-(Kt-1)*gn)/Kt);return m.a.createElement(A.a,{spinning:pn},m.a.createElement("div",{className:n()(le.a.list,zt)},!!hn.length&&hn.map(function(Qt,Vn){var Gn=Qt.name,xr=Qt.id,Sn=Qt.identifier,Pn=Qt.featured,Yt=Qt.school_name,Hr=Qt.image_url,ar=Qt.excellent;return m.a.createElement("div",{key:xr,className:le.a.wrap,style:{width:qn,marginRight:(1+Vn)%Kt===0?0:gn+_n,marginBottom:Cn}},m.a.createElement("a",{target:"_blank",href:"/paths/".concat(Sn),className:le.a.li,onClick:function(Br){Br.preventDefault(),Nt&&Object(W.db)([Nt]),Object(W.S)("/paths/".concat(Sn))}},m.a.createElement("div",{className:le.a.img},m.a.createElement("img",{className:le.a.cover,src:"".concat(H.a.IMG_SERVER,"/").concat(Hr)}),Pn===1&&m.a.createElement("img",{className:le.a.sign,src:U.a}),Pn===2&&m.a.createElement("img",{className:le.a.sign,src:""}),Pn===3&&m.a.createElement("img",{className:le.a.sign,src:X.a}),Pn===4&&m.a.createElement("img",{className:le.a.sign,src:""}),Pn===5&&m.a.createElement("img",{className:le.a.sign,src:te.a})),m.a.createElement("div",{className:le.a.name},m.a.createElement(J.a,{title:Gn},m.a.createElement("span",{className:le.a.e},Gn))),m.a.createElement(J.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Yt)},m.a.createElement("div",{className:le.a.unit},m.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Yt)),m.a.createElement("div",{className:le.a.tags},m.a.createElement(J.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,Qt.stages_count))),m.a.createElement(J.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,Qt.members_count))),ar&&m.a.createElement("div",{className:le.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!hn.length&&m.a.createElement(Te.a,null)))},re=ae,$=i("iL++"),Z=i.n($),fe=i("xiVL"),me=function(yt){var zt=yt.className,sn=yt.dataSource,hn=sn===void 0?[]:sn,un=yt.col,Kt=un===void 0?4:un,gn=yt.right,Rn=yt.bottom,Cn=Rn===void 0?23:Rn,an=yt.precision,_n=an===void 0?0:an,vn=yt.wrapWidth,Ft=vn===void 0?1200:vn,Nt=yt.trackEventItems,pn=yt.loading,qn=Math.floor((Ft-(Kt-1)*gn)/Kt);return m.a.createElement(A.a,{spinning:pn},m.a.createElement("div",{className:n()(Z.a.list,zt)},!!hn.length&&hn.map(function(Qt,Vn){var Gn=Qt.subject_identifier,xr=Qt.id,Sn=Qt.identifier,Pn=Qt.power,Yt=Qt.is_public!=0&&Qt.is_public;return m.a.createElement("div",{className:Z.a.wrap,key:xr,style:{width:qn,marginRight:(1+Vn)%Kt===0?0:gn+_n,marginBottom:Cn}},m.a.createElement("a",{className:Z.a.li,onClick:function(ar){ar.preventDefault()}},m.a.createElement("div",{className:Z.a.top},m.a.createElement(J.a,{title:Qt.name},m.a.createElement("div",{className:Z.a.name},Qt.name)),m.a.createElement("img",{className:Z.a.img,src:H.a.IMG_SERVER+"/images/"+Qt.avatar_url}),m.a.createElement("div",{className:Z.a.text},Qt.creator),Gn&&m.a.createElement("div",{className:Z.a.btns},m.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),m.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Yt&&m.a.createElement("div",{className:Z.a.sign},"\u516C\u5F00")),m.a.createElement("div",{className:Z.a.bottom},Qt.visits>0&&m.a.createElement(J.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,Qt.visits))),Qt.course_members_count>0&&m.a.createElement(J.a,{title:"\u6210\u5458",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-chengyuan"}),Qt.course_members_count)),Qt.tasks_count>0&&m.a.createElement(J.a,{title:"\u4F5C\u4E1A",placement:"bottom"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont icon-zuoye"}),Qt.tasks_count)),Qt.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:Z.a.lockWrap},Qt.is_accessible?m.a.createElement(m.a.Fragment,null,Gn&&m.a.createElement("div",{onClick:function(){return Object(W.S)("/paths/".concat(Gn))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),m.a.createElement("div",{onClick:function(ar){Nt&&Object(W.db)([Nt]),Object(W.S)(Qt.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(H.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"))))}),!hn.length&&m.a.createElement(Te.a,null)))},Oe=me,He=i("f0W+"),Qe=i.n(He),ot=function(yt){var zt=yt.dataSource,sn=zt===void 0?[]:zt,hn=yt.value,un=yt.onChange,Kt=yt.className,gn=yt.style,Rn=gn===void 0?{}:gn,Cn=yt.tabBarExtraContent;return m.a.createElement("div",{className:n()(Qe.a.tabs,Kt),style:Rn},m.a.createElement("div",{className:Qe.a.tabsWrap},sn.map(function(an,_n){return m.a.createElement("div",{onClick:function(){return un(an.id)},className:hn===an.id?Qe.a.active:"",key:_n},an.name)})),m.a.createElement("div",{className:Qe.a.tabBar},Cn))},st=ot,ct=i("9JIy"),dt=i.n(ct),Xe=function(yt){var zt=yt.className,sn=yt.style,hn=sn===void 0?{}:sn,un=yt.children;return m.a.createElement("div",{className:n()(dt.a.table,zt),style:hn},un)},ke=Xe,lt=i("qVdP"),Mt=i("jsC+"),Ce=i("lUTK"),he=i("BvKs"),be=i("8WcF"),Ee=i.n(be),Ne=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],we=function(yt){var zt,sn=yt.sortValue,hn=yt.dropValue,un=yt.className,Kt=yt.onSort,gn=yt.onDrop,Rn=yt.dataSource,Cn=Rn===void 0?Ne:Rn;return m.a.createElement("div",{className:n()(Ee.a.orderWrap,un)},m.a.createElement(Mt.a,{overlay:m.a.createElement(he.a,null,Cn.map(function(an,_n){return m.a.createElement(he.a.Item,{key:_n,onClick:function(){return gn(an.id)}},an.name)}))},m.a.createElement("span",{className:Ee.a.orderTextWrap},(zt=Cn.find(function(an){return hn===an.id}))===null||zt===void 0?void 0:zt.name)),m.a.createElement("span",{className:Ee.a.orderIconWrap},m.a.createElement("span",{className:Ee.a.orderAsc},m.a.createElement("i",{className:sn==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ee.a.cursorPointer," ").concat(Ee.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ee.a.cursorPointer),onClick:function(){return Kt(sn==="asc"?"desc":"asc")}})),m.a.createElement("span",{className:Ee.a.orderDesc},m.a.createElement("i",{className:sn==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ee.a.cursorPointer," ").concat(Ee.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ee.a.cursorPointer),onClick:function(){return Kt(sn==="asc"?"desc":"asc")}}))))},Ae=we,Ue=i("+L6B"),We=i("2/Rp"),Je=i("0Owb"),$e=i("9og8"),pt=i("PpiC"),Jt=i("WmNS"),fn=i.n(Jt),qt=i("siWv"),St=i.n(qt),Be=i("LvDl"),at=function(yt){var zt=yt.className,sn=yt.style,hn=yt.children,un=yt.loading,Kt=un===void 0?!1:un,gn=yt.openLoading,Rn=yt.onClick,Cn=Rn===void 0?function(){}:Rn,an=yt.size,_n=an===void 0?"middle":an,vn=yt.shape,Ft=vn===void 0?"round":vn,Nt=yt.type,pn=Nt===void 0?"default":Nt,qn=Object(pt.a)(yt,["className","style","children","loading","openLoading","onClick","size","shape","type"]),Qt=Object(v.useState)(!1),Vn=Object(T.a)(Qt,2),Gn=Vn[0],xr=Vn[1];return m.a.createElement(We.a,Object(Je.a)({onClick:Object(Be.throttle)(function(){var Sn=Object($e.a)(fn.a.mark(function Pn(Yt){return fn.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:return gn&&xr(!0),ar.prev=1,ar.next=4,Cn(Yt);case 4:ar.next=9;break;case 6:ar.prev=6,ar.t0=ar.catch(1),console.log("error",ar.t0);case 9:gn&&xr(!1);case 10:case"end":return ar.stop()}},Pn,null,[[1,6]])}));return function(Pn){return Sn.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:n()(St.a.btn,St.a["".concat(_n,"-").concat(Ft)],zt),style:sn,size:_n,shape:Ft,type:pn,loading:Gn||Kt},qn),hn)},it=at,Me=i("+oxA"),Ve=i.n(Me),xt=function(yt){var zt=yt.className,sn=yt.style,hn=yt.children,un=hn===void 0?null:hn,Kt=yt.onClick,gn=yt.title;return m.a.createElement("div",{className:n()(Ve.a.head,zt),style:sn},m.a.createElement("span",{className:"primary-hover",onClick:Kt},m.a.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),m.a.createElement("b",{title:gn},gn),m.a.createElement("div",{className:Ve.a.node},un))},_t=xt,At=i("fgAr"),Ot=i.n(At),Ct=function(yt){var zt=yt.confirmShow,sn=zt===void 0?!0:zt,hn=yt.confirmTitle,un=yt.confirmClick,Kt=yt.cancelShow,gn=Kt===void 0?!0:Kt,Rn=yt.cancelTitle,Cn=yt.cancelClick,an=yt.className,_n=yt.style,vn=yt.confirmLoading,Ft=vn===void 0?!1:vn;return m.a.createElement("div",{className:n()(Ot.a.btns,an),style:_n},sn&&m.a.createElement(We.a,{loading:Ft,onClick:un,type:"primary",className:Ot.a.confirm},hn),gn&&m.a.createElement(We.a,{onClick:Cn,className:Ot.a.cancel},Rn))},Bt=Ct},Nmxd:function(N,Y){N.exports="data:image/png;base64,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"},NvD2:function(N,Y,i){"use strict";i.d(Y,"a",function(){return y});var M=i("Kwbf");function E(O,g){var e=new Set;return O.forEach(function(f){g.has(f)||e.add(f)}),e}function T(O){var g=O||{},e=g.disabled,f=g.disableCheckbox,r=g.checkable;return!!(e||f)||r===!1}function v(O,g,e,f){for(var r=new Set(O),c=new Set,n=0;n<=e;n+=1){var a=g.get(n)||new Set;a.forEach(function(h){var s=h.key,u=h.node,w=h.children,x=w===void 0?[]:w;r.has(s)&&!f(u)&&x.filter(function(b){return!f(b.node)}).forEach(function(b){r.add(b.key)})})}for(var o=new Set,l=e;l>=0;l-=1){var d=g.get(l)||new Set;d.forEach(function(h){var s=h.parent,u=h.node;if(f(u)||!h.parent||o.has(h.parent.key))return;if(f(h.parent.node)){o.add(s.key);return}var w=!0,x=!1;(s.children||[]).filter(function(b){return!f(b.node)}).forEach(function(b){var P=b.key,R=r.has(P);w&&!R&&(w=!1),!x&&(R||c.has(P))&&(x=!0)}),w&&r.add(s.key),x&&c.add(s.key),o.add(s.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(E(c,r))}}function m(O,g,e,f,r){for(var c=new Set(O),n=new Set(g),a=0;a<=f;a+=1){var o=e.get(a)||new Set;o.forEach(function(s){var u=s.key,w=s.node,x=s.children,b=x===void 0?[]:x;!c.has(u)&&!n.has(u)&&!r(w)&&b.filter(function(P){return!r(P.node)}).forEach(function(P){c.delete(P.key)})})}n=new Set;for(var l=new Set,d=f;d>=0;d-=1){var h=e.get(d)||new Set;h.forEach(function(s){var u=s.parent,w=s.node;if(r(w)||!s.parent||l.has(s.parent.key))return;if(r(s.parent.node)){l.add(u.key);return}var x=!0,b=!1;(u.children||[]).filter(function(P){return!r(P.node)}).forEach(function(P){var R=P.key,C=c.has(R);x&&!C&&(x=!1),!b&&(C||n.has(R))&&(b=!0)}),x||c.delete(u.key),b&&n.add(u.key),l.add(u.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(E(n,c))}}function y(O,g,e,f){var r=[],c;f?c=f:c=T;var n=new Set(O.filter(function(d){var h=!!e[d];return h||r.push(d),h})),a=new Map,o=0;Object.keys(e).forEach(function(d){var h=e[d],s=h.level,u=a.get(s);u||(u=new Set,a.set(s,u)),u.add(h),o=Math.max(o,s)}),Object(M.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var l;return g===!0?l=v(n,a,o,c):l=m(n,g.halfCheckedKeys,a,o,c),l}},OLES:function(N,Y,i){"use strict";var M=i("U8pU"),E=i("VTBJ"),T=i("Ff2n"),v=i("q1tI"),m=i("uciX"),y=i("7ixt"),O=function(n){var a=n.overlay,o=n.prefixCls,l=n.id,d=n.overlayInnerStyle;return v.createElement("div",{className:"".concat(o,"-inner"),id:l,role:"tooltip",style:d},typeof a=="function"?a():a)},g=O,e=function(n,a){var o=n.overlayClassName,l=n.trigger,d=l===void 0?["hover"]:l,h=n.mouseEnterDelay,s=h===void 0?0:h,u=n.mouseLeaveDelay,w=u===void 0?.1:u,x=n.overlayStyle,b=n.prefixCls,P=b===void 0?"rc-tooltip":b,R=n.children,C=n.onVisibleChange,S=n.afterVisibleChange,_=n.transitionName,A=n.animation,j=n.placement,I=j===void 0?"right":j,k=n.align,J=k===void 0?{}:k,G=n.destroyTooltipOnHide,D=G===void 0?!1:G,H=n.defaultVisible,W=n.getTooltipContainer,L=n.overlayInnerStyle,z=Object(T.a)(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ie=Object(v.useRef)(null);Object(v.useImperativeHandle)(a,function(){return ie.current});var ce=Object(E.a)({},z);"visible"in n&&(ce.popupVisible=n.visible);var ue=function(){var _e=n.arrowContent,le=_e===void 0?null:_e,ee=n.overlay,U=n.id;return[v.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},le),v.createElement(g,{key:"content",prefixCls:P,id:U,overlay:ee,overlayInnerStyle:L})]},xe=!1,Te=!1;if(typeof D=="boolean")xe=D;else if(D&&Object(M.a)(D)==="object"){var de=D.keepParent;xe=de===!0,Te=de===!1}return v.createElement(m.a,Object.assign({popupClassName:o,prefixCls:P,popup:ue,action:d,builtinPlacements:y.a,popupPlacement:I,ref:ie,popupAlign:J,getPopupContainer:W,onPopupVisibleChange:C,afterPopupVisibleChange:S,popupTransitionName:_,popupAnimation:A,defaultPopupVisible:H,destroyPopupOnHide:xe,autoDestroy:Te,mouseLeaveDelay:w,popupStyle:x,mouseEnterDelay:s},ce),R)},f=Object(v.forwardRef)(e),r=Y.a=f},OLod:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("K3mO"))})(this,function(M){M.lib.Cipher||function(E){var T=M,v=T.lib,m=v.Base,y=v.WordArray,O=v.BufferedBlockAlgorithm,g=T.enc,e=g.Utf8,f=g.Base64,r=T.algo,c=r.EvpKDF,n=v.Cipher=O.extend({cfg:m.extend(),createEncryptor:function(_,A){return this.create(this._ENC_XFORM_MODE,_,A)},createDecryptor:function(_,A){return this.create(this._DEC_XFORM_MODE,_,A)},init:function(_,A,j){this.cfg=this.cfg.extend(j),this._xformMode=_,this._key=A,this.reset()},reset:function(){O.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(A){return typeof A=="string"?S:P}return function(A){return{encrypt:function(j,I,k){return _(I).encrypt(A,j,I,k)},decrypt:function(j,I,k){return _(I).decrypt(A,j,I,k)}}}}()}),a=v.StreamCipher=n.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1}),o=T.mode={},l=v.BlockCipherMode=m.extend({createEncryptor:function(_,A){return this.Encryptor.create(_,A)},createDecryptor:function(_,A){return this.Decryptor.create(_,A)},init:function(_,A){this._cipher=_,this._iv=A}}),d=o.CBC=function(){var _=l.extend();_.Encryptor=_.extend({processBlock:function(j,I){var k=this._cipher,J=k.blockSize;A.call(this,j,I,J),k.encryptBlock(j,I),this._prevBlock=j.slice(I,I+J)}}),_.Decryptor=_.extend({processBlock:function(j,I){var k=this._cipher,J=k.blockSize,G=j.slice(I,I+J);k.decryptBlock(j,I),A.call(this,j,I,J),this._prevBlock=G}});function A(j,I,k){var J,G=this._iv;G?(J=G,this._iv=E):J=this._prevBlock;for(var D=0;D<k;D++)j[I+D]^=J[D]}return _}(),h=T.pad={},s=h.Pkcs7={pad:function(_,A){for(var j=A*4,I=j-_.sigBytes%j,k=I<<24|I<<16|I<<8|I,J=[],G=0;G<I;G+=4)J.push(k);var D=y.create(J,I);_.concat(D)},unpad:function(_){var A=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=A}},u=v.BlockCipher=n.extend({cfg:n.cfg.extend({mode:d,padding:s}),reset:function(){var _;n.reset.call(this);var A=this.cfg,j=A.iv,I=A.mode;this._xformMode==this._ENC_XFORM_MODE?_=I.createEncryptor:(_=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,j&&j.words):(this._mode=_.call(I,this,j&&j.words),this._mode.__creator=_)},_doProcessBlock:function(_,A){this._mode.processBlock(_,A)},_doFinalize:function(){var _,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),A.unpad(_)),_},blockSize:128/32}),w=v.CipherParams=m.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),x=T.format={},b=x.OpenSSL={stringify:function(_){var A,j=_.ciphertext,I=_.salt;return I?A=y.create([1398893684,1701076831]).concat(I).concat(j):A=j,A.toString(f)},parse:function(_){var A,j=f.parse(_),I=j.words;return I[0]==1398893684&&I[1]==1701076831&&(A=y.create(I.slice(2,4)),I.splice(0,4),j.sigBytes-=16),w.create({ciphertext:j,salt:A})}},P=v.SerializableCipher=m.extend({cfg:m.extend({format:b}),encrypt:function(_,A,j,I){I=this.cfg.extend(I);var k=_.createEncryptor(j,I),J=k.finalize(A),G=k.cfg;return w.create({ciphertext:J,key:j,iv:G.iv,algorithm:_,mode:G.mode,padding:G.padding,blockSize:_.blockSize,formatter:I.format})},decrypt:function(_,A,j,I){I=this.cfg.extend(I),A=this._parse(A,I.format);var k=_.createDecryptor(j,I).finalize(A.ciphertext);return k},_parse:function(_,A){return typeof _=="string"?A.parse(_,this):_}}),R=T.kdf={},C=R.OpenSSL={execute:function(_,A,j,I){I||(I=y.random(64/8));var k=c.create({keySize:A+j}).compute(_,I),J=y.create(k.words.slice(A),j*4);return k.sigBytes=A*4,w.create({key:k,iv:J,salt:I})}},S=v.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:C}),encrypt:function(_,A,j,I){I=this.cfg.extend(I);var k=I.kdf.execute(j,_.keySize,_.ivSize);I.iv=k.iv;var J=P.encrypt.call(this,_,A,k.key,I);return J.mixIn(k),J},decrypt:function(_,A,j,I){I=this.cfg.extend(I),A=this._parse(A,I.format);var k=I.kdf.execute(j,_.keySize,_.ivSize,A.salt);I.iv=k.iv;var J=P.decrypt.call(this,_,A,k.key,I);return J}})}()})},OZM5:function(N,Y,i){"use strict";i.d(Y,"b",function(){return f}),i.d(Y,"a",function(){return r}),i.d(Y,"k",function(){return c}),i.d(Y,"h",function(){return n}),i.d(Y,"i",function(){return a}),i.d(Y,"g",function(){return o}),i.d(Y,"c",function(){return l}),i.d(Y,"d",function(){return d}),i.d(Y,"j",function(){return u}),i.d(Y,"e",function(){return w}),i.d(Y,"f",function(){return x});var M=i("KQm4"),E=i("U8pU"),T=i("Ff2n"),v=i("q1tI"),m=i.n(v),y=i("Kwbf"),O=i("WaYH"),g=.25,e=2;function f(b,P){var R=b.slice(),C=R.indexOf(P);return C>=0&&R.splice(C,1),R}function r(b,P){var R=b.slice();return R.indexOf(P)===-1&&R.push(P),R}function c(b){return b.split("-")}function n(b,P){return"".concat(b,"-").concat(P)}function a(b){return b&&b.type&&b.type.isTreeNode}function o(b,P){var R=[b],C=P[b];function S(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(A){var j=A.key,I=A.children;R.push(j),S(I)})}return S(C.children),R}function l(b,P){var R=b.clientY,C=P.selectHandle.getBoundingClientRect(),S=C.top,_=C.bottom,A=C.height,j=Math.max(A*g,e);return R<=S+j?-1:R>=_-j?1:0}function d(b,P){if(!b)return;var R=P.multiple;return R?b.slice():b.length?[b[0]]:b}var h=function(P){return P};function s(b,P){if(!b)return[];var R=P||{},C=R.processProps,S=C===void 0?h:C,_=Array.isArray(b)?b:[b];return _.map(function(A){var j=A.children,I=Object(T.a)(A,["children"]),k=s(j,P);return m.a.createElement(O.a,Object.assign({},S(I)),k)})}function u(b){if(!b)return null;var P;if(Array.isArray(b))P={checkedKeys:b,halfCheckedKeys:void 0};else if(Object(E.a)(b)==="object")P={checkedKeys:b.checked||void 0,halfCheckedKeys:b.halfChecked||void 0};else return Object(y.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function w(b,P){var R=new Set;function C(S){if(R.has(S))return;var _=P[S];if(!_)return;R.add(S);var A=_.parent,j=_.node;if(j.disabled)return;A&&C(A.key)}return(b||[]).forEach(function(S){C(S)}),Object(M.a)(R)}function x(b){var P={};return Object.keys(b).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(P[R]=b[R])}),P}},Oe0F:function(N,Y,i){N.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(N,Y,i){N.exports=i.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(N,Y,i){"use strict";var M=i("2qtc"),E=i("kLXV"),T=i("rAM+"),v=i("miYZ"),m=i("tsqr"),y=i("9og8"),O=i("tJVT"),g=i("jrin"),e=i("WmNS"),f=i.n(e),r=i("q1tI"),c=i.n(r),n=i("VrN/"),a=i.n(n),o=i("bdgK"),l=i("p77/"),d=i("Bd2K"),h=i("ELLl"),s=i("19Vz"),u=i("lZu9"),w=i("+NIl"),x=i("kSUc"),b=i("9Bee"),P=function(Je){var $e=Je.value,pt=$e===void 0?"":$e,Jt=Je.className,fn=Je.showTextOnly,qt=Je.showLines,St=Je.style,Be=St===void 0?{}:St,at=Object(r.useMemo)(function(){return""},[pt]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},R=i("0Owb"),C=i("dejd"),S=i("C+DQ"),_=i("1vsH"),A=i("m3rI"),j=[{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(Je){var $e=Je.onActionCallback,pt=Je.title,Jt=Je.icon,fn=Je.actionName,qt=Je.className,St=qt===void 0?"":qt,Be=Je.children;function at(){$e(fn)}return c.a.createElement("a",{title:pt,className:St,onClick:at},c.a.createElement("i",{className:"md-iconfont ".concat(Jt)}),Be)}var k=function(Je){var $e=Je.watch,pt=Je.showNullButton,Jt=Je.onActionCallback,fn=Je.fullScreen,qt=Je.insertTemp,St=Je.hidetoolBar,Be=Je.uuid,at=Je.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(_.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(_.F)("_educoder_session"),"&key=").concat(Be,"&api=").concat(encodeURIComponent(A.a.PROXY_SERVER)));var it=[].concat(j,[{title:"".concat($e?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat($e?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return c.a.createElement("ul",{className:"markdown-toolbar-container"},!St&&it.map(function(Me,Ve){return c.a.createElement("li",{key:Ve},Me.actionName?c.a.createElement(I,Object(R.a)({},Me,{onActionCallback:Jt})):c.a.createElement("span",{className:"v-line"}))}),pt?c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Jt},c.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,qt&&c.a.createElement("li",null,c.a.createElement(I,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(qt),onActionCallback:Jt},c.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),c.a.createElement("li",{className:"btn-full-screen"},c.a.createElement(I,{icon:"".concat(fn?"icon-shrink":"icon-enlarge"),title:fn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Jt})))},J=i("M8RZ"),G=i("+L6B"),D=i("2/Rp"),H=i("y8nQ"),W=i("Vl3Y"),L=i("5NDa"),z=i("5rEg"),ie={labelCol:{span:4},wrapperCol:{span:20}},ce=function(Je){var $e=Je.callback,pt=Je.onCancel;function Jt(fn){$e(fn)}return c.a.createElement(W.a,Object(R.a)({},ie,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Jt}),c.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},c.a.createElement(z.a,null)),c.a.createElement(W.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},c.a.createElement(z.a,null)),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(D.a,{type:"ghost",onClick:pt},"\u53D6\u6D88")))},ue=i("7ahc"),xe=i("HmJG"),Te=i("BjJ7"),de=W.a.useForm,ve={width:280,marginRight:10},_e={labelCol:{span:5},wrapperCol:{span:19}},le=function(Je){var $e=Je.callback,pt=Je.onCancel,Jt=de(),fn=Object(O.a)(Jt,1),qt=fn[0];function St(it){$e(it)}function Be(it,Me){if(it.status===-1){m.b.error(it.message);return}qt.setFieldsValue({src:"/api/attachments/".concat(it.id),type:Me.type})}function at(it){var Me=it.target.files[0];U(Me,Be)}return c.a.createElement(W.a,Object(R.a)({form:qt},_e,{className:"upload-image-panel",onFinish:St}),c.a.createElement(W.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},c.a.createElement("div",{className:"flex-container"},c.a.createElement(W.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},c.a.createElement(z.a,{style:ve})),c.a.createElement(ee,{onFileChange:at}))),c.a.createElement(W.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},c.a.createElement(z.a,{style:{width:264}})),c.a.createElement(W.a.Item,{style:{textAlign:"right"}},c.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(D.a,{type:"ghost",onClick:pt},"\u53D6\u6D88")))};function ee(Je){var $e=Je.onFileChange;return c.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",c.a.createElement("input",{type:"file",onChange:$e}))}function U(Je,$e){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");var pt=new FormData;pt.append("editormd-image-file",Je),pt.append("file_param_name","editormd-image-file"),pt.append("byxhr","true");var Jt=new window.XMLHttpRequest;Jt.withCredentials=!0,Jt.addEventListener("load",function(fn){$e(JSON.parse(fn.target.responseText),Je)},!1),Jt.addEventListener("error",function(fn){console.error(fn)},!1),Jt.open("POST","".concat(Te.a,"/api/attachments.json")),Jt.send(pt)}var K=i("giR+"),X=i("fyUT"),Q=i("7Kak"),te=i("9yH6"),ae=te.a.Group,re={margin:"0 8px"},$=function(Je){var $e=Je.callback,pt=Je.onCancel;function Jt(fn){$e(fn)}return c.a.createElement(W.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Jt},c.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},c.a.createElement("span",{style:re},"\u5355\u5143\u683C\u6570\uFF1A"),c.a.createElement("span",{style:re},"\u884C\u6570"),c.a.createElement(W.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},c.a.createElement(X.a,null)),c.a.createElement("span",{style:re},"\u5217\u6570"),c.a.createElement(W.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},c.a.createElement(X.a,null))),c.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},c.a.createElement("span",{style:re},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),c.a.createElement(W.a.Item,{name:"align"},c.a.createElement(ae,null,c.a.createElement(te.a,{value:"default"},c.a.createElement("i",{className:"fa fa-align-justify"})),c.a.createElement(te.a,{value:"left"},c.a.createElement("i",{className:"fa fa-align-left"})),c.a.createElement(te.a,{value:"center"},c.a.createElement("i",{className:"fa fa-align-center"})),c.a.createElement(te.a,{value:"right"},c.a.createElement("i",{className:"fa fa-align-right"}))))),c.a.createElement("div",{className:"flex-container flex-end"},c.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),c.a.createElement(D.a,{type:"ghost",onClick:pt},"\u53D6\u6D88")))},Z=i("ErOA"),fe=i("7Cbv"),me="link",Oe="upload-image",He="code-block",Qe="add-table",ot="------------",st={default:ot,left:":".concat(ot),center:":".concat(ot,":"),right:"".concat(ot,":")},ct=i("9VGf"),dt,Xe;function ke(){}var lt=0,Mt=1e4,Ce="\u2581",he=`
**\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 be(Je){return/^\d+$/.test(Je)?"".concat(Je,"px"):Je}var Ee=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ne=Ee?"Cmd":"Ctrl",we=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ae=(dt={},Object(g.a)(dt,Ne+"-B","bold"),Object(g.a)(dt,Ne+"-I","italic"),dt),Ue=(Xe={},Object(g.a)(Xe,me,"\u6DFB\u52A0\u94FE\u63A5"),Object(g.a)(Xe,He,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(g.a)(Xe,Oe,"\u6DFB\u52A0\u6587\u4EF6"),Object(g.a)(Xe,Qe,"\u6DFB\u52A0\u8868\u683C"),Xe),We=Y.a=function(Je){var $e=Je.defaultValue,pt=$e===void 0?"":$e,Jt=Je.onChange,fn=Je.width,qt=fn===void 0?"100%":fn,St=Je.height,Be=St===void 0?400:St,at=Je.miniToolbar,it=at===void 0?!1:at,Me=Je.isFocus,Ve=Me===void 0?!1:Me,xt=Je.watch,_t=Je.insertTemp,At=Je.mode,Ot=At===void 0?"markdown":At,Ct=Je.id,Bt=Ct===void 0?"markdown-editor-id":Ct,It=Je.showResizeBar,yt=It===void 0?!1:It,zt=Je.noStorage,sn=zt===void 0?!1:zt,hn=Je.showNullButton,un=hn===void 0?!1:hn,Kt=Je.hidetoolBar,gn=Kt===void 0?!1:Kt,Rn=Je.fullScreen,Cn=Rn===void 0?!1:Rn,an=Je.onBlur,_n=Je.onCMBeforeChange,vn=Je.onFullScreen,Ft=Je.className,Nt=Ft===void 0?"":Ft,pn=Je.disablePaste,qn=pn===void 0?!1:pn,Qt=Je.placeholder,Vn=Qt===void 0?"":Qt,Gn=Je.values,xr=Gn===void 0?"":Gn,Sn=Object(r.useState)(null),Pn=Object(O.a)(Sn,2),Yt=Pn[0],Hr=Pn[1],ar=Object(r.useState)(pt),ma=Object(O.a)(ar,2),Br=ma[0],Na=ma[1],Xa=Object(r.useState)(xt),ua=Object(O.a)(Xa,2),Zr=ua[0],Sr=ua[1],Oa=Object(r.useState)(Cn),Ma=Object(O.a)(Oa,2),Sa=Ma[0],ca=Ma[1],ka=Object(r.useState)(""),Ga=Object(O.a)(ka,2),La=Ga[0],Za=Ga[1],Ia=Object(r.useState)(0),xa=Object(O.a)(Ia,2),Fa=xa[0],li=xa[1],yi=Object(r.useState)(Be),ga=Object(O.a)(yi,2),va=ga[0],ya=ga[1],ye=Object(r.useState)(!1),rt=Object(O.a)(ye,2),Et=rt[0],vt=rt[1],Wt=Object(r.useRef)(Object(fe.a)()),Lt=Object(r.useRef)(!1),Zt=Object(r.useRef)(),dn=Object(r.useRef)(),En=Object(r.useRef)(),wn=Object(r.useRef)(),Hn=Object(r.useRef)(),jn=function(){var Nn=Object(y.a)(f.a.mark(function br(){var $t,jt;return f.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.next=2,Object(Z.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Wt.current}});case 2:jt=An.sent,jt!=null&&($t=jt.attachments)!==null&&$t!==void 0&&$t.length&&(console.log("cm:",Yt,dn),jt.attachments.map(function(Tn){Tn.content_type.indexOf("image")>-1?Yt.replaceSelection("![,](/api/attachments/".concat(Tn.id,"?type=").concat(Tn.content_type,")")):Tn.content_type.indexOf("video")>-1?Yt.replaceSelection('<video width="100%" controls src="'.concat(A.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):Tn.content_type.indexOf("pdf")>-1?Yt.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(Tn.id,"?type=").concat(Tn.content_type,'&disposition=inline" target="_blank">').concat(Tn.name,"</a>")):Yt.replaceSelection("[".concat(Tn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(Tn.id,"?type=").concat(Tn.content_type,")"))}));case 4:case"end":return An.stop()}},br)}));return function(){return Nn.apply(this,arguments)}}();Object(r.useEffect)(function(){Na(xr),Yt==null||Yt.setValue(xr)},[xr]),Object(r.useEffect)(function(){vn==null||vn(Sa)},[Sa]),Object(r.useEffect)(function(){if(dn.current){var Nn=a.a.fromTextArea(dn.current,{mode:Ot,lineNumbers:!it,lineWrapping:!0,value:pt,autoCloseTags:!0,autoCloseBrackets:!0});Ve&&Nn.focus();function br($t,jt){if(qn){jt.preventDefault();return}var on=jt.clipboardData;if(on){var An=on.types.toString(),Tn=on.items;if(An==="Files"||on.types.indexOf("Files")>-1){if(jt.preventDefault(),Ot=="stex")return;try{var Yn,Jn=Tn[1];((Yn=Tn[0])===null||Yn===void 0?void 0:Yn.kind)==="file"&&(Jn=Tn[0]);var kn=Jn.getAsFile(),Ar=kn.name.split(".").pop();U(kn,function(ur){if(ur.id){var yr,vr,Dr;(kn==null||((yr=kn.type)===null||yr===void 0)?void 0:yr.indexOf("image"))>-1?Nn.replaceSelection("![,](/api/attachments/".concat(ur.id,"?type=").concat(ur.content_type,")")):(kn==null||((vr=kn.type)===null||vr===void 0)?void 0:vr.indexOf("video"))>-1?Nn.replaceSelection('<video width="100%" controls src="'.concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,'"></video>')):(kn==null||((Dr=kn.type)===null||Dr===void 0)?void 0:Dr.indexOf("pdf"))>-1?Nn.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,"?type=").concat(kn.type,'&disposition=inline" target="_blank">').concat(kn.name,"</a>")):we.includes(Ar)?Nn.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,'?type=office&disposition=inline" target="_blank">').concat(kn.name,"</a>")):Nn.replaceSelection("[".concat(kn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,"?type=").concat(ur.content_type,")"))}else(ur==null?void 0:ur.status)===401&&(document.location.href="/user/login")})}catch(ur){m.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Nn.on("paste",br),Nn.on("dragleave",function($t,jt){En.current.classList.remove("mouse-hover-md")}),Nn.on("dragover",function($t,jt){En.current.classList.add("mouse-hover-md")}),Nn.on("drop",function($t,jt){En.current.classList.add("mouse-hover-md");var on;if(on=jt.dataTransfer.files,on.length>0){jt.preventDefault(),jt.stopPropagation();for(var An=function(Jn){var kn=on[Jn],Ar=kn.name.split(".").pop();U(kn,function(ur){if(ur.id){var yr,vr,Dr;(kn==null||((yr=kn.type)===null||yr===void 0)?void 0:yr.indexOf("image"))>-1?Nn.replaceSelection("![,](/api/attachments/".concat(ur.id,"?type=").concat(ur.content_type,")")):(kn==null||((vr=kn.type)===null||vr===void 0)?void 0:vr.indexOf("video"))>-1?Nn.replaceSelection('<video width="100%" controls src="'.concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,'"></video>')):(kn==null||((Dr=kn.type)===null||Dr===void 0)?void 0:Dr.indexOf("pdf"))>-1?Nn.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,"?type=").concat(kn.type,'&disposition=inline" target="_blank">').concat(kn.name,"</a>")):we.includes(Ar)?Nn.replaceSelection('<a href="'.concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,'?type=office&disposition=inline" target="_blank">').concat(kn.name,"</a>")):Nn.replaceSelection("[".concat(kn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(ur.id,"?type=").concat(ur.content_type,")"))}else(ur==null?void 0:ur.status)===401&&(document.location.href="/user/login")})},Tn=0;Tn<on.length;Tn++)An(Tn)}}),Hr(Nn),function(){Nn.off("paste",br)}}},[]);var nn=Object(r.useCallback)(function(){if(En.current)try{}catch(Nn){console.log(Nn,"---- to set md editor body height")}},[va,En,Sa]);Object(r.useEffect)(function(){function Nn(){var $t=new o.default(function(jt){var on=Object(T.a)(jt),An;try{for(on.s();!(An=on.n()).done;){var Tn=An.value;(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&(nn(),Yt.setSize("100%","100%"),Yt.refresh())}}catch(Yn){on.e(Yn)}finally{on.f()}});return $t.observe(dn.current.parentElement),$t}if(Yt){var br=Nn();return function(){br.unobserve(dn.current.parentElement)}}},[Yt,nn]),Object(r.useEffect)(function(){if(Yt){for(var Nn=[],br=function(){var Tn=jt[$t];on=Object(O.a)(Tn,2);var Yn=on[0],Jn=on[1],kn=Object(g.a)({},Yn,function(){Mn(Jn)});Nn.push(kn),Yt.addKeyMap(kn)},$t=0,jt=Object.entries(Ae);$t<jt.length;$t++){var on;br()}return Zt.current=setInterval(function(){Lt.current&&jn()},4e3),function(){clearInterval(Zt.current);var An=Object(T.a)(Nn),Tn;try{for(An.s();!(Tn=An.n()).done;){var Yn=Tn.value;Yt.removeKeyMap(Yn)}}catch(Jn){An.e(Jn)}finally{An.f()}}}},[Yt]),Object(r.useEffect)(function(){Cn!==Sa&&ca(Cn)},[Cn]),Object(ct.a)(function(){if(!sn&&Fa>0){var Nn=new Date().getTime(),br=window.sessionStorage.getItem(Bt);Nn>=Fa+Mt&&(!br||br!==Br)&&(window.sessionStorage.setItem(Bt,Br),vt(!0))}},Mt),Object(r.useEffect)(function(){Sr(xt)},[Yt,xt]),Object(r.useEffect)(function(){Yt&&(Ve&&Yt.focus())},[Yt,Ve]),Object(r.useEffect)(function(){if(Zr&&Yt){var Nn=Yt.getScrollerElement();function br($t){var jt=$t.target;if(Hn.current){var on=jt.scrollTop/jt.scrollHeight;Hn.current.scrollTop=Hn.current.scrollHeight*on}}return Nn.addEventListener("scroll",br),function(){Nn.removeEventListener("scroll",br)}}},[Yt,Zr]),Object(r.useEffect)(function(){if(Yt&&_n){function Nn(br,$t){_n(br,$t)}return Yt.on("beforeChange",Nn),function(){Yt.off("beforeChange",Nn)}}},[Yt,_n]),Object(r.useEffect)(function(){if(Yt&&an){function Nn(){an(Yt.getValue())}return Yt.on("blur",Nn),function(){Yt.off("blur",Nn)}}},[Yt,an]),Object(r.useEffect)(function(){if(Yt){function Nn(br){var $t=br.getValue();Na($t),li(new Date().getTime()),br.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Jt&&Jt($t)}return Yt.on("change",Nn),function(){Yt.off("change",Nn)}}},[Yt,Jt]),Object(r.useEffect)(function(){Yt&&(pt==null?(Yt.setValue(""),Na("")):pt!==Yt.getValue()&&(Yt.setValue(pt),Na(pt),Yt.setCursor(Yt.lineCount(),0)))},[Yt,pt]);var Mn=Object(r.useCallback)(function(Nn){var br=Yt.getCursor(),$t=Yt.getSelection(),jt=$t.split(`
`);switch(Nn){case"bold":return Yt.replaceSelection("**"+$t+"**"),$t===""&&Yt.setCursor(br.line,br.ch+2),Yt.focus();case"italic":return Yt.replaceSelection("*"+$t+"*"),$t===""&&Yt.setCursor(br.line,br.ch+1),Yt.focus();case"code":return Yt.replaceSelection("`"+$t+"`"),$t===""&&Yt.setCursor(br.line,br.ch+1),Yt.focus();case"inline-latex":return Yt.replaceSelection("`$$"+$t+"$$`"),$t===""&&Yt.setCursor(br.line,br.ch+3),Yt.focus();case"latex":return Yt.replaceSelection("```latex\n"+$t+"\n```"),Yt.setCursor(br.line+1,$t.length+1),Yt.focus();case"line-break":return Yt.replaceSelection(`<br/>
`),Yt.focus();case"list-ul":return $t===""?Yt.replaceSelection("- "+$t):Yt.replaceSelection(jt.map(function(on){return on===""?"":"- ".concat(on)}).join(`
`)),Yt.focus();case"list-ol":return $t===""?Yt.replaceSelection("1. "+$t):Yt.replaceSelection(jt.map(function(on,An){return on===""?"":"".concat(An+1,". ").concat(on)}).join(`
`)),Yt.focus();case"add-null-ch":return $t===""&&Yt.setCursor(br.line,br.ch+1),Yt.replaceSelection(Ce),Yt.focus();case"inster-template-1":return $t===""&&Yt.setCursor(br.line,br.ch),Yt.replaceSelection(he),Yt.focus();case"eraser":return Yt.setValue(""),Yt.focus();case"trigger-watch":return Sr(!Zr),Yt.focus();case"trigger-full-screen":return ca(!Sa),Yt.focus();case me:Za(me);return;case He:Za(He);return;case Oe:Za(Oe);return;case Qe:Za(Qe);return;default:throw new Error}},[Yt,Zr,Sa]),mn=Object(r.useCallback)(function(Nn){Za("");switch(La){case me:var br=Nn.title,$t=Nn.link;return Yt.replaceSelection("[".concat(br,"](").concat($t,")")),Yt.focus();case He:var jt=Nn.language,on=Nn.content;return Yt.replaceSelection(["```"+jt,on,"```"].join(`
`)),Yt.focus();case Oe:var An=Nn.src,Tn=Nn.alt;return Tn?Yt.replaceSelection("![ ".concat(Tn," ]( ").concat(An,' "').concat(Tn,'" )')):Yt.replaceSelection("![,](".concat(An,")")),Yt.focus();case Qe:for(var Yn=Nn.row,Jn=Nn.col,kn=Nn.align,Ar=`
`,ur=0;ur<Yn;ur++){for(var yr=[],vr=[],Dr=0;Dr<Jn;Dr++)ur===1&&vr.push(st[kn]),yr.push(" ");ur===1&&(Ar+="| ".concat(vr.join(" | "),` |
`)),Ar+="| ".concat(yr.join(Jn===1?"":" | "),` |
`)}return Yt.replaceSelection(Ar+`
`),Yt.focus();default:throw new Error}},[Yt,La]),Wn=Object(r.useMemo)(function(){switch(La){case me:return c.a.createElement(ce,{callback:mn,onCancel:Dn});case He:return c.a.createElement(ue.b,{callback:mn,onCancel:Dn});case Oe:return c.a.createElement(le,{callback:mn,onCancel:Dn});case Qe:return c.a.createElement($,{callback:mn,onCancel:Dn});default:return null}},[La]);function Dn(){Za("")}Object(r.useEffect)(function(){if(wn.current){var Nn=wn.current,br=!1,$t=0;function jt(Tn){br=!0,$t=Tn.pageY}function on(){br=!1}function An(Tn){if(br){var Yn=Tn.pageY-$t;Yn<0&&(Yn=0),Yn>300&&(Yn=300);var Jn=Be+Yn+"px";ya(Jn)}}return Nn.addEventListener("mousedown",jt),document.addEventListener("mousemove",An),document.addEventListener("mouseup",on),function(){Nn.removeEventListener("mousedown",jt),document.removeEventListener("mousemove",An),document.removeEventListener("mouseup",on)}}},[Yt,wn]),Object(r.useEffect)(function(){ya(Be)},[Be]);var tr=be(qt),sr=be(va),Ir={width:tr,height:sr},oa=Object(r.useMemo)(function(){if(Fa){var Nn=new Date(Fa),br=Nn.getHours(),$t=Nn.getMinutes(),jt=Nn.getSeconds();return br=br<10?"0"+br:br,$t=$t<10?"0"+$t:$t,jt=jt<10?"0"+jt:jt,"".concat(br,":").concat($t,":").concat(jt)}return 0},[Fa]);function Cr(){window.sessionStorage.removeItem(Bt),vt(!1),li(0)}function Or(){vt(!1),li(0),Yt.setValue(window.sessionStorage.getItem(Bt))}function ea(Nn,br){var $t=Yt.getValue();$t=$t.replace(Nn,br),Na($t),Yt==null||Yt.setValue($t)}return c.a.createElement(r.Fragment,null,c.a.createElement("div",{className:"markdown-editor-wrapper",ref:En},c.a.createElement("div",{className:"markdown-editor-container ".concat(Nt," ").concat(Zr?"on-preview":""," ").concat(it?"mini":""," ").concat(Sa?"full-screen":""),style:Ir},c.a.createElement(k,{insertTemp:_t,watch:Zr,fullScreen:Sa,showNullButton:un,onActionCallback:Mn,hidetoolBar:gn,uuid:Wt.current,setOpenPhones:function(){Lt.current=!0}}),c.a.createElement("div",{className:"markdown-editor-body"},c.a.createElement("div",{className:"codemirror-container"},c.a.createElement("textarea",{ref:dn,placeholder:Vn})),Zr?c.a.createElement("div",{ref:Hn,className:"preview-container"},Ot==="stex"&&c.a.createElement(P,{value:Br}),Ot!=="stex"&&c.a.createElement(b.a,{edit:!0,value:Br,replaces:ea})):null))),yt?c.a.createElement("a",{ref:wn,className:"editor-resize"}):null,c.a.createElement(J.a,null,Ue[La]?c.a.createElement(E.a,{centered:!0,title:Ue[La],visible:!0,onCancel:Dn,footer:null,className:"markdown-popup-form"},Wn):null))}},P5Jw:function(N,Y,i){"use strict";var M=i("rHrb"),E=M.CopyToClipboard;E.CopyToClipboard=E,N.exports=E},PVpz:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.StreamCipher,m=E.algo,y=[],O=[],g=[],e=m.RabbitLegacy=v.extend({_doReset:function(){var r=this._key.words,c=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],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 o=0;o<4;o++)f.call(this);for(var o=0;o<8;o++)a[o]^=n[o+4&7];if(c){var l=c.words,d=l[0],h=l[1],s=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,u=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,w=s>>>16|u&4294901760,x=u<<16|s&65535;a[0]^=s,a[1]^=w,a[2]^=u,a[3]^=x,a[4]^=s,a[5]^=w,a[6]^=u,a[7]^=x;for(var o=0;o<4;o++)f.call(this)}},_doProcessBlock:function(r,c){var n=this._X;f.call(this),y[0]=n[0]^n[5]>>>16^n[3]<<16,y[1]=n[2]^n[7]>>>16^n[5]<<16,y[2]=n[4]^n[1]>>>16^n[7]<<16,y[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)y[a]=(y[a]<<8|y[a]>>>24)&16711935|(y[a]<<24|y[a]>>>8)&4278255360,r[c+a]^=y[a]},blockSize:128/32,ivSize:64/32});function f(){for(var r=this._X,c=this._C,n=0;n<8;n++)O[n]=c[n];c[0]=c[0]+1295307597+this._b|0,c[1]=c[1]+3545052371+(c[0]>>>0<O[0]>>>0?1:0)|0,c[2]=c[2]+886263092+(c[1]>>>0<O[1]>>>0?1:0)|0,c[3]=c[3]+1295307597+(c[2]>>>0<O[2]>>>0?1:0)|0,c[4]=c[4]+3545052371+(c[3]>>>0<O[3]>>>0?1:0)|0,c[5]=c[5]+886263092+(c[4]>>>0<O[4]>>>0?1:0)|0,c[6]=c[6]+1295307597+(c[5]>>>0<O[5]>>>0?1:0)|0,c[7]=c[7]+3545052371+(c[6]>>>0<O[6]>>>0?1:0)|0,this._b=c[7]>>>0<O[7]>>>0?1:0;for(var n=0;n<8;n++){var a=r[n]+c[n],o=a&65535,l=a>>>16,d=((o*o>>>17)+o*l>>>15)+l*l,h=((a&4294901760)*a|0)+((a&65535)*a|0);g[n]=d^h}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}E.RabbitLegacy=v._createHelper(e)}(),M.RabbitLegacy})},QNag:function(N,Y,i){"use strict";var M=i("2qtc"),E=i("kLXV"),T=i("+L6B"),v=i("2/Rp"),m=i("9og8"),y=i("y8nQ"),O=i("Vl3Y"),g=i("tJVT"),e=i("PpiC"),f=i("5NDa"),r=i("5rEg"),c=i("WmNS"),n=i.n(c),a=i("q1tI"),o=i.n(a),l=i("9kvl"),d=i("JFl9"),h=i.n(d),s=r.a.TextArea,u=function(x){var b=x.shixunsDetail,P=x.globalSetting,R=x.loading,C=x.dispatch,S=x.onFinish,_=S===void 0?function(){}:S,A=Object(e.a)(x,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),j=O.a.useForm(),I=Object(g.a)(j,1),k=I[0],J=function(){var D=Object(m.a)(n.a.mark(function H(W){var L,z;return n.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.next=2,C({type:"shixunsDetail/getCustomScript",payload:{id:(L=b.actionTabs.params)===null||L===void 0?void 0:L.id,compile:W.execute,excutive:W.compile}});case 2:z=ce.sent,G(),z&&_(z==null?void 0:z.shixun_script);case 5:case"end":return ce.stop()}},H)}));return function(W){return D.apply(this,arguments)}}(),G=function(){C({type:"shixunsDetail/setActionTabs",payload:{}})};return o.a.createElement(E.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:b.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:G},o.a.createElement(O.a,{form:k,scrollToFirstError:!0,layout:"vertical",onFinish:J},o.a.createElement(O.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},o.a.createElement(s,{rows:4})),o.a.createElement(O.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},o.a.createElement(s,{rows:4})),o.a.createElement("div",{className:h.a.footerWrap},o.a.createElement(O.a.Item,null,o.a.createElement(v.a,{className:"mr5",size:"large",onClick:G},"\u53D6\u6D88"),o.a.createElement(v.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};Y.a=Object(l.a)(function(w){var x=w.shixunsDetail,b=w.loading,P=w.globalSetting;return{shixunsDetail:x,globalSetting:P,loading:b}})(u)},Qvpy:function(N,Y,i){N.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(N,Y,i){N.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(N,Y){N.exports="data:image/png;base64,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"},RotF:function(N,Y,i){N.exports=i("LSTS")},RxwV:function(N,Y,i){"use strict";var M=i("q1tI"),E=i("uciX"),T=i("2W6z"),v=i.n(T),m=i("4IlW"),y=i("uK0f"),O=i.n(y);function g(ve,_e){if(ve===_e)return!0;if(!ve||!_e)return!1;var le=ve.length;if(_e.length!==le)return!1;for(var ee=0;ee<le;ee++)if(ve[ee]!==_e[ee])return!1;return!0}function e(ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(le){return typeof le}:e=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},e(ve)}function f(ve,_e){if(!(ve instanceof _e))throw new TypeError("Cannot call a class as a function")}function r(ve,_e){for(var le=0;le<_e.length;le++){var ee=_e[le];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(ve,ee.key,ee)}}function c(ve,_e,le){return _e&&r(ve.prototype,_e),le&&r(ve,le),ve}function n(ve,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(_e&&_e.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),_e&&a(ve,_e)}function a(ve,_e){return a=Object.setPrototypeOf||function(ee,U){return ee.__proto__=U,ee},a(ve,_e)}function o(ve){var _e=h();return function(){var le=s(ve),ee;if(_e){var U=s(this).constructor;ee=Reflect.construct(le,arguments,U)}else ee=le.apply(this,arguments);return l(this,ee)}}function l(ve,_e){return _e&&(e(_e)==="object"||typeof _e=="function")?_e:d(ve)}function d(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}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(ve){return!1}}function s(ve){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},s(ve)}var u=function(){var ve=function(_e){n(ee,_e);var le=o(ee);function ee(){var U;return f(this,ee),U=le.apply(this,arguments),U.menuItems={},U.saveMenuItem=function(K){return function(X){U.menuItems[K]=X}},U}return c(ee,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(K){!K.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(K){var X=this.props,Q=X.fieldNames,te=X.defaultFieldNames;return Q[K]||te[K]}},{key:"getOption",value:function(K,X){var Q=this.props,te=Q.prefixCls,ae=Q.expandTrigger,re=Q.expandIcon,$=Q.loadingIcon,Z=this.props.onSelect.bind(this,K,X),fe=this.props.onItemDoubleClick.bind(this,K,X),me={onClick:Z,onDoubleClick:fe},Oe="".concat(te,"-menu-item"),He=null,Qe=K[this.getFieldName("children")]&&K[this.getFieldName("children")].length>0;(Qe||K.isLeaf===!1)&&(Oe+=" ".concat(te,"-menu-item-expand"),K.loading||(He=M.createElement("span",{className:"".concat(te,"-menu-item-expand-icon")},re))),ae==="hover"&&(Qe||K.isLeaf===!1)&&(me={onMouseEnter:this.delayOnSelect.bind(this,Z),onMouseLeave:this.delayOnSelect.bind(this),onClick:Z}),this.isActiveOption(K,X)&&(Oe+=" ".concat(te,"-menu-item-active"),me.ref=this.saveMenuItem(X)),K.disabled&&(Oe+=" ".concat(te,"-menu-item-disabled"));var ot=null;K.loading&&(Oe+=" ".concat(te,"-menu-item-loading"),ot=$||null);var st="";return"title"in K?st=K.title:typeof K[this.getFieldName("label")]=="string"&&(st=K[this.getFieldName("label")]),M.createElement("li",Object.assign({key:K[this.getFieldName("value")],className:Oe,title:st},me,{role:"menuitem",onMouseDown:function(dt){return dt.preventDefault()}}),K[this.getFieldName("label")],He,ot)}},{key:"getActiveOptions",value:function(K){var X=this,Q=this.props.options,te=K||this.props.activeValue;return O()(Q,function(ae,re){return ae[X.getFieldName("value")]===te[re]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var K=this,X=this.props.options,Q=this.getActiveOptions().map(function(te){return te[K.getFieldName("children")]}).filter(function(te){return!!te});return Q.unshift(X),Q}},{key:"delayOnSelect",value:function(K){for(var X=this,Q=arguments.length,te=new Array(Q>1?Q-1:0),ae=1;ae<Q;ae++)te[ae-1]=arguments[ae];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof K=="function"&&(this.delayTimer=window.setTimeout(function(){K(te),X.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var K=this.getShowOptions().length,X=0;X<K;X++){var Q=this.menuItems[X];Q&&Q.parentElement&&(Q.parentElement.scrollTop=Q.offsetTop)}}},{key:"isActiveOption",value:function(K,X){var Q=this.props.activeValue,te=Q===void 0?[]:Q;return te[X]===K[this.getFieldName("value")]}},{key:"render",value:function(){var K=this,X=this.props,Q=X.prefixCls,te=X.dropdownMenuColumnStyle;return M.createElement("div",null,this.getShowOptions().map(function(ae,re){return M.createElement("ul",{className:"".concat(Q,"-menu"),key:re,style:te},ae.map(function($){return K.getOption($,re)}))}))}}]),ee}(M.Component);return ve.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},ve}(),w=u,x={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}}},b=x;function P(ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(le){return typeof le}:P=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},P(ve)}function R(ve,_e){if(ve==null)return{};var le=C(ve,_e),ee,U;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ve);for(U=0;U<K.length;U++){if(ee=K[U],_e.indexOf(ee)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ve,ee))continue;le[ee]=ve[ee]}}return le}function C(ve,_e){if(ve==null)return{};var le={},ee=Object.keys(ve),U,K;for(K=0;K<ee.length;K++){if(U=ee[K],_e.indexOf(U)>=0)continue;le[U]=ve[U]}return le}function S(ve){return I(ve)||j(ve)||A(ve)||_()}function _(){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 A(ve,_e){if(!ve)return;if(typeof ve=="string")return k(ve,_e);var le=Object.prototype.toString.call(ve).slice(8,-1);if(le==="Object"&&ve.constructor&&(le=ve.constructor.name),le==="Map"||le==="Set")return Array.from(ve);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return k(ve,_e)}function j(ve){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ve))return Array.from(ve)}function I(ve){if(Array.isArray(ve))return k(ve)}function k(ve,_e){(_e==null||_e>ve.length)&&(_e=ve.length);for(var le=0,ee=new Array(_e);le<_e;le++)ee[le]=ve[le];return ee}function J(ve,_e){if(!(ve instanceof _e))throw new TypeError("Cannot call a class as a function")}function G(ve,_e){for(var le=0;le<_e.length;le++){var ee=_e[le];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(ve,ee.key,ee)}}function D(ve,_e,le){return _e&&G(ve.prototype,_e),le&&G(ve,le),ve}function H(ve,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(_e&&_e.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),_e&&W(ve,_e)}function W(ve,_e){return W=Object.setPrototypeOf||function(ee,U){return ee.__proto__=U,ee},W(ve,_e)}function L(ve){var _e=ce();return function(){var le=ue(ve),ee;if(_e){var U=ue(this).constructor;ee=Reflect.construct(le,arguments,U)}else ee=le.apply(this,arguments);return z(this,ee)}}function z(ve,_e){return _e&&(P(_e)==="object"||typeof _e=="function")?_e:ie(ve)}function ie(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}function ce(){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(ve){return!1}}function ue(ve){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},ue(ve)}var xe=function(){var ve=function(_e){H(ee,_e);var le=L(ee);function ee(U){var K;J(this,ee),K=le.call(this,U),K.setPopupVisible=function(Q){var te=K.state.value;"popupVisible"in K.props||K.setState({popupVisible:Q}),Q&&!K.state.popupVisible&&K.setState({activeValue:te}),K.props.onPopupVisibleChange(Q)},K.handleChange=function(Q,te,ae){var re=te.visible;(ae.type!=="keydown"||ae.keyCode===m.a.ENTER)&&(K.props.onChange(Q.map(function($){return $[K.getFieldName("value")]}),Q),K.setPopupVisible(re))},K.handlePopupVisibleChange=function(Q){K.setPopupVisible(Q)},K.handleMenuSelect=function(Q,te,ae){var re=K.trigger.getRootDomNode();re&&re.focus&&re.focus();var $=K.props,Z=$.changeOnSelect,fe=$.loadData,me=$.expandTrigger;if(!Q||Q.disabled)return;var Oe=K.state.activeValue;Oe=Oe.slice(0,te+1),Oe[te]=Q[K.getFieldName("value")];var He=K.getActiveOptions(Oe);if(Q.isLeaf===!1&&!Q[K.getFieldName("children")]&&fe){Z&&K.handleChange(He,{visible:!0},ae),K.setState({activeValue:Oe}),fe(He);return}var Qe={};!Q[K.getFieldName("children")]||!Q[K.getFieldName("children")].length?(K.handleChange(He,{visible:!1},ae),Qe.value=Oe):Z&&(ae.type==="click"||ae.type==="keydown")&&(me==="hover"?K.handleChange(He,{visible:!1},ae):K.handleChange(He,{visible:!0},ae),Qe.value=Oe),Qe.activeValue=Oe,("value"in K.props||ae.type==="keydown"&&ae.keyCode!==m.a.ENTER)&&delete Qe.value,K.setState(Qe)},K.handleItemDoubleClick=function(){var Q=K.props.changeOnSelect;Q&&K.setPopupVisible(!1)},K.handleKeyDown=function(Q){var te=K.props.children;if(te&&te.props.onKeyDown){te.props.onKeyDown(Q);return}var ae=S(K.state.activeValue),re=ae.length-1<0?0:ae.length-1,$=K.getCurrentLevelOptions(),Z=$.map(function(He){return He[K.getFieldName("value")]}).indexOf(ae[re]);if(Q.keyCode!==m.a.DOWN&&Q.keyCode!==m.a.UP&&Q.keyCode!==m.a.LEFT&&Q.keyCode!==m.a.RIGHT&&Q.keyCode!==m.a.ENTER&&Q.keyCode!==m.a.SPACE&&Q.keyCode!==m.a.BACKSPACE&&Q.keyCode!==m.a.ESC&&Q.keyCode!==m.a.TAB)return;if(!K.state.popupVisible&&Q.keyCode!==m.a.BACKSPACE&&Q.keyCode!==m.a.LEFT&&Q.keyCode!==m.a.RIGHT&&Q.keyCode!==m.a.ESC&&Q.keyCode!==m.a.TAB){K.setPopupVisible(!0);return}if(Q.keyCode===m.a.DOWN||Q.keyCode===m.a.UP){Q.preventDefault();var fe=Z;fe!==-1?Q.keyCode===m.a.DOWN?(fe+=1,fe=fe>=$.length?0:fe):(fe-=1,fe=fe<0?$.length-1:fe):fe=0,ae[re]=$[fe][K.getFieldName("value")]}else if(Q.keyCode===m.a.LEFT||Q.keyCode===m.a.BACKSPACE)Q.preventDefault(),ae.splice(ae.length-1,1);else if(Q.keyCode===m.a.RIGHT)Q.preventDefault(),$[Z]&&$[Z][K.getFieldName("children")]&&ae.push($[Z][K.getFieldName("children")][0][K.getFieldName("value")]);else if(Q.keyCode===m.a.ESC||Q.keyCode===m.a.TAB){K.setPopupVisible(!1);return}(!ae||ae.length===0)&&K.setPopupVisible(!1);var me=K.getActiveOptions(ae),Oe=me[me.length-1];K.handleMenuSelect(Oe,me.length-1,Q),K.props.onKeyDown&&K.props.onKeyDown(Q)},K.saveTrigger=function(Q){K.trigger=Q};var X=[];return"value"in U?X=U.value||[]:"defaultValue"in U&&(X=U.defaultValue||[]),v()(!("filedNames"in U),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),K.state={popupVisible:U.popupVisible,activeValue:X,value:X,prevProps:U},K.defaultFieldNames={label:"label",value:"value",children:"children"},K}return D(ee,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(K){var X=this.defaultFieldNames,Q=this.props,te=Q.fieldNames,ae=Q.filedNames;return"filedNames"in this.props?ae[K]||X[K]:te[K]||X[K]}},{key:"getFieldNames",value:function(){var K=this.props,X=K.fieldNames,Q=K.filedNames;return"filedNames"in this.props?Q:X}},{key:"getCurrentLevelOptions",value:function(){var K=this,X=this.props.options,Q=X===void 0?[]:X,te=this.state.activeValue,ae=te===void 0?[]:te,re=O()(Q,function($,Z){return $[K.getFieldName("value")]===ae[Z]},{childrenKeyName:this.getFieldName("children")});return re[re.length-2]?re[re.length-2][this.getFieldName("children")]:S(Q).filter(function($){return!$.disabled})}},{key:"getActiveOptions",value:function(K){var X=this;return O()(this.props.options||[],function(Q,te){return Q[X.getFieldName("value")]===K[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var K=this.props,X=K.prefixCls,Q=K.transitionName,te=K.popupClassName,ae=K.options,re=ae===void 0?[]:ae,$=K.disabled,Z=K.builtinPlacements,fe=K.popupPlacement,me=K.children,Oe=K.dropdownRender,He=R(K,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Qe=M.createElement("div",null),ot="";re&&re.length>0?Qe=M.createElement(w,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):ot=" ".concat(X,"-menus-empty");var st=Qe;return Oe&&(st=Oe(Qe)),M.createElement(E.a,Object.assign({ref:this.saveTrigger},He,{popupPlacement:fe,builtinPlacements:Z,popupTransitionName:Q,action:$?[]:["click"],popupVisible:$?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(X,"-menus"),popupClassName:te+ot,popup:st}),M.cloneElement(me,{onKeyDown:this.handleKeyDown,tabIndex:$?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(K,X){var Q=X.prevProps,te=Q===void 0?{}:Q,ae={prevProps:K};return"value"in K&&!g(te.value,K.value)&&(ae.value=K.value||[],"loadData"in K||(ae.activeValue=K.value||[])),"popupVisible"in K&&(ae.popupVisible=K.popupVisible),ae}}]),ee}(M.Component);return ve.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:b,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ve}(),Te=xe,de=Y.a=Te},S6kV:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.mode.OFB=function(){var E=M.lib.BlockCipherMode.extend(),T=E.Encryptor=E.extend({processBlock:function(v,m){var y=this._cipher,O=y.blockSize,g=this._iv,e=this._keystream;g&&(e=this._keystream=g.slice(0),this._iv=void 0),y.encryptBlock(e,0);for(var f=0;f<O;f++)v[m+f]^=e[f]}});return E.Decryptor=T,E}(),M.mode.OFB})},"SA+Z":function(N,Y,i){var M=i("wTVA"),E=i("EbDI"),T=i("ZhPi"),v=i("wkBT");function m(y){return M(y)||E(y)||T(y)||v()}N.exports=m,N.exports.__esModule=!0,N.exports.default=N.exports},SJMd:function(N,Y){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var i,M,E,T=!1,v,m;window.PR_SHOULD_USE_CONTINUATION=!0;var y,O;(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"],c=[r,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],n=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[r,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],o="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",l=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="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",h=[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"],w=[c,a,n,l,d,h,s,u],x=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,b="str",P="kwd",R="com",C="typ",S="lit",_="pun",A="pln",j="tag",I="dec",k="src",J="atn",G="atv",D="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(ae){for(var re=0,$=!1,Z=!1,fe=0,me=ae.length;fe<me;++fe){var Oe=ae[fe];if(Oe.ignoreCase)Z=!0;else if(/[a-z]/i.test(Oe.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){$=!0,Z=!1;break}}var He={b:8,t:9,n:10,v:11,f:12,r:13};function Qe(Xe){var ke=Xe.charCodeAt(0);if(ke!==92)return ke;var lt=Xe.charAt(1);return ke=He[lt],ke||("0"<=lt&&lt<="7"?parseInt(Xe.substring(1),8):lt==="u"||lt==="x"?parseInt(Xe.substring(2),16):Xe.charCodeAt(1))}function ot(Xe){if(Xe<32)return(Xe<16?"\\x0":"\\x")+Xe.toString(16);var ke=String.fromCharCode(Xe);return ke==="\\"||ke==="-"||ke==="]"||ke==="^"?"\\"+ke:ke}function st(Xe){var ke=Xe.substring(1,Xe.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")),lt=[],Mt=ke[0]==="^",Ce=["["];Mt&&Ce.push("^");for(var he=Mt?1:0,be=ke.length;he<be;++he){var Ee=ke[he];if(/\\[bdsw]/i.test(Ee))Ce.push(Ee);else{var Ne=Qe(Ee),we;he+2<be&&ke[he+1]==="-"?(we=Qe(ke[he+2]),he+=2):we=Ne,lt.push([Ne,we]),we<65||Ne>122||(we<65||Ne>90||lt.push([Math.max(65,Ne)|32,Math.min(we,90)|32]),we<97||Ne>122||lt.push([Math.max(97,Ne)&~32,Math.min(we,122)&~32]))}}lt.sort(function(Je,$e){return Je[0]-$e[0]||$e[1]-Je[1]});for(var Ae=[],Ue=[],he=0;he<lt.length;++he){var We=lt[he];We[0]<=Ue[1]+1?Ue[1]=Math.max(Ue[1],We[1]):Ae.push(Ue=We)}for(var he=0;he<Ae.length;++he){var We=Ae[he];Ce.push(ot(We[0])),We[1]>We[0]&&(We[1]+1>We[0]&&Ce.push("-"),Ce.push(ot(We[1])))}return Ce.push("]"),Ce.join("")}function ct(Xe){for(var ke=Xe.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")),lt=ke.length,Mt=[],Ce=0,he=0;Ce<lt;++Ce){var be=ke[Ce];if(be==="(")++he;else if(be.charAt(0)==="\\"){var Ee=+be.substring(1);Ee&&(Ee<=he?Mt[Ee]=-1:ke[Ce]=ot(Ee))}}for(var Ce=1;Ce<Mt.length;++Ce)Mt[Ce]===-1&&(Mt[Ce]=++re);for(var Ce=0,he=0;Ce<lt;++Ce){var be=ke[Ce];if(be==="(")++he,Mt[he]||(ke[Ce]="(?:");else if(be.charAt(0)==="\\"){var Ee=+be.substring(1);Ee&&Ee<=he&&(ke[Ce]="\\"+Mt[Ee])}}for(var Ce=0;Ce<lt;++Ce)ke[Ce]==="^"&&ke[Ce+1]!=="^"&&(ke[Ce]="");if(Xe.ignoreCase&&$)for(var Ce=0;Ce<lt;++Ce){var be=ke[Ce],Ne=be.charAt(0);be.length>=2&&Ne==="["?ke[Ce]=st(be):Ne!=="\\"&&(ke[Ce]=be.replace(/[a-zA-Z]/g,function(Ue){var We=Ue.charCodeAt(0);return"["+String.fromCharCode(We&~32,We|32)+"]"}))}return ke.join("")}for(var dt=[],fe=0,me=ae.length;fe<me;++fe){var Oe=ae[fe];if(Oe.global||Oe.multiline)throw new Error(""+Oe);dt.push("(?:"+ct(Oe)+")")}return new RegExp(dt.join("|"),Z?"gi":"g")}function L(ae,re){var $=/(?:^|\s)nocode(?:\s|$)/,Z=[],fe=0,me=[],Oe=0;function He(Qe){var ot=Qe.nodeType;if(ot==1){if($.test(Qe.className))return;for(var st=Qe.firstChild;st;st=st.nextSibling)He(st);var ct=Qe.nodeName.toLowerCase();(ct==="br"||ct==="li")&&(Z[Oe]=`
`,me[Oe<<1]=fe++,me[Oe++<<1|1]=Qe)}else if(ot==3||ot==4){var dt=Qe.nodeValue;dt.length&&(re?dt=dt.replace(/\r\n?/g,`
`):dt=dt.replace(/[ \t\r\n]+/g," "),Z[Oe]=dt,me[Oe<<1]=fe,fe+=dt.length,me[Oe++<<1|1]=Qe)}}return He(ae),{sourceCode:Z.join("").replace(/\n$/,""),spans:me}}function z(ae,re,$,Z,fe){if(!$)return;var me={sourceNode:ae,pre:1,langExtension:null,numberLines:null,sourceCode:$,spans:null,basePos:re,decorations:null};Z(me),fe.push.apply(fe,me.decorations)}var ie=/\S/;function ce(ae){for(var re=void 0,$=ae.firstChild;$;$=$.nextSibling){var Z=$.nodeType;re=Z===1?re?ae:$:Z===3&&ie.test($.nodeValue)?ae:re}return re===ae?void 0:re}function ue(ae,re){var $={},Z;(function(){for(var Oe=ae.concat(re),He=[],Qe={},ot=0,st=Oe.length;ot<st;++ot){var ct=Oe[ot],dt=ct[3];if(dt)for(var Xe=dt.length;--Xe>=0;)$[dt.charAt(Xe)]=ct;var ke=ct[1],lt=""+ke;Qe.hasOwnProperty(lt)||(He.push(ke),Qe[lt]=null)}He.push(/[\0-\uffff]/),Z=W(He)})();var fe=re.length,me=function(Oe){for(var He=Oe.sourceCode,Qe=Oe.basePos,ot=Oe.sourceNode,st=[Qe,A],ct=0,dt=He.match(Z)||[],Xe={},ke=0,lt=dt.length;ke<lt;++ke){var Mt=dt[ke],Ce=Xe[Mt],he=void 0,be;if(typeof Ce=="string")be=!1;else{var Ee=$[Mt.charAt(0)];if(Ee)he=Mt.match(Ee[1]),Ce=Ee[0];else{for(var Ne=0;Ne<fe;++Ne)if(Ee=re[Ne],he=Mt.match(Ee[1]),he){Ce=Ee[0];break}he||(Ce=A)}be=Ce.length>=5&&Ce.substring(0,5)==="lang-",be&&!(he&&typeof he[1]=="string")&&(be=!1,Ce=k),be||(Xe[Mt]=Ce)}var we=ct;if(ct+=Mt.length,!be)st.push(Qe+we,Ce);else{var Ae=he[1],Ue=Mt.indexOf(Ae),We=Ue+Ae.length;he[2]&&(We=Mt.length-he[2].length,Ue=We-Ae.length);var Je=Ce.substring(5);z(ot,Qe+we,Mt.substring(0,Ue),me,st),z(ot,Qe+we+Ue,Ae,ee(Je,Ae),st),z(ot,Qe+we+We,Mt.substring(We),me,st)}}Oe.decorations=st};return me}function xe(ae){var re=[],$=[];ae.tripleQuotedStrings?re.push([b,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ae.multiLineStrings?re.push([b,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):re.push([b,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ae.verbatimStrings&&$.push([b,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Z=ae.hashComments;Z&&(ae.cStyleComments?(Z>1?re.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):re.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),$.push([b,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):re.push([R,/^#[^\r\n]*/,null,"#"])),ae.cStyleComments&&($.push([R,/^\/\/[^\r\n]*/,null]),$.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=ae.regexLiterals;if(fe){var me=fe>1?"":`
\r`,Oe=me?".":"[\\S\\s]",He="/(?=[^/*"+me+"])(?:[^/\\x5B\\x5C"+me+"]|\\x5C"+Oe+"|\\x5B(?:[^\\x5C\\x5D"+me+"]|\\x5C"+Oe+")*(?:\\x5D|$))+/";$.push(["lang-regex",RegExp("^"+H+"("+He+")")])}var Qe=ae.types;Qe&&$.push([C,Qe]);var ot=(""+ae.keywords).replace(/^ | $/g,"");ot.length&&$.push([P,new RegExp("^(?:"+ot.replace(/[\s,]+/g,"|")+")\\b"),null]),re.push([A,/^\s+/,null,` \r
\xA0`]);var st="^.[^\\s\\w.$@'\"`/\\\\]*";return ae.regexLiterals&&(st+="(?!s*/)"),$.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[A,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[A,/^\\[\s\S]?/,null],[_,new RegExp(st),null]),ue(re,$)}var Te=xe({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function de(ae,re,$){for(var Z=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,me=ae.ownerDocument,Oe=me.createElement("li");ae.firstChild;)Oe.appendChild(ae.firstChild);var He=[Oe];function Qe(ke){var lt=ke.nodeType;if(lt==1&&!Z.test(ke.className))if(ke.nodeName==="br")ot(ke),ke.parentNode&&ke.parentNode.removeChild(ke);else for(var Mt=ke.firstChild;Mt;Mt=Mt.nextSibling)Qe(Mt);else if((lt==3||lt==4)&&$){var Ce=ke.nodeValue,he=Ce.match(fe);if(he){var be=Ce.substring(0,he.index);ke.nodeValue=be;var Ee=Ce.substring(he.index+he[0].length);if(Ee){var Ne=ke.parentNode;Ne.insertBefore(me.createTextNode(Ee),ke.nextSibling)}ot(ke),be||ke.parentNode.removeChild(ke)}}}function ot(ke){for(;!ke.nextSibling;)if(ke=ke.parentNode,!ke)return;function lt(he,be){var Ee=be?he.cloneNode(!1):he,Ne=he.parentNode;if(Ne){var we=lt(Ne,1),Ae=he.nextSibling;we.appendChild(Ee);for(var Ue=Ae;Ue;Ue=Ae)Ae=Ue.nextSibling,we.appendChild(Ue)}return Ee}for(var Mt=lt(ke.nextSibling,0),Ce;(Ce=Mt.parentNode)&&Ce.nodeType===1;)Mt=Ce;He.push(Mt)}for(var st=0;st<He.length;++st)Qe(He[st]);re===(re|0)&&He[0].setAttribute("value",re);var ct=me.createElement("ol");ct.className="linenums";for(var dt=Math.max(0,re-1|0)||0,st=0,Xe=He.length;st<Xe;++st)Oe=He[st],Oe.className="L"+(st+dt)%10,Oe.firstChild||Oe.appendChild(me.createTextNode("\xA0")),ct.appendChild(Oe);ae.appendChild(ct)}function ve(ae){var re=/\bMSIE\s(\d+)/.exec(navigator.userAgent);re=re&&+re[1]<=8;var $=/\n/g,Z=ae.sourceCode,fe=Z.length,me=0,Oe=ae.spans,He=Oe.length,Qe=0,ot=ae.decorations,st=ot.length,ct=0;ot[st]=fe;var dt,Xe;for(Xe=dt=0;Xe<st;)ot[Xe]!==ot[Xe+2]?(ot[dt++]=ot[Xe++],ot[dt++]=ot[Xe++]):Xe+=2;for(st=dt,Xe=dt=0;Xe<st;){for(var ke=ot[Xe],lt=ot[Xe+1],Mt=Xe+2;Mt+2<=st&&ot[Mt+1]===lt;)Mt+=2;ot[dt++]=ke,ot[dt++]=lt,Xe=Mt}st=ot.length=dt;var Ce=ae.sourceNode,he="";Ce&&(he=Ce.style.display,Ce.style.display="none");try{for(var be=null;Qe<He;){var Ee=Oe[Qe],Ne=Oe[Qe+2]||fe,we=ot[ct+2]||fe,Mt=Math.min(Ne,we),Ae=Oe[Qe+1],Ue;if(Ae.nodeType!==1&&(Ue=Z.substring(me,Mt))){re&&(Ue=Ue.replace($,"\r")),Ae.nodeValue=Ue;var We=Ae.ownerDocument,Je=We.createElement("span");Je.className=ot[ct+1];var $e=Ae.parentNode;$e.replaceChild(Je,Ae),Je.appendChild(Ae),me<Ne&&(Oe[Qe+1]=Ae=We.createTextNode(Z.substring(Mt,Ne)),$e.insertBefore(Ae,Je.nextSibling))}me=Mt,me>=Ne&&(Qe+=2),me>=we&&(ct+=2)}}finally{Ce&&(Ce.style.display=he)}}var _e={};function le(ae,re){for(var $=re.length;--$>=0;){var Z=re[$];_e.hasOwnProperty(Z)?g.console&&console.warn("cannot override language handler %s",Z):_e[Z]=ae}}function ee(ae,re){return ae&&_e.hasOwnProperty(ae)||(ae=/^\s*</.test(re)?"default-markup":"default-code"),_e[ae]}le(Te,["default-code"]),le(ue([],[[A,/^[^<?]+/],[I,/^<!\w[^>]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["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"]),le(ue([[A,/^[\s]+/,null,` \r
`],[G,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[j,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[J,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["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"]),le(ue([],[[G,/^[\s\S]+/]]),["uq.val"]),le(xe({keywords:c,hashComments:!0,cStyleComments:!0,types:x}),["c","cc","cpp","cxx","cyc","m"]),le(xe({keywords:"null,true,false"}),["json"]),le(xe({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:x}),["cs"]),le(xe({keywords:n,cStyleComments:!0}),["java"]),le(xe({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),le(xe({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),le(xe({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),le(xe({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),le(xe({keywords:l,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),le(xe({keywords:o,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),le(ue([],[[b,/^[\s\S]+/]]),["regex"]);function U(ae){var re=ae.langExtension;try{var $=L(ae.sourceNode,ae.pre),Z=$.sourceCode;ae.sourceCode=Z,ae.spans=$.spans,ae.basePos=0,ee(re,Z)(ae),ve(ae)}catch(fe){g.console&&console.log(fe&&fe.stack||fe)}}function K(ae,re,$){var Z=$||!1,fe=re||null,me=document.createElement("div");me.innerHTML="<pre>"+ae+"</pre>",me=me.firstChild,Z&&de(me,Z,!0);var Oe={langExtension:fe,numberLines:Z,sourceNode:me,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return U(Oe),me.innerHTML}function X(ae,re){var $=re||document.body,Z=$.ownerDocument||document;function fe(Ee){return $.getElementsByTagName(Ee)}for(var me=[fe("pre"),fe("code"),fe("xmp")],Oe=[],He=0;He<me.length;++He)for(var Qe=0,ot=me[He].length;Qe<ot;++Qe)Oe.push(me[He][Qe]);me=null;var st=Date;st.now||(st={now:function(){return+new Date}});var ct=0,dt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Xe=/\bprettyprint\b/,ke=/\bprettyprinted\b/,lt=/pre|xmp/i,Mt=/^code$/i,Ce=/^(?:pre|code|xmp)$/i,he={};function be(){for(var Ee=g.PR_SHOULD_USE_CONTINUATION?st.now()+250:Infinity;ct<Oe.length&&st.now()<Ee;ct++){for(var Ne=Oe[ct],we=he,Ae=Ne;Ae=Ae.previousSibling;){var Ue=Ae.nodeType,We=(Ue===7||Ue===8)&&Ae.nodeValue;if(We?!/^\??prettify\b/.test(We):Ue!==3||/\S/.test(Ae.nodeValue))break;if(We){we={},We.replace(/\b(\w+)=([\w:.%+-]+)/g,function(xt,_t,At){we[_t]=At});break}}var Je=Ne.className;if((we!==he||Xe.test(Je))&&!ke.test(Je)){for(var $e=!1,pt=Ne.parentNode;pt;pt=pt.parentNode){var Jt=pt.tagName;if(Ce.test(Jt)&&pt.className&&Xe.test(pt.className)){$e=!0;break}}if(!$e){Ne.className+=" prettyprinted";var fn=we.lang;if(!fn){fn=Je.match(dt);var qt;!fn&&(qt=ce(Ne))&&Mt.test(qt.tagName)&&(fn=qt.className.match(dt)),fn&&(fn=fn[1])}var St;if(lt.test(Ne.tagName))St=1;else{var Be=Ne.currentStyle,at=Z.defaultView,it=Be?Be.whiteSpace:at&&at.getComputedStyle?at.getComputedStyle(Ne,null).getPropertyValue("white-space"):0;St=it&&it.substring(0,3)==="pre"}var Me=we.linenums;(Me=Me==="true"||+Me)||(Me=Je.match(/\blinenums\b(?::(\d+))?/),Me=Me?Me[1]&&Me[1].length?+Me[1]:!0:!1),Me&&de(Ne,Me,St);var Ve={langExtension:fn,sourceNode:Ne,numberLines:Me,pre:St,sourceCode:null,basePos:null,spans:null,decorations:null};U(Ve)}}}ct<Oe.length?g.setTimeout(be,250):typeof ae=="function"&&ae()}be()}var Q=g.PR={createSimpleLexer:ue,registerLangHandler:le,sourceDecorator:xe,PR_ATTRIB_NAME:J,PR_ATTRIB_VALUE:G,PR_COMMENT:R,PR_DECLARATION:I,PR_KEYWORD:P,PR_LITERAL:S,PR_NOCODE:D,PR_PLAIN:A,PR_PUNCTUATION:_,PR_SOURCE:k,PR_STRING:b,PR_TAG:j,PR_TYPE:C,prettyPrintOne:T?g.prettyPrintOne=K:y=K,prettyPrint:O=T?g.prettyPrint=X:O=X},te=g.define;typeof te=="function"&&te.amd&&te("google-code-prettify",[],function(){return Q})})()},SLjR:function(N,Y,i){},SMhR:function(N,Y){N.exports="data:image/png;base64,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"},STEk:function(N,Y,i){"use strict";i.d(Y,"a",function(){return le});/*! *****************************************************************************
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 M=function(ee,U){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,X){K.__proto__=X}||function(K,X){for(var Q in X)Object.prototype.hasOwnProperty.call(X,Q)&&(K[Q]=X[Q])})(ee,U)};function E(ee,U){function K(){this.constructor=ee}M(ee,U),ee.prototype=U===null?Object.create(U):(K.prototype=U.prototype,new K)}function T(ee,U,K,X){return new(K||(K=Promise))(function(Q,te){function ae(Z){try{$(X.next(Z))}catch(fe){te(fe)}}function re(Z){try{$(X.throw(Z))}catch(fe){te(fe)}}function $(Z){var fe;Z.done?Q(Z.value):(fe=Z.value,fe instanceof K?fe:new K(function(me){me(fe)})).then(ae,re)}$((X=X.apply(ee,U||[])).next())})}function v(ee,U){var K,X,Q,te,ae={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return te={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function re($){return function(Z){return function(fe){if(K)throw new TypeError("Generator is already executing.");for(;ae;)try{if(K=1,X&&(Q=2&fe[0]?X.return:fe[0]?X.throw||((Q=X.return)&&Q.call(X),0):X.next)&&!(Q=Q.call(X,fe[1])).done)return Q;switch(X=0,Q&&(fe=[2&fe[0],Q.value]),fe[0]){case 0:case 1:Q=fe;break;case 4:return ae.label++,{value:fe[1],done:!1};case 5:ae.label++,X=fe[1],fe=[0];continue;case 7:fe=ae.ops.pop(),ae.trys.pop();continue;default:if(!(Q=ae.trys,(Q=Q.length>0&&Q[Q.length-1])||fe[0]!==6&&fe[0]!==2)){ae=0;continue}if(fe[0]===3&&(!Q||fe[1]>Q[0]&&fe[1]<Q[3])){ae.label=fe[1];break}if(fe[0]===6&&ae.label<Q[1]){ae.label=Q[1],Q=fe;break}if(Q&&ae.label<Q[2]){ae.label=Q[2],ae.ops.push(fe);break}Q[2]&&ae.ops.pop(),ae.trys.pop();continue}fe=U.call(ee,ae)}catch(me){fe=[6,me],X=0}finally{K=Q=0}if(5&fe[0])throw fe[1];return{value:fe[0]?fe[1]:void 0,done:!0}}([$,Z])}}}function m(){for(var ee=0,U=0,K=arguments.length;U<K;U++)ee+=arguments[U].length;var X=Array(ee),Q=0;for(U=0;U<K;U++)for(var te=arguments[U],ae=0,re=te.length;ae<re;ae++,Q++)X[Q]=te[ae];return X}var y=function(){function ee(){}return ee.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ee.setAttributes=function(U,K){for(var X=0,Q=K;X<Q.length;X++){var te=Q[X],ae=te[0],re=te[1];U.setAttribute(ae,re)}},ee.createRect=function(U,K,X){var Q=document.createElementNS("http://www.w3.org/2000/svg","rect");return Q.setAttribute("width",U.toString()),Q.setAttribute("height",K.toString()),X&&ee.setAttributes(Q,X),Q},ee.createLine=function(U,K,X,Q,te){var ae=document.createElementNS("http://www.w3.org/2000/svg","line");return ae.setAttribute("x1",U.toString()),ae.setAttribute("y1",K.toString()),ae.setAttribute("x2",X.toString()),ae.setAttribute("y2",Q.toString()),te&&ee.setAttributes(ae,te),ae},ee.createPolygon=function(U,K){var X=document.createElementNS("http://www.w3.org/2000/svg","polygon");return X.setAttribute("points",U),K&&ee.setAttributes(X,K),X},ee.createCircle=function(U,K){var X=document.createElementNS("http://www.w3.org/2000/svg","circle");return X.setAttribute("cx",(U/2).toString()),X.setAttribute("cy",(U/2).toString()),X.setAttribute("r",U.toString()),K&&ee.setAttributes(X,K),X},ee.createEllipse=function(U,K,X){var Q=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Q.setAttribute("cx",(U/2).toString()),Q.setAttribute("cy",(K/2).toString()),Q.setAttribute("rx",(U/2).toString()),Q.setAttribute("ry",(K/2).toString()),X&&ee.setAttributes(Q,X),Q},ee.createGroup=function(U){var K=document.createElementNS("http://www.w3.org/2000/svg","g");return U&&ee.setAttributes(K,U),K},ee.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ee.createMarker=function(U,K,X,Q,te,ae,re){var $=document.createElementNS("http://www.w3.org/2000/svg","marker");return ee.setAttributes($,[["id",U],["orient",K],["markerWidth",X.toString()],["markerHeight",Q.toString()],["refX",te.toString()],["refY",ae.toString()]]),$.appendChild(re),$},ee.createText=function(U){var K=document.createElementNS("http://www.w3.org/2000/svg","text");return K.setAttribute("x","0"),K.setAttribute("y","0"),U&&ee.setAttributes(K,U),K},ee.createTSpan=function(U,K){var X=document.createElementNS("http://www.w3.org/2000/svg","tspan");return X.textContent=U,K&&ee.setAttributes(X,K),X},ee.createImage=function(U){var K=document.createElementNS("http://www.w3.org/2000/svg","image");return U&&ee.setAttributes(K,U),K},ee.createPoint=function(U,K){var X=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return X.x=U,X.y=K,X},ee.createPath=function(U,K){var X=document.createElementNS("http://www.w3.org/2000/svg","path");return X.setAttribute("d",U),K&&ee.setAttributes(X,K),X},ee}(),O=function(){function ee(){}return ee.addKey=function(U){ee.key=U},Object.defineProperty(ee,"isLicensed",{get:function(){return!!ee.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ee.key)},enumerable:!1,configurable:!0}),ee}(),g=function(){function ee(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ee.prototype.rasterize=function(U,K,X){var Q=this;return new Promise(function(te){var ae=X!==void 0?X:document.createElement("canvas");U===null&&(Q.markersOnly=!0,Q.naturalSize=!1);var re=document.createElementNS("http://www.w3.org/2000/svg","svg");re.setAttribute("xmlns","http://www.w3.org/2000/svg"),re.setAttribute("width",K.width.baseVal.valueAsString),re.setAttribute("height",K.height.baseVal.valueAsString),re.setAttribute("viewBox","0 0 "+K.viewBox.baseVal.width.toString()+" "+K.viewBox.baseVal.height.toString()),re.innerHTML=K.innerHTML,Q.naturalSize===!0?(re.width.baseVal.value=U.naturalWidth,re.height.baseVal.value=U.naturalHeight):Q.width!==void 0&&Q.height!==void 0&&(re.width.baseVal.value=Q.width,re.height.baseVal.value=Q.height),ae.width=re.width.baseVal.value,ae.height=re.height.baseVal.value;var $=re.outerHTML,Z=ae.getContext("2d");Q.markersOnly!==!0&&Z.drawImage(U,0,0,ae.width,ae.height);var fe=window.URL,me=new Image(ae.width,ae.height);me.setAttribute("crossOrigin","anonymous");var Oe=new Blob([$],{type:"image/svg+xml"}),He=fe.createObjectURL(Oe);me.onload=function(){Z.drawImage(me,0,0),fe.revokeObjectURL(He);var Qe=ae.toDataURL(Q.imageType,Q.imageQuality);te(Qe)},me.src=He})},ee}(),e=function(){},f=function(){function ee(U){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+U+"_"}return Object.defineProperty(ee.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ee.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(ee.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ee.prototype.addClass=function(U){return this.styleSheet===void 0&&this.addStyleSheet(),U.name=""+this.classNamePrefix+U.localName,this.classes.push(U),this.styleSheet.sheet.insertRule("."+U.name+" {"+U.style+"}",this.styleSheet.sheet.cssRules.length),U},ee.prototype.addRule=function(U){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(U),this.styleSheet.sheet.insertRule(U.selector+" {"+U.style+"}",this.styleSheet.sheet.cssRules.length)},ee.prototype.addStyleSheet=function(){var U;this.styleSheet=document.createElement("style"),((U=this.styleSheetRoot)!==null&&U!==void 0?U:document.head).appendChild(this.styleSheet),this.addRule(new r("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new r("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new r("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new c("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new c("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ee.prototype.removeStyleSheet=function(){var U;this.styleSheet&&(((U=this.styleSheetRoot)!==null&&U!==void 0?U:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ee}(),r=function(ee,U){this.selector=ee,this.style=U},c=function(ee,U){this.localName=ee,this.style=U},n=function(){function ee(U,K,X,Q,te){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=U,this.displayMode=K,this.markerItems=X,this.uiStyleSettings=Q,this.styles=te,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ee.prototype.show=function(U){var K=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=U,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var X=document.createElement("div");X.className=this.toolbarBlockStyleClass.name,X.style.whiteSpace="nowrap",this.uiContainer.appendChild(X),this.addActionButton(X,'<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(X,'<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(X,'<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(X,'<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(X,'<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(X,'<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(X,'<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(X,'<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(te){var ae=document.createElement("div");ae.className=""+K.toolbarButtonStyleClass.name,ae.setAttribute("data-type-name",te.typeName),ae.innerHTML=te.icon,ae.addEventListener("click",function(){K.markerToolbarButtonClicked(ae,te)}),K.buttons.push(ae),K.markerButtons.push(ae)}),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 Q=document.createElement("div");Q.className=this.toolbarBlockStyleClass.name,Q.style.whiteSpace="nowrap",Q.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Q),this.addActionButton(Q,'<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(Q,'<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()},ee.prototype.addButtonClickListener=function(U){this.buttonClickListeners.push(U)},ee.prototype.removeButtonClickListener=function(U){this.buttonClickListeners.indexOf(U)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(U),1)},ee.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ee.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var U=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var K=0;K<this.markerButtons.length;K++)K<U||K===U&&this.markerButtons.length-1===U?this.markerButtonBlock.appendChild(this.markerButtons[K]):(K===U&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[K]))}},ee.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")},ee.prototype.resetButtonStyles=function(){var U=this;this.buttons.forEach(function(K){K.className=K.className.replace(U.uiStyleSettings.toolbarButtonStyleColorsClassName?U.uiStyleSettings.toolbarButtonStyleColorsClassName:U.toolbarButtonStyleColorsClass.name,"").trim(),K.className=K.className.replace(U.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?U.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:U.toolbarActiveButtonStyleColorsClass.name,"").trim(),K.className+=" "+(U.uiStyleSettings.toolbarButtonStyleColorsClassName?U.uiStyleSettings.toolbarButtonStyleColorsClassName:U.toolbarButtonStyleColorsClass.name)})},ee.prototype.addActionButton=function(U,K,X){var Q=this,te=document.createElement("div");switch(te.className=""+this.toolbarButtonStyleClass.name,te.innerHTML=K,te.setAttribute("data-action",X),te.addEventListener("click",function(){Q.actionToolbarButtonClicked(te,X)}),X){case"select":te.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":te.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":te.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":te.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":te.style.fill=this.uiStyleSettings.closeButtonColor}U.appendChild(te),this.buttons.push(te)},ee.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new c("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 c("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new c("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new c("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 c("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var U=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new c("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*U)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*U)+`px;
padding: `+U+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new c("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new c("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new r("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new r("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ee.prototype.markerToolbarButtonClicked=function(U,K){this.setActiveButton(U),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(X){return X("marker",K)}),this.markerButtonOverflowBlock.style.display="none"},ee.prototype.actionToolbarButtonClicked=function(U,K){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(X){return X("action",K)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ee.prototype.setActiveButton=function(U){this.resetButtonStyles(),U.className=U.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),U.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ee.prototype.setActiveMarkerButton=function(U){var K=this.markerButtons.find(function(X){return X.getAttribute("data-type-name")===U});K&&this.setActiveButton(K)},ee.prototype.setCurrentMarker=function(U){var K=this;this.currentMarker=U,this.buttons.filter(function(X){return/delete|notes/.test(X.getAttribute("data-action"))}).forEach(function(X){K.currentMarker===void 0?(X.style.fillOpacity="0.4",X.style.pointerEvents="none"):(X.style.fillOpacity="1",X.style.pointerEvents="all")})},ee}(),a=function(){function ee(U,K,X,Q){this.panels=[],this.panelButtons=[],this.markerjsContainer=U,this.displayMode=K,this.uiStyleSettings=X,this.styles=Q,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ee.prototype.addStyles=function(){var U;this.toolboxStyleClass=this.styles.addClass(new c("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 c("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var K=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new c("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new c("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new c("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 c("toolbox-panel-row_colors",`
background-color: `+((U=this.uiStyleSettings.toolboxBackgroundColor)!==null&&U!==void 0?U:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new c("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*K)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*K)+`px;
padding: `+K+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new c("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new c("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new r("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new r("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ee.prototype.show=function(U){var K;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=U,this.uiContainer.className=this.toolboxStyleClass.name+" "+((K=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&K!==void 0?K:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ee.prototype.setPanelButtons=function(U){var K,X,Q=this;this.panels=U,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((K=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&K!==void 0?K:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((X=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&X!==void 0?X:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(te){var ae;te.uiStyleSettings=Q.uiStyleSettings;var re=document.createElement("div");re.className=Q.toolboxButtonStyleClass.name+" "+((ae=Q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ae!==void 0?ae:Q.toolboxButtonStyleColorsClass.name),re.innerHTML=te.icon,re.title=te.title,re.addEventListener("click",function(){Q.panelButtonClick(te)}),Q.panelButtons.push(re),Q.buttonRow.appendChild(re)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ee.prototype.panelButtonClick=function(U){var K=this,X=-1;if(U!==this.activePanel){X=this.panels.indexOf(U),this.panelRow.innerHTML="";var Q=U.getUi();Q.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Q),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=U}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){K.displayMode==="inline"?K.panelRow.style.display="none":K.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(te,ae){var re,$;te.className=K.toolboxButtonStyleClass.name+" "+(ae===X?""+((re=K.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&re!==void 0?re:K.toolboxActiveButtonStyleColorsClass.name):""+(($=K.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$!==void 0?$:K.toolboxButtonStyleColorsClass.name))})},ee}(),o=function(ee,U){this.title=ee,this.icon=U},l=function(ee){function U(K,X,Q,te){var ae=ee.call(this,K,te||'<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 ae.colors=[],ae.addTransparent=!1,ae.colorBoxes=[],ae.colors=X,ae.currentColor=Q,ae.setCurrentColor=ae.setCurrentColor.bind(ae),ae.getColorBox=ae.getColorBox.bind(ae),ae}return E(U,ee),U.prototype.getUi=function(){var K=this,X=document.createElement("div");return X.style.overflow="hidden",X.style.whiteSpace="nowrap",this.colors.forEach(function(Q){var te=K.getColorBox(Q);X.appendChild(te),K.colorBoxes.push(te)}),X},U.prototype.getColorBox=function(K){var X=this,Q=this.uiStyleSettings.toolbarHeight/4,te=this.uiStyleSettings.toolbarHeight-Q,ae=document.createElement("div");ae.style.display="inline-block",ae.style.boxSizing="content-box",ae.style.width=te-2+"px",ae.style.height=te-2+"px",ae.style.padding="1px",ae.style.marginRight="2px",ae.style.marginBottom="2px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderRadius=(te+2)/2+"px",ae.style.borderColor=K===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){X.setCurrentColor(K,ae)});var re=document.createElement("div");return re.style.display="inline-block",re.style.width=te-2+"px",re.style.height=te-2+"px",re.style.backgroundColor=K,re.style.borderRadius=te/2+"px",K==="transparent"&&(re.style.fill=this.uiStyleSettings.toolboxAccentColor,re.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>`),ae.appendChild(re),ae},U.prototype.setCurrentColor=function(K,X){var Q=this;this.currentColor=K,this.colorBoxes.forEach(function(te){te.style.borderColor=te===X?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(K)},U}(o),d=function(){function ee(U,K,X){this._state="new",this._isSelected=!1,this._container=U,this._overlayContainer=K,this.globalSettings=X,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ee.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(U){return!1},Object.defineProperty(ee.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ee.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ee.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ee.prototype.pointerDown=function(U,K){},ee.prototype.dblClick=function(U,K){},ee.prototype.manipulate=function(U){},ee.prototype.pointerUp=function(U){this.stateChanged()},ee.prototype.dispose=function(){},ee.prototype.addMarkerVisualToContainer=function(U){this.container.childNodes.length>0?this.container.insertBefore(U,this.container.childNodes[0]):this.container.appendChild(U)},ee.prototype.getState=function(){return{typeName:ee.typeName,state:this.state,notes:this.notes}},ee.prototype.restoreState=function(U){this._state=U.state,this.notes=U.notes},ee.prototype.scale=function(U,K){},ee.prototype.colorChanged=function(U){this.onColorChanged&&this.onColorChanged(U),this.stateChanged()},ee.prototype.fillColorChanged=function(U){this.onFillColorChanged&&this.onFillColorChanged(U),this.stateChanged()},ee.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var U=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),U.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(U)&&this.onStateChanged(this)}},ee.typeName="MarkerBase",ee}(),h=function(){function ee(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ee.prototype.findGripByVisual=function(U){return this.topLeft.ownsTarget(U)?this.topLeft:this.topCenter.ownsTarget(U)?this.topCenter:this.topRight.ownsTarget(U)?this.topRight:this.centerLeft.ownsTarget(U)?this.centerLeft:this.centerRight.ownsTarget(U)?this.centerRight:this.bottomLeft.ownsTarget(U)?this.bottomLeft:this.bottomCenter.ownsTarget(U)?this.bottomCenter:this.bottomRight.ownsTarget(U)?this.bottomRight:void 0},ee}(),s=function(){function ee(){this.GRIP_SIZE=10,this.visual=y.createGroup(),this.visual.appendChild(y.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(y.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ee.prototype.ownsTarget=function(U){return U===this.visual||U===this.visual.childNodes[0]||U===this.visual.childNodes[1]},ee}(),u=function(){function ee(){}return ee.toITransformMatrix=function(U){return{a:U.a,b:U.b,c:U.c,d:U.d,e:U.e,f:U.f}},ee.toSVGMatrix=function(U,K){return U.a=K.a,U.b=K.b,U.c=K.c,U.d=K.d,U.e=K.e,U.f=K.f,U},ee}(),w=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.left=0,te.top=0,te.width=0,te.height=0,te.defaultSize={x:50,y:20},te.offsetX=0,te.offsetY=0,te.rotationAngle=0,te.CB_DISTANCE=10,te._suppressMarkerCreateEvent=!1,te.container.transform.baseVal.appendItem(y.createTransform()),te.setupControlBox(),te}return E(U,ee),Object.defineProperty(U.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"visual",{get:function(){return this._visual},set:function(K){this._visual=K;var X=y.createTransform();this._visual.transform.baseVal.appendItem(X)},enumerable:!1,configurable:!0}),U.prototype.ownsTarget=function(K){return!!ee.prototype.ownsTarget.call(this,K)||!!(this.controlGrips.findGripByVisual(K)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(K))},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.state==="new"&&(this.left=K.x,this.top=K.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Q=this.unrotatePoint(K);if(this.manipulationStartX=Q.x,this.manipulationStartY=Q.y,this.offsetX=Q.x-this.left,this.offsetY=Q.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(X),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(X)){this.activeGrip=this.rotatorGrip;var te=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=te.x-this.width/2,this.top=te.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ae=this.container.transform.baseVal.getItem(0);ae.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ae,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},U.prototype.pointerUp=function(K){var X=this.state;ee.prototype.pointerUp.call(this,K),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(K),this._state="select",X==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},U.prototype.moveVisual=function(K){this.visual.style.transform="translate("+K.x+"px, "+K.y+"px)"},U.prototype.manipulate=function(K){var X=this.unrotatePoint(K);this.state==="creating"?this.resize(K):this.state==="move"?(this.left=this.manipulationStartLeft+(X.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(X.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(X):this.state==="rotate"&&this.rotate(K)},U.prototype.resize=function(K){var X=this.manipulationStartLeft,Q=this.manipulationStartWidth,te=this.manipulationStartTop,ae=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:X=this.manipulationStartLeft+K.x-this.manipulationStartX,Q=this.manipulationStartWidth+this.manipulationStartLeft-X;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Q=this.manipulationStartWidth+K.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:te=this.manipulationStartTop+K.y-this.manipulationStartY,ae=this.manipulationStartHeight+this.manipulationStartTop-te;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ae=this.manipulationStartHeight+K.y-this.manipulationStartY}Q>=0?(this.left=X,this.width=Q):(this.left=X+Q,this.width=-Q),ae>=0?(this.top=te,this.height=ae):(this.top=te+ae,this.height=-ae),this.setSize()},U.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},U.prototype.rotate=function(K){if(Math.abs(K.x-this.centerX)>.1){var X=Math.sign(K.x-this.centerX);this.rotationAngle=180*Math.atan((K.y-this.centerY)/(K.x-this.centerX))/Math.PI+90*X,this.applyRotation()}},U.prototype.applyRotation=function(){var K=this.container.transform.baseVal.getItem(0);K.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(K,0)},U.prototype.rotatePoint=function(K){if(this.rotationAngle===0)return K;var X=this.container.getCTM(),Q=y.createPoint(K.x,K.y);return{x:(Q=Q.matrixTransform(X)).x,y:Q.y}},U.prototype.unrotatePoint=function(K){if(this.rotationAngle===0)return K;var X=this.container.getCTM();X=X.inverse();var Q=y.createPoint(K.x,K.y);return{x:(Q=Q.matrixTransform(X)).x,y:Q.y}},U.prototype.select=function(){ee.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},U.prototype.deselect=function(){ee.prototype.deselect.call(this),this.controlBox.style.display="none"},U.prototype.setupControlBox=function(){this.controlBox=y.createGroup();var K=y.createTransform();K.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(K),this.container.appendChild(this.controlBox),this.controlRect=y.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=y.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 h,this.addControlGrips(),this.controlBox.style.display="none"},U.prototype.adjustControlBox=function(){var K=this.controlBox.transform.baseVal.getItem(0);K.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(K,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()},U.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()},U.prototype.createGrip=function(){var K=new s;return K.visual.transform.baseVal.appendItem(y.createTransform()),this.controlBox.appendChild(K.visual),K},U.prototype.positionGrips=function(){var K=this.controlGrips.topLeft.GRIP_SIZE,X=-K/2,Q=X,te=(this.width+this.CB_DISTANCE)/2-K/2,ae=(this.height+this.CB_DISTANCE)/2-K/2,re=this.height+this.CB_DISTANCE-K/2,$=this.width+this.CB_DISTANCE-K/2;this.positionGrip(this.controlGrips.topLeft.visual,X,Q),this.positionGrip(this.controlGrips.topCenter.visual,te,Q),this.positionGrip(this.controlGrips.topRight.visual,$,Q),this.positionGrip(this.controlGrips.centerLeft.visual,X,ae),this.positionGrip(this.controlGrips.centerRight.visual,$,ae),this.positionGrip(this.controlGrips.bottomLeft.visual,X,re),this.positionGrip(this.controlGrips.bottomCenter.visual,te,re),this.positionGrip(this.controlGrips.bottomRight.visual,$,re),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,te,Q-3*this.CB_DISTANCE)},U.prototype.positionGrip=function(K,X,Q){var te=K.transform.baseVal.getItem(0);te.setTranslate(X,Q),K.transform.baseVal.replaceItem(te,0)},U.prototype.hideControlBox=function(){this.controlBox.style.display="none"},U.prototype.showControlBox=function(){this.controlBox.style.display=""},U.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:u.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:u.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ee.prototype.getState.call(this))},U.prototype.restoreState=function(K){ee.prototype.restoreState.call(this,K);var X=K;this.left=X.left,this.top=X.top,this.width=X.width,this.height=X.height,this.rotationAngle=X.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(u.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,X.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(u.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,X.containerTransformMatrix))},U.prototype.scale=function(K,X){ee.prototype.scale.call(this,K,X);var Q=this.rotatePoint({x:this.left,y:this.top}),te=this.unrotatePoint({x:Q.x*K,y:Q.y*X});this.left=te.x,this.top=te.y,this.width=this.width*K,this.height=this.height*X,this.adjustControlBox()},U}(d),x=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.fillColor="transparent",te.strokeColor="transparent",te.strokeWidth=0,te.strokeDasharray="",te.opacity=1,te.setStrokeColor=te.setStrokeColor.bind(te),te.setFillColor=te.setFillColor.bind(te),te.setStrokeWidth=te.setStrokeWidth.bind(te),te.setStrokeDasharray=te.setStrokeDasharray.bind(te),te.createVisual=te.createVisual.bind(te),te}return E(U,ee),U.prototype.ownsTarget=function(K){return!(!ee.prototype.ownsTarget.call(this,K)&&K!==this.visual)},U.prototype.createVisual=function(){this.visual=y.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)},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.state==="new"&&(this.createVisual(),this.moveVisual(K),this._state="creating")},U.prototype.manipulate=function(K){ee.prototype.manipulate.call(this,K)},U.prototype.resize=function(K){ee.prototype.resize.call(this,K),this.setSize()},U.prototype.setSize=function(){ee.prototype.setSize.call(this),y.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},U.prototype.pointerUp=function(K){ee.prototype.pointerUp.call(this,K),this.setSize()},U.prototype.setStrokeColor=function(K){this.strokeColor=K,this.visual&&y.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(K),this.stateChanged()},U.prototype.setFillColor=function(K){this.fillColor=K,this.visual&&y.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},U.prototype.setStrokeWidth=function(K){this.strokeWidth=K,this.visual&&y.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},U.prototype.setStrokeDasharray=function(K){this.strokeDasharray=K,this.visual&&y.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},U.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ee.prototype.getState.call(this))},U.prototype.restoreState=function(K){var X=K;this.fillColor=X.fillColor,this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.opacity=X.opacity,this.createVisual(),ee.prototype.restoreState.call(this,K),this.setSize()},U.prototype.scale=function(K,X){ee.prototype.scale.call(this,K,X),this.setSize()},U.title="Rectangle marker",U}(w),b=function(ee){function U(K,X,Q,te){var ae=ee.call(this,K,te||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ae.widths=[],ae.widthBoxes=[],ae.widths=X,ae.currentWidth=Q,ae.setCurrentWidth=ae.setCurrentWidth.bind(ae),ae}return E(U,ee),U.prototype.getUi=function(){var K=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",this.widths.forEach(function(Q){var te=document.createElement("div");te.style.display="flex",te.style.flexGrow="2",te.style.alignItems="center",te.style.justifyContent="space-between",te.style.padding="5px",te.style.borderWidth="2px",te.style.borderStyle="solid",te.style.borderColor=Q===K.currentWidth?K.uiStyleSettings.toolboxAccentColor:"transparent",te.addEventListener("click",function(){K.setCurrentWidth(Q,te)}),X.appendChild(te);var ae=document.createElement("div");ae.innerText=Q.toString(),ae.style.marginRight="5px",te.appendChild(ae);var re=document.createElement("div");re.style.minHeight="20px",re.style.flexGrow="2",re.style.display="flex",re.style.alignItems="center";var $=document.createElement("hr");$.style.minWidth="20px",$.style.border="0px",$.style.borderTop=Q+"px solid "+K.uiStyleSettings.toolboxColor,$.style.flexGrow="2",re.appendChild($),te.appendChild(re),K.widthBoxes.push(te)}),X},U.prototype.setCurrentWidth=function(K,X){var Q=this;this.currentWidth=K,this.widthBoxes.forEach(function(te){te.style.borderColor=te===X?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},U}(o),P=function(ee){function U(K,X,Q,te){var ae=ee.call(this,K,te||'<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 ae.styles=[],ae.styleBoxes=[],ae.styles=X,ae.currentStyle=Q,ae.setCurrentStyle=ae.setCurrentStyle.bind(ae),ae}return E(U,ee),U.prototype.getUi=function(){var K=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",this.styles.forEach(function(Q){var te=document.createElement("div");te.style.display="flex",te.style.alignItems="center",te.style.justifyContent="space-between",te.style.padding="5px",te.style.borderWidth="2px",te.style.borderStyle="solid",te.style.overflow="hidden",te.style.maxWidth=100/K.styles.length-5+"%",te.style.borderColor=Q===K.currentStyle?K.uiStyleSettings.toolboxAccentColor:"transparent",te.addEventListener("click",function(){K.setCurrentStyle(Q,te)}),X.appendChild(te);var ae=document.createElement("div");ae.style.minHeight="20px",ae.style.flexGrow="2",ae.style.overflow="hidden";var re=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+K.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Q!==""?'stroke-dasharray="'+Q+'"':"")+` />
</svg>`;ae.innerHTML=re,te.appendChild(ae),K.styleBoxes.push(te)}),X},U.prototype.setCurrentStyle=function(K,X){var Q=this;this.currentStyle=K,this.styleBoxes.forEach(function(te){te.style.borderColor=te===X?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},U}(o),R=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.strokeColor=Q.defaultColor,te.strokeWidth=Q.defaultStrokeWidth,te.strokeDasharray=Q.defaultStrokeDasharray,te.strokePanel=new l("Line color",Q.defaultColorSet,Q.defaultColor),te.strokePanel.onColorChanged=te.setStrokeColor,te.strokeWidthPanel=new b("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),te.strokeWidthPanel.onWidthChanged=te.setStrokeWidth,te.strokeStylePanel=new P("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),te.strokeStylePanel.onStyleChanged=te.setStrokeDasharray,te}return E(U,ee),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=ee.prototype.getState.call(this);return K.typeName=U.typeName,K},U.typeName="FrameMarker",U.title="Frame marker",U.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',U}(x),C=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},S=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.x1=0,te.y1=0,te.x2=0,te.y2=0,te.defaultLength=50,te.manipulationStartX=0,te.manipulationStartY=0,te.manipulationStartX1=0,te.manipulationStartY1=0,te.manipulationStartX2=0,te.manipulationStartY2=0,te.setupControlBox(),te}return E(U,ee),U.prototype.ownsTarget=function(K){return!!ee.prototype.ownsTarget.call(this,K)||!(!this.grip1.ownsTarget(K)&&!this.grip2.ownsTarget(K))},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.manipulationStartX=K.x,this.manipulationStartY=K.y,this.state==="new"&&(this.x1=K.x,this.y1=K.y,this.x2=K.x,this.y2=K.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(X)?this.activeGrip=this.grip1:this.grip2.ownsTarget(X)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},U.prototype.pointerUp=function(K){var X=this.state;ee.prototype.pointerUp.call(this,K),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(K),this._state="select",X==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},U.prototype.adjustVisual=function(){},U.prototype.manipulate=function(K){this.state==="creating"?this.resize(K):this.state==="move"?(this.x1=this.manipulationStartX1+K.x-this.manipulationStartX,this.y1=this.manipulationStartY1+K.y-this.manipulationStartY,this.x2=this.manipulationStartX2+K.x-this.manipulationStartX,this.y2=this.manipulationStartY2+K.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(K)},U.prototype.resize=function(K){switch(this.activeGrip){case this.grip1:this.x1=K.x,this.y1=K.y;break;case this.grip2:case void 0:this.x2=K.x,this.y2=K.y}this.adjustVisual(),this.adjustControlBox()},U.prototype.select=function(){ee.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},U.prototype.deselect=function(){ee.prototype.deselect.call(this),this.controlBox.style.display="none"},U.prototype.setupControlBox=function(){this.controlBox=y.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},U.prototype.adjustControlBox=function(){this.positionGrips()},U.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},U.prototype.createGrip=function(){var K=new s;return K.visual.transform.baseVal.appendItem(y.createTransform()),this.controlBox.appendChild(K.visual),K},U.prototype.positionGrips=function(){var K=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-K/2,this.y1-K/2),this.positionGrip(this.grip2.visual,this.x2-K/2,this.y2-K/2)},U.prototype.positionGrip=function(K,X,Q){var te=K.transform.baseVal.getItem(0);te.setTranslate(X,Q),K.transform.baseVal.replaceItem(te,0)},U.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ee.prototype.getState.call(this))},U.prototype.restoreState=function(K){ee.prototype.restoreState.call(this,K);var X=K;this.x1=X.x1,this.y1=X.y1,this.x2=X.x2,this.y2=X.y2},U.prototype.scale=function(K,X){ee.prototype.scale.call(this,K,X),this.x1=this.x1*K,this.y1=this.y1*X,this.x2=this.x2*K,this.y2=this.y2*X,this.adjustVisual(),this.adjustControlBox()},U}(d),_=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.strokeColor="transparent",te.strokeWidth=0,te.strokeDasharray="",te.setStrokeColor=te.setStrokeColor.bind(te),te.setStrokeWidth=te.setStrokeWidth.bind(te),te.setStrokeDasharray=te.setStrokeDasharray.bind(te),te.strokeColor=Q.defaultColor,te.strokeWidth=Q.defaultStrokeWidth,te.strokeDasharray=Q.defaultStrokeDasharray,te.strokePanel=new l("Line color",Q.defaultColorSet,Q.defaultColor),te.strokePanel.onColorChanged=te.setStrokeColor,te.strokeWidthPanel=new b("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),te.strokeWidthPanel.onWidthChanged=te.setStrokeWidth,te.strokeStylePanel=new P("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),te.strokeStylePanel.onStyleChanged=te.setStrokeDasharray,te}return E(U,ee),U.prototype.ownsTarget=function(K){return!(!ee.prototype.ownsTarget.call(this,K)&&K!==this.visual&&K!==this.selectorLine&&K!==this.visibleLine)},U.prototype.createVisual=function(){this.visual=y.createGroup(),this.selectorLine=y.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=y.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)},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},U.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()),y.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),y.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),y.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},U.prototype.setStrokeColor=function(K){this.strokeColor=K,this.adjustVisual(),this.colorChanged(K)},U.prototype.setStrokeWidth=function(K){this.strokeWidth=K,this.adjustVisual()},U.prototype.setStrokeDasharray=function(K){this.strokeDasharray=K,this.adjustVisual(),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ee.prototype.getState.call(this));return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){ee.prototype.restoreState.call(this,K);var X=K;this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.createVisual(),this.adjustVisual()},U.typeName="LineMarker",U.title="Line marker",U.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',U}(S),A=function(ee){function U(K,X,Q,te){var ae=ee.call(this,K,te||'<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 ae.fonts=[],ae.fontBoxes=[],ae.fonts=X,ae.currentFont=Q,ae.setCurrentFont=ae.setCurrentFont.bind(ae),ae}return E(U,ee),U.prototype.getUi=function(){var K=this,X=document.createElement("div");return X.style.overflow="hidden",X.style.flexGrow="2",this.fonts.forEach(function(Q){var te=document.createElement("div");te.style.display="inline-block",te.style.alignItems="center",te.style.justifyContent="space-between",te.style.padding="5px",te.style.borderWidth="2px",te.style.borderStyle="solid",te.style.overflow="hidden",te.style.maxWidth=100/K.fonts.length-5+"%",te.style.borderColor=Q===K.currentFont?K.uiStyleSettings.toolboxAccentColor:"transparent",te.addEventListener("click",function(){K.setCurrentFont(Q,te)}),X.appendChild(te);var ae=document.createElement("div");ae.style.display="flex",ae.style.minHeight="20px",ae.style.flexGrow="2",ae.style.fontFamily=Q,ae.style.overflow="hidden";var re=document.createElement("div");re.style.whiteSpace="nowrap",re.style.overflow="hidden",re.style.textOverflow="ellipsis",re.innerHTML="The quick brown fox jumps over the lazy dog",ae.appendChild(re),te.appendChild(ae),K.fontBoxes.push(te)}),X},U.prototype.setCurrentFont=function(K,X){var Q=this;this.currentFont=K,this.fontBoxes.forEach(function(te){te.style.borderColor=te===X?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},U}(o),j=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.color="transparent",te.padding=5,te.DEFAULT_TEXT="your text here",te.text=te.DEFAULT_TEXT,te.isMoved=!1,te.color=Q.defaultColor,te.fontFamily=Q.defaultFontFamily,te.defaultSize={x:100,y:30},te.setColor=te.setColor.bind(te),te.setFont=te.setFont.bind(te),te.renderText=te.renderText.bind(te),te.sizeText=te.sizeText.bind(te),te.textEditDivClicked=te.textEditDivClicked.bind(te),te.showTextEditor=te.showTextEditor.bind(te),te.setSize=te.setSize.bind(te),te.positionTextEditor=te.positionTextEditor.bind(te),te.colorPanel=new l("Color",Q.defaultColorSet,Q.defaultColor),te.colorPanel.onColorChanged=te.setColor,te.fontFamilyPanel=new A("Font",Q.defaultFontFamilies,Q.defaultFontFamily),te.fontFamilyPanel.onFontChanged=te.setFont,te}return E(U,ee),U.prototype.ownsTarget=function(K){if(ee.prototype.ownsTarget.call(this,K)||K===this.visual||K===this.textElement||K===this.bgRectangle)return!0;var X=!1;return this.textElement.childNodes.forEach(function(Q){Q===K&&(X=!0)}),X},U.prototype.createVisual=function(){this.visual=y.createGroup(),this.bgRectangle=y.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=y.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(y.createTransform()),this.textElement.transform.baseVal.appendItem(y.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.isMoved=!1,this.pointerDownPoint=K,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(K),this._state="creating")},U.prototype.renderText=function(){var K=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(X){K.textElement.appendChild(y.createTSpan(X.trim()===""?" ":X.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},U.prototype.getTextScale=function(){var K=this.textElement.getBBox(),X=1;if(K.width>0&&K.height>0){var Q=(1*this.width-this.width*this.padding*2/100)/K.width,te=(1*this.height-this.height*this.padding*2/100)/K.height;X=Math.min(Q,te)}return X},U.prototype.getTextPosition=function(K){var X=this.textElement.getBBox(),Q=0,te=0;return X.width>0&&X.height>0&&(Q=(this.width-X.width*K)/2,te=this.height/2-X.height*K/2),{x:Q,y:te}},U.prototype.sizeText=function(){var K=this.textElement.getBBox(),X=this.getTextScale(),Q=this.getTextPosition(X);Q.y-=K.y*X,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Q.x+"px, "+Q.y+"px) scale("+X+", "+X+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Q.x,Q.y),this.textElement.transform.baseVal.getItem(1).setScale(X,X))},U.prototype.manipulate=function(K){ee.prototype.manipulate.call(this,K),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(K.x-this.pointerDownPoint.x)>5||Math.abs(K.y-this.pointerDownPoint.y)>5)},U.prototype.resize=function(K){ee.prototype.resize.call(this,K),this.isMoved=!0,this.setSize(),this.sizeText()},U.prototype.setSize=function(){ee.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(y.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),y.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},U.prototype.pointerUp=function(K){var X=this.state;X==="creating"&&(this._suppressMarkerCreateEvent=!0),ee.prototype.pointerUp.call(this,K),this.setSize(),(X==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},U.prototype.showTextEditor=function(){var K=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(X){X.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var X=Number.parseFloat(K.textEditor.style.fontSize);K.textEditor.clientWidth>=Number.parseInt(K.textEditor.style.maxWidth)&&X>.9;)X-=.1,K.textEditor.style.fontSize=Math.max(X,.9)+"em"}),this.textEditor.addEventListener("keyup",function(X){X.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(X){if(X.clipboardData){var Q=X.clipboardData.getData("text"),te=window.getSelection();if(!te.rangeCount)return!1;te.deleteFromDocument(),te.getRangeAt(0).insertNode(document.createTextNode(Q)),X.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){K.textEditDivClicked(K.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},U.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var K=this.getTextScale(),X=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Q=this.textElement.getBBox(),te={x:Q.width*K,y:Q.height*K};X.x-=te.x/2,X.y-=te.y/2,this.textEditor.style.top=X.y+"px",this.textEditor.style.left=X.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-X.x+"px",this.textEditor.style.fontSize=Math.max(16*K,12)+"px",this.textElement.style.display="none"}},U.prototype.textEditDivClicked=function(K){this.text=K.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},U.prototype.select=function(){ee.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},U.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ee.prototype.deselect.call(this)},U.prototype.dblClick=function(K,X){ee.prototype.dblClick.call(this,K,X),this.showTextEditor()},U.prototype.setColor=function(K){this.textElement&&y.setAttributes(this.textElement,[["fill",K]]),this.color=K,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(K)},U.prototype.setFont=function(K){this.textElement&&y.setAttributes(this.textElement,[["font-family",K]]),this.fontFamily=K,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},U.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},U.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ee.prototype.getState.call(this));return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){var X=K;this.color=X.color,this.fontFamily=X.fontFamily,this.padding=X.padding,this.text=X.text,this.createVisual(),ee.prototype.restoreState.call(this,K),this.setSize()},U.prototype.scale=function(K,X){ee.prototype.scale.call(this,K,X),this.setSize(),this.sizeText(),this.positionTextEditor()},U.typeName="TextMarker",U.title="Text marker",U.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>',U}(w),I=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.color="transparent",te.lineWidth=3,te.drawing=!1,te.pixelRatio=1,te.color=Q.defaultColor,te.lineWidth=Q.defaultStrokeWidth,te.pixelRatio=Q.freehandPixelRatio,te.setColor=te.setColor.bind(te),te.addCanvas=te.addCanvas.bind(te),te.finishCreation=te.finishCreation.bind(te),te.setLineWidth=te.setLineWidth.bind(te),te.colorPanel=new l("Color",Q.defaultColorSet,Q.defaultColor),te.colorPanel.onColorChanged=te.setColor,te.lineWidthPanel=new b("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),te.lineWidthPanel.onWidthChanged=te.setLineWidth,te}return E(U,ee),U.prototype.ownsTarget=function(K){return!(!ee.prototype.ownsTarget.call(this,K)&&K!==this.visual&&K!==this.drawingImage)},U.prototype.createVisual=function(){this.visual=y.createGroup(),this.drawingImage=y.createImage(),this.visual.appendChild(this.drawingImage);var K=y.createTransform();this.visual.transform.baseVal.appendItem(K),this.addMarkerVisualToContainer(this.visual)},U.prototype.pointerDown=function(K,X){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(K.x,K.y),this.drawing=!0):ee.prototype.pointerDown.call(this,K,X)},U.prototype.manipulate=function(K){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(K.x,K.y),this.canvasContext.stroke()):ee.prototype.manipulate.call(this,K)},U.prototype.resize=function(K){ee.prototype.resize.call(this,K),y.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),y.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},U.prototype.pointerUp=function(K){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ee.prototype.pointerUp.call(this,K)},U.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)},U.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ee.prototype.select.call(this)},U.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ee.prototype.deselect.call(this)},U.prototype.finishCreation=function(){for(var K=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),X=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Q=X[0],te=X[1],ae=X[2],re=X[3],$=!1,Z=0;Z<this.canvasElement.height;Z++)for(var fe=0;fe<this.canvasElement.width;fe++)K.data[Z*this.canvasElement.width*4+4*fe+3]>0&&($=!0,Z<te&&(te=Z),fe<Q&&(Q=fe),Z>re&&(re=Z),fe>ae&&(ae=fe));if($){this.left=Q/this.pixelRatio,this.top=te/this.pixelRatio,this.width=(ae-Q)/this.pixelRatio,this.height=(re-te)/this.pixelRatio;var me=document.createElement("canvas");me.width=ae-Q,me.height=re-te,me.getContext("2d").putImageData(this.canvasContext.getImageData(Q,te,ae-Q,re-te),0,0),this.drawingImgUrl=me.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},U.prototype.setDrawingImage=function(){y.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),y.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},U.prototype.setColor=function(K){this.color=K,this.colorChanged(K)},U.prototype.setLineWidth=function(K){this.lineWidth=K},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=Object.assign({drawingImgUrl:this.drawingImgUrl},ee.prototype.getState.call(this));return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){this.createVisual(),ee.prototype.restoreState.call(this,K),this.drawingImgUrl=K.drawingImgUrl,this.setDrawingImage()},U.prototype.scale=function(K,X){ee.prototype.scale.call(this,K,X),this.setDrawingImage()},U.typeName="FreehandMarker",U.title="Freehand marker",U.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>',U}(w),k=function(ee){function U(K,X,Q){var te=ee.call(this,K,Q||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return te.typeBoxes=[],te.currentType=X,te.setCurrentType=te.setCurrentType.bind(te),te}return E(U,ee),U.prototype.getUi=function(){var K=this,X=document.createElement("div");X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2";for(var Q=function(re){var $="both";switch(re){case 0:$="both";break;case 1:$="start";break;case 2:$="end";break;case 3:$="none"}var Z=document.createElement("div");if(Z.style.display="flex",Z.style.flexGrow="2",Z.style.alignItems="center",Z.style.justifyContent="space-between",Z.style.padding="5px",Z.style.borderWidth="2px",Z.style.borderStyle="solid",Z.style.borderColor=$===te.currentType?te.uiStyleSettings.toolboxAccentColor:"transparent",Z.addEventListener("click",function(){K.setCurrentType($,Z)}),X.appendChild(Z),$==="both"||$==="start"){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.minHeight="20px",fe.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="`+(te.uiStyleSettings!==void 0?te.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,fe.style.marginLeft="5px",Z.appendChild(fe)}var me=document.createElement("div");me.style.display="flex",me.style.alignItems="center",me.style.minHeight="20px",me.style.flexGrow="2";var Oe=document.createElement("hr");if(Oe.style.minWidth="20px",Oe.style.border="0px",Oe.style.borderTop="3px solid "+(te.uiStyleSettings!==void 0?te.uiStyleSettings.toolboxColor:"#eeeeee"),Oe.style.flexGrow="2",me.appendChild(Oe),Z.appendChild(me),$==="both"||$==="end"){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.minHeight="20px",He.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="`+(te.uiStyleSettings!==void 0?te.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,He.style.marginRight="5px",Z.appendChild(He)}te.typeBoxes.push(Z)},te=this,ae=0;ae<4;ae++)Q(ae);return X},U.prototype.setCurrentType=function(K,X){var Q=this;this.currentType=K,this.typeBoxes.forEach(function(te){te.style.borderColor=te===X?Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},U}(o),J=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.arrowType="end",te.arrowBaseHeight=10,te.arrowBaseWidth=10,te.getArrowPoints=te.getArrowPoints.bind(te),te.setArrowType=te.setArrowType.bind(te),te.arrowTypePanel=new k("Arrow type","end"),te.arrowTypePanel.onArrowTypeChanged=te.setArrowType,te}return E(U,ee),U.prototype.ownsTarget=function(K){return!(!ee.prototype.ownsTarget.call(this,K)&&K!==this.arrow1&&K!==this.arrow2)},U.prototype.getArrowPoints=function(K,X){var Q=this.arrowBaseWidth+2*this.strokeWidth,te=this.arrowBaseHeight+2*this.strokeWidth;return K-Q/2+","+(X+te/2)+" "+K+","+(X-te/2)+" "+(K+Q/2)+","+(X+te/2)},U.prototype.createTips=function(){this.arrow1=y.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(y.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=y.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(y.createTransform()),this.visual.appendChild(this.arrow2)},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.state==="creating"&&this.createTips()},U.prototype.adjustVisual=function(){if(ee.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",y.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),y.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var K=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),X=this.arrow1.transform.baseVal.getItem(0);X.setRotate(K,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(X,0);var Q=this.arrow2.transform.baseVal.getItem(0);Q.setRotate(K+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Q,0)}},U.prototype.setArrowType=function(K){this.arrowType=K,this.adjustVisual(),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=Object.assign({arrowType:this.arrowType},ee.prototype.getState.call(this));return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){ee.prototype.restoreState.call(this,K);var X=K;this.arrowType=X.arrowType,this.createTips(),this.adjustVisual()},U.typeName="ArrowMarker",U.title="Arrow marker",U.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',U}(_),G=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.fillColor=Q.defaultFillColor,te.strokeWidth=0,te.fillPanel=new l("Color",Q.defaultColorSet,Q.defaultFillColor),te.fillPanel.onColorChanged=te.setFillColor,te}return E(U,ee),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=ee.prototype.getState.call(this);return K.typeName=U.typeName,K},U.typeName="CoverMarker",U.title="Cover marker",U.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',U}(x),D=function(ee){function U(K,X,Q,te){var ae=ee.call(this,K,te||'<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 ae.opacities=[],ae.opacityBoxes=[],ae.opacities=X,ae.currentOpacity=Q,ae.setCurrentOpacity=ae.setCurrentOpacity.bind(ae),ae}return E(U,ee),U.prototype.getUi=function(){var K=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",X.style.justifyContent="space-between",this.opacities.forEach(function(Q){var te=document.createElement("div");te.style.display="flex",te.style.alignItems="center",te.style.justifyContent="center",te.style.padding="5px",te.style.borderWidth="2px",te.style.borderStyle="solid",te.style.borderColor=Q===K.currentOpacity?K.uiStyleSettings.toolboxAccentColor:"transparent",te.addEventListener("click",function(){K.setCurrentOpacity(Q,te)}),X.appendChild(te);var ae=document.createElement("div");ae.innerText=100*Q+"%",te.appendChild(ae),K.opacityBoxes.push(te)}),X},U.prototype.setCurrentOpacity=function(K,X){var Q=this;this.currentOpacity=K,this.opacityBoxes.forEach(function(te){te.style.borderColor=te===X?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},U}(o),H=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.setOpacity=te.setOpacity.bind(te),te.fillColor=Q.defaultHighlightColor,te.strokeWidth=0,te.opacity=Q.defaultHighlightOpacity,te.fillPanel=new l("Color",Q.defaultColorSet,te.fillColor),te.fillPanel.onColorChanged=te.setFillColor,te.opacityPanel=new D("Opacity",Q.defaultOpacitySteps,te.opacity),te.opacityPanel.onOpacityChanged=te.setOpacity,te}return E(U,ee),U.prototype.setOpacity=function(K){this.opacity=K,this.visual&&y.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=ee.prototype.getState.call(this);return K.typeName=U.typeName,K},U.typeName="HighlightMarker",U.title="Highlight marker",U.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>',U}(G),W='<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>',L=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.bgColor="transparent",te.tipPosition={x:0,y:0},te.tipBase1Position={x:0,y:0},te.tipBase2Position={x:0,y:0},te.tipMoving=!1,te.color=Q.defaultStrokeColor,te.bgColor=Q.defaultFillColor,te.fontFamily=Q.defaultFontFamily,te.defaultSize={x:100,y:30},te.setBgColor=te.setBgColor.bind(te),te.getTipPoints=te.getTipPoints.bind(te),te.positionTip=te.positionTip.bind(te),te.setTipPoints=te.setTipPoints.bind(te),te.colorPanel=new l("Text color",Q.defaultColorSet,te.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>'),te.colorPanel.onColorChanged=te.setColor,te.bgColorPanel=new l("Fill color",Q.defaultColorSet,te.bgColor,W),te.bgColorPanel.onColorChanged=te.setBgColor,te.fontFamilyPanel=new A("Font",Q.defaultFontFamilies,Q.defaultFontFamily),te.fontFamilyPanel.onFontChanged=te.setFont,te.tipGrip=new s,te.tipGrip.visual.transform.baseVal.appendItem(y.createTransform()),te.controlBox.appendChild(te.tipGrip.visual),te}return E(U,ee),U.prototype.ownsTarget=function(K){return ee.prototype.ownsTarget.call(this,K)||this.tipGrip.ownsTarget(K)||this.tip===K},U.prototype.createTip=function(){y.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=y.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},U.prototype.pointerDown=function(K,X){this.state==="new"&&ee.prototype.pointerDown.call(this,K,X),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(X)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ee.prototype.pointerDown.call(this,K,X)},U.prototype.pointerUp=function(K){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ee.prototype.pointerUp.call(this,K);else{var X=this.state==="creating";ee.prototype.pointerUp.call(this,K),this.setTipPoints(X),this.positionTip()}},U.prototype.manipulate=function(K){if(this.tipMoving){var X=this.unrotatePoint(K);this.tipPosition={x:X.x-this.manipulationStartLeft,y:X.y-this.manipulationStartTop},this.positionTip()}else ee.prototype.manipulate.call(this,K)},U.prototype.setBgColor=function(K){this.bgRectangle&&this.tip&&(y.setAttributes(this.bgRectangle,[["fill",K]]),y.setAttributes(this.tip,[["fill",K]])),this.bgColor=K,this.fillColorChanged(K)},U.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},U.prototype.setTipPoints=function(K){K===void 0&&(K=!1);var X=Math.min(this.height/2,15),Q=this.height/5;K&&(this.tipPosition={x:X+Q/2,y:this.height+20});var te=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?te<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Q=this.width/5,X=Math.min(this.width/2,15),this.tipBase1Position={x:X,y:0},this.tipBase2Position={x:X+Q,y:0}):(this.tipBase1Position={x:0,y:X},this.tipBase2Position={x:0,y:X+Q}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?te<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Q=this.width/5,X=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-X-Q,y:0},this.tipBase2Position={x:this.width-X,y:0}):(this.tipBase1Position={x:this.width,y:X},this.tipBase2Position={x:this.width,y:X+Q}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?te<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Q=this.width/5,X=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-X-Q,y:this.height},this.tipBase2Position={x:this.width-X,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-X-Q},this.tipBase2Position={x:this.width,y:this.height-X}):te<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Q=this.width/5,X=Math.min(this.width/2,15),this.tipBase1Position={x:X,y:this.height},this.tipBase2Position={x:X+Q,y:this.height}):(this.tipBase1Position={x:0,y:this.height-X},this.tipBase2Position={x:0,y:this.height-X-Q})},U.prototype.resize=function(K){ee.prototype.resize.call(this,K),this.positionTip()},U.prototype.positionTip=function(){y.setAttributes(this.tip,[["points",this.getTipPoints()]]);var K=this.tipGrip.visual.transform.baseVal.getItem(0);K.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(K,0)},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),U.prototype.select=function(){this.positionTip(),ee.prototype.select.call(this)},U.prototype.getState=function(){var K=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ee.prototype.getState.call(this));return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){var X=K;this.bgColor=X.bgColor,this.tipPosition=X.tipPosition,ee.prototype.restoreState.call(this,K),this.createTip(),this.setTipPoints()},U.prototype.scale=function(K,X){ee.prototype.scale.call(this,K,X),this.tipPosition={x:this.tipPosition.x*K,y:this.tipPosition.y*X},this.positionTip()},U.typeName="CalloutMarker",U.title="Callout marker",U.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>',U}(j),z=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.fillColor="transparent",te.strokeColor="transparent",te.strokeWidth=0,te.strokeDasharray="",te.opacity=1,te.strokeColor=Q.defaultColor,te.strokeWidth=Q.defaultStrokeWidth,te.strokeDasharray=Q.defaultStrokeDasharray,te.fillColor=Q.defaultFillColor,te.setStrokeColor=te.setStrokeColor.bind(te),te.setFillColor=te.setFillColor.bind(te),te.setStrokeWidth=te.setStrokeWidth.bind(te),te.setStrokeDasharray=te.setStrokeDasharray.bind(te),te.setOpacity=te.setOpacity.bind(te),te.createVisual=te.createVisual.bind(te),te.strokePanel=new l("Line color",m(Q.defaultColorSet,["transparent"]),Q.defaultColor),te.strokePanel.onColorChanged=te.setStrokeColor,te.fillPanel=new l("Fill color",m(Q.defaultColorSet,["transparent"]),te.fillColor,W),te.fillPanel.onColorChanged=te.setFillColor,te.strokeWidthPanel=new b("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),te.strokeWidthPanel.onWidthChanged=te.setStrokeWidth,te.strokeStylePanel=new P("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),te.strokeStylePanel.onStyleChanged=te.setStrokeDasharray,te.opacityPanel=new D("Opacity",Q.defaultOpacitySteps,te.opacity),te.opacityPanel.onOpacityChanged=te.setOpacity,te}return E(U,ee),U.prototype.ownsTarget=function(K){return!(!ee.prototype.ownsTarget.call(this,K)&&K!==this.visual)},U.prototype.createVisual=function(){this.visual=y.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)},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.state==="new"&&(this.createVisual(),this.moveVisual(K),this._state="creating")},U.prototype.manipulate=function(K){ee.prototype.manipulate.call(this,K)},U.prototype.resize=function(K){ee.prototype.resize.call(this,K),this.setSize()},U.prototype.setSize=function(){ee.prototype.setSize.call(this),y.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},U.prototype.pointerUp=function(K){ee.prototype.pointerUp.call(this,K),this.setSize()},U.prototype.setStrokeColor=function(K){this.strokeColor=K,this.visual&&y.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(K),this.stateChanged()},U.prototype.setFillColor=function(K){this.fillColor=K,this.visual&&y.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(K),this.stateChanged()},U.prototype.setStrokeWidth=function(K){this.strokeWidth=K,this.visual&&y.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},U.prototype.setStrokeDasharray=function(K){this.strokeDasharray=K,this.visual&&y.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},U.prototype.setOpacity=function(K){this.opacity=K,this.visual&&y.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ee.prototype.getState.call(this));return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){var X=K;this.fillColor=X.fillColor,this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.opacity=X.opacity,this.createVisual(),ee.prototype.restoreState.call(this,K),this.setSize()},U.prototype.scale=function(K,X){ee.prototype.scale.call(this,K,X),this.setSize()},U.typeName="EllipseMarker",U.title="Ellipse marker",U.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>',U}(w),ie=function(ee){function U(K,X,Q){return ee.call(this,K,X,Q)||this}return E(U,ee),Object.defineProperty(U.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),U.prototype.ownsTarget=function(K){return!(!ee.prototype.ownsTarget.call(this,K)&&K!==this.tip1&&K!==this.tip2)},U.prototype.createTips=function(){this.tip1=y.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(y.createTransform()),this.visual.appendChild(this.tip1),this.tip2=y.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(y.createTransform()),this.visual.appendChild(this.tip2)},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.state==="creating"&&this.createTips()},U.prototype.adjustVisual=function(){if(ee.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(y.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()]]),y.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 K=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),X=this.tip1.transform.baseVal.getItem(0);X.setRotate(K,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(X,0);var Q=this.tip2.transform.baseVal.getItem(0);Q.setRotate(K+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Q,0)}},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=ee.prototype.getState.call(this);return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){ee.prototype.restoreState.call(this,K),this.createTips(),this.adjustVisual()},U.typeName="MeasurementMarker",U.title="Measurement marker",U.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>',U}(_),ce=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.strokePanel.colors=Q.defaultColorSet,te.fillColor="transparent",te}return E(U,ee),Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=ee.prototype.getState.call(this);return K.typeName=U.typeName,K},U.typeName="EllipseFrameMarker",U.title="Ellipse frame marker",U.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>',U}(z),ue=function(){function ee(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ee.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ee.prototype.addUndoStep=function(U){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(U)||(this.undoStack.push(U),JSON.stringify(this.lastRedoStep)!==JSON.stringify(U)&&this.redoStack.splice(0,this.redoStack.length))},ee.prototype.replaceLastUndoStep=function(U){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=U)},ee.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ee.prototype.undo=function(){if(this.undoStack.length>1){var U=this.undoStack.pop();return U!==void 0&&this.redoStack.push(U),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ee.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ee}(),xe=function(ee){function U(K,X,Q){var te=ee.call(this,K,X,Q)||this;return te.strokeColor="transparent",te.strokeWidth=0,te.strokeDasharray="",te.curveX=0,te.curveY=0,te.manipulationStartCurveX=0,te.manipulationStartCurveY=0,te.setStrokeColor=te.setStrokeColor.bind(te),te.setStrokeWidth=te.setStrokeWidth.bind(te),te.setStrokeDasharray=te.setStrokeDasharray.bind(te),te.positionGrips=te.positionGrips.bind(te),te.addControlGrips=te.addControlGrips.bind(te),te.adjustVisual=te.adjustVisual.bind(te),te.setupControlBox=te.setupControlBox.bind(te),te.resize=te.resize.bind(te),te.strokeColor=Q.defaultColor,te.strokeWidth=Q.defaultStrokeWidth,te.strokeDasharray=Q.defaultStrokeDasharray,te.strokePanel=new l("Line color",Q.defaultColorSet,Q.defaultColor),te.strokePanel.onColorChanged=te.setStrokeColor,te.strokeWidthPanel=new b("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),te.strokeWidthPanel.onWidthChanged=te.setStrokeWidth,te.strokeStylePanel=new P("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),te.strokeStylePanel.onStyleChanged=te.setStrokeDasharray,te}return E(U,ee),U.prototype.ownsTarget=function(K){return!(!ee.prototype.ownsTarget.call(this,K)&&K!==this.visual&&K!==this.selectorCurve&&K!==this.visibleCurve&&!this.curveGrip.ownsTarget(K))},U.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},U.prototype.createVisual=function(){this.visual=y.createGroup(),this.selectorCurve=y.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=y.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)},U.prototype.pointerDown=function(K,X){ee.prototype.pointerDown.call(this,K,X),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=K.x,this.curveY=K.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(X)&&(this.activeGrip=this.curveGrip,this._state="resize")},U.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),y.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),y.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),y.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},U.prototype.setupControlBox=function(){ee.prototype.setupControlBox.call(this),this.curveControlLine1=y.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=y.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)},U.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ee.prototype.addControlGrips.call(this)},U.prototype.positionGrips=function(){ee.prototype.positionGrips.call(this);var K=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-K/2,this.curveY-K/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()))},U.prototype.manipulate=function(K){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+K.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+K.y-this.manipulationStartY),ee.prototype.manipulate.call(this,K)},U.prototype.resize=function(K){this.activeGrip===this.curveGrip&&(this.curveX=K.x,this.curveY=K.y),ee.prototype.resize.call(this,K),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},U.prototype.setStrokeColor=function(K){this.strokeColor=K,this.adjustVisual(),this.colorChanged(K)},U.prototype.setStrokeWidth=function(K){this.strokeWidth=K,this.adjustVisual()},U.prototype.setStrokeDasharray=function(K){this.strokeDasharray=K,this.adjustVisual()},U.prototype.scale=function(K,X){this.curveX=this.curveX*K,this.curveY=this.curveY*X,ee.prototype.scale.call(this,K,X)},Object.defineProperty(U.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),U.prototype.getState=function(){var K=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ee.prototype.getState.call(this));return K.typeName=U.typeName,K},U.prototype.restoreState=function(K){ee.prototype.restoreState.call(this,K);var X=K;this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.curveX=X.curveX,this.curveY=X.curveY,this.createVisual(),this.adjustVisual()},U.typeName="CurveMarker",U.title="Curve marker",U.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>',U}(S),Te=function(){function ee(U,K){K===void 0&&(K=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=U,this.cancelable=K}return Object.defineProperty(ee.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ee.prototype.preventDefault=function(){this._defaultPrevented=!0},ee}(),de=function(ee){function U(K,X,Q){var te=ee.call(this,K,!1)||this;return te.dataUrl=X,te.state=Q,te}return E(U,ee),U}(Te),ve=function(ee){function U(K,X,Q){Q===void 0&&(Q=!1);var te=ee.call(this,K,Q)||this;return te.marker=X,te}return E(U,ee),U}(Te),_e=function(){function ee(){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 ee.prototype.addEventListener=function(U,K){this[U].push(K)},ee.prototype.removeEventListener=function(U,K){var X=this[U].indexOf(K);X>-1&&this[U].splice(X,1)},ee}(),le=function(){function ee(U){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new C,this._isOpen=!1,this.undoRedoManager=new ue,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 _e,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ee.instanceCounter++,this.styles=new f(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=U,this.targetRoot=document.body,this.width=U.clientWidth,this.height=U.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(ee.prototype,"ALL_MARKER_TYPES",{get:function(){return[R,I,J,j,ce,z,H,L,ie,G,_,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[R,I,J,j,z,H,L]},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"BASIC_MARKER_TYPES",{get:function(){return[R,I,J,j,H]},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(U){var K=this;this._availableMarkerTypes.splice(0),U.forEach(function(X){if(typeof X=="string"){var Q=K.ALL_MARKER_TYPES.find(function(te){return te.typeName===X});Q!==void 0&&K._availableMarkerTypes.push(Q)}else K._availableMarkerTypes.push(X)})},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(U){this._zoomLevel=U,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(ee.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ee.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),O.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ee.prototype.show=function(){var U=this;this.styles.styleSheetRoot===void 0&&e.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=e.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(K){return K(new Te(U))})},ee.prototype.render=function(){return T(this,void 0,void 0,function(){var U;return v(this,function(K){switch(K.label){case 0:return this.setCurrentMarker(),(U=new g).naturalSize=this.renderAtNaturalSize,U.imageType=this.renderImageType,U.imageQuality=this.renderImageQuality,U.markersOnly=this.renderMarkersOnly,U.width=this.renderWidth,U.height=this.renderHeight,[4,U.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return K.sent(),[4,U.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,K.sent()]}})})},ee.prototype.close=function(U){var K=this;if(U===void 0&&(U=!1),this.isOpen){var X=!1;U||this.eventListeners.beforeclose.forEach(function(Q){var te=new Te(K,!0);Q(te),te.defaultPrevented&&(X=!0)}),X||(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(Q){return Q(new Te(K))}),this.detachEvents(),this._isOpen=!1)}},ee.prototype.addMarkersToToolbar=function(){for(var U,K=[],X=0;X<arguments.length;X++)K[X]=arguments[X];(U=this._availableMarkerTypes).push.apply(U,K)},ee.prototype.addRenderEventListener=function(U){this.addEventListener("render",function(K){U(K.dataUrl,K.state)})},ee.prototype.removeRenderEventListener=function(U){},ee.prototype.addCloseEventListener=function(U){this.addEventListener("close",function(){U()})},ee.prototype.removeCloseEventListener=function(U){},ee.prototype.setupResizeObserver=function(){var U=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){U.resize(U.target.clientWidth,U.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return U.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ee.prototype.onPopupTargetResize=function(){var U=1*this.target.clientWidth/this.target.clientHeight,K=this.editorCanvas.clientWidth/U>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*U:this.editorCanvas.clientWidth,X=K<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/U;this.resize(K,X)},ee.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ee.prototype.resize=function(U,K){this._isResizing=!0;var X=U/this.imageWidth,Q=K/this.imageHeight;this.imageWidth=Math.round(U),this.imageHeight=Math.round(K),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(X,Q),this._isResizing=!1},ee.prototype.scaleMarkers=function(U,K){var X,Q=this;this._currentMarker&&this._currentMarker instanceof j?this._currentMarker.scale(U,K):(X=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(te){te!==Q._currentMarker&&te.scale(U,K)}),X!==void 0&&this.setCurrentMarker(X)},ee.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"},ee.prototype.setTopLeft=function(){var U=this.editingTarget.getBoundingClientRect(),K=this.editorCanvas.getBoundingClientRect();this.left=U.left-K.left,this.top=U.top-K.top},ee.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)},ee.prototype.addDefs=function(){for(var U,K=[],X=0;X<arguments.length;X++)K[X]=arguments[X];this.defs=y.createDefs(),this.addDefsToImage(),(U=this.defs).append.apply(U,K)},ee.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ee.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)},ee.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ee.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ee.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)},ee.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ee.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)},ee.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 U=document.createElement("a");U.href="https://markerjs.com/",U.target="_blank",U.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>',U.title="Powered by marker.js",U.style.display="grid",U.style.alignItems="center",U.style.justifyItems="center",U.style.padding="3px",U.style.width="20px",U.style.height="20px",this.logoUI.appendChild(U),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ee.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")},ee.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"},ee.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ee.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 U=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=U+"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 n(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 a(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ee.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ee.prototype.removeMarker=function(U){this.markerImage.removeChild(U.container),this.markers.indexOf(U)>-1&&this.markers.splice(this.markers.indexOf(U),1),U.dispose()},ee.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())},ee.prototype.toolbarButtonClicked=function(U,K){if(U==="marker"&&K!==void 0)this.createNewMarker(K);else if(U==="action")switch(K){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()}},ee.prototype.deleteSelectedMarker=function(){var U=this;if(this._currentMarker!==void 0){var K=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Q){var te=new ve(U,U._currentMarker,!0);Q(te),te.defaultPrevented&&(K=!0)}),!K){var X=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(Q){return Q(new ve(U,X))})}}},ee.prototype.clear=function(){var U=this,K=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ae){var re=new ve(U,void 0,!0);ae(re),re.defaultPrevented&&(K=!0)}),!K)){this.setCurrentMarker();for(var X=function(ae){var re=Q.markers[ae];Q.setCurrentMarker(Q.markers[ae]),Q._currentMarker.dispose(),Q.markerImage.removeChild(Q._currentMarker.container),Q.markers.splice(Q.markers.indexOf(Q._currentMarker),1),Q.eventListeners.markerdelete.forEach(function($){return $(new ve(U,re))})},Q=this,te=this.markers.length-1;te>=0;te--)X(te);this.addUndoStep()}},Object.defineProperty(ee.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ee.prototype.showNotesEditor=function(){var U;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=(U=this._currentMarker.notes)!==null&&U!==void 0?U:"",this.overlayContainer.appendChild(this.notesArea))},ee.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)},ee.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ee.prototype.addUndoStep=function(){var U=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var K=this.getState(),X=this.undoRedoManager.getLastUndoStep();if(!X||X.width===K.width&&X.height===K.height){var Q=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(K),Q<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(te){return te(new Te(U))})}else this.undoRedoManager.replaceLastUndoStep(K),this.eventListeners.statechange.forEach(function(te){return te(new Te(U))})}},ee.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ee.prototype.undoStep=function(){var U=this,K=this.undoRedoManager.undo();K!==void 0&&(this.restoreState(K),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(X){return X(new Te(U))}))},ee.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ee.prototype.redoStep=function(){var U=this,K=this.undoRedoManager.redo();K!==void 0&&(this.restoreState(K),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(X){return X(new Te(U))}))},ee.prototype.stepZoom=function(){var U=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=U<this.zoomSteps.length-1?this.zoomSteps[U+1]:this.zoomSteps[0]},ee.prototype.panTo=function(U){this.contentDiv.scrollBy({left:this.prevPanPoint.x-U.x,top:this.prevPanPoint.y-U.y}),this.prevPanPoint=U},ee.prototype.startRenderAndClose=function(){return T(this,void 0,void 0,function(){var U,K,X=this;return v(this,function(Q){switch(Q.label){case 0:return[4,this.render()];case 1:return U=Q.sent(),K=this.getState(),this.eventListeners.render.forEach(function(te){return te(new de(X,U,K))}),this.close(!0),[2]}})})},ee.prototype.getState=function(U){U===!0&&this.setCurrentMarker();var K={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(X){return K.markers.push(X.getState())}),K},ee.prototype.restoreState=function(U){var K=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);U.markers.forEach(function(X){var Q=K._availableMarkerTypes.find(function(ae){return ae.typeName===X.typeName});if(Q!==void 0){var te=K.addNewMarker(Q);te.restoreState(X),K.markers.push(te)}}),U.width&&U.height&&(U.width!==this.imageWidth||U.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/U.width,this.imageHeight/U.height),this.eventListeners.restorestate.forEach(function(X){return X(new Te(K))})},ee.prototype.addNewMarker=function(U){var K=y.createGroup();return this.markerImage.appendChild(K),new U(K,this.overlayContainer,this.settings)},ee.prototype.createNewMarker=function(U){var K,X=this;(K=typeof U=="string"?this._availableMarkerTypes.find(function(Q){return Q.typeName===U}):U)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(K),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(K.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Q){return Q(new ve(X,X._currentMarker))}))},ee.prototype.markerCreated=function(U){var K=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(U),this.setCurrentMarker(U),U instanceof I&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(I):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(X){return X(new ve(K,K._currentMarker))})},ee.prototype.colorChanged=function(U){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=U,this.settings.defaultStrokeColor=U)},ee.prototype.fillColorChanged=function(U){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=U)},ee.prototype.markerStateChanged=function(U){var K=this;this.eventListeners.markerchange.forEach(function(X){return X(new ve(K,U))})},ee.prototype.setCurrentMarker=function(U){var K=this;this._currentMarker!==U&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(X){return X(new ve(K,K._currentMarker))})),this._currentMarker=U,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(X){return X(new ve(K,K._currentMarker))}))},ee.prototype.onPointerDown=function(U){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||U.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var K=this.markers.find(function(X){return X.ownsTarget(U.target)});K!==void 0?(this.setCurrentMarker(K),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(U.clientX,U.clientY),U.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:U.clientX,y:U.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(U.clientX,U.clientY))},ee.prototype.onDblClick=function(U){if(this._isFocused||this.focus(),this.mode==="select"){var K=this.markers.find(function(X){return X.ownsTarget(U.target)});K!==void 0&&K!==this._currentMarker&&this.setCurrentMarker(K),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(U.clientX,U.clientY),U.target):this.setCurrentMarker()}},ee.prototype.onPointerMove=function(U){this.touchPoints!==1&&U.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||U.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(U.clientX,U.clientY)):this.zoomLevel>1&&this.panTo({x:U.clientX,y:U.clientY}))},ee.prototype.onPointerUp=function(U){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(U.clientX,U.clientY)),this.isDragging=!1,this.addUndoStep()},ee.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ee.prototype.onKeyUp=function(U){this._currentMarker===void 0||this.notesArea!==void 0||U.key!=="Delete"&&U.key!=="Backspace"||this.deleteSelectedMarker()},ee.prototype.clientToLocalCoordinates=function(U,K){var X=this.markerImage.getBoundingClientRect();return{x:(U-X.left)/this.zoomLevel,y:(K-X.top)/this.zoomLevel}},ee.prototype.onWindowResize=function(){this.positionUI()},ee.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var U=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=U+"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()},ee.prototype.addLicenseKey=function(U){O.addKey(U)},ee.prototype.addEventListener=function(U,K){this.eventListeners.addEventListener(U,K)},ee.prototype.removeEventListener=function(U,K){this.eventListeners.removeEventListener(U,K)},ee.prototype.renderState=function(U){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(U),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ee.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ee.prototype.focus=function(){var U=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(K){return K(new Te(U))}))},ee.prototype.blur=function(){var U=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(K){return K(new Te(U))}))},ee.instanceCounter=0,ee}()},Se0u:function(N,Y,i){},T8No:function(N,Y,i){"use strict";i.d(Y,"a",function(){return O}),i.d(Y,"e",function(){return g}),i.d(Y,"c",function(){return _}),i.d(Y,"b",function(){return A}),i.d(Y,"d",function(){return j}),i.d(Y,"f",function(){return J});var M=i("MNsG"),E=i("N0LK"),T=i("Cg/j");let v=M.k||"";const m=new Map;m.set("false",!1),m.set("true",!0),m.set("isMac",M.f),m.set("isLinux",M.d),m.set("isWindows",M.i),m.set("isWeb",M.h),m.set("isMacNative",M.f&&!M.h),m.set("isEdge",v.indexOf("Edg/")>=0),m.set("isFirefox",v.indexOf("Firefox")>=0),m.set("isChrome",v.indexOf("Chrome")>=0),m.set("isSafari",v.indexOf("Safari")>=0);const y=Object.prototype.hasOwnProperty;class O{static has(D){return c.create(D)}static equals(D,H){return n.create(D,H)}static regex(D,H){return b.create(D,H)}static not(D){return d.create(D)}static and(...D){return C.create(D,null)}static or(...D){return S.create(D,null,!0)}static deserialize(D,H=!1){return D?this._deserializeOrExpression(D,H):void 0}static _deserializeOrExpression(D,H){let W=D.split("||");return S.create(W.map(L=>this._deserializeAndExpression(L,H)),null,!0)}static _deserializeAndExpression(D,H){let W=D.split("&&");return C.create(W.map(L=>this._deserializeOne(L,H)),null)}static _deserializeOne(D,H){if(D=D.trim(),D.indexOf("!=")>=0){let W=D.split("!=");return l.create(W[0].trim(),this._deserializeValue(W[1],H))}if(D.indexOf("==")>=0){let W=D.split("==");return n.create(W[0].trim(),this._deserializeValue(W[1],H))}if(D.indexOf("=~")>=0){let W=D.split("=~");return b.create(W[0].trim(),this._deserializeRegexValue(W[1],H))}if(D.indexOf(" in ")>=0){let W=D.split(" in ");return a.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(D)){const W=D.split(">=");return u.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(D)){const W=D.split(">");return s.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(D)){const W=D.split("<=");return x.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(D)){const W=D.split("<");return w.create(W[0].trim(),W[1].trim())}return/^\!\s*/.test(D)?d.create(D.substr(1).trim()):c.create(D)}static _deserializeValue(D,H){if(D=D.trim(),D==="true")return!0;if(D==="false")return!1;let W=/^'([^']*)'$/.exec(D);return W?W[1].trim():D}static _deserializeRegexValue(D,H){if(Object(E.C)(D)){if(H)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let W=D.indexOf("/"),L=D.lastIndexOf("/");if(W===L||W<0){if(H)throw new Error(`bad regexp-value '${D}', missing /-enclosure`);return console.warn(`bad regexp-value '${D}', missing /-enclosure`),null}let z=D.slice(W+1,L),ie=D[L+1]==="i"?"i":"";try{return new RegExp(z,ie)}catch(ce){if(H)throw new Error(`bad regexp-value '${D}', parse error: ${ce}`);return console.warn(`bad regexp-value '${D}', parse error: ${ce}`),null}}}function g(D,H){const W=D?D.substituteConstants():void 0,L=H?H.substituteConstants():void 0;return!W&&!L?!0:!W||!L?!1:W.equals(L)}function e(D,H){return D.cmp(H)}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 c{constructor(D,H){this.key=D,this.negated=H,this.type=2}static create(D,H=null){const W=m.get(D);return typeof W=="boolean"?W?r.INSTANCE:f.INSTANCE:new c(D,H)}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=m.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=d.create(this.key,this)),this.negated}}class n{constructor(D,H,W){this.key=D,this.value=H,this.negated=W,this.type=4}static create(D,H,W=null){if(typeof H=="boolean")return H?c.create(D,W):d.create(D,W);const L=m.get(D);if(typeof L=="boolean"){const z=L?"true":"false";return H===z?r.INSTANCE:f.INSTANCE}return new n(D,H,W)}cmp(D){return D.type!==this.type?this.type-D.type:k(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=m.get(this.key);if(typeof D=="boolean"){const H=D?"true":"false";return this.value===H?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=l.create(this.key,this.value,this)),this.negated}}class a{constructor(D,H){this.key=D,this.valueKey=H,this.type=10,this.negated=null}static create(D,H){return new a(D,H)}cmp(D){return D.type!==this.type?this.type-D.type:k(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 H=D.getValue(this.valueKey),W=D.getValue(this.key);return Array.isArray(H)?H.indexOf(W)>=0:typeof W=="string"&&typeof H=="object"&&H!==null?y.call(H,W):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=o.create(this)),this.negated}}class o{constructor(D){this._actual=D,this.type=11}static create(D){return new o(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 l{constructor(D,H,W){this.key=D,this.value=H,this.negated=W,this.type=5}static create(D,H,W=null){if(typeof H=="boolean")return H?d.create(D,W):c.create(D,W);const L=m.get(D);if(typeof L=="boolean"){const z=L?"true":"false";return H===z?f.INSTANCE:r.INSTANCE}return new l(D,H,W)}cmp(D){return D.type!==this.type?this.type-D.type:k(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=m.get(this.key);if(typeof D=="boolean"){const H=D?"true":"false";return this.value===H?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 d{constructor(D,H){this.key=D,this.negated=H,this.type=3}static create(D,H=null){const W=m.get(D);return typeof W=="boolean"?W?f.INSTANCE:r.INSTANCE:new d(D,H)}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=m.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=c.create(this.key,this)),this.negated}}function h(D,H){if(typeof D=="string"){const W=parseFloat(D);isNaN(W)||(D=W)}return typeof D=="string"||typeof D=="number"?H(D):f.INSTANCE}class s{constructor(D,H,W){this.key=D,this.value=H,this.negated=W,this.type=12}static create(D,H,W=null){return h(H,L=>new s(D,L,W))}cmp(D){return D.type!==this.type?this.type-D.type:k(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=x.create(this.key,this.value,this)),this.negated}}class u{constructor(D,H,W){this.key=D,this.value=H,this.negated=W,this.type=13}static create(D,H,W=null){return h(H,L=>new u(D,L,W))}cmp(D){return D.type!==this.type?this.type-D.type:k(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(D,H,W){this.key=D,this.value=H,this.negated=W,this.type=14}static create(D,H,W=null){return h(H,L=>new w(D,L,W))}cmp(D){return D.type!==this.type?this.type-D.type:k(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 x{constructor(D,H,W){this.key=D,this.value=H,this.negated=W,this.type=15}static create(D,H,W=null){return h(H,L=>new x(D,L,W))}cmp(D){return D.type!==this.type?this.type-D.type:k(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 b{constructor(D,H){this.key=D,this.regexp=H,this.type=7,this.negated=null}static create(D,H){return new b(D,H)}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 H=this.regexp?this.regexp.source:"",W=D.regexp?D.regexp.source:"";return H<W?-1:H>W?1:0}equals(D){if(D.type===this.type){const H=this.regexp?this.regexp.source:"",W=D.regexp?D.regexp.source:"";return this.key===D.key&&H===W}return!1}substituteConstants(){return this}evaluate(D){let H=D.getValue(this.key);return this.regexp?this.regexp.test(H):!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 H=null;for(let W=0,L=D.length;W<L;W++){const z=D[W].substituteConstants();if(D[W]!==z&&H===null){H=[];for(let ie=0;ie<W;ie++)H[ie]=D[ie]}H!==null&&(H[W]=z)}return H===null?D:H}class C{constructor(D,H){this.expr=D,this.negated=H,this.type=6}static create(D,H){return C._normalizeArr(D,H)}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 H=0,W=this.expr.length;H<W;H++){const L=e(this.expr[H],D.expr[H]);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 H=0,W=this.expr.length;H<W;H++)if(!this.expr[H].equals(D.expr[H]))return!1;return!0}return!1}substituteConstants(){const D=R(this.expr);return D===this.expr?this:C.create(D,this.negated)}evaluate(D){for(let H=0,W=this.expr.length;H<W;H++)if(!this.expr[H].evaluate(D))return!1;return!0}static _normalizeArr(D,H){const W=[];let L=!1;for(const z of D){if(!z)continue;if(z.type===1){L=!0;continue}if(z.type===0)return f.INSTANCE;if(z.type===6){W.push(...z.expr);continue}W.push(z)}if(W.length===0&&L)return r.INSTANCE;if(W.length===0)return;if(W.length===1)return W[0];W.sort(e);for(let z=1;z<W.length;z++)W[z-1].equals(W[z])&&(W.splice(z,1),z--);if(W.length===1)return W[0];for(;W.length>1;){const z=W[W.length-1];if(z.type!==9)break;W.pop();const ie=W.pop(),ce=W.length===0,ue=S.create(z.expr.map(xe=>C.create([xe,ie],null)),null,ce);ue&&(W.push(ue),W.sort(e))}return W.length===1?W[0]:new C(W,H)}serialize(){return this.expr.map(D=>D.serialize()).join(" && ")}keys(){const D=[];for(let H of this.expr)D.push(...H.keys());return D}negate(){if(!this.negated){const D=[];for(let H of this.expr)D.push(H.negate());this.negated=S.create(D,this,!0)}return this.negated}}class S{constructor(D,H){this.expr=D,this.negated=H,this.type=9}static create(D,H,W){return S._normalizeArr(D,H,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 H=0,W=this.expr.length;H<W;H++){const L=e(this.expr[H],D.expr[H]);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 H=0,W=this.expr.length;H<W;H++)if(!this.expr[H].equals(D.expr[H]))return!1;return!0}return!1}substituteConstants(){const D=R(this.expr);return D===this.expr?this:S.create(D,this.negated,!1)}evaluate(D){for(let H=0,W=this.expr.length;H<W;H++)if(this.expr[H].evaluate(D))return!0;return!1}static _normalizeArr(D,H,W){let L=[],z=!1;if(D){for(let ie=0,ce=D.length;ie<ce;ie++){const ue=D[ie];if(!ue)continue;if(ue.type===0){z=!0;continue}if(ue.type===1)return r.INSTANCE;if(ue.type===9){L=L.concat(ue.expr);continue}L.push(ue)}if(L.length===0&&z)return f.INSTANCE;L.sort(e)}if(L.length===0)return;if(L.length===1)return L[0];for(let ie=1;ie<L.length;ie++)L[ie-1].equals(L[ie])&&(L.splice(ie,1),ie--);if(L.length===1)return L[0];if(W){for(let ie=0;ie<L.length;ie++)for(let ce=ie+1;ce<L.length;ce++)J(L[ie],L[ce])&&(L.splice(ce,1),ce--);if(L.length===1)return L[0]}return new S(L,H)}serialize(){return this.expr.map(D=>D.serialize()).join(" || ")}keys(){const D=[];for(let H of this.expr)D.push(...H.keys());return D}negate(){if(!this.negated){let D=[];for(let H of this.expr)D.push(H.negate());for(;D.length>1;){const H=D.shift(),W=D.shift(),L=[];for(const ie of G(H))for(const ce of G(W))L.push(C.create([ie,ce],null));const z=D.length===0;D.unshift(S.create(L,null,z))}this.negated=D[0]}return this.negated}}class _ extends c{constructor(D,H,W){super(D,null);this._defaultValue=H,typeof W=="object"?_._info.push(Object.assign(Object.assign({},W),{key:D})):W!==!0&&_._info.push({key:D,description:W,type:H!=null?typeof H:void 0})}static all(){return _._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)}}_._info=[];const A=Object(T.c)("contextKeyService"),j="setContext";function I(D,H){return D<H?-1:D>H?1:0}function k(D,H,W,L){return D<W?-1:D>W?1:H<L?-1:H>L?1:0}function J(D,H){if(H.type===6&&D.type!==9&&D.type!==6){for(const z of H.expr)if(D.equals(z))return!0}const W=D.negate(),L=G(W).concat(G(H));L.sort(e);for(let z=0;z<L.length;z++){const ie=L[z],ce=ie.negate();for(let ue=z+1;ue<L.length;ue++){const xe=L[ue];if(ce.equals(xe))return!0}}return!1}function G(D){return D.type===9?D.expr:[D]}},TGq3:function(N,Y,i){N.exports=i.p+"static/lockclose.365036e8.svg"},TXwP:function(N,Y,i){var M,E;(function(){var T;(function(){"use strict";var m=[,,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 a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(n))return!0;return!1},f.prototype.set_indent=function(n,a){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=a||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 a=n.lastIndexOf(`
`);a!==-1?this.__character_count=n.length-a: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,a){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)),a=a||"",n.indent_level>0&&(a=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}r.prototype.get_indent_size=function(n,a){var o=this.__base_string_length;return a=a||0,n<0&&(o=0),o+=n*this.__indent_size,o+=a,o},r.prototype.get_indent_string=function(n,a){var o=this.__base_string;return a=a||0,n<0&&(n=0,o=""),a+=n*this.__indent_size,this.__ensure_cache(a),o+=this.__cache[a],o},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,a=0,o="";this.__indent_size&&n>=this.__indent_size&&(a=Math.floor(n/this.__indent_size),n-=a*this.__indent_size,o=new Array(a+1).join(this.__indent_string)),n&&(o+=new Array(n+1).join(" ")),this.__cache.push(o)};function c(n,a){this.__indent_cache=new r(n,a),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()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(n,a){return this.__indent_cache.get_indent_string(n,a)},c.prototype.get_indent_size=function(n,a){return this.__indent_cache.get_indent_size(n,a)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.prototype.get_code=function(n){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
`);return n!==`
`&&(o=o.replace(/[\n]/g,n)),o},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(n,a){return n=n||0,a=a||0,this.next_line.set_indent(n,a),this.__lines.length>1?(this.current_line.set_indent(n,a),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(n){for(var a=0;a<n.newlines;a++)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},c.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()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(n){for(var a=this.__lines.length;n<a;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},c.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},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(n,a){for(var o=this.__lines.length-2;o>=0;){var l=this.__lines[o];if(l.is_empty())break;if(l.item(0).indexOf(n)!==0&&l.item(-1)!==a){this.__lines.splice(o+1,0,new f(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},e.exports.Output=c},,,,function(e){function f(n,a){this.raw_options=r(n,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}f.prototype._get_array=function(n,a){var o=this.raw_options[n],l=a||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(l=o.concat()):typeof o=="string"&&(l=o.split(/[^a-zA-Z0-9_\/\-]+/)),l},f.prototype._get_boolean=function(n,a){var o=this.raw_options[n],l=o===void 0?!!a:!!o;return l},f.prototype._get_characters=function(n,a){var o=this.raw_options[n],l=a||"";return typeof o=="string"&&(l=o.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),l},f.prototype._get_number=function(n,a){var o=this.raw_options[n];a=parseInt(a,10),isNaN(a)&&(a=0);var l=parseInt(o,10);return isNaN(l)&&(l=a),l},f.prototype._get_selection=function(n,a,o){var l=this._get_selection_list(n,a,o);if(l.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+a+`
You passed in: '`+this.raw_options[n]+"'");return l[0]},f.prototype._get_selection_list=function(n,a,o){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[a[0]],!this._is_valid_selection(o,a))throw new Error("Invalid Default Value!");var l=this._get_array(n,o);if(!this._is_valid_selection(l,a))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+a+`
You passed in: '`+this.raw_options[n]+"'");return l},f.prototype._is_valid_selection=function(n,a){return n.length&&a.length&&!n.some(function(o){return a.indexOf(o)===-1})};function r(n,a){var o={};n=c(n);var l;for(l in n)l!==a&&(o[l]=n[l]);if(a&&n[a])for(l in n[a])o[l]=n[a][l];return o}function c(n){var a={},o;for(o in n){var l=o.replace(/-/g,"_");a[l]=n[o]}return a}e.exports.Options=f,e.exports.normalizeOpts=c,e.exports.mergeOpts=r},,function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function r(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},r.prototype.peek=function(c){var n=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(n=this.__input.charAt(c)),n},r.prototype.__match=function(c,n){c.lastIndex=n;var a=c.exec(this.__input);return a&&!(f&&c.sticky)&&(a.index!==n&&(a=null)),a},r.prototype.test=function(c,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(c,n):!1},r.prototype.testChar=function(c,n){var a=this.peek(n);return c.lastIndex=0,a!==null&&c.test(a)},r.prototype.match=function(c){var n=this.__match(c,this.__position);return n?this.__position+=n[0].length:n=null,n},r.prototype.read=function(c,n,a){var o="",l;return c&&(l=this.match(c),l&&(o+=l[0])),n&&(l||!c)&&(o+=this.readUntil(n,a)),o},r.prototype.readUntil=function(c,n){var a="",o=this.__position;c.lastIndex=this.__position;var l=c.exec(this.__input);return l?(o=l.index,n&&(o+=l[0].length)):o=this.__input_length,a=this.__input.substring(this.__position,o),this.__position=o,a},r.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},r.prototype.get_regexp=function(c,n){var a=null,o="g";return n&&f&&(o="y"),typeof c=="string"&&c!==""?a=new RegExp(c,o):c&&(a=new RegExp(c.source,o)),a},r.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(c){var n=this.__position,a=this.readUntilAfter(c);return this.__position=n,a},r.prototype.lookBack=function(c){var n=this.__position-1;return n>=c.length&&this.__input.substring(n-c.length,n).toLowerCase()===c},e.exports.InputScanner=r},,,,,function(e){function f(r,c){r=typeof r=="string"?r:r.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+c,"g")}f.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(r);n;)c[n[1]]=n[2],n=this.__directive_pattern.exec(r);return c},f.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=f},,function(e,f,r){var c=r(16).Beautifier,n=r(17).Options;function a(o,l){var d=new c(o,l);return d.beautify()}e.exports=a,e.exports.defaultOptions=function(){return new n}},function(e,f,r){var c=r(17).Options,n=r(2).Output,a=r(8).InputScanner,o=r(13).Directives,l=new o(/\/\*/,/\*\//),d=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,s=/\s/,u=/(?:\s|\n)+/g,w=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,x=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function b(P,R){this._source_text=P||"",this._options=new c(R),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}b.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},b.prototype.eatWhitespace=function(P){for(var R=s.test(this._input.peek()),C=0;s.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
`&&((C===0||C<this._options.max_preserve_newlines)&&(C++,this._output.add_new_line(!0)));return R},b.prototype.foundNestedPseudoClass=function(){for(var P=0,R=1,C=this._input.peek(R);C;){if(C==="{")return!0;if(C==="(")P+=1;else if(C===")"){if(P===0)return!1;P-=1}else if(C===";"||C==="}")return!1;R++,C=this._input.peek(R)}return!1},b.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},b.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},b.prototype.indent=function(){this._indentLevel++},b.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,R=this._options.eol;R==="auto"&&(R=`
`,P&&d.test(P||"")&&(R=P.match(d)[0])),P=P.replace(h,`
`);var C=P.match(/^[\t ]*/)[0];this._output=new n(this._options,C),this._input=new a(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var S=0,_=!1,A=!1,j=!1,I=!1,k=!1,J=!1,G=this._ch,D=!1,H,W,L;H=this._input.read(u),W=H!=="",L=G,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),G=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var z=this._input.read(w),ie=l.get_directives(z);ie&&ie.ignore==="start"&&(z+=l.readIgnored(this._input)),this.print_string(z),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(x)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(W),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ce=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ce.match(/[ :]$/)&&(ce=this.eatString(": ").replace(/\s$/,""),this.print_string(ce),this._output.space_before_token=!0),ce=ce.replace(/\s$/,""),ce==="extend"?I=!0:ce==="import"&&(k=!0),ce in this.NESTED_AT_RULE?(this._nestedLevel+=1,ce in this.CONDITIONAL_GROUP_RULE&&(j=!0)):!_&&S===0&&ce.indexOf(":")!==-1&&(A=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(W),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")A&&(A=!1,this.outdent()),j?(j=!1,_=this._indentLevel>=this._nestedLevel):_=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&_&&(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),k=!1,I=!1,A&&(this.outdent(),A=!1),this.print_string(this._ch),_=!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 ue=0;ue<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;ue++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[ue])){D=!0;break}(_||j)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!I&&S===0?(this.print_string(":"),A||(A=!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 xe=L==='"'||L==="'";this.preserveSingleSpace(xe||W),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,S===0?(A&&(this.outdent(),A=!1),I=!1,k=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),S++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),S&&(S--,this.outdent()));else{var Te=!1;this._input.lookBack("with")&&(Te=!0),this.preserveSingleSpace(W||Te),this.print_string(this._ch),A&&L==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),J=!0):(this.eatWhitespace(),S++,this.indent())}else if(this._ch===")")S&&(S--,this.outdent()),J&&this._input.peek()===";"&&this._options.selector_separator_newline&&(J=!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&&(!A||J)&&S===0&&!k&&!I?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!A&&S===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(W),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 de=L==='"'||L==="'";this.preserveSingleSpace(de||W),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&D&&this._output.add_new_line()}var ve=this._output.get_code(R);return ve},e.exports.Beautifier=b},function(e,f,r){var c=r(6).Options;function n(a){c.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var o=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||o;var l=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var d=0;d<l.length;d++)l[d]!=="expand"?this.brace_style="collapse":this.brace_style=l[d]}n.prototype=new c,e.exports.Options=n}],y={};function O(e){var f=y[e];if(f!==void 0)return f.exports;var r=y[e]={exports:{}};return m[e](r,r.exports,O),r.exports}var g=O(15);T=g})();var v=T;!(M=[],E=function(){return{css_beautify:v}}.apply(Y,M),E!==void 0&&(N.exports=E))})()},UGPy:function(N,Y,i){N.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(N,Y,i){N.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},"Ufr+":function(N,Y){N.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACL0lEQVRIS72WvU9TURTAf4e+qBUritRXoYkaB0w0alz4B3RQExTSbjpooouiddGVxf0hTjKQ+MkANhiVwYTNwcHFRuNgdIHGYiMmVWnja6+5La8ttq99Vesd3/n4nXPuOec+ocHpu6nCecVJFCcUHBDo0eoK0gKvEZ76hNnFy7Lg5kbqCXrGVa8vzyhwVsBoFIQCG5jM+xhNj0jyd90agGmpQVHcQwg0clwjU2SUcDoVk8fVsjUAc0yNiMICOlpyXlEuKCGWuiLjzqcyoBg5xP/CueOzoGDIyaQI0DU3bN61XBa3NBUZ22CvvpMiwLTUbYHzf1gWDpmw9B2S3yoeFEykYnJBdCvaBT4265Z6cEMgNgBn9sPQNHz4ugZgGx3sltCYuojiVqvRd/th4jjsC0J0BhKf63gQLknIUs+AY60A+rfB3UEIboTIDLz65Go9J6alFgT6vAIOboeHp2CrH64+h6m37pYKFnUGWWB9tZrfAOso5Gy4Ng/ZfEl62ISpYQisgzsJuD7fNKxcXUCoE+JR2NUFiSU49wQ2GDAbBV3798tw5D7kVsENMDnXEoUDEI9AeDN8WYGsDb0B0FM0PA0va7ZOLcYpkesl7+wqQXZsqhh7LI1jMNe0TfdsKUGCnfDjJwxMQnqlae1LCrpNvQxafzc8isCDN3DjhTfneo0XB83rqtADlczAsu45D6e8Kv7LslvNon3r2sm4rQ9OGdLOJ9OBtPXRr26Qf/Hb8gvtaezbqqd4vgAAAABJRU5ErkJggg=="},UqFu:function(N,Y,i){"use strict";i.d(Y,"a",function(){return M});var M=function(T){var v=document.createElement("textarea");return v.value=T,v.value}},Vhoy:function(N,Y,i){"use strict";i.d(Y,"d",function(){return v}),i.d(Y,"e",function(){return m}),i.d(Y,"c",function(){return y}),i.d(Y,"b",function(){return O}),i.d(Y,"a",function(){return g});var M=i("MI8n");class E{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 E,v=T;function m(e,f){return new O(e,f)}function y(e){return e?e.replace(/\$\((.*?)\)/g,(f,r)=>` ${r} `).trim():""}class O{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(a){if(a instanceof O)return["codicon","codicon-"+a.id];const o=f.exec(a.id);if(!o)return r(O.error);let[,l,d]=o;const h=["codicon","codicon-"+l];return d&&h.push("codicon-modifier-"+d.substr(1)),h}e.asClassNameArray=r;function c(a){return r(a).join(" ")}e.asClassName=c;function n(a){return"."+r(a).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"})}(O||(O={}))},"VrN/":function(N,Y,i){(function(M,E){N.exports=E()})(this,function(){"use strict";var M=navigator.userAgent,E=navigator.platform,T=/gecko\/\d/i.test(M),v=/MSIE \d/.test(M),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(M),y=/Edge\/(\d+)/.exec(M),O=v||m||y,g=O&&(v?document.documentMode||6:+(y||m)[1]),e=!y&&/WebKit\//.test(M),f=e&&/Qt\/\d+\.\d+/.test(M),r=!y&&/Chrome\//.test(M),c=/Opera\//.test(M),n=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(M),o=/PhantomJS/.test(M),l=!y&&/AppleWebKit/.test(M)&&/Mobile\/\w+/.test(M),d=/Android/.test(M),h=l||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(M),s=l||/Mac/.test(E),u=/\bCrOS\b/.test(M),w=/win/i.test(E),x=c&&M.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(c=!1,e=!0);var b=s&&(f||c&&(x==null||x<12.11)),P=T||O&&g>=9;function R(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var C=function(t,p){var F=t.className,B=R(p).exec(F);if(B){var V=F.slice(B.index+B[0].length);t.className=F.slice(0,B.index)+(V?B[1]+V:"")}};function S(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function _(t,p){return S(t).appendChild(p)}function A(t,p,F,B){var V=document.createElement(t);if(F&&(V.className=F),B&&(V.style.cssText=B),typeof p=="string")V.appendChild(document.createTextNode(p));else if(p)for(var oe=0;oe<p.length;++oe)V.appendChild(p[oe]);return V}function j(t,p,F,B){var V=A(t,p,F,B);return V.setAttribute("role","presentation"),V}var I;document.createRange?I=function(t,p,F,B){var V=document.createRange();return V.setEnd(B||t,F),V.setStart(t,p),V}:I=function(t,p,F){var B=document.body.createTextRange();try{B.moveToElementText(t.parentNode)}catch(V){return B}return B.collapse(!0),B.moveEnd("character",F),B.moveStart("character",p),B};function k(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 J(){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 G(t,p){var F=t.className;R(p).test(F)||(t.className+=(F?" ":"")+p)}function D(t,p){for(var F=t.split(" "),B=0;B<F.length;B++)F[B]&&!R(F[B]).test(p)&&(p+=" "+F[B]);return p}var H=function(t){t.select()};l?H=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:O&&(H=function(t){try{t.select()}catch(p){}});function W(t){var p=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,p)}}function L(t,p,F){p||(p={});for(var B in t)t.hasOwnProperty(B)&&(F!==!1||!p.hasOwnProperty(B))&&(p[B]=t[B]);return p}function z(t,p,F,B,V){p==null&&(p=t.search(/[^\s\u00a0]/),p==-1&&(p=t.length));for(var oe=B||0,pe=V||0;;){var Se=t.indexOf(" ",oe);if(Se<0||Se>=p)return pe+(p-oe);pe+=Se-oe,pe+=F-pe%F,oe=Se+1}}var ie=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};ie.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},ie.prototype.set=function(t,p){this.f=p;var F=+new Date+t;(!this.id||F<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=F)};function ce(t,p){for(var F=0;F<t.length;++F)if(t[F]==p)return F;return-1}var ue=50,xe={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},de={origin:"*mouse"},ve={origin:"+move"};function _e(t,p,F){for(var B=0,V=0;;){var oe=t.indexOf(" ",B);oe==-1&&(oe=t.length);var pe=oe-B;if(oe==t.length||V+pe>=p)return B+Math.min(pe,p-V);if(V+=oe-B,V+=F-V%F,B=oe+1,V>=p)return B}}var le=[""];function ee(t){for(;le.length<=t;)le.push(U(le)+" ");return le[t]}function U(t){return t[t.length-1]}function K(t,p){for(var F=[],B=0;B<t.length;B++)F[B]=p(t[B],B);return F}function X(t,p,F){for(var B=0,V=F(p);B<t.length&&F(t[B])<=V;)B++;t.splice(B,0,p)}function Q(){}function te(t,p){var F;return Object.create?F=Object.create(t):(Q.prototype=t,F=new Q),p&&L(p,F),F}var ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function re(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||ae.test(t))}function $(t,p){return p?p.source.indexOf("\\w")>-1&&re(t)?!0:p.test(t):re(t)}function Z(t){for(var p in t)if(t.hasOwnProperty(p)&&t[p])return!1;return!0}var fe=/[\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 me(t){return t.charCodeAt(0)>=768&&fe.test(t)}function Oe(t,p,F){for(;(F<0?p>0:p<t.length)&&me(t.charAt(p));)p+=F;return p}function He(t,p,F){for(var B=p>F?-1:1;;){if(p==F)return p;var V=(p+F)/2,oe=B<0?Math.ceil(V):Math.floor(V);if(oe==p)return t(oe)?p:F;t(oe)?F=oe:p=oe+B}}function Qe(t,p,F,B){if(!t)return B(p,F,"ltr",0);for(var V=!1,oe=0;oe<t.length;++oe){var pe=t[oe];(pe.from<F&&pe.to>p||p==F&&pe.to==p)&&(B(Math.max(pe.from,p),Math.min(pe.to,F),pe.level==1?"rtl":"ltr",oe),V=!0)}V||B(p,F,"ltr")}var ot=null;function st(t,p,F){var B;ot=null;for(var V=0;V<t.length;++V){var oe=t[V];if(oe.from<p&&oe.to>p)return V;oe.to==p&&(oe.from!=oe.to&&F=="before"?B=V:ot=V),oe.from==p&&(oe.from!=oe.to&&F!="before"?B=V:ot=V)}return B!=null?B:ot}var ct=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function F(je){return je<=247?t.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?p.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,V=/[stwN]/,oe=/[LRr]/,pe=/[Lb1n]/,Se=/[1n]/;function De(je,ut,bt){this.level=je,this.from=ut,this.to=bt}return function(je,ut){var bt=ut=="ltr"?"L":"R";if(je.length==0||ut=="ltr"&&!B.test(je))return!1;for(var Xt=je.length,Ht=[],xn=0;xn<Xt;++xn)Ht.push(F(je.charCodeAt(xn)));for(var Fn=0,nr=bt;Fn<Xt;++Fn){var hr=Ht[Fn];hr=="m"?Ht[Fn]=nr:nr=hr}for(var Mr=0,pr=bt;Mr<Xt;++Mr){var Wr=Ht[Mr];Wr=="1"&&pr=="r"?Ht[Mr]="n":oe.test(Wr)&&(pr=Wr,Wr=="r"&&(Ht[Mr]="R"))}for(var da=1,aa=Ht[0];da<Xt-1;++da){var Ca=Ht[da];Ca=="+"&&aa=="1"&&Ht[da+1]=="1"?Ht[da]="1":Ca==","&&aa==Ht[da+1]&&(aa=="1"||aa=="n")&&(Ht[da]=aa),aa=Ca}for(var Ya=0;Ya<Xt;++Ya){var _i=Ht[Ya];if(_i==",")Ht[Ya]="N";else if(_i=="%"){var ri=void 0;for(ri=Ya+1;ri<Xt&&Ht[ri]=="%";++ri);for(var zi=Ya&&Ht[Ya-1]=="!"||ri<Xt&&Ht[ri]=="1"?"1":"N",ji=Ya;ji<ri;++ji)Ht[ji]=zi;Ya=ri-1}}for(var ci=0,Bi=bt;ci<Xt;++ci){var wi=Ht[ci];Bi=="L"&&wi=="1"?Ht[ci]="L":oe.test(wi)&&(Bi=wi)}for(var pi=0;pi<Xt;++pi)if(V.test(Ht[pi])){var di=void 0;for(di=pi+1;di<Xt&&V.test(Ht[di]);++di);for(var oi=(pi?Ht[pi-1]:bt)=="L",Fi=(di<Xt?Ht[di]:bt)=="L",Ts=oi==Fi?oi?"L":"R":bt,es=pi;es<di;++es)Ht[es]=Ts;pi=di-1}for(var Di=[],Po,bi=0;bi<Xt;)if(pe.test(Ht[bi])){var ru=bi;for(++bi;bi<Xt&&pe.test(Ht[bi]);++bi);Di.push(new De(0,ru,bi))}else{var Fo=bi,ds=Di.length,fs=ut=="rtl"?1:0;for(++bi;bi<Xt&&Ht[bi]!="L";++bi);for(var Ii=Fo;Ii<bi;)if(Se.test(Ht[Ii])){Fo<Ii&&(Di.splice(ds,0,new De(1,Fo,Ii)),ds+=fs);var Os=Ii;for(++Ii;Ii<bi&&Se.test(Ht[Ii]);++Ii);Di.splice(ds,0,new De(2,Os,Ii)),ds+=fs,Fo=Ii}else++Ii;Fo<bi&&Di.splice(ds,0,new De(1,Fo,bi))}return ut=="ltr"&&(Di[0].level==1&&(Po=je.match(/^\s+/))&&(Di[0].from=Po[0].length,Di.unshift(new De(0,0,Po[0].length))),U(Di).level==1&&(Po=je.match(/\s+$/))&&(U(Di).to-=Po[0].length,Di.push(new De(0,Xt-Po[0].length,Xt)))),ut=="rtl"?Di.reverse():Di}}();function dt(t,p){var F=t.order;return F==null&&(F=t.order=ct(t.text,p)),F}var Xe=[],ke=function(t,p,F){if(t.addEventListener)t.addEventListener(p,F,!1);else if(t.attachEvent)t.attachEvent("on"+p,F);else{var B=t._handlers||(t._handlers={});B[p]=(B[p]||Xe).concat(F)}};function lt(t,p){return t._handlers&&t._handlers[p]||Xe}function Mt(t,p,F){if(t.removeEventListener)t.removeEventListener(p,F,!1);else if(t.detachEvent)t.detachEvent("on"+p,F);else{var B=t._handlers,V=B&&B[p];if(V){var oe=ce(V,F);oe>-1&&(B[p]=V.slice(0,oe).concat(V.slice(oe+1)))}}}function Ce(t,p){var F=lt(t,p);if(!F.length)return;for(var B=Array.prototype.slice.call(arguments,2),V=0;V<F.length;++V)F[V].apply(null,B)}function he(t,p,F){return typeof p=="string"&&(p={type:p,preventDefault:function(){this.defaultPrevented=!0}}),Ce(t,F||p.type,t,p),Ue(p)||p.codemirrorIgnore}function be(t){var p=t._handlers&&t._handlers.cursorActivity;if(!p)return;for(var F=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),B=0;B<p.length;++B)ce(F,p[B])==-1&&F.push(p[B])}function Ee(t,p){return lt(t,p).length>0}function Ne(t){t.prototype.on=function(p,F){ke(this,p,F)},t.prototype.off=function(p,F){Mt(this,p,F)}}function we(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ae(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ue(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function We(t){we(t),Ae(t)}function Je(t){return t.target||t.srcElement}function $e(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 pt=function(){if(O&&g<9)return!1;var t=A("div");return"draggable"in t||"dragDrop"in t}(),Jt;function fn(t){if(Jt==null){var p=A("span","\u200B");_(t,A("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Jt=p.offsetWidth<=1&&p.offsetHeight>2&&!(O&&g<8))}var F=Jt?A("span","\u200B"):A("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return F.setAttribute("cm-text",""),F}var qt;function St(t){if(qt!=null)return qt;var p=_(t,document.createTextNode("A\u062EA")),F=I(p,0,1).getBoundingClientRect(),B=I(p,1,2).getBoundingClientRect();return S(t),!F||F.left==F.right?!1:qt=B.right-F.right<3}var Be=`
b`.split(/\n/).length!=3?function(t){for(var p=0,F=[],B=t.length;p<=B;){var V=t.indexOf(`
`,p);V==-1&&(V=t.length);var oe=t.slice(p,t.charAt(V-1)=="\r"?V-1:V),pe=oe.indexOf("\r");pe!=-1?(F.push(oe.slice(0,pe)),p+=pe+1):(F.push(oe),p=V+1)}return F}:function(t){return t.split(/\r\n?|\n/)},at=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(p){return!1}}:function(t){var p;try{p=t.ownerDocument.selection.createRange()}catch(F){}return!p||p.parentElement()!=t?!1:p.compareEndPoints("StartToEnd",p)!=0},it=function(){var t=A("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Me=null;function Ve(t){if(Me!=null)return Me;var p=_(t,A("span","x")),F=p.getBoundingClientRect(),B=I(p,0,1).getBoundingClientRect();return Me=Math.abs(F.left-B.left)>1}var xt={},_t={};function At(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),xt[t]=p}function Ot(t,p){_t[t]=p}function Ct(t){if(typeof t=="string"&&_t.hasOwnProperty(t))t=_t[t];else if(t&&typeof t.name=="string"&&_t.hasOwnProperty(t.name)){var p=_t[t.name];typeof p=="string"&&(p={name:p}),t=te(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ct("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ct("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Bt(t,p){p=Ct(p);var F=xt[p.name];if(!F)return Bt(t,"text/plain");var B=F(t,p);if(It.hasOwnProperty(p.name)){var V=It[p.name];for(var oe in V){if(!V.hasOwnProperty(oe))continue;B.hasOwnProperty(oe)&&(B["_"+oe]=B[oe]),B[oe]=V[oe]}}if(B.name=p.name,p.helperType&&(B.helperType=p.helperType),p.modeProps)for(var pe in p.modeProps)B[pe]=p.modeProps[pe];return B}var It={};function yt(t,p){var F=It.hasOwnProperty(t)?It[t]:It[t]={};L(p,F)}function zt(t,p){if(p===!0)return p;if(t.copyState)return t.copyState(p);var F={};for(var B in p){var V=p[B];V instanceof Array&&(V=V.concat([])),F[B]=V}return F}function sn(t,p){for(var F;t.innerMode&&!(F=t.innerMode(p),!F||F.mode==t);)p=F.state,t=F.mode;return F||{mode:t,state:p}}function hn(t,p,F){return t.startState?t.startState(p,F):!0}var un=function(t,p,F){this.pos=this.start=0,this.string=t,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=F};un.prototype.eol=function(){return this.pos>=this.string.length},un.prototype.sol=function(){return this.pos==this.lineStart},un.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},un.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},un.prototype.eat=function(t){var p=this.string.charAt(this.pos),F;if(typeof t=="string"?F=p==t:F=p&&(t.test?t.test(p):t(p)),F)return++this.pos,p},un.prototype.eatWhile=function(t){for(var p=this.pos;this.eat(t););return this.pos>p},un.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},un.prototype.skipToEnd=function(){this.pos=this.string.length},un.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},un.prototype.backUp=function(t){this.pos-=t},un.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},un.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},un.prototype.match=function(t,p,F){if(typeof t=="string"){var B=function(pe){return F?pe.toLowerCase():pe},V=this.string.substr(this.pos,t.length);if(B(V)==B(t))return p!==!1&&(this.pos+=t.length),!0}else{var oe=this.string.slice(this.pos).match(t);return oe&&oe.index>0?null:(oe&&p!==!1&&(this.pos+=oe[0].length),oe)}},un.prototype.current=function(){return this.string.slice(this.start,this.pos)},un.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},un.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},un.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function Kt(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 F=t;!F.lines;)for(var B=0;;++B){var V=F.children[B],oe=V.chunkSize();if(p<oe){F=V;break}p-=oe}return F.lines[p]}function gn(t,p,F){var B=[],V=p.line;return t.iter(p.line,F.line+1,function(oe){var pe=oe.text;V==F.line&&(pe=pe.slice(0,F.ch)),V==p.line&&(pe=pe.slice(p.ch)),B.push(pe),++V}),B}function Rn(t,p,F){var B=[];return t.iter(p,F,function(V){B.push(V.text)}),B}function Cn(t,p){var F=p-t.height;if(F)for(var B=t;B;B=B.parent)B.height+=F}function an(t){if(t.parent==null)return null;for(var p=t.parent,F=ce(p.lines,t),B=p.parent;B;p=B,B=B.parent)for(var V=0;!(B.children[V]==p);++V)F+=B.children[V].chunkSize();return F+p.first}function _n(t,p){var F=t.first;e:do{for(var B=0;B<t.children.length;++B){var V=t.children[B],oe=V.height;if(p<oe){t=V;continue e}p-=oe,F+=V.chunkSize()}return F}while(!t.lines);for(var pe=0;pe<t.lines.length;++pe){var Se=t.lines[pe],De=Se.height;if(p<De)break;p-=De}return F+pe}function vn(t,p){return p>=t.first&&p<t.first+t.size}function Ft(t,p){return String(t.lineNumberFormatter(p+t.firstLineNumber))}function Nt(t,p,F){if(F===void 0&&(F=null),!(this instanceof Nt))return new Nt(t,p,F);this.line=t,this.ch=p,this.sticky=F}function pn(t,p){return t.line-p.line||t.ch-p.ch}function qn(t,p){return t.sticky==p.sticky&&pn(t,p)==0}function Qt(t){return Nt(t.line,t.ch)}function Vn(t,p){return pn(t,p)<0?p:t}function Gn(t,p){return pn(t,p)<0?t:p}function xr(t,p){return Math.max(t.first,Math.min(p,t.first+t.size-1))}function Sn(t,p){if(p.line<t.first)return Nt(t.first,0);var F=t.first+t.size-1;return p.line>F?Nt(F,Kt(t,F).text.length):Pn(p,Kt(t,p.line).text.length)}function Pn(t,p){var F=t.ch;return F==null||F>p?Nt(t.line,p):F<0?Nt(t.line,0):t}function Yt(t,p){for(var F=[],B=0;B<p.length;B++)F[B]=Sn(t,p[B]);return F}var Hr=function(t,p){this.state=t,this.lookAhead=p},ar=function(t,p,F,B){this.state=p,this.doc=t,this.line=F,this.maxLookAhead=B||0,this.baseTokens=null,this.baseTokenPos=1};ar.prototype.lookAhead=function(t){var p=this.doc.getLine(this.line+t);return p!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),p},ar.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}},ar.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ar.fromSaved=function(t,p,F){return p instanceof Hr?new ar(t,zt(t.mode,p.state),F,p.lookAhead):new ar(t,zt(t.mode,p),F)},ar.prototype.save=function(t){var p=t!==!1?zt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hr(p,this.maxLookAhead):p};function ma(t,p,F,B){var V=[t.state.modeGen],oe={};Sa(t,p.text,t.doc.mode,F,function(je,ut){return V.push(je,ut)},oe,B);for(var pe=F.state,Se=function(je){F.baseTokens=V;var ut=t.state.overlays[je],bt=1,Xt=0;F.state=!0,Sa(t,p.text,ut.mode,F,function(Ht,xn){for(var Fn=bt;Xt<Ht;){var nr=V[bt];nr>Ht&&V.splice(bt,1,Ht,V[bt+1],nr),bt+=2,Xt=Math.min(Ht,nr)}if(!xn)return;if(ut.opaque)V.splice(Fn,bt-Fn,Ht,"overlay "+xn),bt=Fn+2;else for(;Fn<bt;Fn+=2){var hr=V[Fn+1];V[Fn+1]=(hr?hr+" ":"")+"overlay "+xn}},oe),F.state=pe,F.baseTokens=null,F.baseTokenPos=1},De=0;De<t.state.overlays.length;++De)Se(De);return{styles:V,classes:oe.bgClass||oe.textClass?oe:null}}function Br(t,p,F){if(!p.styles||p.styles[0]!=t.state.modeGen){var B=Na(t,an(p)),V=p.text.length>t.options.maxHighlightLength&&zt(t.doc.mode,B.state),oe=ma(t,p,B);V&&(B.state=V),p.stateAfter=B.save(!V),p.styles=oe.styles,oe.classes?p.styleClasses=oe.classes:p.styleClasses&&(p.styleClasses=null),F===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return p.styles}function Na(t,p,F){var B=t.doc,V=t.display;if(!B.mode.startState)return new ar(B,!0,p);var oe=ca(t,p,F),pe=oe>B.first&&Kt(B,oe-1).stateAfter,Se=pe?ar.fromSaved(B,pe,oe):new ar(B,hn(B.mode),oe);return B.iter(oe,p,function(De){Xa(t,De.text,Se);var je=Se.line;De.stateAfter=je==p-1||je%5==0||je>=V.viewFrom&&je<V.viewTo?Se.save():null,Se.nextLine()}),F&&(B.modeFrontier=Se.line),Se}function Xa(t,p,F,B){var V=t.doc.mode,oe=new un(p,t.options.tabSize,F);for(oe.start=oe.pos=B||0,p==""&&ua(V,F.state);!oe.eol();)Zr(V,oe,F.state),oe.start=oe.pos}function ua(t,p){if(t.blankLine)return t.blankLine(p);if(!t.innerMode)return;var F=sn(t,p);if(F.mode.blankLine)return F.mode.blankLine(F.state)}function Zr(t,p,F,B){for(var V=0;V<10;V++){B&&(B[0]=sn(t,F).mode);var oe=t.token(p,F);if(p.pos>p.start)return oe}throw new Error("Mode "+t.name+" failed to advance stream.")}var Sr=function(t,p,F){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=F};function Oa(t,p,F,B){var V=t.doc,oe=V.mode,pe;p=Sn(V,p);var Se=Kt(V,p.line),De=Na(t,p.line,F),je=new un(Se.text,t.options.tabSize,De),ut;for(B&&(ut=[]);(B||je.pos<p.ch)&&!je.eol();)je.start=je.pos,pe=Zr(oe,je,De.state),B&&ut.push(new Sr(je,pe,zt(V.mode,De.state)));return B?ut:new Sr(je,pe,De.state)}function Ma(t,p){if(t)for(;;){var F=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!F)break;t=t.slice(0,F.index)+t.slice(F.index+F[0].length);var B=F[1]?"bgClass":"textClass";p[B]==null?p[B]=F[2]:new RegExp("(?:^|\\s)"+F[2]+"(?:$|\\s)").test(p[B])||(p[B]+=" "+F[2])}return t}function Sa(t,p,F,B,V,oe,pe){var Se=F.flattenSpans;Se==null&&(Se=t.options.flattenSpans);var De=0,je=null,ut=new un(p,t.options.tabSize,B),bt,Xt=t.options.addModeClass&&[null];for(p==""&&Ma(ua(F,B.state),oe);!ut.eol();){if(ut.pos>t.options.maxHighlightLength?(Se=!1,pe&&Xa(t,p,B,ut.pos),ut.pos=p.length,bt=null):bt=Ma(Zr(F,ut,B.state,Xt),oe),Xt){var Ht=Xt[0].name;Ht&&(bt="m-"+(bt?Ht+" "+bt:Ht))}if(!Se||je!=bt){for(;De<ut.start;)De=Math.min(ut.start,De+5e3),V(De,je);je=bt}ut.start=ut.pos}for(;De<ut.pos;){var xn=Math.min(ut.pos,De+5e3);V(xn,je),De=xn}}function ca(t,p,F){for(var B,V,oe=t.doc,pe=F?-1:p-(t.doc.mode.innerMode?1e3:100),Se=p;Se>pe;--Se){if(Se<=oe.first)return oe.first;var De=Kt(oe,Se-1),je=De.stateAfter;if(je&&(!F||Se+(je instanceof Hr?je.lookAhead:0)<=oe.modeFrontier))return Se;var ut=z(De.text,null,t.options.tabSize);(V==null||B>ut)&&(V=Se-1,B=ut)}return V}function ka(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontier<p-10)return;for(var F=t.first,B=p-1;B>F;B--){var V=Kt(t,B).stateAfter;if(V&&(!(V instanceof Hr)||B+V.lookAhead<p)){F=B+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,F)}var Ga=!1,La=!1;function Za(){Ga=!0}function Ia(){La=!0}function xa(t,p,F){this.marker=t,this.from=p,this.to=F}function Fa(t,p){if(t)for(var F=0;F<t.length;++F){var B=t[F];if(B.marker==p)return B}}function li(t,p){for(var F,B=0;B<t.length;++B)t[B]!=p&&(F||(F=[])).push(t[B]);return F}function yi(t,p){t.markedSpans=t.markedSpans?t.markedSpans.concat([p]):[p],p.marker.attachLine(t)}function ga(t,p,F){var B;if(t)for(var V=0;V<t.length;++V){var oe=t[V],pe=oe.marker,Se=oe.from==null||(pe.inclusiveLeft?oe.from<=p:oe.from<p);if(Se||oe.from==p&&pe.type=="bookmark"&&(!F||!oe.marker.insertLeft)){var De=oe.to==null||(pe.inclusiveRight?oe.to>=p:oe.to>p);(B||(B=[])).push(new xa(pe,oe.from,De?null:oe.to))}}return B}function va(t,p,F){var B;if(t)for(var V=0;V<t.length;++V){var oe=t[V],pe=oe.marker,Se=oe.to==null||(pe.inclusiveRight?oe.to>=p:oe.to>p);if(Se||oe.from==p&&pe.type=="bookmark"&&(!F||oe.marker.insertLeft)){var De=oe.from==null||(pe.inclusiveLeft?oe.from<=p:oe.from<p);(B||(B=[])).push(new xa(pe,De?null:oe.from-p,oe.to==null?null:oe.to-p))}}return B}function ya(t,p){if(p.full)return null;var F=vn(t,p.from.line)&&Kt(t,p.from.line).markedSpans,B=vn(t,p.to.line)&&Kt(t,p.to.line).markedSpans;if(!F&&!B)return null;var V=p.from.ch,oe=p.to.ch,pe=pn(p.from,p.to)==0,Se=ga(F,V,pe),De=va(B,oe,pe),je=p.text.length==1,ut=U(p.text).length+(je?V:0);if(Se)for(var bt=0;bt<Se.length;++bt){var Xt=Se[bt];if(Xt.to==null){var Ht=Fa(De,Xt.marker);Ht?je&&(Xt.to=Ht.to==null?null:Ht.to+ut):Xt.to=V}}if(De)for(var xn=0;xn<De.length;++xn){var Fn=De[xn];if(Fn.to!=null&&(Fn.to+=ut),Fn.from==null){var nr=Fa(Se,Fn.marker);nr||(Fn.from=ut,je&&(Se||(Se=[])).push(Fn))}else Fn.from+=ut,je&&(Se||(Se=[])).push(Fn)}Se&&(Se=ye(Se)),De&&De!=Se&&(De=ye(De));var hr=[Se];if(!je){var Mr=p.text.length-2,pr;if(Mr>0&&Se)for(var Wr=0;Wr<Se.length;++Wr)Se[Wr].to==null&&(pr||(pr=[])).push(new xa(Se[Wr].marker,null,null));for(var da=0;da<Mr;++da)hr.push(pr);hr.push(De)}return hr}function ye(t){for(var p=0;p<t.length;++p){var F=t[p];F.from!=null&&F.from==F.to&&F.marker.clearWhenEmpty!==!1&&t.splice(p--,1)}return t.length?t:null}function rt(t,p,F){var B=null;if(t.iter(p.line,F.line+1,function(Ht){if(Ht.markedSpans)for(var xn=0;xn<Ht.markedSpans.length;++xn){var Fn=Ht.markedSpans[xn].marker;Fn.readOnly&&(!B||ce(B,Fn)==-1)&&(B||(B=[])).push(Fn)}}),!B)return null;for(var V=[{from:p,to:F}],oe=0;oe<B.length;++oe)for(var pe=B[oe],Se=pe.find(0),De=0;De<V.length;++De){var je=V[De];if(pn(je.to,Se.from)<0||pn(je.from,Se.to)>0)continue;var ut=[De,1],bt=pn(je.from,Se.from),Xt=pn(je.to,Se.to);(bt<0||!pe.inclusiveLeft&&!bt)&&ut.push({from:je.from,to:Se.from}),(Xt>0||!pe.inclusiveRight&&!Xt)&&ut.push({from:Se.to,to:je.to}),V.splice.apply(V,ut),De+=ut.length-3}return V}function Et(t){var p=t.markedSpans;if(!p)return;for(var F=0;F<p.length;++F)p[F].marker.detachLine(t);t.markedSpans=null}function vt(t,p){if(!p)return;for(var F=0;F<p.length;++F)p[F].marker.attachLine(t);t.markedSpans=p}function Wt(t){return t.inclusiveLeft?-1:0}function Lt(t){return t.inclusiveRight?1:0}function Zt(t,p){var F=t.lines.length-p.lines.length;if(F!=0)return F;var B=t.find(),V=p.find(),oe=pn(B.from,V.from)||Wt(t)-Wt(p);if(oe)return-oe;var pe=pn(B.to,V.to)||Lt(t)-Lt(p);return pe||p.id-t.id}function dn(t,p){var F=La&&t.markedSpans,B;if(F)for(var V=void 0,oe=0;oe<F.length;++oe)V=F[oe],V.marker.collapsed&&(p?V.from:V.to)==null&&(!B||Zt(B,V.marker)<0)&&(B=V.marker);return B}function En(t){return dn(t,!0)}function wn(t){return dn(t,!1)}function Hn(t,p){var F=La&&t.markedSpans,B;if(F)for(var V=0;V<F.length;++V){var oe=F[V];oe.marker.collapsed&&(oe.from==null||oe.from<p)&&(oe.to==null||oe.to>p)&&(!B||Zt(B,oe.marker)<0)&&(B=oe.marker)}return B}function jn(t,p,F,B,V){var oe=Kt(t,p),pe=La&&oe.markedSpans;if(pe)for(var Se=0;Se<pe.length;++Se){var De=pe[Se];if(!De.marker.collapsed)continue;var je=De.marker.find(0),ut=pn(je.from,F)||Wt(De.marker)-Wt(V),bt=pn(je.to,B)||Lt(De.marker)-Lt(V);if(ut>=0&&bt<=0||ut<=0&&bt>=0)continue;if(ut<=0&&(De.marker.inclusiveRight&&V.inclusiveLeft?pn(je.to,F)>=0:pn(je.to,F)>0)||ut>=0&&(De.marker.inclusiveRight&&V.inclusiveLeft?pn(je.from,B)<=0:pn(je.from,B)<0))return!0}}function nn(t){for(var p;p=En(t);)t=p.find(-1,!0).line;return t}function Mn(t){for(var p;p=wn(t);)t=p.find(1,!0).line;return t}function mn(t){for(var p,F;p=wn(t);)t=p.find(1,!0).line,(F||(F=[])).push(t);return F}function Wn(t,p){var F=Kt(t,p),B=nn(F);return F==B?p:an(B)}function Dn(t,p){if(p>t.lastLine())return p;var F=Kt(t,p),B;if(!tr(t,F))return p;for(;B=wn(F);)F=B.find(1,!0).line;return an(F)+1}function tr(t,p){var F=La&&p.markedSpans;if(F)for(var B=void 0,V=0;V<F.length;++V){if(B=F[V],!B.marker.collapsed)continue;if(B.from==null)return!0;if(B.marker.widgetNode)continue;if(B.from==0&&B.marker.inclusiveLeft&&sr(t,p,B))return!0}}function sr(t,p,F){if(F.to==null){var B=F.marker.find(1,!0);return sr(t,B.line,Fa(B.line.markedSpans,F.marker))}if(F.marker.inclusiveRight&&F.to==p.text.length)return!0;for(var V=void 0,oe=0;oe<p.markedSpans.length;++oe)if(V=p.markedSpans[oe],V.marker.collapsed&&!V.marker.widgetNode&&V.from==F.to&&(V.to==null||V.to!=F.from)&&(V.marker.inclusiveLeft||F.marker.inclusiveRight)&&sr(t,p,V))return!0}function Ir(t){t=nn(t);for(var p=0,F=t.parent,B=0;B<F.lines.length;++B){var V=F.lines[B];if(V==t)break;p+=V.height}for(var oe=F.parent;oe;F=oe,oe=F.parent)for(var pe=0;pe<oe.children.length;++pe){var Se=oe.children[pe];if(Se==F)break;p+=Se.height}return p}function oa(t){if(t.height==0)return 0;for(var p=t.text.length,F,B=t;F=En(B);){var V=F.find(0,!0);B=V.from.line,p+=V.from.ch-V.to.ch}for(B=t;F=wn(B);){var oe=F.find(0,!0);p-=B.text.length-oe.from.ch,B=oe.to.line,p+=B.text.length-oe.to.ch}return p}function Cr(t){var p=t.display,F=t.doc;p.maxLine=Kt(F,F.first),p.maxLineLength=oa(p.maxLine),p.maxLineChanged=!0,F.iter(function(B){var V=oa(B);V>p.maxLineLength&&(p.maxLineLength=V,p.maxLine=B)})}var Or=function(t,p,F){this.text=t,vt(this,p),this.height=F?F(this):1};Or.prototype.lineNo=function(){return an(this)},Ne(Or);function ea(t,p,F,B){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Et(t),vt(t,F);var V=B?B(t):1;V!=t.height&&Cn(t,V)}function Nn(t){t.parent=null,Et(t)}var br={},$t={};function jt(t,p){if(!t||/^\s*$/.test(t))return null;var F=p.addModeClass?$t:br;return F[t]||(F[t]=t.replace(/\S+/g,"cm-$&"))}function on(t,p){var F=j("span",null,null,e?"padding-right: .1px":null),B={pre:j("pre",[F],"CodeMirror-line"),content:F,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};p.measure={};for(var V=0;V<=(p.rest?p.rest.length:0);V++){var oe=V?p.rest[V-1]:p.line,pe=void 0;B.pos=0,B.addToken=Tn,St(t.display.measure)&&(pe=dt(oe,t.doc.direction))&&(B.addToken=Jn(B.addToken,pe)),B.map=[];var Se=p!=t.display.externalMeasured&&an(oe);Ar(oe,B,Br(t,oe,Se)),oe.styleClasses&&(oe.styleClasses.bgClass&&(B.bgClass=D(oe.styleClasses.bgClass,B.bgClass||"")),oe.styleClasses.textClass&&(B.textClass=D(oe.styleClasses.textClass,B.textClass||""))),B.map.length==0&&B.map.push(0,0,B.content.appendChild(fn(t.display.measure))),V==0?(p.measure.map=B.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(B.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(e){var De=B.content.lastChild;(/\bcm-tab\b/.test(De.className)||De.querySelector&&De.querySelector(".cm-tab"))&&(B.content.className="cm-tab-wrap-hack")}return Ce(t,"renderLine",t,p.line,B.pre),B.pre.className&&(B.textClass=D(B.pre.className,B.textClass||"")),B}function An(t){var p=A("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function Tn(t,p,F,B,V,oe,pe){if(!p)return;var Se=t.splitSpaces?Yn(p,t.trailingSpace):p,De=t.cm.state.specialChars,je=!1,ut;if(!De.test(p))t.col+=p.length,ut=document.createTextNode(Se),t.map.push(t.pos,t.pos+p.length,ut),O&&g<9&&(je=!0),t.pos+=p.length;else{ut=document.createDocumentFragment();for(var bt=0;;){De.lastIndex=bt;var Xt=De.exec(p),Ht=Xt?Xt.index-bt:p.length-bt;if(Ht){var xn=document.createTextNode(Se.slice(bt,bt+Ht));O&&g<9?ut.appendChild(A("span",[xn])):ut.appendChild(xn),t.map.push(t.pos,t.pos+Ht,xn),t.col+=Ht,t.pos+=Ht}if(!Xt)break;bt+=Ht+1;var Fn=void 0;if(Xt[0]==" "){var nr=t.cm.options.tabSize,hr=nr-t.col%nr;Fn=ut.appendChild(A("span",ee(hr),"cm-tab")),Fn.setAttribute("role","presentation"),Fn.setAttribute("cm-text"," "),t.col+=hr}else Xt[0]=="\r"||Xt[0]==`
`?(Fn=ut.appendChild(A("span",Xt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Fn.setAttribute("cm-text",Xt[0]),t.col+=1):(Fn=t.cm.options.specialCharPlaceholder(Xt[0]),Fn.setAttribute("cm-text",Xt[0]),O&&g<9?ut.appendChild(A("span",[Fn])):ut.appendChild(Fn),t.col+=1);t.map.push(t.pos,t.pos+1,Fn),t.pos++}}if(t.trailingSpace=Se.charCodeAt(p.length-1)==32,F||B||V||je||oe||pe){var Mr=F||"";B&&(Mr+=B),V&&(Mr+=V);var pr=A("span",[ut],Mr,oe);if(pe)for(var Wr in pe)pe.hasOwnProperty(Wr)&&Wr!="style"&&Wr!="class"&&pr.setAttribute(Wr,pe[Wr]);return t.content.appendChild(pr)}t.content.appendChild(ut)}function Yn(t,p){if(t.length>1&&!/ /.test(t))return t;for(var F=p,B="",V=0;V<t.length;V++){var oe=t.charAt(V);oe==" "&&F&&(V==t.length-1||t.charCodeAt(V+1)==32)&&(oe="\xA0"),B+=oe,F=oe==" "}return B}function Jn(t,p){return function(F,B,V,oe,pe,Se,De){V=V?V+" cm-force-border":"cm-force-border";for(var je=F.pos,ut=je+B.length;;){for(var bt=void 0,Xt=0;Xt<p.length&&!(bt=p[Xt],bt.to>je&&bt.from<=je);Xt++);if(bt.to>=ut)return t(F,B,V,oe,pe,Se,De);t(F,B.slice(0,bt.to-je),V,oe,null,Se,De),oe=null,B=B.slice(bt.to-je),je=bt.to}}}function kn(t,p,F,B){var V=!B&&F.widgetNode;V&&t.map.push(t.pos,t.pos+p,V),!B&&t.cm.display.input.needsContentAttribute&&(V||(V=t.content.appendChild(document.createElement("span"))),V.setAttribute("cm-marker",F.id)),V&&(t.cm.display.input.setUneditable(V),t.content.appendChild(V)),t.pos+=p,t.trailingSpace=!1}function Ar(t,p,F){var B=t.markedSpans,V=t.text,oe=0;if(!B){for(var pe=1;pe<F.length;pe+=2)p.addToken(p,V.slice(oe,oe=F[pe]),jt(F[pe+1],p.cm.options));return}for(var Se=V.length,De=0,je=1,ut="",bt,Xt,Ht=0,xn,Fn,nr,hr,Mr;;){if(Ht==De){xn=Fn=nr=Xt="",Mr=null,hr=null,Ht=Infinity;for(var pr=[],Wr=void 0,da=0;da<B.length;++da){var aa=B[da],Ca=aa.marker;if(Ca.type=="bookmark"&&aa.from==De&&Ca.widgetNode)pr.push(Ca);else if(aa.from<=De&&(aa.to==null||aa.to>De||Ca.collapsed&&aa.to==De&&aa.from==De)){if(aa.to!=null&&aa.to!=De&&Ht>aa.to&&(Ht=aa.to,Fn=""),Ca.className&&(xn+=" "+Ca.className),Ca.css&&(Xt=(Xt?Xt+";":"")+Ca.css),Ca.startStyle&&aa.from==De&&(nr+=" "+Ca.startStyle),Ca.endStyle&&aa.to==Ht&&(Wr||(Wr=[])).push(Ca.endStyle,aa.to),Ca.title&&((Mr||(Mr={})).title=Ca.title),Ca.attributes)for(var Ya in Ca.attributes)(Mr||(Mr={}))[Ya]=Ca.attributes[Ya];Ca.collapsed&&(!hr||Zt(hr.marker,Ca)<0)&&(hr=aa)}else aa.from>De&&Ht>aa.from&&(Ht=aa.from)}if(Wr)for(var _i=0;_i<Wr.length;_i+=2)Wr[_i+1]==Ht&&(Fn+=" "+Wr[_i]);if(!hr||hr.from==De)for(var ri=0;ri<pr.length;++ri)kn(p,0,pr[ri]);if(hr&&(hr.from||0)==De){if(kn(p,(hr.to==null?Se+1:hr.to)-De,hr.marker,hr.from==null),hr.to==null)return;hr.to==De&&(hr=!1)}}if(De>=Se)break;for(var zi=Math.min(Se,Ht);;){if(ut){var ji=De+ut.length;if(!hr){var ci=ji>zi?ut.slice(0,zi-De):ut;p.addToken(p,ci,bt?bt+xn:xn,nr,De+ci.length==Ht?Fn:"",Xt,Mr)}if(ji>=zi){ut=ut.slice(zi-De),De=zi;break}De=ji,nr=""}ut=V.slice(oe,oe=F[je++]),bt=jt(F[je++],p.cm.options)}}}function ur(t,p,F){this.line=p,this.rest=mn(p),this.size=this.rest?an(U(this.rest))-F+1:1,this.node=this.text=null,this.hidden=tr(t,p)}function yr(t,p,F){for(var B=[],V,oe=p;oe<F;oe=V){var pe=new ur(t.doc,Kt(t.doc,oe),oe);V=oe+pe.size,B.push(pe)}return B}var vr=null;function Dr(t){vr?vr.ops.push(t):t.ownsGroup=vr={ops:[t],delayedCallbacks:[]}}function Xn(t){var p=t.delayedCallbacks,F=0;do{for(;F<p.length;F++)p[F].call(null);for(var B=0;B<t.ops.length;B++){var V=t.ops[B];if(V.cursorActivityHandlers)for(;V.cursorActivityCalled<V.cursorActivityHandlers.length;)V.cursorActivityHandlers[V.cursorActivityCalled++].call(null,V.cm)}}while(F<p.length)}function Ut(t,p){var F=t.ownsGroup;if(!F)return;try{Xn(F)}finally{vr=null,p(F)}}var en=null;function Vt(t,p){var F=lt(t,p);if(!F.length)return;var B=Array.prototype.slice.call(arguments,2),V;vr?V=vr.delayedCallbacks:en?V=en:(V=en=[],setTimeout(Un,0));for(var oe=function(Se){V.push(function(){return F[Se].apply(null,B)})},pe=0;pe<F.length;++pe)oe(pe)}function Un(){var t=en;en=null;for(var p=0;p<t.length;++p)t[p]()}function $n(t,p,F,B){for(var V=0;V<p.changes.length;V++){var oe=p.changes[V];oe=="text"?or(t,p):oe=="gutter"?wr(t,p,F,B):oe=="class"?ta(t,p):oe=="widget"&&_r(t,p,B)}p.changes=null}function ir(t){return t.node==t.text&&(t.node=A("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),O&&g<8&&(t.node.style.zIndex=2)),t.node}function Kn(t,p){var F=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(F&&(F+=" CodeMirror-linebackground"),p.background)F?p.background.className=F:(p.background.parentNode.removeChild(p.background),p.background=null);else if(F){var B=ir(p);p.background=B.insertBefore(A("div",null,F),B.firstChild),t.display.input.setUneditable(p.background)}}function rr(t,p){var F=t.display.externalMeasured;return F&&F.line==p.line?(t.display.externalMeasured=null,p.measure=F.measure,F.built):on(t,p)}function or(t,p){var F=p.text.className,B=rr(t,p);p.text==p.node&&(p.node=B.pre),p.text.parentNode.replaceChild(B.pre,p.text),p.text=B.pre,B.bgClass!=p.bgClass||B.textClass!=p.textClass?(p.bgClass=B.bgClass,p.textClass=B.textClass,ta(t,p)):F&&(p.text.className=F)}function ta(t,p){Kn(t,p),p.line.wrapClass?ir(p).className=p.line.wrapClass:p.node!=p.text&&(p.node.className="");var F=p.textClass?p.textClass+" "+(p.line.textClass||""):p.line.textClass;p.text.className=F||""}function wr(t,p,F,B){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 V=ir(p);p.gutterBackground=A("div",null,"CodeMirror-gutter-background "+p.line.gutterClass,"left: "+(t.options.fixedGutter?B.fixedPos:-B.gutterTotalWidth)+"px; width: "+B.gutterTotalWidth+"px"),t.display.input.setUneditable(p.gutterBackground),V.insertBefore(p.gutterBackground,p.text)}var oe=p.line.gutterMarkers;if(t.options.lineNumbers||oe){var pe=ir(p),Se=p.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?B.fixedPos:-B.gutterTotalWidth)+"px");if(t.display.input.setUneditable(Se),pe.insertBefore(Se,p.text),p.line.gutterClass&&(Se.className+=" "+p.line.gutterClass),t.options.lineNumbers&&(!oe||!oe["CodeMirror-linenumbers"])&&(p.lineNumber=Se.appendChild(A("div",Ft(t.options,F),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+B.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),oe)for(var De=0;De<t.display.gutterSpecs.length;++De){var je=t.display.gutterSpecs[De].className,ut=oe.hasOwnProperty(je)&&oe[je];ut&&Se.appendChild(A("div",[ut],"CodeMirror-gutter-elt","left: "+B.gutterLeft[je]+"px; width: "+B.gutterWidth[je]+"px"))}}}function _r(t,p,F){p.alignable&&(p.alignable=null);for(var B=R("CodeMirror-linewidget"),V=p.node.firstChild,oe=void 0;V;V=oe)oe=V.nextSibling,B.test(V.className)&&p.node.removeChild(V);Kr(t,p,F)}function qr(t,p,F,B){var V=rr(t,p);return p.text=p.node=V.pre,V.bgClass&&(p.bgClass=V.bgClass),V.textClass&&(p.textClass=V.textClass),ta(t,p),wr(t,p,F,B),Kr(t,p,B),p.node}function Kr(t,p,F){if(mr(t,p.line,p,F,!0),p.rest)for(var B=0;B<p.rest.length;B++)mr(t,p.rest[B],p,F,!1)}function mr(t,p,F,B,V){if(!p.widgets)return;for(var oe=ir(F),pe=0,Se=p.widgets;pe<Se.length;++pe){var De=Se[pe],je=A("div",[De.node],"CodeMirror-linewidget"+(De.className?" "+De.className:""));De.handleMouseEvents||je.setAttribute("cm-ignore-events","true"),Jr(De,je,F,B),t.display.input.setUneditable(je),V&&De.above?oe.insertBefore(je,F.gutter||F.text):oe.appendChild(je),Vt(De,"redraw")}}function Jr(t,p,F,B){if(t.noHScroll){(F.alignable||(F.alignable=[])).push(p);var V=B.wrapperWidth;p.style.left=B.fixedPos+"px",t.coverGutter||(V-=B.gutterTotalWidth,p.style.paddingLeft=B.gutterTotalWidth+"px"),p.style.width=V+"px"}t.coverGutter&&(p.style.zIndex=5,p.style.position="relative",t.noHScroll||(p.style.marginLeft=-B.gutterTotalWidth+"px"))}function Rr(t){if(t.height!=null)return t.height;var p=t.doc.cm;if(!p)return 0;if(!k(document.body,t.node)){var F="position: relative;";t.coverGutter&&(F+="margin-left: -"+p.display.gutters.offsetWidth+"px;"),t.noHScroll&&(F+="width: "+p.display.wrapper.clientWidth+"px;"),_(p.display.measure,A("div",[t.node],null,F))}return t.height=t.node.parentNode.offsetHeight}function ra(t,p){for(var F=Je(p);F!=t.wrapper;F=F.parentNode)if(!F||F.nodeType==1&&F.getAttribute("cm-ignore-events")=="true"||F.parentNode==t.sizer&&F!=t.mover)return!0}function Gr(t){return t.lineSpace.offsetTop}function Fe(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function tt(t){if(t.cachedPaddingH)return t.cachedPaddingH;var p=_(t.measure,A("pre","x","CodeMirror-line-like")),F=window.getComputedStyle?window.getComputedStyle(p):p.currentStyle,B={left:parseInt(F.paddingLeft),right:parseInt(F.paddingRight)};return!isNaN(B.left)&&!isNaN(B.right)&&(t.cachedPaddingH=B),B}function nt(t){return ue-t.display.nativeBarWidth}function Ye(t){return t.display.scroller.clientWidth-nt(t)-t.display.barWidth}function Pe(t){return t.display.scroller.clientHeight-nt(t)-t.display.barHeight}function ze(t,p,F){var B=t.options.lineWrapping,V=B&&Ye(t);if(!p.measure.heights||B&&p.measure.width!=V){var oe=p.measure.heights=[];if(B){p.measure.width=V;for(var pe=p.text.firstChild.getClientRects(),Se=0;Se<pe.length-1;Se++){var De=pe[Se],je=pe[Se+1];Math.abs(De.bottom-je.bottom)>2&&oe.push((De.bottom+je.top)/2-F.top)}}oe.push(F.bottom-F.top)}}function Re(t,p,F){if(t.line==p)return{map:t.measure.map,cache:t.measure.cache};for(var B=0;B<t.rest.length;B++)if(t.rest[B]==p)return{map:t.measure.maps[B],cache:t.measure.caches[B]};for(var V=0;V<t.rest.length;V++)if(an(t.rest[V])>F)return{map:t.measure.maps[V],cache:t.measure.caches[V],before:!0}}function Ze(t,p){p=nn(p);var F=an(p),B=t.display.externalMeasured=new ur(t.doc,p,F);B.lineN=F;var V=B.built=on(t,B);return B.text=V.pre,_(t.display.lineMeasure,V.pre),B}function qe(t,p,F,B){return wt(t,et(t,p),F,B)}function ht(t,p){if(p>=t.display.viewFrom&&p<t.display.viewTo)return t.display.view[Xr(t,p)];var F=t.display.externalMeasured;if(F&&p>=F.lineN&&p<F.lineN+F.size)return F}function et(t,p){var F=an(p),B=ht(t,F);B&&!B.text?B=null:B&&B.changes&&($n(t,B,F,kr(t)),t.curOp.forceUpdate=!0),B||(B=Ze(t,p));var V=Re(B,p,F);return{line:p,view:B,rect:null,map:V.map,cache:V.cache,before:V.before,hasHeights:!1}}function wt(t,p,F,B,V){p.before&&(F=-1);var oe=F+(B||""),pe;return p.cache.hasOwnProperty(oe)?pe=p.cache[oe]:(p.rect||(p.rect=p.view.text.getBoundingClientRect()),p.hasHeights||(ze(t,p.view,p.rect),p.hasHeights=!0),pe=ln(t,p,F,B),pe.bogus||(p.cache[oe]=pe)),{left:pe.left,right:pe.right,top:V?pe.rtop:pe.top,bottom:V?pe.rbottom:pe.bottom}}var Pt={left:0,right:0,top:0,bottom:0};function Gt(t,p,F){for(var B,V,oe,pe,Se,De,je=0;je<t.length;je+=3)if(Se=t[je],De=t[je+1],p<Se?(V=0,oe=1,pe="left"):p<De?(V=p-Se,oe=V+1):(je==t.length-3||p==De&&t[je+3]>p)&&(oe=De-Se,V=oe-1,p>=De&&(pe="right")),V!=null){if(B=t[je+2],Se==De&&F==(B.insertLeft?"left":"right")&&(pe=F),F=="left"&&V==0)for(;je&&t[je-2]==t[je-3]&&t[je-1].insertLeft;)B=t[(je-=3)+2],pe="left";if(F=="right"&&V==De-Se)for(;je<t.length-3&&t[je+3]==t[je+4]&&!t[je+5].insertLeft;)B=t[(je+=3)+2],pe="right";break}return{node:B,start:V,end:oe,collapse:pe,coverStart:Se,coverEnd:De}}function kt(t,p){var F=Pt;if(p=="left")for(var B=0;B<t.length&&!((F=t[B]).left!=F.right);B++);else for(var V=t.length-1;V>=0&&!((F=t[V]).left!=F.right);V--);return F}function ln(t,p,F,B){var V=Gt(p.map,F,B),oe=V.node,pe=V.start,Se=V.end,De=V.collapse,je;if(oe.nodeType==3){for(var ut=0;ut<4;ut++){for(;pe&&me(p.line.text.charAt(V.coverStart+pe));)--pe;for(;V.coverStart+Se<V.coverEnd&&me(p.line.text.charAt(V.coverStart+Se));)++Se;if(O&&g<9&&pe==0&&Se==V.coverEnd-V.coverStart?je=oe.parentNode.getBoundingClientRect():je=kt(I(oe,pe,Se).getClientRects(),B),je.left||je.right||pe==0)break;Se=pe,pe=pe-1,De="right"}O&&g<11&&(je=On(t.display.measure,je))}else{pe>0&&(De=B="right");var bt;t.options.lineWrapping&&(bt=oe.getClientRects()).length>1?je=bt[B=="right"?bt.length-1:0]:je=oe.getBoundingClientRect()}if(O&&g<9&&!pe&&(!je||!je.left&&!je.right)){var Xt=oe.parentNode.getClientRects()[0];Xt?je={left:Xt.left,right:Xt.left+na(t.display),top:Xt.top,bottom:Xt.bottom}:je=Pt}for(var Ht=je.top-p.rect.top,xn=je.bottom-p.rect.top,Fn=(Ht+xn)/2,nr=p.view.measure.heights,hr=0;hr<nr.length-1&&!(Fn<nr[hr]);hr++);var Mr=hr?nr[hr-1]:0,pr=nr[hr],Wr={left:(De=="right"?je.right:je.left)-p.rect.left,right:(De=="left"?je.left:je.right)-p.rect.left,top:Mr,bottom:pr};return!je.left&&!je.right&&(Wr.bogus=!0),t.options.singleCursorHeightPerLine||(Wr.rtop=Ht,Wr.rbottom=xn),Wr}function On(t,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ve(t))return p;var F=screen.logicalXDPI/screen.deviceXDPI,B=screen.logicalYDPI/screen.deviceYDPI;return{left:p.left*F,right:p.right*F,top:p.top*B,bottom:p.bottom*B}}function er(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 Zn(t){t.display.externalMeasure=null,S(t.display.lineMeasure);for(var p=0;p<t.display.view.length;p++)er(t.display.view[p])}function Tr(t){Zn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function dr(){return r&&d?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Bn(){return r&&d?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function rn(t){var p=0;if(t.widgets)for(var F=0;F<t.widgets.length;++F)t.widgets[F].above&&(p+=Rr(t.widgets[F]));return p}function yn(t,p,F,B,V){if(!V){var oe=rn(p);F.top+=oe,F.bottom+=oe}if(B=="line")return F;B||(B="local");var pe=Ir(p);if(B=="local"?pe+=Gr(t.display):pe-=t.display.viewOffset,B=="page"||B=="window"){var Se=t.display.lineSpace.getBoundingClientRect();pe+=Se.top+(B=="window"?0:Bn());var De=Se.left+(B=="window"?0:dr());F.left+=De,F.right+=De}return F.top+=pe,F.bottom+=pe,F}function tn(t,p,F){if(F=="div")return p;var B=p.left,V=p.top;if(F=="page")B-=dr(),V-=Bn();else if(F=="local"||!F){var oe=t.display.sizer.getBoundingClientRect();B+=oe.left,V+=oe.top}var pe=t.display.lineSpace.getBoundingClientRect();return{left:B-pe.left,top:V-pe.top}}function Er(t,p,F,B,V){return B||(B=Kt(t.doc,p.line)),yn(t,B,qe(t,B,p.ch,V),F)}function zn(t,p,F,B,V,oe){B=B||Kt(t.doc,p.line),V||(V=et(t,B));function pe(xn,Fn){var nr=wt(t,V,xn,Fn?"right":"left",oe);return Fn?nr.left=nr.right:nr.right=nr.left,yn(t,B,nr,F)}var Se=dt(B,t.doc.direction),De=p.ch,je=p.sticky;if(De>=B.text.length?(De=B.text.length,je="before"):De<=0&&(De=0,je="after"),!Se)return pe(je=="before"?De-1:De,je=="before");function ut(xn,Fn,nr){var hr=Se[Fn],Mr=hr.level==1;return pe(nr?xn-1:xn,Mr!=nr)}var bt=st(Se,De,je),Xt=ot,Ht=ut(De,bt,je=="before");return Xt!=null&&(Ht.other=ut(De,Xt,je!="before")),Ht}function bn(t,p){var F=0;p=Sn(t.doc,p),t.options.lineWrapping||(F=na(t.display)*p.ch);var B=Kt(t.doc,p.line),V=Ir(B)+Gr(t.display);return{left:F,right:F,top:V,bottom:V+B.height}}function In(t,p,F,B,V){var oe=Nt(t,p,F);return oe.xRel=V,B&&(oe.outside=B),oe}function Fr(t,p,F){var B=t.doc;if(F+=t.display.viewOffset,F<0)return In(B.first,0,null,-1,-1);var V=_n(B,F),oe=B.first+B.size-1;if(V>oe)return In(B.first+B.size-1,Kt(B,oe).text.length,null,1,1);p<0&&(p=0);for(var pe=Kt(B,V);;){var Se=Lr(t,pe,V,p,F),De=Hn(pe,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!De)return Se;var je=De.find(1);if(je.line==V)return je;pe=Kt(B,V=je.line)}}function Qn(t,p,F,B){B-=rn(p);var V=p.text.length,oe=He(function(pe){return wt(t,F,pe-1).bottom<=B},V,0);return V=He(function(pe){return wt(t,F,pe).top>B},oe,V),{begin:oe,end:V}}function Ln(t,p,F,B){F||(F=et(t,p));var V=yn(t,p,wt(t,F,B),"line").top;return Qn(t,p,F,V)}function cr(t,p,F,B){return t.bottom<=F?!1:t.top>F?!0:(B?t.left:t.right)>p}function Lr(t,p,F,B,V){V-=Ir(p);var oe=et(t,p),pe=rn(p),Se=0,De=p.text.length,je=!0,ut=dt(p,t.doc.direction);if(ut){var bt=(t.options.lineWrapping?$r:Nr)(t,p,F,oe,ut,B,V);je=bt.level!=1,Se=je?bt.from:bt.to-1,De=je?bt.to:bt.from-1}var Xt=null,Ht=null,xn=He(function(da){var aa=wt(t,oe,da);return aa.top+=pe,aa.bottom+=pe,cr(aa,B,V,!1)?(aa.top<=V&&aa.left<=B&&(Xt=da,Ht=aa),!0):!1},Se,De),Fn,nr,hr=!1;if(Ht){var Mr=B-Ht.left<Ht.right-B,pr=Mr==je;xn=Xt+(pr?0:1),nr=pr?"after":"before",Fn=Mr?Ht.left:Ht.right}else{!je&&(xn==De||xn==Se)&&xn++,nr=xn==0?"after":xn==p.text.length?"before":wt(t,oe,xn-(je?1:0)).bottom+pe<=V==je?"after":"before";var Wr=zn(t,Nt(F,xn,nr),"line",p,oe);Fn=Wr.left,hr=V<Wr.top?-1:V>=Wr.bottom?1:0}return xn=Oe(p.text,xn,1),In(F,xn,nr,hr,B-Fn)}function Nr(t,p,F,B,V,oe,pe){var Se=He(function(bt){var Xt=V[bt],Ht=Xt.level!=1;return cr(zn(t,Nt(F,Ht?Xt.to:Xt.from,Ht?"before":"after"),"line",p,B),oe,pe,!0)},0,V.length-1),De=V[Se];if(Se>0){var je=De.level!=1,ut=zn(t,Nt(F,je?De.from:De.to,je?"after":"before"),"line",p,B);cr(ut,oe,pe,!0)&&ut.top>pe&&(De=V[Se-1])}return De}function $r(t,p,F,B,V,oe,pe){var Se=Qn(t,p,B,pe),De=Se.begin,je=Se.end;/\s/.test(p.text.charAt(je-1))&&je--;for(var ut=null,bt=null,Xt=0;Xt<V.length;Xt++){var Ht=V[Xt];if(Ht.from>=je||Ht.to<=De)continue;var xn=Ht.level!=1,Fn=wt(t,B,xn?Math.min(je,Ht.to)-1:Math.max(De,Ht.from)).right,nr=Fn<oe?oe-Fn+1e9:Fn-oe;(!ut||bt>nr)&&(ut=Ht,bt=nr)}return ut||(ut=V[V.length-1]),ut.from<De&&(ut={from:De,to:ut.to,level:ut.level}),ut.to>je&&(ut={from:ut.from,to:je,level:ut.level}),ut}var fa;function ia(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(fa==null){fa=A("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)fa.appendChild(document.createTextNode("x")),fa.appendChild(A("br"));fa.appendChild(document.createTextNode("x"))}_(t.measure,fa);var F=fa.offsetHeight/50;return F>3&&(t.cachedTextHeight=F),S(t.measure),F||1}function na(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=A("span","xxxxxxxxxx"),F=A("pre",[p],"CodeMirror-line-like");_(t.measure,F);var B=p.getBoundingClientRect(),V=(B.right-B.left)/10;return V>2&&(t.cachedCharWidth=V),V||10}function kr(t){for(var p=t.display,F={},B={},V=p.gutters.clientLeft,oe=p.gutters.firstChild,pe=0;oe;oe=oe.nextSibling,++pe){var Se=t.display.gutterSpecs[pe].className;F[Se]=oe.offsetLeft+oe.clientLeft+V,B[Se]=oe.clientWidth}return{fixedPos:Wa(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:F,gutterWidth:B,wrapperWidth:p.wrapper.clientWidth}}function Wa(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function mi(t){var p=ia(t.display),F=t.options.lineWrapping,B=F&&Math.max(5,t.display.scroller.clientWidth/na(t.display)-3);return function(V){if(tr(t.doc,V))return 0;var oe=0;if(V.widgets)for(var pe=0;pe<V.widgets.length;pe++)V.widgets[pe].height&&(oe+=V.widgets[pe].height);return F?oe+(Math.ceil(V.text.length/B)||1)*p:oe+p}}function Qr(t){var p=t.doc,F=mi(t);p.iter(function(B){var V=F(B);V!=B.height&&Cn(B,V)})}function zr(t,p,F,B){var V=t.display;if(!F&&Je(p).getAttribute("cm-not-content")=="true")return null;var oe,pe,Se=V.lineSpace.getBoundingClientRect();try{oe=p.clientX-Se.left,pe=p.clientY-Se.top}catch(bt){return null}var De=Fr(t,oe,pe),je;if(B&&De.xRel>0&&(je=Kt(t.doc,De.line).text).length==De.ch){var ut=z(je,je.length,t.options.tabSize)-je.length;De=Nt(De.line,Math.max(0,Math.round((oe-tt(t.display).left)/na(t.display))-ut))}return De}function Xr(t,p){if(p>=t.display.viewTo)return null;if(p-=t.display.viewFrom,p<0)return null;for(var F=t.display.view,B=0;B<F.length;B++)if(p-=F[B].size,p<0)return B}function Vr(t,p,F,B){p==null&&(p=t.doc.first),F==null&&(F=t.doc.first+t.doc.size),B||(B=0);var V=t.display;if(B&&F<V.viewTo&&(V.updateLineNumbers==null||V.updateLineNumbers>p)&&(V.updateLineNumbers=p),t.curOp.viewChanged=!0,p>=V.viewTo)La&&Wn(t.doc,p)<V.viewTo&&sa(t);else if(F<=V.viewFrom)La&&Dn(t.doc,F+B)>V.viewFrom?sa(t):(V.viewFrom+=B,V.viewTo+=B);else if(p<=V.viewFrom&&F>=V.viewTo)sa(t);else if(p<=V.viewFrom){var oe=_a(t,F,F+B,1);oe?(V.view=V.view.slice(oe.index),V.viewFrom=oe.lineN,V.viewTo+=B):sa(t)}else if(F>=V.viewTo){var pe=_a(t,p,p,-1);pe?(V.view=V.view.slice(0,pe.index),V.viewTo=pe.lineN):sa(t)}else{var Se=_a(t,p,p,-1),De=_a(t,F,F+B,1);Se&&De?(V.view=V.view.slice(0,Se.index).concat(yr(t,Se.lineN,De.lineN)).concat(V.view.slice(De.index)),V.viewTo+=B):sa(t)}var je=V.externalMeasured;je&&(F<je.lineN?je.lineN+=B:p<je.lineN+je.size&&(V.externalMeasured=null))}function ha(t,p,F){t.curOp.viewChanged=!0;var B=t.display,V=t.display.externalMeasured;if(V&&p>=V.lineN&&p<V.lineN+V.size&&(B.externalMeasured=null),p<B.viewFrom||p>=B.viewTo)return;var oe=B.view[Xr(t,p)];if(oe.node==null)return;var pe=oe.changes||(oe.changes=[]);ce(pe,F)==-1&&pe.push(F)}function sa(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function _a(t,p,F,B){var V=Xr(t,p),oe,pe=t.display.view;if(!La||F==t.doc.first+t.doc.size)return{index:V,lineN:F};for(var Se=t.display.viewFrom,De=0;De<V;De++)Se+=pe[De].size;if(Se!=p){if(B>0){if(V==pe.length-1)return null;oe=Se+pe[V].size-p,V++}else oe=Se-p;p+=oe,F+=oe}for(;Wn(t.doc,F)!=F;){if(V==(B<0?0:pe.length-1))return null;F+=B*pe[V-(B<0?1:0)].size,V+=B}return{index:V,lineN:F}}function Ha(t,p,F){var B=t.display,V=B.view;V.length==0||p>=B.viewTo||F<=B.viewFrom?(B.view=yr(t,p,F),B.viewFrom=p):(B.viewFrom>p?B.view=yr(t,p,B.viewFrom).concat(B.view):B.viewFrom<p&&(B.view=B.view.slice(Xr(t,p))),B.viewFrom=p,B.viewTo<F?B.view=B.view.concat(yr(t,B.viewTo,F)):B.viewTo>F&&(B.view=B.view.slice(0,Xr(t,F)))),B.viewTo=F}function Ua(t){for(var p=t.display.view,F=0,B=0;B<p.length;B++){var V=p[B];!V.hidden&&(!V.node||V.changes)&&++F}return F}function Pa(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Ei(t,p){p===void 0&&(p=!0);for(var F=t.doc,B={},V=B.cursors=document.createDocumentFragment(),oe=B.selection=document.createDocumentFragment(),pe=0;pe<F.sel.ranges.length;pe++){if(!p&&pe==F.sel.primIndex)continue;var Se=F.sel.ranges[pe];if(Se.from().line>=t.display.viewTo||Se.to().line<t.display.viewFrom)continue;var De=Se.empty();(De||t.options.showCursorWhenSelecting)&&Ti(t,Se.head,V),De||Da(t,Se,oe)}return B}function Ti(t,p,F){var B=zn(t,p,"div",null,null,!t.options.singleCursorHeightPerLine),V=F.appendChild(A("div","\xA0","CodeMirror-cursor"));if(V.style.left=B.left+"px",V.style.top=B.top+"px",V.style.height=Math.max(0,B.bottom-B.top)*t.options.cursorHeight+"px",B.other){var oe=F.appendChild(A("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));oe.style.display="",oe.style.left=B.other.left+"px",oe.style.top=B.other.top+"px",oe.style.height=(B.other.bottom-B.other.top)*.85+"px"}}function ja(t,p){return t.top-p.top||t.left-p.left}function Da(t,p,F){var B=t.display,V=t.doc,oe=document.createDocumentFragment(),pe=tt(t.display),Se=pe.left,De=Math.max(B.sizerWidth,Ye(t)-B.sizer.offsetLeft)-pe.right,je=V.direction=="ltr";function ut(pr,Wr,da,aa){Wr<0&&(Wr=0),Wr=Math.round(Wr),aa=Math.round(aa),oe.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+pr+`px;
top: `+Wr+"px; width: "+(da==null?De-pr:da)+`px;
height: `+(aa-Wr)+"px"))}function bt(pr,Wr,da){var aa=Kt(V,pr),Ca=aa.text.length,Ya,_i;function ri(ci,Bi){return Er(t,Nt(pr,ci),"div",aa,Bi)}function zi(ci,Bi,wi){var pi=Ln(t,aa,null,ci),di=Bi=="ltr"==(wi=="after")?"left":"right",oi=wi=="after"?pi.begin:pi.end-(/\s/.test(aa.text.charAt(pi.end-1))?2:1);return ri(oi,di)[di]}var ji=dt(aa,V.direction);return Qe(ji,Wr||0,da==null?Ca:da,function(ci,Bi,wi,pi){var di=wi=="ltr",oi=ri(ci,di?"left":"right"),Fi=ri(Bi-1,di?"right":"left"),Ts=Wr==null&&ci==0,es=da==null&&Bi==Ca,Di=pi==0,Po=!ji||pi==ji.length-1;if(Fi.top-oi.top<=3){var bi=(je?Ts:es)&&Di,ru=(je?es:Ts)&&Po,Fo=bi?Se:(di?oi:Fi).left,ds=ru?De:(di?Fi:oi).right;ut(Fo,oi.top,ds-Fo,oi.bottom)}else{var fs,Ii,Os,au;di?(fs=je&&Ts&&Di?Se:oi.left,Ii=je?De:zi(ci,wi,"before"),Os=je?Se:zi(Bi,wi,"after"),au=je&&es&&Po?De:Fi.right):(fs=je?zi(ci,wi,"before"):Se,Ii=!je&&Ts&&Di?De:oi.right,Os=!je&&es&&Po?Se:Fi.left,au=je?zi(Bi,wi,"after"):De),ut(fs,oi.top,Ii-fs,oi.bottom),oi.bottom<Fi.top&&ut(Se,oi.bottom,null,Fi.top),ut(Os,Fi.top,au-Os,Fi.bottom)}(!Ya||ja(oi,Ya)<0)&&(Ya=oi),ja(Fi,Ya)<0&&(Ya=Fi),(!_i||ja(oi,_i)<0)&&(_i=oi),ja(Fi,_i)<0&&(_i=Fi)}),{start:Ya,end:_i}}var Xt=p.from(),Ht=p.to();if(Xt.line==Ht.line)bt(Xt.line,Xt.ch,Ht.ch);else{var xn=Kt(V,Xt.line),Fn=Kt(V,Ht.line),nr=nn(xn)==nn(Fn),hr=bt(Xt.line,Xt.ch,nr?xn.text.length+1:null).end,Mr=bt(Ht.line,nr?0:null,Ht.ch).start;nr&&(hr.top<Mr.top-2?(ut(hr.right,hr.top,null,hr.bottom),ut(Se,Mr.top,Mr.left,Mr.bottom)):ut(hr.right,hr.top,Mr.left-hr.right,hr.bottom)),hr.bottom<Mr.top&&ut(Se,hr.bottom,null,Mr.top)}F.appendChild(oe)}function $a(t){if(!t.state.focused)return;var p=t.display;clearInterval(p.blinker);var F=!0;p.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?p.blinker=setInterval(function(){t.hasFocus()||no(t),p.cursorDiv.style.visibility=(F=!F)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}function to(t){t.state.focused||(t.display.input.focus(),Li(t))}function Mo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,no(t))},100)}function Li(t,p){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(Ce(t,"focus",t,p),t.state.focused=!0,G(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()),$a(t)}function no(t,p){if(t.state.delayingBlurEvent)return;t.state.focused&&(Ce(t,"blur",t,p),t.state.focused=!1,C(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,F=p.lineDiv.offsetTop,B=0;B<p.view.length;B++){var V=p.view[B],oe=t.options.lineWrapping,pe=void 0,Se=0;if(V.hidden)continue;if(O&&g<8){var De=V.node.offsetTop+V.node.offsetHeight;pe=De-F,F=De}else{var je=V.node.getBoundingClientRect();pe=je.bottom-je.top,!oe&&V.text.firstChild&&(Se=V.text.firstChild.getBoundingClientRect().right-je.left-1)}var ut=V.line.height-pe;if((ut>.005||ut<-.005)&&(Cn(V.line,pe),gi(V.line),V.rest))for(var bt=0;bt<V.rest.length;bt++)gi(V.rest[bt]);if(Se>t.display.sizerWidth){var Xt=Math.ceil(Se/na(t.display));Xt>t.display.maxLineLength&&(t.display.maxLineLength=Xt,t.display.maxLine=V.line,t.display.maxLineChanged=!0)}}}function gi(t){if(t.widgets)for(var p=0;p<t.widgets.length;++p){var F=t.widgets[p],B=F.node.parentNode;B&&(F.height=B.offsetHeight)}}function uo(t,p,F){var B=F&&F.top!=null?Math.max(0,F.top):t.scroller.scrollTop;B=Math.floor(B-Gr(t));var V=F&&F.bottom!=null?F.bottom:B+t.wrapper.clientHeight,oe=_n(p,B),pe=_n(p,V);if(F&&F.ensure){var Se=F.ensure.from.line,De=F.ensure.to.line;Se<oe?(oe=Se,pe=_n(p,Ir(Kt(p,Se))+t.wrapper.clientHeight)):Math.min(De,p.lastLine())>=pe&&(oe=_n(p,Ir(Kt(p,De))-t.wrapper.clientHeight),pe=De)}return{from:oe,to:Math.max(pe,oe+1)}}function Io(t,p){if(he(t,"scrollCursorIntoView"))return;var F=t.display,B=F.sizer.getBoundingClientRect(),V=null;if(p.top+B.top<0?V=!0:p.bottom+B.top>(window.innerHeight||document.documentElement.clientHeight)&&(V=!1),V!=null&&!o){var oe=A("div","\u200B",null,`position: absolute;
top: `+(p.top-F.viewOffset-Gr(t.display))+`px;
height: `+(p.bottom-p.top+nt(t)+F.barHeight)+`px;
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");t.display.lineSpace.appendChild(oe),oe.scrollIntoView(V),t.display.lineSpace.removeChild(oe)}}function Lo(t,p,F,B){B==null&&(B=0);var V;!t.options.lineWrapping&&p==F&&(p=p.ch?Nt(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,F=p.sticky=="before"?Nt(p.line,p.ch+1,"before"):p);for(var oe=0;oe<5;oe++){var pe=!1,Se=zn(t,p),De=!F||F==p?Se:zn(t,F);V={left:Math.min(Se.left,De.left),top:Math.min(Se.top,De.top)-B,right:Math.max(Se.left,De.left),bottom:Math.max(Se.bottom,De.bottom)+B};var je=Vi(t,V),ut=t.doc.scrollTop,bt=t.doc.scrollLeft;if(je.scrollTop!=null&&(Ji(t,je.scrollTop),Math.abs(t.doc.scrollTop-ut)>1&&(pe=!0)),je.scrollLeft!=null&&(ni(t,je.scrollLeft),Math.abs(t.doc.scrollLeft-bt)>1&&(pe=!0)),!pe)break}return V}function bo(t,p){var F=Vi(t,p);F.scrollTop!=null&&Ji(t,F.scrollTop),F.scrollLeft!=null&&ni(t,F.scrollLeft)}function Vi(t,p){var F=t.display,B=ia(t.display);p.top<0&&(p.top=0);var V=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:F.scroller.scrollTop,oe=Pe(t),pe={};p.bottom-p.top>oe&&(p.bottom=p.top+oe);var Se=t.doc.height+Fe(F),De=p.top<B,je=p.bottom>Se-B;if(p.top<V)pe.scrollTop=De?0:p.top;else if(p.bottom>V+oe){var ut=Math.min(p.top,(je?Se:p.bottom)-oe);ut!=V&&(pe.scrollTop=ut)}var bt=t.options.fixedGutter?0:F.gutters.offsetWidth,Xt=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:F.scroller.scrollLeft-bt,Ht=Ye(t)-F.gutters.offsetWidth,xn=p.right-p.left>Ht;return xn&&(p.right=p.left+Ht),p.left<10?pe.scrollLeft=0:p.left<Xt?pe.scrollLeft=Math.max(0,p.left+bt-(xn?0:10)):p.right>Ht+Xt-3&&(pe.scrollLeft=p.right+(xn?0:10)-Ht),pe}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,F){(p!=null||F!=null)&&yo(t),p!=null&&(t.curOp.scrollLeft=p),F!=null&&(t.curOp.scrollTop=F)}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 F=bn(t,p.from),B=bn(t,p.to);ao(t,F,B,p.margin)}}function ao(t,p,F,B){var V=Vi(t,{left:Math.min(p.left,F.left),top:Math.min(p.top,F.top)-B,right:Math.max(p.right,F.right),bottom:Math.max(p.bottom,F.bottom)+B});Yi(t,V.scrollLeft,V.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),ii(t,100)}function Qi(t,p,F){if(p=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,p)),t.display.scroller.scrollTop==p&&!F)return;t.doc.scrollTop=p,t.display.scrollbars.setScrollTop(p),t.display.scroller.scrollTop!=p&&(t.display.scroller.scrollTop=p)}function ni(t,p,F,B){if(p=Math.max(0,Math.min(p,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(F?p==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-p)<2)&&!B)return;t.doc.scrollLeft=p,Ea(t),t.display.scroller.scrollLeft!=p&&(t.display.scroller.scrollLeft=p),t.display.scrollbars.setScrollLeft(p)}function Ni(t){var p=t.display,F=p.gutters.offsetWidth,B=Math.round(t.doc.height+Fe(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?F:0,docHeight:B,scrollHeight:B+nt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:F}}var Ri=function(t,p,F){this.cm=F;var B=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),V=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");B.tabIndex=V.tabIndex=-1,t(B),t(V),ke(B,"scroll",function(){B.clientHeight&&p(B.scrollTop,"vertical")}),ke(V,"scroll",function(){V.clientWidth&&p(V.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ri.prototype.update=function(t){var p=t.scrollWidth>t.clientWidth+1,F=t.scrollHeight>t.clientHeight+1,B=t.nativeBarWidth;if(F){this.vert.style.display="block",this.vert.style.bottom=p?B+"px":"0";var V=t.viewHeight-(p?B:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+V)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=F?B+"px":"0",this.horiz.style.left=t.barLeft+"px";var oe=t.viewWidth-t.barLeft-(F?B:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(B==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:F?B:0,bottom:p?B:0}},Ri.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ri.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ri.prototype.zeroWidthHack=function(){var t=s&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ie,this.disableVert=new ie},Ri.prototype.enableZeroWidthBar=function(t,p,F){t.style.pointerEvents="auto";function B(){var V=t.getBoundingClientRect(),oe=F=="vert"?document.elementFromPoint(V.right-1,(V.top+V.bottom)/2):document.elementFromPoint((V.right+V.left)/2,V.bottom-1);oe!=t?t.style.pointerEvents="none":p.set(1e3,B)}p.set(1e3,B)},Ri.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 Pi(t,p){p||(p=Ni(t));var F=t.display.barWidth,B=t.display.barHeight;Eo(t,p);for(var V=0;V<4&&F!=t.display.barWidth||B!=t.display.barHeight;V++)F!=t.display.barWidth&&t.options.lineWrapping&&ro(t),Eo(t,Ni(t)),F=t.display.barWidth,B=t.display.barHeight}function Eo(t,p){var F=t.display,B=F.scrollbars.update(p);F.sizer.style.paddingRight=(F.barWidth=B.right)+"px",F.sizer.style.paddingBottom=(F.barHeight=B.bottom)+"px",F.heightForcer.style.borderBottom=B.bottom+"px solid transparent",B.right&&B.bottom?(F.scrollbarFiller.style.display="block",F.scrollbarFiller.style.height=B.bottom+"px",F.scrollbarFiller.style.width=B.right+"px"):F.scrollbarFiller.style.display="",B.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(F.gutterFiller.style.display="block",F.gutterFiller.style.height=B.bottom+"px",F.gutterFiller.style.width=p.gutterWidth+"px"):F.gutterFiller.style.display=""}var xo={native:Ri,null:Zi};function Co(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&C(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,F){F=="horizontal"?ni(t,p):Ji(t,p)},t),t.display.scrollbars.addClass&&G(t.display.wrapper,t.display.scrollbars.addClass)}var io=0;function ki(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},Dr(t.curOp)}function qi(t){var p=t.curOp;p&&Ut(p,function(F){for(var B=0;B<F.ops.length;B++)F.ops[B].cm.curOp=null;ko(F)})}function ko(t){for(var p=t.ops,F=0;F<p.length;F++)oo(p[F]);for(var B=0;B<p.length;B++)so(p[B]);for(var V=0;V<p.length;V++)So(p[V]);for(var oe=0;oe<p.length;oe++)Uo(p[oe]);for(var pe=0;pe<p.length;pe++)jo(p[pe])}function oo(t){var p=t.cm,F=p.display;Bo(p),t.updateMaxLine&&Cr(p),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<F.viewFrom||t.scrollToPos.to.line>=F.viewTo)||F.maxLineChanged&&p.options.lineWrapping,t.update=t.mustUpdate&&new xi(p,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function so(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function So(t){var p=t.cm,F=p.display;t.updatedDisplay&&ro(p),t.barMeasure=Ni(p),F.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=qe(p,F.maxLine,F.maxLine.text.length).left+3,p.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(F.scroller.clientWidth,F.sizer.offsetLeft+t.adjustWidthTo+nt(p)+p.display.barWidth),t.maxScrollLeft=Math.max(0,F.sizer.offsetLeft+t.adjustWidthTo-Ye(p))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=F.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&&ni(p,Math.min(p.display.scroller.scrollLeft,t.maxScrollLeft),!0),p.display.maxLineChanged=!1);var F=t.focus&&t.focus==J();t.preparedSelection&&p.display.input.showSelection(t.preparedSelection,F),(t.updatedDisplay||t.startHeight!=p.doc.height)&&Pi(p,t.barMeasure),t.updatedDisplay&&wa(p,t.barMeasure),t.selectionChanged&&$a(p),p.state.focused&&t.updateInput&&p.display.input.reset(t.typing),F&&to(t.cm)}function jo(t){var p=t.cm,F=p.display,B=p.doc;if(t.updatedDisplay&&Oo(p,t.update),F.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(F.wheelStartX=F.wheelStartY=null),t.scrollTop!=null&&Qi(p,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ni(p,t.scrollLeft,!0,!0),t.scrollToPos){var V=Lo(p,Sn(B,t.scrollToPos.from),Sn(B,t.scrollToPos.to),t.scrollToPos.margin);Io(p,V)}var oe=t.maybeHiddenMarkers,pe=t.maybeUnhiddenMarkers;if(oe)for(var Se=0;Se<oe.length;++Se)oe[Se].lines.length||Ce(oe[Se],"hide");if(pe)for(var De=0;De<pe.length;++De)pe[De].lines.length&&Ce(pe[De],"unhide");F.wrapper.offsetHeight&&(B.scrollTop=p.display.scroller.scrollTop),t.changeObjs&&Ce(p,"changes",p,t.changeObjs),t.update&&t.update.finish()}function fi(t,p){if(t.curOp)return p();ki(t);try{return p()}finally{qi(t)}}function Ka(t,p){return function(){if(t.curOp)return p.apply(t,arguments);ki(t);try{return p.apply(t,arguments)}finally{qi(t)}}}function ai(t){return function(){if(this.curOp)return t.apply(this,arguments);ki(this);try{return t.apply(this,arguments)}finally{qi(this)}}}function Ja(t){return function(){var p=this.cm;if(!p||p.curOp)return t.apply(this,arguments);ki(p);try{return t.apply(this,arguments)}finally{qi(p)}}}function ii(t,p){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(p,W(wo,t))}function wo(t){var p=t.doc;if(p.highlightFrontier>=t.display.viewTo)return;var F=+new Date+t.options.workTime,B=Na(t,p.highlightFrontier),V=[];p.iter(B.line,Math.min(p.first+p.size,t.display.viewTo+500),function(oe){if(B.line>=t.display.viewFrom){var pe=oe.styles,Se=oe.text.length>t.options.maxHighlightLength?zt(p.mode,B.state):null,De=ma(t,oe,B,!0);Se&&(B.state=Se),oe.styles=De.styles;var je=oe.styleClasses,ut=De.classes;ut?oe.styleClasses=ut:je&&(oe.styleClasses=null);for(var bt=!pe||pe.length!=oe.styles.length||je!=ut&&(!je||!ut||je.bgClass!=ut.bgClass||je.textClass!=ut.textClass),Xt=0;!bt&&Xt<pe.length;++Xt)bt=pe[Xt]!=oe.styles[Xt];bt&&V.push(B.line),oe.stateAfter=B.save(),B.nextLine()}else oe.text.length<=t.options.maxHighlightLength&&Xa(t,oe.text,B),oe.stateAfter=B.line%5==0?B.save():null,B.nextLine();if(+new Date>F)return ii(t,t.options.workDelay),!0}),p.highlightFrontier=B.line,p.modeFrontier=Math.max(p.modeFrontier,B.line),V.length&&fi(t,function(){for(var oe=0;oe<V.length;oe++)ha(t,V[oe],"text")})}var xi=function(t,p,F){var B=t.display;this.viewport=p,this.visible=uo(B,t.doc,p),this.editorIsHidden=!B.wrapper.offsetWidth,this.wrapperHeight=B.wrapper.clientHeight,this.wrapperWidth=B.wrapper.clientWidth,this.oldDisplayWidth=Ye(t),this.force=F,this.dims=kr(t),this.events=[]};xi.prototype.signal=function(t,p){Ee(t,p)&&this.events.push(arguments)},xi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ce.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=nt(t)+"px",p.sizer.style.marginBottom=-p.nativeBarWidth+"px",p.sizer.style.borderRightWidth=nt(t)+"px",p.scrollbarsClipped=!0)}function To(t){if(t.hasFocus())return null;var p=J();if(!p||!k(t.display.lineDiv,p))return null;var F={activeElt:p};if(window.getSelection){var B=window.getSelection();B.anchorNode&&B.extend&&k(t.display.lineDiv,B.anchorNode)&&(F.anchorNode=B.anchorNode,F.anchorOffset=B.anchorOffset,F.focusNode=B.focusNode,F.focusOffset=B.focusOffset)}return F}function $i(t){if(!t||!t.activeElt||t.activeElt==J())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&k(document.body,t.anchorNode)&&k(document.body,t.focusNode)){var p=window.getSelection(),F=document.createRange();F.setEnd(t.anchorNode,t.anchorOffset),F.collapse(!1),p.removeAllRanges(),p.addRange(F),p.extend(t.focusNode,t.focusOffset)}}function Wi(t,p){var F=t.display,B=t.doc;if(p.editorIsHidden)return sa(t),!1;if(!p.force&&p.visible.from>=F.viewFrom&&p.visible.to<=F.viewTo&&(F.updateLineNumbers==null||F.updateLineNumbers>=F.viewTo)&&F.renderedView==F.view&&Ua(t)==0)return!1;za(t)&&(sa(t),p.dims=kr(t));var V=B.first+B.size,oe=Math.max(p.visible.from-t.options.viewportMargin,B.first),pe=Math.min(V,p.visible.to+t.options.viewportMargin);F.viewFrom<oe&&oe-F.viewFrom<20&&(oe=Math.max(B.first,F.viewFrom)),F.viewTo>pe&&F.viewTo-pe<20&&(pe=Math.min(V,F.viewTo)),La&&(oe=Wn(t.doc,oe),pe=Dn(t.doc,pe));var Se=oe!=F.viewFrom||pe!=F.viewTo||F.lastWrapHeight!=p.wrapperHeight||F.lastWrapWidth!=p.wrapperWidth;Ha(t,oe,pe),F.viewOffset=Ir(Kt(t.doc,F.viewFrom)),t.display.mover.style.top=F.viewOffset+"px";var De=Ua(t);if(!Se&&De==0&&!p.force&&F.renderedView==F.view&&(F.updateLineNumbers==null||F.updateLineNumbers>=F.viewTo))return!1;var je=To(t);return De>4&&(F.lineDiv.style.display="none"),Wo(t,F.updateLineNumbers,p.dims),De>4&&(F.lineDiv.style.display=""),F.renderedView=F.view,$i(je),S(F.cursorDiv),S(F.selectionDiv),F.gutters.style.height=F.sizer.style.minHeight=0,Se&&(F.lastWrapHeight=p.wrapperHeight,F.lastWrapWidth=p.wrapperWidth,ii(t,400)),F.updateLineNumbers=null,!0}function Oo(t,p){for(var F=p.viewport,B=!0;;B=!1){if(!B||!t.options.lineWrapping||p.oldDisplayWidth==Ye(t)){if(F&&F.top!=null&&(F={top:Math.min(t.doc.height+Fe(t.display)-Pe(t),F.top)}),p.visible=uo(t.display,t.doc,F),p.visible.from>=t.display.viewFrom&&p.visible.to<=t.display.viewTo)break}else B&&(p.visible=uo(t.display,t.doc,F));if(!Wi(t,p))break;ro(t);var V=Ni(t);Pa(t),Pi(t,V),wa(t,V),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 F=new xi(t,p);if(Wi(t,F)){ro(t),Oo(t,F);var B=Ni(t);Pa(t),Pi(t,B),wa(t,B),F.finish()}}function Wo(t,p,F){var B=t.display,V=t.options.lineNumbers,oe=B.lineDiv,pe=oe.firstChild;function Se(xn){var Fn=xn.nextSibling;return e&&s&&t.display.currentWheelTarget==xn?xn.style.display="none":xn.parentNode.removeChild(xn),Fn}for(var De=B.view,je=B.viewFrom,ut=0;ut<De.length;ut++){var bt=De[ut];if(!bt.hidden)if(!bt.node||bt.node.parentNode!=oe){var Xt=qr(t,bt,je,F);oe.insertBefore(Xt,pe)}else{for(;pe!=bt.node;)pe=Se(pe);var Ht=V&&p!=null&&p<=je&&bt.lineNumber;bt.changes&&(ce(bt.changes,"gutter")>-1&&(Ht=!1),$n(t,bt,je,F)),Ht&&(S(bt.lineNumber),bt.lineNumber.appendChild(document.createTextNode(Ft(t.options,je)))),pe=bt.node.nextSibling}je+=bt.size}for(;pe;)pe=Se(pe)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function wa(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+nt(t)+"px"}function Ea(t){var p=t.display,F=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var B=Wa(p)-p.scroller.scrollLeft+t.doc.scrollLeft,V=p.gutters.offsetWidth,oe=B+"px",pe=0;pe<F.length;pe++)if(!F[pe].hidden){t.options.fixedGutter&&(F[pe].gutter&&(F[pe].gutter.style.left=oe),F[pe].gutterBackground&&(F[pe].gutterBackground.style.left=oe));var Se=F[pe].alignable;if(Se)for(var De=0;De<Se.length;De++)Se[De].style.left=oe}t.options.fixedGutter&&(p.gutters.style.left=B+V+"px")}function za(t){if(!t.options.lineNumbers)return!1;var p=t.doc,F=Ft(t.options,p.first+p.size-1),B=t.display;if(F.length!=B.lineNumChars){var V=B.measure.appendChild(A("div",[A("div",F)],"CodeMirror-linenumber CodeMirror-gutter-elt")),oe=V.firstChild.offsetWidth,pe=V.offsetWidth-oe;return B.lineGutter.style.width="",B.lineNumInnerWidth=Math.max(oe,B.lineGutter.offsetWidth-pe)+1,B.lineNumWidth=B.lineNumInnerWidth+pe,B.lineNumChars=B.lineNumInnerWidth?F.length:-1,B.lineGutter.style.width=B.lineNumWidth+"px",lo(t.display),!0}return!1}function ui(t,p){for(var F=[],B=!1,V=0;V<t.length;V++){var oe=t[V],pe=null;if(typeof oe!="string"&&(pe=oe.style,oe=oe.className),oe=="CodeMirror-linenumbers")if(p)B=!0;else continue;F.push({className:oe,style:pe})}return p&&!B&&F.push({className:"CodeMirror-linenumbers",style:null}),F}function eo(t){var p=t.gutters,F=t.gutterSpecs;S(p),t.lineGutter=null;for(var B=0;B<F.length;++B){var V=F[B],oe=V.className,pe=V.style,Se=p.appendChild(A("div",null,"CodeMirror-gutter "+oe));pe&&(Se.style.cssText=pe),oe=="CodeMirror-linenumbers"&&(t.lineGutter=Se,Se.style.width=(t.lineNumWidth||1)+"px")}p.style.display=F.length?"":"none",lo(t)}function Ui(t){eo(t.display),Vr(t),Ea(t)}function ho(t,p,F,B){var V=this;this.input=F,V.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),V.scrollbarFiller.setAttribute("cm-not-content","true"),V.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),V.gutterFiller.setAttribute("cm-not-content","true"),V.lineDiv=j("div",null,"CodeMirror-code"),V.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),V.cursorDiv=A("div",null,"CodeMirror-cursors"),V.measure=A("div",null,"CodeMirror-measure"),V.lineMeasure=A("div",null,"CodeMirror-measure"),V.lineSpace=j("div",[V.measure,V.lineMeasure,V.selectionDiv,V.cursorDiv,V.lineDiv],null,"position: relative; outline: none");var oe=j("div",[V.lineSpace],"CodeMirror-lines");V.mover=A("div",[oe],null,"position: relative"),V.sizer=A("div",[V.mover],"CodeMirror-sizer"),V.sizerWidth=null,V.heightForcer=A("div",null,null,"position: absolute; height: "+ue+"px; width: 1px;"),V.gutters=A("div",null,"CodeMirror-gutters"),V.lineGutter=null,V.scroller=A("div",[V.sizer,V.heightForcer,V.gutters],"CodeMirror-scroll"),V.scroller.setAttribute("tabIndex","-1"),V.wrapper=A("div",[V.scrollbarFiller,V.gutterFiller,V.scroller],"CodeMirror"),O&&g<8&&(V.gutters.style.zIndex=-1,V.scroller.style.paddingRight=0),!e&&!(T&&h)&&(V.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(V.wrapper):t(V.wrapper)),V.viewFrom=V.viewTo=p.first,V.reportedViewFrom=V.reportedViewTo=p.first,V.view=[],V.renderedView=null,V.externalMeasured=null,V.viewOffset=0,V.lastWrapHeight=V.lastWrapWidth=0,V.updateLineNumbers=null,V.nativeBarWidth=V.barHeight=V.barWidth=0,V.scrollbarsClipped=!1,V.lineNumWidth=V.lineNumInnerWidth=V.lineNumChars=null,V.alignWidgets=!1,V.cachedCharWidth=V.cachedTextHeight=V.cachedPaddingH=null,V.maxLine=null,V.maxLineLength=0,V.maxLineChanged=!1,V.wheelDX=V.wheelDY=V.wheelStartX=V.wheelStartY=null,V.shift=!1,V.selForContextMenu=null,V.activeTouch=null,V.gutterSpecs=ui(B.gutters,B.lineNumbers),eo(V),F.init(V)}var Oi=0,ei=null;O?ei=-.53:T?ei=15:r?ei=-.7:n&&(ei=-1/3);function po(t){var p=t.wheelDeltaX,F=t.wheelDeltaY;return p==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(p=t.detail),F==null&&t.detail&&t.axis==t.VERTICAL_AXIS?F=t.detail:F==null&&(F=t.wheelDelta),{x:p,y:F}}function Hi(t){var p=po(t);return p.x*=ei,p.y*=ei,p}function mo(t,p){var F=po(p),B=F.x,V=F.y,oe=t.display,pe=oe.scroller,Se=pe.scrollWidth>pe.clientWidth,De=pe.scrollHeight>pe.clientHeight;if(!(B&&Se||V&&De))return;if(V&&s&&e){e:for(var je=p.target,ut=oe.view;je!=pe;je=je.parentNode)for(var bt=0;bt<ut.length;bt++)if(ut[bt].node==je){t.display.currentWheelTarget=je;break e}}if(B&&!T&&!c&&ei!=null){V&&De&&Ji(t,Math.max(0,pe.scrollTop+V*ei)),ni(t,Math.max(0,pe.scrollLeft+B*ei)),(!V||V&&De)&&we(p),oe.wheelStartX=null;return}if(V&&ei!=null){var Xt=V*ei,Ht=t.doc.scrollTop,xn=Ht+oe.wrapper.clientHeight;Xt<0?Ht=Math.max(0,Ht+Xt-50):xn=Math.min(t.doc.height,xn+Xt+50),fo(t,{top:Ht,bottom:xn})}Oi<20&&(oe.wheelStartX==null?(oe.wheelStartX=pe.scrollLeft,oe.wheelStartY=pe.scrollTop,oe.wheelDX=B,oe.wheelDY=V,setTimeout(function(){if(oe.wheelStartX==null)return;var Fn=pe.scrollLeft-oe.wheelStartX,nr=pe.scrollTop-oe.wheelStartY,hr=nr&&oe.wheelDY&&nr/oe.wheelDY||Fn&&oe.wheelDX&&Fn/oe.wheelDX;if(oe.wheelStartX=oe.wheelStartY=null,!hr)return;ei=(ei*Oi+hr)/(Oi+1),++Oi},200)):(oe.wheelDX+=B,oe.wheelDY+=V))}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 F=this.ranges[p],B=t.ranges[p];if(!qn(F.anchor,B.anchor)||!qn(F.head,B.head))return!1}return!0},hi.prototype.deepCopy=function(){for(var t=[],p=0;p<this.ranges.length;p++)t[p]=new Aa(Qt(this.ranges[p].anchor),Qt(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 F=0;F<this.ranges.length;F++){var B=this.ranges[F];if(pn(p,B.from())>=0&&pn(t,B.to())<=0)return F}return-1};var Aa=function(t,p){this.anchor=t,this.head=p};Aa.prototype.from=function(){return Gn(this.anchor,this.head)},Aa.prototype.to=function(){return Vn(this.anchor,this.head)},Aa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pa(t,p,F){var B=t&&t.options.selectionsMayTouch,V=p[F];p.sort(function(Xt,Ht){return pn(Xt.from(),Ht.from())}),F=ce(p,V);for(var oe=1;oe<p.length;oe++){var pe=p[oe],Se=p[oe-1],De=pn(Se.to(),pe.from());if(B&&!pe.empty()?De>0:De>=0){var je=Gn(Se.from(),pe.from()),ut=Vn(Se.to(),pe.to()),bt=Se.empty()?pe.from()==pe.head:Se.from()==Se.head;oe<=F&&--F,p.splice(--oe,2,new Aa(bt?ut:je,bt?je:ut))}}return new hi(p,F)}function gr(t,p){return new hi([new Aa(t,p||t)],0)}function Yr(t){return t.text?Nt(t.from.line+t.text.length-1,U(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function ba(t,p){if(pn(t,p.from)<0)return t;if(pn(t,p.to)<=0)return Yr(p);var F=t.line+p.text.length-(p.to.line-p.from.line)-1,B=t.ch;return t.line==p.to.line&&(B+=Yr(p).ch-p.to.ch),Nt(F,B)}function Ba(t,p){for(var F=[],B=0;B<t.sel.ranges.length;B++){var V=t.sel.ranges[B];F.push(new Aa(ba(V.anchor,p),ba(V.head,p)))}return pa(t.cm,F,t.sel.primIndex)}function Ci(t,p,F){return t.line==p.line?Nt(F.line,t.ch-p.ch+F.ch):Nt(F.line+(t.line-p.line),t.ch)}function Mi(t,p,F){for(var B=[],V=Nt(t.first,0),oe=V,pe=0;pe<p.length;pe++){var Se=p[pe],De=Ci(Se.from,V,oe),je=Ci(Yr(Se),V,oe);if(V=Se.to,oe=je,F=="around"){var ut=t.sel.ranges[pe],bt=pn(ut.head,ut.anchor)<0;B[pe]=new Aa(bt?je:De,bt?De:je)}else B[pe]=new Aa(De,De)}return new hi(B,t.sel.primIndex)}function ti(t){t.doc.mode=Bt(t.options,t.doc.modeOption),Si(t)}function Si(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,ii(t,100),t.state.modeGen++,t.curOp&&Vr(t)}function Ki(t,p){return p.from.ch==0&&p.to.ch==0&&U(p.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function go(t,p,F,B){function V(Mr){return F?F[Mr]:null}function oe(Mr,pr,Wr){ea(Mr,pr,Wr,B),Vt(Mr,"change",Mr,p)}function pe(Mr,pr){for(var Wr=[],da=Mr;da<pr;++da)Wr.push(new Or(je[da],V(da),B));return Wr}var Se=p.from,De=p.to,je=p.text,ut=Kt(t,Se.line),bt=Kt(t,De.line),Xt=U(je),Ht=V(je.length-1),xn=De.line-Se.line;if(p.full)t.insert(0,pe(0,je.length)),t.remove(je.length,t.size-je.length);else if(Ki(t,p)){var Fn=pe(0,je.length-1);oe(bt,bt.text,Ht),xn&&t.remove(Se.line,xn),Fn.length&&t.insert(Se.line,Fn)}else if(ut==bt)if(je.length==1)oe(ut,ut.text.slice(0,Se.ch)+Xt+ut.text.slice(De.ch),Ht);else{var nr=pe(1,je.length-1);nr.push(new Or(Xt+ut.text.slice(De.ch),Ht,B)),oe(ut,ut.text.slice(0,Se.ch)+je[0],V(0)),t.insert(Se.line+1,nr)}else if(je.length==1)oe(ut,ut.text.slice(0,Se.ch)+je[0]+bt.text.slice(De.ch),V(0)),t.remove(Se.line+1,xn);else{oe(ut,ut.text.slice(0,Se.ch)+je[0],V(0)),oe(bt,Xt+bt.text.slice(De.ch),Ht);var hr=pe(1,je.length-1);xn>1&&t.remove(Se.line+1,xn-1),t.insert(Se.line+1,hr)}Vt(t,"change",t,p)}function qa(t,p,F){function B(V,oe,pe){if(V.linked)for(var Se=0;Se<V.linked.length;++Se){var De=V.linked[Se];if(De.doc==oe)continue;var je=pe&&De.sharedHist;if(F&&!je)continue;p(De.doc,je),B(De.doc,V,je)}}B(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,Qr(t),ti(t),Ys(t),t.options.lineWrapping||Cr(t),t.options.mode=p.modeOption,Vr(t)}function Ys(t){(t.doc.direction=="rtl"?G:C)(t.display.lineDiv,"CodeMirror-rtl")}function Pl(t){fi(t,function(){Ys(t),Vr(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 F={from:Qt(p.from),to:Yr(p),text:gn(t,p.from,p.to)};return Rs(t,F,p.from.line,p.to.line+1),qa(t,function(B){return Rs(B,F,p.from.line,p.to.line+1)},!0),F}function Js(t){for(;t.length;){var p=U(t);if(p.ranges)t.pop();else break}}function Ml(t,p){if(p)return Js(t.done),U(t.done);if(t.done.length&&!U(t.done).ranges)return U(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),U(t.done)}function Qs(t,p,F,B){var V=t.history;V.undone.length=0;var oe=+new Date,pe,Se;if((V.lastOp==B||V.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&V.lastModTime>oe-(t.cm?t.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&(pe=Ml(V,V.lastOp==B)))Se=U(pe.changes),pn(p.from,p.to)==0&&pn(p.from,Se.to)==0?Se.to=Yr(p):pe.changes.push(Ds(t,p));else{var De=U(V.done);for((!De||!De.ranges)&&ms(t.sel,V.done),pe={changes:[Ds(t,p)],generation:V.generation},V.done.push(pe);V.done.length>V.undoDepth;)V.done.shift(),V.done[0].ranges||V.done.shift()}V.done.push(F),V.generation=++V.maxGeneration,V.lastModTime=V.lastSelTime=oe,V.lastOp=V.lastSelOp=B,V.lastOrigin=V.lastSelOrigin=p.origin,Se||Ce(t,"historyAdded")}function Il(t,p,F,B){var V=p.charAt(0);return V=="*"||V=="+"&&F.ranges.length==B.ranges.length&&F.somethingSelected()==B.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ps(t,p,F,B){var V=t.history,oe=B&&B.origin;F==V.lastSelOp||oe&&V.lastSelOrigin==oe&&(V.lastModTime==V.lastSelTime&&V.lastOrigin==oe||Il(t,oe,U(V.done),p))?V.done[V.done.length-1]=p:ms(p,V.done),V.lastSelTime=+new Date,V.lastSelOrigin=oe,V.lastSelOp=F,B&&B.clearRedo!==!1&&Js(V.undone)}function ms(t,p){var F=U(p);F&&F.ranges&&F.equals(t)||p.push(t)}function Rs(t,p,F,B){var V=p["spans_"+t.id],oe=0;t.iter(Math.max(t.first,F),Math.min(t.first+t.size,B),function(pe){pe.markedSpans&&((V||(V=p["spans_"+t.id]={}))[oe]=pe.markedSpans),++oe})}function gs(t){if(!t)return null;for(var p,F=0;F<t.length;++F)t[F].marker.explicitlyCleared?p||(p=t.slice(0,F)):p&&p.push(t[F]);return p?p.length?p:null:t}function Zs(t,p){var F=p["spans_"+t.id];if(!F)return null;for(var B=[],V=0;V<p.text.length;++V)B.push(gs(F[V]));return B}function Ps(t,p){var F=Zs(t,p),B=ya(t,p);if(!F)return B;if(!B)return F;for(var V=0;V<F.length;++V){var oe=F[V],pe=B[V];if(oe&&pe){e:for(var Se=0;Se<pe.length;++Se){for(var De=pe[Se],je=0;je<oe.length;++je)if(oe[je].marker==De.marker)continue e;oe.push(De)}}else pe&&(F[V]=pe)}return F}function Ho(t,p,F){for(var B=[],V=0;V<t.length;++V){var oe=t[V];if(oe.ranges){B.push(F?hi.prototype.deepCopy.call(oe):oe);continue}var pe=oe.changes,Se=[];B.push({changes:Se});for(var De=0;De<pe.length;++De){var je=pe[De],ut=void 0;if(Se.push({from:je.from,to:je.to,text:je.text}),p)for(var bt in je)(ut=bt.match(/^spans_(\d+)$/))&&(ce(p,Number(ut[1]))>-1&&(U(Se)[bt]=je[bt],delete je[bt]))}}return B}function vs(t,p,F,B){if(B){var V=t.anchor;if(F){var oe=pn(p,V)<0;oe!=pn(F,V)<0?(V=p,p=F):oe!=pn(p,F)<0&&(p=F)}return new Aa(V,p)}else return new Aa(F||p,p)}function _s(t,p,F,B,V){V==null&&(V=t.cm&&(t.cm.display.shift||t.extend)),vi(t,new hi([vs(t.sel.primary(),p,F,V)],0),B)}function $s(t,p,F){for(var B=[],V=t.cm&&(t.cm.display.shift||t.extend),oe=0;oe<t.sel.ranges.length;oe++)B[oe]=vs(t.sel.ranges[oe],p[oe],null,V);var pe=pa(t.cm,B,t.sel.primIndex);vi(t,pe,F)}function Ao(t,p,F,B){var V=t.sel.ranges.slice(0);V[p]=F,vi(t,pa(t.cm,V,t.sel.primIndex),B)}function el(t,p,F,B){vi(t,gr(p,F),B)}function Ll(t,p,F){var B={ranges:p.ranges,update:function(V){this.ranges=[];for(var oe=0;oe<V.length;oe++)this.ranges[oe]=new Aa(Sn(t,V[oe].anchor),Sn(t,V[oe].head))},origin:F&&F.origin};return Ce(t,"beforeSelectionChange",t,B),t.cm&&Ce(t.cm,"beforeSelectionChange",t.cm,B),B.ranges!=p.ranges?pa(t.cm,B.ranges,B.ranges.length-1):p}function tl(t,p,F){var B=t.history.done,V=U(B);V&&V.ranges?(B[B.length-1]=p,Ko(t,p,F)):vi(t,p,F)}function vi(t,p,F){Ko(t,p,F),ps(t,t.sel,t.cm?t.cm.curOp.id:NaN,F)}function Ko(t,p,F){(Ee(t,"beforeSelectionChange")||t.cm&&Ee(t.cm,"beforeSelectionChange"))&&(p=Ll(t,p,F));var B=F&&F.bias||(pn(p.primary().head,t.sel.primary().head)<0?-1:1);nl(t,al(t,p,B,!0)),!(F&&F.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,be(t.cm)),Vt(t,"cursorActivity",t)}function rl(t){nl(t,al(t,t.sel,null,!1))}function al(t,p,F,B){for(var V,oe=0;oe<p.ranges.length;oe++){var pe=p.ranges[oe],Se=p.ranges.length==t.sel.ranges.length&&t.sel.ranges[oe],De=bs(t,pe.anchor,Se&&Se.anchor,F,B),je=bs(t,pe.head,Se&&Se.head,F,B);(V||De!=pe.anchor||je!=pe.head)&&(V||(V=p.ranges.slice(0,oe)),V[oe]=new Aa(De,je))}return V?pa(t.cm,V,p.primIndex):p}function Go(t,p,F,B,V){var oe=Kt(t,p.line);if(oe.markedSpans)for(var pe=0;pe<oe.markedSpans.length;++pe){var Se=oe.markedSpans[pe],De=Se.marker,je="selectLeft"in De?!De.selectLeft:De.inclusiveLeft,ut="selectRight"in De?!De.selectRight:De.inclusiveRight;if((Se.from==null||(je?Se.from<=p.ch:Se.from<p.ch))&&(Se.to==null||(ut?Se.to>=p.ch:Se.to>p.ch))){if(V&&(Ce(De,"beforeCursorEnter"),De.explicitlyCleared))if(oe.markedSpans){--pe;continue}else break;if(!De.atomic)continue;if(F){var bt=De.find(B<0?1:-1),Xt=void 0;if((B<0?ut:je)&&(bt=il(t,bt,-B,bt&&bt.line==p.line?oe:null)),bt&&bt.line==p.line&&(Xt=pn(bt,F))&&(B<0?Xt<0:Xt>0))return Go(t,bt,p,B,V)}var Ht=De.find(B<0?-1:1);return(B<0?je:ut)&&(Ht=il(t,Ht,B,Ht.line==p.line?oe:null)),Ht?Go(t,Ht,p,B,V):null}}return p}function bs(t,p,F,B,V){var oe=B||1,pe=Go(t,p,F,oe,V)||!V&&Go(t,p,F,oe,!0)||Go(t,p,F,-oe,V)||!V&&Go(t,p,F,-oe,!0);return pe||(t.cantEdit=!0,Nt(t.first,0))}function il(t,p,F,B){return F<0&&p.ch==0?p.line>t.first?Sn(t,Nt(p.line-1)):null:F>0&&p.ch==(B||Kt(t,p.line)).text.length?p.line<t.first+t.size-1?Nt(p.line+1,0):null:new Nt(p.line,p.ch+F)}function ol(t){t.setSelection(Nt(t.firstLine(),0),Nt(t.lastLine()),Te)}function Ms(t,p,F){var B={canceled:!1,from:p.from,to:p.to,text:p.text,origin:p.origin,cancel:function(){return B.canceled=!0}};return F&&(B.update=function(V,oe,pe,Se){V&&(B.from=Sn(t,V)),oe&&(B.to=Sn(t,oe)),pe&&(B.text=pe),Se!==void 0&&(B.origin=Se)}),Ce(t,"beforeChange",t,B),t.cm&&Ce(t.cm,"beforeChange",t.cm,B),B.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:B.from,to:B.to,text:B.text,origin:B.origin}}function zo(t,p,F){if(t.cm){if(!t.cm.curOp)return Ka(t.cm,zo)(t,p,F);if(t.cm.state.suppressEdits)return}if((Ee(t,"beforeChange")||t.cm&&Ee(t.cm,"beforeChange"))&&(p=Ms(t,p,!0),!p))return;var B=Ga&&!F&&rt(t,p.from,p.to);if(B)for(var V=B.length-1;V>=0;--V)sl(t,{from:B[V].from,to:B[V].to,text:V?[""]:p.text,origin:p.origin});else sl(t,p)}function sl(t,p){if(p.text.length==1&&p.text[0]==""&&pn(p.from,p.to)==0)return;var F=Ba(t,p);Qs(t,p,F,t.cm?t.cm.curOp.id:NaN),Vo(t,p,F,ya(t,p));var B=[];qa(t,function(V,oe){!oe&&ce(B,V.history)==-1&&(dl(V.history,p),B.push(V.history)),Vo(V,p,null,ya(V,p))})}function ys(t,p,F){var B=t.cm&&t.cm.state.suppressEdits;if(B&&!F)return;for(var V=t.history,oe,pe=t.sel,Se=p=="undo"?V.done:V.undone,De=p=="undo"?V.undone:V.done,je=0;je<Se.length&&!(oe=Se[je],F?oe.ranges&&!oe.equals(t.sel):!oe.ranges);je++);if(je==Se.length)return;for(V.lastOrigin=V.lastSelOrigin=null;;)if(oe=Se.pop(),oe.ranges){if(ms(oe,De),F&&!oe.equals(t.sel)){vi(t,oe,{clearRedo:!1});return}pe=oe}else if(B){Se.push(oe);return}else break;var ut=[];ms(pe,De),De.push({changes:ut,generation:V.generation}),V.generation=oe.generation||++V.maxGeneration;for(var bt=Ee(t,"beforeChange")||t.cm&&Ee(t.cm,"beforeChange"),Xt=function(Fn){var nr=oe.changes[Fn];if(nr.origin=p,bt&&!Ms(t,nr,!1))return Se.length=0,{};ut.push(Ds(t,nr));var hr=Fn?Ba(t,nr):U(Se);Vo(t,nr,hr,Ps(t,nr)),!Fn&&t.cm&&t.cm.scrollIntoView({from:nr.from,to:Yr(nr)});var Mr=[];qa(t,function(pr,Wr){!Wr&&ce(Mr,pr.history)==-1&&(dl(pr.history,nr),Mr.push(pr.history)),Vo(pr,nr,null,Ps(pr,nr))})},Ht=oe.changes.length-1;Ht>=0;--Ht){var xn=Xt(Ht);if(xn)return xn.v}}function ll(t,p){if(p==0)return;if(t.first+=p,t.sel=new hi(K(t.sel.ranges,function(V){return new Aa(Nt(V.anchor.line+p,V.anchor.ch),Nt(V.head.line+p,V.head.ch))}),t.sel.primIndex),t.cm){Vr(t.cm,t.first,t.first-p,p);for(var F=t.cm.display,B=F.viewFrom;B<F.viewTo;B++)ha(t.cm,B,"gutter")}}function Vo(t,p,F,B){if(t.cm&&!t.cm.curOp)return Ka(t.cm,Vo)(t,p,F,B);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 V=p.text.length-1-(t.first-p.from.line);ll(t,V),p={from:Nt(t.first,0),to:Nt(p.to.line+V,p.to.ch),text:[U(p.text)],origin:p.origin}}var oe=t.lastLine();p.to.line>oe&&(p={from:p.from,to:Nt(oe,Kt(t,oe).text.length),text:[p.text[0]],origin:p.origin}),p.removed=gn(t,p.from,p.to),F||(F=Ba(t,p)),t.cm?Nl(t.cm,p,B):go(t,p,B),Ko(t,F,Te),t.cantEdit&&bs(t,Nt(t.firstLine(),0))&&(t.cantEdit=!1)}function Nl(t,p,F){var B=t.doc,V=t.display,oe=p.from,pe=p.to,Se=!1,De=oe.line;t.options.lineWrapping||(De=an(nn(Kt(B,oe.line))),B.iter(De,pe.line+1,function(Ht){if(Ht==V.maxLine)return Se=!0,!0})),B.sel.contains(p.from,p.to)>-1&&be(t),go(B,p,F,mi(t)),t.options.lineWrapping||(B.iter(De,oe.line+p.text.length,function(Ht){var xn=oa(Ht);xn>V.maxLineLength&&(V.maxLine=Ht,V.maxLineLength=xn,V.maxLineChanged=!0,Se=!1)}),Se&&(t.curOp.updateMaxLine=!0)),ka(B,oe.line),ii(t,400);var je=p.text.length-(pe.line-oe.line)-1;p.full?Vr(t):oe.line==pe.line&&p.text.length==1&&!Ki(t.doc,p)?ha(t,oe.line,"text"):Vr(t,oe.line,pe.line+1,je);var ut=Ee(t,"changes"),bt=Ee(t,"change");if(bt||ut){var Xt={from:oe,to:pe,text:p.text,removed:p.removed,origin:p.origin};bt&&Vt(t,"change",t,Xt),ut&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Xt)}t.display.selForContextMenu=null}function Xo(t,p,F,B,V){var oe;B||(B=F),pn(B,F)<0&&(oe=[B,F],F=oe[0],B=oe[1]),typeof p=="string"&&(p=t.splitLines(p)),zo(t,{from:F,to:B,text:p,origin:V})}function ul(t,p,F,B){F<t.line?t.line+=B:p<t.line&&(t.line=p,t.ch=0)}function cl(t,p,F,B){for(var V=0;V<t.length;++V){var oe=t[V],pe=!0;if(oe.ranges){oe.copied||(oe=t[V]=oe.deepCopy(),oe.copied=!0);for(var Se=0;Se<oe.ranges.length;Se++)ul(oe.ranges[Se].anchor,p,F,B),ul(oe.ranges[Se].head,p,F,B);continue}for(var De=0;De<oe.changes.length;++De){var je=oe.changes[De];if(F<je.from.line)je.from=Nt(je.from.line+B,je.from.ch),je.to=Nt(je.to.line+B,je.to.ch);else if(p<=je.to.line){pe=!1;break}}pe||(t.splice(0,V+1),V=0)}}function dl(t,p){var F=p.from.line,B=p.to.line,V=p.text.length-(B-F)-1;cl(t.done,F,B,V),cl(t.undone,F,B,V)}function ts(t,p,F,B){var V=p,oe=p;return typeof p=="number"?oe=Kt(t,xr(t,p)):V=an(p),V==null?null:(B(oe,V)&&t.cm&&ha(t.cm,V,F),oe)}function Do(t){this.lines=t,this.parent=null;for(var p=0,F=0;F<t.length;++F)t[F].parent=this,p+=t[F].height;this.height=p}Do.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,p){for(var F=t,B=t+p;F<B;++F){var V=this.lines[F];this.height-=V.height,Nn(V),Vt(V,"delete")}this.lines.splice(t,p)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,p,F){this.height+=F,this.lines=this.lines.slice(0,t).concat(p).concat(this.lines.slice(t));for(var B=0;B<p.length;++B)p[B].parent=this},iterN:function(t,p,F){for(var B=t+p;t<B;++t)if(F(this.lines[t]))return!0}};function Yo(t){this.children=t;for(var p=0,F=0,B=0;B<t.length;++B){var V=t[B];p+=V.chunkSize(),F+=V.height,V.parent=this}this.size=p,this.height=F,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(t,p){this.size-=p;for(var F=0;F<this.children.length;++F){var B=this.children[F],V=B.chunkSize();if(t<V){var oe=Math.min(p,V-t),pe=B.height;if(B.removeInner(t,oe),this.height-=pe-B.height,V==oe&&(this.children.splice(F--,1),B.parent=null),(p-=oe)==0)break;t=0}else t-=V}if(this.size-p<25&&(this.children.length>1||!(this.children[0]instanceof Do))){var Se=[];this.collapse(Se),this.children=[new Do(Se)],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,F){this.size+=p.length,this.height+=F;for(var B=0;B<this.children.length;++B){var V=this.children[B],oe=V.chunkSize();if(t<=oe){if(V.insertInner(t,p,F),V.lines&&V.lines.length>50){for(var pe=V.lines.length%25+25,Se=pe;Se<V.lines.length;){var De=new Do(V.lines.slice(Se,Se+=25));V.height-=De.height,this.children.splice(++B,0,De),De.parent=this}V.lines=V.lines.slice(0,pe),this.maybeSpill()}break}t-=oe}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var p=t.children.splice(t.children.length-5,5),F=new Yo(p);if(t.parent){t.size-=F.size,t.height-=F.height;var V=ce(t.parent.children,t);t.parent.children.splice(V+1,0,F)}else{var B=new Yo(t.children);B.parent=t,t.children=[B,F],t=B}F.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function(t,p,F){for(var B=0;B<this.children.length;++B){var V=this.children[B],oe=V.chunkSize();if(t<oe){var pe=Math.min(p,oe-t);if(V.iterN(t,pe,F))return!0;if((p-=pe)==0)break;t=0}else t-=oe}}};var ns=function(t,p,F){if(F)for(var B in F)F.hasOwnProperty(B)&&(this[B]=F[B]);this.doc=t,this.node=p};ns.prototype.clear=function(){var t=this.doc.cm,p=this.line.widgets,F=this.line,B=an(F);if(B==null||!p)return;for(var V=0;V<p.length;++V)p[V]==this&&p.splice(V--,1);p.length||(F.widgets=null);var oe=Rr(this);Cn(F,Math.max(0,F.height-oe)),t&&(fi(t,function(){fl(t,F,-oe),ha(t,B,"widget")}),Vt(t,"lineWidgetCleared",t,this,B))},ns.prototype.changed=function(){var t=this,p=this.height,F=this.doc.cm,B=this.line;this.height=null;var V=Rr(this)-p;if(!V)return;tr(this.doc,B)||Cn(B,B.height+V),F&&fi(F,function(){F.curOp.forceUpdate=!0,fl(F,B,V),Vt(F,"lineWidgetChanged",F,t,an(B))})},Ne(ns);function fl(t,p,F){Ir(p)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&co(t,F)}function kl(t,p,F,B){var V=new ns(t,F,B),oe=t.cm;return oe&&V.noHScroll&&(oe.display.alignWidgets=!0),ts(t,p,"widget",function(pe){var Se=pe.widgets||(pe.widgets=[]);if(V.insertAt==null?Se.push(V):Se.splice(Math.min(Se.length-1,Math.max(0,V.insertAt)),0,V),V.line=pe,oe&&!tr(t,pe)){var De=Ir(pe)<t.scrollTop;Cn(pe,pe.height+Rr(V)),De&&co(oe,V.height),oe.curOp.forceUpdate=!0}return!0}),oe&&Vt(oe,"lineWidgetAdded",oe,V,typeof p=="number"?p:an(p)),V}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&&ki(t),Ee(this,"clear")){var F=this.find();F&&Vt(this,"clear",F.from,F.to)}for(var B=null,V=null,oe=0;oe<this.lines.length;++oe){var pe=this.lines[oe],Se=Fa(pe.markedSpans,this);t&&!this.collapsed?ha(t,an(pe),"text"):t&&(Se.to!=null&&(V=an(pe)),Se.from!=null&&(B=an(pe))),pe.markedSpans=li(pe.markedSpans,Se),Se.from==null&&this.collapsed&&!tr(this.doc,pe)&&t&&Cn(pe,ia(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var De=0;De<this.lines.length;++De){var je=nn(this.lines[De]),ut=oa(je);ut>t.display.maxLineLength&&(t.display.maxLine=je,t.display.maxLineLength=ut,t.display.maxLineChanged=!0)}B!=null&&t&&this.collapsed&&Vr(t,B,V+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&rl(t.doc)),t&&Vt(t,"markerCleared",t,this,B,V),p&&qi(t),this.parent&&this.parent.clear()},Gi.prototype.find=function(t,p){t==null&&this.type=="bookmark"&&(t=1);for(var F,B,V=0;V<this.lines.length;++V){var oe=this.lines[V],pe=Fa(oe.markedSpans,this);if(pe.from!=null&&(F=Nt(p?oe:an(oe),pe.from),t==-1))return F;if(pe.to!=null&&(B=Nt(p?oe:an(oe),pe.to),t==1))return B}return F&&{from:F,to:B}},Gi.prototype.changed=function(){var t=this,p=this.find(-1,!0),F=this,B=this.doc.cm;if(!p||!B)return;fi(B,function(){var V=p.line,oe=an(p.line),pe=ht(B,oe);if(pe&&(er(pe),B.curOp.selectionChanged=B.curOp.forceUpdate=!0),B.curOp.updateMaxLine=!0,!tr(F.doc,V)&&F.height!=null){var Se=F.height;F.height=null;var De=Rr(F)-Se;De&&Cn(V,V.height+De)}Vt(B,"markerChanged",B,t)})},Gi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(!p.maybeHiddenMarkers||ce(p.maybeHiddenMarkers,this)==-1)&&(p.maybeUnhiddenMarkers||(p.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Gi.prototype.detachLine=function(t){if(this.lines.splice(ce(this.lines,t),1),!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(p.maybeHiddenMarkers||(p.maybeHiddenMarkers=[])).push(this)}},Ne(Gi);function Jo(t,p,F,B,V){if(B&&B.shared)return Ul(t,p,F,B,V);if(t.cm&&!t.cm.curOp)return Ka(t.cm,Jo)(t,p,F,B,V);var oe=new Gi(t,V),pe=pn(p,F);if(B&&L(B,oe,!1),pe>0||pe==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=j("span",[oe.replacedWith],"CodeMirror-widget"),B.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),B.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(jn(t,p.line,p,F,oe)||p.line!=F.line&&jn(t,F.line,p,F,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ia()}oe.addToHistory&&Qs(t,{from:p,to:F,origin:"markText"},t.sel,NaN);var Se=p.line,De=t.cm,je;if(t.iter(Se,F.line+1,function(bt){De&&oe.collapsed&&!De.options.lineWrapping&&nn(bt)==De.display.maxLine&&(je=!0),oe.collapsed&&Se!=p.line&&Cn(bt,0),yi(bt,new xa(oe,Se==p.line?p.ch:null,Se==F.line?F.ch:null)),++Se}),oe.collapsed&&t.iter(p.line,F.line+1,function(bt){tr(t,bt)&&Cn(bt,0)}),oe.clearOnEnter&&ke(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(Za(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),oe.collapsed&&(oe.id=++hl,oe.atomic=!0),De){if(je&&(De.curOp.updateMaxLine=!0),oe.collapsed)Vr(De,p.line,F.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var ut=p.line;ut<=F.line;ut++)ha(De,ut,"text");oe.atomic&&rl(De.doc),Vt(De,"markerAdded",De,oe)}return oe}var Qo=function(t,p){this.markers=t,this.primary=p;for(var F=0;F<t.length;++F)t[F].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();Vt(this,"clear")},Qo.prototype.find=function(t,p){return this.primary.find(t,p)},Ne(Qo);function Ul(t,p,F,B,V){B=L(B),B.shared=!1;var oe=[Jo(t,p,F,B,V)],pe=oe[0],Se=B.widgetNode;return qa(t,function(De){Se&&(B.widgetNode=Se.cloneNode(!0)),oe.push(Jo(De,Sn(De,p),Sn(De,F),B,V));for(var je=0;je<De.linked.length;++je)if(De.linked[je].isParent)return;pe=U(oe)}),new Qo(oe,pe)}function pl(t){return t.findMarks(Nt(t.first,0),t.clipPos(Nt(t.lastLine())),function(p){return p.parent})}function iu(t,p){for(var F=0;F<p.length;F++){var B=p[F],V=B.find(),oe=t.clipPos(V.from),pe=t.clipPos(V.to);if(pn(oe,pe)){var Se=Jo(t,oe,pe,B.primary,B.primary.type);B.markers.push(Se),Se.parent=B}}}function jl(t){for(var p=function(B){var V=t[B],oe=[V.primary.doc];qa(V.primary.doc,function(De){return oe.push(De)});for(var pe=0;pe<V.markers.length;pe++){var Se=V.markers[pe];ce(oe,Se.doc)==-1&&(Se.parent=null,V.markers.splice(pe--,1))}},F=0;F<t.length;F++)p(F)}var Is=0,Ai=function(t,p,F,B,V){if(!(this instanceof Ai))return new Ai(t,p,F,B,V);F==null&&(F=0),Yo.call(this,[new Do([new Or("",null)])]),this.first=F,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=F;var oe=Nt(F,0);this.sel=gr(oe),this.history=new hs(null),this.id=++Is,this.modeOption=p,this.lineSep=B,this.direction=V=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),go(this,{from:oe,to:oe,text:t}),vi(this,gr(oe),Te)};Ai.prototype=te(Yo.prototype,{constructor:Ai,iter:function(t,p,F){F?this.iterN(t-this.first,p-t,F):this.iterN(this.first,this.first+this.size,t)},insert:function(t,p){for(var F=0,B=0;B<p.length;++B)F+=p[B].height;this.insertInner(t-this.first,p,F)},remove:function(t,p){this.removeInner(t-this.first,p)},getValue:function(t){var p=Rn(this,this.first,this.first+this.size);return t===!1?p:p.join(t||this.lineSeparator())},setValue:Ja(function(t){var p=Nt(this.first,0),F=this.first+this.size-1;zo(this,{from:p,to:Nt(F,Kt(this,F).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Yi(this.cm,0,0),vi(this,gr(p),Te)}),replaceRange:function(t,p,F,B){p=Sn(this,p),F=F?Sn(this,F):p,Xo(this,t,p,F,B)},getRange:function(t,p,F){var B=gn(this,Sn(this,t),Sn(this,p));return F===!1?B:B.join(F||this.lineSeparator())},getLine:function(t){var p=this.getLineHandle(t);return p&&p.text},getLineHandle:function(t){if(vn(this,t))return Kt(this,t)},getLineNumber:function(t){return an(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=Kt(this,t)),nn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return Sn(this,t)},getCursor:function(t){var p=this.sel.primary(),F;return t==null||t=="head"?F=p.head:t=="anchor"?F=p.anchor:t=="end"||t=="to"||t===!1?F=p.to():F=p.from(),F},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ja(function(t,p,F){el(this,Sn(this,typeof t=="number"?Nt(t,p||0):t),null,F)}),setSelection:Ja(function(t,p,F){el(this,Sn(this,t),Sn(this,p||t),F)}),extendSelection:Ja(function(t,p,F){_s(this,Sn(this,t),p&&Sn(this,p),F)}),extendSelections:Ja(function(t,p){$s(this,Yt(this,t),p)}),extendSelectionsBy:Ja(function(t,p){var F=K(this.sel.ranges,t);$s(this,Yt(this,F),p)}),setSelections:Ja(function(t,p,F){if(!t.length)return;for(var B=[],V=0;V<t.length;V++)B[V]=new Aa(Sn(this,t[V].anchor),Sn(this,t[V].head));p==null&&(p=Math.min(t.length-1,this.sel.primIndex)),vi(this,pa(this.cm,B,p),F)}),addSelection:Ja(function(t,p,F){var B=this.sel.ranges.slice(0);B.push(new Aa(Sn(this,t),Sn(this,p||t))),vi(this,pa(this.cm,B,B.length-1),F)}),getSelection:function(t){for(var p=this.sel.ranges,F,B=0;B<p.length;B++){var V=gn(this,p[B].from(),p[B].to());F=F?F.concat(V):V}return t===!1?F:F.join(t||this.lineSeparator())},getSelections:function(t){for(var p=[],F=this.sel.ranges,B=0;B<F.length;B++){var V=gn(this,F[B].from(),F[B].to());t!==!1&&(V=V.join(t||this.lineSeparator())),p[B]=V}return p},replaceSelection:function(t,p,F){for(var B=[],V=0;V<this.sel.ranges.length;V++)B[V]=t;this.replaceSelections(B,p,F||"+input")},replaceSelections:Ja(function(t,p,F){for(var B=[],V=this.sel,oe=0;oe<V.ranges.length;oe++){var pe=V.ranges[oe];B[oe]={from:pe.from(),to:pe.to(),text:this.splitLines(t[oe]),origin:F}}for(var Se=p&&p!="end"&&Mi(this,B,p),De=B.length-1;De>=0;De--)zo(this,B[De]);Se?tl(this,Se):this.cm&&Xi(this.cm)}),undo:Ja(function(){ys(this,"undo")}),redo:Ja(function(){ys(this,"redo")}),undoSelection:Ja(function(){ys(this,"undo",!0)}),redoSelection:Ja(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,F=0,B=0;B<t.done.length;B++)t.done[B].ranges||++p;for(var V=0;V<t.undone.length;V++)t.undone[V].ranges||++F;return{undo:p,redo:F}},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:Ja(function(t,p,F){return ts(this,t,"gutter",function(B){var V=B.gutterMarkers||(B.gutterMarkers={});return V[p]=F,!F&&Z(V)&&(B.gutterMarkers=null),!0})}),clearGutter:Ja(function(t){var p=this;this.iter(function(F){F.gutterMarkers&&F.gutterMarkers[t]&&ts(p,F,"gutter",function(){return F.gutterMarkers[t]=null,Z(F.gutterMarkers)&&(F.gutterMarkers=null),!0})})}),lineInfo:function(t){var p;if(typeof t=="number"){if(!vn(this,t))return null;if(p=t,t=Kt(this,t),!t)return null}else if(p=an(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:Ja(function(t,p,F){return ts(this,t,p=="gutter"?"gutter":"class",function(B){var V=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass";if(!B[V])B[V]=F;else{if(R(F).test(B[V]))return!1;B[V]+=" "+F}return!0})}),removeLineClass:Ja(function(t,p,F){return ts(this,t,p=="gutter"?"gutter":"class",function(B){var V=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass",oe=B[V];if(oe)if(F==null)B[V]=null;else{var pe=oe.match(R(F));if(!pe)return!1;var Se=pe.index+pe[0].length;B[V]=oe.slice(0,pe.index)+(!pe.index||Se==oe.length?"":" ")+oe.slice(Se)||null}else return!1;return!0})}),addLineWidget:Ja(function(t,p,F){return kl(this,t,p,F)}),removeLineWidget:function(t){t.clear()},markText:function(t,p,F){return Jo(this,Sn(this,t),Sn(this,p),F,F&&F.type||"range")},setBookmark:function(t,p){var F={replacedWith:p&&(p.nodeType==null?p.widget:p),insertLeft:p&&p.insertLeft,clearWhenEmpty:!1,shared:p&&p.shared,handleMouseEvents:p&&p.handleMouseEvents};return t=Sn(this,t),Jo(this,t,t,F,"bookmark")},findMarksAt:function(t){t=Sn(this,t);var p=[],F=Kt(this,t.line).markedSpans;if(F)for(var B=0;B<F.length;++B){var V=F[B];(V.from==null||V.from<=t.ch)&&(V.to==null||V.to>=t.ch)&&p.push(V.marker.parent||V.marker)}return p},findMarks:function(t,p,F){t=Sn(this,t),p=Sn(this,p);var B=[],V=t.line;return this.iter(t.line,p.line+1,function(oe){var pe=oe.markedSpans;if(pe)for(var Se=0;Se<pe.length;Se++){var De=pe[Se];!(De.to!=null&&V==t.line&&t.ch>=De.to||De.from==null&&V!=t.line||De.from!=null&&V==p.line&&De.from>=p.ch)&&(!F||F(De.marker))&&B.push(De.marker.parent||De.marker)}++V}),B},getAllMarks:function(){var t=[];return this.iter(function(p){var F=p.markedSpans;if(F)for(var B=0;B<F.length;++B)F[B].from!=null&&t.push(F[B].marker)}),t},posFromIndex:function(t){var p,F=this.first,B=this.lineSeparator().length;return this.iter(function(V){var oe=V.text.length+B;if(oe>t)return p=t,!0;t-=oe,++F}),Sn(this,Nt(F,p))},indexFromPos:function(t){t=Sn(this,t);var p=t.ch;if(t.line<this.first||t.ch<0)return 0;var F=this.lineSeparator().length;return this.iter(this.first,t.line,function(B){p+=B.text.length+F}),p},copy:function(t){var p=new Ai(Rn(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,F=this.first+this.size;t.from!=null&&t.from>p&&(p=t.from),t.to!=null&&t.to<F&&(F=t.to);var B=new Ai(Rn(this,p,F),t.mode||this.modeOption,p,this.lineSep,this.direction);return t.sharedHist&&(B.history=this.history),(this.linked||(this.linked=[])).push({doc:B,sharedHist:t.sharedHist}),B.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],iu(B,pl(this)),B},unlinkDoc:function(t){if(t instanceof Qa&&(t=t.doc),this.linked)for(var p=0;p<this.linked.length;++p){var F=this.linked[p];if(F.doc!=t)continue;this.linked.splice(p,1),t.unlinkDoc(this),jl(pl(this));break}if(t.history==this.history){var B=[t.id];qa(t,function(V){return B.push(V.id)},!0),t.history=new hs(null),t.history.done=Ho(this.history.done,B),t.history.undone=Ho(this.history.undone,B)}},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):Be(t)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ja(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)})}),Ai.prototype.eachLine=Ai.prototype.iter;var ml=0;function Bl(t){var p=this;if(Ls(p),he(p,t)||ra(p.display,t))return;we(t),O&&(ml=+new Date);var F=zr(p,t,!0),B=t.dataTransfer.files;if(!F||p.isReadOnly())return;if(B&&B.length&&window.FileReader&&window.File)for(var V=B.length,oe=Array(V),pe=0,Se=function(){++pe==V&&Ka(p,function(){F=Sn(p.doc,F);var Ht={from:F,to:F,text:p.doc.splitLines(oe.filter(function(xn){return xn!=null}).join(p.doc.lineSeparator())),origin:"paste"};zo(p.doc,Ht),tl(p.doc,gr(Sn(p.doc,F),Sn(p.doc,Yr(Ht))))})()},De=function(Ht,xn){if(p.options.allowDropFileTypes&&ce(p.options.allowDropFileTypes,Ht.type)==-1){Se();return}var Fn=new FileReader;Fn.onerror=function(){return Se()},Fn.onload=function(){var nr=Fn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(nr)){Se();return}oe[xn]=nr,Se()},Fn.readAsText(Ht)},je=0;je<B.length;je++)De(B[je],je);else{if(p.state.draggingText&&p.doc.sel.contains(F)>-1){p.state.draggingText(t),setTimeout(function(){return p.display.input.focus()},20);return}try{var ut=t.dataTransfer.getData("Text");if(ut){var bt;if(p.state.draggingText&&!p.state.draggingText.copy&&(bt=p.listSelections()),Ko(p.doc,gr(F,F)),bt)for(var Xt=0;Xt<bt.length;++Xt)Xo(p.doc,"",bt[Xt].anchor,bt[Xt].head,"drag");p.replaceSelection(ut,"around","paste"),p.display.input.focus()}}catch(Ht){}}}function gl(t,p){if(O&&(!t.state.draggingText||+new Date-ml<100)){We(p);return}if(he(t,p)||ra(t.display,p))return;if(p.dataTransfer.setData("Text",t.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!n){var F=A("img",null,null,"position: fixed; left: 0; top: 0;");F.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",c&&(F.width=F.height=1,t.display.wrapper.appendChild(F),F._top=F.offsetTop),p.dataTransfer.setDragImage(F,0,0),c&&F.parentNode.removeChild(F)}}function Fl(t,p){var F=zr(t,p);if(!F)return;var B=document.createDocumentFragment();Ti(t,F,B),t.display.dragCursor||(t.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),_(t.display.dragCursor,B)}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"),F=[],B=0;B<p.length;B++){var V=p[B].CodeMirror;V&&F.push(V)}F.length&&F[0].operation(function(){for(var oe=0;oe<F.length;oe++)t(F[oe])})}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 F,B,V,oe,pe=0;pe<p.length-1;pe++){var Se=p[pe];if(/^(cmd|meta|m)$/i.test(Se))oe=!0;else if(/^a(lt)?$/i.test(Se))F=!0;else if(/^(c|ctrl|control)$/i.test(Se))B=!0;else if(/^s(hift)?$/i.test(Se))V=!0;else throw new Error("Unrecognized modifier name: "+Se)}return F&&(t="Alt-"+t),B&&(t="Ctrl-"+t),oe&&(t="Cmd-"+t),V&&(t="Shift-"+t),t}function _l(t){var p={};for(var F in t)if(t.hasOwnProperty(F)){var B=t[F];if(/^(name|fallthrough|(de|at)tach)$/.test(F))continue;if(B=="..."){delete t[F];continue}for(var V=K(F.split(" "),Hl),oe=0;oe<V.length;oe++){var pe=void 0,Se=void 0;oe==V.length-1?(Se=V.join(" "),pe=B):(Se=V.slice(0,oe+1).join(" "),pe="...");var De=p[Se];if(!De)p[Se]=pe;else if(De!=pe)throw new Error("Inconsistent bindings for "+Se)}delete t[F]}for(var je in p)t[je]=p[je];return t}function _o(t,p,F,B){p=os(p);var V=p.call?p.call(t,B):p[t];if(V===!1)return"nothing";if(V==="...")return"multi";if(V!=null&&F(V))return"handled";if(p.fallthrough){if(Object.prototype.toString.call(p.fallthrough)!="[object Array]")return _o(t,p.fallthrough,F,B);for(var oe=0;oe<p.fallthrough.length;oe++){var pe=_o(t,p.fallthrough[oe],F,B);if(pe)return pe}}}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,F){var B=t;return p.altKey&&B!="Alt"&&(t="Alt-"+t),(b?p.metaKey:p.ctrlKey)&&B!="Ctrl"&&(t="Ctrl-"+t),(b?p.ctrlKey:p.metaKey)&&B!="Mod"&&(t="Cmd-"+t),!F&&p.shiftKey&&B!="Shift"&&(t="Shift-"+t),t}function xs(t,p){if(c&&t.keyCode==34&&t.char)return!1;var F=Ro[t.keyCode];return F==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(F=t.code),bl(F,t,p))}function os(t){return typeof t=="string"?vo[t]:t}function Zo(t,p){for(var F=t.doc.sel.ranges,B=[],V=0;V<F.length;V++){for(var oe=p(F[V]);B.length&&pn(oe.from,U(B).to)<=0;){var pe=B.pop();if(pn(pe.from,oe.from)<0){oe.from=pe.from;break}}B.push(oe)}fi(t,function(){for(var Se=B.length-1;Se>=0;Se--)Xo(t.doc,"",B[Se].from,B[Se].to,"+delete");Xi(t)})}function Us(t,p,F){var B=Oe(t.text,p+F,F);return B<0||B>t.text.length?null:B}function js(t,p,F){var B=Us(t,p.ch,F);return B==null?null:new Nt(p.line,B,F<0?"after":"before")}function Bs(t,p,F,B,V){if(t){p.doc.direction=="rtl"&&(V=-V);var oe=dt(F,p.doc.direction);if(oe){var pe=V<0?U(oe):oe[0],Se=V<0==(pe.level==1),De=Se?"after":"before",je;if(pe.level>0||p.doc.direction=="rtl"){var ut=et(p,F);je=V<0?F.text.length-1:0;var bt=wt(p,ut,je).top;je=He(function(Xt){return wt(p,ut,Xt).top==bt},V<0==(pe.level==1)?pe.from:pe.to-1,je),De=="before"&&(je=Us(F,je,1))}else je=V<0?pe.to:pe.from;return new Nt(B,je,De)}}return new Nt(B,V<0?F.text.length:0,V<0?"before":"after")}function Fs(t,p,F,B){var V=dt(p,t.doc.direction);if(!V)return js(p,F,B);F.ch>=p.text.length?(F.ch=p.text.length,F.sticky="before"):F.ch<=0&&(F.ch=0,F.sticky="after");var oe=st(V,F.ch,F.sticky),pe=V[oe];if(t.doc.direction=="ltr"&&pe.level%2==0&&(B>0?pe.to>F.ch:pe.from<F.ch))return js(p,F,B);var Se=function(hr,Mr){return Us(p,hr instanceof Nt?hr.ch:hr,Mr)},De,je=function(hr){return t.options.lineWrapping?(De=De||et(t,p),Ln(t,p,De,hr)):{begin:0,end:p.text.length}},ut=je(F.sticky=="before"?Se(F,-1):F.ch);if(t.doc.direction=="rtl"||pe.level==1){var bt=pe.level==1==B<0,Xt=Se(F,bt?1:-1);if(Xt!=null&&(bt?Xt<=pe.to&&Xt<=ut.end:Xt>=pe.from&&Xt>=ut.begin)){var Ht=bt?"before":"after";return new Nt(F.line,Xt,Ht)}}var xn=function(hr,Mr,pr){for(var Wr=function(Ya,_i){return _i?new Nt(F.line,Se(Ya,1),"before"):new Nt(F.line,Ya,"after")};hr>=0&&hr<V.length;hr+=Mr){var da=V[hr],aa=Mr>0==(da.level!=1),Ca=aa?pr.begin:Se(pr.end,-1);if(da.from<=Ca&&Ca<da.to)return Wr(Ca,aa);if(Ca=aa?da.from:Se(da.to,-1),pr.begin<=Ca&&Ca<pr.end)return Wr(Ca,aa)}},Fn=xn(oe+B,B,ut);if(Fn)return Fn;var nr=B>0?ut.end:Se(ut.begin,-1);return nr!=null&&!(B>0&&nr==p.text.length)&&(Fn=xn(B>0?0:V.length-1,B,je(nr)),Fn)?Fn:null}var qo={selectAll:ol,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Te)},killLine:function(t){return Zo(t,function(p){if(p.empty()){var F=Kt(t.doc,p.head.line).text.length;return p.head.ch==F&&p.head.line<t.lastLine()?{from:p.head,to:Nt(p.head.line+1,0)}:{from:p.head,to:Nt(p.head.line,F)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(t){return Zo(t,function(p){return{from:Nt(p.from().line,0),to:Sn(t.doc,Nt(p.to().line+1,0))}})},delLineLeft:function(t){return Zo(t,function(p){return{from:Nt(p.from().line,0),to:p.from()}})},delWrappedLineLeft:function(t){return Zo(t,function(p){var F=t.charCoords(p.head,"div").top+5,B=t.coordsChar({left:0,top:F},"div");return{from:B,to:p.from()}})},delWrappedLineRight:function(t){return Zo(t,function(p){var F=t.charCoords(p.head,"div").top+5,B=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:F},"div");return{from:p.from(),to:B}})},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(Nt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Nt(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 F=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:F},"div")},ve)},goLineLeft:function(t){return t.extendSelectionsBy(function(p){var F=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:0,top:F},"div")},ve)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(p){var F=t.cursorCoords(p.head,"div").top+5,B=t.coordsChar({left:0,top:F},"div");return B.ch<t.getLine(B.line).search(/\S/)?yl(t,p.head):B},ve)},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=[],F=t.listSelections(),B=t.options.tabSize,V=0;V<F.length;V++){var oe=F[V].from(),pe=z(t.getLine(oe.line),oe.ch,B);p.push(ee(B-pe%B))}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(),F=[],B=0;B<p.length;B++){if(!p[B].empty())continue;var V=p[B].head,oe=Kt(t.doc,V.line).text;if(oe){if(V.ch==oe.length&&(V=new Nt(V.line,V.ch-1)),V.ch>0)V=new Nt(V.line,V.ch+1),t.replaceRange(oe.charAt(V.ch-1)+oe.charAt(V.ch-2),Nt(V.line,V.ch-2),V,"+transpose");else if(V.line>t.doc.first){var pe=Kt(t.doc,V.line-1).text;pe&&(V=new Nt(V.line,1),t.replaceRange(oe.charAt(0)+t.doc.lineSeparator()+pe.charAt(pe.length-1),Nt(V.line-1,pe.length-1),V,"+transpose"))}}F.push(new Aa(V,V))}t.setSelections(F)})},newlineAndIndent:function(t){return fi(t,function(){for(var p=t.listSelections(),F=p.length-1;F>=0;F--)t.replaceRange(t.doc.lineSeparator(),p[F].anchor,p[F].head,"+input");p=t.listSelections();for(var B=0;B<p.length;B++)t.indentLine(p[B].from().line,null,!0);Xi(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Cs(t,p){var F=Kt(t.doc,p),B=nn(F);return B!=F&&(p=an(B)),Bs(!0,t,B,p,1)}function Ws(t,p){var F=Kt(t.doc,p),B=Mn(F);return B!=F&&(p=an(B)),Bs(!0,t,F,p,-1)}function yl(t,p){var F=Cs(t,p.line),B=Kt(t.doc,F.line),V=dt(B,t.doc.direction);if(!V||V[0].level==0){var oe=Math.max(F.ch,B.text.search(/\S/)),pe=p.line==F.line&&p.ch<=oe&&p.ch;return Nt(F.line,pe?0:oe,F.sticky)}return F}function Ss(t,p,F){if(typeof p=="string"&&(p=qo[p],!p))return!1;t.display.input.ensurePolled();var B=t.display.shift,V=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),F&&(t.display.shift=!1),V=p(t)!=xe}finally{t.display.shift=B,t.state.suppressEdits=!1}return V}function Kl(t,p,F){for(var B=0;B<t.state.keyMaps.length;B++){var V=_o(p,t.state.keyMaps[B],F,t);if(V)return V}return t.options.extraKeys&&_o(p,t.options.extraKeys,F,t)||_o(p,t.options.keyMap,F,t)}var Gl=new ie;function ss(t,p,F,B){var V=t.state.keySeq;if(V){if(is(p))return"handled";if(/\'$/.test(p)?t.state.keySeq=null:Gl.set(50,function(){t.state.keySeq==V&&(t.state.keySeq=null,t.display.input.reset())}),Hs(t,V+" "+p,F,B))return!0}return Hs(t,p,F,B)}function Hs(t,p,F,B){var V=Kl(t,p,B);return V=="multi"&&(t.state.keySeq=p),V=="handled"&&Vt(t,"keyHandled",t,p,F),(V=="handled"||V=="multi")&&(we(F),$a(t)),!!V}function El(t,p){var F=xs(p,!0);return F?p.shiftKey&&!t.state.keySeq?ss(t,"Shift-"+F,p,function(B){return Ss(t,B,!0)})||ss(t,F,p,function(B){if(typeof B=="string"?/^go[A-Z]/.test(B):B.motion)return Ss(t,B)}):ss(t,F,p,function(B){return Ss(t,B)}):!1}function zl(t,p,F){return ss(t,"'"+F+"'",p,function(B){return Ss(t,B,!0)})}var Ks=null;function xl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(p.curOp.focus=J(),he(p,t))return;O&&g<11&&t.keyCode==27&&(t.returnValue=!1);var F=t.keyCode;p.display.shift=F==16||t.shiftKey;var B=El(p,t);c&&(Ks=B?F:null,!B&&F==88&&!it&&(s?t.metaKey:t.ctrlKey)&&p.replaceSelection("",null,"cut")),T&&!s&&!B&&F==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),F==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&Vl(p)}function Vl(t){var p=t.display.lineDiv;G(p,"CodeMirror-crosshair");function F(B){(B.keyCode==18||!B.altKey)&&(C(p,"CodeMirror-crosshair"),Mt(document,"keyup",F),Mt(document,"mouseover",F))}ke(document,"keyup",F),ke(document,"mouseover",F)}function Cl(t){t.keyCode==16&&(this.doc.sel.shift=!1),he(this,t)}function Sl(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(ra(p.display,t)||he(p,t)||t.ctrlKey&&!t.altKey||s&&t.metaKey)return;var F=t.keyCode,B=t.charCode;if(c&&F==Ks){Ks=null,we(t);return}if(c&&(!t.which||t.which<10)&&El(p,t))return;var V=String.fromCharCode(B==null?F:B);if(V=="\b")return;if(zl(p,t,V))return;p.display.input.onKeyPress(t)}var Xl=400,Gs=function(t,p,F){this.time=t,this.pos=p,this.button=F};Gs.prototype.compare=function(t,p,F){return this.time+Xl>t&&pn(p,this.pos)==0&&F==this.button};var ls,us;function Yl(t,p){var F=+new Date;return us&&us.compare(F,t,p)?(ls=us=null,"triple"):ls&&ls.compare(F,t,p)?(us=new Gs(F,t,p),ls=null,"double"):(ls=new Gs(F,t,p),us=null,"single")}function zs(t){var p=this,F=p.display;if(he(p,t)||F.activeTouch&&F.input.supportsTouch())return;if(F.input.ensurePolled(),F.shift=t.shiftKey,ra(F,t)){e||(F.scroller.draggable=!1,setTimeout(function(){return F.scroller.draggable=!0},100));return}if(Xs(p,t))return;var B=zr(p,t),V=$e(t),oe=B?Yl(B,V):"single";if(window.focus(),V==1&&p.state.selectingText&&p.state.selectingText(t),B&&wl(p,V,B,oe,t))return;V==1?B?Ql(p,B,oe,t):Je(t)==F.scroller&&we(t):V==2?(B&&_s(p.doc,B),setTimeout(function(){return F.input.focus()},20)):V==3&&(P?p.display.input.onContextMenu(t):Mo(p))}function wl(t,p,F,B,V){var oe="Click";return B=="double"?oe="Double"+oe:B=="triple"&&(oe="Triple"+oe),oe=(p==1?"Left":p==2?"Middle":"Right")+oe,ss(t,bl(oe,V),V,function(pe){if(typeof pe=="string"&&(pe=qo[pe]),!pe)return!1;var Se=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),Se=pe(t,F)!=xe}finally{t.state.suppressEdits=!1}return Se})}function Jl(t,p,F){var B=t.getOption("configureMouse"),V=B?B(t,p,F):{};if(V.unit==null){var oe=u?F.shiftKey&&F.metaKey:F.altKey;V.unit=oe?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(V.extend==null||t.doc.extend)&&(V.extend=t.doc.extend||F.shiftKey),V.addNew==null&&(V.addNew=s?F.metaKey:F.ctrlKey),V.moveOnDrag==null&&(V.moveOnDrag=!(s?F.altKey:F.ctrlKey)),V}function Ql(t,p,F,B){O?setTimeout(W(to,t),0):t.curOp.focus=J();var V=Jl(t,F,B),oe=t.doc.sel,pe;t.options.dragDrop&&pt&&!t.isReadOnly()&&F=="single"&&(pe=oe.contains(p))>-1&&(pn((pe=oe.ranges[pe]).from(),p)<0||p.xRel>0)&&(pn(pe.to(),p)>0||p.xRel<0)?Zl(t,B,p,V):ql(t,B,p,V)}function Zl(t,p,F,B){var V=t.display,oe=!1,pe=Ka(t,function(je){e&&(V.scroller.draggable=!1),t.state.draggingText=!1,Mt(V.wrapper.ownerDocument,"mouseup",pe),Mt(V.wrapper.ownerDocument,"mousemove",Se),Mt(V.scroller,"dragstart",De),Mt(V.scroller,"drop",pe),oe||(we(je),B.addNew||_s(t.doc,F,null,null,B.extend),e&&!n||O&&g==9?setTimeout(function(){V.wrapper.ownerDocument.body.focus({preventScroll:!0}),V.input.focus()},20):V.input.focus())}),Se=function(je){oe=oe||Math.abs(p.clientX-je.clientX)+Math.abs(p.clientY-je.clientY)>=10},De=function(){return oe=!0};e&&(V.scroller.draggable=!0),t.state.draggingText=pe,pe.copy=!B.moveOnDrag,V.scroller.dragDrop&&V.scroller.dragDrop(),ke(V.wrapper.ownerDocument,"mouseup",pe),ke(V.wrapper.ownerDocument,"mousemove",Se),ke(V.scroller,"dragstart",De),ke(V.scroller,"drop",pe),Mo(t),setTimeout(function(){return V.input.focus()},20)}function Vs(t,p,F){if(F=="char")return new Aa(p,p);if(F=="word")return t.findWordAt(p);if(F=="line")return new Aa(Nt(p.line,0),Sn(t.doc,Nt(p.line+1,0)));var B=F(t,p);return new Aa(B.from,B.to)}function ql(t,p,F,B){var V=t.display,oe=t.doc;we(p);var pe,Se,De=oe.sel,je=De.ranges;if(B.addNew&&!B.extend?(Se=oe.sel.contains(F),Se>-1?pe=je[Se]:pe=new Aa(F,F)):(pe=oe.sel.primary(),Se=oe.sel.primIndex),B.unit=="rectangle")B.addNew||(pe=new Aa(F,F)),F=zr(t,p,!0,!0),Se=-1;else{var ut=Vs(t,F,B.unit);B.extend?pe=vs(pe,ut.anchor,ut.head,B.extend):pe=ut}B.addNew?Se==-1?(Se=je.length,vi(oe,pa(t,je.concat([pe]),Se),{scroll:!1,origin:"*mouse"})):je.length>1&&je[Se].empty()&&B.unit=="char"&&!B.extend?(vi(oe,pa(t,je.slice(0,Se).concat(je.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),De=oe.sel):Ao(oe,Se,pe,de):(Se=0,vi(oe,new hi([pe],0),de),De=oe.sel);var bt=F;function Xt(pr){if(pn(bt,pr)==0)return;if(bt=pr,B.unit=="rectangle"){for(var Wr=[],da=t.options.tabSize,aa=z(Kt(oe,F.line).text,F.ch,da),Ca=z(Kt(oe,pr.line).text,pr.ch,da),Ya=Math.min(aa,Ca),_i=Math.max(aa,Ca),ri=Math.min(F.line,pr.line),zi=Math.min(t.lastLine(),Math.max(F.line,pr.line));ri<=zi;ri++){var ji=Kt(oe,ri).text,ci=_e(ji,Ya,da);Ya==_i?Wr.push(new Aa(Nt(ri,ci),Nt(ri,ci))):ji.length>ci&&Wr.push(new Aa(Nt(ri,ci),Nt(ri,_e(ji,_i,da))))}Wr.length||Wr.push(new Aa(F,F)),vi(oe,pa(t,De.ranges.slice(0,Se).concat(Wr),Se),{origin:"*mouse",scroll:!1}),t.scrollIntoView(pr)}else{var Bi=pe,wi=Vs(t,pr,B.unit),pi=Bi.anchor,di;pn(wi.anchor,pi)>0?(di=wi.head,pi=Gn(Bi.from(),wi.anchor)):(di=wi.anchor,pi=Vn(Bi.to(),wi.head));var oi=De.ranges.slice(0);oi[Se]=$l(t,new Aa(Sn(oe,pi),di)),vi(oe,pa(t,oi,Se),de)}}var Ht=V.wrapper.getBoundingClientRect(),xn=0;function Fn(pr){var Wr=++xn,da=zr(t,pr,!0,B.unit=="rectangle");if(!da)return;if(pn(da,bt)!=0){t.curOp.focus=J(),Xt(da);var aa=uo(V,oe);(da.line>=aa.to||da.line<aa.from)&&setTimeout(Ka(t,function(){xn==Wr&&Fn(pr)}),150)}else{var Ca=pr.clientY<Ht.top?-20:pr.clientY>Ht.bottom?20:0;Ca&&setTimeout(Ka(t,function(){if(xn!=Wr)return;V.scroller.scrollTop+=Ca,Fn(pr)}),50)}}function nr(pr){t.state.selectingText=!1,xn=Infinity,pr&&(we(pr),V.input.focus()),Mt(V.wrapper.ownerDocument,"mousemove",hr),Mt(V.wrapper.ownerDocument,"mouseup",Mr),oe.history.lastSelOrigin=null}var hr=Ka(t,function(pr){pr.buttons===0||!$e(pr)?nr(pr):Fn(pr)}),Mr=Ka(t,nr);t.state.selectingText=Mr,ke(V.wrapper.ownerDocument,"mousemove",hr),ke(V.wrapper.ownerDocument,"mouseup",Mr)}function $l(t,p){var F=p.anchor,B=p.head,V=Kt(t.doc,F.line);if(pn(F,B)==0&&F.sticky==B.sticky)return p;var oe=dt(V);if(!oe)return p;var pe=st(oe,F.ch,F.sticky),Se=oe[pe];if(Se.from!=F.ch&&Se.to!=F.ch)return p;var De=pe+(Se.from==F.ch==(Se.level!=1)?0:1);if(De==0||De==oe.length)return p;var je;if(B.line!=F.line)je=(B.line-F.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var ut=st(oe,B.ch,B.sticky),bt=ut-pe||(B.ch-F.ch)*(Se.level==1?-1:1);ut==De-1||ut==De?je=bt<0:je=bt>0}var Xt=oe[De+(je?-1:0)],Ht=je==(Xt.level==1),xn=Ht?Xt.from:Xt.to,Fn=Ht?"after":"before";return F.ch==xn&&F.sticky==Fn?p:new Aa(new Nt(F.line,xn,Fn),B)}function Tl(t,p,F,B){var V,oe;if(p.touches)V=p.touches[0].clientX,oe=p.touches[0].clientY;else try{V=p.clientX,oe=p.clientY}catch(Xt){return!1}if(V>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;B&&we(p);var pe=t.display,Se=pe.lineDiv.getBoundingClientRect();if(oe>Se.bottom||!Ee(t,F))return Ue(p);oe-=Se.top-pe.viewOffset;for(var De=0;De<t.display.gutterSpecs.length;++De){var je=pe.gutters.childNodes[De];if(je&&je.getBoundingClientRect().right>=V){var ut=_n(t.doc,oe),bt=t.display.gutterSpecs[De];return Ce(t,F,t,ut,bt.className,p),Ue(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(ra(t.display,p)||Al(t,p))return;if(he(t,p,"contextmenu"))return;P||t.display.input.onContextMenu(p)}function Al(t,p){return Ee(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-"),Tr(t)}var $o={toString:function(){return"CodeMirror.Init"}},ws={},cs={};function eu(t){var p=t.optionHandlers;function F(B,V,oe,pe){t.defaults[B]=V,oe&&(p[B]=pe?function(Se,De,je){je!=$o&&oe(Se,De,je)}:oe)}t.defineOption=F,t.Init=$o,F("value","",function(B,V){return B.setValue(V)},!0),F("mode",null,function(B,V){B.doc.modeOption=V,ti(B)},!0),F("indentUnit",2,ti,!0),F("indentWithTabs",!1),F("smartIndent",!0),F("tabSize",4,function(B){Si(B),Tr(B),Vr(B)},!0),F("lineSeparator",null,function(B,V){if(B.doc.lineSep=V,!V)return;var oe=[],pe=B.doc.first;B.doc.iter(function(De){for(var je=0;;){var ut=De.text.indexOf(V,je);if(ut==-1)break;je=ut+V.length,oe.push(Nt(pe,ut))}pe++});for(var Se=oe.length-1;Se>=0;Se--)Xo(B.doc,V,oe[Se],Nt(oe[Se].line,oe[Se].ch+V.length))}),F("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(B,V,oe){B.state.specialChars=new RegExp(V.source+(V.test(" ")?"":"| "),"g"),oe!=$o&&B.refresh()}),F("specialCharPlaceholder",An,function(B){return B.refresh()},!0),F("electricChars",!0),F("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),F("spellcheck",!1,function(B,V){return B.getInputField().spellcheck=V},!0),F("autocorrect",!1,function(B,V){return B.getInputField().autocorrect=V},!0),F("autocapitalize",!1,function(B,V){return B.getInputField().autocapitalize=V},!0),F("rtlMoveVisually",!w),F("wholeLineUpdateBefore",!0),F("theme","default",function(B){Dl(B),Ui(B)},!0),F("keyMap","default",function(B,V,oe){var pe=os(V),Se=oe!=$o&&os(oe);Se&&Se.detach&&Se.detach(B,pe),pe.attach&&pe.attach(B,Se||null)}),F("extraKeys",null),F("configureMouse",null),F("lineWrapping",!1,nu,!0),F("gutters",[],function(B,V){B.display.gutterSpecs=ui(V,B.options.lineNumbers),Ui(B)},!0),F("fixedGutter",!0,function(B,V){B.display.gutters.style.left=V?Wa(B.display)+"px":"0",B.refresh()},!0),F("coverGutterNextToScrollbar",!1,function(B){return Pi(B)},!0),F("scrollbarStyle","native",function(B){Co(B),Pi(B),B.display.scrollbars.setScrollTop(B.doc.scrollTop),B.display.scrollbars.setScrollLeft(B.doc.scrollLeft)},!0),F("lineNumbers",!1,function(B,V){B.display.gutterSpecs=ui(B.options.gutters,V),Ui(B)},!0),F("firstLineNumber",1,Ui,!0),F("lineNumberFormatter",function(B){return B},Ui,!0),F("showCursorWhenSelecting",!1,Pa,!0),F("resetSelectionOnContextMenu",!0),F("lineWiseCopyCut",!0),F("pasteLinesPerSelection",!0),F("selectionsMayTouch",!1),F("readOnly",!1,function(B,V){V=="nocursor"&&(no(B),B.display.input.blur()),B.display.input.readOnlyChanged(V)}),F("screenReaderLabel",null,function(B,V){V=V===""?null:V,B.display.input.screenReaderLabelChanged(V)}),F("disableInput",!1,function(B,V){V||B.display.input.reset()},!0),F("dragDrop",!0,tu),F("allowDropFileTypes",null),F("cursorBlinkRate",530),F("cursorScrollMargin",0),F("cursorHeight",1,Pa,!0),F("singleCursorHeightPerLine",!0,Pa,!0),F("workTime",100),F("workDelay",100),F("flattenSpans",!0,Si,!0),F("addModeClass",!1,Si,!0),F("pollInterval",100),F("undoDepth",200,function(B,V){return B.doc.history.undoDepth=V}),F("historyEventDelay",1250),F("viewportMargin",10,function(B){return B.refresh()},!0),F("maxHighlightLength",1e4,Si,!0),F("moveInputWithCursor",!0,function(B,V){V||B.display.input.resetPosition()}),F("tabindex",null,function(B,V){return B.display.input.getField().tabIndex=V||""}),F("autofocus",null),F("direction","ltr",function(B,V){return B.doc.setDirection(V)},!0),F("phrases",null)}function tu(t,p,F){var B=F&&F!=$o;if(!p!=!B){var V=t.display.dragFunctions,oe=p?ke:Mt;oe(t.display.scroller,"dragstart",V.start),oe(t.display.scroller,"dragenter",V.enter),oe(t.display.scroller,"dragover",V.over),oe(t.display.scroller,"dragleave",V.leave),oe(t.display.scroller,"drop",V.drop)}}function nu(t){t.options.lineWrapping?(G(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(C(t.display.wrapper,"CodeMirror-wrap"),Cr(t)),Qr(t),Vr(t),Tr(t),setTimeout(function(){return Pi(t)},100)}function Qa(t,p){var F=this;if(!(this instanceof Qa))return new Qa(t,p);this.options=p=p?L(p):{},L(ws,p,!1);var B=p.value;typeof B=="string"?B=new Ai(B,p.mode,null,p.lineSeparator,p.direction):p.mode&&(B.modeOption=p.mode),this.doc=B;var V=new Qa.inputStyles[p.inputStyle](this),oe=this.display=new ho(t,B,V,p);oe.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 ie,keySeq:null,specialChars:null},p.autofocus&&!h&&oe.input.focus(),O&&g<11&&setTimeout(function(){return F.display.input.reset(!0)},20),Rl(this),ou(),ki(this),this.curOp.forceUpdate=!0,As(this,B),p.autofocus&&!h||this.hasFocus()?setTimeout(function(){F.hasFocus()&&!F.state.focused&&Li(F)},20):no(this);for(var pe in cs)cs.hasOwnProperty(pe)&&cs[pe](this,p[pe],$o);za(this),p.finishInit&&p.finishInit(this);for(var Se=0;Se<q.length;++Se)q[Se](this);qi(this),e&&p.lineWrapping&&getComputedStyle(oe.lineDiv).textRendering=="optimizelegibility"&&(oe.lineDiv.style.textRendering="auto")}Qa.defaults=ws,Qa.optionHandlers=cs;function Rl(t){var p=t.display;ke(p.scroller,"mousedown",Ka(t,zs)),O&&g<11?ke(p.scroller,"dblclick",Ka(t,function(De){if(he(t,De))return;var je=zr(t,De);if(!je||Xs(t,De)||ra(t.display,De))return;we(De);var ut=t.findWordAt(je);_s(t.doc,ut.anchor,ut.head)})):ke(p.scroller,"dblclick",function(De){return he(t,De)||we(De)}),ke(p.scroller,"contextmenu",function(De){return Ol(t,De)}),ke(p.input.getField(),"contextmenu",function(De){p.scroller.contains(De.target)||Ol(t,De)});var F,B={end:0};function V(){p.activeTouch&&(F=setTimeout(function(){return p.activeTouch=null},1e3),B=p.activeTouch,B.end=+new Date)}function oe(De){if(De.touches.length!=1)return!1;var je=De.touches[0];return je.radiusX<=1&&je.radiusY<=1}function pe(De,je){if(je.left==null)return!0;var ut=je.left-De.left,bt=je.top-De.top;return ut*ut+bt*bt>20*20}ke(p.scroller,"touchstart",function(De){if(!he(t,De)&&!oe(De)&&!Xs(t,De)){p.input.ensurePolled(),clearTimeout(F);var je=+new Date;p.activeTouch={start:je,moved:!1,prev:je-B.end<=300?B:null},De.touches.length==1&&(p.activeTouch.left=De.touches[0].pageX,p.activeTouch.top=De.touches[0].pageY)}}),ke(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),ke(p.scroller,"touchend",function(De){var je=p.activeTouch;if(je&&!ra(p,De)&&je.left!=null&&!je.moved&&new Date-je.start<300){var ut=t.coordsChar(p.activeTouch,"page"),bt;!je.prev||pe(je,je.prev)?bt=new Aa(ut,ut):!je.prev.prev||pe(je,je.prev.prev)?bt=t.findWordAt(ut):bt=new Aa(Nt(ut.line,0),Sn(t.doc,Nt(ut.line+1,0))),t.setSelection(bt.anchor,bt.head),t.focus(),we(De)}V()}),ke(p.scroller,"touchcancel",V),ke(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ni(t,p.scroller.scrollLeft,!0),Ce(t,"scroll",t))}),ke(p.scroller,"mousewheel",function(De){return mo(t,De)}),ke(p.scroller,"DOMMouseScroll",function(De){return mo(t,De)}),ke(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(De){he(t,De)||We(De)},over:function(De){he(t,De)||(Fl(t,De),We(De))},start:function(De){return gl(t,De)},drop:Ka(t,Bl),leave:function(De){he(t,De)||Ls(t)}};var Se=p.input.getField();ke(Se,"keyup",function(De){return Cl.call(t,De)}),ke(Se,"keydown",Ka(t,xl)),ke(Se,"keypress",Ka(t,Sl)),ke(Se,"focus",function(De){return Li(t,De)}),ke(Se,"blur",function(De){return no(t,De)})}var q=[];Qa.defineInitHook=function(t){return q.push(t)};function ne(t,p,F,B){var V=t.doc,oe;F==null&&(F="add"),F=="smart"&&(V.mode.indent?oe=Na(t,p).state:F="prev");var pe=t.options.tabSize,Se=Kt(V,p),De=z(Se.text,null,pe);Se.stateAfter&&(Se.stateAfter=null);var je=Se.text.match(/^\s*/)[0],ut;if(!B&&!/\S/.test(Se.text))ut=0,F="not";else if(F=="smart"&&(ut=V.mode.indent(oe,Se.text.slice(je.length),Se.text),ut==xe||ut>150)){if(!B)return;F="prev"}F=="prev"?p>V.first?ut=z(Kt(V,p-1).text,null,pe):ut=0:F=="add"?ut=De+t.options.indentUnit:F=="subtract"?ut=De-t.options.indentUnit:typeof F=="number"&&(ut=De+F),ut=Math.max(0,ut);var bt="",Xt=0;if(t.options.indentWithTabs)for(var Ht=Math.floor(ut/pe);Ht;--Ht)Xt+=pe,bt+=" ";if(Xt<ut&&(bt+=ee(ut-Xt)),bt!=je)return Xo(V,bt,Nt(p,0),Nt(p,je.length),"+input"),Se.stateAfter=null,!0;for(var xn=0;xn<V.sel.ranges.length;xn++){var Fn=V.sel.ranges[xn];if(Fn.head.line==p&&Fn.head.ch<je.length){var nr=Nt(p,je.length);Ao(V,xn,new Aa(nr,nr));break}}}var se=null;function ge(t){se=t}function Ie(t,p,F,B,V){var oe=t.doc;t.display.shift=!1,B||(B=oe.sel);var pe=+new Date-200,Se=V=="paste"||t.state.pasteIncoming>pe,De=Be(p),je=null;if(Se&&B.ranges.length>1)if(se&&se.text.join(`
`)==p){if(B.ranges.length%se.text.length==0){je=[];for(var ut=0;ut<se.text.length;ut++)je.push(oe.splitLines(se.text[ut]))}}else De.length==B.ranges.length&&t.options.pasteLinesPerSelection&&(je=K(De,function(hr){return[hr]}));for(var bt=t.curOp.updateInput,Xt=B.ranges.length-1;Xt>=0;Xt--){var Ht=B.ranges[Xt],xn=Ht.from(),Fn=Ht.to();Ht.empty()&&(F&&F>0?xn=Nt(xn.line,xn.ch-F):t.state.overwrite&&!Se?Fn=Nt(Fn.line,Math.min(Kt(oe,Fn.line).text.length,Fn.ch+U(De).length)):Se&&se&&se.lineWise&&se.text.join(`
`)==De.join(`
`)&&(xn=Fn=Nt(xn.line,0)));var nr={from:xn,to:Fn,text:je?je[Xt%je.length]:De,origin:V||(Se?"paste":t.state.cutIncoming>pe?"cut":"+input")};zo(t.doc,nr),Vt(t,"inputRead",t,nr)}p&&!Se&&Ke(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=bt),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Le(t,p){var F=t.clipboardData&&t.clipboardData.getData("Text");if(F)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Ie(p,F,0,null,"paste")}),!0}function Ke(t,p){if(!t.options.electricChars||!t.options.smartIndent)return;for(var F=t.doc.sel,B=F.ranges.length-1;B>=0;B--){var V=F.ranges[B];if(V.head.ch>100||B&&F.ranges[B-1].head.line==V.head.line)continue;var oe=t.getModeAt(V.head),pe=!1;if(oe.electricChars){for(var Se=0;Se<oe.electricChars.length;Se++)if(p.indexOf(oe.electricChars.charAt(Se))>-1){pe=ne(t,V.head.line,"smart");break}}else oe.electricInput&&(oe.electricInput.test(Kt(t.doc,V.head.line).text.slice(0,V.head.ch))&&(pe=ne(t,V.head.line,"smart")));pe&&Vt(t,"electricInput",t,V.head.line)}}function Ge(t){for(var p=[],F=[],B=0;B<t.doc.sel.ranges.length;B++){var V=t.doc.sel.ranges[B].head.line,oe={anchor:Nt(V,0),head:Nt(V+1,0)};F.push(oe),p.push(t.getRange(oe.anchor,oe.head))}return{text:p,ranges:F}}function ft(t,p,F,B){t.setAttribute("autocorrect",F?"":"off"),t.setAttribute("autocapitalize",B?"":"off"),t.setAttribute("spellcheck",!!p)}function Dt(){var t=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),p=A("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return e?t.style.width="1000px":t.setAttribute("wrap","off"),l&&(t.style.border="1px solid black"),ft(t),p}function Rt(t){var p=t.optionHandlers,F=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(B,V){var oe=this.options,pe=oe[B];if(oe[B]==V&&B!="mode")return;oe[B]=V,p.hasOwnProperty(B)&&Ka(this,p[B])(this,V,pe),Ce(this,"optionChange",this,B)},getOption:function(B){return this.options[B]},getDoc:function(){return this.doc},addKeyMap:function(B,V){this.state.keyMaps[V?"push":"unshift"](os(B))},removeKeyMap:function(B){for(var V=this.state.keyMaps,oe=0;oe<V.length;++oe)if(V[oe]==B||V[oe].name==B)return V.splice(oe,1),!0},addOverlay:ai(function(B,V){var oe=B.token?B:t.getMode(this.options,B);if(oe.startState)throw new Error("Overlays may not be stateful.");X(this.state.overlays,{mode:oe,modeSpec:B,opaque:V&&V.opaque,priority:V&&V.priority||0},function(pe){return pe.priority}),this.state.modeGen++,Vr(this)}),removeOverlay:ai(function(B){for(var V=this.state.overlays,oe=0;oe<V.length;++oe){var pe=V[oe].modeSpec;if(pe==B||typeof B=="string"&&pe.name==B){V.splice(oe,1),this.state.modeGen++,Vr(this);return}}}),indentLine:ai(function(B,V,oe){typeof V!="string"&&typeof V!="number"&&(V==null?V=this.options.smartIndent?"smart":"prev":V=V?"add":"subtract"),vn(this.doc,B)&&ne(this,B,V,oe)}),indentSelection:ai(function(B){for(var V=this.doc.sel.ranges,oe=-1,pe=0;pe<V.length;pe++){var Se=V[pe];if(Se.empty())Se.head.line>oe&&(ne(this,Se.head.line,B,!0),oe=Se.head.line,pe==this.doc.sel.primIndex&&Xi(this));else{var De=Se.from(),je=Se.to(),ut=Math.max(oe,De.line);oe=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var bt=ut;bt<oe;++bt)ne(this,bt,B);var Xt=this.doc.sel.ranges;De.ch==0&&V.length==Xt.length&&Xt[pe].from().ch>0&&Ao(this.doc,pe,new Aa(De,Xt[pe].to()),Te)}}}),getTokenAt:function(B,V){return Oa(this,B,V)},getLineTokens:function(B,V){return Oa(this,Nt(B),V,!0)},getTokenTypeAt:function(B){B=Sn(this.doc,B);var V=Br(this,Kt(this.doc,B.line)),oe=0,pe=(V.length-1)/2,Se=B.ch,De;if(Se==0)De=V[2];else for(;;){var je=oe+pe>>1;if((je?V[je*2-1]:0)>=Se)pe=je;else if(V[je*2+1]<Se)oe=je+1;else{De=V[je*2+2];break}}var ut=De?De.indexOf("overlay "):-1;return ut<0?De:ut==0?null:De.slice(0,ut-1)},getModeAt:function(B){var V=this.doc.mode;return V.innerMode?t.innerMode(V,this.getTokenAt(B).state).mode:V},getHelper:function(B,V){return this.getHelpers(B,V)[0]},getHelpers:function(B,V){var oe=[];if(!F.hasOwnProperty(V))return oe;var pe=F[V],Se=this.getModeAt(B);if(typeof Se[V]=="string")pe[Se[V]]&&oe.push(pe[Se[V]]);else if(Se[V])for(var De=0;De<Se[V].length;De++){var je=pe[Se[V][De]];je&&oe.push(je)}else Se.helperType&&pe[Se.helperType]?oe.push(pe[Se.helperType]):pe[Se.name]&&oe.push(pe[Se.name]);for(var ut=0;ut<pe._global.length;ut++){var bt=pe._global[ut];bt.pred(Se,this)&&ce(oe,bt.val)==-1&&oe.push(bt.val)}return oe},getStateAfter:function(B,V){var oe=this.doc;return B=xr(oe,B==null?oe.first+oe.size-1:B),Na(this,B+1,V).state},cursorCoords:function(B,V){var oe,pe=this.doc.sel.primary();return B==null?oe=pe.head:typeof B=="object"?oe=Sn(this.doc,B):oe=B?pe.from():pe.to(),zn(this,oe,V||"page")},charCoords:function(B,V){return Er(this,Sn(this.doc,B),V||"page")},coordsChar:function(B,V){return B=tn(this,B,V||"page"),Fr(this,B.left,B.top)},lineAtHeight:function(B,V){return B=tn(this,{top:B,left:0},V||"page").top,_n(this.doc,B+this.display.viewOffset)},heightAtLine:function(B,V,oe){var pe=!1,Se;if(typeof B=="number"){var De=this.doc.first+this.doc.size-1;B<this.doc.first?B=this.doc.first:B>De&&(B=De,pe=!0),Se=Kt(this.doc,B)}else Se=B;return yn(this,Se,{top:0,left:0},V||"page",oe||pe).top+(pe?this.doc.height-Ir(Se):0)},defaultTextHeight:function(){return ia(this.display)},defaultCharWidth:function(){return na(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(B,V,oe,pe,Se){var De=this.display;B=zn(this,Sn(this.doc,B));var je=B.bottom,ut=B.left;if(V.style.position="absolute",V.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(V),De.sizer.appendChild(V),pe=="over")je=B.top;else if(pe=="above"||pe=="near"){var bt=Math.max(De.wrapper.clientHeight,this.doc.height),Xt=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(pe=="above"||B.bottom+V.offsetHeight>bt)&&B.top>V.offsetHeight?je=B.top-V.offsetHeight:B.bottom+V.offsetHeight<=bt&&(je=B.bottom),ut+V.offsetWidth>Xt&&(ut=Xt-V.offsetWidth)}V.style.top=je+"px",V.style.left=V.style.right="",Se=="right"?(ut=De.sizer.clientWidth-V.offsetWidth,V.style.right="0px"):(Se=="left"?ut=0:Se=="middle"&&(ut=(De.sizer.clientWidth-V.offsetWidth)/2),V.style.left=ut+"px"),oe&&bo(this,{left:ut,top:je,right:ut+V.offsetWidth,bottom:je+V.offsetHeight})},triggerOnKeyDown:ai(xl),triggerOnKeyPress:ai(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ai(zs),execCommand:function(B){if(qo.hasOwnProperty(B))return qo[B].call(null,this)},triggerElectric:ai(function(B){Ke(this,B)}),findPosH:function(B,V,oe,pe){var Se=1;V<0&&(Se=-1,V=-V);for(var De=Sn(this.doc,B),je=0;je<V&&!(De=gt(this.doc,De,Se,oe,pe),De.hitSide);++je);return De},moveH:ai(function(B,V){var oe=this;this.extendSelectionsBy(function(pe){return oe.display.shift||oe.doc.extend||pe.empty()?gt(oe.doc,pe.head,B,V,oe.options.rtlMoveVisually):B<0?pe.from():pe.to()},ve)}),deleteH:ai(function(B,V){var oe=this.doc.sel,pe=this.doc;oe.somethingSelected()?pe.replaceSelection("",null,"+delete"):Zo(this,function(Se){var De=gt(pe,Se.head,B,V,!1);return B<0?{from:De,to:Se.head}:{from:Se.head,to:De}})}),findPosV:function(B,V,oe,pe){var Se=1,De=pe;V<0&&(Se=-1,V=-V);for(var je=Sn(this.doc,B),ut=0;ut<V;++ut){var bt=zn(this,je,"div");if(De==null?De=bt.left:bt.left=De,je=mt(this,bt,Se,oe),je.hitSide)break}return je},moveV:ai(function(B,V){var oe=this,pe=this.doc,Se=[],De=!this.display.shift&&!pe.extend&&pe.sel.somethingSelected();if(pe.extendSelectionsBy(function(ut){if(De)return B<0?ut.from():ut.to();var bt=zn(oe,ut.head,"div");ut.goalColumn!=null&&(bt.left=ut.goalColumn),Se.push(bt.left);var Xt=mt(oe,bt,B,V);return V=="page"&&ut==pe.sel.primary()&&co(oe,Er(oe,Xt,"div").top-bt.top),Xt},ve),Se.length)for(var je=0;je<pe.sel.ranges.length;je++)pe.sel.ranges[je].goalColumn=Se[je]}),findWordAt:function(B){var V=this.doc,oe=Kt(V,B.line).text,pe=B.ch,Se=B.ch;if(oe){var De=this.getHelper(B,"wordChars");(B.sticky=="before"||Se==oe.length)&&pe?--pe:++Se;for(var je=oe.charAt(pe),ut=$(je,De)?function(bt){return $(bt,De)}:/\s/.test(je)?function(bt){return/\s/.test(bt)}:function(bt){return!/\s/.test(bt)&&!$(bt)};pe>0&&ut(oe.charAt(pe-1));)--pe;for(;Se<oe.length&&ut(oe.charAt(Se));)++Se}return new Aa(Nt(B.line,pe),Nt(B.line,Se))},toggleOverwrite:function(B){if(B!=null&&B==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?G(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),Ce(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==J()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ai(function(B,V){Yi(this,B,V)}),getScrollInfo:function(){var B=this.display.scroller;return{left:B.scrollLeft,top:B.scrollTop,height:B.scrollHeight-nt(this)-this.display.barHeight,width:B.scrollWidth-nt(this)-this.display.barWidth,clientHeight:Pe(this),clientWidth:Ye(this)}},scrollIntoView:ai(function(B,V){B==null?(B={from:this.doc.sel.primary().head,to:null},V==null&&(V=this.options.cursorScrollMargin)):typeof B=="number"?B={from:Nt(B,0),to:null}:B.from==null&&(B={from:B,to:null}),B.to||(B.to=B.from),B.margin=V||0,B.from.line!=null?No(this,B):ao(this,B.from,B.to,B.margin)}),setSize:ai(function(B,V){var oe=this,pe=function(De){return typeof De=="number"||/^\d+$/.test(String(De))?De+"px":De};B!=null&&(this.display.wrapper.style.width=pe(B)),V!=null&&(this.display.wrapper.style.height=pe(V)),this.options.lineWrapping&&Zn(this);var Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(De){if(De.widgets){for(var je=0;je<De.widgets.length;je++)if(De.widgets[je].noHScroll){ha(oe,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,Ce(this,"refresh",this)}),operation:function(B){return fi(this,B)},startOperation:function(){return ki(this)},endOperation:function(){return qi(this)},refresh:ai(function(){var B=this.display.cachedTextHeight;Vr(this),this.curOp.forceUpdate=!0,Tr(this),Yi(this,this.doc.scrollLeft,this.doc.scrollTop),lo(this.display),(B==null||Math.abs(B-ia(this.display))>.5||this.options.lineWrapping)&&Qr(this),Ce(this,"refresh",this)}),swapDoc:ai(function(B){var V=this.doc;return V.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,B),Tr(this),this.display.input.reset(),Yi(this,B.scrollLeft,B.scrollTop),this.curOp.forceScroll=!0,Vt(this,"swapDoc",this,V),V}),phrase:function(B){var V=this.options.phrases;return V&&Object.prototype.hasOwnProperty.call(V,B)?V[B]:B},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}},Ne(t),t.registerHelper=function(B,V,oe){F.hasOwnProperty(B)||(F[B]=t[B]={_global:[]}),F[B][V]=oe},t.registerGlobalHelper=function(B,V,oe,pe){t.registerHelper(B,V,pe),F[B]._global.push({pred:oe,val:pe})}}function gt(t,p,F,B,V){var oe=p,pe=F,Se=Kt(t,p.line),De=V&&t.direction=="rtl"?-F:F;function je(){var Mr=p.line+De;return Mr<t.first||Mr>=t.first+t.size?!1:(p=new Nt(Mr,p.ch,p.sticky),Se=Kt(t,Mr))}function ut(Mr){var pr;if(B=="codepoint"){var Wr=Se.text.charCodeAt(p.ch+(B>0?0:-1));isNaN(Wr)?pr=null:pr=new Nt(p.line,Math.max(0,Math.min(Se.text.length,p.ch+F*(Wr>=55296&&Wr<56320?2:1))),-F)}else V?pr=Fs(t.cm,Se,p,F):pr=js(Se,p,F);if(pr==null)if(!Mr&&je())p=Bs(V,t.cm,Se,p.line,De);else return!1;else p=pr;return!0}if(B=="char"||B=="codepoint")ut();else if(B=="column")ut(!0);else if(B=="word"||B=="group")for(var bt=null,Xt=B=="group",Ht=t.cm&&t.cm.getHelper(p,"wordChars"),xn=!0;!(F<0&&!ut(!xn));xn=!1){var Fn=Se.text.charAt(p.ch)||`
`,nr=$(Fn,Ht)?"w":Xt&&Fn==`
`?"n":!Xt||/\s/.test(Fn)?null:"p";if(Xt&&!xn&&!nr&&(nr="s"),bt&&bt!=nr){F<0&&(F=1,ut(),p.sticky="after");break}if(nr&&(bt=nr),F>0&&!ut(!xn))break}var hr=bs(t,p,oe,pe,!0);return qn(oe,hr)&&(hr.hitSide=!0),hr}function mt(t,p,F,B){var V=t.doc,oe=p.left,pe;if(B=="page"){var Se=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(Se-.5*ia(t.display),3);pe=(F>0?p.bottom:p.top)+F*De}else B=="line"&&(pe=F>0?p.bottom+3:p.top-3);for(var je;!(je=Fr(t,oe,pe),!je.outside);){if(F<0?pe<=0:pe>=V.height){je.hitSide=!0;break}pe+=F*5}return je}var Tt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ie,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Tt.prototype.init=function(t){var p=this,F=this,B=F.cm,V=F.div=t.lineDiv;ft(V,B.options.spellcheck,B.options.autocorrect,B.options.autocapitalize);function oe(Se){for(var De=Se.target;De;De=De.parentNode){if(De==V)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}ke(V,"paste",function(Se){if(!oe(Se)||he(B,Se)||Le(Se,B))return;g<=11&&setTimeout(Ka(B,function(){return p.updateFromDOM()}),20)}),ke(V,"compositionstart",function(Se){p.composing={data:Se.data,done:!1}}),ke(V,"compositionupdate",function(Se){p.composing||(p.composing={data:Se.data,done:!1})}),ke(V,"compositionend",function(Se){p.composing&&(Se.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),ke(V,"touchstart",function(){return F.forceCompositionEnd()}),ke(V,"input",function(){p.composing||p.readFromDOMSoon()});function pe(Se){if(!oe(Se)||he(B,Se))return;if(B.somethingSelected())ge({lineWise:!1,text:B.getSelections()}),Se.type=="cut"&&B.replaceSelection("",null,"cut");else if(B.options.lineWiseCopyCut){var De=Ge(B);ge({lineWise:!0,text:De.text}),Se.type=="cut"&&B.operation(function(){B.setSelections(De.ranges,0,Te),B.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var je=se.text.join(`
`);if(Se.clipboardData.setData("Text",je),Se.clipboardData.getData("Text")==je){Se.preventDefault();return}}var ut=Dt(),bt=ut.firstChild;B.display.lineSpace.insertBefore(ut,B.display.lineSpace.firstChild),bt.value=se.text.join(`
`);var Xt=document.activeElement;H(bt),setTimeout(function(){B.display.lineSpace.removeChild(ut),Xt.focus(),Xt==V&&F.showPrimarySelection()},50)}ke(V,"copy",pe),ke(V,"cut",pe)},Tt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Tt.prototype.prepareSelection=function(){var t=Ei(this.cm,!1);return t.focus=document.activeElement==this.div,t},Tt.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},Tt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Tt.prototype.showPrimarySelection=function(){var t=this.getSelection(),p=this.cm,F=p.doc.sel.primary(),B=F.from(),V=F.to();if(p.display.viewTo==p.display.viewFrom||B.line>=p.display.viewTo||V.line<p.display.viewFrom){t.removeAllRanges();return}var oe=jr(p,t.anchorNode,t.anchorOffset),pe=jr(p,t.focusNode,t.focusOffset);if(oe&&!oe.bad&&pe&&!pe.bad&&pn(Gn(oe,pe),B)==0&&pn(Vn(oe,pe),V)==0)return;var Se=p.display.view,De=B.line>=p.display.viewFrom&&cn(p,B)||{node:Se[0].measure.map[2],offset:0},je=V.line<p.display.viewTo&&cn(p,V);if(!je){var ut=Se[Se.length-1].measure,bt=ut.maps?ut.maps[ut.maps.length-1]:ut.map;je={node:bt[bt.length-1],offset:bt[bt.length-2]-bt[bt.length-3]}}if(!De||!je){t.removeAllRanges();return}var Xt=t.rangeCount&&t.getRangeAt(0),Ht;try{Ht=I(De.node,De.offset,je.offset,je.node)}catch(xn){}Ht&&(!T&&p.state.focused?(t.collapse(De.node,De.offset),Ht.collapsed||(t.removeAllRanges(),t.addRange(Ht))):(t.removeAllRanges(),t.addRange(Ht)),Xt&&t.anchorNode==null?t.addRange(Xt):T&&this.startGracePeriod()),this.rememberSelection()},Tt.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)},Tt.prototype.showMultipleSelections=function(t){_(this.cm.display.cursorDiv,t.cursors),_(this.cm.display.selectionDiv,t.selection)},Tt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Tt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var p=t.getRangeAt(0).commonAncestorContainer;return k(this.div,p)},Tt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Tt.prototype.blur=function(){this.div.blur()},Tt.prototype.getField=function(){return this.div},Tt.prototype.supportsTouch=function(){return!0},Tt.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)},Tt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Tt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),p=this.cm;if(d&&r&&this.cm.display.gutterSpecs.length&&lr(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var F=jr(p,t.anchorNode,t.anchorOffset),B=jr(p,t.focusNode,t.focusOffset);F&&B&&fi(p,function(){vi(p.doc,gr(F,B),Te),(F.bad||B.bad)&&(p.curOp.selectionChanged=!0)})},Tt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,p=t.display,F=t.doc.sel.primary(),B=F.from(),V=F.to();if(B.ch==0&&B.line>t.firstLine()&&(B=Nt(B.line-1,Kt(t.doc,B.line-1).length)),V.ch==Kt(t.doc,V.line).text.length&&V.line<t.lastLine()&&(V=Nt(V.line+1,0)),B.line<p.viewFrom||V.line>p.viewTo-1)return!1;var oe,pe,Se;B.line==p.viewFrom||(oe=Xr(t,B.line))==0?(pe=an(p.view[0].line),Se=p.view[0].node):(pe=an(p.view[oe].line),Se=p.view[oe-1].node.nextSibling);var De=Xr(t,V.line),je,ut;if(De==p.view.length-1?(je=p.viewTo-1,ut=p.lineDiv.lastChild):(je=an(p.view[De+1].line)-1,ut=p.view[De+1].node.previousSibling),!Se)return!1;for(var bt=t.doc.splitLines(Pr(t,Se,ut,pe,je)),Xt=gn(t.doc,Nt(pe,0),Nt(je,Kt(t.doc,je).text.length));bt.length>1&&Xt.length>1;)if(U(bt)==U(Xt))bt.pop(),Xt.pop(),je--;else if(bt[0]==Xt[0])bt.shift(),Xt.shift(),pe++;else break;for(var Ht=0,xn=0,Fn=bt[0],nr=Xt[0],hr=Math.min(Fn.length,nr.length);Ht<hr&&Fn.charCodeAt(Ht)==nr.charCodeAt(Ht);)++Ht;for(var Mr=U(bt),pr=U(Xt),Wr=Math.min(Mr.length-(bt.length==1?Ht:0),pr.length-(Xt.length==1?Ht:0));xn<Wr&&Mr.charCodeAt(Mr.length-xn-1)==pr.charCodeAt(pr.length-xn-1);)++xn;if(bt.length==1&&Xt.length==1&&pe==B.line)for(;Ht&&Ht>B.ch&&Mr.charCodeAt(Mr.length-xn-1)==pr.charCodeAt(pr.length-xn-1);)Ht--,xn++;bt[bt.length-1]=Mr.slice(0,Mr.length-xn).replace(/^\u200b+/,""),bt[0]=bt[0].slice(Ht).replace(/\u200b+$/,"");var da=Nt(pe,Ht),aa=Nt(je,Xt.length?U(Xt).length-xn:0);if(bt.length>1||bt[0]||pn(da,aa))return Xo(t.doc,bt,da,aa,"+input"),!0},Tt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Tt.prototype.reset=function(){this.forceCompositionEnd()},Tt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Tt.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)},Tt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return Vr(t.cm)})},Tt.prototype.setUneditable=function(t){t.contentEditable="false"},Tt.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ka(this.cm,Ie)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},Tt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Tt.prototype.onContextMenu=function(){},Tt.prototype.resetPosition=function(){},Tt.prototype.needsContentAttribute=!0;function cn(t,p){var F=ht(t,p.line);if(!F||F.hidden)return null;var B=Kt(t.doc,p.line),V=Re(F,B,p.line),oe=dt(B,t.doc.direction),pe="left";if(oe){var Se=st(oe,p.ch);pe=Se%2?"right":"left"}var De=Gt(V.map,p.ch,pe);return De.offset=De.collapse=="right"?De.end:De.start,De}function lr(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function fr(t,p){return p&&(t.bad=!0),t}function Pr(t,p,F,B,V){var oe="",pe=!1,Se=t.doc.lineSeparator(),De=!1;function je(Ht){return function(xn){return xn.id==Ht}}function ut(){pe&&(oe+=Se,De&&(oe+=Se),pe=De=!1)}function bt(Ht){Ht&&(ut(),oe+=Ht)}function Xt(Ht){if(Ht.nodeType==1){var xn=Ht.getAttribute("cm-text");if(xn){bt(xn);return}var Fn=Ht.getAttribute("cm-marker"),nr;if(Fn){var hr=t.findMarks(Nt(B,0),Nt(V+1,0),je(+Fn));hr.length&&(nr=hr[0].find(0))&&bt(gn(t.doc,nr.from,nr.to).join(Se));return}if(Ht.getAttribute("contenteditable")=="false")return;var Mr=/^(pre|div|p|li|table|br)$/i.test(Ht.nodeName);if(!/^br$/i.test(Ht.nodeName)&&Ht.textContent.length==0)return;Mr&&ut();for(var pr=0;pr<Ht.childNodes.length;pr++)Xt(Ht.childNodes[pr]);/^(pre|p)$/i.test(Ht.nodeName)&&(De=!0),Mr&&(pe=!0)}else Ht.nodeType==3&&bt(Ht.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Xt(p),p==F);)p=p.nextSibling,De=!1;return oe}function jr(t,p,F){var B;if(p==t.display.lineDiv){if(B=t.display.lineDiv.childNodes[F],!B)return fr(t.clipPos(Nt(t.display.viewTo-1)),!0);p=null,F=0}else for(B=p;;B=B.parentNode){if(!B||B==t.display.lineDiv)return null;if(B.parentNode&&B.parentNode==t.display.lineDiv)break}for(var V=0;V<t.display.view.length;V++){var oe=t.display.view[V];if(oe.node==B)return la(oe,p,F)}}function la(t,p,F){var B=t.text.firstChild,V=!1;if(!p||!k(B,p))return fr(Nt(an(t.line),0),!0);if(p==B&&(V=!0,p=B.childNodes[F],F=0,!p)){var oe=t.rest?U(t.rest):t.line;return fr(Nt(an(oe),oe.text.length),V)}var pe=p.nodeType==3?p:null,Se=p;for(!pe&&p.childNodes.length==1&&p.firstChild.nodeType==3&&(pe=p.firstChild,F&&(F=pe.nodeValue.length));Se.parentNode!=B;)Se=Se.parentNode;var De=t.measure,je=De.maps;function ut(nr,hr,Mr){for(var pr=-1;pr<(je?je.length:0);pr++)for(var Wr=pr<0?De.map:je[pr],da=0;da<Wr.length;da+=3){var aa=Wr[da+2];if(aa==nr||aa==hr){var Ca=an(pr<0?t.line:t.rest[pr]),Ya=Wr[da]+Mr;return(Mr<0||aa!=nr)&&(Ya=Wr[da+(Mr?1:0)]),Nt(Ca,Ya)}}}var bt=ut(pe,Se,F);if(bt)return fr(bt,V);for(var Xt=Se.nextSibling,Ht=pe?pe.nodeValue.length-F:0;Xt;Xt=Xt.nextSibling){if(bt=ut(Xt,Xt.firstChild,0),bt)return fr(Nt(bt.line,bt.ch-Ht),V);Ht+=Xt.textContent.length}for(var xn=Se.previousSibling,Fn=F;xn;xn=xn.previousSibling){if(bt=ut(xn,xn.firstChild,-1),bt)return fr(Nt(bt.line,bt.ch+Fn),V);Fn+=xn.textContent.length}}var Ur=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new ie,this.hasSelection=!1,this.composing=null};Ur.prototype.init=function(t){var p=this,F=this,B=this.cm;this.createField(t);var V=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),l&&(V.style.width="0px"),ke(V,"input",function(){O&&g>=9&&p.hasSelection&&(p.hasSelection=null),F.poll()}),ke(V,"paste",function(pe){if(he(B,pe)||Le(pe,B))return;B.state.pasteIncoming=+new Date,F.fastPoll()});function oe(pe){if(he(B,pe))return;if(B.somethingSelected())ge({lineWise:!1,text:B.getSelections()});else if(B.options.lineWiseCopyCut){var Se=Ge(B);ge({lineWise:!0,text:Se.text}),pe.type=="cut"?B.setSelections(Se.ranges,null,Te):(F.prevInput="",V.value=Se.text.join(`
`),H(V))}else return;pe.type=="cut"&&(B.state.cutIncoming=+new Date)}ke(V,"cut",oe),ke(V,"copy",oe),ke(t.scroller,"paste",function(pe){if(ra(t,pe)||he(B,pe))return;if(!V.dispatchEvent){B.state.pasteIncoming=+new Date,F.focus();return}var Se=new Event("paste");Se.clipboardData=pe.clipboardData,V.dispatchEvent(Se)}),ke(t.lineSpace,"selectstart",function(pe){ra(t,pe)||we(pe)}),ke(V,"compositionstart",function(){var pe=B.getCursor("from");F.composing&&F.composing.range.clear(),F.composing={start:pe,range:B.markText(pe,B.getCursor("to"),{className:"CodeMirror-composing"})}}),ke(V,"compositionend",function(){F.composing&&(F.poll(),F.composing.range.clear(),F.composing=null)})},Ur.prototype.createField=function(t){this.wrapper=Dt(),this.textarea=this.wrapper.firstChild},Ur.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Ur.prototype.prepareSelection=function(){var t=this.cm,p=t.display,F=t.doc,B=Ei(t);if(t.options.moveInputWithCursor){var V=zn(t,F.sel.primary().head,"div"),oe=p.wrapper.getBoundingClientRect(),pe=p.lineDiv.getBoundingClientRect();B.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,V.top+pe.top-oe.top)),B.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,V.left+pe.left-oe.left))}return B},Ur.prototype.showSelection=function(t){var p=this.cm,F=p.display;_(F.cursorDiv,t.cursors),_(F.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ur.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var p=this.cm;if(p.somethingSelected()){this.prevInput="";var F=p.getSelection();this.textarea.value=F,p.state.focused&&H(this.textarea),O&&g>=9&&(this.hasSelection=F)}else t||(this.prevInput=this.textarea.value="",O&&g>=9&&(this.hasSelection=null))},Ur.prototype.getField=function(){return this.textarea},Ur.prototype.supportsTouch=function(){return!1},Ur.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||J()!=this.textarea))try{this.textarea.focus()}catch(t){}},Ur.prototype.blur=function(){this.textarea.blur()},Ur.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ur.prototype.receivedFocus=function(){this.slowPoll()},Ur.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()})},Ur.prototype.fastPoll=function(){var t=!1,p=this;p.pollingFast=!0;function F(){var B=p.poll();!B&&!t?(t=!0,p.polling.set(60,F)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,F)},Ur.prototype.poll=function(){var t=this,p=this.cm,F=this.textarea,B=this.prevInput;if(this.contextMenuPending||!p.state.focused||at(F)&&!B&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var V=F.value;if(V==B&&!p.somethingSelected())return!1;if(O&&g>=9&&this.hasSelection===V||s&&/[\uf700-\uf7ff]/.test(V))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var oe=V.charCodeAt(0);if(oe==8203&&!B&&(B="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var pe=0,Se=Math.min(B.length,V.length);pe<Se&&B.charCodeAt(pe)==V.charCodeAt(pe);)++pe;return fi(p,function(){Ie(p,V.slice(pe),B.length-pe,null,t.composing?"*compose":null),V.length>1e3||V.indexOf(`
`)>-1?F.value=t.prevInput="":t.prevInput=V,t.composing&&(t.composing.range.clear(),t.composing.range=p.markText(t.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ur.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ur.prototype.onKeyPress=function(){O&&g>=9&&(this.hasSelection=null),this.fastPoll()},Ur.prototype.onContextMenu=function(t){var p=this,F=p.cm,B=F.display,V=p.textarea;p.contextMenuPending&&p.contextMenuPending();var oe=zr(F,t),pe=B.scroller.scrollTop;if(!oe||c)return;var Se=F.options.resetSelectionOnContextMenu;Se&&F.doc.sel.contains(oe)==-1&&Ka(F,vi)(F.doc,gr(oe),Te);var De=V.style.cssText,je=p.wrapper.style.cssText,ut=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",V.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(t.clientY-ut.top-5)+"px; left: "+(t.clientX-ut.left-5)+`px;
z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var bt;e&&(bt=window.scrollY),B.input.focus(),e&&window.scrollTo(null,bt),B.input.reset(),F.somethingSelected()||(V.value=p.prevInput=" "),p.contextMenuPending=Ht,B.selForContextMenu=F.doc.sel,clearTimeout(B.detectingSelectAll);function Xt(){if(V.selectionStart!=null){var Fn=F.somethingSelected(),nr="\u200B"+(Fn?V.value:"");V.value="\u21DA",V.value=nr,p.prevInput=Fn?"":"\u200B",V.selectionStart=1,V.selectionEnd=nr.length,B.selForContextMenu=F.doc.sel}}function Ht(){if(p.contextMenuPending!=Ht)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=je,V.style.cssText=De,O&&g<9&&B.scrollbars.setScrollTop(B.scroller.scrollTop=pe),V.selectionStart!=null){(!O||O&&g<9)&&Xt();var Fn=0,nr=function(){B.selForContextMenu==F.doc.sel&&V.selectionStart==0&&V.selectionEnd>0&&p.prevInput=="\u200B"?Ka(F,ol)(F):Fn++<10?B.detectingSelectAll=setTimeout(nr,500):(B.selForContextMenu=null,B.input.reset())};B.detectingSelectAll=setTimeout(nr,200)}}if(O&&g>=9&&Xt(),P){We(t);var xn=function(){Mt(window,"mouseup",xn),setTimeout(Ht,20)};ke(window,"mouseup",xn)}else setTimeout(Ht,50)},Ur.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Ur.prototype.setUneditable=function(){},Ur.prototype.needsContentAttribute=!1;function Ra(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 F=J();p.autofocus=F==t||t.getAttribute("autofocus")!=null&&F==document.body}function B(){t.value=Se.getValue()}var V;if(t.form&&(ke(t.form,"submit",B),!p.leaveSubmitMethodAlone)){var oe=t.form;V=oe.submit;try{var pe=oe.submit=function(){B(),oe.submit=V,oe.submit(),oe.submit=pe}}catch(De){}}p.finishInit=function(De){De.save=B,De.getTextArea=function(){return t},De.toTextArea=function(){De.toTextArea=isNaN,B(),t.parentNode.removeChild(De.getWrapperElement()),t.style.display="",t.form&&(Mt(t.form,"submit",B),!p.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=V))}},t.style.display="none";var Se=Qa(function(De){return t.parentNode.insertBefore(De,t.nextSibling)},p);return Se}function Ta(t){t.off=Mt,t.on=ke,t.wheelEventPixels=Hi,t.Doc=Ai,t.splitLines=Be,t.countColumn=z,t.findColumn=_e,t.isWordChar=re,t.Pass=xe,t.signal=Ce,t.Line=Or,t.changeEnd=Yr,t.scrollbarModel=xo,t.Pos=Nt,t.cmpPos=pn,t.modes=xt,t.mimeModes=_t,t.resolveMode=Ct,t.getMode=Bt,t.modeExtensions=It,t.extendMode=yt,t.copyState=zt,t.startState=hn,t.innerMode=sn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=un,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=we,t.e_stopPropagation=Ae,t.e_stop=We,t.addClass=G,t.contains=k,t.rmClass=C,t.keyNames=Ro}eu(Qa),Rt(Qa);var Va="iter insert remove copy getEditor constructor".split(" ");for(var si in Ai.prototype)Ai.prototype.hasOwnProperty(si)&&ce(Va,si)<0&&(Qa.prototype[si]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ai.prototype[si]));return Ne(Ai),Qa.inputStyles={textarea:Ur,contenteditable:Tt},Qa.defineMode=function(t){!Qa.defaults.mode&&t!="null"&&(Qa.defaults.mode=t),At.apply(this,arguments)},Qa.defineMIME=Ot,Qa.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Qa.defineMIME("text/plain","null"),Qa.defineExtension=function(t,p){Qa.prototype[t]=p},Qa.defineDocExtension=function(t,p){Ai.prototype[t]=p},Qa.fromTextArea=Ra,Ta(Qa),Qa.version="5.58.2",Qa})},W6BS:function(N,Y){N.exports="data:image/png;base64,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"},WO9J:function(N,Y,i){"use strict";i.r(Y);var M=i("0Owb"),E=i("PpiC"),T=i("q1tI"),v=i.n(T),m=i("EkPF"),y=i.n(m),O=i("miYZ"),g=i("tsqr"),e=i("2qtc"),f=i("kLXV"),r=i("9og8"),c=i("WmNS"),n=i.n(c),a=i("auZk"),o=i.n(a),l=i("1vsH"),d=i("Ufr+"),h=i.n(d),s=i("HBuW"),u=i("ErOA"),w=i("Ty5D"),x=i("9kvl"),b=function(jt){var on,An,Tn=jt.globalSetting,Yn=jt.loading,Jn=jt.dispatch,kn=jt.practiceSetting,Ar=jt.shixunsDetail,ur=Object(E.a)(jt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),yr=Object(w.h)(),vr=Object(T.useRef)(""),Dr=Object(w.i)(),Xn=kn.title,Ut=kn.base_info_warning,en=kn.challenges_warning,Vt=kn.service_warning,Un=kn.repository_warning,$n=kn.mirror_warning;Object(T.useEffect)(function(){var Kr;vr.current=(Kr=yr.pathname.split("/"))===null||Kr===void 0?void 0:Kr[2],Jn({type:"practiceSetting/setParams",payload:{id:vr.current}}),Jn({type:"practiceSetting/getCommonData",payload:{id:vr.current}})},[yr.pathname]),Object(T.useEffect)(function(){return Object(l.X)(Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(l.X)()}});var ir=function(){var Kr=Object(r.a)(n.a.mark(function mr(){return n.a.wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Rr.next=2,Kn();case 2:x.d.push("/shixuns/".concat(vr.current,"/challenges"));case 3:case"end":return Rr.stop()}},mr)}));return function(){return Kr.apply(this,arguments)}}(),Kn=function(){return new Promise(function(mr,Jr){var Rr;kn!=null&&(Rr=kn.sideBar)!==null&&Rr!==void 0&&Rr.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(){Jn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),mr()},onCancel:function(){Jr()}}):mr()})},rr=function(mr){var Jr;if(mr===(kn==null?void 0:kn.sideBar.tabsActive))return;var Rr=function(){x.d.push("/shixuns/".concat(vr.current,"/edit?tabId=").concat(mr)),Jn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:mr,selectPath:"",confirmLeave:!1}})};kn!=null&&(Jr=kn.sideBar)!==null&&Jr!==void 0&&Jr.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()},or=function Kr(mr){var Jr;mr=(Jr=mr)!==null&&Jr!==void 0&&Jr.includes(".json")?mr:"".concat(mr,".json"),f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:v.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Rr=Object(r.a)(n.a.mark(function Gr(){var Fe,tt;return n.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,Object(u.a)("/api"+mr,{method:"get"});case 2:if(Fe=Ye.sent,Fe){Ye.next=5;break}return Ye.abrupt("return");case 5:return g.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ye.next=8,Object(s.E)({id:Fe.shixun_identifier});case 8:if(tt=Ye.sent,!(tt!=null&&tt.game_identifier)){Ye.next=12;break}return Object(l.S)("/tasks/".concat(tt.game_identifier)),Ye.abrupt("return");case 12:(tt==null?void 0:tt.status)===2?Kr(tt==null?void 0:tt.message):(tt==null?void 0:tt.status)===3&&ta(tt==null?void 0:tt.message);case 13:case"end":return Ye.stop()}},Gr)}));function ra(){return Rr.apply(this,arguments)}return ra}()})},ta=function(mr){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:v.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",mr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},wr=function(){var Kr=Object(r.a)(n.a.mark(function mr(Jr,Rr){var ra,Gr,Fe;return n.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,Kn();case 2:if(Object(l.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((ra=Ar.detail)!==null&&ra!==void 0&&ra.is_jupyter||(Gr=Ar.detail)!==null&&Gr!==void 0&&Gr.is_jupyter_lab)){nt.next=6;break}return Jn({type:"shixunsDetail/execJupyter",payload:{id:vr.current}}).then(function(Ye){Ye!=null&&Ye.identifier&&(x.d===null||x.d===void 0||x.d.push("/tasks/".concat(Ye.identifier,"/jupyter")))}),nt.abrupt("return");case 6:if(Jn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Rr){nt.next=13;break}return nt.next=10,Object(s.D)({id:Jr});case 10:nt.t0=nt.sent,nt.next=16;break;case 13:return nt.next=15,Object(s.E)({id:Jr});case 15:nt.t0=nt.sent;case 16:if(Fe=nt.t0,Jn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Fe!=null&&Fe.game_identifier||Fe!=null&&Fe.identifier)){nt.next=21;break}return Object(l.S)(Rr?"/tasks/".concat(Fe==null?void 0:Fe.identifier,"/jupyter"):"/tasks/".concat(Fe.game_identifier)),nt.abrupt("return");case 21:(Fe==null?void 0:Fe.status)===-3?Object(l.q)():(Fe==null?void 0:Fe.status)===2?or(Fe==null?void 0:Fe.message):(Fe==null?void 0:Fe.status)===3&&ta(Fe==null?void 0:Fe.message);case 22:case"end":return nt.stop()}},mr)}));return function(Jr,Rr){return Kr.apply(this,arguments)}}(),_r=function(){var Kr=Object(r.a)(n.a.mark(function mr(){return n.a.wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Rr.next=2,Kn();case 2:Jn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return Rr.stop()}},mr)}));return function(){return Kr.apply(this,arguments)}}(),qr=function(mr){var Jr={borderBottomColor:(kn==null?void 0:kn.sideBar.tabsActive)===mr?"#0152d9":"transparent"};return Jr};return v.a.createElement("div",{className:o.a.header},v.a.createElement("aside",{className:o.a.title},v.a.createElement("i",{onClick:ir,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),v.a.createElement("span",{className:o.a.edit},Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),v.a.createElement("i",{onClick:_r,className:"icon iconfont icon-xiugai1"})),v.a.createElement("aside",{className:o.a.schedule},v.a.createElement("div",null,v.a.createElement("span",{style:qr("information"),className:o.a.clickWarp,onClick:function(){return rr("information")}},Ut?v.a.createElement("span",{className:o.a.num},"1"):v.a.createElement("img",{src:h.a}),v.a.createElement("span",{className:o.a.subject},"\u57FA\u672C\u4FE1\u606F")),v.a.createElement("i",{className:"iconfont icon-lujing"})),v.a.createElement("div",null,v.a.createElement("span",{style:qr("warehouse"),className:o.a.clickWarp,onClick:function(){return rr("warehouse")}},Un?v.a.createElement("span",{className:o.a.num},"2"):v.a.createElement("img",{src:h.a}),v.a.createElement("span",{className:o.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),v.a.createElement("i",{className:"iconfont icon-lujing"})),(Ar==null?void 0:Ar.detail)&&!(Ar!=null&&(on=Ar.detail)!==null&&on!==void 0&&on.is_jupyter_lab)&&v.a.createElement("div",null,v.a.createElement("span",{style:qr("level"),className:o.a.clickWarp,onClick:function(){return rr("level")}},en?v.a.createElement("span",{className:o.a.num},"3"):v.a.createElement("img",{src:h.a}),v.a.createElement("span",{className:o.a.subject},"\u4EFB\u52A1\u5173\u5361")),v.a.createElement("i",{className:"iconfont icon-lujing"})),(Ar==null?void 0:Ar.detail)&&(Ar==null||((An=Ar.detail)===null||An===void 0)?void 0:An.is_jupyter_lab)&&v.a.createElement("div",null,v.a.createElement("span",{style:qr("service"),className:o.a.clickWarp,onClick:function(){return rr("service")}},Vt?v.a.createElement("span",{className:o.a.num},"3"):v.a.createElement("img",{src:h.a}),v.a.createElement("span",{className:o.a.subject},"\u670D\u52A1")),v.a.createElement("i",{className:"iconfont icon-lujing"})),v.a.createElement("div",null,v.a.createElement("span",{style:qr("environment"),className:o.a.clickWarp,onClick:function(){return rr("environment")}},$n?v.a.createElement("span",{className:o.a.num},"4"):v.a.createElement("img",{src:h.a}),v.a.createElement("span",{className:o.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),v.a.createElement("aside",{className:o.a.btns},v.a.createElement("div",{className:o.a.simulate,onClick:function(){return wr(vr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(x.a)(function($t){var jt=$t.loading,on=$t.globalSetting,An=$t.practiceSetting,Tn=$t.shixunsDetail;return{globalSetting:on,loading:jt,practiceSetting:An,shixunsDetail:Tn}})(b),R=i("sRBo"),C=i("kaz8"),S=i("14J3"),_=i("BMrR"),A=i("jCWc"),j=i("kPKH"),I=i("DZo9"),k=i("8z0m"),J=i("6UJt"),G=i("DFOY"),D=i("5NDa"),H=i("5rEg"),W=i("+L6B"),L=i("2/Rp"),z=i("k1fw"),ie=i("y8nQ"),ce=i("Vl3Y"),ue=i("tJVT"),xe=i("h/E3"),Te=i.n(xe),de=i("Ot1p"),ve=i("oBTY"),_e=i("+Xk9"),le=i.n(_e),ee=i("FTkQ"),U=i.n(ee),K=function(jt){var on=jt.InputRight,An=jt.value,Tn=An===void 0?[]:An,Yn=jt.onChange,Jn=Object(E.a)(jt,["InputRight","value","onChange"]),kn=Object(T.useState)(),Ar=Object(ue.a)(kn,2),ur=Ar[0],yr=Ar[1],vr=function(Ut){var en=Tn.filter(function(Vt,Un){return Un!==Ut});Yn(en)},Dr=function(Ut){if(Ut.preventDefault(),!ur)return;if(Tn.findIndex(function(en){return en.name===ur})>-1){g.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}Yn([].concat(Object(ve.a)(Tn),[{id:null,name:ur}])),yr(null)};return v.a.createElement("div",null,v.a.createElement(H.a,Object(M.a)({bordered:!1,style:{width:600},value:ur,onChange:function(Ut){return yr(Ut.target.value)},onPressEnter:Dr,onBlur:Dr},Jn)),on||v.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),v.a.createElement("div",{className:"mt20"},Tn==null?void 0:Tn.map(function(Xn,Ut){return v.a.createElement("div",{key:Ut,className:le.a.btn},v.a.createElement("span",{className:le.a.s1},Xn.name),v.a.createElement("img",{src:U.a,className:le.a.s2,onClick:function(){return vr(Ut)}}))})))},X=K,Q=i("LvDl"),te=i("m3rI"),ae=i("hW5Z"),re=i.n(ae),$=function(jt){var on=jt.dispatch,An=jt.onCancel,Tn=jt.onSave,Yn=jt.loading,Jn=Yn===void 0?!1:Yn;return v.a.createElement("div",{className:re.a.complete},v.a.createElement("div",{onClick:An,className:re.a.cancel},"\u53D6\u6D88"),v.a.createElement(L.a,{type:"primary",loading:Jn,onClick:Tn,className:re.a.save},"\u4FDD\u5B58"))},Z=Object(x.a)()($),fe=i("UqFu"),me=i("z7Xi"),Oe=i("jN4g"),He=function(jt){var on,An,Tn=jt.globalSetting,Yn=jt.loading,Jn=jt.dispatch,kn=jt.practiceSetting,Ar=jt.problemset,ur=jt.shixunsDetail,yr=Object(E.a)(jt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),vr=ce.a.useForm(),Dr=Object(ue.a)(vr,1),Xn=Dr[0],Ut=Object(T.useState)({}),en=Object(ue.a)(Ut,2),Vt=en[0],Un=en[1],$n=Object(T.useState)(!1),ir=Object(ue.a)($n,2),Kn=ir[0],rr=ir[1],or=Object(T.useState)(!1),ta=Object(ue.a)(or,2),wr=ta[0],_r=ta[1],qr=Object(T.useState)(""),Kr=Object(ue.a)(qr,2),mr=Kr[0],Jr=Kr[1],Rr=Object(T.useState)(""),ra=Object(ue.a)(Rr,2),Gr=ra[0],Fe=ra[1],tt=Object(T.useRef)({}),nt=Object(T.useRef)(""),Ye=Object(T.useRef)(null),Pe=Object(T.useRef)(Object(Q.throttle)(function(){return et()},2e3,{leading:!0,trailing:!1})).current,ze=kn.id;Object(T.useEffect)(function(){if(!ze)return;Ze()},[ze]),Object(T.useEffect)(function(){return JSON.stringify(Vt)!=="{}"&&Re(),function(){clearTimeout(Ye.current)}},[Vt,mr,Gr]);var Re=function(){clearTimeout(Ye.current),Ye.current=setTimeout(function(){!Object(Q.isEqual)(Vt,tt.current)||mr!==nt.current||Gr!==nt.current?Jn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Jn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Ze=function(){var Bn=Object(r.a)(n.a.mark(function rn(){var yn,tn,Er,zn,bn,In,Fr,Qn,Ln;return n.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return Jn({type:"problemset/getEditDisciplines",payload:{source:"all_shixun"}}),Lr.next=3,Object(u.a)("/api/shixuns/".concat(ze,"/edit_base_info.json"),{method:"get"});case 3:yn=Lr.sent,yn.status===0&&(Qn=Object(z.a)(Object(z.a)({},yn.data),{},{description:Object(fe.a)(yn.data.description)}),Ln={description:Qn.description,shixun_tags:Qn.shixun_tags,name:Qn.name,course:(Qn==null||((tn=Qn.disciplines)===null||tn===void 0)?void 0:tn.length)>0?[Qn==null||((Er=Qn.disciplines)===null||Er===void 0||((zn=Er[0])===null||zn===void 0))?void 0:zn.id,Qn==null||((bn=Qn.disciplines)===null||bn===void 0||((In=bn[0])===null||In===void 0||((Fr=In.sub_discipline)===null||Fr===void 0)))?void 0:Fr.id]:[],jupyter_show_description:yn.data.jupyter_show_description},Xn.setFieldsValue(Ln),tt.current=Object(z.a)({},Ln),nt.current=Qn.attachment_id||"",Un(Object(z.a)({},Ln)),Jr(Qn.attachment_id||""),Fe(Qn.cover_image_id||""));case 5:case"end":return Lr.stop()}},rn)}));return function(){return Bn.apply(this,arguments)}}(),qe=function(rn,yn){Un(Object(z.a)({},yn))},ht=function(){Pt()},et=function(){Object(l.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Xn.submit()},wt=function(rn){var yn,tn=rn.name,Er=rn.description,zn=rn.shixun_tags,bn=rn.course,In=rn.jupyter_show_description,Fr=In===void 0?!1:In,Qn={name:tn,description:Er,shixun_tags:zn,attachment_id:mr,cover_image_id:Gr,sub_discipline_ids:bn[1]};(yn=ur.detail)!==null&&yn!==void 0&&yn.is_jupyter_lab&&(Qn=Object(z.a)(Object(z.a)({},Qn),{},{jupyter_show_description:Fr}));var Ln=Object(u.a)("/api/shixuns/".concat(ze,"/base_info_save.json"),{method:"post",body:{shixun:Object(z.a)({},Qn)}});Ln.then(function(cr){cr.status===0&&(g.b.success("\u4FDD\u5B58\u6210\u529F"),Jn({type:"practiceSetting/getCommonData",payload:{id:ze}}),Jn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),tt.current={description:Vt.description,shixun_tags:Vt.shixun_tags,name:Vt.name},nt.current=mr)})},Pt=function(){var rn,yn=function(){x.d.push("/shixuns/".concat(ze,"/challenges")),Jn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};kn!=null&&(rn=kn.sideBar)!==null&&rn!==void 0&&rn.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(){yn()}}):yn()};function Gt(Bn){var rn=Bn.type==="image/jpeg"||Bn.type==="image/png";return rn||g.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),rn}var kt=v.a.createElement(L.a,{loading:Kn,icon:v.a.createElement(me.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),ln=v.a.createElement(L.a,{loading:wr,icon:v.a.createElement(me.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function On(Bn,rn){var yn=new FileReader;yn.addEventListener("load",function(){return rn(yn.result)}),yn.readAsDataURL(Bn)}var er=function(rn){if(rn.file.status==="uploading"){rr(!0);return}if(rn.file.status==="done"){var yn,tn;rr(!1),Jr(rn==null||((yn=rn.file)===null||yn===void 0||((tn=yn.response)===null||tn===void 0))?void 0:tn.id)}},Zn=function(){return v.a.createElement("div",{className:Te.a.img},v.a.createElement("img",{src:te.a.API_SERVER+"/api/attachments/"+mr,alt:"avatar",style:{width:"100%"}}),v.a.createElement("div",null,v.a.createElement(Oe.a,{onClick:function(){return Jr("")},style:{fontSize:"16px",color:"red"}})))},Tr=function(rn){if(rn.file.status==="uploading"){_r(!0);return}if(rn.file.status==="done"){var yn,tn;_r(!1),Fe(rn==null||((yn=rn.file)===null||yn===void 0||((tn=yn.response)===null||tn===void 0))?void 0:tn.id)}},dr=function(){return v.a.createElement("div",{className:Te.a.img},v.a.createElement("img",{src:te.a.API_SERVER+"/api/attachments/"+Gr,alt:"avatar",style:{width:"100%"}}),v.a.createElement("div",null,v.a.createElement(Oe.a,{onClick:function(){return Fe("")},style:{fontSize:"16px",color:"red"}})))};return v.a.createElement("div",{className:Te.a.information},v.a.createElement("section",{className:Te.a.scroll},v.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),v.a.createElement("div",{className:Te.a.formWrap}," ",v.a.createElement(ce.a,{form:Xn,scrollToFirstError:!0,layout:"vertical",onValuesChange:qe,onFinish:wt},v.a.createElement(ce.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"}]},v.a.createElement(H.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((on=Vt.name)===null||on===void 0?void 0:on.length)||0,"/60")})),v.a.createElement(ce.a.Item,{className:"customAddTags",name:"shixun_tags",label:v.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",v.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"}]},v.a.createElement(X,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),v.a.createElement(ce.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},v.a.createElement(G.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Ar.courseOptions})),v.a.createElement(_.a,null,v.a.createElement(j.a,null,v.a.createElement(ce.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},mr?Zn():v.a.createElement(k.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(te.a.API_SERVER,"/api/attachments.json"),beforeUpload:Gt,onChange:er},kt))),v.a.createElement(j.a,{className:"c-grey-999"},v.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"))),v.a.createElement(_.a,null,v.a.createElement(j.a,null,v.a.createElement(ce.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Gr?dr():v.a.createElement(k.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(te.a.API_SERVER,"/api/attachments.json"),beforeUpload:Gt,onChange:Tr},ln))),v.a.createElement(j.a,{className:"c-grey-999"},v.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"))),v.a.createElement(ce.a.Item,{name:"description",label:"\u7B80\u4ECB:"},v.a.createElement(de.a,{defaultValue:Vt.description||"",watch:!0})),((An=ur.detail)===null||An===void 0?void 0:An.is_jupyter_lab)&&v.a.createElement(ce.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},v.a.createElement(C.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"))))),v.a.createElement(Z,{onSave:Pe,onCancel:ht,loading:Kn||wr}))},Qe=Object(x.a)(function($t){var jt=$t.problemset,on=$t.loading,An=$t.globalSetting,Tn=$t.practiceSetting,Yn=$t.shixunsDetail;return{globalSetting:An,loading:on,practiceSetting:Tn,problemset:jt,shixunsDetail:Yn}})(He),ot=i("ch0t"),st=i("R9oj"),ct=i("ECub"),dt=i("T2oS"),Xe=i("W9HT"),ke=i("bKvZ"),lt=i.n(ke),Mt=i("KeGQ"),Ce=i.n(Mt),he=i("NLgs"),be=i("ngQI"),Ee=function(jt){var on=jt.globalSetting,An=jt.dispatch,Tn=jt.practiceSetting,Yn=Object(E.a)(jt,["globalSetting","dispatch","practiceSetting"]),Jn=Object(T.useState)(!1),kn=Object(ue.a)(Jn,2),Ar=kn[0],ur=kn[1],yr=Object(T.useState)({}),vr=Object(ue.a)(yr,2),Dr=vr[0],Xn=vr[1],Ut=Object(T.useState)(!0),en=Object(ue.a)(Ut,2),Vt=en[0],Un=en[1],$n=Object(T.useState)(!1),ir=Object(ue.a)($n,2),Kn=ir[0],rr=ir[1],or=Object(T.useState)(null),ta=Object(ue.a)(or,2),wr=ta[0],_r=ta[1],qr=Object(T.useRef)(!1),Kr=Tn.id,mr=Tn.updateIndex,Jr=Tn.is_published,Rr=Tn.newQuestion,ra=Dr.challenge_list,Gr=ra===void 0?[]:ra;Object(T.useEffect)(function(){return Kr?(tt(),function(){An({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[Kr,mr]),Object(T.useEffect)(function(){Fe()},[Yn.location]);var Fe=function(){var Gt,kt=Yn.location,ln=kt.pathname.split("/");(ln.includes("newquestion")||ln.includes("new")||kt!=null&&(Gt=kt.query)!==null&&Gt!==void 0&&Gt.tabId)&&(qr.current=!0)},tt=function(){var Pt=Object(r.a)(n.a.mark(function Gt(){var kt,ln,On,er,Zn,Tr,dr;return n.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return Un(!0),rn.next=3,Object(s.L)({id:Kr});case 3:On=rn.sent,On!=null&&(kt=On.challenge_list)!==null&&kt!==void 0&&kt.length&&(er=Yn.location.pathname.split("/"),Zn=On.challenge_list.find(function(yn){return String(yn.challenge_id)===er[4]}),er.includes("newquestion")||er.includes("new")?(dr=On.challenge_list[((Tr=On.challenge_list)===null||Tr===void 0?void 0:Tr.length)-1],An({type:"practiceSetting/setParams",payload:{newQuestion:{st:er.includes("new")?0:1,name:""}}}),_r(void 0),Re(dr)):er[4]&&Zn?nt(Zn,!1):nt(On.challenge_list[0])),On!=null&&(ln=On.challenge_list)!==null&&ln!==void 0&&ln.length||_r(null),Xn(On),Un(!1);case 8:case"end":return rn.stop()}},Gt)}));return function(){return Pt.apply(this,arguments)}}(),nt=function(Gt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(_r(Gt.challenge_id),Re(Gt),kt){var ln="/shixuns/".concat(Kr,"/edit/").concat(Gt.challenge_id,"/").concat(Gt.st===1?"editquestion":"editcheckpoint");x.d.push(ln)}},Ye=function(Gt,kt){kt.stopPropagation();var ln=Gt.challenge_id,On=function(){var er=Object(r.a)(n.a.mark(function Zn(){var Tr,dr,Bn,rn;return n.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return tn.next=2,Object(s.v)({id:Kr,challengesId:ln});case 2:if(Tr=tn.sent,!(Tr.status===1)){tn.next=12;break}return tn.next=6,Object(s.L)({id:Kr});case 6:if(rn=tn.sent,Xn(rn),!(ln===wr&&(dr=rn.challenge_list)!==null&&dr!==void 0&&dr.length)){tn.next=11;break}return nt(rn.challenge_list[0]),tn.abrupt("return");case 11:(Bn=rn.challenge_list)!==null&&Bn!==void 0&&Bn.length||(_r(null),qr.current=!0,Re({}),x.d.push("/shixuns/".concat(Kr,"/edit?tabId=level")));case 12:case"end":return tn.stop()}},Zn)}));return function(){return er.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:On})},Pe=function(Gt,kt,ln){var On=Array.from(Gt),er=On.splice(kt,1),Zn=Object(ue.a)(er,1),Tr=Zn[0];return On.splice(ln,0,Tr),On},ze=function(Gt,kt){if(!Gt.destination)return;var ln=Pe(kt,Gt.source.index,Gt.destination.index);Xn(Object(z.a)(Object(z.a)({},Dr),{},{challenge_list:ln}));var On=ln.map(function(er){return er.challenge_id});Object(s.Mb)({id:Kr,ids:On}).then(function(er){er.status!==0&&Xn(Object(z.a)(Object(z.a)({},Dr),{},{challenge_list:kt}))})},Re=function(Gt){An({type:"practiceSetting/setParams",payload:{selectQuestionParams:Gt}})},Ze=function(){var Pt=Object(r.a)(n.a.mark(function Gt(kt,ln){var On;return n.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(!(kt===wr)){Zn.next=2;break}return Zn.abrupt("return");case 2:return Zn.next=4,qe();case 4:_r(kt),Re(ln),An({type:"practiceSetting/setParams",payload:{newQuestion:null}}),On="/shixuns/".concat(Kr,"/edit/").concat(kt,"/").concat(ln.st===1?"editquestion":"editcheckpoint"),x.d.push(On);case 9:case"end":return Zn.stop()}},Gt)}));return function(kt,ln){return Pt.apply(this,arguments)}}(),qe=function(){return new Promise(function(Gt,kt){var ln;Tn!=null&&(ln=Tn.sideBar)!==null&&ln!==void 0&&ln.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(){An({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Gt()},onCancel:function(){kt()}}):Gt()})},ht=function(Gt){return v.a.createElement(v.a.Fragment,null,v.a.createElement(be.a,{onDragEnd:function(ln){return ze(ln,Gt)}},v.a.createElement(be.c,{droppableId:"droppable"},function(kt,ln){return v.a.createElement("div",Object(M.a)({ref:kt.innerRef},kt.droppableProps,{style:{width:"100%"}}),Gt.map(function(On,er){var Zn=On.st,Tr=On.name,dr=On.challenge_id;return v.a.createElement(be.b,{key:dr,draggableId:dr.toString(),index:er,isDragDisabled:Jr},function(Bn,rn){return v.a.createElement("div",Object(M.a)({ref:Bn.innerRef},Bn.draggableProps,Bn.dragHandleProps,{className:wr===dr?lt.a.listActive:lt.a.list,onClick:function(){return Ze(dr,On)}}),v.a.createElement("span",{className:lt.a.s1},Zn===0?v.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):v.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),v.a.createElement("span",{className:lt.a.s2},"\u7B2C",er+1,"\u5173: ",Tr),!Jr&&v.a.createElement("span",{className:lt.a.s3,onClick:function(tn){return Ye(On,tn)}},v.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),Rr&&v.a.createElement("div",{className:lt.a.listActive},v.a.createElement("span",{className:lt.a.s1},(Rr==null?void 0:Rr.st)===0?v.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):v.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),v.a.createElement("span",{className:lt.a.s2},"\u7B2C",Gt.length+1,"\u5173: ",Rr==null?void 0:Rr.name)),!Jr&&v.a.createElement("div",{className:lt.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},et=function(){var Pt=Object(r.a)(n.a.mark(function Gt(kt){return n.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:return On.next=2,qe();case 2:kt==="new"?x.d.push("/shixuns/".concat(Kr,"/edit/new")):x.d.push("/shixuns/".concat(Kr,"/edit/newquestion")),ur(!1),_r(void 0),An({type:"practiceSetting/setParams",payload:{newQuestion:{st:kt==="new"?0:1,name:""}}});case 6:case"end":return On.stop()}},Gt)}));return function(kt){return Pt.apply(this,arguments)}}(),wt=function(){if(Object(he.b)(An,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;ur(!Ar)};return v.a.createElement("div",{className:lt.a.level},v.a.createElement("aside",{className:lt.a.left,style:{width:Kn?"0":"25%"}},v.a.createElement("div",{className:lt.a.container},v.a.createElement("div",{className:lt.a.title},"\u4EFB\u52A1\u5173\u5361(",Gr.length,")"),v.a.createElement("div",{className:lt.a.listWrap},Vt?v.a.createElement(Xe.a,{size:"large"}):!!Gr.length||!!Rr?ht(Gr):v.a.createElement(ct.a,{image:Ce.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Kn&&v.a.createElement("div",{className:lt.a.btns},v.a.createElement("aside",{className:lt.a.btnsWrap},v.a.createElement("div",{style:{transform:Ar?"rotate(45deg)":"rotate(0deg)"},className:lt.a.icon,onClick:wt},"+"),v.a.createElement("div",{className:lt.a.btn,style:{left:Ar?20:-154}},v.a.createElement("div",{className:lt.a.d1,onClick:function(){return et("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),v.a.createElement("div",{className:lt.a.d2,onClick:function(){return et("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),v.a.createElement("div",{className:Kn?lt.a.elseShrink:lt.a.shrink,onClick:function(){return rr(!Kn)}},v.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),v.a.createElement("aside",{className:lt.a.right,id:"modal-level-question"},wr===null&&qr.current?v.a.createElement("div",{className:lt.a.addIcon},v.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):Yn.children))},Ne=Object(x.a)(function($t){var jt=$t.globalSetting,on=$t.practiceSetting;return{globalSetting:jt,practiceSetting:on}})(Ee),we=i("DjyN"),Ae=i("NUBc"),Ue=i("cWXX"),We=i("/ezw"),Je=i("qVdP"),$e=i("jsC+"),pt=i("lUTK"),Jt=i("BvKs"),fn=i("7Kak"),qt=i("9yH6"),St=i("Qvpy"),Be=i.n(St),at=function(jt){var on=jt.shixunsDetail,An=jt.globalSetting,Tn=jt.loading,Yn=jt.dispatch,Jn=jt.onReloadData,kn=Object(E.a)(jt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Ar=Object(T.useState)(),ur=Object(ue.a)(Ar,2),yr=ur[0],vr=ur[1],Dr=Object(T.useState)([]),Xn=Object(ue.a)(Dr,2),Ut=Xn[0],en=Xn[1];Object(T.useEffect)(function(){on.actionTabs.key==="Collaborators-ChangeManager"&&Vt()},[on.actionTabs.key]);var Vt=function(){var Kn=Object(r.a)(n.a.mark(function rr(){var or,ta;return n.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Yn({type:"shixunsDetail/getChangeManager",payload:{id:(or=on.actionTabs.params)===null||or===void 0?void 0:or.id}});case 2:ta=_r.sent,en(ta||[]);case 4:case"end":return _r.stop()}},rr)}));return function(){return Kn.apply(this,arguments)}}(),Un=function(){var rr;Yn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(rr=on.actionTabs.params)===null||rr===void 0?void 0:rr.id}}})},$n=function(){var Kn=Object(r.a)(n.a.mark(function rr(){var or,ta;return n.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:if(yr){_r.next=3;break}return g.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),_r.abrupt("return");case 3:return _r.next=5,Yn({type:"shixunsDetail/changeManager",payload:{id:(or=on.actionTabs.params)===null||or===void 0?void 0:or.id,user_id:yr}});case 5:ta=_r.sent,ir(),ta&&(Jn(),g.b.info(ta.message));case 8:case"end":return _r.stop()}},rr)}));return function(){return Kn.apply(this,arguments)}}(),ir=function(){Yn({type:"shixunsDetail/setActionTabs",payload:{}}),vr(null)};return v.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:on.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:Tn.effects["shixunsDetail/changeManager"],onOk:$n,onCancel:ir},v.a.createElement("div",null,v.a.createElement("div",{className:Be.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",v.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"),v.a.createElement("div",{className:Be.a.content},Ut.length?v.a.createElement(qt.a.Group,{value:yr,onChange:function(rr){return vr(rr.target.value)}},Ut.map(function(Kn,rr){return v.a.createElement(qt.a,{className:Be.a.radio,key:rr,value:Kn.user_id},Kn.name)})):v.a.createElement("div",{className:Be.a.add},v.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",v.a.createElement("a",{className:Be.a.colorBlue,onClick:Un},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},it=Object(x.a)(function($t){var jt=$t.shixunsDetail,on=$t.loading,An=$t.globalSetting;return{shixunsDetail:jt,globalSetting:An,loading:on}})(at),Me=i("Znn+"),Ve=i("ZTPi"),xt=i("ju9d"),_t=i("DDK+"),At=Ve.a.TabPane,Ot=function($t){var jt=$t.visible,on=$t.onCancel,An=$t.onSelectGroup,Tn=$t.shixunId,Yn=$t.onSelectCollaborator;return v.a.createElement(f.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:jt,width:1100,centered:!0,keyboard:!1,onCancel:on,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},v.a.createElement(Ve.a,{defaultActiveKey:"1"},v.a.createElement(At,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},v.a.createElement(xt.a,{onCancel:on,container_type:2,container_id:Tn,onSelect:Yn})),v.a.createElement(At,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},v.a.createElement(_t.a,{onCancel:on,onSelect:An}))))},Ct=i("oaGz"),Bt=i.n(Ct),It=i("8Skl"),yt=i("ruvs"),zt=function(jt){var on,An,Tn,Yn,Jn,kn,Ar=jt.shixunsDetail,ur=jt.globalSetting,yr=jt.loading,vr=jt.user,Dr=jt.dispatch,Xn=Object(E.a)(jt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Ut=Object(T.useRef)(),en=Object(T.useState)(0),Vt=Object(ue.a)(en,2),Un=Vt[0],$n=Vt[1],ir=Object(T.useState)([]),Kn=Object(ue.a)(ir,2),rr=Kn[0],or=Kn[1],ta=Object(T.useState)({id:null,page:1}),wr=Object(ue.a)(ta,2),_r=wr[0],qr=wr[1],Kr=(on=vr.userInfo)===null||on===void 0||((An=on.shixun)===null||An===void 0)?void 0:An.editable,mr=((Tn=vr.userInfo)===null||Tn===void 0?void 0:Tn.role)<=2||((Yn=vr.userInfo)===null||Yn===void 0||((Jn=Yn.shixun)===null||Jn===void 0)?void 0:Jn.is_creator);Object(T.useEffect)(function(){Ut.current=Xn.match.params.id,_r.id=Ut.current,qr(_r),Jr(_r)},[]);var Jr=function(){var Re=Object(r.a)(n.a.mark(function Ze(qe){var ht;return n.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Dr({type:"shixunsDetail/getCollaboratorsData",payload:qe});case 2:ht=wt.sent,ht&&(or(ht.members||[]),$n(ht.member_count));case 4:case"end":return wt.stop()}},Ze)}));return function(qe){return Re.apply(this,arguments)}}(),Rr=function(){var Re=Object(r.a)(n.a.mark(function Ze(){var qe;return n.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return _r.page=1,qr(_r),qe=Object(yt.b)(),et.next=5,Dr({type:"user/getUserInfo",payload:qe});case 5:return et.next=7,Jr(_r);case 7:case"end":return et.stop()}},Ze)}));return function(){return Re.apply(this,arguments)}}(),ra=function(Ze){_r.page=Ze,qr(_r),Jr(_r)},Gr=function(Ze){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:v.a.createElement("div",{className:Bt.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var qe=Object(r.a)(n.a.mark(function et(){var wt,Pt;return n.a.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.next=2,Dr({type:"shixunsDetail/deleteCollaborators",payload:{id:Ut.current,userId:Ze}});case 2:if(Pt=kt.sent,!(((wt=vr.userInfo)===null||wt===void 0?void 0:wt.user_id)===Ze)){kt.next=6;break}return x.d.push("/shixuns"),kt.abrupt("return");case 6:g.b.info(Pt==null?void 0:Pt.message),_r.page=1,qr(_r),Jr(_r);case 10:case"end":return kt.stop()}},et)}));function ht(){return qe.apply(this,arguments)}return ht}()})},Fe=function(){Dr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Ut.current}}})};function tt(Re,Ze,qe,ht){return nt.apply(this,arguments)}function nt(){return nt=Object(r.a)(n.a.mark(function Re(Ze,qe,ht,et){return n.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Dr({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:Ze,user_id:qe,editable:ht?0:1}});case 2:Jr(_r);case 3:case"end":return Pt.stop()}},Re)})),nt.apply(this,arguments)}var Ye=function(){Dr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Ut.current}}})};function Pe(){Dr({type:"shixunsDetail/setActionTabs",payload:{}})}var ze={visible:Ar.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Pe,shixunId:Ut.current,onSelectCollaborator:function(){var Re=Object(r.a)(n.a.mark(function qe(ht){var et;return n.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pe(),Pt.next=3,Dr({type:"shixunsDetail/addCollaborator",payload:{id:Ut.current,user_ids:ht}});case 3:et=Pt.sent,et&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),Rr());case 5:case"end":return Pt.stop()}},qe)}));function Ze(qe){return Re.apply(this,arguments)}return Ze}(),onSelectGroup:function(){var Re=Object(r.a)(n.a.mark(function qe(ht){var et;return n.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pe(),Pt.next=3,Dr({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Ut.current,group_id:ht.group_id}});case 3:et=Pt.sent,et&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),Rr());case 5:case"end":return Pt.stop()}},qe)}));function Ze(qe){return Re.apply(this,arguments)}return Ze}()};return v.a.createElement("section",null,v.a.createElement("div",{className:Bt.a.wrap},v.a.createElement("div",{className:Bt.a.content},((kn=Ar.detail)===null||kn===void 0?void 0:kn.identity)<5&&v.a.createElement("div",{className:Bt.a.head},v.a.createElement("span",{className:Bt.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Un,"\u4EBA\uFF09"),v.a.createElement("div",null,mr&&v.a.createElement(L.a,{type:"primary",ghost:!0,className:Bt.a.button,style:{marginRight:"20px"},onClick:Fe},"\u66F4\u6362\u7BA1\u7406\u5458"),Kr&&v.a.createElement(L.a,{type:"primary",className:Bt.a.button,style:{marginRight:"40px"},onClick:Ye},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),v.a.createElement("div",{className:Bt.a.list},v.a.createElement(We.a,{loading:yr.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},rr.map(function(Re,Ze){var qe,ht,et,wt,Pt,Gt,kt,ln;return v.a.createElement("div",{style:{display:"inline-block",width:"50%"}},v.a.createElement("div",{className:Bt.a.itemWrap,key:Ze},v.a.createElement("a",{href:(qe=Re.user)===null||qe===void 0?void 0:qe.user_url,target:"_blank",className:Bt.a.imgWrap},v.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Bt.a.img,src:"".concat(te.a.IMG_SERVER,"/images/").concat((ht=Re.user)===null||ht===void 0?void 0:ht.image_url)}),((et=Re.user)===null||et===void 0?void 0:et.shixun_manager)&&v.a.createElement("span",{className:Bt.a.manager},"\u521B\u5EFA\u8005")),v.a.createElement("div",{className:Bt.a.itemContent},v.a.createElement("p",{className:Bt.a.nameWrap},v.a.createElement("a",{href:Re.user.user_url,target:"_blank",className:Bt.a.name},(wt=Re.user)===null||wt===void 0?void 0:wt.name,Re.user.user_id===((Pt=vr.userInfo)===null||Pt===void 0?void 0:Pt.user_id)?v.a.createElement("span",null,"\u6211"):null),v.a.createElement("div",{className:Bt.a.actionGroup},mr?(Gt=Re.user)!==null&&Gt!==void 0&&Gt.shixun_manager?null:v.a.createElement($e.a,{overlay:v.a.createElement(Jt.a,{selectedKeys:[Re.editable?"1":"2"],onClick:function(){var er;tt(Ar.detail.identifier,Re.user.user_id,Re.editable,(er=Re.user)===null||er===void 0?void 0:er.name)}},v.a.createElement(Jt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),v.a.createElement(Jt.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},v.a.createElement("div",null,Re.editable?v.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):v.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",v.a.createElement(It.a,{style:{fontSize:"14px",color:"#888888"}}))):Re.editable?v.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):v.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((kt=Re.user)!==null&&kt!==void 0&&kt.shixun_manager)&&Kr?v.a.createElement("a",{className:Bt.a.deletetitle,onClick:function(){var er;return Gr((er=Re.user)===null||er===void 0?void 0:er.user_id)}},"\u5220\u9664"):null)),v.a.createElement("p",{className:Bt.a.schoolWrap},v.a.createElement("span",{className:Bt.a.school},(ln=Re.user)===null||ln===void 0?void 0:ln.school_name)))))})))),Un>10&&v.a.createElement("div",{className:Bt.a.countWrap},v.a.createElement(Ae.a,{showQuickJumper:!1,showSizeChanger:!1,total:Un,onChange:function(Ze){return ra(Ze)},pageSize:10,current:_r.page}))),v.a.createElement(it,{onReloadData:Rr}),v.a.createElement(Ot,ze))},sn=Object(x.a)(function($t){var jt=$t.shixunsDetail,on=$t.loading,An=$t.globalSetting,Tn=$t.user;return{shixunsDetail:jt,globalSetting:An,user:Tn,loading:on}})(zt),hn=i("11/R"),un=i("Q9mQ"),Kt=i("diRs"),gn=i("jrin"),Rn=i("OaEy"),Cn=i("2fM7"),an=i("ZW9T"),_n=i("RCxd"),vn=i("4SAo"),Ft=i.n(vn),Nt=H.a.TextArea,pn=function(jt){var on=jt.shixunsDetail,An=jt.globalSetting,Tn=jt.loading,Yn=jt.dispatch,Jn=jt.onFinish,kn=Jn===void 0?function(){}:Jn,Ar=Object(E.a)(jt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),ur=ce.a.useForm(),yr=Object(ue.a)(ur,1),vr=yr[0],Dr=function(){var Ut=Object(r.a)(n.a.mark(function en(Vt){var Un,$n;return n.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.next=2,Yn({type:"shixunsDetail/getCustomScript",payload:{id:(Un=on.actionTabs.params)===null||Un===void 0?void 0:Un.id,compile:Vt.execute,excutive:Vt.compile}});case 2:$n=Kn.sent,Xn(),$n&&kn($n==null?void 0:$n.shixun_script);case 5:case"end":return Kn.stop()}},en)}));return function(Vt){return Ut.apply(this,arguments)}}(),Xn=function(){Yn({type:"shixunsDetail/setActionTabs",payload:{}})};return v.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:on.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Xn},v.a.createElement(ce.a,{form:vr,scrollToFirstError:!0,layout:"vertical",onFinish:Dr},v.a.createElement(ce.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},v.a.createElement(Nt,{rows:4})),v.a.createElement(ce.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},v.a.createElement(Nt,{rows:4})),v.a.createElement("div",{className:Ft.a.footerWrap},v.a.createElement(ce.a.Item,null,v.a.createElement(L.a,{className:"mr5",size:"large",onClick:Xn},"\u53D6\u6D88"),v.a.createElement(L.a,{size:"large",type:"primary",htmlType:"submit",loading:Tn.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},qn=Object(x.a)(function($t){var jt=$t.shixunsDetail,on=$t.loading,An=$t.globalSetting;return{shixunsDetail:jt,globalSetting:An,loading:on}})(pn),Qt=i("Lai7"),Vn=i.n(Qt),Gn=i("TSYQ"),xr=i.n(Gn),Sn=i("dGDm"),Pn=i.n(Sn),Yt=function(jt){var on=jt.className,An=jt.dispatch,Tn=jt.skin,Yn=Tn===void 0?"white":Tn,Jn=jt.value,kn=Jn===void 0?null:Jn,Ar=jt.loading,ur=Ar===void 0?!1:Ar,yr=jt.data,vr=yr===void 0?[]:yr,Dr=jt.otherData,Xn=Dr===void 0?[]:Dr,Ut=jt.tags,en=Ut===void 0?[]:Ut,Vt=jt.onChange,Un=Vt===void 0?function(){}:Vt,$n=Object(T.useState)(""),ir=Object(ue.a)($n,2),Kn=ir[0],rr=ir[1],or=Object(T.useState)(!1),ta=Object(ue.a)(or,2),wr=ta[0],_r=ta[1],qr=Object(T.useState)([]),Kr=Object(ue.a)(qr,2),mr=Kr[0],Jr=Kr[1],Rr=Object(T.useState)(0),ra=Object(ue.a)(Rr,2),Gr=ra[0],Fe=ra[1],tt=Object(T.useRef)(null),nt=Object(T.useRef)(String(Math.floor(Math.random()*1e6))).current,Ye=Object(T.useRef)(),Pe=Object(T.useRef)(null),ze=Object(T.useRef)(0),Re=Object(T.useRef)([]);Object(T.useEffect)(function(){return window.addEventListener("keydown",Ze),function(){window.removeEventListener("keydown",Ze)}},[Kn,wr,mr]);var Ze=function(yn){if(!wr||yn.keyCode!==40&&yn.keyCode!==38)return;var tn=0;yn.keyCode===40&&wr&&(Gr<mr.length-1?tn=Gr+1:tn=0,console.log("\u4E0B"),wt(tn,"down")),yn.keyCode===38&&wr&&(Gr===0?tn=mr.length-1:tn=Gr-1,wt(tn,"up")),Fe(tn),ht(Kn,tn,!0)},qe=function(yn,tn){var Er=function(In){var Fr=/[\^\.\\\|\(\)\*\+\-\$\[\]\?]/g,Qn={};return Qn["^"]="\\^",Qn["."]="\\.",Qn["\\"]="\\\\",Qn["|"]="\\|",Qn["("]="\\(",Qn[")"]="\\)",Qn["*"]="\\*",Qn["+"]="\\+",Qn["-"]="\\-",Qn.$="$",Qn["["]="\\[",Qn["]"]="\\]",Qn["?"]="\\?",In=In.replace(Fr,function(Ln){return Qn[Ln]}),In},zn=new RegExp(Er(tn),"gi");return yn=yn.replace(zn,function(bn){return"<span style='color:#0152d9;'>"+bn+"</span>"}),yn},ht=function(){var rn=Object(r.a)(n.a.mark(function yn(tn,Er,zn){var bn,In,Fr;return n.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(bn=ze.current+1,ze.current=bn,In=function(Lr){var Nr=Lr==null?void 0:Lr.map(function($r,fa){var ia=$r.id,na=$r.name,kr=Object(z.a)(Object(z.a)({},$r),{},{label:v.a.createElement("ul",{id:"search-".concat(nt,"-").concat(fa),onClick:function(){return kt(ia,kr)},className:fa===Er?Pn.a.searchListActive:Pn.a.searchList},v.a.createElement("li",{className:Pn.a.name,dangerouslySetInnerHTML:{__html:qe(na,tn)}}),$r.private&&v.a.createElement("li",{className:Pn.a.tag},"\u79C1\u6709"))});return kr});return Nr},!zn){Ln.next=7;break}return Fr=In(Re.current),Jr(Fr),Ln.abrupt("return");case 7:clearTimeout(Pe.current),Pe.current=setTimeout(Object(r.a)(n.a.mark(function cr(){var Lr,Nr,$r,fa;return n.a.wrap(function(na){for(;;)switch(na.prev=na.next){case 0:return na.next=2,Object(u.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:tn,page:1,limit:1e5}});case 2:Lr=na.sent,(Lr==null?void 0:Lr.status)===0&&($r=In((Lr==null||((Nr=Lr.data)===null||Nr===void 0)?void 0:Nr.mirrors)||[]),bn===ze.current&&(Jr($r),Re.current=Object(Q.cloneDeep)((Lr==null||((fa=Lr.data)===null||fa===void 0)?void 0:fa.mirrors)||[])));case 4:case"end":return na.stop()}},cr)})),300);case 9:case"end":return Ln.stop()}},yn)}));return function(tn,Er,zn){return rn.apply(this,arguments)}}(),et=function(yn){var tn=document.getElementById("scroll-".concat(nt,"-").concat(yn));if(!tn)return;var Er=document.getElementById("scroll-".concat(nt));Er.scrollTo(0,tn.offsetTop)},wt=function(yn,tn){var Er=document.getElementById("search-".concat(nt,"-").concat(yn));if(!Er)return;var zn=document.getElementById("search-".concat(nt)),bn=Er.offsetTop-zn.scrollTop>0&&Er.offsetTop-zn.scrollTop<zn.clientHeight;if(bn)return;tn==="down"?zn.scrollTo(0,Er.offsetTop-zn.clientHeight+Er.clientHeight):zn.scrollTo(0,Er.offsetTop)},Pt=function(yn){ht(yn,0),rr(yn)},Gt=function(yn){var tn,Er;if(!mr.length)return;var zn=mr==null||((tn=mr[Gr])===null||tn===void 0)?void 0:tn.id;Un(zn),Jr([]),Fe(0),rr(mr==null||((Er=mr[Gr])===null||Er===void 0)?void 0:Er.name),et(zn),Ye.current.blur()},kt=function(yn,tn){Un(yn),Jr([]),Fe(0),rr(tn==null?void 0:tn.name),et(yn)},ln=function(){Jr([]),rr("")},On=function(yn){Un(yn),Jr([]),rr("")},er=function(){return Kn===""?v.a.createElement("i",{style:{pointerEvents:"none"},className:"iconfont icon-sousuo2 c-grey-c"}):v.a.createElement("i",{onClick:ln,className:"iconfont icon-shanchu4 c-grey-c"})},Zn=function(){An({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})},Tr=function(){An({type:"newShixuns/setActionTabs",payload:{key:"Create-Environment"}})},dr=function(){tt.current=setTimeout(function(){_r(!1),Fe(0)},200)},Bn=!(vr!=null&&vr.length)&&!(Xn!=null&&Xn.length);return v.a.createElement("div",{className:xr()(Yn==="night"?Pn.a.darklySelectEnvironment:Pn.a.selectEnvironment,on)},!Bn&&v.a.createElement("div",{className:Pn.a.search},v.a.createElement(H.a,{suffix:er(),bordered:!1,ref:Ye,value:Kn,onKeyDown:function(yn){(yn.keyCode===40||yn.keyCode===38)&&yn.preventDefault()},size:"large",onFocus:function(){clearTimeout(tt.current),Pt(Kn),_r(!0)},onBlur:dr,onChange:function(yn){return Pt(yn.target.value)},placeholder:"\u641C\u7D22\u60A8\u9700\u8981\u7684\u5B9E\u9A8C\u73AF\u5883",onPressEnter:Gt}),wr&&v.a.createElement("div",{id:"search-".concat(nt),className:Pn.a.searchListWrap},mr.map(function(rn,yn){return v.a.createElement(v.a.Fragment,{key:yn}," ",rn.label)}))),ur?v.a.createElement(Xe.a,{className:Pn.a.spin}):v.a.createElement(v.a.Fragment,null,Bn&&v.a.createElement(ct.a,{style:{margin:"60px 0"},image:Vn.a,description:v.a.createElement("span",{className:"c-grey-999"},"\u6682\u65E0\u5B9E\u9A8C\u73AF\u5883")}),!!en.length&&v.a.createElement("aside",{className:Pn.a.common},v.a.createElement("div",{className:Pn.a.title},"\u63A8\u8350\u73AF\u5883:"),v.a.createElement("ul",{className:Pn.a.tags},en.map(function(rn,yn){return v.a.createElement("li",{key:yn,onClick:function(){return On(rn.id)},className:kn===rn.id?"".concat(Pn.a.tag," ").concat(Pn.a.tagActive):Pn.a.tag},rn.name)}))),v.a.createElement("aside",{className:Pn.a.wrap,id:"scroll-".concat(nt)},vr.map(function(rn,yn){var tn;return rn!=null&&(tn=rn.image)!==null&&tn!==void 0&&tn.length?v.a.createElement(Hr,{key:yn,data:rn,id:kn,handleClick:function(zn){return On(zn)}}):null}),v.a.createElement("ul",{className:Pn.a.allList},Xn.map(function(rn){return v.a.createElement("li",{key:"key-".concat(rn.id),id:"scroll-".concat(nt,"-").concat(rn.id),className:rn.id===kn?"".concat(Pn.a.item," ").concat(Pn.a.itemActive):Pn.a.item,onClick:function(){return Un(rn.id)}},v.a.createElement("div",{className:Pn.a.name},rn.name),rn.private&&v.a.createElement("div",{className:Pn.a.tag},"\u79C1\u6709"))})))),v.a.createElement("div",{className:Pn.a.apply},v.a.createElement("span",{className:Pn.a.p1},"\u6CA1\u6709\u5B9E\u9A8C\u73AF\u5883\uFF1F"),v.a.createElement("span",{className:Pn.a.p2,onClick:Zn}," ","\u7533\u8BF7\u65B0\u5EFA"),v.a.createElement("span",{className:Pn.a.p2,onClick:Tr}," ","\u5728\u7EBF\u521B\u5EFA")))},Hr=function(jt){var on=jt.data,An=jt.id,Tn=jt.handleClick,Yn=Object(T.useState)(!0),Jn=Object(ue.a)(Yn,2),kn=Jn[0],Ar=Jn[1],ur=on.name,yr=on.image;return v.a.createElement("div",{className:Pn.a.list},v.a.createElement("header",{onClick:function(){return Ar(!kn)}},v.a.createElement("div",{className:Pn.a.title},ur),v.a.createElement("i",{style:{transition:"0.5s",transform:kn?"rotate(0deg)":"rotate(180deg)"},className:"iconfont icon-shangjiantou c-grey-999"})),v.a.createElement("ul",{className:Pn.a.items,style:{height:kn?"auto":0}},yr.map(function(vr){return v.a.createElement("li",{key:vr.id,className:vr.id===An?"".concat(Pn.a.item," ").concat(Pn.a.itemActive):Pn.a.item,onClick:function(){return Tn(vr.id)}},v.a.createElement("div",{className:Pn.a.name},vr.name),vr.private&&v.a.createElement("div",{className:Pn.a.tag},"\u79C1\u6709"))}),v.a.createElement("li",{className:Pn.a.line})))},ar=Yt,ma=i("UGPy"),Br=i.n(ma),Na=i("FrRK"),Xa=i("9Bee"),ua=i("N3QO"),Zr=Cn.a.Option,Sr=function(jt){var on,An,Tn=jt.practiceSetting,Yn=jt.dispatch,Jn=jt.shixunsDetail,kn=jt.user,Ar=Object(T.useState)(null),ur=Object(ue.a)(Ar,2),yr=ur[0],vr=ur[1],Dr=Object(T.useState)([]),Xn=Object(ue.a)(Dr,2),Ut=Xn[0],en=Xn[1],Vt=Object(T.useState)(!0),Un=Object(ue.a)(Vt,2),$n=Un[0],ir=Un[1],Kn=Object(T.useState)({}),rr=Object(ue.a)(Kn,2),or=rr[0],ta=rr[1],wr=Object(T.useState)([]),_r=Object(ue.a)(wr,2),qr=_r[0],Kr=_r[1],mr=Object(T.useState)(),Jr=Object(ue.a)(mr,2),Rr=Jr[0],ra=Jr[1],Gr=Object(T.useState)(),Fe=Object(ue.a)(Gr,2),tt=Fe[0],nt=Fe[1],Ye=Object(T.useState)([]),Pe=Object(ue.a)(Ye,2),ze=Pe[0],Re=Pe[1],Ze=Object(T.useState)({}),qe=Object(ue.a)(Ze,2),ht=qe[0],et=qe[1],wt=Object(T.useRef)(null),Pt=Object(T.useRef)(!0),Gt=Object(T.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),kt=Object(T.useRef)(null),ln=Tn.id,On=Tn.is_published,er=ht.frequence_image,Zn=er===void 0?[]:er,Tr=ht.environments,dr=Tr===void 0?[]:Tr,Bn=ht.choice_small_type,rn=Bn===void 0?[]:Bn,yn=ht.other_image,tn=yn===void 0?[]:yn,Er=or.name,zn=or.description,bn=or.authorization,In=or.small_type,Fr=In===void 0?[]:In;Object(T.useEffect)(function(){if(yr===null)return;cr(),wt.current.scrollTop=0},[yr]),Object(T.useEffect)(function(){if(!ln)return;Ln()},[ln]),Object(T.useEffect)(function(){return yr===null?void 0:(Qn(),function(){clearTimeout(kt.current)})},[yr,Ut,qr,Rr,tt]);var Qn=function(){clearTimeout(kt.current),kt.current=setTimeout(function(){!Object(Q.isEqual)(Gt.current.activeId,yr)||!Object(Q.isEqual)(Gt.current.selectId,Ut)||!Object(Q.isEqual)(Gt.current.serviceConfigList,qr)||!Object(Q.isEqual)(Gt.current.evaluateScript,Rr)||!Object(Q.isEqual)(Gt.current.evaluationScript,tt)?Yn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Yn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},Ln=function(){var Qr=Object(r.a)(n.a.mark(function zr(){var Xr,Vr,ha,sa;return n.a.wrap(function(Ha){for(;;)switch(Ha.prev=Ha.next){case 0:return ir(!0),Ha.next=3,Object(u.a)("/api/shixuns/".concat(ln,"/edit_environment_info.json"),{method:"get"});case 3:Xr=Ha.sent,Xr.status===0&&(et(Object(z.a)({},Xr.data)),ir(!1),Xr!=null&&(Vr=Xr.data)!==null&&Vr!==void 0&&Vr.id?(Gt.current.activeId=Xr==null||((ha=Xr.data)===null||ha===void 0)?void 0:ha.id,vr(Xr==null||((sa=Xr.data)===null||sa===void 0)?void 0:sa.id)):vr(null));case 5:case"end":return Ha.stop()}},zr)}));return function(){return Qr.apply(this,arguments)}}(),cr=function(){var Qr=Object(r.a)(n.a.mark(function zr(){var Xr,Vr,ha,sa,_a;return n.a.wrap(function(Ua){for(;;)switch(Ua.prev=Ua.next){case 0:return Ua.next=2,Object(u.a)("/api/shixuns/".concat(ln,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:yr}});case 2:_a=Ua.sent,ta(_a.data),Gt.current.selectId=(Xr=_a.data)===null||Xr===void 0?void 0:Xr.choice_small_type,en((Vr=_a.data)===null||Vr===void 0?void 0:Vr.choice_small_type),Gt.current.serviceConfigList=(ha=_a.data)===null||ha===void 0?void 0:ha.shixun_service_configs,Kr((sa=_a.data)===null||sa===void 0?void 0:sa.shixun_service_configs),Gt.current.evaluateScript=_a.data.evaluate_script,ra(_a.data.evaluate_script),Gt.current.evaluationScript=_a.data.choice_standard_scripts,nt(_a.data.choice_standard_scripts),Re(_a.data.standard_scripts);case 13:case"end":return Ua.stop()}},zr)}));return function(){return Qr.apply(this,arguments)}}(),Lr=function(){var zr,Xr=function(){x.d.push("/shixuns/".concat(ln,"/challenges")),Yn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};Tn!=null&&(zr=Tn.sideBar)!==null&&zr!==void 0&&zr.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(){Xr()}}):Xr()},Nr=function(){var Qr=Object(r.a)(n.a.mark(function zr(){var Xr,Vr,ha,sa=arguments;return n.a.wrap(function(Ha){for(;;)switch(Ha.prev=Ha.next){case 0:if(Xr=sa.length>0&&sa[0]!==void 0?sa[0]:!1,!Object(he.b)(Yn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Ha.next=3;break}return Ha.abrupt("return");case 3:return Vr={sub_type:Ut,main_type:yr,shixun:{mirror_script_id:tt},shixun_info:{evaluate_script:Rr},shixun_service_configs:qr.map(function(Ua){return{mirror_repository_id:Ua.mirror_repository_id,cpu_limit:Ua.cpu_limit,lower_cpu_limit:Ua.lower_cpu_limit,memory_limit:Ua.memory_limit,request_limit:Ua.request_limit,resource_limit:Ua.resource_limit}})},Ha.next=6,Object(u.a)("/api/shixuns/".concat(ln),{method:"put",body:Vr});case 6:ha=Ha.sent,ha.status===0&&(g.b.success("\u7F16\u8F91\u6210\u529F"),Gt.current={activeId:yr,selectId:Ut,serviceConfigList:qr,evaluateScript:Rr,evaluationScript:tt},Yn({type:"practiceSetting/getCommonData",payload:{id:ln}}),Yn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Ha.stop()}},zr)}));return function(){return Qr.apply(this,arguments)}}(),$r=Fr.filter(function(Qr){return Ut.includes(Qr.id)}),fa=function(){Lr()},ia=function(zr,Xr,Vr){var ha=qr.map(function(sa,_a){return _a===Vr?Object(z.a)(Object(z.a)({},sa),{},Object(gn.a)({},Xr,zr)):sa});Kr(ha)},na=function(){if(Object(he.b)(Yn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;Yn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:ln}}})},kr=function(){var Qr=Object(r.a)(n.a.mark(function zr(Xr){var Vr;return n.a.wrap(function(sa){for(;;)switch(sa.prev=sa.next){case 0:return sa.next=2,Yn({type:"shixunsDetail/getScriptContent",payload:{id:ln,script_id:Xr}});case 2:Vr=sa.sent,Vr&&ra(Vr.content);case 4:case"end":return sa.stop()}},zr)}));return function(Xr){return Qr.apply(this,arguments)}}(),Wa=function(zr){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:v.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",v.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var Xr=Object(r.a)(n.a.mark(function ha(){return n.a.wrap(function(_a){for(;;)switch(_a.prev=_a.next){case 0:return _a.next=2,kr(zr);case 2:f.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:v.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return _a.stop()}},ha)}));function Vr(){return Xr.apply(this,arguments)}return Vr}()})},mi=function(zr,Xr){var Vr=qr[0]?[qr[0]]:[];Xr.forEach(function(ha){var sa=qr.find(function(Ua){return Ua.mirror_repository_id===Number(ha.key)});if(sa)Vr.push(sa);else{var _a=Fr.find(function(Ua){return Ua.id===Number(ha.key)});if(_a.mirror_name){var Ha={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(ha.key),name:_a.mirror_name,request_limit:10};Vr.push(Ha)}}}),Kr(Vr),en(zr)};return v.a.createElement("div",{className:Br.a.practice},v.a.createElement(ar,{loading:$n,skin:"night",className:Br.a.left,dispatch:Yn,value:yr,data:dr,otherData:tn,tags:Zn,onChange:function(zr){return vr(zr)}}),v.a.createElement("div",{className:Br.a.right},v.a.createElement("header",null,v.a.createElement("div",{className:Br.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",yr===null?"\u2014 \u2014":Er)),v.a.createElement("div",{className:Br.a.content,ref:wt},yr===null&&v.a.createElement(ct.a,{image:Vn.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),yr!==null&&v.a.createElement("div",{className:Br.a.des},v.a.createElement("div",{className:Br.a.mainBody},v.a.createElement(Xa.a,{value:zn})),v.a.createElement("div",{className:Br.a.title},"\u9644\u5E26\u73AF\u5883"),v.a.createElement("div",{className:Br.a.selectBox},v.a.createElement(Cn.a,{onChange:function(zr,Xr){return mi(zr,Xr)},getPopupContainer:function(zr){return zr.parentNode},mode:"multiple",bordered:!1,value:Ut,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},Fr.map(function(Qr,zr){return v.a.createElement(Zr,{key:Qr.id,value:Qr.id},Qr.type_name)})),v.a.createElement("div",{className:Br.a.smallType},$r.map(function(Qr){return Qr.description?v.a.createElement("span",{key:Qr.id},Qr.description):null}))),!(Jn!=null&&(on=Jn.detail)!==null&&on!==void 0&&on.is_jupyter_lab)&&v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:Br.a.title},"\u8BC4\u6D4B\u811A\u672C"),v.a.createElement("div",{className:Br.a.evaluating},v.a.createElement("div",{className:Br.a.evaluatingLabel},On&&v.a.createElement("div",{onClick:function(){if(Object(he.b)(Yn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:Br.a.mask}),v.a.createElement(Cn.a,{style:{width:400},bordered:!1,getPopupContainer:function(zr){return zr.parentNode},value:tt,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(zr){Wa(zr),nt(zr)}},(ze||[]).map(function(Qr,zr){return v.a.createElement(Zr,{value:parseInt(Qr.id),name:Qr.scptname,key:zr},Qr.scptname)})),v.a.createElement("span",{className:Br.a.evaluatingS1,onClick:na},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),v.a.createElement(Kt.a,{overlayClassName:Br.a.popover,placement:"bottomLeft",content:v.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",v.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",v.a.createElement("br",null),"challengeProgramNames",v.a.createElement("br",null),"sourceClassNames",v.a.createElement("br",null),v.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",v.a.createElement("br",null),v.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",v.a.createElement("br",null),"src/step1/HelloWorld.java",v.a.createElement("br",null),"src/step2/Other.java",v.a.createElement("br",null),v.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",v.a.createElement("br",null),"step1.HelloWorld",v.a.createElement("br",null),"step2.Other",v.a.createElement("br",null),v.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",v.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',v.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',v.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',v.a.createElement("br",null),'" "step2.Other")',v.a.createElement("br",null),v.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},v.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},v.a.createElement(_n.a,null)))),v.a.createElement(an.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:Rr,onChange:function(zr){if(Pt.current){Pt.current=!1;return}ra(zr),Object(he.b)(Yn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Pt.current=!0,ra(Gt.current.evaluateScript)},200)}}))),((An=Jn.detail)===null||An===void 0?void 0:An.identity)<3&&!!qr.length&&v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:Br.a.title},"\u670D\u52A1\u914D\u7F6E"),v.a.createElement("div",{className:Br.a.serviceSettingWrap},qr==null?void 0:qr.map(function(Qr,zr){return v.a.createElement("div",{key:zr,className:"mb30"},v.a.createElement("div",null,v.a.createElement("span",{className:"font16"},Qr.name)),v.a.createElement("div",{className:Br.a.serviceBox},v.a.createElement("label",{className:Br.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),v.a.createElement(H.a,{className:Br.a.serviceSetInput,value:Qr.cpu_limit,disabled:On,onChange:function(Vr){return ia(Vr.target.value,"cpu_limit",zr)}})),v.a.createElement("div",{className:Br.a.serviceBox},v.a.createElement("label",{className:Br.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),v.a.createElement(H.a,{className:Br.a.serviceSetInput,value:Qr.lower_cpu_limit,disabled:On,onChange:function(Vr){return ia(Vr.target.value,"lower_cpu_limit",zr)}})),v.a.createElement("div",{className:Br.a.serviceBox},v.a.createElement("label",{className:Br.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),v.a.createElement(H.a,{className:Br.a.serviceSetInput,value:Qr.memory_limit,disabled:On,onChange:function(Vr){return ia(Vr.target.value,"memory_limit",zr)}})),v.a.createElement("div",{className:Br.a.serviceBox},v.a.createElement("label",{className:Br.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),v.a.createElement(H.a,{className:Br.a.serviceSetInput,value:Qr.request_limit,style:{width:300},disabled:On,onChange:function(Vr){return ia(Vr.target.value,"request_limit",zr)}}),v.a.createElement("label",{className:Br.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%")),v.a.createElement("div",{className:Br.a.serviceBox},v.a.createElement("label",{className:Br.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),v.a.createElement(H.a,{className:Br.a.serviceSetInput,value:Qr.resource_limit,style:{width:300},disabled:On,maxLength:8,onChange:function(Vr){var ha=Vr.target.value,sa=/^\d*(\.\d*)?$/;ha.match(sa)&&ia(Vr.target.value,"resource_limit",zr)}})))}))))),v.a.createElement("div",{className:Br.a.btns},v.a.createElement(L.a,{size:"large",style:{marginRight:20},onClick:fa},"\u53D6\u6D88"),v.a.createElement(L.a,{size:"large",type:"primary",disabled:yr===null,onClick:function(){return Nr()}},"\u4FDD\u5B58"))),v.a.createElement(Na.a,null),v.a.createElement(qn,{onFinish:function(zr){return ra(zr)}}),v.a.createElement(ua.a,null))},Oa=Object(x.a)(function($t){var jt=$t.practiceSetting,on=$t.globalSetting,An=$t.shixunsDetail,Tn=$t.user;return{practiceSetting:jt,globalSetting:on,shixunsDetail:An,user:Tn}})(Sr),Ma=i("g9YV"),Sa=i("wCAj"),ca=i("5Dmo"),ka=i("3S7+"),Ga=i("P5Jw"),La=i("wd/R"),Za=i.n(La),Ia=i("3d99"),xa=i.n(Ia),Fa=i("Lf5v"),li=i("xKgJ"),yi=i("lzim"),ga=v.a.Fragment,va=function(jt){var on,An,Tn,Yn,Jn=jt.globalSetting,kn=jt.dispatch,Ar=jt.practiceSetting,ur=jt.shixunsDetail,yr=jt.user,vr=Object(E.a)(jt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Dr=Ar.id,Xn=Object(T.useState)([]),Ut=Object(ue.a)(Xn,2),en=Ut[0],Vt=Ut[1],Un=Object(T.useState)({}),$n=Object(ue.a)(Un,2),ir=$n[0],Kn=$n[1],rr=Object(T.useState)(!1),or=Object(ue.a)(rr,2),ta=or[0],wr=or[1],_r=Object(T.useState)(!0),qr=Object(ue.a)(_r,2),Kr=qr[0],mr=qr[1],Jr=Object(T.useState)(!1),Rr=Object(ue.a)(Jr,2),ra=Rr[0],Gr=Rr[1],Fe=Object(T.useState)(!1),tt=Object(ue.a)(Fe,2),nt=tt[0],Ye=tt[1],Pe=Object(T.useState)([]),ze=Object(ue.a)(Pe,2),Re=ze[0],Ze=ze[1],qe=Object(T.useState)(!1),ht=Object(ue.a)(qe,2),et=ht[0],wt=ht[1],Pt=Object(T.useState)({}),Gt=Object(ue.a)(Pt,2),kt=Gt[0],ln=Gt[1],On=Object(T.useState)({page:1,limit:10,total:0}),er=Object(ue.a)(On,2),Zn=er[0],Tr=er[1];Object(T.useEffect)(function(){if(!Dr)return;Bn()},[Dr]);var dr=function(Ln){var cr=Object(z.a)(Object(z.a)({},Zn),{},{page:Ln});Ze([]),Tr(cr),Bn(cr)},Bn=function(){var Qn=Object(r.a)(n.a.mark(function Ln(cr){var Lr,Nr,$r;return n.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return Lr={page:1,limit:10,total:0},Nr=cr||Lr,wr(!0),ia.next=5,kn({type:"shixunsDetail/getSetData",payload:Object(z.a)(Object(z.a)({},Nr),{},{id:Dr})});case 5:$r=ia.sent,$r!=null&&$r.data_sets&&(wr(!1),Vt(Object(ve.a)($r.data_sets)),Tr(Object(z.a)(Object(z.a)({},Nr),{},{total:$r==null?void 0:$r.data_sets_count})),mr(!1),Kn(Object(z.a)({},$r)));case 7:case"end":return ia.stop()}},Ln)}));return function(cr){return Qn.apply(this,arguments)}}(),rn=function(){return v.a.createElement("div",{className:xa.a.empty},v.a.createElement("img",{src:yi.j,width:"258"}),v.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},yn=function(Ln){console.log("selectedRowKeys changed: ",Ln),Ze(Ln)},tn={selectedRowKeys:Re,columnWidth:70,onChange:yn},Er=function(Ln){Object(l.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var cr=Ln?[Ln]:Re;f.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Lr=Object(r.a)(n.a.mark(function $r(){var fa,ia;return n.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:return kr.next=2,Object(u.a)("/api/shixuns/".concat(Dr,"/destroy_data_sets.json"),{method:"Delete",body:{id:cr}});case 2:fa=kr.sent,fa.status===0&&(ia=cr.length===en.length&&Zn.page>1?Zn.page-1:Zn.page,g.b.success("\u5220\u9664\u6210\u529F"),Bn(Object(z.a)(Object(z.a)({},Zn),{},{page:ia})),Ze([]));case 4:case"end":return kr.stop()}},$r)}));function Nr(){return Lr.apply(this,arguments)}return Nr}()})},zn=function(){var Qn=Object(r.a)(n.a.mark(function Ln(){var cr,Lr,Nr,$r,fa;return n.a.wrap(function(na){for(;;)switch(na.prev=na.next){case 0:if(cr=kt.title,Lr=null,console.log(cr,"title"),!(cr==="")){na.next=7;break}return Lr="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",ln(Object(z.a)(Object(z.a)({},kt),{},{errorDes:Lr})),na.abrupt("return");case 7:if(Nr=en.find(function(kr){return kr.id===(kt==null?void 0:kt.id)}).title,!(cr===Nr.substring(0,Nr.lastIndexOf("."))||cr===Nr)){na.next=12;break}return Lr="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",ln(Object(z.a)(Object(z.a)({},kt),{},{errorDes:Lr})),na.abrupt("return");case 12:return $r=Nr.includes(".")?Nr.substring(Nr.lastIndexOf("."),Nr.length):"",na.next=15,Object(u.a)("/api/shixuns/".concat(Dr,"/rename_data_sets.json"),{method:"post",body:{id:kt==null?void 0:kt.id,new_file_name:cr+$r}});case 15:fa=na.sent,fa.status===0&&(g.b.success("\u91CD\u547D\u540D\u6210\u529F"),Bn(Zn),Gr(!1),ln({}));case 17:case"end":return na.stop()}},Ln)}));return function(){return Qn.apply(this,arguments)}}(),bn=function(){var Ln=kt.download_url;In(Ln),g.b.success("\u590D\u5236\u6210\u529F"),Ye(!1),ln({})},In=function(Ln){var cr=Ln,Lr=document.createElement("input");Lr.value=cr,document.body.appendChild(Lr),Lr.select(),document.execCommand("Copy"),Lr.style.display="none"},Fr=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(Ln){return v.a.createElement(ka.a,{title:Ln},v.a.createElement("span",null,Ln))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(Ln){return v.a.createElement(ka.a,{title:Ln},v.a.createElement("span",null,Ln||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(Ln,cr){return Za()(cr.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(Ln,cr){return v.a.createElement("div",{className:xa.a.path},v.a.createElement(ka.a,{title:Ln},v.a.createElement("span",{className:xa.a.text},Ln)),v.a.createElement(Ga.CopyToClipboard,{text:Ln,onCopy:function(){return g.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(ka.a,{title:"\u590D\u5236"},v.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(li.w)()?200:120,render:function(Ln,cr){return v.a.createElement("div",{className:xa.a.actionsBtns},v.a.createElement(ka.a,{title:"\u91CD\u547D\u540D"},v.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var Nr;ln(Object(Q.clone)(Object(z.a)(Object(z.a)({},cr),{},{title:cr!=null&&cr.title.includes(".")?cr==null||((Nr=cr.title)===null||Nr===void 0)?void 0:Nr.substring(0,cr.title.lastIndexOf(".")):cr==null?void 0:cr.title}))),Gr(!0),Object(l.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(li.w)()&&v.a.createElement(ka.a,{title:"\u5206\u4EAB"},v.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(l.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),ln(Object(Q.clone)(cr)),Ye(!0)}})),Object(li.w)()&&v.a.createElement(ka.a,{title:"\u4E0B\u8F7D"},v.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(l.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(l.x)(cr.title,cr==null?void 0:cr.download_url)}})),v.a.createElement(ka.a,{title:"\u5220\u9664"},v.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(l.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),Er(cr.id)}})))}}];return v.a.createElement("div",{className:xa.a.dataset},v.a.createElement("div",{className:xa.a.header},v.a.createElement("div",{className:xa.a.title},"\u6570\u636E\u96C6(",Zn.total,")"),v.a.createElement("div",{className:xa.a.dataPath},v.a.createElement("span",{className:xa.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),v.a.createElement("input",{value:ir==null?void 0:ir.folder_name,disabled:!0}),v.a.createElement(Ga.CopyToClipboard,{text:ir==null?void 0:ir.folder_name,onCopy:function(){return g.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(ka.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},v.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),v.a.createElement("div",{className:xa.a.btns},v.a.createElement(L.a,{type:"primary",ghost:!0,onClick:function(){return Er()},disabled:!Re.length},"\u5220\u9664"),v.a.createElement(L.a,{type:"primary",onClick:function(){return wt(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),v.a.createElement("div",{className:xa.a.content},v.a.createElement(We.a,{loading:Kr,active:!0,paragraph:{rows:5}},Zn.total?v.a.createElement(Sa.a,{rowSelection:tn,className:xa.a.customTable,dataSource:en,bordered:!1,rowKey:function(Ln){return Ln.id},rowClassName:xa.a.row,columns:Fr,loading:ta,pagination:{pageSize:Zn.limit,total:Zn.total,current:Zn.page,onChange:dr,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):rn())),v.a.createElement(Fa.a,{rootIdentifier:ur==null||((on=ur.detail)===null||on===void 0)?void 0:on.root_identifier,wrapClassName:xa.a.uploadFileModal,id:Dr,containerId:ur==null||((An=ur.detail)===null||An===void 0)?void 0:An.id,local:Jn==null||((Tn=Jn.setting)===null||Tn===void 0)?void 0:Tn.is_local,dispatch:kn,visible:et,onClose:function(){return wt(!1)},onOK:Bn}),v.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:ra,onOk:zn,centered:!0,wrapClassName:xa.a.renameModal,onCancel:function(){Gr(!1),ln({})},width:"1000px"},v.a.createElement("div",null,v.a.createElement("div",{className:xa.a.fileName},v.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),v.a.createElement(H.a,{value:kt==null?void 0:kt.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(Ln){ln(Object(z.a)(Object(z.a)({},kt),{},{title:Ln.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((kt==null||((Yn=kt.title)===null||Yn===void 0)?void 0:Yn.length)||0,"/60")}),(kt==null?void 0:kt.errorDes)&&v.a.createElement("div",{className:xa.a.errorDes},kt==null?void 0:kt.errorDes))),v.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:nt,onOk:bn,centered:!0,wrapClassName:xa.a.shareModal,onCancel:function(){Ye(!1),ln({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},v.a.createElement("div",null,v.a.createElement("div",{className:xa.a.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",v.a.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),v.a.createElement(H.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:kt==null?void 0:kt.download_url}))))},ya=Object(x.a)(function($t){var jt=$t.globalSetting,on=$t.shixunsDetail,An=$t.practiceSetting,Tn=$t.user;return{globalSetting:jt,shixunsDetail:on,user:Tn,practiceSetting:An}})(va),ye=i("aHsQ"),rt=i("sGsY"),Et=i("fKo2"),vt=i.n(Et),Wt=i("BMKw"),Lt=i.n(Wt),Zt=function(jt){return jt!=null&&jt.length?jt.filter(function(on,An){return An!==0}).map(function(on){return on.val}).join("").substr(1):""},dn=function(jt){var on=jt.shixunsDetail,An=jt.globalSetting,Tn=jt.loading,Yn=jt.dispatch,Jn=jt.fileType,kn=jt.path,Ar=jt.onFinish,ur=Ar===void 0?function(){}:Ar,yr=Object(w.i)(),vr=Object(T.useState)(""),Dr=Object(ue.a)(vr,2),Xn=Dr[0],Ut=Dr[1],en=Object(T.useState)([]),Vt=Object(ue.a)(en,2),Un=Vt[0],$n=Vt[1],ir=Object(T.useState)([]),Kn=Object(ue.a)(ir,2),rr=Kn[0],or=Kn[1],ta=[nn.OriginalPicturePath,nn.ExpectPicturePath,nn.PicturePath],wr=ta.includes(Jn);Object(T.useEffect)(function(){if(on.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Ut(kn||""),_r()},[on.actionTabs.key]);var _r=function(){var Gr=Object(r.a)(n.a.mark(function Fe(){var tt,nt,Ye,Pe,ze=arguments;return n.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return nt=ze.length>0&&ze[0]!==void 0?ze[0]:"",Ze.next=3,Yn({type:"shixunsDetail/getRepository",payload:{id:yr.id,path:nt}});case 3:Ye=Ze.sent,nt===""&&!(Ye!=null&&(tt=Ye.trees)!==null&&tt!==void 0&&tt.length)&&g.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Ye!=null&&Ye.trees&&(Pe=Ye.trees.map(function(qe){return Object(z.a)(Object(z.a)({},qe),{name:qe.name,val:qe.name})}),or(Pe||[]));case 6:case"end":return Ze.stop()}},Fe)}));return function(){return Gr.apply(this,arguments)}}(),qr=function(Fe){var tt=Zt(Un),nt="".concat(tt&&"".concat(tt,"/")).concat(Fe);Jn===nn.Path?!(Xn!=null&&Xn.includes("".concat(nt,"\uFF1B")))&&Ut("".concat(Xn).concat(nt,"\uFF1B")):Jn===nn.ExecPath&&Ut(nt)},Kr=function(Fe){if(Fe.type==="tree"){Un.length?Un.push({val:"/".concat(Fe.val),path:Fe.val}):Un.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Fe.val),path:Fe.val}),$n(Un);var tt=Zt(Un);wr&&Ut(tt),_r(tt)}},mr=function(Fe,tt){var nt=Un.filter(function(Pe,ze){return ze<=tt});$n(nt);var Ye=Zt(nt);wr&&Ut(Ye),_r(Ye)},Jr=function(){var Gr=Object(r.a)(n.a.mark(function Fe(){return n.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:ur(Xn),Rr();case 2:case"end":return nt.stop()}},Fe)}));return function(){return Gr.apply(this,arguments)}}(),Rr=function(){Ut(""),$n([]),or([]),Yn({type:"shixunsDetail/setActionTabs",payload:{}})},ra=Zt(Un);return v.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:on.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:Jr,onCancel:Rr},v.a.createElement("div",{className:Lt.a.wrap},v.a.createElement("div",{className:Lt.a.content},v.a.createElement("div",{className:Lt.a.mainPathWrap},!!(Un!=null&&Un.length)&&Un.map(function(Gr,Fe){return v.a.createElement("a",{key:Fe,onClick:function(){return mr(Gr,Fe)}},Gr.val)})),!!(rr!=null&&rr.length)&&rr.map(function(Gr,Fe){return Gr.type==="tree"?v.a.createElement("a",{key:Fe,onClick:function(){return Kr(Gr)}},v.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(Lt.a.colorBlue)}),ra&&"".concat(ra,"/"),Gr.name):v.a.createElement("a",{key:Fe,onClick:function(){return qr("".concat(Gr.name))}},v.a.createElement("i",{className:"iconfont icon-zuoye ".concat(Lt.a.colorBlue)}),ra&&"".concat(ra,"/"),Gr.name)})),v.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),v.a.createElement(H.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Xn,onChange:function(Fe){return Ut(Fe.target.value)}})))},En=Object(x.a)(function($t){var jt=$t.shixunsDetail,on=$t.loading,An=$t.globalSetting;return{shixunsDetail:jt,globalSetting:An,loading:on.models.index}})(dn),wn=i("dhSg"),Hn=rt.a.Countdown,jn;(function($t){$t[$t.LoadingFail=1]="LoadingFail",$t[$t.Loading=2]="Loading",$t[$t.Finish=3]="Finish"})(jn||(jn={}));var nn;(function($t){$t.Path="path",$t.ExecPath="exec_path",$t.OriginalPicturePath="original_picture_path",$t.ExpectPicturePath="expect_picture_path",$t.PicturePath="picture_path"})(nn||(nn={}));var Mn=function(jt){var on=jt.globalSetting,An=jt.loading,Tn=jt.dispatch,Yn=jt.practiceSetting,Jn=jt.shixunsDetail,kn=Object(E.a)(jt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Ar=Object(T.useState)(),ur=Object(ue.a)(Ar,2),yr=ur[0],vr=ur[1],Dr=Object(T.useState)(),Xn=Object(ue.a)(Dr,2),Ut=Xn[0],en=Xn[1],Vt=Object(T.useRef)(),Un=Object(T.useState)(),$n=Object(ue.a)(Un,2),ir=$n[0],Kn=$n[1],rr=Object(T.useState)(),or=Object(ue.a)(rr,2),ta=or[0],wr=or[1],_r=Object(T.useState)(),qr=Object(ue.a)(_r,2),Kr=qr[0],mr=qr[1],Jr=Object(T.useRef)(!0),Rr=Object(T.useState)(!0),ra=Object(ue.a)(Rr,2),Gr=ra[0],Fe=ra[1],tt=Object(T.useState)(700),nt=Object(ue.a)(tt,2),Ye=nt[0],Pe=nt[1],ze=Object(T.useState)(""),Re=Object(ue.a)(ze,2),Ze=Re[0],qe=Re[1],ht=Object(T.useRef)(),et=Object(w.i)();Object(T.useEffect)(function(){Pt()},[]);var wt=function(){var dr=Object(r.a)(n.a.mark(function Bn(){var rn,yn,tn;return n.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.next=2,Tn({type:"shixunsDetail/updateRepositoryFile",payload:{id:et.id,path:Jn==null||((rn=Jn.fileContent)===null||rn===void 0||((yn=rn.params)===null||yn===void 0))?void 0:yn.path,content:yr,secret_repository:Gr?null:!0}});case 2:tn=zn.sent,tn!=null&&tn.content&&(g.b.info("\u4FDD\u5B58\u6210\u529F"),Tn({type:"practiceSetting/setSideBarTabs",payload:Object(z.a)(Object(z.a)({},Yn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return zn.stop()}},Bn)}));return function(){return dr.apply(this,arguments)}}(),Pt=function(){var dr=Object(r.a)(n.a.mark(function Bn(){var rn,yn,tn,Er,zn;return n.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.next=2,Object(s.Y)({identifier:et.id});case 2:if(tn=In.sent,!(tn!=null&&(rn=tn.data)!==null&&rn!==void 0&&(yn=rn.data_list)!==null&&yn!==void 0&&yn.length)){In.next=6;break}return wn.a.publish("pod-restrict-data",{identifier:tn==null||((Er=tn.data)===null||Er===void 0)?void 0:Er.identifier,data_list:tn==null||((zn=tn.data)===null||zn===void 0)?void 0:zn.data_list}),In.abrupt("return");case 6:tn!=null&&tn.url&&qe(tn==null?void 0:tn.url);case 7:case"end":return In.stop()}},Bn)}));return function(){return dr.apply(this,arguments)}}(),Gt=function(){var dr=Object(r.a)(n.a.mark(function Bn(){var rn;return n.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return tn.next=2,Object(s.sb)({identifier:et.id});case 2:if(rn=tn.sent,!((rn==null?void 0:rn.status)!==0)){tn.next=5;break}return tn.abrupt("return");case 5:rn!=null&&rn.remainingSeconds?(Kn(Date.now()+rn.remainingSeconds*1e3),wr(rn.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(rn.remainingSeconds-300)*1e3)):kt();case 6:case"end":return tn.stop()}},Bn)}));return function(){return dr.apply(this,arguments)}}(),kt=function(){f.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:v.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:function(){var Bn=Object(r.a)(n.a.mark(function yn(){return n.a.wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:ln();case 1:case"end":return Er.stop()}},yn)}));function rn(){return Bn.apply(this,arguments)}return rn}()})},ln=function(){var dr=Object(r.a)(n.a.mark(function Bn(){var rn;return n.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return en(jn.Loading),tn.next=3,Object(s.Db)({identifier:et.id});case 3:if(rn=tn.sent,!((rn==null?void 0:rn.status)!==0)){tn.next=6;break}return tn.abrupt("return");case 6:en(jn.Finish),qe(rn.url),Vt.current=rn.port,g.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return tn.stop()}},Bn)}));return function(){return dr.apply(this,arguments)}}(),On=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:v.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",v.a.createElement("span",null,v.a.createElement(Hn,{value:ir,format:"HH:mm:ss",onFinish:er})),"\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 Bn=Object(r.a)(n.a.mark(function yn(){var tn;return n.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.next=2,Object(s.a)({identifier:et.id});case 2:if(tn=zn.sent,!(tn.status===0)){zn.next=7;break}return zn.next=6,Gt();case 6:g.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return zn.stop()}},yn)}));function rn(){return Bn.apply(this,arguments)}return rn}()})},er=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:v.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(){ln()}})},Zn=function(Bn){Tn({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},Tr=function(){var dr=Object(r.a)(n.a.mark(function Bn(rn){return n.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:return tn.next=2,Object(s.Rb)({id:et.id,startup_file:rn});case 2:Pt(),Tn({type:"practiceSetting/getCommonData",payload:Object(z.a)({},et)});case 4:case"end":return tn.stop()}},Bn)}));return function(rn){return dr.apply(this,arguments)}}();return v.a.createElement("div",{className:vt.a.warehouse},v.a.createElement(_.a,{className:"mt20 ml20 font14",align:"middle"},v.a.createElement(j.a,null,v.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),v.a.createElement(j.a,{flex:"300px",onClick:function(){return Zn(nn.ExecPath)}},v.a.createElement(H.a,{value:Ze})),v.a.createElement(j.a,{flex:"1"},v.a.createElement(L.a,{type:"primary",className:"ml10",onClick:function(){return Zn(nn.ExecPath)}},"\u8BBE\u7F6E"))),v.a.createElement("iframe",{onLoad:function(Bn){},src:Ze,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),v.a.createElement(En,{fileType:"path",path:"",onFinish:function(Bn){return Tr(Bn)}}))},mn=Object(x.a)(function($t){var jt=$t.loading,on=$t.globalSetting,An=$t.practiceSetting,Tn=$t.shixunsDetail;return{globalSetting:on,loading:jt,practiceSetting:An,shixunsDetail:Tn}})(Mn),Wn=function(jt){var on=jt.tabsActive,An=Object(E.a)(jt,["tabsActive"]);return v.a.createElement(v.a.Fragment,null,on==="information"&&v.a.createElement(Qe,null),on==="warehouse"&&v.a.createElement(ot.default,null),on==="level"&&v.a.createElement(Ne,An),on==="collaborate"&&v.a.createElement(sn,An),on==="setting"&&v.a.createElement(hn.a,null),on==="environment"&&v.a.createElement(Oa,An),on==="dataset"&&v.a.createElement(ya,null),on==="service"&&v.a.createElement(mn,An))},Dn=Wn,tr=i("Jv0p"),sr=i.n(tr),Ir=i("luix"),oa=i.n(Ir),Cr=[{name:"\u57FA\u672C\u4FE1\u606F",icon:v.a.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:v.a.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:v.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:v.a.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:v.a.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1",icon:v.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:v.a.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:v.a.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"}],Or=function(jt){var on,An=jt.globalSetting,Tn=jt.loading,Yn=jt.dispatch,Jn=jt.shixunsDetail,kn=jt.practiceSetting,Ar=Object(E.a)(jt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),ur=kn.base_info_warning,yr=kn.challenges_warning,vr=kn.id,Dr=kn.repository_warning,Xn=kn.sideBar,Ut=kn.service_warning,en=Object(w.h)(),Vt=Object(w.i)();Object(T.useEffect)(function(){var ir,Kn,rr=en==null||((ir=en.query)===null||ir===void 0)?void 0:ir.tabId,or=en.pathname.split("/").length,ta=Jn!=null&&(Kn=Jn.detail)!==null&&Kn!==void 0&&Kn.windows_vnc?Cr.filter(function(_r){return _r.tabId!=="dataset"}):Cr,wr=ta.map(function(_r){return _r.tabId}).includes(rr);if(rr&&wr){Yn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:rr}});return}if(or>4){Yn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!rr||rr&&!wr){Yn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[Jn==null||((on=Jn.detail)===null||on===void 0)?void 0:on.windows_vnc]),Object(T.useEffect)(function(){return function(){Yn({type:"practiceSetting/setSideBarTabs",payload:Object(z.a)(Object(z.a)({},kn.sideBar),{},{selectPath:""})})}},[Vt.id]);var Un=function(Kn){var rr;if(Kn===Xn.tabsActive)return;var or=function(){x.d.push("/shixuns/".concat(vr,"/edit?tabId=").concat(Kn)),Yn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Kn,selectPath:"",confirmLeave:!1}})};kn!=null&&(rr=kn.sideBar)!==null&&rr!==void 0&&rr.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(){or()}}):or()},$n=function(){var Kn,rr=Jn!=null&&(Kn=Jn.detail)!==null&&Kn!==void 0&&Kn.windows_vnc?Cr.filter(function(or){return or.tabId!=="dataset"}):Cr;return rr.filter(function(or){var ta;return Jn!=null&&(ta=Jn.detail)!==null&&ta!==void 0&&ta.is_jupyter_lab?or.tabId!=="level":or.tabId!=="service"}).map(function(or){var ta=or.name,wr=or.icon,_r=or.tabId;return v.a.createElement("div",{key:_r,className:kn.sideBar.tabsActive===_r?sr.a.itemActive:sr.a.item,onClick:function(){return Un(_r)}},wr,v.a.createElement("span",{className:sr.a.name},ta),_r==="information"&&ur&&v.a.createElement(ka.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},v.a.createElement("img",{src:oa.a,alt:""})),_r==="level"&&yr&&v.a.createElement(ka.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},v.a.createElement("img",{src:oa.a,alt:""})),_r==="service"&&Ut&&v.a.createElement(ka.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},v.a.createElement("img",{src:oa.a,alt:""})),_r==="warehouse"&&Dr&&v.a.createElement(ka.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},v.a.createElement("img",{src:oa.a,alt:""})))})};return v.a.createElement("div",{className:sr.a.sidebar},v.a.createElement("div",{className:sr.a.items},$n()),v.a.createElement("div",{className:sr.a.question},v.a.createElement(ka.a,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},v.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){return window.open("https://www.educoder.net/forums/4692")}},v.a.createElement("img",{src:yi.t,height:44,width:44,alt:""})))))},ea=Object(x.a)(function($t){var jt=$t.loading,on=$t.globalSetting,An=$t.shixunsDetail,Tn=$t.practiceSetting;return{globalSetting:on,loading:jt,practiceSetting:Tn,shixunsDetail:An}})(Or),Nn=function(jt){var on=jt.globalSetting,An=jt.loading,Tn=jt.dispatch,Yn=jt.practiceSetting,Jn=Object(E.a)(jt,["globalSetting","loading","dispatch","practiceSetting"]),kn=Yn.sideBar,Ar=kn.tabsActive,ur=Object(w.i)();return Object(T.useEffect)(function(){return Tn({type:"globalSetting/headerFooterToggle",payload:!1}),Tn({type:"shixunsDetail/getShixunsDetail",payload:ur}),Tn({type:"shixunsDetail/getSettingsData",payload:ur}),function(){Tn({type:"globalSetting/headerFooterToggle",payload:!0}),Tn({type:"practiceSetting/setParams",payload:{id:""}})}},[]),v.a.createElement("div",{className:y.a.practiceSetting},v.a.createElement("div",{className:y.a.wrapHeader},v.a.createElement(P,null)),v.a.createElement("div",{className:y.a.wrapLayout},v.a.createElement("div",{className:y.a.wrapSidebar},v.a.createElement(ea,null)),v.a.createElement("div",{className:y.a.wrapContent},v.a.createElement(Dn,Object(M.a)({},Jn,{tabsActive:Yn.sideBar.tabsActive})))))},br=Y.default=Object(x.a)(function($t){var jt=$t.loading,on=$t.globalSetting,An=$t.practiceSetting;return{globalSetting:on,loading:jt,practiceSetting:An}})(Nn)},WYAk:function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){(function(){var E=M,T=E.lib,v=T.Base,m=E.enc,y=m.Utf8,O=E.algo,g=O.HMAC=v.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=y.parse(f));var r=e.blockSize,c=r*4;f.sigBytes>c&&(f=e.finalize(f)),f.clamp();for(var n=this._oKey=f.clone(),a=this._iKey=f.clone(),o=n.words,l=a.words,d=0;d<r;d++)o[d]^=1549556828,l[d]^=909522486;n.sigBytes=a.sigBytes=c,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 c=f.finalize(this._oKey.clone().concat(r));return c}})})()})},WaYH:function(N,Y,i){"use strict";var M=i("rePB"),E=i("Ff2n"),T=i("VTBJ"),v=i("1OyB"),m=i("vuIU"),y=i("JX7q"),O=i("Ji7U"),g=i("LK+K"),e=i("q1tI"),f=i("TSYQ"),r=i.n(f),c=i("sboe"),n=i("OZM5"),a=function(P){var R=P.prefixCls,C=P.level,S=P.isStart,_=P.isEnd;if(!C)return null;for(var A="".concat(R,"-indent-unit"),j=[],I=0;I<C;I+=1){var k;j.push(e.createElement("span",{key:I,className:r()(A,(k={},Object(M.a)(k,"".concat(A,"-start"),S[I+1]),Object(M.a)(k,"".concat(A,"-end"),_[I+1]),Object(M.a)(k,"".concat(A,"-end-first-level"),!I&&_[0]),k))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},j)},o=a,l=i("815F"),d="open",h="close",s="---",u=function(b){Object(O.a)(R,b);var P=Object(g.a)(R);function R(){var C;return Object(v.a)(this,R),C=P.apply(this,arguments),C.state={dragNodeHighlight:!1},C.onSelectorClick=function(S){var _=C.props.context.onNodeClick;_(S,Object(l.b)(C.props)),C.isSelectable()?C.onSelect(S):C.onCheck(S)},C.onSelectorDoubleClick=function(S){var _=C.props.context.onNodeDoubleClick;_(S,Object(l.b)(C.props))},C.onSelect=function(S){if(C.isDisabled())return;var _=C.props.context.onNodeSelect;S.preventDefault(),_(S,Object(l.b)(C.props))},C.onCheck=function(S){if(C.isDisabled())return;var _=C.props,A=_.disableCheckbox,j=_.checked,I=C.props.context.onNodeCheck;if(!C.isCheckable()||A)return;S.preventDefault();var k=!j;I(S,Object(l.b)(C.props),k)},C.onMouseEnter=function(S){var _=C.props.context.onNodeMouseEnter;_(S,Object(l.b)(C.props))},C.onMouseLeave=function(S){var _=C.props.context.onNodeMouseLeave;_(S,Object(l.b)(C.props))},C.onContextMenu=function(S){var _=C.props.context.onNodeContextMenu;_(S,Object(l.b)(C.props))},C.onDragStart=function(S){var _=C.props.context.onNodeDragStart;S.stopPropagation(),C.setState({dragNodeHighlight:!0}),_(S,Object(y.a)(C));try{S.dataTransfer.setData("text/plain","")}catch(A){}},C.onDragEnter=function(S){var _=C.props.context.onNodeDragEnter;S.preventDefault(),S.stopPropagation(),_(S,Object(y.a)(C))},C.onDragOver=function(S){var _=C.props.context.onNodeDragOver;S.preventDefault(),S.stopPropagation(),_(S,Object(y.a)(C))},C.onDragLeave=function(S){var _=C.props.context.onNodeDragLeave;S.stopPropagation(),_(S,Object(y.a)(C))},C.onDragEnd=function(S){var _=C.props.context.onNodeDragEnd;S.stopPropagation(),C.setState({dragNodeHighlight:!1}),_(S,Object(y.a)(C))},C.onDrop=function(S){var _=C.props.context.onNodeDrop;S.preventDefault(),S.stopPropagation(),C.setState({dragNodeHighlight:!1}),_(S,Object(y.a)(C))},C.onExpand=function(S){var _=C.props.context.onNodeExpand;_(S,Object(l.b)(C.props))},C.setSelectHandle=function(S){C.selectHandle=S},C.getNodeState=function(){var S=C.props.expanded;return C.isLeaf()?null:S?d:h},C.hasChildren=function(){var S=C.props.eventKey,_=C.props.context.keyEntities,A=_[S]||{},j=A.children;return!!(j||[]).length},C.isLeaf=function(){var S=C.props,_=S.isLeaf,A=S.loaded,j=C.props.context.loadData,I=C.hasChildren();return _===!1?!1:_||!j&&!I||j&&A&&!I},C.isDisabled=function(){var S=C.props.disabled,_=C.props.context.disabled;return!!(_||S)},C.isCheckable=function(){var S=C.props.checkable,_=C.props.context.checkable;return!_||S===!1?!1:_},C.syncLoadData=function(S){var _=S.expanded,A=S.loading,j=S.loaded,I=C.props.context,k=I.loadData,J=I.onNodeLoad;if(A)return;k&&_&&!C.isLeaf()&&(!C.hasChildren()&&!j&&J(Object(l.b)(C.props)))},C.renderSwitcher=function(){var S=C.props,_=S.expanded,A=S.switcherIcon,j=C.props.context,I=j.prefixCls,k=j.switcherIcon,J=A||k;if(C.isLeaf())return e.createElement("span",{className:r()("".concat(I,"-switcher"),"".concat(I,"-switcher-noop"))},typeof J=="function"?J(Object(T.a)(Object(T.a)({},C.props),{},{isLeaf:!0})):J);var G=r()("".concat(I,"-switcher"),"".concat(I,"-switcher_").concat(_?d:h));return e.createElement("span",{onClick:C.onExpand,className:G},typeof J=="function"?J(Object(T.a)(Object(T.a)({},C.props),{},{isLeaf:!1})):J)},C.renderCheckbox=function(){var S=C.props,_=S.checked,A=S.halfChecked,j=S.disableCheckbox,I=C.props.context.prefixCls,k=C.isDisabled(),J=C.isCheckable();if(!J)return null;var G=typeof J!="boolean"?J:null;return e.createElement("span",{className:r()("".concat(I,"-checkbox"),_&&"".concat(I,"-checkbox-checked"),!_&&A&&"".concat(I,"-checkbox-indeterminate"),(k||j)&&"".concat(I,"-checkbox-disabled")),onClick:C.onCheck},G)},C.renderIcon=function(){var S=C.props.loading,_=C.props.context.prefixCls;return e.createElement("span",{className:r()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(C.getNodeState()||"docu"),S&&"".concat(_,"-icon_loading"))})},C.renderSelector=function(){var S=C.state.dragNodeHighlight,_=C.props,A=_.title,j=_.selected,I=_.icon,k=_.loading,J=_.data,G=C.props.context,D=G.prefixCls,H=G.showIcon,W=G.icon,L=G.draggable,z=G.loadData,ie=G.titleRender,ce=C.isDisabled(),ue="".concat(D,"-node-content-wrapper"),xe;if(H){var Te=I||W;xe=Te?e.createElement("span",{className:r()("".concat(D,"-iconEle"),"".concat(D,"-icon__customize"))},typeof Te=="function"?Te(C.props):Te):C.renderIcon()}else z&&k&&(xe=C.renderIcon());var de;typeof A=="function"?de=A(J):ie?de=ie(J):de=A;var ve=e.createElement("span",{className:"".concat(D,"-title")},de);return e.createElement("span",{ref:C.setSelectHandle,title:typeof A=="string"?A:"",className:r()("".concat(ue),"".concat(ue,"-").concat(C.getNodeState()||"normal"),!ce&&(j||S)&&"".concat(D,"-node-selected"),!ce&&L&&"draggable"),draggable:!ce&&L||void 0,"aria-grabbed":!ce&&L||void 0,onMouseEnter:C.onMouseEnter,onMouseLeave:C.onMouseLeave,onContextMenu:C.onContextMenu,onClick:C.onSelectorClick,onDoubleClick:C.onSelectorDoubleClick,onDragStart:L?C.onDragStart:void 0},xe,ve)},C}return Object(m.a)(R,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var S=this.props.selectable,_=this.props.context.selectable;return typeof S=="boolean"?S:_}},{key:"render",value:function(){var S,_=this.props,A=_.eventKey,j=_.className,I=_.style,k=_.dragOver,J=_.dragOverGapTop,G=_.dragOverGapBottom,D=_.isLeaf,H=_.isStart,W=_.isEnd,L=_.expanded,z=_.selected,ie=_.checked,ce=_.halfChecked,ue=_.loading,xe=_.domRef,Te=_.active,de=_.onMouseMove,ve=Object(E.a)(_,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),_e=this.props.context,le=_e.prefixCls,ee=_e.filterTreeNode,U=_e.draggable,K=_e.keyEntities,X=this.isDisabled(),Q=Object(n.f)(ve),te=K[A]||{},ae=te.level,re=W[W.length-1];return e.createElement("div",Object.assign({ref:xe,className:r()(j,"".concat(le,"-treenode"),(S={},Object(M.a)(S,"".concat(le,"-treenode-disabled"),X),Object(M.a)(S,"".concat(le,"-treenode-switcher-").concat(L?"open":"close"),!D),Object(M.a)(S,"".concat(le,"-treenode-checkbox-checked"),ie),Object(M.a)(S,"".concat(le,"-treenode-checkbox-indeterminate"),ce),Object(M.a)(S,"".concat(le,"-treenode-selected"),z),Object(M.a)(S,"".concat(le,"-treenode-loading"),ue),Object(M.a)(S,"".concat(le,"-treenode-active"),Te),Object(M.a)(S,"".concat(le,"-treenode-leaf-last"),re),Object(M.a)(S,"drag-over",!X&&k),Object(M.a)(S,"drag-over-gap-top",!X&&J),Object(M.a)(S,"drag-over-gap-bottom",!X&&G),Object(M.a)(S,"filter-node",ee&&ee(Object(l.b)(this.props))),S)),style:I,onDragEnter:U?this.onDragEnter:void 0,onDragOver:U?this.onDragOver:void 0,onDragLeave:U?this.onDragLeave:void 0,onDrop:U?this.onDrop:void 0,onDragEnd:U?this.onDragEnd:void 0,onMouseMove:de},Q),e.createElement(o,{prefixCls:le,level:ae,isStart:H,isEnd:W}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(e.Component),w=function(P){return e.createElement(c.a.Consumer,null,function(R){return e.createElement(u,Object.assign({},P,{context:R}))})};w.displayName="TreeNode",w.defaultProps={title:s},w.isTreeNode=1;var x=Y.a=w},XIdC:function(N,Y,i){"use strict";var M=i("rePB"),E=i("ODXe"),T=i("Ff2n"),v=i("q1tI"),m=i.n(v),y=i("TSYQ"),O=i.n(y),g=i("6cGi"),e=i("4IlW"),f=v.forwardRef(function(r,c){var n,a=r.prefixCls,o=a===void 0?"rc-switch":a,l=r.className,d=r.checked,h=r.defaultChecked,s=r.disabled,u=r.loadingIcon,w=r.checkedChildren,x=r.unCheckedChildren,b=r.onClick,P=r.onChange,R=r.onKeyDown,C=Object(T.a)(r,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),S=Object(g.a)(!1,{value:d,defaultValue:h}),_=Object(E.a)(S,2),A=_[0],j=_[1];function I(D,H){var W=A;return s||(W=D,j(W),P==null||P(W,H)),W}function k(D){D.which===e.a.LEFT?I(!1,D):D.which===e.a.RIGHT&&I(!0,D),R==null||R(D)}function J(D){var H=I(!A,D);b==null||b(H,D)}var G=O()(o,l,(n={},Object(M.a)(n,"".concat(o,"-checked"),A),Object(M.a)(n,"".concat(o,"-disabled"),s),n));return v.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":A,disabled:s,className:G,ref:c,onKeyDown:k,onClick:J}),u,v.createElement("span",{className:"".concat(o,"-inner")},A?w:x))});f.displayName="Switch",Y.a=f},Xsq0:function(N,Y,i){N.exports=i.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(N,Y,i){"use strict";i.r(Y),i.d(Y,"ResizableTextArea",function(){return ce});var M=i("wx14"),E=i("1OyB"),T=i("vuIU"),v=i("Ji7U"),m=i("LK+K"),y=i("q1tI"),O=i("VTBJ"),g=i("rePB"),e=i("Zm9Q"),f=i("Kwbf"),r=i("c+Xe"),c=i("m+aA"),n=i("bdgK"),a=new Map;function o(Te){Te.forEach(function(de){var ve,_e=de.target;(ve=a.get(_e))===null||ve===void 0||ve.forEach(function(le){return le(_e)})})}var l=new n.default(o),d=null,h=null;function s(Te,de){a.has(Te)||(a.set(Te,new Set),l.observe(Te)),a.get(Te).add(de)}function u(Te,de){a.has(Te)&&(a.get(Te).delete(de),a.get(Te).size||(l.unobserve(Te),a.delete(Te)))}var w=function(Te){Object(v.a)(ve,Te);var de=Object(m.a)(ve);function ve(){return Object(E.a)(this,ve),de.apply(this,arguments)}return Object(T.a)(ve,[{key:"render",value:function(){return this.props.children}}]),ve}(y.Component),x=y.createContext(null);function b(Te){var de=Te.children,ve=Te.onBatchResize,_e=y.useRef(0),le=y.useRef([]),ee=y.useContext(x),U=y.useCallback(function(K,X,Q){_e.current+=1;var te=_e.current;le.current.push({size:K,element:X,data:Q}),Promise.resolve().then(function(){te===_e.current&&(ve==null||ve(le.current),le.current=[])}),ee==null||ee(K,X,Q)},[ve,ee]);return y.createElement(x.Provider,{value:U},de)}function P(Te){var de=Te.children,ve=Te.disabled,_e=y.useRef(null),le=y.useRef(null),ee=y.useContext(x),U=y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),K=y.isValidElement(de)&&Object(r.c)(de),X=K?de.ref:null,Q=y.useMemo(function(){return Object(r.a)(X,_e)},[X,_e]),te=y.useRef(Te);te.current=Te;var ae=y.useCallback(function(re){var $=te.current,Z=$.onResize,fe=$.data,me=re.getBoundingClientRect(),Oe=me.width,He=me.height,Qe=re.offsetWidth,ot=re.offsetHeight,st=Math.floor(Oe),ct=Math.floor(He);if(U.current.width!==st||U.current.height!==ct||U.current.offsetWidth!==Qe||U.current.offsetHeight!==ot){var dt={width:st,height:ct,offsetWidth:Qe,offsetHeight:ot};U.current=dt;var Xe=Qe===Math.round(Oe)?Oe:Qe,ke=ot===Math.round(He)?He:ot,lt=Object(O.a)(Object(O.a)({},dt),{},{offsetWidth:Xe,offsetHeight:ke});ee==null||ee(lt,re,fe),Z&&Promise.resolve().then(function(){Z(lt,re)})}},[]);return y.useEffect(function(){var re=Object(c.a)(_e.current)||Object(c.a)(le.current);return re&&!ve&&s(re,ae),function(){return u(re,ae)}},[_e.current,ve]),y.createElement(w,{ref:le},K?y.cloneElement(de,{ref:Q}):de)}var R="rc-observer-key";function C(Te){var de=Te.children,ve=Object(e.a)(de);return ve.map(function(_e,le){var ee=(_e==null?void 0:_e.key)||"".concat(R,"-").concat(le);return y.createElement(P,Object(M.a)({},Te,{key:ee}),_e)})}C.Collection=b;var S=C,_=i("bT9E"),A=i("TSYQ"),j=i.n(A),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
`,k=["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"],J={},G;function D(Te){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(de&&J[ve])return J[ve];var _e=window.getComputedStyle(Te),le=_e.getPropertyValue("box-sizing")||_e.getPropertyValue("-moz-box-sizing")||_e.getPropertyValue("-webkit-box-sizing"),ee=parseFloat(_e.getPropertyValue("padding-bottom"))+parseFloat(_e.getPropertyValue("padding-top")),U=parseFloat(_e.getPropertyValue("border-bottom-width"))+parseFloat(_e.getPropertyValue("border-top-width")),K=k.map(function(Q){return"".concat(Q,":").concat(_e.getPropertyValue(Q))}).join(";"),X={sizingStyle:K,paddingSize:ee,borderSize:U,boxSizing:le};return de&&ve&&(J[ve]=X),X}function H(Te){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;G||(G=document.createElement("textarea"),G.setAttribute("tab-index","-1"),G.setAttribute("aria-hidden","true"),document.body.appendChild(G)),Te.getAttribute("wrap")?G.setAttribute("wrap",Te.getAttribute("wrap")):G.removeAttribute("wrap");var le=D(Te,de),ee=le.paddingSize,U=le.borderSize,K=le.boxSizing,X=le.sizingStyle;G.setAttribute("style","".concat(X,";").concat(I)),G.value=Te.value||Te.placeholder||"";var Q=Number.MIN_SAFE_INTEGER,te=Number.MAX_SAFE_INTEGER,ae=G.scrollHeight,re;if(K==="border-box"?ae+=U:K==="content-box"&&(ae-=ee),ve!==null||_e!==null){G.value=" ";var $=G.scrollHeight-ee;ve!==null&&(Q=$*ve,K==="border-box"&&(Q=Q+ee+U),ae=Math.max(Q,ae)),_e!==null&&(te=$*_e,K==="border-box"&&(te=te+ee+U),re=ae>te?"":"hidden",ae=Math.min(te,ae))}return{height:ae,minHeight:Q,maxHeight:te,overflowY:re,resize:"none"}}var W=i("Gytx"),L=i.n(W),z;(function(Te){Te[Te.NONE=0]="NONE",Te[Te.RESIZING=1]="RESIZING",Te[Te.RESIZED=2]="RESIZED"})(z||(z={}));var ie=function(Te){Object(v.a)(ve,Te);var de=Object(m.a)(ve);function ve(_e){var le;return Object(E.a)(this,ve),le=de.call(this,_e),le.nextFrameActionId=void 0,le.resizeFrameId=void 0,le.textArea=void 0,le.saveTextArea=function(ee){le.textArea=ee},le.handleResize=function(ee){var U=le.state.resizeStatus,K=le.props,X=K.autoSize,Q=K.onResize;if(U!==z.NONE)return;typeof Q=="function"&&Q(ee),X&&le.resizeOnNextFrame()},le.resizeOnNextFrame=function(){cancelAnimationFrame(le.nextFrameActionId),le.nextFrameActionId=requestAnimationFrame(le.resizeTextarea)},le.resizeTextarea=function(){var ee=le.props.autoSize;if(!ee||!le.textArea)return;var U=ee.minRows,K=ee.maxRows,X=H(le.textArea,!1,U,K);le.setState({textareaStyles:X,resizeStatus:z.RESIZING},function(){cancelAnimationFrame(le.resizeFrameId),le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:z.RESIZED},function(){le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:z.NONE}),le.fixFirefoxAutoScroll()})})})})},le.renderTextArea=function(){var ee=le.props,U=ee.prefixCls,K=U===void 0?"rc-textarea":U,X=ee.autoSize,Q=ee.onResize,te=ee.className,ae=ee.disabled,re=le.state,$=re.textareaStyles,Z=re.resizeStatus,fe=Object(_.a)(le.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),me=j()(K,te,Object(g.a)({},"".concat(K,"-disabled"),ae));"value"in fe&&(fe.value=fe.value||"");var Oe=Object(O.a)(Object(O.a)(Object(O.a)({},le.props.style),$),Z===z.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return y.createElement(S,{onResize:le.handleResize,disabled:!(X||Q)},y.createElement("textarea",Object(M.a)({},fe,{className:me,style:Oe,ref:le.saveTextArea})))},le.state={textareaStyles:{},resizeStatus:z.NONE},le}return Object(T.a)(ve,[{key:"componentDidUpdate",value:function(le){(le.value!==this.props.value||!L()(le.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 le=this.textArea.selectionStart,ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(le,ee)}}catch(U){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ve}(y.Component),ce=ie,ue=function(Te){Object(v.a)(ve,Te);var de=Object(m.a)(ve);function ve(_e){var le;Object(E.a)(this,ve),le=de.call(this,_e),le.resizableTextArea=void 0,le.focus=function(){le.resizableTextArea.textArea.focus()},le.saveTextArea=function(U){le.resizableTextArea=U},le.handleChange=function(U){var K=le.props.onChange;le.setValue(U.target.value,function(){le.resizableTextArea.resizeTextarea()}),K&&K(U)},le.handleKeyDown=function(U){var K=le.props,X=K.onPressEnter,Q=K.onKeyDown;U.keyCode===13&&X&&X(U),Q&&Q(U)};var ee=typeof _e.value=="undefined"||_e.value===null?_e.defaultValue:_e.value;return le.state={value:ee},le}return Object(T.a)(ve,[{key:"setValue",value:function(le,ee){"value"in this.props||this.setState({value:le},ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return y.createElement(ce,Object(M.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(le){return"value"in le?{value:le.value}:null}}]),ve}(y.Component),xe=Y.default=ue},ZJlW:function(N,Y,i){N.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(N,Y,i){"use strict";i.d(Y,"a",function(){return W});var M=i("k1fw"),E=i("oBTY"),T=i("miYZ"),v=i("tsqr"),m=i("rAM+"),y=i("tJVT"),O=i("PpiC"),g=i("q1tI"),e=i.n(g),f=i("bdgK"),r=i("9og8"),c=i("WmNS"),n=i.n(c),a={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},o={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"]},l={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(`
`)}]},d={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(`
`)}]},h=i("5VLF"),s=i.n(h),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"]}},w=function(z,ie){return ie.map(function(ce){return{label:ce,kind:z.languages.CompletionItemKind.Keyword,insertText:ce}})},x=function(z){return Object.keys(u.tables).map(function(ie){return{label:ie,kind:z.languages.CompletionItemKind.Variable,insertText:ie}})},b=function(z,ie){var ce=u.tables[z];return ce?ce.map(function(ue){return{label:ue,kind:ie.languages.CompletionItemKind.Field,insertText:ue}}):[]};function P(L,z,ie,ce,ue){var xe=z.getWordUntilPosition(ie),Te={startLineNumber:ie.lineNumber,endLineNumber:ie.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},de=ce.map(function(ve){return{label:ve,kind:L.languages.CompletionItemKind.Keyword,insertText:ve,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}});return ue.map(function(ve){de.push(Object(M.a)(Object(M.a)({},ve),{},{range:Te}))}),de}var R=function(L){u.languages.map(function(ue){return L.languages.registerDocumentFormattingEditProvider(ue,{provideDocumentFormattingEdits:function(Te,de,ve){return Object(r.a)(n.a.mark(function _e(){var le;return n.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return le=s()(Te.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),U.abrupt("return",[{range:Te.getFullModelRange(),text:le}]);case 2:case"end":return U.stop()}},_e)}))()}}),ue});var z=l.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ie=d.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ce=o.quickKey.map(function(ue){return{label:ue.label,kind:L.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}});L.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xe,Te){var de=xe.getWordUntilPosition(Te),ve={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},_e=xe.getLineContent(Te.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[].concat(Object(E.a)(l.keywords.map(function(le){return{label:le,kind:L.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}})),Object(E.a)(l.quickKey.map(function(le){return{label:le.label,kind:L.languages.CompletionItemKind.Function,documentation:le.content,insertText:_e.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}})))}}}),L.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(xe,Te){var de=xe.getWordUntilPosition(Te),ve={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn};return{suggestions:Object(E.a)(a.keywords.map(function(_e){return{label:_e,kind:L.languages.CompletionItemKind.Function,documentation:_e,insertText:_e,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}}))}}}),L.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xe,Te){var de=xe.getWordUntilPosition(Te),ve={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},_e=xe.getLineContent(Te.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[].concat(Object(E.a)(o.keywords.map(function(le){return{label:le,kind:L.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}})),Object(E.a)(o.quickKey.map(function(le){return{label:le.label,kind:L.languages.CompletionItemKind.Function,documentation:le.content,insertText:_e.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}})))}}}),L.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xe,Te){var de=xe.getWordUntilPosition(Te),ve={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},_e=xe.getLineContent(Te.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[].concat(Object(E.a)(d.keywords.map(function(le){return{label:le,kind:L.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}})),Object(E.a)(d.quickKey.map(function(le){return{label:le.label,kind:L.languages.CompletionItemKind.Function,documentation:le.content,insertText:_e.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}})))}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",S=i("fjLI"),_=i("LvDl"),A=i("+ua5");function j(L){return/^\d+$/.test(L)?"".concat(L,"px"):L}function I(){}var k=!1,J={"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 G(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=L;if(Array.isArray(L)){for(var ie=0;ie<L.length;ie++){var ce=J[L[ie]];if(ce)return ce}return z[0]}return J[z]||z}var D=null,H=Y.b=function(L){var z=L.width,ie=z===void 0?"100%":z,ce=L.height,ue=ce===void 0?"100%":ce,xe=L.value,Te=L.language,de=Te===void 0?"javascript":Te,ve=L.style,_e=ve===void 0?{}:ve,le=L.options,ee=le===void 0?{}:le,U=L.overrideServices,K=U===void 0?{}:U,X=L.theme,Q=X===void 0?"vs-dark":X,te=L.onEditBlur,ae=L.onSave,re=L.autoHeight,$=re===void 0?!1:re,Z=L.forbidCopy,fe=Z===void 0?!1:Z,me=L.onChange,Oe=me===void 0?I:me,He=L.editorDidMount,Qe=He===void 0?I:He,ot=L.onFocus,st=ot===void 0?I:ot,ct=L.filename,dt=ct===void 0?"educoder.txt":ct,Xe=L.errorLine,ke=L.errorContent,lt=ke===void 0?"":ke,Mt=Object(O.a)(L,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Ce=Object(g.useRef)(),he=Object(g.useRef)({}),be=Object(g.useRef)(),Ee=Object(g.useRef)(),Ne=Object(g.useRef)(!1),we=Object(g.useRef)(),Ae=Object(g.useState)(!1),Ue=Object(y.a)(Ae,2),We=Ue[0],Je=Ue[1];function $e(){var It;return Ce.current&&(It=new f.default(function(yt){var zt=Object(m.a)(yt),sn;try{for(zt.s();!(sn=zt.n()).done;){var hn=sn.value;(hn.target.offsetHeight>0||hn.target.offsetWidth>0)&&he.current.instance.layout()}}catch(un){zt.e(un)}finally{zt.f()}}),It.observe(Ce.current)),It}function pt(){v.b.warn(decodeURIComponent(C))}var Jt=function(){var yt=he.current.instance;if(xe!=null&&yt&&We){var zt=yt.getModel();zt&&xe!==zt.getValue()&&(k=!0,zt.setValue(xe),yt.layout(),k=!1)}};Object(g.useEffect)(function(){Ee.current&&clearTimeout(Ee.current),Ee.current=setTimeout(function(){Jt()},500)},[xe,We,he.current]),Object(g.useEffect)(function(){if(Xe&&he.current&&he.current.instance){var It=he.current.instance;It.changeViewZones(function(zt){var sn=document.createElement("div");sn.style.padding="10px 20px",sn.style.width="calc(100% - 20px)",sn.className="my-error-line-wrp",sn.innerHTML=lt,zt.addZone({afterLineNumber:Xe||11,heightInLines:3,domNode:sn})});var yt={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}};It.addOverlayWidget(yt),It.revealPositionInCenter({lineNumber:20,column:1})}},[Xe,he.current,We]);function fn(){var It=he.current.instance;if(It){var yt=It.getSelection(),zt=he.current.pastePos||{},sn=new D.Range(zt.startLineNumber||yt.endLineNumber,zt.startColumn||yt.endColumn,zt.endLineNumber||yt.endLineNumber,zt.endColumn||yt.endColumn);setTimeout(function(){It.executeEdits("",[{range:sn,text:""}])},300)}}function qt(It){(window.navigator.platform.match("Mac")?It.metaKey:It.ctrlKey)&&It.keyCode==83&&(It.preventDefault(),ae())}var St=function(){if($&&he.current.instance){var yt=he.current.instance.getContentHeight();Ct(yt<ue?ue:yt)}else Ct(ue)};function Be(It){var yt=document.createEvent("MouseEvents");yt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),It.dispatchEvent(yt)}function at(It,yt){var zt=window.URL||window.webkitURL||window,sn=new Blob([yt]),hn=document.createElementNS("http://www.w3.org/1999/xhtml","a");hn.href=zt.createObjectURL(sn),hn.download=It,Be(hn)}Object(g.useEffect)(function(){St()},[St]),Object(g.useEffect)(function(){Ce.current&&!We&&Promise.all([i.e(18),i.e(29)]).then(i.t.bind(null,"M/lh",7)).then(function(It){try{D=It,he.current.instance=D.editor.create(Ce.current,{value:xe,language:G(de),theme:Q,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},K);var yt=he.current.instance,zt=S.d._menuItems,sn=Object(E.a)(zt).find(function(Rn){return Rn[0]._debugName=="EditorContext"}),hn=sn[1],un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Kt=function(Cn,an){var _n=Cn._first;do{var vn,Ft,Nt=an.includes((vn=_n.element)===null||vn===void 0||((Ft=vn.command)===null||Ft===void 0)?void 0:Ft.id);Nt&&Cn._remove(_n)}while(_n=_n.next)};if(Qe(yt,D),setTimeout(function(){St(),he.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){at(dt||"educoder.txt",yt.getValue())}}),yt.getDomNode().addEventListener("input",function(){be.current.autoFormat&&yt.getAction("editor.action.formatDocument").run()})},500),he.current.subscription=yt.onDidChangeModelContent(function(Rn){Ne.current?clearTimeout(we.current):(St(),Oe(yt.getValue(),Rn)),we.current=setTimeout(function(){Ne.current=!1},500)}),window.Monaco||R(D,G(de)),fe&&(Kt(hn,un),Ce.current.classList.add("noCopyPaste"),yt.onKeyDown(function(Rn){var Cn=Rn.keyCode,an=Rn.ctrlKey,_n=Rn.metaKey;(Cn===33||Cn===52)&&(_n||an)&&(pt(),Rn.preventDefault())})),window.Monaco=D,te&&yt.onDidBlurEditorWidget(function(){te(yt.getValue())}),st&&yt.onDidFocusEditorText(function(){st(yt.getValue())}),fe){yt.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_V,function(){return pt(),null}),yt.onDidPaste(function(Rn){he.current.pastePos=Rn});try{window.addEventListener("paste",fn)}catch(Rn){}}var gn=$e();return Je(!0),function(){var Rn=he.current.instance;Rn.dispose();var Cn=Rn.getModel();Cn&&Cn.dispose(),he.current.subscription&&he.current.subscription.dispose(),fe&&window.removeEventListener("paste",fn),gn.unobserve(Ce.current)}}catch(Rn){}})},[]),Object(g.useEffect)(function(){var It=he.current.instance;if(It&&We)return document.addEventListener("keydown",qt,!1),function(){document.removeEventListener("keydown",qt)}},[ae,We]),Object(g.useEffect)(function(){var It=he.current.instance;if(It&&We){var yt=G(de);D.editor.setModelLanguage(It.getModel(),yt),console.log("language:",de,It.getModel(),yt)}},[de,We]),Object(g.useEffect)(function(){var It=he.current.instance;It&&We&&D.editor.setTheme(Q)},[Q,We]),Object(g.useEffect)(function(){var It=he.current.instance;be.current=ee,It&&We&&(It.updateOptions(Object(M.a)({},ee)),setTimeout(function(){It.getModel().updateOptions(Object(M.a)({},ee))},200))},[JSON.stringify(ee),We]),Object(g.useEffect)(function(){var It=he.current.instance;It&&We&&It.layout()},[ie,ue,We]);var it=Object(g.useState)(j(ie)),Me=Object(y.a)(it,2),Ve=Me[0],xt=Me[1],_t=Object(g.useState)(j(ue)),At=Object(y.a)(_t,2),Ot=At[0],Ct=At[1],Bt=Object(M.a)(Object(M.a)({},_e),{},{width:Ve,height:Ot});return e.a.createElement("div",{className:"my-monaco-editor",ref:Ce,style:Bt})};function W(L){var z=L.width,ie=z===void 0?"100%":z,ce=L.height,ue=ce===void 0?"100%":ce,xe=L.original,Te=L.modified,de=L.language,ve=L.options,_e=ve===void 0?{}:ve,le=Object(g.useRef)(),ee=Object(g.useState)(null),U=Object(y.a)(ee,2),K=U[0],X=U[1];function Q($){var Z;return le.current&&(Z=new f.default(function(fe){var me=Object(m.a)(fe),Oe;try{for(me.s();!(Oe=me.n()).done;){var He=Oe.value;(He.target.offsetHeight>0||He.target.offsetWidth>0)&&$.layout()}}catch(Qe){me.e(Qe)}finally{me.f()}}),Z.observe(le.current)),Z}Object(g.useEffect)(function(){le.current&&Promise.all([i.e(18),i.e(29)]).then(i.t.bind(null,"M/lh",7)).then(function($){D=$;var Z=D.editor.createDiffEditor(le.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},_e),{},{wordWrap:!0}));X(Z);var fe=Q(Z);return function(){Z.dispose();var me=Z.getModel();me&&me.dispose(),fe.unobserve(le.current)}})},[]),Object(g.useEffect)(function(){K&&K.setModel({original:D.editor.createModel(xe,de),modified:D.editor.createModel(Te,de)})},[xe,Te,de,K]);var te=j(ie),ae=j(ue),re={width:te,height:ae};return e.a.createElement("div",{className:"my-diff-editor",ref:le,style:re})}},Zss7:function(N,Y,i){var M;(function(E){var T=/^\s+/,v=/\s+$/,m=0,y=E.round,O=E.min,g=E.max,e=E.random;function f(U,K){if(U=U||"",K=K||{},U instanceof f)return U;if(!(this instanceof f))return new f(U,K);var X=r(U);this._originalInput=U,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=y(100*this._a)/100,this._format=K.format||X.format,this._gradientType=K.gradientType,this._r<1&&(this._r=y(this._r)),this._g<1&&(this._g=y(this._g)),this._b<1&&(this._b=y(this._b)),this._ok=X.ok,this._tc_id=m++}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 U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),K,X,Q,te,ae,re;return K=U.r/255,X=U.g/255,Q=U.b/255,K<=.03928?te=K/12.92:te=E.pow((K+.055)/1.055,2.4),X<=.03928?ae=X/12.92:ae=E.pow((X+.055)/1.055,2.4),Q<=.03928?re=Q/12.92:re=E.pow((Q+.055)/1.055,2.4),.2126*te+.7152*ae+.0722*re},setAlpha:function(U){return this._a=H(U),this._roundA=y(100*this._a)/100,this},toHsv:function(){var U=o(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=o(this._r,this._g,this._b),K=y(U.h*360),X=y(U.s*100),Q=y(U.v*100);return this._a==1?"hsv("+K+", "+X+"%, "+Q+"%)":"hsva("+K+", "+X+"%, "+Q+"%, "+this._roundA+")"},toHsl:function(){var U=n(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=n(this._r,this._g,this._b),K=y(U.h*360),X=y(U.s*100),Q=y(U.l*100);return this._a==1?"hsl("+K+", "+X+"%, "+Q+"%)":"hsla("+K+", "+X+"%, "+Q+"%, "+this._roundA+")"},toHex:function(U){return d(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return h(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:y(this._r),g:y(this._g),b:y(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+y(this._r)+", "+y(this._g)+", "+y(this._b)+")":"rgba("+y(this._r)+", "+y(this._g)+", "+y(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:y(W(this._r,255)*100)+"%",g:y(W(this._g,255)*100)+"%",b:y(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+y(W(this._r,255)*100)+"%, "+y(W(this._g,255)*100)+"%, "+y(W(this._b,255)*100)+"%)":"rgba("+y(W(this._r,255)*100)+"%, "+y(W(this._g,255)*100)+"%, "+y(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var K="#"+s(this._r,this._g,this._b,this._a),X=K,Q=this._gradientType?"GradientType = 1, ":"";if(U){var te=f(U);X="#"+s(te._r,te._g,te._b,te._a)}return"progid:DXImageTransform.Microsoft.gradient("+Q+"startColorstr="+K+",endColorstr="+X+")"},toString:function(U){var K=!!U;U=U||this._format;var X=!1,Q=this._a<1&&this._a>=0,te=!K&&Q&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return te?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&(X=this.toRgbString()),U==="prgb"&&(X=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&(X=this.toHexString()),U==="hex3"&&(X=this.toHexString(!0)),U==="hex4"&&(X=this.toHex8String(!0)),U==="hex8"&&(X=this.toHex8String()),U==="name"&&(X=this.toName()),U==="hsl"&&(X=this.toHslString()),U==="hsv"&&(X=this.toHsvString()),X||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(U,K){var X=U.apply(null,[this].concat([].slice.call(K)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(b,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(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(U,K){return U.apply(null,[this].concat([].slice.call(K)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(j,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(U,K){if(typeof U=="object"){var X={};for(var Q in U)U.hasOwnProperty(Q)&&(Q==="a"?X[Q]=U[Q]:X[Q]=xe(U[Q]));U=X}return f(U,K)};function r(U){var K={r:0,g:0,b:0},X=1,Q=null,te=null,ae=null,re=!1,$=!1;return typeof U=="string"&&(U=le(U)),typeof U=="object"&&(_e(U.r)&&_e(U.g)&&_e(U.b)?(K=c(U.r,U.g,U.b),re=!0,$=String(U.r).substr(-1)==="%"?"prgb":"rgb"):_e(U.h)&&_e(U.s)&&_e(U.v)?(Q=xe(U.s),te=xe(U.v),K=l(U.h,Q,te),re=!0,$="hsv"):_e(U.h)&&_e(U.s)&&_e(U.l)&&(Q=xe(U.s),ae=xe(U.l),K=a(U.h,Q,ae),re=!0,$="hsl"),U.hasOwnProperty("a")&&(X=U.a)),X=H(X),{ok:re,format:U.format||$,r:O(255,g(K.r,0)),g:O(255,g(K.g,0)),b:O(255,g(K.b,0)),a:X}}function c(U,K,X){return{r:W(U,255)*255,g:W(K,255)*255,b:W(X,255)*255}}function n(U,K,X){U=W(U,255),K=W(K,255),X=W(X,255);var Q=g(U,K,X),te=O(U,K,X),ae,re,$=(Q+te)/2;if(Q==te)ae=re=0;else{var Z=Q-te;re=$>.5?Z/(2-Q-te):Z/(Q+te);switch(Q){case U:ae=(K-X)/Z+(K<X?6:0);break;case K:ae=(X-U)/Z+2;break;case X:ae=(U-K)/Z+4;break}ae/=6}return{h:ae,s:re,l:$}}function a(U,K,X){var Q,te,ae;U=W(U,360),K=W(K,100),X=W(X,100);function re(fe,me,Oe){return Oe<0&&(Oe+=1),Oe>1&&(Oe-=1),Oe<1/6?fe+(me-fe)*6*Oe:Oe<1/2?me:Oe<2/3?fe+(me-fe)*(2/3-Oe)*6:fe}if(K===0)Q=te=ae=X;else{var $=X<.5?X*(1+K):X+K-X*K,Z=2*X-$;Q=re(Z,$,U+1/3),te=re(Z,$,U),ae=re(Z,$,U-1/3)}return{r:Q*255,g:te*255,b:ae*255}}function o(U,K,X){U=W(U,255),K=W(K,255),X=W(X,255);var Q=g(U,K,X),te=O(U,K,X),ae,re,$=Q,Z=Q-te;if(re=Q===0?0:Z/Q,Q==te)ae=0;else{switch(Q){case U:ae=(K-X)/Z+(K<X?6:0);break;case K:ae=(X-U)/Z+2;break;case X:ae=(U-K)/Z+4;break}ae/=6}return{h:ae,s:re,v:$}}function l(U,K,X){U=W(U,360)*6,K=W(K,100),X=W(X,100);var Q=E.floor(U),te=U-Q,ae=X*(1-K),re=X*(1-te*K),$=X*(1-(1-te)*K),Z=Q%6,fe=[X,re,ae,ae,$,X][Z],me=[$,X,X,re,ae,ae][Z],Oe=[ae,ae,$,X,X,re][Z];return{r:fe*255,g:me*255,b:Oe*255}}function d(U,K,X,Q){var te=[ue(y(U).toString(16)),ue(y(K).toString(16)),ue(y(X).toString(16))];return Q&&te[0].charAt(0)==te[0].charAt(1)&&te[1].charAt(0)==te[1].charAt(1)&&te[2].charAt(0)==te[2].charAt(1)?te[0].charAt(0)+te[1].charAt(0)+te[2].charAt(0):te.join("")}function h(U,K,X,Q,te){var ae=[ue(y(U).toString(16)),ue(y(K).toString(16)),ue(y(X).toString(16)),ue(Te(Q))];return te&&ae[0].charAt(0)==ae[0].charAt(1)&&ae[1].charAt(0)==ae[1].charAt(1)&&ae[2].charAt(0)==ae[2].charAt(1)&&ae[3].charAt(0)==ae[3].charAt(1)?ae[0].charAt(0)+ae[1].charAt(0)+ae[2].charAt(0)+ae[3].charAt(0):ae.join("")}function s(U,K,X,Q){var te=[ue(Te(Q)),ue(y(U).toString(16)),ue(y(K).toString(16)),ue(y(X).toString(16))];return te.join("")}f.equals=function(U,K){return!U||!K?!1:f(U).toRgbString()==f(K).toRgbString()},f.random=function(){return f.fromRatio({r:e(),g:e(),b:e()})};function u(U,K){K=K===0?0:K||10;var X=f(U).toHsl();return X.s-=K/100,X.s=L(X.s),f(X)}function w(U,K){K=K===0?0:K||10;var X=f(U).toHsl();return X.s+=K/100,X.s=L(X.s),f(X)}function x(U){return f(U).desaturate(100)}function b(U,K){K=K===0?0:K||10;var X=f(U).toHsl();return X.l+=K/100,X.l=L(X.l),f(X)}function P(U,K){K=K===0?0:K||10;var X=f(U).toRgb();return X.r=g(0,O(255,X.r-y(255*-(K/100)))),X.g=g(0,O(255,X.g-y(255*-(K/100)))),X.b=g(0,O(255,X.b-y(255*-(K/100)))),f(X)}function R(U,K){K=K===0?0:K||10;var X=f(U).toHsl();return X.l-=K/100,X.l=L(X.l),f(X)}function C(U,K){var X=f(U).toHsl(),Q=(X.h+K)%360;return X.h=Q<0?360+Q:Q,f(X)}function S(U){var K=f(U).toHsl();return K.h=(K.h+180)%360,f(K)}function _(U){var K=f(U).toHsl(),X=K.h;return[f(U),f({h:(X+120)%360,s:K.s,l:K.l}),f({h:(X+240)%360,s:K.s,l:K.l})]}function A(U){var K=f(U).toHsl(),X=K.h;return[f(U),f({h:(X+90)%360,s:K.s,l:K.l}),f({h:(X+180)%360,s:K.s,l:K.l}),f({h:(X+270)%360,s:K.s,l:K.l})]}function j(U){var K=f(U).toHsl(),X=K.h;return[f(U),f({h:(X+72)%360,s:K.s,l:K.l}),f({h:(X+216)%360,s:K.s,l:K.l})]}function I(U,K,X){K=K||6,X=X||30;var Q=f(U).toHsl(),te=360/X,ae=[f(U)];for(Q.h=(Q.h-(te*K>>1)+720)%360;--K;)Q.h=(Q.h+te)%360,ae.push(f(Q));return ae}function k(U,K){K=K||6;for(var X=f(U).toHsv(),Q=X.h,te=X.s,ae=X.v,re=[],$=1/K;K--;)re.push(f({h:Q,s:te,v:ae})),ae=(ae+$)%1;return re}f.mix=function(U,K,X){X=X===0?0:X||50;var Q=f(U).toRgb(),te=f(K).toRgb(),ae=X/100,re={r:(te.r-Q.r)*ae+Q.r,g:(te.g-Q.g)*ae+Q.g,b:(te.b-Q.b)*ae+Q.b,a:(te.a-Q.a)*ae+Q.a};return f(re)},f.readability=function(U,K){var X=f(U),Q=f(K);return(E.max(X.getLuminance(),Q.getLuminance())+.05)/(E.min(X.getLuminance(),Q.getLuminance())+.05)},f.isReadable=function(U,K,X){var Q=f.readability(U,K),te,ae;ae=!1,te=ee(X);switch(te.level+te.size){case"AAsmall":case"AAAlarge":ae=Q>=4.5;break;case"AAlarge":ae=Q>=3;break;case"AAAsmall":ae=Q>=7;break}return ae},f.mostReadable=function(U,K,X){var Q=null,te=0,ae,re,$,Z;X=X||{},re=X.includeFallbackColors,$=X.level,Z=X.size;for(var fe=0;fe<K.length;fe++)ae=f.readability(U,K[fe]),ae>te&&(te=ae,Q=f(K[fe]));return f.isReadable(U,Q,{level:$,size:Z})||!re?Q:(X.includeFallbackColors=!1,f.mostReadable(U,["#fff","#000"],X))};var J=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"},G=f.hexNames=D(J);function D(U){var K={};for(var X in U)U.hasOwnProperty(X)&&(K[U[X]]=X);return K}function H(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function W(U,K){ie(U)&&(U="100%");var X=ce(U);return U=O(K,g(0,parseFloat(U))),X&&(U=parseInt(U*K,10)/100),E.abs(U-K)<1e-6?1:U%K/parseFloat(K)}function L(U){return O(1,g(0,U))}function z(U){return parseInt(U,16)}function ie(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function ce(U){return typeof U=="string"&&U.indexOf("%")!=-1}function ue(U){return U.length==1?"0"+U:""+U}function xe(U){return U<=1&&(U=U*100+"%"),U}function Te(U){return E.round(parseFloat(U)*255).toString(16)}function de(U){return z(U)/255}var ve=function(){var U="[-\\+]?\\d+%?",K="[-\\+]?\\d*\\.\\d+%?",X="(?:"+K+")|(?:"+U+")",Q="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",te="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+Q),rgba:new RegExp("rgba"+te),hsl:new RegExp("hsl"+Q),hsla:new RegExp("hsla"+te),hsv:new RegExp("hsv"+Q),hsva:new RegExp("hsva"+te),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 _e(U){return!!ve.CSS_UNIT.exec(U)}function le(U){U=U.replace(T,"").replace(v,"").toLowerCase();var K=!1;if(J[U])U=J[U],K=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var X;return(X=ve.rgb.exec(U))?{r:X[1],g:X[2],b:X[3]}:(X=ve.rgba.exec(U))?{r:X[1],g:X[2],b:X[3],a:X[4]}:(X=ve.hsl.exec(U))?{h:X[1],s:X[2],l:X[3]}:(X=ve.hsla.exec(U))?{h:X[1],s:X[2],l:X[3],a:X[4]}:(X=ve.hsv.exec(U))?{h:X[1],s:X[2],v:X[3]}:(X=ve.hsva.exec(U))?{h:X[1],s:X[2],v:X[3],a:X[4]}:(X=ve.hex8.exec(U))?{r:z(X[1]),g:z(X[2]),b:z(X[3]),a:de(X[4]),format:K?"name":"hex8"}:(X=ve.hex6.exec(U))?{r:z(X[1]),g:z(X[2]),b:z(X[3]),format:K?"name":"hex"}:(X=ve.hex4.exec(U))?{r:z(X[1]+""+X[1]),g:z(X[2]+""+X[2]),b:z(X[3]+""+X[3]),a:de(X[4]+""+X[4]),format:K?"name":"hex8"}:(X=ve.hex3.exec(U))?{r:z(X[1]+""+X[1]),g:z(X[2]+""+X[2]),b:z(X[3]+""+X[3]),format:K?"name":"hex"}:!1}function ee(U){var K,X;return U=U||{level:"AA",size:"small"},K=(U.level||"AA").toUpperCase(),X=(U.size||"small").toLowerCase(),K!=="AA"&&K!=="AAA"&&(K="AA"),X!=="small"&&X!=="large"&&(X="small"),{level:K,size:X}}N.exports?N.exports=f:!(M=function(){return f}.call(Y,i,Y,N),M!==void 0&&(N.exports=M))})(Math)},aBPH:function(N,Y,i){N.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(N,Y,i){N.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(N,Y,i){N.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(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return function(E){var T=M,v=T.lib,m=v.CipherParams,y=T.enc,O=y.Hex,g=T.format,e=g.Hex={stringify:function(f){return f.ciphertext.toString(O)},parse:function(f){var r=O.parse(f);return m.create({ciphertext:r})}}}(),M.format.Hex})},bT9E:function(N,Y,i){"use strict";i.d(Y,"a",function(){return E});var M=i("VTBJ");function E(T,v){var m=Object(M.a)({},T);return Array.isArray(v)&&v.forEach(function(y){delete m[y]}),m}},bUJZ:function(N,Y){N.exports="data:image/png;base64,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"},biw7:function(N,Y,i){"use strict";var M=i("q1tI"),E=i.n(M),T=M.createContext(null);Y.a=T},c5Ni:function(N,Y,i){},cFMs:function(N,Y){N.exports="data:image/png;base64,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"},cRFk:function(N,Y,i){N.exports=i.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(N,Y,i){"use strict";i.r(Y);var M=i("+L6B"),E=i("2/Rp"),T=i("T2oS"),v=i("W9HT"),m=i("14J3"),y=i("BMrR"),O=i("2qtc"),g=i("kLXV"),e=i("jCWc"),f=i("kPKH"),r=i("qVdP"),c=i("jsC+"),n=i("k1fw"),a=i("lUTK"),o=i("BvKs"),l=i("9og8"),d=i("miYZ"),h=i("tsqr"),s=i("5Dmo"),u=i("3S7+"),w=i("tJVT"),x=i("PpiC"),b=i("Znn+"),P=i("ZTPi"),R=i("WmNS"),C=i.n(R),S=i("q1tI"),_=i.n(S),A=i("B6bo"),j=i.n(A),I=i("Ty5D"),k=i("9kvl"),J=i("BoS7"),G=i("Sdc0"),D=i("oBTY"),H=i("ozfa"),W=i("MJZm"),L=i("P5Jw"),z=i("5NDa"),ie=i("5rEg"),ce=i("y8nQ"),ue=i("Vl3Y"),xe=i("aBPH"),Te=i.n(xe),de=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ve=Be.user,xt=Be.dispatch,_t=Be.isRepository,At=Object(x.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Ot=Object(I.h)(),Ct=Object(I.i)(),Bt=Object(S.useState)({}),It=Object(w.a)(Bt,2),yt=It[0],zt=It[1],sn=Object(S.useRef)(),hn=ue.a.useForm(),un=Object(w.a)(hn,1),Kt=un[0],gn=Object(S.useState)(""),Rn=Object(w.a)(gn,2),Cn=Rn[0],an=Rn[1];Object(S.useEffect)(function(){At.visible&&Kt.resetFields()},[At.visible]),Object(S.useEffect)(function(){var Ft=sessionStorage.getItem("pathArray");if(Ft){var Nt=Ft.split(",").join("/"),pn=Nt.indexOf("/")===0?Nt.substr(1):Nt;an(pn)}},[]),Object(S.useEffect)(function(){var Ft,Nt;sn.current=(Ft=Ot.pathname)===null||Ft===void 0||((Nt=Ft.split("/"))===null||Nt===void 0)?void 0:Nt[2]},[]);var _n=function(){var Ft=Object(l.a)(C.a.mark(function Nt(){var pn,qn,Qt=arguments;return C.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return pn=Qt.length>0&&Qt[0]!==void 0?Qt[0]:{},Gn.next=3,xt({type:"shixunsDetail/addRepositoryFile",payload:{id:Ct.id,message:pn.commitMessage,content:"",path:(At.defaultPath?At.defaultPath+"/":"")+pn.path+"/"+(pn.file||".gitkeep"),secret_repository:_t?void 0:!0}});case 3:qn=Gn.sent,qn!=null&&qn.url&&(h.b.success("\u6DFB\u52A0\u6210\u529F"),At.onOK({path:(At.defaultPath?At.defaultPath+"/":"")+pn.path+"/"+(pn.file||".gitkeep"),name:pn.path.split("/")[pn.path.split("/").length-1]}),At.onClose());case 5:case"end":return Gn.stop()}},Nt)}));return function(){return Ft.apply(this,arguments)}}(),vn=function(){var Nt,pn;k.d.push("/shixuns/".concat(sn.current,"/").concat((Nt=Ot.pathname)===null||Nt===void 0||((pn=Nt.split("/"))===null||pn===void 0)?void 0:pn[3]).concat(Cn?"/master/shixun_show/".concat(Cn):""))};return _.a.createElement(g.a,{width:"60%",centered:!0,visible:At.visible,wrapClassName:Te.a.modal,onOk:function(){Kt.submit()},onCancel:At.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(ue.a,{className:"mt10",form:Kt,scrollToFirstError:!0,layout:"vertical",onFinish:_n,onChange:function(){var Nt,pn,qn,Qt,Vn=Object(n.a)({},Kt.getFieldsValue()),Gn=Vn==null||((Nt=Vn.path)===null||Nt===void 0)?void 0:Nt.split(""),xr=Vn==null||((pn=Vn.file)===null||pn===void 0)?void 0:pn.split("");Gn!=null&&(qn=Gn.filter(function(Sn){return Sn=="/"}))!==null&&qn!==void 0&&qn.length&&(Vn.path=Vn.path.substring(0,Vn.path.length-1)),xr!=null&&(Qt=xr.filter(function(Sn){return Sn=="/"}))!==null&&Qt!==void 0&&Qt.length&&(Vn.file=Vn.file.substring(0,Vn.path.length-1)),Kt.setFieldsValue(Object(n.a)({},Vn)),zt(Vn)}},_.a.createElement(ue.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},_.a.createElement(y.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},At.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.a.createElement(ue.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"}]},_.a.createElement(ie.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),_.a.createElement(ue.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},_.a.createElement(ie.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"})),_.a.createElement(ue.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"}]},_.a.createElement(ie.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"}))))))},ve=Object(k.a)(function(St){var Be=St.shixunsDetail,at=St.loading,it=St.globalSetting,Me=St.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(de),_e=i("7ahc"),le=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ve=Be.user,xt=Be.dispatch,_t=Be.isRepository,At=Object(x.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Ot=Object(I.h)(),Ct=Object(I.i)(),Bt=Object(S.useState)({}),It=Object(w.a)(Bt,2),yt=It[0],zt=It[1],sn=Object(S.useRef)(),hn=ue.a.useForm(),un=Object(w.a)(hn,1),Kt=un[0],gn=Object(S.useState)(""),Rn=Object(w.a)(gn,2),Cn=Rn[0],an=Rn[1];Object(S.useEffect)(function(){At.visible&&Kt.resetFields()},[At.visible]),Object(S.useEffect)(function(){var Ft=sessionStorage.getItem("pathArray");if(Ft){var Nt=Ft.split(",").join("/"),pn=Nt.indexOf("/")===0?Nt.substr(1):Nt;an(pn)}},[]),Object(S.useEffect)(function(){var Ft,Nt;sn.current=(Ft=Ot.pathname)===null||Ft===void 0||((Nt=Ft.split("/"))===null||Nt===void 0)?void 0:Nt[2]},[]);var _n=function(){var Ft=Object(l.a)(C.a.mark(function Nt(){var pn,qn,Qt=arguments;return C.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return pn=Qt.length>0&&Qt[0]!==void 0?Qt[0]:{},Gn.next=3,xt({type:"shixunsDetail/addRepositoryFile",payload:{id:Ct.id,message:pn.commitMessage,content:pn.codeMirror,path:(At.defaultPath?At.defaultPath+"/":"")+pn.path,secret_repository:_t?void 0:!0}});case 3:qn=Gn.sent,qn!=null&&qn.url&&(h.b.success("\u6DFB\u52A0\u6210\u529F"),At.onOK({path:(At.defaultPath?At.defaultPath+"/":"")+pn.path,name:pn.path.split("/")[pn.path.split("/").length-1]}),At.onClose());case 5:case"end":return Gn.stop()}},Nt)}));return function(){return Ft.apply(this,arguments)}}(),vn=function(){var Nt,pn;k.d.push("/shixuns/".concat(sn.current,"/").concat((Nt=Ot.pathname)===null||Nt===void 0||((pn=Nt.split("/"))===null||pn===void 0)?void 0:pn[3]).concat(Cn?"/master/shixun_show/".concat(Cn):""))};return _.a.createElement(g.a,{width:"60%",visible:At.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){Kt.submit()},onCancel:At.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(ue.a,{className:"mt10",form:Kt,scrollToFirstError:!0,layout:"vertical",onFinish:_n,onChange:function(){var Nt,pn,qn=Object(n.a)({},Kt.getFieldsValue()),Qt=qn==null||((Nt=qn.path)===null||Nt===void 0)?void 0:Nt.split("");(Qt==null||((pn=Qt.filter(function(Vn){return Vn=="/"}))===null||pn===void 0)?void 0:pn.length)>1&&(qn.path=qn.path.substring(0,qn.path.length-1)),Kt.setFieldsValue(Object(n.a)({},qn)),zt(qn)}},_.a.createElement(ue.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},_.a.createElement(y.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},At.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.a.createElement(ue.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ie.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),_.a.createElement(ue.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"}]},_.a.createElement(ie.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"})),_.a.createElement("div",{className:"mt10 mb20"},_.a.createElement(ue.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},_.a.createElement(_e.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"]}})))))))},ee=Object(k.a)(function(St){var Be=St.shixunsDetail,at=St.loading,it=St.globalSetting,Me=St.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(le),U=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ve=Be.user,xt=Be.dispatch,_t=Be.isRepository,At=Object(x.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Ot=Object(I.h)(),Ct=Object(I.i)(),Bt=Object(S.useState)({}),It=Object(w.a)(Bt,2),yt=It[0],zt=It[1],sn=Object(S.useRef)(),hn=ue.a.useForm(),un=Object(w.a)(hn,1),Kt=un[0],gn=Object(S.useState)(""),Rn=Object(w.a)(gn,2),Cn=Rn[0],an=Rn[1],_n=Object(S.useState)(""),vn=Object(w.a)(_n,2),Ft=vn[0],Nt=vn[1];Object(S.useEffect)(function(){At.visible&&Kt.resetFields()},[At.visible]),Object(S.useEffect)(function(){var Qt=At.defaultPath.split("/");Qt.length===1?(an(""),Nt(At.defaultPath)):(Nt(Qt.pop()),an(Qt.join("/")+"/"))},[At.defaultPath]),Object(S.useEffect)(function(){var Qt,Vn;sn.current=(Qt=Ot.pathname)===null||Qt===void 0||((Vn=Qt.split("/"))===null||Vn===void 0)?void 0:Vn[2]},[]);var pn=function(){var Qt=Object(l.a)(C.a.mark(function Vn(){var Gn,xr,Sn=arguments;return C.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Gn=Sn.length>0&&Sn[0]!==void 0?Sn[0]:{},Yt.next=3,xt({type:"shixunsDetail/moveGitFile",payload:{id:Ct.id,from:At.defaultPath,to:Cn+Gn.path,message:Gn.commitMessage||"".concat(At.defaultPath," rename to ").concat(Cn).concat(Gn.path," "),secret_repository:_t}});case 3:xr=Yt.sent,(xr==null?void 0:xr.status)===0&&(h.b.success("\u6DFB\u52A0\u6210\u529F"),At.onOK({path:Gn.path,name:Gn.path}),At.onClose());case 5:case"end":return Yt.stop()}},Vn)}));return function(){return Qt.apply(this,arguments)}}(),qn=function(){var Vn,Gn;k.d.push("/shixuns/".concat(sn.current,"/").concat((Vn=Ot.pathname)===null||Vn===void 0||((Gn=Vn.split("/"))===null||Gn===void 0)?void 0:Gn[3]).concat(Cn?"/master/shixun_show/".concat(Cn):""))};return _.a.createElement(g.a,{width:"40%",visible:At.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){Kt.submit()},onCancel:At.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(ue.a,{className:"mt10",form:Kt,scrollToFirstError:!0,layout:"vertical",onFinish:pn,onChange:function(){var Vn,Gn,xr=Object(n.a)({},Kt.getFieldsValue()),Sn=xr==null||((Vn=xr.path)===null||Vn===void 0)?void 0:Vn.split("");(Sn==null||((Gn=Sn.filter(function(Pn){return Pn=="/"}))===null||Gn===void 0)?void 0:Gn.length)>1&&(xr.path=xr.path.substring(0,xr.path.length-1)),Kt.setFieldsValue(Object(n.a)({},xr)),zt(xr)}},_.a.createElement(ue.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},_.a.createElement(y.a,null,_.a.createElement(f.a,{flex:"1"},_.a.createElement(ue.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ie.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:Ft}))))),_.a.createElement(ue.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},_.a.createElement(ie.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(At.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},K=Object(k.a)(function(St){var Be=St.shixunsDetail,at=St.loading,it=St.globalSetting,Me=St.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(U),X=i("DZo9"),Q=i("8z0m"),te=i("m3rI"),ae=i("8j3D"),re=i("RC3E"),$=i.n(re),Z=Q.a.Dragger,fe=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ve=Be.user,xt=Be.dispatch,_t=Be.isRepository,At=Object(x.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Ot=Object(I.h)(),Ct=Object(I.i)(),Bt=Object(S.useState)({}),It=Object(w.a)(Bt,2),yt=It[0],zt=It[1],sn=Object(S.useRef)(),hn=ue.a.useForm(),un=Object(w.a)(hn,1),Kt=un[0],gn=Object(S.useState)([]),Rn=Object(w.a)(gn,2),Cn=Rn[0],an=Rn[1],_n=Object(S.useState)(),vn=Object(w.a)(_n,2),Ft=vn[0],Nt=vn[1],pn;Object(S.useEffect)(function(){At.visible&&(Kt.resetFields(),an([]))},[At.visible]),Object(S.useEffect)(function(){sn.current=Ct.id},[]),Object(S.useEffect)(function(){var Sn=sessionStorage.getItem("pathArray");if(Sn){var Pn=Sn.split(",").join("/"),Yt=Pn.indexOf("/")===0?Pn.substr(1):Pn;Nt(Yt)}},[]);var qn=function(Pn){if(pn=Pn.file.name,Pn.file.status==="done"||Pn.file.status==="uploading"){var Yt,Hr,ar;if(an(Pn.fileList),!Pn.file.response)return;if(((Yt=Pn.file.response)===null||Yt===void 0?void 0:Yt.status)===0){h.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}an(Cn.filter(function(ma){return ma.uid!==Pn.file.uid})),((Hr=Pn.file.response)===null||Hr===void 0?void 0:Hr.message)&&h.b.info((ar=Pn.file.response)===null||ar===void 0?void 0:ar.message)}},Qt=function(){var Sn=Object(l.a)(C.a.mark(function Pn(Yt){var Hr;return C.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:if(Yt.response){ma.next=3;break}return h.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ma.abrupt("return");case 3:return ma.next=5,xt({type:"shixunsDetail/deleteGitFile",payload:{id:Ct.id,path:Ft?"".concat(Ft,"/").concat(Yt.name):Yt.name,message:Kt.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(Ft?"".concat(Ft,"/").concat(Yt.name):Yt.name),secret_repository:_t?null:!0}});case 5:Hr=ma.sent,Hr.status===0&&(an(Cn.filter(function(Br){return Br.uid!==Yt.uid})),h.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return ma.stop()}},Pn)}));return function(Yt){return Sn.apply(this,arguments)}}(),Vn={height:300,multiple:!0,withCredentials:!0,data:function(){var Sn=Object(l.a)(C.a.mark(function Yt(){return C.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.abrupt("return",new Promise(function(){var ma=Object(l.a)(C.a.mark(function Br(Na,Xa){return C.a.wrap(function(Zr){for(;;)switch(Zr.prev=Zr.next){case 0:setTimeout(Object(l.a)(C.a.mark(function Sr(){var Oa,Ma;return C.a.wrap(function(ca){for(;;)switch(ca.prev=ca.next){case 0:return ca.next=2,Kt.getFieldsValue();case 2:Oa=ca.sent,Ma=Object(n.a)(Object(n.a)({},{path:At.defaultPath?At.defaultPath:"",message:yt.commitMessage||"\u4E0A\u4F20\u4E86".concat(pn)}),_t?{}:{secret_repository:!0}),Na(Ma);case 5:case"end":return ca.stop()}},Sr)})),200);case 1:case"end":return Zr.stop()}},Br)}));return function(Br,Na){return ma.apply(this,arguments)}}()));case 1:case"end":return ar.stop()}},Yt)}));function Pn(){return Sn.apply(this,arguments)}return Pn}(),fileList:Cn,method:"post",action:"".concat(te.a.API_SERVER,"/api/shixuns/").concat(sn.current,"/upload_git_file.json"),onChange:qn,onRemove:Qt,beforeUpload:function(Pn){pn=Pn.name}},Gn=function(){var Sn=Object(l.a)(C.a.mark(function Pn(Yt){return C.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.next=2,Kt.validateFields();case 2:At.onClose(),At.onOK({path:At.defaultPath}),xr();case 5:case"end":return ar.stop()}},Pn)}));return function(Yt){return Sn.apply(this,arguments)}}(),xr=function(){var Pn,Yt;k.d.push("/shixuns/".concat(sn.current,"/").concat((Pn=Ot.pathname)===null||Pn===void 0||((Yt=Pn.split("/"))===null||Yt===void 0)?void 0:Yt[3]).concat(Ft?"/master/shixun_show/".concat(Ft):""))};return _.a.createElement(g.a,{visible:At.visible,onOk:Gn,centered:!0,onCancel:At.onClose,width:"70%"},_.a.createElement("section",{className:$.a.bg},_.a.createElement("div",{className:$.a.wrap},_.a.createElement("div",{className:$.a.title},"\u4E0A\u4F20\u6587\u4EF6"),_.a.createElement(ue.a,{className:"mt10",form:Kt,scrollToFirstError:!0,layout:"vertical",onFinish:Gn,onValuesChange:function(){return zt(Object(n.a)({},Kt.getFieldsValue()))}},_.a.createElement(ue.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"}]},_.a.createElement(ie.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),_.a.createElement(ue.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},_.a.createElement(Z,Vn,_.a.createElement("div",null,_.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat($.a.colorBlue)})),_.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",_.a.createElement("span",{className:"".concat($.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),_.a.createElement(ae.a,{onFinish:function(Pn){return Nt(Pn)}})))},me=Object(k.a)(function(St){var Be=St.shixunsDetail,at=St.loading,it=St.globalSetting,Me=St.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(fe),Oe=i("Bbdw"),He=i.n(Oe),Qe=i("HpfO"),ot=i.n(Qe),st=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ve=Be.dispatch,xt=Be.title,_t=Be.pathList,At=_t===void 0?[]:_t,Ot=Be.showInputPath,Ct=Ot===void 0?!1:Ot,Bt=Be.isMergeSelectFile,It=Bt===void 0?!1:Bt,yt=Be.onFinish,zt=yt===void 0?function(){}:yt,sn=ue.a.useForm(),hn=Object(w.a)(sn,1),un=hn[0],Kt=Object(I.i)(),gn=Object(I.h)(),Rn=Object(S.useRef)(),Cn=Object(S.useState)(""),an=Object(w.a)(Cn,2),_n=an[0],vn=an[1],Ft=Object(S.useState)(""),Nt=Object(w.a)(Ft,2),pn=Nt[0],qn=Nt[1],Qt=Object(S.useState)([]),Vn=Object(w.a)(Qt,2),Gn=Vn[0],xr=Vn[1],Sn=Object(S.useState)([]),Pn=Object(w.a)(Sn,2),Yt=Pn[0],Hr=Pn[1];Object(S.useEffect)(function(){var ua,Zr;Rn.current=((ua=gn.pathname)===null||ua===void 0||((Zr=ua.split("/"))===null||Zr===void 0)?void 0:Zr[3])==="repository"},[]),Object(S.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var ua=At.join("/"),Zr=[];At.map(function(Sr,Oa){Oa===0?Zr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Sr),path:ua}):Zr.push({val:"/".concat(Sr),path:ua})}),xr(Zr),vn(ua),qn(ua),ar(ua)},[at.actionTabs.key]);var ar=function(){var ua=Object(l.a)(C.a.mark(function Zr(Sr){var Oa;return C.a.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return Sa.next=2,Ve({type:Rn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Kt.id,path:Sr}});case 2:Oa=Sa.sent,Oa&&Hr(Oa.trees||[]);case 4:case"end":return Sa.stop()}},Zr)}));return function(Sr){return ua.apply(this,arguments)}}(),ma=function(Zr){var Sr=_n;Zr.type==="tree"&&(Gn.length?Gn.push({val:"/".concat(Zr.name),path:Zr.name}):Gn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Zr.name),path:Zr.name}),xr(Gn),Sr=_n?"".concat(_n,"/").concat(Zr.name):Zr.name,vn(Sr)),ar(Sr)},Br=function(Zr,Sr){var Oa=Gn.filter(function(Sa,ca){return ca<=Sr});xr(Oa);var Ma=Oa.filter(function(Sa,ca){return ca!==0}).map(function(Sa){return Sa.val}).join("").substr(1);vn(Ma),ar(Ma)},Na=function(){var ua=Object(l.a)(C.a.mark(function Zr(){var Sr,Oa,Ma;return C.a.wrap(function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(Sr=un==null?void 0:un.getFieldsValue(),Oa=_n?"".concat(_n).concat(Sr!=null&&Sr.name?"/".concat(Sr==null?void 0:Sr.name):""):Sr==null?void 0:Sr.name,!It){ca.next=6;break}return zt(Oa),Xa(),ca.abrupt("return");case 6:if(!Ct){ca.next=16;break}return ca.next=9,un.validateFields();case 9:return ca.next=11,Ve({type:"shixunsDetail/uploadGitFolder",payload:Object(n.a)(Object(n.a)({},{id:Kt.id,path:Oa}),Rn.current?{}:{secret_repository:!0})});case 11:Ma=ca.sent,zt(pn),Ma.status===0&&h.b.info("\u65B0\u5EFA\u6210\u529F"),ca.next=18;break;case 16:zt(Oa),h.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Xa();case 19:case"end":return ca.stop()}},Zr)}));return function(){return ua.apply(this,arguments)}}(),Xa=function(){Ve({type:"shixunsDetail/setActionTabs",payload:{}}),un.resetFields()};return _.a.createElement(g.a,{centered:!0,title:xt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:Na,onCancel:Xa},_.a.createElement("div",{className:ot.a.wrap},_.a.createElement("div",{className:ot.a.content},_.a.createElement("div",{className:ot.a.mainPathWrap},!!(Gn!=null&&Gn.length)&&Gn.map(function(ua,Zr){return _.a.createElement("a",{key:Zr,onClick:function(){return Br(ua,Zr)}},ua.val)})),!!(Yt!=null&&Yt.length)&&Yt.map(function(ua,Zr){return ua.type==="tree"&&_.a.createElement("a",{key:Zr,onClick:function(){return ma(ua)}},_.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ot.a.colorBlue)}),ua.name)})),_.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),_.a.createElement("div",{className:"mt5 mb5"},_n),Ct&&_.a.createElement(ue.a,{form:un,scrollToFirstError:!0,className:"mt20"},_.a.createElement(ue.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ie.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},ct=Object(k.a)(function(St){var Be=St.shixunsDetail,at=St.loading,it=St.globalSetting;return{shixunsDetail:Be,globalSetting:it,loading:at.models.index}})(st),dt=i("GZ0F"),Xe=i("8Skl"),ke=i("HBuW"),lt=i("1vsH"),Mt=i("NLgs"),Ce=i("lzim"),he=W.a.DirectoryTree,be=function(Be){var at,it,Me,Ve,xt,_t,At,Ot=Be.shixunsDetail,Ct=Be.globalSetting,Bt=Be.loading,It=Be.user,yt=Be.activeKey,zt=Be.dispatch,sn=Be.practiceSetting,hn=Be.isRepository,un=Be.treeData,Kt=Be.setTreeData,gn=Object(x.a)(Be,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Rn=Object(I.i)(),Cn=Object(I.h)(),an=Object(S.useState)(),_n=Object(w.a)(an,2),vn=_n[0],Ft=_n[1],Nt=Object(S.useState)(!1),pn=Object(w.a)(Nt,2),qn=pn[0],Qt=pn[1],Vn=Object(S.useState)(!1),Gn=Object(w.a)(Vn,2),xr=Gn[0],Sn=Gn[1],Pn=Object(S.useState)(!1),Yt=Object(w.a)(Pn,2),Hr=Yt[0],ar=Yt[1],ma=Object(S.useState)(!1),Br=Object(w.a)(ma,2),Na=Br[0],Xa=Br[1],ua=Object(S.useState)(""),Zr=Object(w.a)(ua,2),Sr=Zr[0],Oa=Zr[1],Ma=Object(S.useState)([]),Sa=Object(w.a)(Ma,2),ca=Sa[0],ka=Sa[1],Ga=Object(S.useState)([]),La=Object(w.a)(Ga,2),Za=La[0],Ia=La[1],xa=Object(S.useState)([]),Fa=Object(w.a)(xa,2),li=Fa[0],yi=Fa[1],ga=Object(S.useState)(!1),va=Object(w.a)(ga,2),ya=va[0],ye=va[1],rt=Object(S.useState)(),Et=Object(w.a)(rt,2),vt=Et[0],Wt=Et[1],Lt=Object(S.useState)(),Zt=Object(w.a)(Lt,2),dn=Zt[0],En=Zt[1],wn=Object(S.useState)(""),Hn=Object(w.a)(wn,2),jn=Hn[0],nn=Hn[1],Mn=Object(S.useState)(),mn=Object(w.a)(Mn,2),Wn=mn[0],Dn=mn[1],tr=Object(S.useState)(!1),sr=Object(w.a)(tr,2),Ir=sr[0],oa=sr[1];Object(S.useEffect)(function(){Kt([]),on(""),localStorage.warehouseHideTip||ye(!0)},[Cn.pathname,hn]);var Cr=function(){var Xn=Object(l.a)(C.a.mark(function Ut(){var en,Vt,Un=arguments;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return en=Un.length>0&&Un[0]!==void 0?Un[0]:"",ir.next=3,Object(ke.Hb)({id:Rn.id,secret_dir_path:en});case 3:Vt=ir.sent,Vt&&Dn(en);case 5:case"end":return ir.stop()}},Ut)}));return function(){return Xn.apply(this,arguments)}}(),Or=function(Ut){var en;return _.a.createElement(o.a,{className:He.a.menu,onClick:function(Un){Oa(Ut.path||"");switch(Un.key){case"1":Object(lt.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Qt(!0);break;case"2":Object(lt.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),ar(!0);break;case"3":Object(lt.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Xa(!0);break;case"4":Object(lt.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),Sn(!0);break;case"5":Object(lt.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Yn(Ut.path,Ut.name,Ut);break;case"6":Object(lt.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Jn(Ut);break}}},(Ut.type==="topTree"||Ut.type==="tree")&&_.a.createElement(o.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Ut.type==="topTree"||Ut.type==="tree")&&_.a.createElement(o.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Ut.type==="topTree"||Ut.type==="tree")&&_.a.createElement(o.a.Item,{key:"3"},"\u4E0A\u4F20"),Ut.type!=="topTree"&&Ut.type!=="tree"&&(Ot==null||((en=Ot.detail)===null||en===void 0)?void 0:en.public)<2&&_.a.createElement(o.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Ut.type!=="topTree"&&_.a.createElement(L.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(hn?"":"secret/").concat(Ut==null?void 0:Ut.path),onCopy:function(){return h.b.success("\u590D\u5236\u6210\u529F")}},_.a.createElement(o.a.Item,{key:"6"},_.a.createElement(_.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Ut.type!=="topTree"&&_.a.createElement(o.a.Item,{key:"5"},"\u5220\u9664"))},ea=function(Ut,en){return Ut.map(function(Vt){return en==""?Vt.path=en+Vt.name:Vt.path=en+"/"+Vt.name,Vt.title=_.a.createElement(y.a,{className:"font14"},_.a.createElement(f.a,{flex:"1"},_.a.createElement(y.a,null,_.a.createElement(f.a,{flex:"20px"},Vt.type==="blob"&&_.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),_.a.createElement(f.a,{flex:"1"},_.a.createElement("span",{className:" multi_ellipsis1"},Vt.name)))),_.a.createElement(f.a,null,(Vt.type==="blob"||Vt.type==="tree")&&_.a.createElement(c.a,{overlay:Or(Vt),className:He.a.ellipsis},_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Vt.disableCheckbox=vn&&vn!==Vt.name,Vt.className=Vt.type==="tree"?He.a.pl23:"",Vt.checkable=Vt.type!=="tree",Vt.isLeaf=Vt.type!=="tree",Vt.children=Vt.type==="tree"&&[],Vt.key=Vt.path,Vt})},Nn=function(Ut){zt({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Ut}})},br=function(){var Xn=Object(l.a)(C.a.mark(function Ut(en,Vt){var Un;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return Un=en.split("/"),ir.next=3,on(Sr);case 3:setTimeout(function(){Nn(en),ca=[Un[0]||""],Za=[en],Ia(Object(D.a)(Za)),ka(Object(D.a)(ca))},150);case 4:case"end":return ir.stop()}},Ut)}));return function(en,Vt){return Xn.apply(this,arguments)}}(),$t=function(Ut,en){if(en=="")un=Object(D.a)(Ut),Kt(Object(D.a)(Ut));else{var Vt=jt(un,en,Ut);un=Vt,Kt(Object(D.a)(Vt))}};function jt(Xn,Ut,en){return Xn.map(function(Vt){return Vt.key===Ut?(Vt.children=Object(D.a)(en),Object(n.a)({},Vt)):Vt.children?Object(n.a)(Object(n.a)({},Vt),{},{children:jt(Vt.children,Ut,en)}):Vt})}var on=function(){var Xn=Object(l.a)(C.a.mark(function Ut(){var en,Vt,Un,$n,ir,Kn=arguments;return C.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return en=Kn.length>0&&Kn[0]!==void 0?Kn[0]:"",or.next=3,zt({type:hn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Rn.id,path:en}});case 3:return Vt=or.sent,Vt&&((Un=Vt.trees)!==null&&Un!==void 0&&Un.length?(ir=ea(Object(D.a)(Vt.trees),en),$t(ir,en),yi(Vt.trees||[]),En(en||""),console.log("handleGetRepository:",ir,en),setTimeout(function(){return console.log(un,Vt.trees,en,999999)},2e3)):en==""&&Kt([]),Wt((($n=Vt.commits)===null||$n===void 0?void 0:$n[0])||{})),or.abrupt("return",Vt);case 6:case"end":return or.stop()}},Ut)}));return function(){return Xn.apply(this,arguments)}}(),An=function(){var Xn=Object(l.a)(C.a.mark(function Ut(en){return C.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return Un.abrupt("return",new Promise(function(){var $n=Object(l.a)(C.a.mark(function ir(Kn,rr){return C.a.wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:return en.children.length&&Kn(),nn(en.path),ta.next=4,on(en.path);case 4:Kn();case 5:case"end":return ta.stop()}},ir)}));return function(ir,Kn){return $n.apply(this,arguments)}}()));case 1:case"end":return Un.stop()}},Ut)}));return function(en){return Xn.apply(this,arguments)}}(),Tn=function(){var Xn=Object(l.a)(C.a.mark(function Ut(en,Vt){var Un,$n;return C.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(console.log("handleSelectTree",en,Vt.nativeEvent.target.nodeName,Vt),Un=function(){Nn(Vt.node.path),en=[Vt.node.path],Ia(Object(D.a)(en))},!(Vt.nativeEvent.target.nodeName==="svg"||Vt.nativeEvent.target.nodeName==="LI"||Vt.nativeEvent.target.nodeName==="I")){Kn.next=4;break}return Kn.abrupt("return");case 4:Vt.node.type==="blob"&&(sn!=null&&($n=sn.sideBar)!==null&&$n!==void 0&&$n.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(){Un(),zt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Un());case 5:case"end":return Kn.stop()}},Ut)}));return function(en,Vt){return Xn.apply(this,arguments)}}(),Yn=function(Ut,en,Vt){g.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Vt.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var Un=Object(l.a)(C.a.mark(function ir(){var Kn,rr,or;return C.a.wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:return wr.next=2,zt({type:"shixunsDetail/deleteGitFile",payload:{id:Rn.id,path:Ut,message:"\u5220\u9664".concat(Ut),secret_repository:hn?null:!0}});case 2:if(Kn=wr.sent,rr=Ut.split("/"),!((Kn==null?void 0:Kn.status)===0)){wr.next=20;break}return h.b.info("\u5220\u9664\u6210\u529F"),rr.splice(rr.length-1,1),wr.next=9,on(rr.length>1?rr.join("/"):"");case 9:if(or=wr.sent,!(or!=null&&or.trees)){wr.next=13;break}wr.next=16;break;case 13:return rr.splice(rr.length-1,1),wr.next=16,on(rr.length>1?rr.join("/"):"");case 16:return Nn(""),wr.abrupt("return",!0);case 20:(Kn==null?void 0:Kn.status)===-3&&g.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:_.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Ut,"\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(Rn.id,"/edit/").concat(Kn==null?void 0:Kn.message,"/tab=2")}});case 21:case"end":return wr.stop()}},ir)}));function $n(){return Un.apply(this,arguments)}return $n}()})},Jn=function(Ut){console.log(Ut,"item")},kn=function(){var Xn=Object(l.a)(C.a.mark(function Ut(en,Vt){return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(console.log("handleExpand",Vt),!(Vt.nativeEvent.target.nodeName==="svg"||Vt.nativeEvent.target.nodeName==="path"||Vt.nativeEvent.target.nodeName==="LI")){$n.next=5;break}return $n.abrupt("return",!0);case 5:return $n.next=7,An(Vt.node);case 7:ca.includes(Vt.node.path)?ca.splice(ca.indexOf(Vt.node.path),1):ca.push(Vt.node.path);case 8:ka(Object(D.a)(ca));case 9:case"end":return $n.stop()}},Ut)}));return function(en,Vt){return Xn.apply(this,arguments)}}(),Ar=function(){ye(!1),localStorage.warehouseHideTip=!0},ur=function(){var Xn=Object(l.a)(C.a.mark(function Ut(en){var Vt,Un,$n,ir,Kn;return C.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:$n="",or.t0=hn,or.next=or.t0===!0?4:or.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",ir="\u5F00\u542F",Kn="\u4E0D\u5F00\u542F",Un=_.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),or.abrupt("break",11);case 9:return Ot!=null&&(Vt=Ot.detail)!==null&&Vt!==void 0&&Vt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",ir="\u786E\u5B9A",Kn="\u53D6\u6D88",Un=_.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):($n="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",ir="\u4E0D\u4F7F\u7528",Kn="\u4F7F\u7528",Un=_.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),or.abrupt("break",11);case 11:if(!(!hn&&Object(Mt.b)(zt,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){or.next=13;break}return or.abrupt("return");case 13:g.a.confirm({title:$n,okText:ir,cancelText:Kn,content:Un,onOk:function(){var wr;Object(lt.db)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!hn&&!(Ot!=null&&(wr=Ot.detail)!==null&&wr!==void 0&&wr.secret_repository)||yr(en)},onCancel:function(){var wr;!hn&&!(Ot!=null&&(wr=Ot.detail)!==null&&wr!==void 0&&wr.secret_repository)&&yr(en)}});case 14:case"end":return or.stop()}},Ut)}));return function(en){return Xn.apply(this,arguments)}}(),yr=function(){var Xn=Object(l.a)(C.a.mark(function Ut(en){return C.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!hn){Un.next=6;break}return Un.next=3,Object(ke.r)(Object(n.a)({},Rn));case 3:zt({type:"practiceSetting/getCommonData",payload:Object(n.a)({},Rn)}),Un.next=8;break;case 6:return Un.next=8,Object(ke.t)(Object(n.a)(Object(n.a)({},Rn),{},{is_secret_repository:en}));case 8:on(),zt({type:"shixunsDetail/getShixunsDetail",payload:{id:Rn.id}});case 10:case"end":return Un.stop()}},Ut)}));return function(en){return Xn.apply(this,arguments)}}(),vr=function(Ut){console.log(Ut)},Dr=function(){var Xn=Object(l.a)(C.a.mark(function Ut(en){var Vt,Un,$n,ir,Kn,rr,or,ta,wr,_r,qr;return C.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if(console.log(en),Vt=en.node.key,Un=en.dragNode.key,$n=en.node.pos.split("-"),ir=en.dropPosition-Number($n[$n.length-1]),!(en.dragNode.type==="tree")){mr.next=8;break}return h.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),mr.abrupt("return");case 8:if(!(en.node.type!=="tree")){mr.next=11;break}return h.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),mr.abrupt("return");case 11:return mr.next=13,zt({type:"shixunsDetail/moveGitFile",payload:{id:Rn.id,from:en.dragNode.path,to:en.node.path+"/"+en.dragNode.name,message:"".concat(en.dragNode.path," move to ").concat(en.node.path+"/"+en.dragNode.name," ")}});case 13:if(Kn=mr.sent,!(Kn.status===0)){mr.next=26;break}return Nn(""),mr.next=18,on("");case 18:rr=0;case 19:if(!(rr<ca.length)){mr.next=26;break}if(!(ca[rr]!="")){mr.next=23;break}return mr.next=23,on(ca[rr]);case 23:rr++,mr.next=19;break;case 26:return mr.abrupt("return");case 32:case"end":return mr.stop()}},Ut)}));return function(en){return Xn.apply(this,arguments)}}();return _.a.createElement("section",{className:He.a.bg},_.a.createElement("div",{className:He.a.contentbg},_.a.createElement("div",{className:He.a.wrap},_.a.createElement(y.a,{className:He.a.gitCode},_.a.createElement(f.a,{flex:"1"},_.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),hn?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",_.a.createElement(G.a,{className:hn&&Ot!==null&&Ot!==void 0&&(at=Ot.detail)!==null&&at!==void 0&&at.init_repository?"hide":"ml10",checked:hn?Ot==null||((Me=Ot.detail)===null||Me===void 0)?void 0:Me.init_repository:Ot==null||((it=Ot.detail)===null||it===void 0)?void 0:it.secret_repository,checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED",onChange:ur})),_.a.createElement(f.a,null,_.a.createElement(c.a,{overlay:Or({type:"topTree"}),className:"current"},_.a.createElement(u.a,{visible:ya,title:_.a.createElement("div",{className:"font16"},_.a.createElement(dt.a,{style:{position:"relative",left:-35},onClick:function(){return Ar()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",_.a.createElement("span",{onClick:function(){return Ar()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:He.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},hn&&(Ot==null||((Ve=Ot.detail)===null||Ve===void 0)?void 0:Ve.init_repository)&&_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!hn&&(Ot==null||((xt=Ot.detail)===null||xt===void 0)?void 0:xt.secret_repository)&&_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!un.length&&!hn&&_.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},_.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")),un.length?_.a.createElement(_.a.Fragment,null,_.a.createElement("div",{className:He.a.content},yt==="1"&&_.a.createElement("div",{className:He.a.tips},"\u63D0\u793A\uFF1A",_.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'),_.a.createElement(he,{disabled:!!Bt.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:un,switcherIcon:_.a.createElement(Xe.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:kn,expandedKeys:ca,selectedKeys:Za,onSelect:Tn,draggable:!0,onDragEnter:vr,onDrop:Dr,allowDrop:function(Ut){var en=Ut.dropNode,Vt=Ut.dropPosition;return!1}}))):"",!un.length&&hn&&(Ot==null||((_t=Ot.detail)===null||_t===void 0)?void 0:_t.init_repository)&&_.a.createElement(Ee,null),!un.length&&!hn&&(Ot==null||((At=Ot.detail)===null||At===void 0)?void 0:At.secret_repository)&&_.a.createElement(Ee,null))),_.a.createElement(K,{visible:xr,defaultPath:Sr,onClose:function(){return Sn(!1)},isRepository:!hn,onOK:function(){var Xn=Object(l.a)(C.a.mark(function Ut(en){var Vt;return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Vt=Sr.split("/"),Vt.pop(),$n.next=4,on(Vt.join("/"));case 4:Nn("");case 5:case"end":return $n.stop()}},Ut)}));return function(Ut){return Xn.apply(this,arguments)}}()}),_.a.createElement(ee,{visible:qn,defaultPath:Sr,onClose:function(){return Qt(!1)},isRepository:hn,onOK:function(Ut){br(Ut.path,Ut.name)}}),_.a.createElement(ve,{visible:Hr,defaultPath:Sr,onClose:function(){return ar(!1)},isRepository:hn,onOK:function(Ut){br(Ut.path,Ut.name)}}),_.a.createElement(me,{defaultPath:Sr,visible:Na,isRepository:hn,onClose:function(){return Xa(!1)},onOK:function(){var Xn=Object(l.a)(C.a.mark(function Ut(en){var Vt;return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return Vt=Sr.split("/"),$n.next=3,on(Sr);case 3:ca=[Vt[0]||""],Za=[Sr],Ia(Object(D.a)(Za)),ka(Object(D.a)(ca));case 7:case"end":return $n.stop()}},Ut)}));return function(Ut){return Xn.apply(this,arguments)}}()}),_.a.createElement(ct,{pathList:Sr==null?void 0:Sr.split("/"),showInputPath:!0,isMergeSelectFile:Ir,onFinish:function(Ut){Ir?Cr(Ut):on(Ut),oa(!1)}}))},Ee=function(){return _.a.createElement("div",{className:"mt20 pb50 ".concat(He.a.nodata)},_.a.createElement("div",{className:He.a.headLeft},"\u63D0\u793A\uFF1A",_.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",_.a.createElement("br",null)),_.a.createElement("img",{width:"100%",src:Ce.u}))},Ne=Object(k.a)(function(St){var Be=St.shixunsDetail,at=St.loading,it=St.globalSetting,Me=St.practiceSetting,Ve=St.user;return{shixunsDetail:Be,globalSetting:it,user:Ve,practiceSetting:Me,loading:at}})(be),we=i("/zsF"),Ae=i("PArb"),Ue=i("yDYP"),We=i.n(Ue),Je=function(Be){var at=Be.shixunsDetail,it=Be.globalSetting,Me=Be.loading,Ve=Be.user,xt=Be.dispatch,_t=Be.isRepository,At=Object(x.a)(Be,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Ot=Object(I.i)(),Ct=Object(S.useState)([]),Bt=Object(w.a)(Ct,2),It=Bt[0],yt=Bt[1];Object(S.useEffect)(function(){zt()},[_t]);var zt=function(){var sn=Object(l.a)(C.a.mark(function hn(){var un;return C.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,xt({type:"shixunsDetail/getRepositoryCommit",payload:{id:Ot.id,secret_repository:_t?void 0:!0}});case 2:un=gn.sent,un&&yt(un.commits||[]);case 4:case"end":return gn.stop()}},hn)}));return function(){return sn.apply(this,arguments)}}();return _.a.createElement(_.a.Fragment,null,It==""&&_.a.createElement("div",{className:We.a.empty},_.a.createElement("img",{src:Ce.k,width:"258"}),_.a.createElement("br",null),_.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),It!=""&&_.a.createElement("section",{className:We.a.bg},_.a.createElement("div",{className:We.a.wrap},_.a.createElement("div",{className:We.a.content},It==null?void 0:It.map(function(sn){var hn,un;return _.a.createElement("div",null,_.a.createElement(y.a,{align:"middle",className:"c-white font16"},_.a.createElement(f.a,null,sn.title)),_.a.createElement(y.a,{align:"middle",className:"mt20 "},_.a.createElement(f.a,null,_.a.createElement("img",{className:We.a.imageUrl,src:te.a.IMG_SERVER+"/"+((hn=sn.author)===null||hn===void 0?void 0:hn.image_url)})),_.a.createElement(f.a,{className:We.a.blueLight},_.a.createElement("span",{className:"ml20"},(un=sn.author)===null||un===void 0?void 0:un.username)),_.a.createElement(f.a,null,_.a.createElement("span",{className:"ml20 ".concat(We.a.blueLight)},"\u63D0\u4EA4\u4E8E"),_.a.createElement("span",{className:"ml20 ".concat(We.a.blueLight)},sn.time))),_.a.createElement(Ae.a,{className:We.a.divider}))})))))},$e=Object(k.a)(function(St){var Be=St.shixunsDetail,at=St.loading,it=St.globalSetting,Me=St.user;return{shixunsDetail:Be,globalSetting:it,user:Me,loading:at.models.index}})(Je),pt=i("p5ED"),Jt=P.a.TabPane,fn=function(Be){var at,it,Me,Ve,xt,_t,At,Ot,Ct,Bt,It,yt,zt,sn,hn,un,Kt,gn,Rn,Cn=Be.globalSetting,an=Be.loading,_n=Be.dispatch,vn=Be.practiceSetting,Ft=Be.shixunsDetail,Nt=Object(x.a)(Be,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),pn=Object(S.useState)("1"),qn=Object(w.a)(pn,2),Qt=qn[0],Vn=qn[1],Gn=Object(S.useState)("1"),xr=Object(w.a)(Gn,2),Sn=xr[0],Pn=xr[1],Yt=Object(S.useState)(),Hr=Object(w.a)(Yt,2),ar=Hr[0],ma=Hr[1],Br=Object(S.useRef)(),Na=Object(S.useState)(!0),Xa=Object(w.a)(Na,2),ua=Xa[0],Zr=Xa[1],Sr=Object(S.useState)(["2","1"]),Oa=Object(w.a)(Sr,2),Ma=Oa[0],Sa=Oa[1],ca=Object(S.useState)([]),ka=Object(w.a)(ca,2),Ga=ka[0],La=ka[1],Za=Object(S.useRef)(),Ia=Object(I.i)(),xa=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:_.a.createElement("span",null,_.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),_.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"},_.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(S.useEffect)(function(){try{var ga,va,ya,ye,rt;if(!!(Ft!=null&&(ga=Ft.fileContent)!==null&&ga!==void 0&&(va=ga.content)!==null&&va!==void 0&&(ya=va.content)!==null&&ya!==void 0&&ya.length)||(Ft==null||((ye=Ft.fileContent)===null||ye===void 0||((rt=ye.content)===null||rt===void 0))?void 0:rt.content)==""){var Et;if((Ft==null||((Et=Ft.fileContent)===null||Et===void 0)?void 0:Et.file_type)==="txt"){var vt,Wt,Lt,Zt;Br.current=window.decodeURIComponent(escape(window.atob(Ft==null||((vt=Ft.fileContent)===null||vt===void 0||((Wt=vt.content)===null||Wt===void 0))?void 0:Wt.content))),ar=window.decodeURIComponent(escape(window.atob(Ft==null||((Lt=Ft.fileContent)===null||Lt===void 0||((Zt=Lt.content)===null||Zt===void 0))?void 0:Zt.content))),ma(ar)}else{var dn,En,wn,Hn;Br.current=Ft==null||((dn=Ft.fileContent)===null||dn===void 0||((En=dn.content)===null||En===void 0))?void 0:En.content,ar=Ft==null||((wn=Ft.fileContent)===null||wn===void 0||((Hn=wn.content)===null||Hn===void 0))?void 0:Hn.content,ma(ar)}}}catch(Wn){var jn,nn,Mn,mn;Br.current=window.atob(Ft==null||((jn=Ft.fileContent)===null||jn===void 0||((nn=jn.content)===null||nn===void 0))?void 0:nn.content),ar=window.atob(Ft==null||((Mn=Ft.fileContent)===null||Mn===void 0||((mn=Mn.content)===null||mn===void 0))?void 0:mn.content),ma(ar),h.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}console.log("codeMirrorSourceValue1212:12",Ft.fileContent.content)},[Ft==null||((at=Ft.fileContent)===null||at===void 0)?void 0:at.content]),Object(S.useEffect)(function(){var ga,va=vn==null||((ga=vn.sideBar)===null||ga===void 0)?void 0:ga.selectPath.split("/");Sa(va)},[vn==null||((it=vn.sideBar)===null||it===void 0)?void 0:it.selectPath]);var Fa=function(va){ma(va);var ya=-1;va===Br.current?ya=0:ya=1,ya!==-1,_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!ya}})};Object(S.useEffect)(function(){new Promise(function(){var ga=Object(l.a)(C.a.mark(function va(ya,ye){var rt,Et,vt,Wt;return C.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!((vn==null||((rt=vn.sideBar)===null||rt===void 0)?void 0:rt.selectPath)!==""&&vn!==null&&vn!==void 0&&(Et=vn.sideBar)!==null&&Et!==void 0&&Et.selectPath)){Zt.next=5;break}return Zt.next=3,_n({type:"shixunsDetail/getFileContent",payload:{id:Ia.id,path:vn==null||((vt=vn.sideBar)===null||vt===void 0)?void 0:vt.selectPath,secret_repository:ua?null:!0}});case 3:Wt=Zt.sent,Wt!=null&&Wt.content||(Wt==null?void 0:Wt.content)==""||_n({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return Zt.stop()}},va)}));return function(va,ya){return ga.apply(this,arguments)}}())},[vn==null||((Me=vn.sideBar)===null||Me===void 0)?void 0:Me.selectPath]);var li=_.a.createElement(o.a,{className:j.a.menu,onClick:function(va){var ya;!(Ft!=null&&(ya=Ft.detail)!==null&&ya!==void 0&&ya.secret_repository)&&va.key==="2"&&Pn("1"),Vn(va.key),va.key==="1"?Zr(!0):Zr(!1)}},_.a.createElement(o.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),xa.filter(function(ga){var va,ya;return!(Ft!=null&&(va=Ft.detail)!==null&&va!==void 0&&va.init_repository)||Ft!=null&&(ya=Ft.detail)!==null&&ya!==void 0&&ya.is_jupyter_lab?ga.id!=="2":ga}).map(function(ga,va){return _.a.createElement(o.a.Item,{className:"leaveClick",key:ga.id},ga.name)})),yi=function(){var ga=Object(l.a)(C.a.mark(function va(){var ya,ye,rt;return C.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return vt.next=2,_n({type:"shixunsDetail/updateRepositoryFile",payload:{id:Ia.id,path:Ft==null||((ya=Ft.fileContent)===null||ya===void 0||((ye=ya.params)===null||ye===void 0))?void 0:ye.path,content:ar,secret_repository:ua?null:!0}});case 2:rt=vt.sent,rt!=null&&rt.content&&(h.b.info("\u4FDD\u5B58\u6210\u529F"),_n({type:"practiceSetting/setSideBarTabs",payload:Object(n.a)(Object(n.a)({},vn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return vt.stop()}},va)}));return function(){return ga.apply(this,arguments)}}();return _.a.createElement("div",{className:j.a.warehouse},_.a.createElement("div",{className:j.a.header},_.a.createElement(y.a,{align:"middle",className:"w100 c-white",style:{height:60}},_.a.createElement(f.a,{flex:"1"},_.a.createElement(y.a,{align:"middle"},_.a.createElement(f.a,null,_.a.createElement(c.a,{overlay:li,className:j.a.menu},_.a.createElement("span",{className:"font16 c-white current ml20"},xa.find(function(ga){return ga.id===Qt}).name," ",_.a.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),_.a.createElement(f.a,{flex:"81px"},_.a.createElement("div",{className:j.a.line})),_.a.createElement(f.a,null,_.a.createElement(P.a,{className:j.a.tabs,activeKey:Sn,onChange:function(va){var ya;vn!=null&&(ya=vn.sideBar)!==null&&ya!==void 0&&ya.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(){Pn(va),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(Pn(va),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},_.a.createElement(Jt,{tab:_.a.createElement("span",{className:"leaveClick"},"\u4EE3\u7801\u6587\u4EF6"),key:"1"}),ua&&(Ft==null||((Ve=Ft.detail)===null||Ve===void 0)?void 0:Ve.init_repository)&&_.a.createElement(Jt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}),!ua&&(Ft==null||((xt=Ft.detail)===null||xt===void 0)?void 0:xt.secret_repository)&&_.a.createElement(Jt,{tab:"\u63D0\u4EA4\u8BB0\u5F55",key:"2",className:"leaveClick"}))))),(ua&&(Ft==null||((_t=Ft.repository)===null||_t===void 0)?void 0:_t.git_url)||!ua&&(Ft==null||((At=Ft.secretRepository)===null||At===void 0)?void 0:At.git_url))&&_.a.createElement(_.a.Fragment,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:j.a.title},"\u4ED3\u5E93\u5730\u5740:"),_.a.createElement("input",{value:ua?Ft==null||((Ot=Ft.repository)===null||Ot===void 0)?void 0:Ot.git_url:Ft==null||((Ct=Ft.secretRepository)===null||Ct===void 0)?void 0:Ct.git_url}),_.a.createElement(L.CopyToClipboard,{text:ua?Ft==null||((Bt=Ft.repository)===null||Bt===void 0)?void 0:Bt.git_url:Ft==null||((It=Ft.secretRepository)===null||It===void 0)?void 0:It.git_url,onCopy:function(){return h.b.success("\u590D\u5236\u6210\u529F")}},_.a.createElement(u.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u7248\u672C\u5E93"},_.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),_.a.createElement("div",{className:j.a.content,style:{overflow:"auto"}},Sn==="1"&&_.a.createElement(_.a.Fragment,null,_.a.createElement("aside",{className:j.a.left},_.a.createElement(v.a,{spinning:!!an.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(j.a.loading," ").concat(j.a.bottom0)},_.a.createElement(Ne,{setTreeData:La,treeData:Ga,activeKey:Qt,isRepository:ua}))),_.a.createElement("aside",{className:j.a.right,ref:Za},(vn==null||((yt=vn.sideBar)===null||yt===void 0)?void 0:yt.selectPath)!==""&&_.a.createElement(_.a.Fragment,null,_.a.createElement(v.a,{spinning:!!an.effects["shixunsDetail/getFileContent"],wrapperClassName:j.a.loading},_.a.createElement("div",{className:j.a.filePathWrp},_.a.createElement(y.a,{align:"middle",className:"w100"},_.a.createElement(f.a,null,_.a.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),_.a.createElement(f.a,{flex:"40px"},_.a.createElement("div",{className:j.a.line,style:{marginLeft:20}})),_.a.createElement(f.a,{className:j.a.filePath},Ma.map(function(ga,va){return _.a.createElement("span",{className:"c-blue"},ga)})))),_.a.createElement("div",{className:an.effects["shixunsDetail/getFileContent"]?"hide":"show"},_.a.createElement(pt.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:Ft==null||((zt=Ft.fileContent)===null||zt===void 0)?void 0:zt.filename,type:(Ft==null||((sn=Ft.fileContent)===null||sn===void 0)?void 0:sn.file_type)==="office"?"download":Ft==null||((hn=Ft.fileContent)===null||hn===void 0)?void 0:hn.file_type,data:ar,monacoEditor:{value:ar,language:Ft==null||((un=Ft.fileContent)===null||un===void 0)?void 0:un.language,onChange:function(va){return Fa(va)},options:{fontSize:14}}}))),(Ft==null||((Kt=Ft.fileContent)===null||Kt===void 0)?void 0:Kt.file_type)==="txt"&&_.a.createElement(y.a,{align:"middle",justify:"center",className:j.a.footer},_.a.createElement(f.a,null,_.a.createElement(E.a,{type:"primary",size:"large",ghost:!0,onClick:function(){k.d.push("/shixuns/".concat(Ia.id,"/challenges"))}},"\u53D6\u6D88"),_.a.createElement(E.a,{type:"primary",size:"large",className:"ml40",onClick:yi},"\u63D0\u4EA4")))),(vn==null||((gn=vn.sideBar)===null||gn===void 0)?void 0:gn.selectPath)==""&&(Ft==null||((Rn=Ft.detail)===null||Rn===void 0)?void 0:Rn.init_repository)&&_.a.createElement("div",{className:j.a.empty},_.a.createElement("img",{src:Ce.j,width:"258"}),_.a.createElement("br",null),_.a.createElement("span",{className:"c-grey-c"},!!(Ga!=null&&Ga.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(Ga!=null&&Ga.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),Sn==="2"&&_.a.createElement("div",{className:j.a.commit},_.a.createElement($e,{isRepository:ua}))))},qt=Y.default=Object(k.a)(function(St){var Be=St.loading,at=St.globalSetting,it=St.practiceSetting,Me=St.shixunsDetail;return{globalSetting:at,loading:Be,practiceSetting:it,shixunsDetail:Me}})(fn)},csWT:function(N,Y,i){N.exports=i.p+"static/choose.4ad1045f.svg"},cv67:function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(E){var T=M,v=T.lib,m=v.WordArray,y=v.Hasher,O=T.algo,g=[];(function(){for(var a=0;a<64;a++)g[a]=E.abs(E.sin(a+1))*4294967296|0})();var e=O.MD5=y.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(a,o){for(var l=0;l<16;l++){var d=o+l,h=a[d];a[d]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var s=this._hash.words,u=a[o+0],w=a[o+1],x=a[o+2],b=a[o+3],P=a[o+4],R=a[o+5],C=a[o+6],S=a[o+7],_=a[o+8],A=a[o+9],j=a[o+10],I=a[o+11],k=a[o+12],J=a[o+13],G=a[o+14],D=a[o+15],H=s[0],W=s[1],L=s[2],z=s[3];H=f(H,W,L,z,u,7,g[0]),z=f(z,H,W,L,w,12,g[1]),L=f(L,z,H,W,x,17,g[2]),W=f(W,L,z,H,b,22,g[3]),H=f(H,W,L,z,P,7,g[4]),z=f(z,H,W,L,R,12,g[5]),L=f(L,z,H,W,C,17,g[6]),W=f(W,L,z,H,S,22,g[7]),H=f(H,W,L,z,_,7,g[8]),z=f(z,H,W,L,A,12,g[9]),L=f(L,z,H,W,j,17,g[10]),W=f(W,L,z,H,I,22,g[11]),H=f(H,W,L,z,k,7,g[12]),z=f(z,H,W,L,J,12,g[13]),L=f(L,z,H,W,G,17,g[14]),W=f(W,L,z,H,D,22,g[15]),H=r(H,W,L,z,w,5,g[16]),z=r(z,H,W,L,C,9,g[17]),L=r(L,z,H,W,I,14,g[18]),W=r(W,L,z,H,u,20,g[19]),H=r(H,W,L,z,R,5,g[20]),z=r(z,H,W,L,j,9,g[21]),L=r(L,z,H,W,D,14,g[22]),W=r(W,L,z,H,P,20,g[23]),H=r(H,W,L,z,A,5,g[24]),z=r(z,H,W,L,G,9,g[25]),L=r(L,z,H,W,b,14,g[26]),W=r(W,L,z,H,_,20,g[27]),H=r(H,W,L,z,J,5,g[28]),z=r(z,H,W,L,x,9,g[29]),L=r(L,z,H,W,S,14,g[30]),W=r(W,L,z,H,k,20,g[31]),H=c(H,W,L,z,R,4,g[32]),z=c(z,H,W,L,_,11,g[33]),L=c(L,z,H,W,I,16,g[34]),W=c(W,L,z,H,G,23,g[35]),H=c(H,W,L,z,w,4,g[36]),z=c(z,H,W,L,P,11,g[37]),L=c(L,z,H,W,S,16,g[38]),W=c(W,L,z,H,j,23,g[39]),H=c(H,W,L,z,J,4,g[40]),z=c(z,H,W,L,u,11,g[41]),L=c(L,z,H,W,b,16,g[42]),W=c(W,L,z,H,C,23,g[43]),H=c(H,W,L,z,A,4,g[44]),z=c(z,H,W,L,k,11,g[45]),L=c(L,z,H,W,D,16,g[46]),W=c(W,L,z,H,x,23,g[47]),H=n(H,W,L,z,u,6,g[48]),z=n(z,H,W,L,S,10,g[49]),L=n(L,z,H,W,G,15,g[50]),W=n(W,L,z,H,R,21,g[51]),H=n(H,W,L,z,k,6,g[52]),z=n(z,H,W,L,b,10,g[53]),L=n(L,z,H,W,j,15,g[54]),W=n(W,L,z,H,w,21,g[55]),H=n(H,W,L,z,_,6,g[56]),z=n(z,H,W,L,D,10,g[57]),L=n(L,z,H,W,C,15,g[58]),W=n(W,L,z,H,J,21,g[59]),H=n(H,W,L,z,P,6,g[60]),z=n(z,H,W,L,I,10,g[61]),L=n(L,z,H,W,x,15,g[62]),W=n(W,L,z,H,A,21,g[63]),s[0]=s[0]+H|0,s[1]=s[1]+W|0,s[2]=s[2]+L|0,s[3]=s[3]+z|0},_doFinalize:function(){var a=this._data,o=a.words,l=this._nDataBytes*8,d=a.sigBytes*8;o[d>>>5]|=128<<24-d%32;var h=E.floor(l/4294967296),s=l;o[(d+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,o[(d+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,a.sigBytes=(o.length+1)*4,this._process();for(var u=this._hash,w=u.words,x=0;x<4;x++){var b=w[x];w[x]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return u},clone:function(){var a=y.clone.call(this);return a._hash=this._hash.clone(),a}});function f(a,o,l,d,h,s,u){var w=a+(o&l|~o&d)+h+u;return(w<<s|w>>>32-s)+o}function r(a,o,l,d,h,s,u){var w=a+(o&d|l&~d)+h+u;return(w<<s|w>>>32-s)+o}function c(a,o,l,d,h,s,u){var w=a+(o^l^d)+h+u;return(w<<s|w>>>32-s)+o}function n(a,o,l,d,h,s,u){var w=a+(l^(o|~d))+h+u;return(w<<s|w>>>32-s)+o}T.MD5=y._createHelper(e),T.HmacMD5=y._createHmacHelper(e)}(Math),M.MD5})},cz0n:function(N,Y,i){N.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(N,Y,i){N.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(N,Y,i){},djh8:function(N,Y,i){N.exports=i.p+"static/qrCode.d852fdfc.png"},dmUQ:function(N,Y,i){"use strict";var M=i("Ff2n"),E=i("rePB"),T=i("1OyB"),v=i("vuIU"),m=i("Ji7U"),y=i("md7G"),O=i("foSv"),g=i("q1tI"),e=i.n(g),f=i("TSYQ"),r=i.n(f),c=i("4IlW");function n(_,A){var j=Object.keys(_);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(_);A&&(I=I.filter(function(k){return Object.getOwnPropertyDescriptor(_,k).enumerable})),j.push.apply(j,I)}return j}function a(_){for(var A=1;A<arguments.length;A++){var j=arguments[A]!=null?arguments[A]:{};A%2?n(Object(j),!0).forEach(function(I){Object(E.a)(_,I,j[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(j)):n(Object(j)).forEach(function(I){Object.defineProperty(_,I,Object.getOwnPropertyDescriptor(j,I))})}return _}function o(_){var A=l();return function(){var I=Object(O.a)(_),k;if(A){var J=Object(O.a)(this).constructor;k=Reflect.construct(I,arguments,J)}else k=I.apply(this,arguments);return Object(y.a)(this,k)}}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(_){return!1}}function d(){}function h(_){_.preventDefault()}var s=function(A){return A.replace(/[^\w.-]+/g,"")},u=200,w=600,x=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,b=function(A){return A!=null},P=function(A,j){return j===A||typeof j=="number"&&typeof A=="number"&&isNaN(j)&&isNaN(A)},R=function(_){Object(m.a)(j,_);var A=o(j);function j(I){var k;Object(T.a)(this,j),k=A.call(this,I),k.onKeyDown=function(D){var H=k.props,W=H.onKeyDown,L=H.onPressEnter;if(D.keyCode===c.a.UP){var z=k.getRatio(D);k.up(D,z,null),k.stop()}else if(D.keyCode===c.a.DOWN){var ie=k.getRatio(D);k.down(D,ie,null),k.stop()}else D.keyCode===c.a.ENTER&&L&&L(D);if(k.recordCursorPosition(),k.lastKeyCode=D.keyCode,W){for(var ce=arguments.length,ue=new Array(ce>1?ce-1:0),xe=1;xe<ce;xe++)ue[xe-1]=arguments[xe];W.apply(void 0,[D].concat(ue))}},k.onKeyUp=function(D){var H=k.props.onKeyUp;if(k.stop(),k.recordCursorPosition(),H){for(var W=arguments.length,L=new Array(W>1?W-1:0),z=1;z<W;z++)L[z-1]=arguments[z];H.apply(void 0,[D].concat(L))}},k.onChange=function(D){var H=k.props.onChange;k.state.focused&&(k.inputting=!0),k.rawInput=k.props.parser(k.getValueFromEvent(D)),k.setState({inputValue:k.rawInput}),H(k.toNumber(k.rawInput))},k.onMouseUp=function(){var D=k.props.onMouseUp;k.recordCursorPosition(),D&&D.apply(void 0,arguments)},k.onFocus=function(){var D;k.setState({focused:!0}),(D=k.props).onFocus.apply(D,arguments)},k.onBlur=function(){var D=k.props.onBlur;k.inputting=!1,k.setState({focused:!1});var H=k.getCurrentValidValue(k.state.inputValue),W=k.setValue(H,d);if(D){var L=k.input.value,z=k.getInputDisplayValue({focus:!1,value:W});k.input.value=z&&Number(z),D.apply(void 0,arguments),k.input.value=L}},k.getRatio=function(D){var H=1;return D.metaKey||D.ctrlKey?H=.1:D.shiftKey&&(H=10),H},k.getFullNum=function(D){return isNaN(D)?D:/e/i.test(String(D))?Number(D).toFixed(18).replace(/\.?0+$/,""):D},k.getPrecision=function(D){if(b(k.props.precision))return k.props.precision;var H=String(D);if(H.indexOf("e-")>=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var W=0;return H.indexOf(".")>=0&&(W=H.length-H.indexOf(".")-1),W},k.getInputDisplayValue=function(D){var H=D||k.state,W=H.focused,L=H.inputValue,z=H.value,ie;W?ie=L:ie=k.toPrecisionAsStep(z),ie==null&&(ie="");var ce=k.formatWrapper(ie);return b(k.props.decimalSeparator)&&(ce=ce.toString().replace(".",k.props.decimalSeparator)),ce},k.recordCursorPosition=function(){try{k.cursorStart=k.input.selectionStart,k.cursorEnd=k.input.selectionEnd,k.currentValue=k.input.value,k.cursorBefore=k.input.value.substring(0,k.cursorStart),k.cursorAfter=k.input.value.substring(k.cursorEnd)}catch(D){}},k.restoreByAfter=function(D){if(D===void 0)return!1;var H=k.input.value,W=H.lastIndexOf(D);if(W===-1)return!1;var L=k.cursorBefore.length;return k.lastKeyCode===c.a.DELETE&&k.cursorBefore.charAt(L-1)===D[0]?(k.fixCaret(L,L),!0):W+D.length===H.length?(k.fixCaret(W,W),!0):!1},k.partRestoreByAfter=function(D){return D===void 0?!1:Array.prototype.some.call(D,function(H,W){var L=D.substring(W);return k.restoreByAfter(L)})},k.isNotCompleteNumber=function(D){return isNaN(D)||D===""||D===null||D&&D.toString().indexOf(".")===D.toString().length-1},k.stop=function(){k.autoStepTimer&&clearTimeout(k.autoStepTimer)},k.down=function(D,H,W){k.pressingUpOrDown=!0,k.step("down",D,H,W)},k.up=function(D,H,W){k.pressingUpOrDown=!0,k.step("up",D,H,W)},k.saveInput=function(D){k.input=D};var J=I.value;J===void 0&&(J=I.defaultValue),k.state={focused:I.autoFocus};var G=k.getValidValue(k.toNumber(J));return k.state=a(a({},k.state),{},{inputValue:k.toPrecisionAsStep(G),value:G}),k}return Object(v.a)(j,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(k){var J=this.props,G=J.value,D=J.onChange,H=J.max,W=J.min,L=this.state.focused;if(k){if(!P(k.value,G)||!P(k.max,H)||!P(k.min,W)){var z=L?G:this.getValidValue(G),ie;this.pressingUpOrDown?ie=z:this.inputting?ie=this.rawInput:ie=this.toPrecisionAsStep(z),this.setState({value:z,inputValue:ie})}var ce="value"in this.props?G:this.state.value;"max"in this.props&&k.max!==H&&typeof ce=="number"&&ce>H&&D&&D(H),"min"in this.props&&k.min!==W&&typeof ce=="number"&&ce<W&&D&&D(W)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ue=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===c.a.BACKSPACE?ue=this.cursorStart-1:this.lastKeyCode===c.a.DELETE&&(ue=this.cursorStart):ue=this.input.value.length,this.fixCaret(ue,ue)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case c.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case c.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(xe){}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(k){var J=k;return J===""?J="":this.isNotCompleteNumber(parseFloat(J))?J=this.state.value:J=this.getValidValue(J),this.toNumber(J)}},{key:"getValueFromEvent",value:function(k){var J=k.target.value.trim().replace(/。/g,".");return b(this.props.decimalSeparator)&&(J=J.replace(this.props.decimalSeparator,".")),J}},{key:"getValidValue",value:function(k){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,D=parseFloat(k);return isNaN(D)?k:(D<J&&(D=J),D>G&&(D=G),D)}},{key:"setValue",value:function(k,J){var G=this.props.precision,D=this.isNotCompleteNumber(parseFloat(k))?null:parseFloat(k),H=this.state.value,W=H===void 0?null:H,L=this.state.inputValue,z=L===void 0?null:L,ie=typeof D=="number"?D.toFixed(G):"".concat(D),ce=D!==W||ie!=="".concat(z);return"value"in this.props?(z=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:z},J)):this.setState({value:D,inputValue:this.toPrecisionAsStep(k)},J),ce&&this.props.onChange(D),D}},{key:"getMaxPrecision",value:function(k){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=this.props,D=G.precision,H=G.step;if(b(D))return D;var W=this.getPrecision(J),L=this.getPrecision(H),z=this.getPrecision(k);return k?Math.max(z,W+L):W+L}},{key:"getPrecisionFactor",value:function(k){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=this.getMaxPrecision(k,J);return Math.pow(10,G)}},{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(k){return this.props.formatter?this.props.formatter(k):k}},{key:"toPrecisionAsStep",value:function(k){if(this.isNotCompleteNumber(k)||k==="")return k;var J=Math.abs(this.getMaxPrecision(k));return isNaN(J)?k.toString():Number(k).toFixed(J)}},{key:"toNumber",value:function(k){var J=this.props.precision,G=this.state.focused,D=k&&k.length>16&&G;return this.isNotCompleteNumber(k)||D?k:b(J)?Math.round(k*Math.pow(10,J))/Math.pow(10,J):Number(k)}},{key:"upStep",value:function(k,J){var G=this.props.step,D=this.getPrecisionFactor(k,J),H=Math.abs(this.getMaxPrecision(k,J)),W=((D*k+D*G*J)/D).toFixed(H);return this.toNumber(W)}},{key:"downStep",value:function(k,J){var G=this.props.step,D=this.getPrecisionFactor(k,J),H=Math.abs(this.getMaxPrecision(k,J)),W=((D*k-D*G*J)/D).toFixed(H);return this.toNumber(W)}},{key:"step",value:function(k,J){var G=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),J&&(J.persist(),J.preventDefault());var W=this.props;if(W.disabled)return;var L=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(L))return;var z=this["".concat(k,"Step")](L,D),ie=z>W.max||z<W.min;if(z>W.max?z=W.max:z<W.min&&(z=W.min),this.setValue(z,null),this.setState({focused:!0},function(){G.pressingUpOrDown=!1}),ie)return;this.autoStepTimer=setTimeout(function(){G[k](J,D,!0)},H?u:w)}},{key:"fixCaret",value:function(k,J){if(k===void 0||J===void 0||!this.input||!this.input.value)return;try{var G=this.input.selectionStart,D=this.input.selectionEnd;(k!==G||J!==D)&&this.input.setSelectionRange(k,J)}catch(H){}}},{key:"render",value:function(){var k,J=this.props,G=J.prefixCls,D=J.disabled,H=J.readOnly,W=J.useTouch,L=J.autoComplete,z=J.upHandler,ie=J.downHandler,ce=J.className,ue=J.max,xe=J.min,Te=J.style,de=J.title,ve=J.onMouseEnter,_e=J.onMouseLeave,le=J.onMouseOver,ee=J.onMouseOut,U=J.required,K=J.onClick,X=J.tabIndex,Q=J.type,te=J.placeholder,ae=J.id,re=J.inputMode,$=J.pattern,Z=J.step,fe=J.maxLength,me=J.autoFocus,Oe=J.name,He=J.onPaste,Qe=J.onInput,ot=Object(M.a)(J,["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,ct=st.value,dt=st.focused,Xe=r()(G,(k={},Object(E.a)(k,ce,!!ce),Object(E.a)(k,"".concat(G,"-disabled"),D),Object(E.a)(k,"".concat(G,"-focused"),dt),k)),ke={};Object.keys(ot).forEach(function(We){(We.substr(0,5)==="data-"||We.substr(0,5)==="aria-"||We==="role")&&(ke[We]=ot[We])});var lt=!H&&!D,Mt=this.getInputDisplayValue(null),Ce=(ct||ct===0)&&(isNaN(ct)||Number(ct)>=ue),he=(ct||ct===0)&&(isNaN(ct)||Number(ct)<=xe),be=Ce||D||H,Ee=he||D||H,Ne=r()("".concat(G,"-handler"),"".concat(G,"-handler-up"),Object(E.a)({},"".concat(G,"-handler-up-disabled"),be)),we=r()("".concat(G,"-handler"),"".concat(G,"-handler-down"),Object(E.a)({},"".concat(G,"-handler-down-disabled"),Ee)),Ae=W?{onTouchStart:be?d:this.up,onTouchEnd:this.stop}:{onMouseDown:be?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ue=W?{onTouchStart:Ee?d:this.down,onTouchEnd:this.stop}:{onMouseDown:Ee?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Xe,style:Te,title:de,onMouseEnter:ve,onMouseLeave:_e,onMouseOver:le,onMouseOut:ee,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(G,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Ae,{role:"button","aria-label":"Increase Value","aria-disabled":be,className:Ne}),z||e.a.createElement("span",{unselectable:"on",className:"".concat(G,"-handler-up-inner"),onClick:h})),e.a.createElement("span",Object.assign({unselectable:"on"},Ue,{role:"button","aria-label":"Decrease Value","aria-disabled":Ee,className:we}),ie||e.a.createElement("span",{unselectable:"on",className:"".concat(G,"-handler-down-inner"),onClick:h}))),e.a.createElement("div",{className:"".concat(G,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":xe,"aria-valuemax":ue,"aria-valuenow":ct,required:U,type:Q,placeholder:te,onPaste:He,onClick:K,onMouseUp:this.onMouseUp,className:"".concat(G,"-input"),tabIndex:X,autoComplete:L,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:lt?this.onKeyDown:d,onKeyUp:lt?this.onKeyUp:d,autoFocus:me,maxLength:fe,readOnly:H,disabled:D,max:ue,min:xe,step:Z,name:Oe,title:de,id:ae,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Mt),pattern:$,inputMode:re,onInput:Qe},ke))))}}]),j}(e.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:x,min:-x,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:s,required:!1,autoComplete:"off"};var C=R,S=Y.a=C},e7zE:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("3y9D"),i("WYAk"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.Base,m=T.WordArray,y=E.algo,O=y.SHA1,g=y.HMAC,e=y.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:O,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,r){for(var c=this.cfg,n=g.create(c.hasher,f),a=m.create(),o=m.create([1]),l=a.words,d=o.words,h=c.keySize,s=c.iterations;l.length<h;){var u=n.update(r).finalize(o);n.reset();for(var w=u.words,x=w.length,b=u,P=1;P<s;P++){b=n.finalize(b),n.reset();for(var R=b.words,C=0;C<x;C++)w[C]^=R[C]}a.concat(u),d[0]++}return a.sigBytes=h*4,a}});E.PBKDF2=function(f,r,c){return e.create(c).compute(f,r)}}(),M.PBKDF2})},"f0W+":function(N,Y,i){N.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(N,Y,i){N.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(N,Y,i){"use strict";i.d(Y,"a",function(){return u.a});var M=i("rePB"),E=i("VTBJ"),T=i("KQm4"),v=i("1OyB"),m=i("vuIU"),y=i("Ji7U"),O=i("LK+K"),g=i("q1tI"),e=i("4IlW"),f=i("Kwbf"),r=i("TSYQ"),c=i.n(r),n=i("sboe"),a=i("OZM5"),o=i("815F"),l=i("ODXe"),d=i("Ff2n"),h=i("+nKL"),s=i("8XRh"),u=i("WaYH"),w=function(xe,Te){var de=xe.className,ve=xe.style,_e=xe.motion,le=xe.motionNodes,ee=xe.motionType,U=xe.onMotionStart,K=xe.onMotionEnd,X=xe.active,Q=xe.treeNodeRequiredProps,te=Object(d.a)(xe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ae=g.useState(!0),re=Object(l.a)(ae,2),$=re[0],Z=re[1],fe=g.useContext(n.a),me=fe.prefixCls,Oe=g.useRef(!1),He=function(){Oe.current||K(),Oe.current=!0};return Object(g.useEffect)(function(){le&&ee==="hide"&&$&&Z(!1)},[le]),Object(g.useEffect)(function(){return le&&U(),function(){le&&He()}},[]),le?g.createElement(s.default,Object.assign({ref:Te,visible:$},_e,{motionAppear:ee==="show",onAppearEnd:He,onLeaveEnd:He}),function(Qe,ot){var st=Qe.className,ct=Qe.style;return g.createElement("div",{ref:ot,className:c()("".concat(me,"-treenode-motion"),st),style:ct},le.map(function(dt){var Xe=dt.data,ke=Xe.key,lt=Object(d.a)(Xe,["key"]),Mt=dt.isStart,Ce=dt.isEnd;delete lt.children;var he=Object(o.f)(ke,Q);return g.createElement(u.a,Object.assign({},lt,he,{active:X,data:dt.data,key:ke,isStart:Mt,isEnd:Ce}))}))}):g.createElement(u.a,Object.assign({domRef:Te,className:de,style:ve},te,{active:X}))};w.displayName="MotionTreeNode";var x=g.forwardRef(w),b=x;function P(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Te=ue.length,de=xe.length;if(Math.abs(Te-de)!==1)return{add:!1,key:null};function ve(_e,le){var ee=new Map;_e.forEach(function(K){ee.set(K,!0)});var U=le.filter(function(K){return!ee.has(K)});return U.length===1?U[0]:null}return Te<de?{add:!0,key:ve(ue,xe)}:{add:!1,key:ve(xe,ue)}}function R(ue,xe,Te){var de=ue.findIndex(function(ee){var U=ee.data;return U.key===Te}),ve=ue[de+1],_e=xe.findIndex(function(ee){var U=ee.data;return U.key===Te});if(ve){var le=xe.findIndex(function(ee){var U=ee.data;return U.key===ve.data.key});return xe.slice(_e+1,le)}return xe.slice(_e+1)}var C={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},S=function(){},_="RC_TREE_MOTION_".concat(Math.random()),A={key:_},j={key:_,level:0,index:0,pos:"0",node:A},I={parent:null,children:[],pos:j.pos,data:A,isStart:[],isEnd:[]};function k(ue,xe,Te,de){return xe===!1||!Te?ue:ue.slice(0,Math.ceil(Te/de)+1)}function J(ue){var xe=ue.data.key,Te=ue.pos;return Object(o.e)(xe,Te)}function G(ue){for(var xe=String(ue.data.key),Te=ue;Te.parent;)Te=Te.parent,xe="".concat(Te.data.key," > ").concat(xe);return xe}var D=function(xe,Te){var de=xe.prefixCls,ve=xe.data,_e=xe.selectable,le=xe.checkable,ee=xe.expandedKeys,U=xe.selectedKeys,K=xe.checkedKeys,X=xe.loadedKeys,Q=xe.loadingKeys,te=xe.halfCheckedKeys,ae=xe.keyEntities,re=xe.disabled,$=xe.dragging,Z=xe.dragOverNodeKey,fe=xe.dropPosition,me=xe.motion,Oe=xe.height,He=xe.itemHeight,Qe=xe.virtual,ot=xe.focusable,st=xe.activeItem,ct=xe.focused,dt=xe.tabIndex,Xe=xe.onKeyDown,ke=xe.onFocus,lt=xe.onBlur,Mt=xe.onActiveChange,Ce=xe.onListChangeStart,he=xe.onListChangeEnd,be=Object(d.a)(xe,["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"]),Ee=g.useRef(null);g.useImperativeHandle(Te,function(){return{scrollTo:function(yt){Ee.current.scrollTo(yt)}}});var Ne=g.useState(ee),we=Object(l.a)(Ne,2),Ae=we[0],Ue=we[1],We=g.useState(ve),Je=Object(l.a)(We,2),$e=Je[0],pt=Je[1],Jt=g.useState(ve),fn=Object(l.a)(Jt,2),qt=fn[0],St=fn[1],Be=g.useState([]),at=Object(l.a)(Be,2),it=at[0],Me=at[1],Ve=g.useState(null),xt=Object(l.a)(Ve,2),_t=xt[0],At=xt[1];function Ot(){pt(ve),St(ve),Me([]),At(null),he()}g.useEffect(function(){Ue(ee);var It=P(Ae,ee);if(It.key!==null)if(It.add){var yt=$e.findIndex(function(gn){var Rn=gn.data.key;return Rn===It.key}),zt=k(R($e,ve,It.key),Qe,Oe,He),sn=$e.slice();sn.splice(yt+1,0,I),St(sn),Me(zt),At("show")}else{var hn=ve.findIndex(function(gn){var Rn=gn.data.key;return Rn===It.key}),un=k(R(ve,$e,It.key),Qe,Oe,He),Kt=ve.slice();Kt.splice(hn+1,0,I),St(Kt),Me(un),At("hide")}else $e!==ve&&(pt(ve),St(ve))},[ee,ve]),g.useEffect(function(){$||Ot()},[$]);var Ct=me?qt:ve,Bt={expandedKeys:ee,selectedKeys:U,loadedKeys:X,loadingKeys:Q,checkedKeys:K,halfCheckedKeys:te,dragOverNodeKey:Z,dropPosition:fe,keyEntities:ae};return g.createElement(g.Fragment,null,ct&&st&&g.createElement("span",{style:C,"aria-live":"assertive"},G(st)),g.createElement("div",{role:"tree"},g.createElement("input",{style:C,disabled:ot===!1||re,tabIndex:ot!==!1?dt:null,onKeyDown:Xe,onFocus:ke,onBlur:lt,value:"",onChange:S})),g.createElement(h.a,Object.assign({},be,{data:Ct,itemKey:J,height:Oe,fullHeight:!1,virtual:Qe,itemHeight:He,prefixCls:"".concat(de,"-list"),ref:Ee}),function(It){var yt=It.pos,zt=It.data,sn=zt.key,hn=Object(d.a)(zt,["key"]),un=It.isStart,Kt=It.isEnd,gn=Object(o.e)(sn,yt);delete hn.children;var Rn=Object(o.f)(gn,Bt);return g.createElement(b,Object.assign({},hn,Rn,{active:st&&sn===st.data.key,pos:yt,data:It.data,isStart:un,isEnd:Kt,motion:me,motionNodes:sn===_?it:null,motionType:_t,onMotionStart:Ce,onMotionEnd:Ot,treeNodeRequiredProps:Bt,onMouseMove:function(){Mt(null)}}))}))},H=g.forwardRef(D);H.displayName="NodeList";var W=H,L=i("NvD2"),z=function(ue){Object(y.a)(Te,ue);var xe=Object(O.a)(Te);function Te(){var de;return Object(v.a)(this,Te),de=xe.apply(this,arguments),de.destroyed=!1,de.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},de.listRef=g.createRef(),de.onNodeDragStart=function(ve,_e){var le=de.state,ee=le.expandedKeys,U=le.keyEntities,K=de.props.onDragStart,X=_e.props.eventKey;de.dragNode=_e;var Q=Object(a.b)(ee,X);de.setState({dragging:!0,dragNodesKeys:Object(a.g)(X,U)}),de.setExpandedKeys(Q),K&&K({event:ve,node:Object(o.b)(_e.props)})},de.onNodeDragEnter=function(ve,_e){var le=de.state,ee=le.expandedKeys,U=le.keyEntities,K=le.dragNodesKeys,X=de.props.onDragEnter,Q=_e.props,te=Q.pos,ae=Q.eventKey;if(!de.dragNode||K.indexOf(ae)!==-1)return;var re=Object(a.c)(ve,_e);if(de.dragNode.props.eventKey===ae&&re===0){de.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){de.setState({dragOverNodeKey:ae,dropPosition:re}),de.delayedDragEnterLogic||(de.delayedDragEnterLogic={}),Object.keys(de.delayedDragEnterLogic).forEach(function($){clearTimeout(de.delayedDragEnterLogic[$])}),de.delayedDragEnterLogic[te]=window.setTimeout(function(){if(!de.state.dragging)return;var $=Object(T.a)(ee),Z=U[ae];Z&&(Z.children||[]).length&&($=Object(a.a)(ee,ae)),"expandedKeys"in de.props||de.setExpandedKeys($),X&&X({event:ve,node:Object(o.b)(_e.props),expandedKeys:$})},400)},0)},de.onNodeDragOver=function(ve,_e){var le=de.state.dragNodesKeys,ee=de.props.onDragOver,U=_e.props.eventKey;if(le.indexOf(U)!==-1)return;if(de.dragNode&&U===de.state.dragOverNodeKey){var K=Object(a.c)(ve,_e);if(K===de.state.dropPosition)return;de.setState({dropPosition:K})}ee&&ee({event:ve,node:Object(o.b)(_e.props)})},de.onNodeDragLeave=function(ve,_e){var le=de.props.onDragLeave;de.setState({dragOverNodeKey:""}),le&&le({event:ve,node:Object(o.b)(_e.props)})},de.onNodeDragEnd=function(ve,_e){var le=de.props.onDragEnd;de.setState({dragOverNodeKey:""}),de.cleanDragState(),le&&le({event:ve,node:Object(o.b)(_e.props)}),de.dragNode=null},de.onNodeDrop=function(ve,_e){var le=de.state,ee=le.dragNodesKeys,U=ee===void 0?[]:ee,K=le.dropPosition,X=de.props.onDrop,Q=_e.props,te=Q.eventKey,ae=Q.pos;if(de.setState({dragOverNodeKey:""}),de.cleanDragState(),U.indexOf(te)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var re=Object(a.k)(ae),$={event:ve,node:Object(o.b)(_e.props),dragNode:de.dragNode?Object(o.b)(de.dragNode.props):null,dragNodesKeys:U.slice(),dropPosition:K+Number(re[re.length-1]),dropToGap:!1};K!==0&&($.dropToGap=!0),X&&X($),de.dragNode=null},de.cleanDragState=function(){var ve=de.state.dragging;ve&&de.setState({dragging:!1})},de.onNodeClick=function(ve,_e){var le=de.props.onClick;le&&le(ve,_e)},de.onNodeDoubleClick=function(ve,_e){var le=de.props.onDoubleClick;le&&le(ve,_e)},de.onNodeSelect=function(ve,_e){var le=de.state.selectedKeys,ee=de.state.keyEntities,U=de.props,K=U.onSelect,X=U.multiple,Q=_e.selected,te=_e.key,ae=!Q;ae?X?le=Object(a.a)(le,te):le=[te]:le=Object(a.b)(le,te);var re=le.map(function($){var Z=ee[$];return Z?Z.node:null}).filter(function($){return $});de.setUncontrolledState({selectedKeys:le}),K&&K(le,{event:"select",selected:ae,node:_e,selectedNodes:re,nativeEvent:ve.nativeEvent})},de.onNodeCheck=function(ve,_e,le){var ee=de.state,U=ee.keyEntities,K=ee.checkedKeys,X=ee.halfCheckedKeys,Q=de.props,te=Q.checkStrictly,ae=Q.onCheck,re=_e.key,$,Z={event:"check",node:_e,checked:le,nativeEvent:ve.nativeEvent};if(te){var fe=le?Object(a.a)(K,re):Object(a.b)(K,re),me=Object(a.b)(X,re);$={checked:fe,halfChecked:me},Z.checkedNodes=fe.map(function(ct){return U[ct]}).filter(function(ct){return ct}).map(function(ct){return ct.node}),de.setUncontrolledState({checkedKeys:fe})}else{var Oe=Object(L.a)([].concat(Object(T.a)(K),[re]),!0,U),He=Oe.checkedKeys,Qe=Oe.halfCheckedKeys;if(!le){var ot=new Set(He);ot.delete(re);var st=Object(L.a)(Array.from(ot),{checked:!1,halfCheckedKeys:Qe},U);He=st.checkedKeys,Qe=st.halfCheckedKeys}$=He,Z.checkedNodes=[],Z.checkedNodesPositions=[],Z.halfCheckedKeys=Qe,He.forEach(function(ct){var dt=U[ct];if(!dt)return;var Xe=dt.node,ke=dt.pos;Z.checkedNodes.push(Xe),Z.checkedNodesPositions.push({node:Xe,pos:ke})}),de.setUncontrolledState({checkedKeys:He},!1,{halfCheckedKeys:Qe})}ae&&ae($,Z)},de.onNodeLoad=function(ve){return new Promise(function(_e){de.setState(function(le){var ee=le.loadedKeys,U=ee===void 0?[]:ee,K=le.loadingKeys,X=K===void 0?[]:K,Q=de.props,te=Q.loadData,ae=Q.onLoad,re=ve.key;if(!te||U.indexOf(re)!==-1||X.indexOf(re)!==-1)return{};var $=te(ve);return $.then(function(){var Z=de.state,fe=Z.loadedKeys,me=Z.loadingKeys,Oe=Object(a.a)(fe,re),He=Object(a.b)(me,re);ae&&ae(Oe,{event:"load",node:ve}),de.setUncontrolledState({loadedKeys:Oe}),de.setState({loadingKeys:He}),_e()}),{loadingKeys:Object(a.a)(X,re)}})})},de.onNodeMouseEnter=function(ve,_e){var le=de.props.onMouseEnter;le&&le({event:ve,node:_e})},de.onNodeMouseLeave=function(ve,_e){var le=de.props.onMouseLeave;le&&le({event:ve,node:_e})},de.onNodeContextMenu=function(ve,_e){var le=de.props.onRightClick;le&&(ve.preventDefault(),le({event:ve,node:_e}))},de.onFocus=function(){var ve=de.props.onFocus;de.setState({focused:!0}),ve&&ve.apply(void 0,arguments)},de.onBlur=function(){var ve=de.props.onBlur;de.setState({focused:!1}),de.onActiveChange(null),ve&&ve.apply(void 0,arguments)},de.getTreeNodeRequiredProps=function(){var ve=de.state,_e=ve.expandedKeys,le=ve.selectedKeys,ee=ve.loadedKeys,U=ve.loadingKeys,K=ve.checkedKeys,X=ve.halfCheckedKeys,Q=ve.dragOverNodeKey,te=ve.dropPosition,ae=ve.keyEntities;return{expandedKeys:_e||[],selectedKeys:le||[],loadedKeys:ee||[],loadingKeys:U||[],checkedKeys:K||[],halfCheckedKeys:X||[],dragOverNodeKey:Q,dropPosition:te,keyEntities:ae}},de.setExpandedKeys=function(ve){var _e=de.state.treeData,le=Object(o.d)(_e,ve);de.setUncontrolledState({expandedKeys:ve,flattenNodes:le},!0)},de.onNodeExpand=function(ve,_e){var le=de.state.expandedKeys,ee=de.state.listChanging,U=de.props,K=U.onExpand,X=U.loadData,Q=_e.key,te=_e.expanded;if(ee)return;var ae=le.indexOf(Q),re=!te;if(Object(f.a)(te&&ae!==-1||!te&&ae===-1,"Expand state not sync with index check"),re?le=Object(a.a)(le,Q):le=Object(a.b)(le,Q),de.setExpandedKeys(le),K&&K(le,{node:_e,expanded:re,nativeEvent:ve.nativeEvent}),re&&X){var $=de.onNodeLoad(_e);$&&$.then(function(){var Z=Object(o.d)(de.state.treeData,le);de.setUncontrolledState({flattenNodes:Z})})}},de.onListChangeStart=function(){de.setUncontrolledState({listChanging:!0})},de.onListChangeEnd=function(){setTimeout(function(){de.setUncontrolledState({listChanging:!1})})},de.onActiveChange=function(ve){var _e=de.state.activeKey,le=de.props.onActiveChange;if(_e===ve)return;de.setState({activeKey:ve}),ve!==null&&de.scrollTo({key:ve}),le&&le(ve)},de.getActiveItem=function(){var ve=de.state,_e=ve.activeKey,le=ve.flattenNodes;return _e===null?null:le.find(function(ee){var U=ee.data.key;return U===_e})||null},de.offsetActiveKey=function(ve){var _e=de.state,le=_e.flattenNodes,ee=_e.activeKey,U=le.findIndex(function(Q){var te=Q.data.key;return te===ee});U===-1&&ve<0&&(U=le.length),U=(U+ve+le.length)%le.length;var K=le[U];if(K){var X=K.data.key;de.onActiveChange(X)}else de.onActiveChange(null)},de.onKeyDown=function(ve){var _e=de.state,le=_e.activeKey,ee=_e.expandedKeys,U=_e.checkedKeys,K=de.props,X=K.onKeyDown,Q=K.checkable,te=K.selectable;switch(ve.which){case e.a.UP:{de.offsetActiveKey(-1),ve.preventDefault();break}case e.a.DOWN:{de.offsetActiveKey(1),ve.preventDefault();break}}var ae=de.getActiveItem();if(ae&&ae.data){var re=de.getTreeNodeRequiredProps(),$=ae.data.isLeaf===!1||!!(ae.data.children||[]).length,Z=Object(o.b)(Object(E.a)(Object(E.a)({},Object(o.f)(le,re)),{},{data:ae.data,active:!0}));switch(ve.which){case e.a.LEFT:{$&&ee.includes(le)?de.onNodeExpand({},Z):ae.parent&&de.onActiveChange(ae.parent.data.key),ve.preventDefault();break}case e.a.RIGHT:{$&&!ee.includes(le)?de.onNodeExpand({},Z):ae.children&&ae.children.length&&de.onActiveChange(ae.children[0].data.key),ve.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{Q&&!Z.disabled&&Z.checkable!==!1&&!Z.disableCheckbox?de.onNodeCheck({},Z,!U.includes(le)):!Q&&te&&!Z.disabled&&Z.selectable!==!1&&de.onNodeSelect({},Z);break}}}X&&X(ve)},de.setUncontrolledState=function(ve){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(de.destroyed)return;var ee=!1,U=!0,K={};Object.keys(ve).forEach(function(X){if(X in de.props){U=!1;return}ee=!0,K[X]=ve[X]}),ee&&(!_e||U)&&de.setState(Object(E.a)(Object(E.a)({},K),le))},de.scrollTo=function(ve){de.listRef.current.scrollTo(ve)},de}return Object(m.a)(Te,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ve,_e=this.state,le=_e.focused,ee=_e.flattenNodes,U=_e.keyEntities,K=_e.dragging,X=_e.activeKey,Q=this.props,te=Q.prefixCls,ae=Q.className,re=Q.style,$=Q.showLine,Z=Q.focusable,fe=Q.tabIndex,me=fe===void 0?0:fe,Oe=Q.selectable,He=Q.showIcon,Qe=Q.icon,ot=Q.switcherIcon,st=Q.draggable,ct=Q.checkable,dt=Q.checkStrictly,Xe=Q.disabled,ke=Q.motion,lt=Q.loadData,Mt=Q.filterTreeNode,Ce=Q.height,he=Q.itemHeight,be=Q.virtual,Ee=Q.titleRender,Ne=Q.onContextMenu,we=Object(a.f)(this.props);return g.createElement(n.a.Provider,{value:{prefixCls:te,selectable:Oe,showIcon:He,icon:Qe,switcherIcon:ot,draggable:st,checkable:ct,checkStrictly:dt,disabled:Xe,keyEntities:U,loadData:lt,filterTreeNode:Mt,titleRender:Ee,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:c()(te,ae,(ve={},Object(M.a)(ve,"".concat(te,"-show-line"),$),Object(M.a)(ve,"".concat(te,"-focused"),le),Object(M.a)(ve,"".concat(te,"-active-focused"),X!==null),ve))},g.createElement(W,Object.assign({ref:this.listRef,prefixCls:te,style:re,data:ee,disabled:Xe,selectable:Oe,checkable:!!ct,motion:ke,dragging:K,height:Ce,itemHeight:he,virtual:be,focusable:Z,focused:le,tabIndex:me,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ne},this.getTreeNodeRequiredProps(),we))))}}],[{key:"getDerivedStateFromProps",value:function(ve,_e){var le=_e.prevProps,ee={prevProps:ve};function U(Qe){return!le&&Qe in ve||le&&le[Qe]!==ve[Qe]}var K;if(U("treeData")?K=ve.treeData:U("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),K=Object(o.c)(ve.children)),K){ee.treeData=K;var X=Object(o.a)(K);ee.keyEntities=Object(E.a)(Object(M.a)({},_,j),X.keyEntities)}var Q=ee.keyEntities||_e.keyEntities;if(U("expandedKeys")||le&&U("autoExpandParent"))ee.expandedKeys=ve.autoExpandParent||!le&&ve.defaultExpandParent?Object(a.e)(ve.expandedKeys,Q):ve.expandedKeys;else if(!le&&ve.defaultExpandAll){var te=Object(E.a)({},Q);delete te[_],ee.expandedKeys=Object.keys(te).map(function(Qe){return te[Qe].key})}else!le&&ve.defaultExpandedKeys&&(ee.expandedKeys=ve.autoExpandParent||ve.defaultExpandParent?Object(a.e)(ve.defaultExpandedKeys,Q):ve.defaultExpandedKeys);if(ee.expandedKeys||delete ee.expandedKeys,K||ee.expandedKeys){var ae=Object(o.d)(K||_e.treeData,ee.expandedKeys||_e.expandedKeys);ee.flattenNodes=ae}if(ve.selectable&&(U("selectedKeys")?ee.selectedKeys=Object(a.d)(ve.selectedKeys,ve):!le&&ve.defaultSelectedKeys&&(ee.selectedKeys=Object(a.d)(ve.defaultSelectedKeys,ve))),ve.checkable){var re;if(U("checkedKeys")?re=Object(a.j)(ve.checkedKeys)||{}:!le&&ve.defaultCheckedKeys?re=Object(a.j)(ve.defaultCheckedKeys)||{}:K&&(re=Object(a.j)(ve.checkedKeys)||{checkedKeys:_e.checkedKeys,halfCheckedKeys:_e.halfCheckedKeys}),re){var $=re,Z=$.checkedKeys,fe=Z===void 0?[]:Z,me=$.halfCheckedKeys,Oe=me===void 0?[]:me;if(!ve.checkStrictly){var He=Object(L.a)(fe,!0,Q);fe=He.checkedKeys,Oe=He.halfCheckedKeys}ee.checkedKeys=fe,ee.halfCheckedKeys=Oe}}return U("loadedKeys")&&(ee.loadedKeys=ve.loadedKeys),ee}}]),Te}(g.Component);z.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:[]},z.TreeNode=u.a;var ie=z,ce=Y.b=ie},fKo2:function(N,Y,i){},fgAr:function(N,Y,i){N.exports={flex_box_center:"flex_box_center___3W32R",flex_space_between:"flex_space_between___2uUoZ",flex_box_vertical_center:"flex_box_vertical_center___3Oxpz",flex_box_center_end:"flex_box_center_end___2tkyR",flex_box_column:"flex_box_column___2IFiF",btns:"btns___1c8D8",confirm:"confirm___2gIuB",cancel:"cancel___1ssuo"}},fjLI:function(N,Y,i){"use strict";i.d(Y,"f",function(){return n}),i.d(Y,"b",function(){return a}),i.d(Y,"a",function(){return o}),i.d(Y,"d",function(){return l}),i.d(Y,"e",function(){return d}),i.d(Y,"c",function(){return h});var M=i("8HAY"),E=i("Vhoy"),T=i("MI8n"),v=i("JYp7"),m=i("pmY6"),y=i("24hK"),O=i("nnTU"),g=i("T8No"),e=i("Cg/j"),f=i("t9D7"),r=function(s,u,w,x){var b=arguments.length,P=b<3?u:x===null?x=Object.getOwnPropertyDescriptor(u,w):x,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(s,u,w,x);else for(var C=s.length-1;C>=0;C--)(R=s[C])&&(P=(b<3?R(P):b>3?R(u,w,P):R(u,w))||P);return b>3&&P&&Object.defineProperty(u,w,P),P},c=function(s,u){return function(w,x){u(w,x,s)}};function n(s){return s.command!==void 0}class a{constructor(s){this.id=a._idPool++,this._debugName=s}}a._idPool=0,a.CommandPalette=new a("CommandPalette"),a.EditorContext=new a("EditorContext"),a.SimpleEditorContext=new a("SimpleEditorContext"),a.EditorContextCopy=new a("EditorContextCopy"),a.EditorContextPeek=new a("EditorContextPeek"),a.MenubarEditMenu=new a("MenubarEditMenu"),a.MenubarCopy=new a("MenubarCopy"),a.MenubarGoMenu=new a("MenubarGoMenu"),a.MenubarSelectionMenu=new a("MenubarSelectionMenu"),a.InlineCompletionsActions=new a("InlineCompletionsActions");const o=Object(e.c)("menuService"),l=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===a.CommandPalette}}addCommand(s){return this.addCommands(v.a.single(s))}addCommands(s){for(const u of s)this._commands.set(u.id,u);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(m.i)(()=>{let u=!1;for(const w of s)u=this._commands.delete(w.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,w)=>s.set(w,u)),s}appendMenuItem(s,u){return this.appendMenuItems(v.a.single({id:s,item:u}))}appendMenuItems(s){const u=new Set,w=new y.a;for(const{id:x,item:b}of s){let P=this._menuItems.get(x);P||(P=new y.a,this._menuItems.set(x,P)),w.push(P.push(b)),u.add(x)}return this._onDidChangeMenu.fire(u),Object(m.i)(()=>{if(w.size>0){for(let x of w)x();this._onDidChangeMenu.fire(u),w.clear()}})}getMenuItems(s){let u;return this._menuItems.has(s)?u=[...this._menuItems.get(s)]:u=[],s===a.CommandPalette&&this._appendImplicitItems(u),u}_appendImplicitItems(s){const u=new Set;for(const w of s)n(w)&&(u.add(w.command.id),w.alt&&u.add(w.alt.id));this._commands.forEach((w,x)=>{u.has(x)||s.push({command:w})})}};class d extends M.e{constructor(s,u,w,x){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=u,this._contextKeyService=w,this._options=x}get actions(){const s=[],u=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=u.getActions(this._options);u.dispose();for(const[,x]of w)x.length>0&&(s.push(...x),s.push(new M.d));return s.length&&s.pop(),s}}let h=class s{constructor(u,w,x,b,P){var R,C;if(this._commandService=P,this.id=u.id,this.label=(x==null?void 0:x.renderShortTitle)&&u.shortTitle?typeof u.shortTitle=="string"?u.shortTitle:u.shortTitle.value:typeof u.title=="string"?u.title:u.title.value,this.tooltip=(C=typeof u.tooltip=="string"?u.tooltip:(R=u.tooltip)===null||R===void 0?void 0:R.value)!==null&&C!==void 0?C:"",this.enabled=!u.precondition||b.contextMatchesRules(u.precondition),this.checked=void 0,u.toggled){const S=u.toggled.condition?u.toggled:{condition:u.toggled};this.checked=b.contextMatchesRules(S.condition),this.checked&&S.tooltip&&(this.tooltip=typeof S.tooltip=="string"?S.tooltip:S.tooltip.value),S.title&&(this.label=typeof S.title=="string"?S.title:S.title.value)}this.item=u,this.alt=w?new s(w,void 0,x,b,P):void 0,this._options=x,f.d.isThemeIcon(u.icon)&&(this.class=E.a.asClassName(u.icon))}dispose(){}run(...u){var w,x;let b=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(b=[...b,this._options.arg]),((x=this._options)===null||x===void 0?void 0:x.shouldForwardArgs)&&(b=[...b,...u]),this._commandService.executeCommand(this.id,...b)}};h=r([c(3,g.b),c(4,O.b)],h)},fyJ8:function(N,Y,i){"use strict";var M=i("rePB"),E=i("VTBJ"),T=i("Ff2n"),v=i("U8pU"),m=i("q1tI"),y=i.n(m),O=i("TSYQ"),g=i.n(O),e=i("c+Xe"),f=i("sR1s");function r(l){return l&&Object(v.a)(l)==="object"&&!Array.isArray(l)&&!m.isValidElement(l)}function c(l){return typeof l=="string"?!0:Object(e.c)(l)}function n(l,d){var h,s=l.prefixCls,u=l.className,w=l.record,x=l.index,b=l.dataIndex,P=l.render,R=l.children,C=l.component,S=C===void 0?"td":C,_=l.colSpan,A=l.rowSpan,j=l.fixLeft,I=l.fixRight,k=l.firstFixLeft,J=l.lastFixLeft,G=l.firstFixRight,D=l.lastFixRight,H=l.appendNode,W=l.additionalProps,L=W===void 0?{}:W,z=l.ellipsis,ie=l.align,ce=l.rowType,ue=l.isSticky,xe="".concat(s,"-cell"),Te,de;if(R)de=R;else{var ve=Object(f.b)(w,b);if(de=ve,P){var _e=P(ve,w,x);r(_e)?(de=_e.children,Te=_e.props):de=_e}}Object(v.a)(de)==="object"&&!Array.isArray(de)&&!m.isValidElement(de)&&(de=null),z&&(J||G)&&(de=m.createElement("span",{className:"".concat(xe,"-content")},de));var le=Te||{},ee=le.colSpan,U=le.rowSpan,K=le.style,X=le.className,Q=Object(T.a)(le,["colSpan","rowSpan","style","className"]),te=ee!==void 0?ee:_,ae=U!==void 0?U:A;if(te===0||ae===0)return null;var re={},$=typeof j=="number",Z=typeof I=="number";$&&(re.position="sticky",re.left=j),Z&&(re.position="sticky",re.right=I);var fe={};ie&&(fe.textAlign=ie);var me,Oe=z===!0?{showTitle:!0}:z;Oe&&(Oe.showTitle||ce==="header")&&(typeof de=="string"||typeof de=="number"?me=de.toString():m.isValidElement(de)&&typeof de.props.children=="string"&&(me=de.props.children));var He=Object(E.a)(Object(E.a)(Object(E.a)({title:me},Q),L),{},{colSpan:te&&te!==1?te:null,rowSpan:ae&&ae!==1?ae:null,className:g()(xe,u,(h={},Object(M.a)(h,"".concat(xe,"-fix-left"),$),Object(M.a)(h,"".concat(xe,"-fix-left-first"),k),Object(M.a)(h,"".concat(xe,"-fix-left-last"),J),Object(M.a)(h,"".concat(xe,"-fix-right"),Z),Object(M.a)(h,"".concat(xe,"-fix-right-first"),G),Object(M.a)(h,"".concat(xe,"-fix-right-last"),D),Object(M.a)(h,"".concat(xe,"-ellipsis"),z),Object(M.a)(h,"".concat(xe,"-with-append"),H),Object(M.a)(h,"".concat(xe,"-fix-sticky"),($||Z)&&ue),h),L.className,X),style:Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},L.style),fe),re),K),ref:c(S)?d:null});return m.createElement(S,Object.assign({},He),H,de)}var a=m.forwardRef(n);a.displayName="Cell";var o=m.memo(a,function(l,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,l.record):!1});Y.a=o},"gb/T":function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.mode.ECB=function(){var E=M.lib.BlockCipherMode.extend();return E.Encryptor=E.extend({processBlock:function(T,v){this._cipher.encryptBlock(T,v)}}),E.Decryptor=E.extend({processBlock:function(T,v){this._cipher.decryptBlock(T,v)}}),E}(),M.mode.ECB})},"h/E3":function(N,Y,i){N.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(N,Y,i){"use strict";i.d(Y,"a",function(){return k});var M=i("q1tI"),E=i.n(M),T=i("TSYQ"),v=i.n(T),m={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},y=function(D){var H=D.map(function(){return Object(M.useRef)()}),W=Object(M.useRef)();return Object(M.useEffect)(function(){var L=Date.now(),z=!1;Object.keys(H).forEach(function(ie){var ce=H[ie].current;if(!ce)return;z=!0;var ue=ce.style;ue.transitionDuration=".3s, .3s, .3s, .06s",W.current&&L-W.current<100&&(ue.transitionDuration="0s, 0s")}),z&&(W.current=Date.now())}),[H]};function O(){return O=Object.assign||function(G){for(var D=1;D<arguments.length;D++){var H=arguments[D];for(var W in H)Object.prototype.hasOwnProperty.call(H,W)&&(G[W]=H[W])}return G},O.apply(this,arguments)}function g(G,D){return n(G)||c(G,D)||f(G,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(G,D){if(!G)return;if(typeof G=="string")return r(G,D);var H=Object.prototype.toString.call(G).slice(8,-1);if(H==="Object"&&G.constructor&&(H=G.constructor.name),H==="Map"||H==="Set")return Array.from(G);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return r(G,D)}function r(G,D){(D==null||D>G.length)&&(D=G.length);for(var H=0,W=new Array(D);H<D;H++)W[H]=G[H];return W}function c(G,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(G)))return;var H=[],W=!0,L=!1,z=void 0;try{for(var ie=G[Symbol.iterator](),ce;!(W=(ce=ie.next()).done)&&!(H.push(ce.value),D&&H.length===D);W=!0);}catch(ue){L=!0,z=ue}finally{try{!W&&ie.return!=null&&ie.return()}finally{if(L)throw z}}return H}function n(G){if(Array.isArray(G))return G}function a(G,D){if(G==null)return{};var H=o(G,D),W,L;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(G);for(L=0;L<z.length;L++){if(W=z[L],D.indexOf(W)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(G,W))continue;H[W]=G[W]}}return H}function o(G,D){if(G==null)return{};var H={},W=Object.keys(G),L,z;for(z=0;z<W.length;z++){if(L=W[z],D.indexOf(L)>=0)continue;H[L]=G[L]}return H}var l=function(D){var H=D.className,W=D.percent,L=D.prefixCls,z=D.strokeColor,ie=D.strokeLinecap,ce=D.strokeWidth,ue=D.style,xe=D.trailColor,Te=D.trailWidth,de=D.transition,ve=a(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ve.gapPosition;var _e=Array.isArray(W)?W:[W],le=Array.isArray(z)?z:[z],ee=y(_e),U=g(ee,1),K=U[0],X=ce/2,Q=100-ce/2,te="M ".concat(ie==="round"?X:0,",").concat(X,`
L `).concat(ie==="round"?Q:100,",").concat(X),ae="0 0 100 ".concat(ce),re=0;return E.a.createElement("svg",O({className:v()("".concat(L,"-line"),H),viewBox:ae,preserveAspectRatio:"none",style:ue},ve),E.a.createElement("path",{className:"".concat(L,"-line-trail"),d:te,strokeLinecap:ie,stroke:xe,strokeWidth:Te||ce,fillOpacity:"0"}),_e.map(function($,Z){var fe={strokeDasharray:"".concat($,"px, 100px"),strokeDashoffset:"-".concat(re,"px"),transition:de||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=le[Z]||le[le.length-1];return re+=$,E.a.createElement("path",{key:Z,className:"".concat(L,"-line-path"),d:te,strokeLinecap:ie,stroke:me,strokeWidth:ce,fillOpacity:"0",ref:K[Z],style:fe})}))};l.defaultProps=m;var d=l;function h(){return h=Object.assign||function(G){for(var D=1;D<arguments.length;D++){var H=arguments[D];for(var W in H)Object.prototype.hasOwnProperty.call(H,W)&&(G[W]=H[W])}return G},h.apply(this,arguments)}function s(G,D){return P(G)||b(G,D)||w(G,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 w(G,D){if(!G)return;if(typeof G=="string")return x(G,D);var H=Object.prototype.toString.call(G).slice(8,-1);if(H==="Object"&&G.constructor&&(H=G.constructor.name),H==="Map"||H==="Set")return Array.from(G);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return x(G,D)}function x(G,D){(D==null||D>G.length)&&(D=G.length);for(var H=0,W=new Array(D);H<D;H++)W[H]=G[H];return W}function b(G,D){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(G)))return;var H=[],W=!0,L=!1,z=void 0;try{for(var ie=G[Symbol.iterator](),ce;!(W=(ce=ie.next()).done)&&!(H.push(ce.value),D&&H.length===D);W=!0);}catch(ue){L=!0,z=ue}finally{try{!W&&ie.return!=null&&ie.return()}finally{if(L)throw z}}return H}function P(G){if(Array.isArray(G))return G}function R(G,D){if(G==null)return{};var H=C(G,D),W,L;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(G);for(L=0;L<z.length;L++){if(W=z[L],D.indexOf(W)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(G,W))continue;H[W]=G[W]}}return H}function C(G,D){if(G==null)return{};var H={},W=Object.keys(G),L,z;for(z=0;z<W.length;z++){if(L=W[z],D.indexOf(L)>=0)continue;H[L]=G[L]}return H}var S=0;function _(G){return+G.replace("%","")}function A(G){return Array.isArray(G)?G:[G]}function j(G,D,H,W){var L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0,ie=50-W/2,ce=0,ue=-ie,xe=0,Te=-2*ie;switch(z){case"left":ce=-ie,ue=0,xe=2*ie,Te=0;break;case"right":ce=ie,ue=0,xe=-2*ie,Te=0;break;case"bottom":ue=ie,Te=2*ie;break;default:}var de="M 50,50 m ".concat(ce,",").concat(ue,`
a `).concat(ie,",").concat(ie," 0 1 1 ").concat(xe,",").concat(-Te,`
a `).concat(ie,",").concat(ie," 0 1 1 ").concat(-xe,",").concat(Te),ve=Math.PI*2*ie,_e={stroke:H,strokeDasharray:"".concat(D/100*(ve-L),"px ").concat(ve,"px"),strokeDashoffset:"-".concat(L/2+G/100*(ve-L),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:de,pathStyle:_e}}var I=function(D){var H=D.prefixCls,W=D.strokeWidth,L=D.trailWidth,z=D.gapDegree,ie=D.gapPosition,ce=D.trailColor,ue=D.strokeLinecap,xe=D.style,Te=D.className,de=D.strokeColor,ve=D.percent,_e=R(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),le=Object(M.useMemo)(function(){return S+=1,S},[]),ee=j(0,100,ce,W,z,ie),U=ee.pathString,K=ee.pathStyle,X=A(ve),Q=A(de),te=Q.find(function(fe){return Object.prototype.toString.call(fe)==="[object Object]"}),ae=y(X),re=s(ae,1),$=re[0],Z=function(){var me=0;return X.map(function(Oe,He){var Qe=Q[He]||Q[Q.length-1],ot=Object.prototype.toString.call(Qe)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(le,")"):"",st=j(me,Oe,Qe,W,z,ie);return me+=Oe,E.a.createElement("path",{key:He,className:"".concat(H,"-circle-path"),d:st.pathString,stroke:ot,strokeLinecap:ue,strokeWidth:W,opacity:Oe===0?0:1,fillOpacity:"0",style:st.pathStyle,ref:$[He]})})};return E.a.createElement("svg",h({className:v()("".concat(H,"-circle"),Te),viewBox:"0 0 100 100",style:xe},_e),te&&E.a.createElement("defs",null,E.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(le),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(te).sort(function(fe,me){return _(fe)-_(me)}).map(function(fe,me){return E.a.createElement("stop",{key:me,offset:fe,stopColor:te[fe]})}))),E.a.createElement("path",{className:"".concat(H,"-circle-trail"),d:U,stroke:ce,strokeLinecap:ue,strokeWidth:L||W,fillOpacity:"0",style:K}),Z().reverse())};I.defaultProps=m;var k=I,J={Line:d,Circle:k}},hW5Z:function(N,Y,i){N.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(N,Y,i){"use strict";i.d(Y,"a",function(){return v}),i.d(Y,"c",function(){return m}),i.d(Y,"b",function(){return y});var M=i("VTBJ"),E=i("Ff2n"),T=i("Kwbf"),v="RC_TABLE_INTERNAL_COL_DEFINE";function m(O){var g=O.expandable,e=Object(E.a)(O,["expandable"]);return"expandable"in O?Object(M.a)(Object(M.a)({},e),g):e}function y(O){return Object.keys(O).reduce(function(g,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(g[e]=O[e]),g},{})}},"iL++":function(N,Y,i){N.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(N,Y,i){"use strict";i.d(Y,"a",function(){return v});var M=i("FWmy"),E=i("746U");class T{constructor(){this.data=new Map}add(m,y){M.a(E.l(m)),M.a(E.k(y)),M.a(!this.data.has(m),"There is already an extension with this id"),this.data.set(m,y)}as(m){return this.data.get(m)||null}}const v=new T},jO9C:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.pad.Iso97971={pad:function(E,T){E.concat(M.lib.WordArray.create([2147483648],1)),M.pad.ZeroPadding.pad(E,T)},unpad:function(E){M.pad.ZeroPadding.unpad(E),E.sigBytes--}},M.pad.Iso97971})},ji0R:function(N,Y,i){N.exports=i.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(N,Y,i){"use strict";var M=i("g9YV"),E=i("wCAj"),T=i("miYZ"),v=i("tsqr"),m=i("5Dmo"),y=i("3S7+"),O=i("sRBo"),g=i("kaz8"),e=i("oBTY"),f=i("9og8"),r=i("tJVT"),c=i("k1fw"),n=i("+L6B"),a=i("2/Rp"),o=i("O3gP"),l=i("lrIw"),d=i("5NDa"),h=i("5rEg"),s=i("y8nQ"),u=i("Vl3Y"),w=i("OaEy"),x=i("2fM7"),b=i("WmNS"),P=i.n(b),R=i("q1tI"),C=i.n(R),S=i("55Ip"),_=i("wd/R"),A=i.n(_),j=i("RotF"),I=i.n(j),k=i("E7E6"),J=i.n(k),G=i("oUNq"),D=i("Nf5h"),H=i("Fhpe"),W=i.n(H),L=[];function z(xe){var Te=xe.onSearch,de=xe.schools;return C.a.createElement(u.a,{colon:!1,layout:"inline",onFinish:Te,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},C.a.createElement(u.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},C.a.createElement(x.a,{dropdownClassName:W.a.selectdown,style:{width:148}},C.a.createElement(x.a.Option,{value:"1"},"\u59D3\u540D"),C.a.createElement(x.a.Option,{value:"2"},"\u624B\u673A\u53F7"),C.a.createElement(x.a.Option,{value:"3"},"\u90AE\u7BB1"))),C.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"}]},C.a.createElement(h.a,{allowClear:!0,style:{width:170},size:"large"})),C.a.createElement(u.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},C.a.createElement(l.a,{options:de,style:{width:383},size:"large",showSearch:!0,filterOption:function(_e,le){return le.value.toUpperCase().indexOf(_e.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),C.a.createElement(u.a.Item,null,C.a.createElement(a.a,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var ie;(function(xe){xe[xe.INITDATA=0]="INITDATA",xe[xe.INITSCHOOLS=1]="INITSCHOOLS",xe[xe.SHOWLOADING=2]="SHOWLOADING",xe[xe.SELECTEDIDS=3]="SELECTEDIDS",xe[xe.SETQUERY=4]="SETQUERY",xe[xe.SETPAGE=5]="SETPAGE"})(ie||(ie={}));function ce(xe,Te){switch(Te.type){case ie.INITDATA:return Object(c.a)(Object(c.a)({},xe),Te.payload);case ie.SETQUERY:return Object(c.a)(Object(c.a)({},xe),Te.payload);case ie.SETPAGE:return Object(c.a)(Object(c.a)({},xe),{},{page:Te.payload,reload:!1});case ie.SHOWLOADING:return Object(c.a)(Object(c.a)({},xe),{},{loading:Te.payload});case ie.INITSCHOOLS:return Object(c.a)(Object(c.a)({},xe),{},{schools:Te.payload});case ie.SELECTEDIDS:return Object(c.a)(Object(c.a)({},xe),{},{selectedIds:Te.payload});default:throw new Error}}var ue={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};Y.a=function(xe){var Te=xe.onSelect,de=xe.onCancel,ve=xe.container_id,_e=xe.container_type,le=Object(R.useReducer)(ce,ue),ee=Object(r.a)(le,2),U=ee[0],K=ee[1],X=U.data,Q=U.schools,te=U.loading,ae=U.selectedIds,re=U.page,$=U.count,Z=U.query,fe=U.reload;Object(R.useEffect)(function(){function ct(){return dt.apply(this,arguments)}function dt(){return dt=Object(f.a)(P.a.mark(function Xe(){var ke,lt,Mt;return P.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(G.zb)(Object(c.a)(Object(c.a)({},Z),{},{page:re,container_type:_e,container_id:ve}));case 2:ke=he.sent,lt=ke.users,Mt=ke.user_count,K({type:ie.INITDATA,payload:{data:fe?lt:[].concat(Object(e.a)(X),Object(e.a)(lt)),count:Mt}});case 6:case"end":return he.stop()}},Xe)})),dt.apply(this,arguments)}Z&&ct()},[re,Z,fe,ve,_e]),Object(R.useEffect)(function(){function ct(){return dt.apply(this,arguments)}function dt(){return dt=Object(f.a)(P.a.mark(function Xe(){var ke,lt;return P.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Object(G.nb)({});case 2:ke=Ce.sent,lt=ke.school_names,K({type:ie.INITSCHOOLS,payload:lt.map(function(he){return{value:he}})});case 5:case"end":return Ce.stop()}},Xe)})),dt.apply(this,arguments)}ct()},[]);var me=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(dt,Xe){return C.a.createElement(g.a,{value:Xe.numid,checked:ae.includes(Xe.numid),disabled:!!dt})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(dt,Xe){return C.a.createElement("div",null,C.a.createElement(y.a,{placement:"bottom",title:dt},C.a.createElement(S.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Xe.login),target:"_blank"},dt||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(dt){return C.a.createElement(y.a,{placement:"bottom",title:dt},C.a.createElement("span",{style:{color:"#000000"}},dt||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(dt){return C.a.createElement(y.a,{placement:"bottom",title:dt},C.a.createElement("span",{style:{color:"#000000"}},dt||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(dt){return C.a.createElement(y.a,{placement:"bottom",title:dt},C.a.createElement("span",{style:{color:"#000000"}},dt||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(dt){return C.a.createElement(y.a,{placement:"bottom",title:dt},C.a.createElement("span",{style:{color:"#000000"}},dt||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(dt){return C.a.createElement(y.a,{placement:"bottom",title:dt},C.a.createElement("span",{style:{color:"#000000"}},dt||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(dt){return C.a.createElement("span",{style:{color:"#000000"}},dt?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(dt){return C.a.createElement(y.a,{placement:"bottom",title:dt?A()(dt).format("YYYY-MM-DD HH:mm"):"- -"},C.a.createElement("span",{style:{color:"#000000"}},dt?A()(dt).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(dt){if(dt===1)return C.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Oe(ct){K({type:ie.SETQUERY,payload:{page:1,reload:!0,query:ct}})}function He(ct){K({type:ie.SETPAGE,payload:ct})}function Qe(ct){var dt=ae.indexOf(ct);dt>=0?ae.splice(dt,1):ae.push(ct),K({type:ie.SELECTEDIDS,payload:Object(e.a)(ae)})}function ot(){ae.length===0?v.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(ae,ve),K({type:ie.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var st=$>re*10;return C.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},C.a.createElement(z,{onSearch:Oe,schools:Q}),Z?C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"flexd-table-header mt20"},C.a.createElement(D.g,null,C.a.createElement(E.a,{pagination:!1,dataSource:L,columns:me}))),C.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},C.a.createElement(I.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:He,hasMore:st,useWindow:!1},C.a.createElement(D.g,null,C.a.createElement(E.a,{loading:te,showHeader:!1,pagination:!1,dataSource:X,columns:me,onRow:function(dt){return{onClick:function(ke){dt.added!==1&&Qe(dt.numid)}}}})))),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(a.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:de},"\u53D6\u6D88"),C.a.createElement(a.a,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:ot},"\u786E\u5B9A"))):C.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},C.a.createElement("img",{src:J.a,width:"100",alt:""}),C.a.createElement("br",null),C.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(N,Y,i){"use strict";i.d(Y,"a",function(){return qr});var M=i("rePB"),E=i("ODXe"),T=i("Ff2n"),v=i("VTBJ"),m=i("q1tI"),y=i("TSYQ"),O=i.n(y),g=i("Zm9Q"),e=i("6cGi"),f=i("KQm4"),r=i("xEkU"),c=i.n(r),n=i("t23M");function a(Fe){var tt=Object(m.useRef)(),nt=Object(m.useRef)(!1);function Ye(){for(var Pe=arguments.length,ze=new Array(Pe),Re=0;Re<Pe;Re++)ze[Re]=arguments[Re];nt.current||(c.a.cancel(tt.current),tt.current=c()(function(){Fe.apply(void 0,ze)}))}return Object(m.useEffect)(function(){return function(){nt.current=!0,c.a.cancel(tt.current)}},[]),Ye}function o(Fe){var tt=Object(m.useRef)([]),nt=Object(m.useState)({}),Ye=Object(E.a)(nt,2),Pe=Ye[1],ze=Object(m.useRef)(typeof Fe=="function"?Fe():Fe),Re=a(function(){var qe=ze.current;tt.current.forEach(function(ht){qe=ht(qe)}),tt.current=[],ze.current=qe,Pe({})});function Ze(qe){tt.current.push(qe),Re()}return[ze.current,Ze]}var l=i("4IlW");function d(Fe,tt){var nt,Ye=Fe.prefixCls,Pe=Fe.id,ze=Fe.active,Re=Fe.rtl,Ze=Fe.tab,qe=Ze.key,ht=Ze.tab,et=Ze.disabled,wt=Ze.closeIcon,Pt=Fe.tabBarGutter,Gt=Fe.tabPosition,kt=Fe.closable,ln=Fe.renderWrapper,On=Fe.removeAriaLabel,er=Fe.editable,Zn=Fe.onClick,Tr=Fe.onRemove,dr=Fe.onFocus,Bn="".concat(Ye,"-tab");m.useEffect(function(){return Tr},[]);var rn={};Gt==="top"||Gt==="bottom"?rn[Re?"marginLeft":"marginRight"]=Pt:rn.marginBottom=Pt;var yn=er&&kt!==!1&&!et;function tn(bn){if(et)return;Zn(bn)}function Er(bn){bn.preventDefault(),bn.stopPropagation(),er.onEdit("remove",{key:qe,event:bn})}var zn=m.createElement("div",{key:qe,ref:tt,className:O()(Bn,(nt={},Object(M.a)(nt,"".concat(Bn,"-with-remove"),yn),Object(M.a)(nt,"".concat(Bn,"-active"),ze),Object(M.a)(nt,"".concat(Bn,"-disabled"),et),nt)),style:rn,onClick:tn},m.createElement("div",{role:"tab","aria-selected":ze,id:Pe&&"".concat(Pe,"-tab-").concat(qe),className:"".concat(Bn,"-btn"),"aria-controls":Pe&&"".concat(Pe,"-panel-").concat(qe),"aria-disabled":et,tabIndex:et?null:0,onClick:function(In){In.stopPropagation(),tn(In)},onKeyDown:function(In){[l.a.SPACE,l.a.ENTER].includes(In.which)&&(In.preventDefault(),tn(In))},onFocus:dr},ht),yn&&m.createElement("button",{type:"button","aria-label":On||"remove",tabIndex:0,className:"".concat(Bn,"-remove"),onClick:function(In){In.stopPropagation(),Er(In)}},wt||er.removeIcon||"\xD7"));return ln&&(zn=ln(zn)),zn}var h=m.forwardRef(d),s={width:0,height:0,left:0,top:0};function u(Fe,tt,nt){return Object(m.useMemo)(function(){for(var Ye,Pe=new Map,ze=tt.get((Ye=Fe[0])===null||Ye===void 0?void 0:Ye.key)||s,Re=ze.left+ze.width,Ze=0;Ze<Fe.length;Ze+=1){var qe=Fe[Ze].key,ht=tt.get(qe);if(!ht){var et;ht=tt.get((et=Fe[Ze-1])===null||et===void 0?void 0:et.key)||s}var wt=Pe.get(qe)||Object(v.a)({},ht);wt.right=Re-wt.left-wt.width,Pe.set(qe,wt)}return Pe},[Fe.map(function(Ye){return Ye.key}).join("_"),tt,nt])}var w={width:0,height:0,left:0,top:0,right:0};function x(Fe,tt,nt,Ye,Pe){var ze=Pe.tabs,Re=Pe.tabPosition,Ze=Pe.rtl,qe,ht,et;["top","bottom"].includes(Re)?(qe="width",ht=Ze?"right":"left",et=Math.abs(tt.left)):(qe="height",ht="top",et=-tt.top);var wt=tt[qe],Pt=nt[qe],Gt=Ye[qe],kt=wt;return Pt+Gt>wt&&(kt=wt-Gt),Object(m.useMemo)(function(){if(!ze.length)return[0,0];for(var ln=ze.length,On=ln,er=0;er<ln;er+=1){var Zn=Fe.get(ze[er].key)||w;if(Zn[ht]+Zn[qe]>et+kt){On=er-1;break}}for(var Tr=0,dr=ln-1;dr>=0;dr-=1){var Bn=Fe.get(ze[dr].key)||w;if(Bn[ht]<et){Tr=dr+1;break}}return[Tr,On]},[Fe,et,kt,Re,ze.map(function(ln){return ln.key}).join("_"),Ze])}var b=i("wx14"),P=i("1OyB"),R=i("vuIU"),C=i("JX7q"),S=i("Ji7U"),_=i("LK+K"),A=i("I8Z2"),j=i("bT9E"),I=i("2GS6"),k=i("Gytx"),J=i.n(k),G=i("U8pU"),D=/iPhone/i,H=/iPod/i,W=/iPad/i,L=/\bAndroid(?:.+)Mobile\b/i,z=/Android/i,ie=/\bAndroid(?:.+)SD4930UR\b/i,ce=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,ue=/Windows Phone/i,xe=/\bWindows(?:.+)ARM\b/i,Te=/BlackBerry/i,de=/BB10/i,ve=/Opera Mini/i,_e=/\b(CriOS|Chrome)(?:.+)Mobile/i,le=/Mobile(?:.+)Firefox\b/i;function ee(Fe,tt){return Fe.test(tt)}function U(Fe){var tt=Fe||(typeof navigator!="undefined"?navigator.userAgent:""),nt=(tt||"").split("[FBAN");if(typeof nt[1]!="undefined"){var Ye=nt,Pe=Object(E.a)(Ye,1);tt=Pe[0]}if(nt=tt.split("Twitter"),typeof nt[1]!="undefined"){var ze=nt,Re=Object(E.a)(ze,1);tt=Re[0]}var Ze={apple:{phone:ee(D,tt)&&!ee(ue,tt),ipod:ee(H,tt),tablet:!ee(D,tt)&&ee(W,tt)&&!ee(ue,tt),device:(ee(D,tt)||ee(H,tt)||ee(W,tt))&&!ee(ue,tt)},amazon:{phone:ee(ie,tt),tablet:!ee(ie,tt)&&ee(ce,tt),device:ee(ie,tt)||ee(ce,tt)},android:{phone:!ee(ue,tt)&&ee(ie,tt)||!ee(ue,tt)&&ee(L,tt),tablet:!ee(ue,tt)&&!ee(ie,tt)&&!ee(L,tt)&&(ee(ce,tt)||ee(z,tt)),device:!ee(ue,tt)&&(ee(ie,tt)||ee(ce,tt)||ee(L,tt)||ee(z,tt))||ee(/\bokhttp\b/i,tt)},windows:{phone:ee(ue,tt),tablet:ee(xe,tt),device:ee(ue,tt)||ee(xe,tt)},other:{blackberry:ee(Te,tt),blackberry10:ee(de,tt),opera:ee(ve,tt),firefox:ee(le,tt),chrome:ee(_e,tt),device:ee(Te,tt)||ee(de,tt)||ee(ve,tt)||ee(le,tt)||ee(_e,tt)},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 K=Object(v.a)(Object(v.a)({},U()),{},{isMobile:U}),X=K;function Q(){}function te(Fe,tt,nt){var Ye=tt||"";return Fe.key||"".concat(Ye,"item_").concat(nt)}function ae(Fe){return"".concat(Fe,"-menu-")}function re(Fe,tt){var nt=-1;m.Children.forEach(Fe,function(Ye){nt+=1,Ye&&Ye.type&&Ye.type.isMenuItemGroup?m.Children.forEach(Ye.props.children,function(Pe){nt+=1,tt(Pe,nt)}):tt(Ye,nt)})}function $(Fe,tt,nt){if(!Fe||nt.find)return;m.Children.forEach(Fe,function(Ye){if(Ye){var Pe=Ye.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;tt.indexOf(Ye.key)!==-1?nt.find=!0:Ye.props.children&&$(Ye.props.children,tt,nt)}})}var Z=["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"],fe=function(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ye=tt&&typeof tt.getBoundingClientRect=="function"&&tt.getBoundingClientRect().width;if(Ye){if(nt){var Pe=getComputedStyle(tt),ze=Pe.marginLeft,Re=Pe.marginRight;Ye+=+ze.replace("px","")+ +Re.replace("px","")}Ye=+Ye.toFixed(6)}return Ye||0},me=function(tt,nt,Ye){tt&&Object(G.a)(tt.style)==="object"&&(tt.style[nt]=Ye)},Oe=function(){return X.any},He=i("bdgK"),Qe=i("i8i4"),ot=i.n(Qe),st=i("wgJM"),ct=i("l4aY"),dt=i("m+aA"),Xe=i("c+Xe"),ke=i("zT1h"),lt=i("QC+M");function Mt(Fe,tt,nt){return nt?Fe[0]===tt[0]:Fe[0]===tt[0]&&Fe[1]===tt[1]}function Ce(Fe,tt,nt){var Ye=Fe[tt]||{};return Object(v.a)(Object(v.a)({},Ye),nt)}function he(Fe,tt,nt,Ye){for(var Pe=nt.points,ze=Object.keys(Fe),Re=0;Re<ze.length;Re+=1){var Ze=ze[Re];if(Mt(Fe[Ze].points,Pe,Ye))return"".concat(tt,"-placement-").concat(Ze)}return""}var be=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Fe=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(Fe)||/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(Fe==null?void 0:Fe.substr(0,4)))},Ee=i("MNnm");function Ne(Fe,tt){var nt={};return nt[Fe.toLowerCase()]=tt.toLowerCase(),nt["Webkit".concat(Fe)]="webkit".concat(tt),nt["Moz".concat(Fe)]="moz".concat(tt),nt["ms".concat(Fe)]="MS".concat(tt),nt["O".concat(Fe)]="o".concat(tt.toLowerCase()),nt}function we(Fe,tt){var nt={animationend:Ne("Animation","AnimationEnd"),transitionend:Ne("Transition","TransitionEnd")};return Fe&&("AnimationEvent"in tt||delete nt.animationend.animation,"TransitionEvent"in tt||delete nt.transitionend.transition),nt}var Ae=we(Object(Ee.a)(),typeof window!="undefined"?window:{}),Ue={};if(Object(Ee.a)()){var We=document.createElement("div");Ue=We.style}var Je={};function $e(Fe){if(Je[Fe])return Je[Fe];var tt=Ae[Fe];if(tt)for(var nt=Object.keys(tt),Ye=nt.length,Pe=0;Pe<Ye;Pe+=1){var ze=nt[Pe];if(Object.prototype.hasOwnProperty.call(tt,ze)&&ze in Ue)return Je[Fe]=tt[ze],Je[Fe]}return""}var pt=$e("animationend"),Jt=$e("transitionend"),fn=!!(pt&&Jt),qt=pt||"animationend",St=Jt||"transitionend";function Be(Fe,tt){if(!Fe)return null;if(Object(G.a)(Fe)==="object"){var nt=tt.replace(/-\w/g,function(Ye){return Ye[1].toUpperCase()});return Fe[nt]}return"".concat(Fe,"-").concat(tt)}var at="none",it="appear",Me="enter",Ve="leave",xt="none",_t="prepare",At="start",Ot="active",Ct="end";function Bt(Fe){var tt=Object(m.useRef)(!1),nt=Object(m.useState)(Fe),Ye=Object(E.a)(nt,2),Pe=Ye[0],ze=Ye[1];function Re(Ze){tt.current||ze(Ze)}return Object(m.useEffect)(function(){return function(){tt.current=!0}},[]),[Pe,Re]}var It=Object(Ee.a)()?m.useLayoutEffect:m.useEffect,yt=It,zt=function(){var Fe=m.useRef(null);function tt(){st.a.cancel(Fe.current)}function nt(Ye){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;tt();var ze=Object(st.a)(function(){Pe<=1?Ye({isCanceled:function(){return ze!==Fe.current}}):nt(Ye,Pe-1)});Fe.current=ze}return m.useEffect(function(){return function(){tt()}},[]),[nt,tt]},sn=[_t,At,Ot,Ct],hn=!1,un=!0;function Kt(Fe){return Fe===Ot||Fe===Ct}var gn=function(Fe,tt){var nt=m.useState(xt),Ye=Object(E.a)(nt,2),Pe=Ye[0],ze=Ye[1],Re=zt(),Ze=Object(E.a)(Re,2),qe=Ze[0],ht=Ze[1];function et(){ze(_t)}return yt(function(){if(Pe!==xt&&Pe!==Ct){var wt=sn.indexOf(Pe),Pt=sn[wt+1],Gt=tt(Pe);Gt===hn?ze(Pt):qe(function(kt){function ln(){if(kt.isCanceled())return;ze(Pt)}Gt===!0?ln():Promise.resolve(Gt).then(ln)})}},[Fe,Pe]),m.useEffect(function(){return function(){ht()}},[]),[et,Pe]},Rn=function(Fe){var tt=Object(m.useRef)(),nt=Object(m.useRef)(Fe);nt.current=Fe;var Ye=m.useCallback(function(Re){nt.current(Re)},[]);function Pe(Re){Re&&(Re.removeEventListener(St,Ye),Re.removeEventListener(qt,Ye))}function ze(Re){tt.current&&tt.current!==Re&&Pe(tt.current),Re&&Re!==tt.current&&(Re.addEventListener(St,Ye),Re.addEventListener(qt,Ye),tt.current=Re)}return m.useEffect(function(){return function(){Pe(tt.current)}},[]),[ze,Pe]};function Cn(Fe,tt,nt,Ye){var Pe=Ye.motionEnter,ze=Pe===void 0?!0:Pe,Re=Ye.motionAppear,Ze=Re===void 0?!0:Re,qe=Ye.motionLeave,ht=qe===void 0?!0:qe,et=Ye.motionDeadline,wt=Ye.motionLeaveImmediately,Pt=Ye.onAppearPrepare,Gt=Ye.onEnterPrepare,kt=Ye.onLeavePrepare,ln=Ye.onAppearStart,On=Ye.onEnterStart,er=Ye.onLeaveStart,Zn=Ye.onAppearActive,Tr=Ye.onEnterActive,dr=Ye.onLeaveActive,Bn=Ye.onAppearEnd,rn=Ye.onEnterEnd,yn=Ye.onLeaveEnd,tn=Ye.onVisibleChanged,Er=Bt(),zn=Object(E.a)(Er,2),bn=zn[0],In=zn[1],Fr=Bt(at),Qn=Object(E.a)(Fr,2),Ln=Qn[0],cr=Qn[1],Lr=Bt(null),Nr=Object(E.a)(Lr,2),$r=Nr[0],fa=Nr[1],ia=Object(m.useRef)(!1),na=Object(m.useRef)(null),kr=Object(m.useRef)(!1),Wa=Object(m.useRef)(null);function mi(){var ja=nt();return ja||Wa.current}var Qr=Object(m.useRef)(!1);function zr(ja){var Da=mi();if(ja&&!ja.deadline&&ja.target!==Da)return;var $a;Ln===it&&Qr.current?$a=Bn==null?void 0:Bn(Da,ja):Ln===Me&&Qr.current?$a=rn==null?void 0:rn(Da,ja):Ln===Ve&&Qr.current&&($a=yn==null?void 0:yn(Da,ja)),$a!==!1&&!kr.current&&(cr(at),fa(null))}var Xr=Rn(zr),Vr=Object(E.a)(Xr,1),ha=Vr[0],sa=m.useMemo(function(){var ja,Da,$a;switch(Ln){case"appear":return ja={},Object(M.a)(ja,_t,Pt),Object(M.a)(ja,At,ln),Object(M.a)(ja,Ot,Zn),ja;case"enter":return Da={},Object(M.a)(Da,_t,Gt),Object(M.a)(Da,At,On),Object(M.a)(Da,Ot,Tr),Da;case"leave":return $a={},Object(M.a)($a,_t,kt),Object(M.a)($a,At,er),Object(M.a)($a,Ot,dr),$a;default:return{}}},[Ln]),_a=gn(Ln,function(ja){if(ja===_t){var Da=sa[_t];return Da?Da(mi()):hn}if(Pa in sa){var $a;fa((($a=sa[Pa])===null||$a===void 0?void 0:$a.call(sa,mi(),null))||null)}return Pa===Ot&&(ha(mi()),et>0&&(clearTimeout(na.current),na.current=setTimeout(function(){zr({deadline:!0})},et))),un}),Ha=Object(E.a)(_a,2),Ua=Ha[0],Pa=Ha[1],Ei=Kt(Pa);Qr.current=Ei,yt(function(){In(tt);var ja=ia.current;if(ia.current=!0,!Fe)return;var Da;!ja&&tt&&Ze&&(Da=it),ja&&tt&&ze&&(Da=Me),(ja&&!tt&&ht||!ja&&wt&&!tt&&ht)&&(Da=Ve),Da&&(cr(Da),Ua())},[tt]),Object(m.useEffect)(function(){(Ln===it&&!Ze||Ln===Me&&!ze||Ln===Ve&&!ht)&&cr(at)},[Ze,ze,ht]),Object(m.useEffect)(function(){return function(){clearTimeout(na.current),kr.current=!0}},[]),Object(m.useEffect)(function(){bn!==void 0&&Ln===at&&(tn==null||tn(bn))},[bn,Ln]);var Ti=$r;return sa[_t]&&Pa===At&&(Ti=Object(v.a)({transition:"none"},Ti)),[Ln,Pa,Ti,bn!=null?bn:tt]}var an=function(Fe){Object(S.a)(nt,Fe);var tt=Object(_.a)(nt);function nt(){return Object(P.a)(this,nt),tt.apply(this,arguments)}return Object(R.a)(nt,[{key:"render",value:function(){return this.props.children}}]),nt}(m.Component),_n=an;function vn(Fe){var tt=Fe;Object(G.a)(Fe)==="object"&&(tt=Fe.transitionSupport);function nt(Pe){return!!(Pe.motionName&&tt)}var Ye=m.forwardRef(function(Pe,ze){var Re=Pe.visible,Ze=Re===void 0?!0:Re,qe=Pe.removeOnLeave,ht=qe===void 0?!0:qe,et=Pe.forceRender,wt=Pe.children,Pt=Pe.motionName,Gt=Pe.leavedClassName,kt=Pe.eventProps,ln=nt(Pe),On=Object(m.useRef)(),er=Object(m.useRef)();function Zn(){try{return Object(dt.a)(On.current||er.current)}catch(cr){return null}}var Tr=Cn(ln,Ze,Zn,Pe),dr=Object(E.a)(Tr,4),Bn=dr[0],rn=dr[1],yn=dr[2],tn=dr[3],Er=m.useRef(tn);tn&&(Er.current=!0);var zn=Object(m.useRef)(ze);zn.current=ze;var bn=m.useCallback(function(cr){On.current=cr,Object(Xe.b)(zn.current,cr)},[]),In,Fr=Object(v.a)(Object(v.a)({},kt),{},{visible:Ze});if(!wt)In=null;else if(Bn===at||!nt(Pe))tn?In=wt(Object(v.a)({},Fr),bn):!ht&&Er.current?In=wt(Object(v.a)(Object(v.a)({},Fr),{},{className:Gt}),bn):et?In=wt(Object(v.a)(Object(v.a)({},Fr),{},{style:{display:"none"}}),bn):In=null;else{var Qn,Ln;rn===_t?Ln="prepare":Kt(rn)?Ln="active":rn===At&&(Ln="start"),In=wt(Object(v.a)(Object(v.a)({},Fr),{},{className:O()(Be(Pt,Bn),(Qn={},Object(M.a)(Qn,Be(Pt,"".concat(Bn,"-").concat(Ln)),Ln),Object(M.a)(Qn,Pt,typeof Pt=="string"),Qn)),style:yn}),bn)}return m.createElement(_n,{ref:er},In)});return Ye.displayName="CSSMotion",Ye}var Ft=vn(fn),Nt="add",pn="keep",qn="remove",Qt="removed";function Vn(Fe){var tt;return Fe&&Object(G.a)(Fe)==="object"&&"key"in Fe?tt=Fe:tt={key:Fe},Object(v.a)(Object(v.a)({},tt),{},{key:String(tt.key)})}function Gn(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Fe.map(Vn)}function xr(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],nt=[],Ye=0,Pe=tt.length,ze=Gn(Fe),Re=Gn(tt);ze.forEach(function(ht){for(var et=!1,wt=Ye;wt<Pe;wt+=1){var Pt=Re[wt];if(Pt.key===ht.key){Ye<wt&&(nt=nt.concat(Re.slice(Ye,wt).map(function(Gt){return Object(v.a)(Object(v.a)({},Gt),{},{status:Nt})})),Ye=wt),nt.push(Object(v.a)(Object(v.a)({},Pt),{},{status:pn})),Ye+=1,et=!0;break}}et||nt.push(Object(v.a)(Object(v.a)({},ht),{},{status:qn}))}),Ye<Pe&&(nt=nt.concat(Re.slice(Ye).map(function(ht){return Object(v.a)(Object(v.a)({},ht),{},{status:Nt})})));var Ze={};nt.forEach(function(ht){var et=ht.key;Ze[et]=(Ze[et]||0)+1});var qe=Object.keys(Ze).filter(function(ht){return Ze[ht]>1});return qe.forEach(function(ht){nt=nt.filter(function(et){var wt=et.key,Pt=et.status;return wt!==ht||Pt!==qn}),nt.forEach(function(et){et.key===ht&&(et.status=pn)})}),nt}var Sn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Pn(Fe){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ft,nt=function(Ye){Object(S.a)(ze,Ye);var Pe=Object(_.a)(ze);function ze(){var Re;return Object(P.a)(this,ze),Re=Pe.apply(this,arguments),Re.state={keyEntities:[]},Re.removeKey=function(Ze){Re.setState(function(qe){var ht=qe.keyEntities;return{keyEntities:ht.map(function(et){return et.key!==Ze?et:Object(v.a)(Object(v.a)({},et),{},{status:Qt})})}})},Re}return Object(R.a)(ze,[{key:"render",value:function(){var Ze=this,qe=this.state.keyEntities,ht=this.props,et=ht.component,wt=ht.children,Pt=ht.onVisibleChanged,Gt=Object(T.a)(ht,["component","children","onVisibleChanged"]),kt=et||m.Fragment,ln={};return Sn.forEach(function(On){ln[On]=Gt[On],delete Gt[On]}),delete Gt.keys,m.createElement(kt,Gt,qe.map(function(On){var er=On.status,Zn=Object(T.a)(On,["status"]),Tr=er===Nt||er===pn;return m.createElement(tt,Object(b.a)({},ln,{key:Zn.key,visible:Tr,eventProps:Zn,onVisibleChanged:function(Bn){Pt==null||Pt(Bn,{key:Zn.key}),Bn||Ze.removeKey(Zn.key)}}),wt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,qe){var ht=Ze.keys,et=qe.keyEntities,wt=Gn(ht),Pt=xr(et,wt);return{keyEntities:Pt.filter(function(Gt){var kt=et.find(function(ln){var On=ln.key;return Gt.key===On});return!(kt&&kt.status===Qt&&Gt.status===qn)})}}}]),ze}(m.Component);return nt.defaultProps={component:"div"},nt}var Yt=Pn(fn),Hr=Ft;function ar(Fe){var tt=Fe.prefixCls,nt=Fe.motion,Ye=Fe.animation,Pe=Fe.transitionName;return nt||(Ye?{motionName:"".concat(tt,"-").concat(Ye)}:Pe?{motionName:Pe}:null)}function ma(Fe){var tt=Fe.prefixCls,nt=Fe.visible,Ye=Fe.zIndex,Pe=Fe.mask,ze=Fe.maskMotion,Re=Fe.maskAnimation,Ze=Fe.maskTransitionName;if(!Pe)return null;var qe={};return(ze||Ze||Re)&&(qe=Object(v.a)({motionAppear:!0},ar({motion:ze,prefixCls:tt,transitionName:Ze,animation:Re}))),m.createElement(Hr,Object(b.a)({},qe,{visible:nt,removeOnLeave:!0}),function(ht){var et=ht.className;return m.createElement("div",{style:{zIndex:Ye},className:O()("".concat(tt,"-mask"),et)})})}var Br=i("9mu1"),Na=i("o0o1"),Xa=i.n(Na),ua=i("HaE+"),Zr=["measure","align",null,"motion"],Sr=function(Fe,tt){var nt=Object(m.useState)(null),Ye=Object(E.a)(nt,2),Pe=Ye[0],ze=Ye[1],Re=Object(m.useRef)(),Ze=Object(m.useRef)(!1);function qe(wt){Ze.current||ze(wt)}function ht(){st.a.cancel(Re.current)}function et(wt){ht(),Re.current=Object(st.a)(function(){qe(function(Pt){switch(Pe){case"align":return"motion";case"motion":return"stable";default:}return Pt}),wt==null||wt()})}return Object(m.useEffect)(function(){qe("measure")},[Fe]),Object(m.useEffect)(function(){switch(Pe){case"measure":tt();break;default:}Pe&&(Re.current=Object(st.a)(Object(ua.a)(Xa.a.mark(function wt(){var Pt,Gt;return Xa.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:Pt=Zr.indexOf(Pe),Gt=Zr[Pt+1],Gt&&Pt!==-1&&qe(Gt);case 3:case"end":return ln.stop()}},wt)}))))},[Pe]),Object(m.useEffect)(function(){return function(){Ze.current=!0,ht()}},[]),[Pe,et]},Oa=function(Fe){var tt=m.useState({width:0,height:0}),nt=Object(E.a)(tt,2),Ye=nt[0],Pe=nt[1];function ze(Ze){Pe({width:Ze.offsetWidth,height:Ze.offsetHeight})}var Re=m.useMemo(function(){var Ze={};if(Fe){var qe=Ye.width,ht=Ye.height;Fe.indexOf("height")!==-1&&ht?Ze.height=ht:Fe.indexOf("minHeight")!==-1&&ht&&(Ze.minHeight=ht),Fe.indexOf("width")!==-1&&qe?Ze.width=qe:Fe.indexOf("minWidth")!==-1&&qe&&(Ze.minWidth=qe)}return Ze},[Fe,Ye]);return[Re,ze]},Ma=m.forwardRef(function(Fe,tt){var nt=Fe.visible,Ye=Fe.prefixCls,Pe=Fe.className,ze=Fe.style,Re=Fe.children,Ze=Fe.zIndex,qe=Fe.stretch,ht=Fe.destroyPopupOnHide,et=Fe.forceRender,wt=Fe.align,Pt=Fe.point,Gt=Fe.getRootDomNode,kt=Fe.getClassNameFromAlign,ln=Fe.onAlign,On=Fe.onMouseEnter,er=Fe.onMouseLeave,Zn=Fe.onMouseDown,Tr=Fe.onTouchStart,dr=Object(m.useRef)(),Bn=Object(m.useRef)(),rn=Object(m.useState)(),yn=Object(E.a)(rn,2),tn=yn[0],Er=yn[1],zn=Oa(qe),bn=Object(E.a)(zn,2),In=bn[0],Fr=bn[1];function Qn(){qe&&Fr(Gt())}var Ln=Sr(nt,Qn),cr=Object(E.a)(Ln,2),Lr=cr[0],Nr=cr[1],$r=Object(m.useRef)();function fa(){return Pt||Gt}function ia(){var Xr;(Xr=dr.current)===null||Xr===void 0||Xr.forceAlign()}function na(Xr,Vr){var ha=kt(Vr);tn!==ha&&Er(ha),Lr==="align"&&(tn!==ha?Promise.resolve().then(function(){ia()}):Nr(function(){var sa;(sa=$r.current)===null||sa===void 0||sa.call($r)}),ln==null||ln(Xr,Vr))}var kr=Object(v.a)({},ar(Fe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Xr){var Vr=kr[Xr];kr[Xr]=function(ha,sa){return Nr(),Vr==null?void 0:Vr(ha,sa)}});function Wa(){return new Promise(function(Xr){$r.current=Xr})}m.useEffect(function(){!kr.motionName&&Lr==="motion"&&Nr()},[kr.motionName,Lr]),m.useImperativeHandle(tt,function(){return{forceAlign:ia,getElement:function(){return Bn.current}}});var mi=Object(v.a)(Object(v.a)({},In),{},{zIndex:Ze,opacity:Lr==="motion"||Lr==="stable"||!nt?void 0:0,pointerEvents:Lr==="stable"?void 0:"none"},ze),Qr=!0;(wt==null?void 0:wt.points)&&(Lr==="align"||Lr==="stable")&&(Qr=!1);var zr=Re;return m.Children.count(Re)>1&&(zr=m.createElement("div",{className:"".concat(Ye,"-content")},Re)),m.createElement(Hr,Object(b.a)({visible:nt,ref:Bn,leavedClassName:"".concat(Ye,"-hidden")},kr,{onAppearPrepare:Wa,onEnterPrepare:Wa,removeOnLeave:ht,forceRender:et}),function(Xr,Vr){var ha=Xr.className,sa=Xr.style,_a=O()(Ye,Pe,tn,ha);return m.createElement(Br.a,{target:fa(),key:"popup",ref:dr,monitorWindowResize:!0,disabled:Qr,align:wt,onAlign:na},m.createElement("div",{ref:Vr,className:_a,onMouseEnter:On,onMouseLeave:er,onMouseDownCapture:Zn,onTouchStartCapture:Tr,style:Object(v.a)(Object(v.a)({},sa),mi)},zr))})});Ma.displayName="PopupInner";var Sa=Ma,ca=m.forwardRef(function(Fe,tt){var nt=Fe.prefixCls,Ye=Fe.visible,Pe=Fe.zIndex,ze=Fe.children,Re=Fe.mobile;Re=Re===void 0?{}:Re;var Ze=Re.popupClassName,qe=Re.popupStyle,ht=Re.popupMotion,et=ht===void 0?{}:ht,wt=Re.popupRender,Pt=m.useRef();m.useImperativeHandle(tt,function(){return{forceAlign:function(){},getElement:function(){return Pt.current}}});var Gt=Object(v.a)({zIndex:Pe},qe),kt=ze;return m.Children.count(ze)>1&&(kt=m.createElement("div",{className:"".concat(nt,"-content")},ze)),wt&&(kt=wt(kt)),m.createElement(Hr,Object(b.a)({visible:Ye,ref:Pt,removeOnLeave:!0},et),function(ln,On){var er=ln.className,Zn=ln.style,Tr=O()(nt,Ze,er);return m.createElement("div",{ref:On,className:Tr,style:Object(v.a)(Object(v.a)({},Zn),Gt)},kt)})});ca.displayName="MobilePopupInner";var ka=ca,Ga=["visible","mobile"],La=m.forwardRef(function(Fe,tt){var nt=Fe.visible,Ye=Fe.mobile,Pe=Object(T.a)(Fe,Ga),ze=Object(m.useState)(nt),Re=Object(E.a)(ze,2),Ze=Re[0],qe=Re[1],ht=Object(m.useState)(!1),et=Object(E.a)(ht,2),wt=et[0],Pt=et[1],Gt=Object(v.a)(Object(v.a)({},Pe),{},{visible:Ze});Object(m.useEffect)(function(){qe(nt),nt&&Ye&&Pt(be())},[nt,Ye]);var kt=wt?m.createElement(ka,Object(b.a)({},Gt,{mobile:Ye,ref:tt})):m.createElement(Sa,Object(b.a)({},Gt,{ref:tt}));return m.createElement("div",null,m.createElement(ma,Gt),kt)});La.displayName="Popup";var Za=La,Ia=m.createContext(null),xa=Ia;function Fa(){}function li(){return""}function yi(Fe){return Fe?Fe.ownerDocument:window.document}var ga=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function va(Fe){var tt=function(nt){Object(S.a)(Pe,nt);var Ye=Object(_.a)(Pe);function Pe(ze){var Re;Object(P.a)(this,Pe),Re=Ye.call(this,ze),Re.popupRef=m.createRef(),Re.triggerRef=m.createRef(),Re.attachId=void 0,Re.clickOutsideHandler=void 0,Re.touchOutsideHandler=void 0,Re.contextMenuOutsideHandler1=void 0,Re.contextMenuOutsideHandler2=void 0,Re.mouseDownTimeout=void 0,Re.focusTime=void 0,Re.preClickTime=void 0,Re.preTouchTime=void 0,Re.delayTimer=void 0,Re.hasPopupMouseDown=void 0,Re.onMouseEnter=function(qe){var ht=Re.props.mouseEnterDelay;Re.fireEvents("onMouseEnter",qe),Re.delaySetPopupVisible(!0,ht,ht?null:qe)},Re.onMouseMove=function(qe){Re.fireEvents("onMouseMove",qe),Re.setPoint(qe)},Re.onMouseLeave=function(qe){Re.fireEvents("onMouseLeave",qe),Re.delaySetPopupVisible(!1,Re.props.mouseLeaveDelay)},Re.onPopupMouseEnter=function(){Re.clearDelayTimer()},Re.onPopupMouseLeave=function(qe){var ht;if(qe.relatedTarget&&!qe.relatedTarget.setTimeout&&Object(ct.a)((ht=Re.popupRef.current)===null||ht===void 0?void 0:ht.getElement(),qe.relatedTarget))return;Re.delaySetPopupVisible(!1,Re.props.mouseLeaveDelay)},Re.onFocus=function(qe){Re.fireEvents("onFocus",qe),Re.clearDelayTimer(),Re.isFocusToShow()&&(Re.focusTime=Date.now(),Re.delaySetPopupVisible(!0,Re.props.focusDelay))},Re.onMouseDown=function(qe){Re.fireEvents("onMouseDown",qe),Re.preClickTime=Date.now()},Re.onTouchStart=function(qe){Re.fireEvents("onTouchStart",qe),Re.preTouchTime=Date.now()},Re.onBlur=function(qe){Re.fireEvents("onBlur",qe),Re.clearDelayTimer(),Re.isBlurToHide()&&Re.delaySetPopupVisible(!1,Re.props.blurDelay)},Re.onContextMenu=function(qe){qe.preventDefault(),Re.fireEvents("onContextMenu",qe),Re.setPopupVisible(!0,qe)},Re.onContextMenuClose=function(){Re.isContextMenuToShow()&&Re.close()},Re.onClick=function(qe){if(Re.fireEvents("onClick",qe),Re.focusTime){var ht;if(Re.preClickTime&&Re.preTouchTime?ht=Math.min(Re.preClickTime,Re.preTouchTime):Re.preClickTime?ht=Re.preClickTime:Re.preTouchTime&&(ht=Re.preTouchTime),Math.abs(ht-Re.focusTime)<20)return;Re.focusTime=0}Re.preClickTime=0,Re.preTouchTime=0,Re.isClickToShow()&&(Re.isClickToHide()||Re.isBlurToHide())&&qe&&qe.preventDefault&&qe.preventDefault();var et=!Re.state.popupVisible;(Re.isClickToHide()&&!et||et&&Re.isClickToShow())&&Re.setPopupVisible(!Re.state.popupVisible,qe)},Re.onPopupMouseDown=function(){if(Re.hasPopupMouseDown=!0,clearTimeout(Re.mouseDownTimeout),Re.mouseDownTimeout=window.setTimeout(function(){Re.hasPopupMouseDown=!1},0),Re.context){var qe;(qe=Re.context).onPopupMouseDown.apply(qe,arguments)}},Re.onDocumentClick=function(qe){if(Re.props.mask&&!Re.props.maskClosable)return;var ht=qe.target,et=Re.getRootDomNode(),wt=Re.getPopupDomNode();(!Object(ct.a)(et,ht)||Re.isContextMenuOnly())&&!Object(ct.a)(wt,ht)&&!Re.hasPopupMouseDown&&Re.close()},Re.getRootDomNode=function(){var qe=Re.props.getTriggerDOMNode;if(qe)return qe(Re.triggerRef.current);try{var ht=Object(dt.a)(Re.triggerRef.current);if(ht)return ht}catch(et){}return ot.a.findDOMNode(Object(C.a)(Re))},Re.getPopupClassNameFromAlign=function(qe){var ht=[],et=Re.props,wt=et.popupPlacement,Pt=et.builtinPlacements,Gt=et.prefixCls,kt=et.alignPoint,ln=et.getPopupClassNameFromAlign;return wt&&Pt&&ht.push(he(Pt,Gt,qe,kt)),ln&&ht.push(ln(qe)),ht.join(" ")},Re.getComponent=function(){var qe=Re.props,ht=qe.prefixCls,et=qe.destroyPopupOnHide,wt=qe.popupClassName,Pt=qe.onPopupAlign,Gt=qe.popupMotion,kt=qe.popupAnimation,ln=qe.popupTransitionName,On=qe.popupStyle,er=qe.mask,Zn=qe.maskAnimation,Tr=qe.maskTransitionName,dr=qe.maskMotion,Bn=qe.zIndex,rn=qe.popup,yn=qe.stretch,tn=qe.alignPoint,Er=qe.mobile,zn=qe.forceRender,bn=Re.state,In=bn.popupVisible,Fr=bn.point,Qn=Re.getPopupAlign(),Ln={};return Re.isMouseEnterToShow()&&(Ln.onMouseEnter=Re.onPopupMouseEnter),Re.isMouseLeaveToHide()&&(Ln.onMouseLeave=Re.onPopupMouseLeave),Ln.onMouseDown=Re.onPopupMouseDown,Ln.onTouchStart=Re.onPopupMouseDown,m.createElement(Za,Object(b.a)({prefixCls:ht,destroyPopupOnHide:et,visible:In,point:tn&&Fr,className:wt,align:Qn,onAlign:Pt,animation:kt,getClassNameFromAlign:Re.getPopupClassNameFromAlign},Ln,{stretch:yn,getRootDomNode:Re.getRootDomNode,style:On,mask:er,zIndex:Bn,transitionName:ln,maskAnimation:Zn,maskTransitionName:Tr,maskMotion:dr,ref:Re.popupRef,motion:Gt,mobile:Er,forceRender:zn}),typeof rn=="function"?rn():rn)},Re.attachParent=function(qe){st.a.cancel(Re.attachId);var ht=Re.props,et=ht.getPopupContainer,wt=ht.getDocument,Pt=Re.getRootDomNode(),Gt;et?(Pt||et.length===0)&&(Gt=et(Pt)):Gt=wt(Re.getRootDomNode()).body,Gt?Gt.appendChild(qe):Re.attachId=Object(st.a)(function(){Re.attachParent(qe)})},Re.getContainer=function(){var qe=Re.props.getDocument,ht=qe(Re.getRootDomNode()).createElement("div");return ht.style.position="absolute",ht.style.top="0",ht.style.left="0",ht.style.width="100%",Re.attachParent(ht),ht},Re.setPoint=function(qe){var ht=Re.props.alignPoint;if(!ht||!qe)return;Re.setState({point:{pageX:qe.pageX,pageY:qe.pageY}})},Re.handlePortalUpdate=function(){Re.state.prevPopupVisible!==Re.state.popupVisible&&Re.props.afterPopupVisibleChange(Re.state.popupVisible)},Re.triggerContextValue={onPopupMouseDown:Re.onPopupMouseDown};var Ze;return"popupVisible"in ze?Ze=!!ze.popupVisible:Ze=!!ze.defaultPopupVisible,Re.state={prevPopupVisible:Ze,popupVisible:Ze},ga.forEach(function(qe){Re["fire".concat(qe)]=function(ht){Re.fireEvents(qe,ht)}}),Re}return Object(R.a)(Pe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this.props,Ze=this.state;if(Ze.popupVisible){var qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(qe=Re.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ke.a)(qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(qe=qe||Re.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ke.a)(qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(qe=qe||Re.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 Re;return((Re=this.popupRef.current)===null||Re===void 0?void 0:Re.getElement())||null}},{key:"getPopupAlign",value:function(){var Re=this.props,Ze=Re.popupPlacement,qe=Re.popupAlign,ht=Re.builtinPlacements;return Ze&&ht?Ce(ht,Ze,qe):qe}},{key:"setPopupVisible",value:function(Re,Ze){var qe=this.props.alignPoint,ht=this.state.popupVisible;this.clearDelayTimer(),ht!==Re&&("popupVisible"in this.props||this.setState({popupVisible:Re,prevPopupVisible:ht}),this.props.onPopupVisibleChange(Re)),qe&&Ze&&Re&&this.setPoint(Ze)}},{key:"delaySetPopupVisible",value:function(Re,Ze,qe){var ht=this,et=Ze*1e3;if(this.clearDelayTimer(),et){var wt=qe?{pageX:qe.pageX,pageY:qe.pageY}:null;this.delayTimer=window.setTimeout(function(){ht.setPopupVisible(Re,wt),ht.clearDelayTimer()},et)}else this.setPopupVisible(Re,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(Re){var Ze=this.props.children.props,qe=this.props;return Ze[Re]&&qe[Re]?this["fire".concat(Re)]:Ze[Re]||qe[Re]}},{key:"isClickToShow",value:function(){var Re=this.props,Ze=Re.action,qe=Re.showAction;return Ze.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Re=this.props.action;return Re==="contextMenu"||Re.length===1&&Re[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Re=this.props,Ze=Re.action,qe=Re.showAction;return Ze.indexOf("contextMenu")!==-1||qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Re=this.props,Ze=Re.action,qe=Re.hideAction;return Ze.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Re=this.props,Ze=Re.action,qe=Re.showAction;return Ze.indexOf("hover")!==-1||qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Re=this.props,Ze=Re.action,qe=Re.hideAction;return Ze.indexOf("hover")!==-1||qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Re=this.props,Ze=Re.action,qe=Re.showAction;return Ze.indexOf("focus")!==-1||qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Re=this.props,Ze=Re.action,qe=Re.hideAction;return Ze.indexOf("focus")!==-1||qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Re;(Re=this.popupRef.current)===null||Re===void 0||Re.forceAlign()}}},{key:"fireEvents",value:function(Re,Ze){var qe=this.props.children.props[Re];qe&&qe(Ze);var ht=this.props[Re];ht&&ht(Ze)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Re=this.state.popupVisible,Ze=this.props,qe=Ze.children,ht=Ze.forceRender,et=Ze.alignPoint,wt=Ze.className,Pt=Ze.autoDestroy,Gt=m.Children.only(qe),kt={key:"trigger"};this.isContextMenuToShow()?kt.onContextMenu=this.onContextMenu:kt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(kt.onClick=this.onClick,kt.onMouseDown=this.onMouseDown,kt.onTouchStart=this.onTouchStart):(kt.onClick=this.createTwoChains("onClick"),kt.onMouseDown=this.createTwoChains("onMouseDown"),kt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(kt.onMouseEnter=this.onMouseEnter,et&&(kt.onMouseMove=this.onMouseMove)):kt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?kt.onMouseLeave=this.onMouseLeave:kt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(kt.onFocus=this.onFocus,kt.onBlur=this.onBlur):(kt.onFocus=this.createTwoChains("onFocus"),kt.onBlur=this.createTwoChains("onBlur"));var ln=O()(Gt&&Gt.props&&Gt.props.className,wt);ln&&(kt.className=ln);var On=Object(v.a)({},kt);Object(Xe.c)(Gt)&&(On.ref=Object(Xe.a)(this.triggerRef,Gt.ref));var er=m.cloneElement(Gt,On),Zn;return(Re||this.popupRef.current||ht)&&(Zn=m.createElement(Fe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Re&&Pt&&(Zn=null),m.createElement(xa.Provider,{value:this.triggerContextValue},er,Zn)}}],[{key:"getDerivedStateFromProps",value:function(Re,Ze){var qe=Re.popupVisible,ht={};return qe!==void 0&&Ze.popupVisible!==qe&&(ht.popupVisible=qe,ht.prevPopupVisible=Ze.popupVisible),ht}}]),Pe}(m.Component);return tt.contextType=xa,tt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:yi,onPopupVisibleChange:Fa,afterPopupVisibleChange:Fa,onPopupAlign:Fa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},tt}var ya=va(lt.a),ye={adjustX:1,adjustY:1},rt={topLeft:{points:["bl","tl"],overflow:ye,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ye,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ye,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ye,offset:[4,0]}},Et={topLeft:{points:["bl","tl"],overflow:ye,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ye,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ye,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ye,offset:[4,0]}},vt=rt,Wt=0,Lt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Zt=function(tt,nt,Ye){var Pe=ae(nt),ze=tt.getState();tt.setState({defaultActiveFirst:Object(v.a)(Object(v.a)({},ze.defaultActiveFirst),{},Object(M.a)({},Pe,Ye))})},dn=function(Fe){Object(S.a)(nt,Fe);var tt=Object(_.a)(nt);function nt(Ye){var Pe;Object(P.a)(this,nt),Pe=tt.call(this,Ye),Pe.onDestroy=function(et){Pe.props.onDestroy(et)},Pe.onKeyDown=function(et){var wt=et.keyCode,Pt=Pe.menuInstance,Gt=Pe.props.store,kt=Pe.getVisible();if(wt===l.a.ENTER)return Pe.onTitleClick(et),Zt(Gt,Pe.props.eventKey,!0),!0;if(wt===l.a.RIGHT)return kt?Pt.onKeyDown(et):(Pe.triggerOpenChange(!0),Zt(Gt,Pe.props.eventKey,!0)),!0;if(wt===l.a.LEFT){var ln;if(kt)ln=Pt.onKeyDown(et);else return;return ln||(Pe.triggerOpenChange(!1),ln=!0),ln}return kt&&(wt===l.a.UP||wt===l.a.DOWN)?Pt.onKeyDown(et):void 0},Pe.onOpenChange=function(et){Pe.props.onOpenChange(et)},Pe.onPopupVisibleChange=function(et){Pe.triggerOpenChange(et,et?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(et){var wt=Pe.props,Pt=wt.eventKey,Gt=wt.onMouseEnter,kt=wt.store;Zt(kt,Pe.props.eventKey,!1),Gt({key:Pt,domEvent:et})},Pe.onMouseLeave=function(et){var wt=Pe.props,Pt=wt.parentMenu,Gt=wt.eventKey,kt=wt.onMouseLeave;Pt.subMenuInstance=Object(C.a)(Pe),kt({key:Gt,domEvent:et})},Pe.onTitleMouseEnter=function(et){var wt=Pe.props,Pt=wt.eventKey,Gt=wt.onItemHover,kt=wt.onTitleMouseEnter;Gt({key:Pt,hover:!0}),kt({key:Pt,domEvent:et})},Pe.onTitleMouseLeave=function(et){var wt=Pe.props,Pt=wt.parentMenu,Gt=wt.eventKey,kt=wt.onItemHover,ln=wt.onTitleMouseLeave;Pt.subMenuInstance=Object(C.a)(Pe),kt({key:Gt,hover:!1}),ln({key:Gt,domEvent:et})},Pe.onTitleClick=function(et){var wt=Object(C.a)(Pe),Pt=wt.props;if(Pt.onTitleClick({key:Pt.eventKey,domEvent:et}),Pt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!Pe.getVisible(),"click"),Zt(Pt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(et){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(et))},Pe.onSelect=function(et){Pe.props.onSelect(et)},Pe.onDeselect=function(et){Pe.props.onDeselect(et)},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(et){Pe.menuInstance=et},Pe.addKeyPath=function(et){return Object(v.a)(Object(v.a)({},et),{},{keyPath:(et.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(et,wt){var Pt=Pe.props.eventKey,Gt=function(){Pe.onOpenChange({key:Pt,item:Object(C.a)(Pe),trigger:wt,open:et})};wt==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){Gt()},0):Gt()},Pe.isChildrenSelected=function(){var et={find:!1};return $(Pe.props.children,Pe.props.selectedKeys,et),et.find},Pe.isInlineMode=function(){return Pe.getMode()==="inline"},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var et=Qe.findDOMNode(Pe.menuInstance);if(et.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;et.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(et){Pe.subMenuTitle=et},Pe.getBaseProps=function(){var et=Object(C.a)(Pe),wt=et.props,Pt=Pe.getMode();return{mode:Pt==="horizontal"?"vertical":Pt,visible:Pe.getVisible(),level:wt.level+1,inlineIndent:wt.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:wt.selectedKeys,eventKey:"".concat(wt.eventKey,"-menu-"),openKeys:wt.openKeys,motion:wt.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:wt.subMenuOpenDelay,parentMenu:Object(C.a)(Pe),subMenuCloseDelay:wt.subMenuCloseDelay,forceSubMenuRender:wt.forceSubMenuRender,triggerSubMenuAction:wt.triggerSubMenuAction,builtinPlacements:wt.builtinPlacements,defaultActiveFirst:wt.store.getState().defaultActiveFirst[ae(wt.eventKey)],multiple:wt.multiple,prefixCls:wt.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:wt.itemIcon,expandIcon:wt.expandIcon,direction:wt.direction}},Pe.getMotion=function(et,wt){var Pt=Object(C.a)(Pe),Gt=Pt.haveRendered,kt=Pe.props,ln=kt.motion,On=kt.rootPrefixCls,er=Object(v.a)(Object(v.a)({},ln),{},{leavedClassName:"".concat(On,"-hidden"),removeOnLeave:!1,motionAppear:Gt||!wt||et!=="inline"});return er};var ze=Ye.store,Re=Ye.eventKey,Ze=ze.getState(),qe=Ze.defaultActiveFirst;Pe.isRootMenu=!1;var ht=!1;return qe&&(ht=qe[Re]),Zt(ze,Re,ht),Pe.state={mode:Ye.mode,isOpen:Ye.isOpen},Pe}return Object(R.a)(nt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,ze=this.props,Re=ze.mode,Ze=ze.parentMenu,qe=ze.manualRef,ht=ze.isOpen,et=function(){Pe.setState({mode:Re,isOpen:ht})},wt=ht!==this.state.isOpen,Pt=Re!==this.state.mode;if((Pt||wt)&&(st.a.cancel(this.updateStateRaf),Pt?this.updateStateRaf=Object(st.a)(et):et()),qe&&qe(this),Re!=="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,Re=Pe.eventKey;ze&&ze(Re),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),st.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Pe,ze){var Re=this.getBaseProps();return m.createElement(Cr,Object(b.a)({},Re,{id:this.internalMenuId,className:Pe,style:ze}),this.props.children)}},{key:"renderChildren",value:function(){var Pe=this,ze=this.getBaseProps(),Re=ze.mode,Ze=ze.visible,qe=ze.forceSubMenuRender,ht=ze.direction,et=this.getMotion(Re,Ze);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ze||qe,!this.haveOpened)return m.createElement("div",null);var wt=O()("".concat(ze.prefixCls,"-sub"),Object(M.a)({},"".concat(ze.prefixCls,"-rtl"),ht==="rtl"));return this.isInlineMode()?m.createElement(Hr,Object(b.a)({visible:ze.visible,forceRender:qe},et),function(Pt){var Gt=Pt.className,kt=Pt.style,ln=O()(wt,Gt);return Pe.renderPopupMenu(ln,kt)}):this.renderPopupMenu(wt)}},{key:"render",value:function(){var Pe,ze,Re,Ze=Object(v.a)({},this.props),qe=this.getVisible(),ht=this.getPrefixCls(),et=this.isInlineMode(),wt=this.getMode(),Pt=O()(ht,"".concat(ht,"-").concat(wt),(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&&!et),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"):(Wt+=1,this.internalMenuId="$__$".concat(Wt,"$Menu")));var Gt={},kt={},ln={};Ze.disabled||(Gt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},kt={onClick:this.onTitleClick},ln={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var On={},er=Ze.direction,Zn=er==="rtl";et&&(Zn?On.paddingRight=Ze.inlineIndent*Ze.level:On.paddingLeft=Ze.inlineIndent*Ze.level);var Tr={};this.getVisible()&&(Tr={"aria-owns":this.internalMenuId});var dr=null;wt!=="horizontal"&&(dr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(dr=m.createElement(this.props.expandIcon,Object(v.a)({},this.props))));var Bn=m.createElement("div",Object(b.a)({ref:this.saveSubMenuTitle,style:On,className:"".concat(ht,"-title"),role:"button"},ln,kt,{"aria-expanded":qe},Tr,{"aria-haspopup":"true",title:typeof Ze.title=="string"?Ze.title:void 0}),Ze.title,dr||m.createElement("i",{className:"".concat(ht,"-arrow")})),rn=this.renderChildren(),yn=((ze=Ze.parentMenu)===null||ze===void 0?void 0:ze.isRootMenu)?Ze.parentMenu.props.getPopupContainer:function(fa){return fa.parentNode},tn=Lt[wt],Er=Ze.popupOffset?{offset:Ze.popupOffset}:{},zn=O()((Re={},Object(M.a)(Re,Ze.popupClassName,Ze.popupClassName&&!et),Object(M.a)(Re,"".concat(ht,"-rtl"),Zn),Re)),bn=Ze.disabled,In=Ze.triggerSubMenuAction,Fr=Ze.subMenuOpenDelay,Qn=Ze.forceSubMenuRender,Ln=Ze.subMenuCloseDelay,cr=Ze.builtinPlacements;Z.forEach(function(fa){return delete Ze[fa]}),delete Ze.onClick;var Lr=Zn?Object(v.a)(Object(v.a)({},Et),cr):Object(v.a)(Object(v.a)({},rt),cr);delete Ze.direction;var Nr=this.getBaseProps(),$r=et?null:this.getMotion(Nr.mode,Nr.visible);return m.createElement("li",Object(b.a)({},Ze,Gt,{className:Pt,role:"menuitem"}),m.createElement(ya,{prefixCls:ht,popupClassName:O()("".concat(ht,"-popup"),zn),getPopupContainer:yn,builtinPlacements:Lr,popupPlacement:tn,popupVisible:et?!1:qe,popupAlign:Er,popup:et?null:rn,action:bn||et?[]:[In],mouseEnterDelay:Fr,mouseLeaveDelay:Ln,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Qn,popupMotion:$r},Bn),et?rn:null)}}]),nt}(m.Component);dn.defaultProps={onMouseEnter:Q,onMouseLeave:Q,onTitleMouseEnter:Q,onTitleMouseLeave:Q,onTitleClick:Q,manualRef:Q,mode:"vertical",title:""};var En=Object(A.b)(function(Fe,tt){var nt=Fe.openKeys,Ye=Fe.activeKey,Pe=Fe.selectedKeys,ze=tt.eventKey,Re=tt.subMenuKey;return{isOpen:nt.indexOf(ze)>-1,active:Ye[Re]===ze,selectedKeys:Pe}})(dn);En.isSubMenu=!0;var wn=En,Hn="menuitem-overflowed",jn=.5,nn=function(Fe){Object(S.a)(nt,Fe);var tt=Object(_.a)(nt);function nt(){var Ye;return Object(P.a)(this,nt),Ye=tt.apply(this,arguments),Ye.resizeObserver=null,Ye.mutationObserver=null,Ye.originalTotalWidth=0,Ye.overflowedItems=[],Ye.menuItemSizes=[],Ye.cancelFrameId=null,Ye.state={lastVisibleIndex:void 0},Ye.childRef=m.createRef(),Ye.getMenuItemNodes=function(){var Pe=Ye.props.prefixCls,ze=Ye.childRef.current;return ze?[].slice.call(ze.children).filter(function(Re){return Re.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},Ye.getOverflowedSubMenuItem=function(Pe,ze,Re){var Ze=Ye.props,qe=Ze.overflowedIndicator,ht=Ze.level,et=Ze.mode,wt=Ze.prefixCls,Pt=Ze.theme;if(ht!==1||et!=="horizontal")return null;var Gt=Ye.props.children[0],kt=Gt.props,ln=kt.children,On=kt.title,er=kt.style,Zn=Object(T.a)(kt,["children","title","style"]),Tr=Object(v.a)({},er),dr="".concat(Pe,"-overflowed-indicator"),Bn="".concat(Pe,"-overflowed-indicator");ze.length===0&&Re!==!0?Tr=Object(v.a)(Object(v.a)({},Tr),{},{display:"none"}):Re&&(Tr=Object(v.a)(Object(v.a)({},Tr),{},{visibility:"hidden",position:"absolute"}),dr="".concat(dr,"-placeholder"),Bn="".concat(Bn,"-placeholder"));var rn=Pt?"".concat(wt,"-").concat(Pt):"",yn={};return Z.forEach(function(tn){Zn[tn]!==void 0&&(yn[tn]=Zn[tn])}),m.createElement(wn,Object(b.a)({title:qe,className:"".concat(wt,"-overflowed-submenu"),popupClassName:rn},yn,{key:dr,eventKey:Bn,disabled:!1,style:Tr}),ze)},Ye.setChildrenWidthAndResize=function(){if(Ye.props.mode!=="horizontal")return;var Pe=Ye.childRef.current;if(!Pe)return;var ze=Pe.children;if(!ze||ze.length===0)return;var Re=Pe.children[ze.length-1];me(Re,"display","inline-block");var Ze=Ye.getMenuItemNodes(),qe=Ze.filter(function(ht){return ht.className.split(" ").indexOf(Hn)>=0});qe.forEach(function(ht){me(ht,"display","inline-block")}),Ye.menuItemSizes=Ze.map(function(ht){return fe(ht,!0)}),qe.forEach(function(ht){me(ht,"display","none")}),Ye.overflowedIndicatorWidth=fe(Pe.children[Pe.children.length-1],!0),Ye.originalTotalWidth=Ye.menuItemSizes.reduce(function(ht,et){return ht+et},0),Ye.handleResize(),me(Re,"display","none")},Ye.handleResize=function(){if(Ye.props.mode!=="horizontal")return;var Pe=Ye.childRef.current;if(!Pe)return;var ze=fe(Pe);Ye.overflowedItems=[];var Re=0,Ze;Ye.originalTotalWidth>ze+jn&&(Ze=-1,Ye.menuItemSizes.forEach(function(qe){Re+=qe,Re+Ye.overflowedIndicatorWidth<=ze&&(Ze+=1)})),Ye.setState({lastVisibleIndex:Ze})},Ye}return Object(R.a)(nt,[{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 He.default(function(Re){Re.forEach(function(){var Ze=Pe.cancelFrameId;cancelAnimationFrame(Ze),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(ze.children).concat(ze).forEach(function(Re){Pe.resizeObserver.observe(Re)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(ze.children).concat(ze).forEach(function(Re){Pe.resizeObserver.observe(Re)}),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,Re=this.state.lastVisibleIndex;return(Pe||[]).reduce(function(Ze,qe,ht){var et=qe;if(ze.props.mode==="horizontal"){var wt=ze.getOverflowedSubMenuItem(qe.props.eventKey,[]);Re!==void 0&&ze.props.className.indexOf("".concat(ze.props.prefixCls,"-root"))!==-1&&(ht>Re&&(et=m.cloneElement(qe,{style:{display:"none"},eventKey:"".concat(qe.props.eventKey,"-hidden"),className:"".concat(Hn)})),ht===Re+1&&(ze.overflowedItems=Pe.slice(Re+1).map(function(Gt){return m.cloneElement(Gt,{key:Gt.props.eventKey,mode:"vertical-left"})}),wt=ze.getOverflowedSubMenuItem(qe.props.eventKey,ze.overflowedItems)));var Pt=[].concat(Object(f.a)(Ze),[wt,et]);return ht===Pe.length-1&&Pt.push(ze.getOverflowedSubMenuItem(qe.props.eventKey,[],!0)),Pt}return[].concat(Object(f.a)(Ze),[et])},[])}},{key:"render",value:function(){var Pe=this.props,ze=Pe.visible,Re=Pe.prefixCls,Ze=Pe.overflowedIndicator,qe=Pe.mode,ht=Pe.level,et=Pe.tag,wt=Pe.children,Pt=Pe.theme,Gt=Object(T.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),kt=et;return m.createElement(kt,Object(b.a)({ref:this.childRef},Gt),this.renderChildren(wt))}}]),nt}(m.Component);nn.defaultProps={tag:"div",className:""};var Mn=nn;function mn(Fe){return Fe.length?Fe.every(function(tt){return!!tt.props.disabled}):!0}function Wn(Fe,tt,nt){var Ye=Fe.getState();Fe.setState({activeKey:Object(v.a)(Object(v.a)({},Ye.activeKey),{},Object(M.a)({},tt,nt))})}function Dn(Fe){return Fe.eventKey||"0-menu-"}function tr(Fe,tt){var nt=tt,Ye=Fe.children,Pe=Fe.eventKey;if(nt){var ze;if(re(Ye,function(Re,Ze){Re&&Re.props&&!Re.props.disabled&&nt===te(Re,Pe,Ze)&&(ze=!0)}),ze)return nt}return nt=null,Fe.defaultActiveFirst&&re(Ye,function(Re,Ze){!nt&&Re&&!Re.props.disabled&&(nt=te(Re,Pe,Ze))}),nt}function sr(Fe){if(!Fe)return;var tt=this.instanceArray.indexOf(Fe);tt!==-1?this.instanceArray[tt]=Fe:this.instanceArray.push(Fe)}var Ir=function(Fe){Object(S.a)(nt,Fe);var tt=Object(_.a)(nt);function nt(Ye){var Pe;return Object(P.a)(this,nt),Pe=tt.call(this,Ye),Pe.onKeyDown=function(ze,Re){var Ze=ze.keyCode,qe;if(Pe.getFlatInstanceArray().forEach(function(et){et&&et.props.active&&et.onKeyDown&&(qe=et.onKeyDown(ze))}),qe)return 1;var ht=null;return(Ze===l.a.UP||Ze===l.a.DOWN)&&(ht=Pe.step(Ze===l.a.UP?-1:1)),ht?(ze.preventDefault(),Wn(Pe.props.store,Dn(Pe.props),ht.props.eventKey),typeof Re=="function"&&Re(ht),1):void 0},Pe.onItemHover=function(ze){var Re=ze.key,Ze=ze.hover;Wn(Pe.props.store,Dn(Pe.props),Ze?Re: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 Re=Pe.getFlatInstanceArray(),Ze=Pe.props.store.getState().activeKey[Dn(Pe.props)],qe=Re.length;if(!qe)return null;ze<0&&(Re=Re.concat().reverse());var ht=-1;if(Re.every(function(Gt,kt){return Gt&&Gt.props.eventKey===Ze?(ht=kt,!1):!0}),!Pe.props.defaultActiveFirst&&ht!==-1&&mn(Re.slice(ht,qe-1)))return;var et=(ht+1)%qe,wt=et;do{var Pt=Re[wt];if(!Pt||Pt.props.disabled)wt=(wt+1)%qe;else return Pt}while(wt!==et);return null},Pe.renderCommonMenuItem=function(ze,Re,Ze){var qe=Pe.props.store.getState(),ht=Object(C.a)(Pe),et=ht.props,wt=te(ze,et.eventKey,Re),Pt=ze.props;if(!Pt||typeof ze.type=="string")return ze;var Gt=wt===qe.activeKey,kt=Object(v.a)(Object(v.a)({mode:Pt.mode||et.mode,level:et.level,inlineIndent:et.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:et.prefixCls,index:Re,parentMenu:et.parentMenu,manualRef:Pt.disabled?void 0:Object(I.a)(ze.ref,sr.bind(Object(C.a)(Pe))),eventKey:wt,active:!Pt.disabled&&Gt,multiple:et.multiple,onClick:function(On){(Pt.onClick||Q)(On),Pe.onClick(On)},onItemHover:Pe.onItemHover,motion:et.motion,subMenuOpenDelay:et.subMenuOpenDelay,subMenuCloseDelay:et.subMenuCloseDelay,forceSubMenuRender:et.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:et.builtinPlacements,itemIcon:Pt.itemIcon||Pe.props.itemIcon,expandIcon:Pt.expandIcon||Pe.props.expandIcon},Ze),{},{direction:et.direction});return(et.mode==="inline"||Oe())&&(kt.triggerSubMenuAction="click"),m.cloneElement(ze,Object(v.a)(Object(v.a)({},kt),{},{key:wt||Re}))},Pe.renderMenuItem=function(ze,Re,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,Re,ht)},Ye.store.setState({activeKey:Object(v.a)(Object(v.a)({},Ye.store.getState().activeKey),{},Object(M.a)({},Ye.eventKey,tr(Ye,Ye.activeKey)))}),Pe.instanceArray=[],Pe}return Object(R.a)(nt,[{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||!J()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var ze=this.props,Re="activeKey"in ze?ze.activeKey:ze.store.getState().activeKey[Dn(ze)],Ze=tr(ze,Re);if(Ze!==Re)Wn(ze.store,Dn(ze),Ze);else if("activeKey"in Pe){var qe=tr(Pe,Pe.activeKey);Ze!==qe&&Wn(ze.store,Dn(ze),Ze)}}},{key:"render",value:function(){var Pe=this,ze=Object(b.a)({},this.props);this.instanceArray=[];var Re=O()(ze.prefixCls,ze.className,"".concat(ze.prefixCls,"-").concat(ze.mode)),Ze={className:Re,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,et=ze.visible,wt=ze.level,Pt=ze.mode,Gt=ze.overflowedIndicator,kt=ze.theme;return Z.forEach(function(ln){return delete ze[ln]}),delete ze.onClick,m.createElement(Mn,Object(b.a)({},ze,{prefixCls:qe,mode:Pt,tag:"ul",level:wt,theme:kt,visible:et,overflowedIndicator:Gt},Ze),Object(g.a)(ze.children).map(function(ln,On){return Pe.renderMenuItem(ln,On,ht||"0-menu-")}))}}]),nt}(m.Component);Ir.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Q};var oa=Object(A.b)()(Ir),Cr=oa,Or=i("Kwbf");function ea(Fe,tt,nt){var Ye=Fe.prefixCls,Pe=Fe.motion,ze=Fe.defaultMotions,Re=ze===void 0?{}:ze,Ze=Fe.openAnimation,qe=Fe.openTransitionName,ht=tt.switchingModeFromInline;if(Pe)return Pe;if(Object(G.a)(Ze)==="object"&&Ze)Object(Or.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ze=="string")return{motionName:"".concat(Ye,"-open-").concat(Ze)};if(qe)return{motionName:qe};var et=Re[nt];return et||(ht?null:Re.other)}var Nn=function(Fe){Object(S.a)(nt,Fe);var tt=Object(_.a)(nt);function nt(Ye){var Pe;Object(P.a)(this,nt),Pe=tt.call(this,Ye),Pe.onSelect=function(Ze){var qe=Object(C.a)(Pe),ht=qe.props;if(ht.selectable){var et=Pe.store.getState(),wt=et.selectedKeys,Pt=Ze.key;ht.multiple?wt=wt.concat([Pt]):wt=[Pt],"selectedKeys"in ht||Pe.store.setState({selectedKeys:wt}),ht.onSelect(Object(v.a)(Object(v.a)({},Ze),{},{selectedKeys:wt}))}},Pe.onClick=function(Ze){var qe=Pe.getRealMenuMode(),ht=Object(C.a)(Pe),et=ht.store,wt=ht.props.onOpenChange;qe!=="inline"&&!("openKeys"in Pe.props)&&(et.setState({openKeys:[]}),wt([])),Pe.props.onClick(Ze)},Pe.onKeyDown=function(Ze,qe){Pe.innerMenu.getWrappedInstance().onKeyDown(Ze,qe)},Pe.onOpenChange=function(Ze){var qe=Object(C.a)(Pe),ht=qe.props,et=Pe.store.getState().openKeys.concat(),wt=!1,Pt=function(kt){var ln=!1;if(kt.open)ln=et.indexOf(kt.key)===-1,ln&&et.push(kt.key);else{var On=et.indexOf(kt.key);ln=On!==-1,ln&&et.splice(On,1)}wt=wt||ln};Array.isArray(Ze)?Ze.forEach(Pt):Pt(Ze),wt&&("openKeys"in Pe.props||Pe.store.setState({openKeys:et}),ht.onOpenChange(et))},Pe.onDeselect=function(Ze){var qe=Object(C.a)(Pe),ht=qe.props;if(ht.selectable){var et=Pe.store.getState().selectedKeys.concat(),wt=Ze.key,Pt=et.indexOf(wt);Pt!==-1&&et.splice(Pt,1),"selectedKeys"in ht||Pe.store.setState({selectedKeys:et}),ht.onDeselect(Object(v.a)(Object(v.a)({},Ze),{},{selectedKeys:et}))}},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,et=Object.prototype.toString.call(ht)==="[object SVGAnimatedString]"?ht.animVal:ht,wt=Ze.propertyName==="font-size"&&et.indexOf("anticon")>=0;(qe||wt)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function(Ze){Pe.innerMenu=Ze},Pe.isRootMenu=!0;var ze=Ye.defaultSelectedKeys,Re=Ye.defaultOpenKeys;return"selectedKeys"in Ye&&(ze=Ye.selectedKeys||[]),"openKeys"in Ye&&(Re=Ye.openKeys||[]),Pe.store=Object(A.c)({selectedKeys:ze,openKeys:Re,activeKey:{"0-menu-":tr(Ye,Ye.activeKey)}}),Pe.state={switchingModeFromInline:!1,prevProps:Ye,inlineOpenKeys:[],store:Pe.store},Pe}return Object(R.a)(nt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){var ze=this.props,Re=ze.siderCollapsed,Ze=ze.inlineCollapsed,qe=ze.onOpenChange;(!Pe.inlineCollapsed&&Ze||!Pe.siderCollapsed&&Re)&&qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,ze=this.store,Re=this.prevOpenKeys,Ze=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");Ze?(this.prevOpenKeys=ze.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Re&&(this.store.setState({openKeys:Re}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,ze=this.state.switchingModeFromInline,Re=this.getInlineCollapsed();return ze&&Re?"inline":Re?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,ze=Pe.inlineCollapsed,Re=Pe.siderCollapsed;return Re!==void 0?Re: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(v.a)({},Object(j.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(v.a)(Object(v.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:ea(this.props,this.state,ze)}),delete Pe.openAnimation,delete Pe.openTransitionName,m.createElement(A.a,{store:this.store},m.createElement(Cr,Object(b.a)({},Pe,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Pe,ze){var Re=ze.prevProps,Ze=ze.store,qe=Ze.getState(),ht={},et={prevProps:Pe};return Re.mode==="inline"&&Pe.mode!=="inline"&&(et.switchingModeFromInline=!0),"openKeys"in Pe?ht.openKeys=Pe.openKeys||[]:((Pe.inlineCollapsed&&!Re.inlineCollapsed||Pe.siderCollapsed&&!Re.siderCollapsed)&&(et.switchingModeFromInline=!0,et.inlineOpenKeys=qe.openKeys,ht.openKeys=[]),(!Pe.inlineCollapsed&&Re.inlineCollapsed||!Pe.siderCollapsed&&Re.siderCollapsed)&&(ht.openKeys=ze.inlineOpenKeys,et.inlineOpenKeys=[])),Object.keys(ht).length&&Ze.setState(ht),et}}]),nt}(m.Component);Nn.defaultProps={selectable:!0,onClick:Q,onSelect:Q,onOpenChange:Q,onDeselect:Q,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:m.createElement("span",null,"\xB7\xB7\xB7")};var br=Nn,$t=function(Fe){Object(S.a)(nt,Fe);var tt=Object(_.a)(nt);function nt(){var Ye;return Object(P.a)(this,nt),Ye=tt.apply(this,arguments),Ye.onKeyDown=function(Pe){var ze=Pe.keyCode;return ze===l.a.ENTER?(Ye.onClick(Pe),!0):void 0},Ye.onMouseLeave=function(Pe){var ze=Ye.props,Re=ze.eventKey,Ze=ze.onItemHover,qe=ze.onMouseLeave;Ze({key:Re,hover:!1}),qe({key:Re,domEvent:Pe})},Ye.onMouseEnter=function(Pe){var ze=Ye.props,Re=ze.eventKey,Ze=ze.onItemHover,qe=ze.onMouseEnter;Ze({key:Re,hover:!0}),qe({key:Re,domEvent:Pe})},Ye.onClick=function(Pe){var ze=Ye.props,Re=ze.eventKey,Ze=ze.multiple,qe=ze.onClick,ht=ze.onSelect,et=ze.onDeselect,wt=ze.isSelected,Pt={key:Re,keyPath:[Re],item:Object(C.a)(Ye),domEvent:Pe};qe(Pt),Ze?wt?et(Pt):ht(Pt):wt||ht(Pt)},Ye.saveNode=function(Pe){Ye.node=Pe},Ye}return Object(R.a)(nt,[{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(v.a)({},this.props),Re=O()(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(v.a)(Object(v.a)({},ze.attribute),{},{title:typeof ze.title=="string"?ze.title:void 0,className:Re,role:ze.role||"menuitem","aria-disabled":ze.disabled});ze.role==="option"?Ze=Object(v.a)(Object(v.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(v.a)({},ze.style);ze.mode==="inline"&&(ze.direction==="rtl"?ht.paddingRight=ze.inlineIndent*ze.level:ht.paddingLeft=ze.inlineIndent*ze.level),Z.forEach(function(wt){return delete ze[wt]}),delete ze.direction;var et=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(et=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(b.a)({},Object(j.a)(ze,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ze,qe,{style:ht,ref:this.saveNode}),ze.children,et)}}]),nt}(m.Component);$t.isMenuItem=!0,$t.defaultProps={onSelect:Q,onMouseEnter:Q,onMouseLeave:Q,manualRef:Q};var jt=Object(A.b)(function(Fe,tt){var nt=Fe.activeKey,Ye=Fe.selectedKeys,Pe=tt.eventKey,ze=tt.subMenuKey;return{active:nt[ze]===Pe,isSelected:Array.isArray(Ye)?Ye.indexOf(Pe)!==-1:Ye===Pe}})($t),on=jt,An=function(Fe){Object(S.a)(nt,Fe);var tt=Object(_.a)(nt);function nt(){var Ye;return Object(P.a)(this,nt),Ye=tt.apply(this,arguments),Ye.renderInnerMenuItem=function(Pe){var ze=Ye.props,Re=ze.renderMenuItem,Ze=ze.index;return Re(Pe,Ze,Ye.props.subMenuKey)},Ye}return Object(R.a)(nt,[{key:"render",value:function(){var Pe=Object(b.a)({},this.props),ze=Pe.className,Re=ze===void 0?"":ze,Ze=Pe.rootPrefixCls,qe="".concat(Ze,"-item-group-title"),ht="".concat(Ze,"-item-group-list"),et=Pe.title,wt=Pe.children;return Z.forEach(function(Pt){return delete Pe[Pt]}),delete Pe.direction,m.createElement("li",Object(b.a)({},Pe,{onClick:function(Gt){return Gt.stopPropagation()},className:"".concat(Re," ").concat(Ze,"-item-group")}),m.createElement("div",{className:qe,title:typeof et=="string"?et:void 0},et),m.createElement("ul",{className:ht},m.Children.map(wt,this.renderInnerMenuItem)))}}]),nt}(m.Component);An.isMenuItemGroup=!0,An.defaultProps={disabled:!0};var Tn=An,Yn=function(tt){var nt=tt.className,Ye=tt.rootPrefixCls,Pe=tt.style;return m.createElement("li",{className:"".concat(nt," ").concat(Ye,"-item-divider"),style:Pe})};Yn.defaultProps={disabled:!0,className:"",style:{}};var Jn=Yn,kn=br,Ar=i("eDIo");function ur(Fe,tt){var nt=Fe.prefixCls,Ye=Fe.editable,Pe=Fe.locale,ze=Fe.style;return!Ye||Ye.showAdd===!1?null:m.createElement("button",{ref:tt,type:"button",className:"".concat(nt,"-nav-add"),style:ze,"aria-label":(Pe==null?void 0:Pe.addAriaLabel)||"Add tab",onClick:function(Ze){Ye.onEdit("add",{event:Ze})}},Ye.addIcon||"+")}var yr=m.forwardRef(ur);function vr(Fe,tt){var nt=Fe.prefixCls,Ye=Fe.id,Pe=Fe.tabs,ze=Fe.locale,Re=Fe.mobile,Ze=Fe.moreIcon,qe=Ze===void 0?"More":Ze,ht=Fe.moreTransitionName,et=Fe.style,wt=Fe.className,Pt=Fe.editable,Gt=Fe.tabBarGutter,kt=Fe.rtl,ln=Fe.onTabClick,On=Object(m.useState)(!1),er=Object(E.a)(On,2),Zn=er[0],Tr=er[1],dr=Object(m.useState)(null),Bn=Object(E.a)(dr,2),rn=Bn[0],yn=Bn[1],tn="".concat(Ye,"-more-popup"),Er="".concat(nt,"-dropdown"),zn=rn!==null?"".concat(tn,"-").concat(rn):null,bn=ze==null?void 0:ze.dropdownAriaLabel,In=m.createElement(kn,{onClick:function($r){var fa=$r.key,ia=$r.domEvent;ln(fa,ia),Tr(!1)},id:tn,tabIndex:-1,role:"listbox","aria-activedescendant":zn,selectedKeys:[rn],"aria-label":bn!==void 0?bn:"expanded dropdown"},Pe.map(function(Nr){return m.createElement(on,{key:Nr.key,id:"".concat(tn,"-").concat(Nr.key),role:"option","aria-controls":Ye&&"".concat(Ye,"-panel-").concat(Nr.key),disabled:Nr.disabled},Nr.tab)}));function Fr(Nr){for(var $r=Pe.filter(function(Wa){return!Wa.disabled}),fa=$r.findIndex(function(Wa){return Wa.key===rn})||0,ia=$r.length,na=0;na<ia;na+=1){fa=(fa+Nr+ia)%ia;var kr=$r[fa];if(!kr.disabled){yn(kr.key);return}}}function Qn(Nr){var $r=Nr.which;if(!Zn){[l.a.DOWN,l.a.SPACE,l.a.ENTER].includes($r)&&(Tr(!0),Nr.preventDefault());return}switch($r){case l.a.UP:Fr(-1),Nr.preventDefault();break;case l.a.DOWN:Fr(1),Nr.preventDefault();break;case l.a.ESC:Tr(!1);break;case l.a.SPACE:case l.a.ENTER:rn!==null&&ln(rn,Nr);break}}Object(m.useEffect)(function(){var Nr=document.getElementById(zn);Nr&&Nr.scrollIntoView&&Nr.scrollIntoView(!1)},[rn]),Object(m.useEffect)(function(){Zn||yn(null)},[Zn]);var Ln=Object(M.a)({},kt?"marginLeft":"marginRight",Gt);Pe.length||(Ln.visibility="hidden",Ln.order=1);var cr=O()(Object(M.a)({},"".concat(Er,"-rtl"),kt)),Lr=Re?null:m.createElement(Ar.a,{prefixCls:Er,overlay:In,trigger:["hover"],visible:Zn,transitionName:ht,onVisibleChange:Tr,overlayClassName:cr,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(nt,"-nav-more"),style:Ln,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":tn,id:"".concat(Ye,"-more"),"aria-expanded":Zn,onKeyDown:Qn},qe));return m.createElement("div",{className:O()("".concat(nt,"-nav-operations"),wt),style:et,ref:tt},Lr,m.createElement(yr,{prefixCls:nt,locale:ze,editable:Pt}))}var Dr=m.forwardRef(vr),Xn=Object(m.createContext)(null),Ut=.1,en=.01,Vt=20,Un=Math.pow(.995,Vt);function $n(){var Fe=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(Fe)||/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(Fe.substr(0,4)))}function ir(Fe,tt){var nt=Object(m.useState)(),Ye=Object(E.a)(nt,2),Pe=Ye[0],ze=Ye[1],Re=Object(m.useState)(0),Ze=Object(E.a)(Re,2),qe=Ze[0],ht=Ze[1],et=Object(m.useState)(0),wt=Object(E.a)(et,2),Pt=wt[0],Gt=wt[1],kt=Object(m.useState)(),ln=Object(E.a)(kt,2),On=ln[0],er=ln[1],Zn=Object(m.useRef)();function Tr(bn){var In=bn.touches[0],Fr=In.screenX,Qn=In.screenY;ze({x:Fr,y:Qn}),window.clearInterval(Zn.current)}function dr(bn){if(!Pe)return;bn.preventDefault();var In=bn.touches[0],Fr=In.screenX,Qn=In.screenY;ze({x:Fr,y:Qn});var Ln=Fr-Pe.x,cr=Qn-Pe.y;tt(Ln,cr);var Lr=Date.now();ht(Lr),Gt(Lr-qe),er({x:Ln,y:cr})}function Bn(){if(!Pe)return;if(ze(null),er(null),On){var bn=On.x/Pt,In=On.y/Pt,Fr=Math.abs(bn),Qn=Math.abs(In);if(Math.max(Fr,Qn)<Ut)return;var Ln=bn,cr=In;Zn.current=window.setInterval(function(){if(Math.abs(Ln)<en&&Math.abs(cr)<en){window.clearInterval(Zn.current);return}Ln*=Un,cr*=Un,tt(Ln*Vt,cr*Vt)},Vt)}}var rn=Object(m.useRef)(0),yn=Object(m.useRef)(!1),tn=Object(m.useRef)();function Er(bn){var In=bn.deltaX,Fr=bn.deltaY,Qn=0,Ln=Math.abs(In),cr=Math.abs(Fr);Ln===cr?Qn=tn.current==="x"?In:Fr:Ln>cr?(Qn=In,tn.current="x"):(Qn=Fr,tn.current="y");var Lr=Date.now();Lr-rn.current>100&&(yn.current=!1),(tt(-Qn,-Qn)||yn.current)&&(bn.preventDefault(),yn.current=!0),rn.current=Lr}var zn=Object(m.useRef)(null);zn.current={onTouchStart:Tr,onTouchMove:dr,onTouchEnd:Bn,onWheel:Er},m.useEffect(function(){function bn(Ln){zn.current.onTouchStart(Ln)}function In(Ln){zn.current.onTouchMove(Ln)}function Fr(Ln){zn.current.onTouchEnd(Ln)}function Qn(Ln){zn.current.onWheel(Ln)}return document.addEventListener("touchmove",In,{passive:!1}),document.addEventListener("touchend",Fr,{passive:!1}),Fe.current.addEventListener("touchstart",bn,{passive:!1}),Fe.current.addEventListener("wheel",Qn),function(){document.removeEventListener("touchmove",In),document.removeEventListener("touchend",Fr)}},[])}function Kn(){var Fe=Object(m.useRef)(new Map);function tt(Ye){return Fe.current.has(Ye)||Fe.current.set(Ye,m.createRef()),Fe.current.get(Ye)}function nt(Ye){Fe.current.delete(Ye)}return[tt,nt]}function rr(Fe,tt){var nt=m.useRef(Fe),Ye=m.useState({}),Pe=Object(E.a)(Ye,2),ze=Pe[1];function Re(Ze){var qe=typeof Ze=="function"?Ze(nt.current):Ze;qe!==nt.current&&tt(qe,nt.current),nt.current=qe,ze({})}return[nt.current,Re]}var or=function(tt){var nt=tt.position,Ye=tt.prefixCls,Pe=tt.extra;if(!Pe)return null;var ze,Re=Pe;return nt==="right"&&(ze=Re.right||!Re.left&&Re||null),nt==="left"&&(ze=Re.left||null),ze?m.createElement("div",{className:"".concat(Ye,"-extra-content")},ze):null};function ta(Fe,tt){var nt,Ye=m.useContext(Xn),Pe=Ye.prefixCls,ze=Ye.tabs,Re=Fe.className,Ze=Fe.style,qe=Fe.id,ht=Fe.animated,et=Fe.activeKey,wt=Fe.rtl,Pt=Fe.extra,Gt=Fe.editable,kt=Fe.locale,ln=Fe.tabPosition,On=Fe.tabBarGutter,er=Fe.children,Zn=Fe.onTabClick,Tr=Fe.onTabScroll,dr=Object(m.useRef)(),Bn=Object(m.useRef)(),rn=Object(m.useRef)(),yn=Object(m.useRef)(),tn=Kn(),Er=Object(E.a)(tn,2),zn=Er[0],bn=Er[1],In=ln==="top"||ln==="bottom",Fr=rr(0,function(wa,Ea){In&&Tr&&Tr({direction:wa>Ea?"left":"right"})}),Qn=Object(E.a)(Fr,2),Ln=Qn[0],cr=Qn[1],Lr=rr(0,function(wa,Ea){!In&&Tr&&Tr({direction:wa>Ea?"top":"bottom"})}),Nr=Object(E.a)(Lr,2),$r=Nr[0],fa=Nr[1],ia=Object(m.useState)(0),na=Object(E.a)(ia,2),kr=na[0],Wa=na[1],mi=Object(m.useState)(0),Qr=Object(E.a)(mi,2),zr=Qr[0],Xr=Qr[1],Vr=Object(m.useState)(0),ha=Object(E.a)(Vr,2),sa=ha[0],_a=ha[1],Ha=Object(m.useState)(0),Ua=Object(E.a)(Ha,2),Pa=Ua[0],Ei=Ua[1],Ti=Object(m.useState)(null),ja=Object(E.a)(Ti,2),Da=ja[0],$a=ja[1],to=Object(m.useState)(null),Mo=Object(E.a)(to,2),Li=Mo[0],no=Mo[1],ro=Object(m.useState)(0),gi=Object(E.a)(ro,2),uo=gi[0],Io=gi[1],Lo=Object(m.useState)(0),bo=Object(E.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=o(new Map),Yi=Object(E.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=u(ze,No,kr),Ji="".concat(Pe,"-nav-operations-hidden"),Qi=0,ni=0;In?wt?(Qi=0,ni=Math.max(0,kr-Da)):(Qi=Math.min(0,Da-kr),ni=0):(Qi=Math.min(0,Li-zr),ni=0);function Ni(wa){return wa<Qi?[Qi,!1]:wa>ni?[ni,!1]:[wa,!0]}var Ri=Object(m.useRef)(),Zi=Object(m.useState)(),Pi=Object(E.a)(Zi,2),Eo=Pi[0],xo=Pi[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Ri.current)}ir(dr,function(wa,Ea){var za=!1;function ui(eo,Ui){eo(function(ho){var Oi=Ni(ho+Ui),ei=Object(E.a)(Oi,2),po=ei[0],Hi=ei[1];return za=Hi,po})}if(In){if(Da>=kr)return za;ui(cr,wa)}else{if(Li>=zr)return za;ui(fa,Ea)}return io(),Co(),za}),Object(m.useEffect)(function(){return io(),Eo&&(Ri.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function ki(){var wa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et,Ea=ao.get(wa);if(!Ea)return;if(In){var za=Ln;wt?Ea.right<Ln?za=Ea.right:Ea.right+Ea.width>Ln+Da&&(za=Ea.right+Ea.width-Da):Ea.left<-Ln?za=-Ea.left:Ea.left+Ea.width>-Ln+Da&&(za=-(Ea.left+Ea.width-Da)),fa(0),cr(Ni(za)[0])}else{var ui=$r;Ea.top<-$r?ui=-Ea.top:Ea.top+Ea.height>-$r+Li&&(ui=-(Ea.top+Ea.height-Li)),cr(0),fa(Ni(ui)[0])}}var qi=x(ao,{width:Da,height:Li,left:Ln,top:$r},{width:sa,height:Pa},{width:uo,height:Vi},Object(v.a)(Object(v.a)({},Fe),{},{tabs:ze})),ko=Object(E.a)(qi,2),oo=ko[0],so=ko[1],So=ze.map(function(wa){var Ea=wa.key;return m.createElement(h,{id:qe,prefixCls:Pe,key:Ea,rtl:wt,tab:wa,closable:wa.closable,editable:Gt,active:Ea===et,tabPosition:ln,tabBarGutter:On,renderWrapper:er,removeAriaLabel:kt==null?void 0:kt.removeAriaLabel,ref:zn(Ea),onClick:function(ui){Zn(Ea,ui)},onRemove:function(){bn(Ea)},onFocus:function(){ki(Ea),Co(),wt||(dr.current.scrollLeft=0),dr.current.scrollTop=0}})}),Uo=a(function(){var wa,Ea,za,ui,eo,Ui,ho,Oi,ei,po=((wa=dr.current)===null||wa===void 0?void 0:wa.offsetWidth)||0,Hi=((Ea=dr.current)===null||Ea===void 0?void 0:Ea.offsetHeight)||0,mo=((za=yn.current)===null||za===void 0?void 0:za.offsetWidth)||0,hi=((ui=yn.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Aa=((eo=rn.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,pa=((Ui=rn.current)===null||Ui===void 0?void 0:Ui.offsetHeight)||0;$a(po),no(Hi),Io(mo),co(hi);var gr=(((ho=Bn.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Yr=(((Oi=Bn.current)===null||Oi===void 0?void 0:Oi.offsetHeight)||0)-hi;Wa(gr),Xr(Yr);var ba=(ei=rn.current)===null||ei===void 0?void 0:ei.className.includes(Ji);_a(gr-(ba?0:Aa)),Ei(Yr-(ba?0:pa)),yo(function(){var Ba=new Map;return ze.forEach(function(Ci){var Mi=Ci.key,ti=zn(Mi).current;ti&&Ba.set(Mi,{width:ti.offsetWidth,height:ti.offsetHeight,left:ti.offsetLeft,top:ti.offsetTop})}),Ba})}),jo=ze.slice(0,oo),fi=ze.slice(so+1),Ka=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ai=Object(m.useState)(),Ja=Object(E.a)(ai,2),ii=Ja[0],wo=Ja[1],xi=ao.get(et),Bo=Object(m.useRef)();function To(){c.a.cancel(Bo.current)}Object(m.useEffect)(function(){var wa={};return xi&&(In?(wt?wa.right=xi.right:wa.left=xi.left,wa.width=xi.width):(wa.top=xi.top,wa.height=xi.height)),To(),Bo.current=c()(function(){wo(wa)}),To},[xi,In,wt]),Object(m.useEffect)(function(){ki()},[et,xi,ao,In]),Object(m.useEffect)(function(){Uo()},[wt,On,et,ze.map(function(wa){return wa.key}).join("_")]);var $i=!!Ka.length,Wi="".concat(Pe,"-nav-wrap"),Oo,fo,Wo,lo;return In?wt?(fo=Ln>0,Oo=Ln+Da<kr):(Oo=Ln<0,fo=-Ln+Da<kr):(Wo=$r<0,lo=-$r+Li<zr),m.createElement("div",{ref:tt,role:"tablist",className:O()("".concat(Pe,"-nav"),Re),style:Ze,onKeyDown:function(){Co()}},m.createElement(or,{position:"left",extra:Pt,prefixCls:Pe}),m.createElement(n.a,{onResize:Uo},m.createElement("div",{className:O()(Wi,(nt={},Object(M.a)(nt,"".concat(Wi,"-ping-left"),Oo),Object(M.a)(nt,"".concat(Wi,"-ping-right"),fo),Object(M.a)(nt,"".concat(Wi,"-ping-top"),Wo),Object(M.a)(nt,"".concat(Wi,"-ping-bottom"),lo),nt)),ref:dr},m.createElement(n.a,{onResize:Uo},m.createElement("div",{ref:Bn,className:"".concat(Pe,"-nav-list"),style:{transform:"translate(".concat(Ln,"px, ").concat($r,"px)"),transition:Eo?"none":void 0}},So,m.createElement(yr,{ref:yn,prefixCls:Pe,locale:kt,editable:Gt,style:{visibility:$i?"hidden":null}}),m.createElement("div",{className:O()("".concat(Pe,"-ink-bar"),Object(M.a)({},"".concat(Pe,"-ink-bar-animated"),ht.inkBar)),style:ii}))))),m.createElement(Dr,Object.assign({},Fe,{ref:rn,prefixCls:Pe,tabs:Ka,className:!$i&&Ji})),m.createElement(or,{position:"right",extra:Pt,prefixCls:Pe}))}var wr=m.forwardRef(ta);function _r(Fe){var tt=Fe.id,nt=Fe.activeKey,Ye=Fe.animated,Pe=Fe.tabPosition,ze=Fe.rtl,Re=Fe.destroyInactiveTabPane,Ze=m.useContext(Xn),qe=Ze.prefixCls,ht=Ze.tabs,et=Ye.tabPane,wt=ht.findIndex(function(Pt){return Pt.key===nt});return m.createElement("div",{className:O()("".concat(qe,"-content-holder"))},m.createElement("div",{className:O()("".concat(qe,"-content"),"".concat(qe,"-content-").concat(Pe),Object(M.a)({},"".concat(qe,"-content-animated"),et)),style:wt&&et?Object(M.a)({},ze?"marginRight":"marginLeft","-".concat(wt,"00%")):null},ht.map(function(Pt){return m.cloneElement(Pt.node,{key:Pt.key,prefixCls:qe,tabKey:Pt.key,id:tt,animated:et,active:Pt.key===nt,destroyInactiveTabPane:Re})})))}function qr(Fe){var tt=Fe.prefixCls,nt=Fe.forceRender,Ye=Fe.className,Pe=Fe.style,ze=Fe.id,Re=Fe.active,Ze=Fe.animated,qe=Fe.destroyInactiveTabPane,ht=Fe.tabKey,et=Fe.children,wt=m.useState(nt),Pt=Object(E.a)(wt,2),Gt=Pt[0],kt=Pt[1];m.useEffect(function(){Re?kt(!0):qe&&kt(!1)},[Re,qe]);var ln={};return Re||(Ze?(ln.visibility="hidden",ln.height=0,ln.overflowY="hidden"):ln.display="none"),m.createElement("div",{id:ze&&"".concat(ze,"-panel-").concat(ht),role:"tabpanel",tabIndex:Re?0:-1,"aria-labelledby":ze&&"".concat(ze,"-tab-").concat(ht),"aria-hidden":!Re,style:Object(v.a)(Object(v.a)({},ln),Pe),className:O()("".concat(tt,"-tabpane"),Re&&"".concat(tt,"-tabpane-active"),Ye)},(Re||Gt||nt)&&et)}var Kr=0;function mr(Fe){return Object(g.a)(Fe).map(function(tt){if(m.isValidElement(tt)){var nt=tt.key!==void 0?String(tt.key):void 0;return Object(v.a)(Object(v.a)({key:nt},tt.props),{},{node:tt})}return null}).filter(function(tt){return tt})}function Jr(Fe,tt){var nt,Ye=Fe.id,Pe=Fe.prefixCls,ze=Pe===void 0?"rc-tabs":Pe,Re=Fe.className,Ze=Fe.children,qe=Fe.direction,ht=Fe.activeKey,et=Fe.defaultActiveKey,wt=Fe.editable,Pt=Fe.animated,Gt=Fe.tabPosition,kt=Gt===void 0?"top":Gt,ln=Fe.tabBarGutter,On=Fe.tabBarStyle,er=Fe.tabBarExtraContent,Zn=Fe.locale,Tr=Fe.moreIcon,dr=Fe.moreTransitionName,Bn=Fe.destroyInactiveTabPane,rn=Fe.renderTabBar,yn=Fe.onChange,tn=Fe.onTabClick,Er=Fe.onTabScroll,zn=Object(T.a)(Fe,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),bn=mr(Ze),In=qe==="rtl",Fr;Pt===!1?Fr={inkBar:!1,tabPane:!1}:Fr=Object(v.a)({inkBar:!0,tabPane:!1},Pt!==!0?Pt:null);var Qn=Object(m.useState)(!1),Ln=Object(E.a)(Qn,2),cr=Ln[0],Lr=Ln[1];Object(m.useEffect)(function(){Lr($n())},[]);var Nr=Object(e.a)(function(){var Pa;return(Pa=bn[0])===null||Pa===void 0?void 0:Pa.key},{value:ht,defaultValue:et}),$r=Object(E.a)(Nr,2),fa=$r[0],ia=$r[1],na=Object(m.useState)(function(){return bn.findIndex(function(Pa){return Pa.key===fa})}),kr=Object(E.a)(na,2),Wa=kr[0],mi=kr[1];Object(m.useEffect)(function(){var Pa=bn.findIndex(function(Ti){return Ti.key===fa});if(Pa===-1){var Ei;Pa=Math.max(0,Math.min(Wa,bn.length-1)),ia((Ei=bn[Pa])===null||Ei===void 0?void 0:Ei.key)}mi(Pa)},[bn.map(function(Pa){return Pa.key}).join("_"),fa,Wa]);var Qr=Object(e.a)(null,{value:Ye}),zr=Object(E.a)(Qr,2),Xr=zr[0],Vr=zr[1],ha=kt;cr&&!["left","right"].includes(kt)&&(ha="top"),Object(m.useEffect)(function(){Ye||(Vr("rc-tabs-".concat(Kr)),Kr+=1)},[]);function sa(Pa,Ei){tn==null||tn(Pa,Ei),ia(Pa),yn==null||yn(Pa)}var _a={id:Xr,activeKey:fa,animated:Fr,tabPosition:ha,rtl:In,mobile:cr},Ha,Ua=Object(v.a)(Object(v.a)({},_a),{},{editable:wt,locale:Zn,moreIcon:Tr,moreTransitionName:dr,tabBarGutter:ln,onTabClick:sa,onTabScroll:Er,extra:er,style:On,panes:Ze});return rn?Ha=rn(Ua,wr):Ha=m.createElement(wr,Object.assign({},Ua)),m.createElement(Xn.Provider,{value:{tabs:bn,prefixCls:ze}},m.createElement("div",Object.assign({ref:tt,id:Ye,className:O()(ze,"".concat(ze,"-").concat(ha),(nt={},Object(M.a)(nt,"".concat(ze,"-mobile"),cr),Object(M.a)(nt,"".concat(ze,"-editable"),wt),Object(M.a)(nt,"".concat(ze,"-rtl"),In),nt),Re)},zn),Ha,m.createElement(_r,Object.assign({destroyInactiveTabPane:Bn},_a,{animated:Fr}))))}var Rr=m.forwardRef(Jr);Rr.TabPane=qr;var ra=Rr,Gr=Y.b=ra},kPWJ:function(N,Y,i){N.exports=i.p+"static/question.cb52bef9.gif"},kPYp:function(N,Y){N.exports="data:image/png;base64,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"},kSUc:function(N,Y,i){},l2Kq:function(N,Y,i){N.exports=i.p+"static/match_ad.24dc22fd.jpg"},lPiR:function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(E){var T=M,v=T.lib,m=v.WordArray,y=v.Hasher,O=T.algo,g=[],e=[];(function(){function c(l){for(var d=E.sqrt(l),h=2;h<=d;h++)if(!(l%h))return!1;return!0}function n(l){return(l-(l|0))*4294967296|0}for(var a=2,o=0;o<64;)c(a)&&(o<8&&(g[o]=n(E.pow(a,1/2))),e[o]=n(E.pow(a,1/3)),o++),a++})();var f=[],r=O.SHA256=y.extend({_doReset:function(){this._hash=new m.init(g.slice(0))},_doProcessBlock:function(c,n){for(var a=this._hash.words,o=a[0],l=a[1],d=a[2],h=a[3],s=a[4],u=a[5],w=a[6],x=a[7],b=0;b<64;b++){if(b<16)f[b]=c[n+b]|0;else{var P=f[b-15],R=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,C=f[b-2],S=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;f[b]=R+f[b-7]+S+f[b-16]}var _=s&u^~s&w,A=o&l^o&d^l&d,j=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),I=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),k=x+I+_+e[b]+f[b],J=j+A;x=w,w=u,u=s,s=h+k|0,h=d,d=l,l=o,o=k+J|0}a[0]=a[0]+o|0,a[1]=a[1]+l|0,a[2]=a[2]+d|0,a[3]=a[3]+h|0,a[4]=a[4]+s|0,a[5]=a[5]+u|0,a[6]=a[6]+w|0,a[7]=a[7]+x|0},_doFinalize:function(){var c=this._data,n=c.words,a=this._nDataBytes*8,o=c.sigBytes*8;return n[o>>>5]|=128<<24-o%32,n[(o+64>>>9<<4)+14]=E.floor(a/4294967296),n[(o+64>>>9<<4)+15]=a,c.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var c=y.clone.call(this);return c._hash=this._hash.clone(),c}});T.SHA256=y._createHelper(r),T.HmacSHA256=y._createHmacHelper(r)}(Math),M.SHA256})},lZu9:function(N,Y,i){(function(M){M(i("VrN/"),i("1eCo"),i("8EBN"))})(function(M){"use strict";M.defineMode("markdown",function(E,T){var v=M.getMode(E,"text/html"),m=v.name=="null";function y(W){if(M.findModeByName){var L=M.findModeByName(W);L&&(W=L.mime||L.mimes[0])}var z=M.getMode(E,W);return z.name=="null"?null:z}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 O={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var g in O)O.hasOwnProperty(g)&&T.tokenTypeOverrides[g]&&(O[g]=T.tokenTypeOverrides[g]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,r=/^\[(x| )\](?=\s)/i,c=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,n=/^ {0,3}(?:\={1,}|-{2,})\s*$/,a=/^[^#!\[\]*_\\<>` "'(~:]+/,o=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,l=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,h=" ";function s(W,L,z){return L.f=L.inline=z,z(W,L)}function u(W,L,z){return L.f=L.block=z,z(W,L)}function w(W){return!W||!/\S/.test(W.string)}function x(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==P){var L=m;if(!L){var z=M.innerMode(v,W.htmlState);L=z.mode.name=="xml"&&z.state.tagStart===null&&!z.state.context&&z.state.tokenize.isInText}L&&(W.f=_,W.block=b,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function b(W,L){var z=W.column()===L.indentation,ie=w(L.prevLine.stream),ce=L.indentedCode,ue=L.prevLine.hr,xe=L.list!==!1,Te=(L.listStack[L.listStack.length-1]||0)+3;L.indentedCode=!1;var de=L.indentation;if(L.indentationDiff===null&&(L.indentationDiff=L.indentation,xe)){for(L.list=null;de<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=de-L.listStack[L.listStack.length-1])}var ve=!ie&&!ue&&!L.prevLine.header&&(!xe||!ce)&&!L.prevLine.fencedCodeEnd,_e=(L.list===!1||ue||ie)&&L.indentation<=Te&&W.match(e),le=null;if(L.indentationDiff>=4&&(ce||L.prevLine.fencedCodeEnd||L.prevLine.header||ie))return W.skipToEnd(),L.indentedCode=!0,O.code;if(W.eatSpace())return null;if(z&&L.indentation<=Te&&(le=W.match(c))&&le[1].length<=6)return L.quote=0,L.header=le[1].length,L.thisLine.header=!0,T.highlightFormatting&&(L.formatting="header"),L.f=L.inline,C(L);if(L.indentation<=Te&&W.eat(">"))return L.quote=z?1:L.quote+1,T.highlightFormatting&&(L.formatting="quote"),W.eatSpace(),C(L);if(!_e&&!L.setext&&z&&L.indentation<=Te&&(le=W.match(f))){var ee=le[1]?"ol":"ul";return L.indentation=de+W.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&&W.match(r,!1)&&(L.taskList=!0),L.f=L.inline,T.highlightFormatting&&(L.formatting=["list","list-"+ee]),C(L)}else{if(z&&L.indentation<=Te&&(le=W.match(o,!0)))return L.quote=0,L.fencedEndRE=new RegExp(le[1]+"+ *$"),L.localMode=T.fencedCodeBlockHighlighting&&y(le[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,C(L);if(L.setext||(!ve||!xe)&&!L.quote&&L.list===!1&&!L.code&&!_e&&!l.test(W.string)&&(le=W.lookAhead(1))&&(le=le.match(n)))return L.setext?(L.header=L.setext,L.setext=0,W.skipToEnd(),T.highlightFormatting&&(L.formatting="header")):(L.header=le[0].charAt(0)=="="?1:2,L.setext=L.header),L.thisLine.header=!0,L.f=L.inline,C(L);if(_e)return W.skipToEnd(),L.hr=!0,L.thisLine.hr=!0,O.hr;if(W.peek()==="[")return s(W,L,J)}return s(W,L,L.inline)}function P(W,L){var z=v.token(W,L.htmlState);if(!m){var ie=M.innerMode(v,L.htmlState);(ie.mode.name=="xml"&&ie.state.tagStart===null&&!ie.state.context&&ie.state.tokenize.isInText||L.md_inside&&W.current().indexOf(">")>-1)&&(L.f=_,L.block=b,L.htmlState=null)}return z}function R(W,L){var z=L.listStack[L.listStack.length-1]||0,ie=L.indentation<z,ce=z+3;if(L.fencedEndRE&&L.indentation<=ce&&(ie||W.match(L.fencedEndRE))){T.highlightFormatting&&(L.formatting="code-block");var ue;return ie||(ue=C(L)),L.localMode=L.localState=null,L.block=b,L.f=_,L.fencedEndRE=null,L.code=0,L.thisLine.fencedCodeEnd=!0,ie?u(W,L,L.block):ue}else return L.localMode?L.localMode.token(W,L.localState):(W.skipToEnd(),O.code)}function C(W){var L=[];if(W.formatting){L.push(O.formatting),typeof W.formatting=="string"&&(W.formatting=[W.formatting]);for(var z=0;z<W.formatting.length;z++)L.push(O.formatting+"-"+W.formatting[z]),W.formatting[z]==="header"&&L.push(O.formatting+"-"+W.formatting[z]+"-"+W.header),W.formatting[z]==="quote"&&(!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=W.quote?L.push(O.formatting+"-"+W.formatting[z]+"-"+W.quote):L.push("error"))}if(W.taskOpen)return L.push("meta"),L.length?L.join(" "):null;if(W.taskClosed)return L.push("property"),L.length?L.join(" "):null;if(W.linkHref?L.push(O.linkHref,"url"):(W.strong&&L.push(O.strong),W.em&&L.push(O.em),W.strikethrough&&L.push(O.strikethrough),W.emoji&&L.push(O.emoji),W.linkText&&L.push(O.linkText),W.code&&L.push(O.code),W.image&&L.push(O.image),W.imageAltText&&L.push(O.imageAltText,"link"),W.imageMarker&&L.push(O.imageMarker)),W.header&&L.push(O.header,O.header+"-"+W.header),W.quote&&(L.push(O.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=W.quote?L.push(O.quote+"-"+W.quote):L.push(O.quote+"-"+T.maxBlockquoteDepth)),W.list!==!1){var ie=(W.listStack.length-1)%3;ie?ie===1?L.push(O.list2):L.push(O.list3):L.push(O.list1)}return W.trailingSpaceNewLine?L.push("trailing-space-new-line"):W.trailingSpace&&L.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),L.length?L.join(" "):null}function S(W,L){return W.match(a,!0)?C(L):void 0}function _(W,L){var z=L.text(W,L);if(typeof z!="undefined")return z;if(L.list)return L.list=null,C(L);if(L.taskList){var ie=W.match(r,!0)[1]===" ";return ie?L.taskOpen=!0:L.taskClosed=!0,T.highlightFormatting&&(L.formatting="task"),L.taskList=!1,C(L)}if(L.taskOpen=!1,L.taskClosed=!1,L.header&&W.match(/^#+$/,!0))return T.highlightFormatting&&(L.formatting="header"),C(L);var ce=W.next();if(L.linkTitle){L.linkTitle=!1;var ue=ce;ce==="("&&(ue=")"),ue=(ue+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var xe="^\\s*(?:[^"+ue+"\\\\]+|\\\\\\\\|\\\\.)"+ue;if(W.match(new RegExp(xe),!0))return O.linkHref}if(ce==="`"){var Te=L.formatting;T.highlightFormatting&&(L.formatting="code"),W.eatWhile("`");var de=W.current().length;if(L.code==0&&(!L.quote||de==1))return L.code=de,C(L);if(de==L.code){var ve=C(L);return L.code=0,ve}else return L.formatting=Te,C(L)}else if(L.code)return C(L);if(ce==="\\"&&(W.next(),T.highlightFormatting)){var _e=C(L),le=O.formatting+"-escape";return _e?_e+" "+le:le}if(ce==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return L.imageMarker=!0,L.image=!0,T.highlightFormatting&&(L.formatting="image"),C(L);if(ce==="["&&L.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return L.imageMarker=!1,L.imageAltText=!0,T.highlightFormatting&&(L.formatting="image"),C(L);if(ce==="]"&&L.imageAltText){T.highlightFormatting&&(L.formatting="image");var _e=C(L);return L.imageAltText=!1,L.image=!1,L.inline=L.f=j,_e}if(ce==="["&&!L.image)return L.linkText&&W.match(/^.*?\]/)||(L.linkText=!0,T.highlightFormatting&&(L.formatting="link")),C(L);if(ce==="]"&&L.linkText){T.highlightFormatting&&(L.formatting="link");var _e=C(L);return L.linkText=!1,L.inline=L.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?j:_,_e}if(ce==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=A,T.highlightFormatting&&(L.formatting="link");var _e=C(L);return _e?_e+=" ":_e="",_e+O.linkInline}if(ce==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){L.f=L.inline=A,T.highlightFormatting&&(L.formatting="link");var _e=C(L);return _e?_e+=" ":_e="",_e+O.linkEmail}if(T.xml&&ce==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ee=W.string.indexOf(">",W.pos);if(ee!=-1){var U=W.string.substring(W.start,ee);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(U)&&(L.md_inside=!0)}return W.backUp(1),L.htmlState=M.startState(v),u(W,L,P)}if(T.xml&&ce==="<"&&W.match(/^\/\w*?>/))return L.md_inside=!1,"tag";if(ce==="*"||ce==="_"){for(var K=1,X=W.pos==1?" ":W.string.charAt(W.pos-2);K<3&&W.eat(ce);)K++;var Q=W.peek()||" ",te=!/\s/.test(Q)&&(!d.test(Q)||/\s/.test(X)||d.test(X)),ae=!/\s/.test(X)&&(!d.test(X)||/\s/.test(Q)||d.test(Q)),re=null,$=null;if(K%2&&(!L.em&&te&&(ce==="*"||!ae||d.test(X))?re=!0:L.em==ce&&ae&&(ce==="*"||!te||d.test(Q))&&(re=!1)),K>1&&(!L.strong&&te&&(ce==="*"||!ae||d.test(X))?$=!0:L.strong==ce&&ae&&(ce==="*"||!te||d.test(Q))&&($=!1)),$!=null||re!=null){T.highlightFormatting&&(L.formatting=re==null?"strong":$==null?"em":"strong em"),re===!0&&(L.em=ce),$===!0&&(L.strong=ce);var ve=C(L);return re===!1&&(L.em=!1),$===!1&&(L.strong=!1),ve}}else if(ce===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return C(L);W.backUp(1)}if(T.strikethrough){if(ce==="~"&&W.eatWhile(ce)){if(L.strikethrough){T.highlightFormatting&&(L.formatting="strikethrough");var ve=C(L);return L.strikethrough=!1,ve}else if(W.match(/^[^\s]/,!1))return L.strikethrough=!0,T.highlightFormatting&&(L.formatting="strikethrough"),C(L)}else if(ce===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return C(L);W.backUp(2)}}if(T.emoji&&ce===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){L.emoji=!0,T.highlightFormatting&&(L.formatting="emoji");var Z=C(L);return L.emoji=!1,Z}return ce===" "&&(W.match(/^ +$/,!1)?L.trailingSpace++:L.trailingSpace&&(L.trailingSpaceNewLine=!0)),C(L)}function A(W,L){var z=W.next();if(z===">"){L.f=L.inline=_,T.highlightFormatting&&(L.formatting="link");var ie=C(L);return ie?ie+=" ":ie="",ie+O.linkInline}return W.match(/^[^>]+/,!0),O.linkInline}function j(W,L){if(W.eatSpace())return null;var z=W.next();return z==="("||z==="["?(L.f=L.inline=k(z==="("?")":"]"),T.highlightFormatting&&(L.formatting="link-string"),L.linkHref=!0,C(L)):"error"}var I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function k(W){return function(L,z){var ie=L.next();if(ie===W){z.f=z.inline=_,T.highlightFormatting&&(z.formatting="link-string");var ce=C(z);return z.linkHref=!1,ce}return L.match(I[W]),z.linkHref=!0,C(z)}}function J(W,L){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(L.f=G,W.next(),T.highlightFormatting&&(L.formatting="link"),L.linkText=!0,C(L)):s(W,L,_)}function G(W,L){if(W.match(/^\]:/,!0)){L.f=L.inline=D,T.highlightFormatting&&(L.formatting="link");var z=C(L);return L.linkText=!1,z}return W.match(/^([^\]\\]|\\.)+/,!0),O.linkText}function D(W,L){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?L.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),L.f=L.inline=_,O.linkHref+" url")}var H={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:_,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(W){return{f:W.f,prevLine:W.prevLine,thisLine:W.thisLine,block:W.block,htmlState:W.htmlState&&M.copyState(v,W.htmlState),indentation:W.indentation,localMode:W.localMode,localState:W.localMode?M.copyState(W.localMode,W.localState):null,inline:W.inline,text:W.text,formatting:!1,linkText:W.linkText,linkTitle:W.linkTitle,linkHref:W.linkHref,code:W.code,em:W.em,strong:W.strong,strikethrough:W.strikethrough,emoji:W.emoji,header:W.header,setext:W.setext,hr:W.hr,taskList:W.taskList,list:W.list,listStack:W.listStack.slice(0),quote:W.quote,indentedCode:W.indentedCode,trailingSpace:W.trailingSpace,trailingSpaceNewLine:W.trailingSpaceNewLine,md_inside:W.md_inside,fencedEndRE:W.fencedEndRE}},token:function(W,L){if(L.formatting=!1,W!=L.thisLine.stream){if(L.header=0,L.hr=!1,W.match(/^\s*$/,!0))return x(L),null;if(L.prevLine=L.thisLine,L.thisLine={stream:W},L.taskList=!1,L.trailingSpace=0,L.trailingSpaceNewLine=!1,!L.localState&&(L.f=L.block,L.f!=P)){var z=W.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(L.indentation=z,L.indentationDiff=null,z>0)return null}}return L.f(W,L)},innerMode:function(W){return W.block==P?{state:W.htmlState,mode:v}:W.localState?{state:W.localState,mode:W.localMode}:{state:W,mode:H}},indent:function(W,L,z){return W.block==P&&v.indent?v.indent(W.htmlState,L,z):W.localState&&W.localMode.indent?W.localMode.indent(W.localState,L,z):M.Pass},blankLine:x,getType:C,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),M.defineMIME("text/markdown","markdown"),M.defineMIME("text/x-markdown","markdown")})},luix:function(N,Y,i){N.exports=i.p+"static/tips.2ae2707a.svg"},lzim:function(N,Y,i){"use strict";var M=i("E7E6"),E=i.n(M);i.d(Y,"w",function(){return E.a});var T=i("/GNS"),v=i.n(T);i.d(Y,"v",function(){return v.a});var m=i("FOrL"),y=i.n(m);i.d(Y,"q",function(){return y.a});var O=i("HpTS"),g=i.n(O);i.d(Y,"x",function(){return g.a});var e=i("tWlo"),f=i.n(e);i.d(Y,"a",function(){return f.a});var r=i("7ZXX"),c=i.n(r);i.d(Y,"l",function(){return c.a});var n=i("GABl"),a=i.n(n);i.d(Y,"e",function(){return a.a});var o=i("onxn"),l=i.n(o);i.d(Y,"n",function(){return l.a});var d=i("nKGa"),h=i.n(d);i.d(Y,"m",function(){return h.a});var s=i("4qgm"),u=i.n(s);i.d(Y,"y",function(){return u.a});var w=i("JeFH"),x=i.n(w);i.d(Y,"b",function(){return x.a});var b=i("ji0R"),P=i.n(b);i.d(Y,"i",function(){return P.a});var R=i("W6BS"),C=i.n(R);i.d(Y,"z",function(){return C.a});var S=i("kPYp"),_=i.n(S);i.d(Y,"A",function(){return _.a});var A=i("nukY"),j=i.n(A),I=i("4u4S"),k=i.n(I),J=i("yslc"),G=i.n(J),D=i("l2Kq"),H=i.n(D),W=i("RMFE"),L=i.n(W);i.d(Y,"o",function(){return L.a});var z=i("TGq3"),ie=i.n(z),ce=i("SMhR"),ue=i.n(ce),xe=i("8/bI"),Te=i.n(xe);i.d(Y,"j",function(){return Te.a});var de=i("JWDV"),ve=i.n(de),_e=i("Xsq0"),le=i.n(_e);i.d(Y,"p",function(){return le.a});var ee=i("Ohmc"),U=i.n(ee);i.d(Y,"c",function(){return U.a});var K=i("csWT"),X=i.n(K);i.d(Y,"d",function(){return X.a});var Q=i("7v3h"),te=i.n(Q);i.d(Y,"k",function(){return te.a});var ae=i("cRFk"),re=i.n(ae);i.d(Y,"u",function(){return re.a});var $=i("kPWJ"),Z=i.n($);i.d(Y,"t",function(){return Z.a});var fe=i("qgvg"),me=i.n(fe);i.d(Y,"r",function(){return me.a});var Oe=i("FPkq"),He=i.n(Oe);i.d(Y,"s",function(){return He.a});var Qe=i("A/g1"),ot=i.n(Qe);i.d(Y,"f",function(){return ot.a});var st=i("Nmxd"),ct=i.n(st);i.d(Y,"g",function(){return ct.a});var dt=i("5D2P"),Xe=i.n(dt);i.d(Y,"h",function(){return Xe.a});var ke=i("djh8"),lt=i.n(ke),Mt=i("Jq4h"),Ce=i.n(Mt)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(N){if(!0)module.exports=N();else var Y})(function(){var define,module,exports;return function(){function N(Y,i,M){function E(m,y){if(!i[m]){if(!Y[m]){var O=typeof require=="function"&&require;if(!y&&O)return require(m,!0);if(T)return T(m,!0);var g=new Error("Cannot find module '"+m+"'");throw g.code="MODULE_NOT_FOUND",g}var e=i[m]={exports:{}};Y[m][0].call(e.exports,function(f){var r=Y[m][1][f];return E(r||f)},e,e.exports,N,Y,i,M)}return i[m].exports}for(var T=typeof require=="function"&&require,v=0;v<M.length;v++)E(M[v]);return E}return N}()({1:[function(N,Y,i){"use strict";var M=N("./browser/client");M.Buffer=N("buffer").Buffer,M.urllib=N("../shims/xhr"),M.version=N("./browser/version").version,Y.exports=M},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(N,Y,i){(function(M,E){"use strict";var T=N("babel-runtime/core-js/promise"),v=e(T),m=N("babel-runtime/regenerator"),y=e(m),O=N("babel-runtime/core-js/object/assign"),g=e(O);function e(J){return J&&J.__esModule?J:{default:J}}var f=N("debug")("ali-oss"),r=N("copy-to"),c=N("xml2js"),n=N("agentkeepalive"),a=N("merge-descriptors"),o=N("url"),l=N("is-type-of"),d=N("platform"),h=N("utility"),s=N("urllib"),u=N("./version"),w=N("bowser"),x=N("../common/signUtils"),b=N("../common/utils/isIP"),P=b.isIP,R=N("../common/client/initOptions"),C=N("../common/utils/createRequest"),S=C.createRequest,_=new n;function A(){var J=d.name,G=d.version;J&&J.toLowerCase&&J.toLowerCase()==="ie"&&G.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function j(){return location&&location.protocol==="https:"}function I(J,G){if(A(),!(this instanceof I))return new I(J,G);J&&J.inited?this.options=J:this.options=I.initOptions(J),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=s,this.agent=this.options.agent||_),this.ctx=G,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}Y.exports=I,I.initOptions=function(G){G.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:j(),useFetch:!1},G);return R(D)};var k=I.prototype;k.debug=f,a(k,N("./object")),a(k,N("../common/bucket/getBucketWebsite")),a(k,N("../common/bucket/putBucketWebsite")),a(k,N("../common/bucket/deleteBucketWebsite")),a(k,N("../common/bucket/getBucketLifecycle")),a(k,N("../common/bucket/putBucketLifecycle")),a(k,N("../common/bucket/deleteBucketLifecycle")),a(k,N("../common/bucket/putBucketVersioning")),a(k,N("../common/bucket/getBucketVersioning")),a(k,N("./managed-upload")),a(k,N("../common/multipart")),a(k,N("../common/parallel")),k.signature=function(G){return this.debug("authorization stringToSign: %s",G,"info"),x.computeSignature(this.options.accessKeySecret,G)},k.authorization=function(G,D,H,W){var L=x.buildCanonicalString(G.toUpperCase(),D,{headers:W,parameters:H});return x.authorization(this.options.accessKeyId,this.options.accessKeySecret,L)},k.request=function(G){var D,H,W,L,z,ie;return y.default.async(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return D=S.call(this,G),this.options.useFetch||(D.params.mode="disable-fetch"),H=void 0,W=void 0,L=!!G.stream,ue.prev=5,ue.next=8,y.default.awrap(this.urllib.request(D.url,D.params));case 8:H=ue.sent,this.debug("response %s %s, got %s, headers: %j",G.method,D.url,H.status,H.headers,"info"),ue.next=15;break;case 12:ue.prev=12,ue.t0=ue.catch(5),W=ue.t0;case 15:if(z=void 0,!(H&&G.successStatuses&&G.successStatuses.indexOf(H.status)===-1)){ue.next=28;break}return ue.next=19,y.default.awrap(this.requestError(H));case 19:if(z=ue.sent,!(z.code==="RequestTimeTooSkewed"&&!L)){ue.next=25;break}return this.options.amendTimeSkewed=+new Date(z.serverTime)-new Date,ue.next=24,y.default.awrap(this.request(G));case 24:return ue.abrupt("return",ue.sent);case 25:z.params=G,ue.next=32;break;case 28:if(!W){ue.next=32;break}return ue.next=31,y.default.awrap(this.requestError(W));case 31:z=ue.sent;case 32:if(!z){ue.next=34;break}throw z;case 34:if(!G.xmlResponse){ue.next=39;break}return ue.next=37,y.default.awrap(this.parseXML(H.data));case 37:ie=ue.sent,H.data=ie;case 39:return ue.abrupt("return",H);case 40:case"end":return ue.stop()}},null,this,[[5,12]])},k._getResource=function(G){var D="/";return G.bucket&&(D+=G.bucket+"/"),G.object&&(D+=G.object),D},k._isIP=P,k._escape=function(G){return h.encodeURIComponent(G).replace(/%2F/g,"/")},k._getReqUrl=function(G){var D={};r(this.options.endpoint).to(D);var H=this._isIP(D.hostname),W=this.options.cname;G.bucket&&!W&&!H&&(D.host=G.bucket+"."+D.host);var L="/";G.bucket&&H&&(L+=G.bucket+"/"),G.object&&(L+=this._escape(G.object).replace(/\+/g,"%2B")),D.pathname=L;var z={};if(G.query&&a(z,G.query),G.subres){var ie={};l.string(G.subres)?ie[G.subres]="":l.array(G.subres)?G.subres.forEach(function(ce){ie[ce]=""}):ie=G.subres,a(z,ie)}return D.query=z,o.format(D)},k._getUserAgent=function(){var G=E&&E.browser?"js":"nodejs",D="aliyun-sdk-"+G+"/"+u.version,H=d.description;return!H&&E&&(H="Node.js "+E.version.slice(1)+" on "+E.platform+" "+E.arch),this._checkUserAgent(D+" "+H)},k._checkUserAgent=function(G){var D=G.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return D},k.checkBrowserAndVersion=function(G,D){return w.name===G&&w.version.split(".")[0]===D},k.parseXML=function(G){return new v.default(function(D,H){M.isBuffer(G)&&(G=G.toString()),c.parseString(G,{explicitRoot:!1,explicitArray:!1},function(W,L){W?H(W):D(L)})})},k.requestError=function(G){var D,H,W,L;return y.default.async(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(D=null,!(!G.data||!G.data.length)){ie.next=5;break}G.status===-1||G.status===-2?(D=new Error(G.message),D.name=G.name,D.status=G.status,D.code=G.name):(G.status===404?(D=new Error("Object not exists"),D.name="NoSuchKeyError",D.status=404,D.code="NoSuchKey"):G.status===412?(D=new Error("Pre condition failed"),D.name="PreconditionFailedError",D.status=412,D.code="PreconditionFailed"):(D=new Error("Unknow error, status: "+G.status),D.name="UnknowError",D.status=G.status),D.requestId=G.headers["x-oss-request-id"],D.host=""),ie.next=33;break;case 5:return H=String(G.data),this.debug("request response error data: %s",H,"error"),W=void 0,ie.prev=8,ie.next=11,y.default.awrap(this.parseXML(H));case 11:if(ie.t0=ie.sent,ie.t0){ie.next=14;break}ie.t0={};case 14:W=ie.t0,ie.next=24;break;case 17:return ie.prev=17,ie.t1=ie.catch(8),this.debug(H,"error"),ie.t1.message+=`
raw xml: `+H,ie.t1.status=G.status,ie.t1.requestId=G.headers["x-oss-request-id"],ie.abrupt("return",ie.t1);case 24:L=W.Message||"unknow request error, status: "+G.status,W.Condition&&(L+=" (condition: "+W.Condition+")"),D=new Error(L),D.name=W.Code?W.Code+"Error":"UnknowError",D.status=G.status,D.code=W.Code,D.requestId=W.RequestId,D.hostId=W.HostId,D.serverTime=W.ServerTime;case 33:return this.debug("generate error %j",D,"error"),ie.abrupt("return",D);case 35:case"end":return ie.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:N("../../node_modules/is-buffer/index.js")},N("_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(N,Y,i){(function(M){"use strict";var E=N("babel-runtime/core-js/array/from"),T=g(E),v=N("babel-runtime/core-js/promise"),m=g(v),y=N("babel-runtime/regenerator"),O=g(y);function g(x){return x&&x.__esModule?x:{default:x}}var e=N("is-type-of"),f=N("util"),r=N("path"),c=N("mime"),n=N("copy-to"),a=N("../common/utils/isBlob"),o=a.isBlob,l=N("../common/utils/isFile"),d=l.isFile,h=i;h.multipartUpload=function(b,P,R){var C,S,_,A,j,I,k,J,G;return O.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),R=R||{},!(R.checkpoint&&R.checkpoint.uploadId)){H.next=6;break}return H.next=5,O.default.awrap(this._resumeMultipart(R.checkpoint,R));case 5:return H.abrupt("return",H.sent);case 6:return C=100*1024,R.mime||(d(P)?R.mime=c.getType(r.extname(P.name)):o(P)?R.mime=P.type:R.mime=c.getType(r.extname(P))),R.headers=R.headers||{},this._convertMetaToHeaders(R.meta,R.headers),H.next=12,O.default.awrap(this._getFileSize(P));case 12:if(S=H.sent,!(S<C)){H.next=25;break}return _=this._createStream(P,0,S),R.contentLength=S,H.next=18,O.default.awrap(this.putStream(b,_,R));case 18:if(A=H.sent,!(R&&R.progress)){H.next=22;break}return H.next=22,O.default.awrap(R.progress(1));case 22:return j={res:A.res,bucket:this.options.bucket,name:b,etag:A.res.headers.etag},(R.headers&&R.headers["x-oss-callback"]||R.callback)&&(j.data=A.data),H.abrupt("return",j);case 25:if(!(R.partSize&&!(parseInt(R.partSize,10)===R.partSize))){H.next=27;break}throw new Error("partSize must be int number");case 27:if(!(R.partSize&&R.partSize<C)){H.next=29;break}throw new Error("partSize must not be smaller than "+C);case 29:return H.next=31,O.default.awrap(this.initMultipartUpload(b,R));case 31:if(I=H.sent,k=I.uploadId,J=this._getPartSize(S,R.partSize),G={file:P,name:b,fileSize:S,partSize:J,uploadId:k,doneParts:[]},!(R&&R.progress)){H.next=38;break}return H.next=38,O.default.awrap(R.progress(0,G,I.res));case 38:return H.next=40,O.default.awrap(this._resumeMultipart(G,R));case 40:return H.abrupt("return",H.sent);case 41:case"end":return H.stop()}},null,this)},h._resumeMultipart=function(b,P){var R,C,S,_,A,j,I,k,J,G,D,H,W,L,z,ie,ce,ue;return O.default.async(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(R=this,!this.isCancel()){Te.next=3;break}throw this._makeCancelEvent();case 3:return C=b.file,S=b.fileSize,_=b.partSize,A=b.uploadId,j=b.doneParts,I=b.name,k=[],j.length>0&&n(j).to(k),J=this._divideParts(S,_),G=J.length,D=!1,H=function(ve,_e){var le=this;return new m.default(function(U,K){var X,Q,te,ae;return O.default.async(function($){for(;;)switch($.prev=$.next){case 0:if($.prev=0,ve.isCancel()){$.next=18;break}return X=J[_e-1],Q={stream:ve._createStream(C,X.start,X.end),size:X.end-X.start},$.next=6,O.default.awrap(ve._uploadPart(I,A,_e,Q));case 6:if(te=$.sent,!(!ve.isCancel()&&!D)){$.next=15;break}if(b.doneParts.push({number:_e,etag:te.res.headers.etag}),!P.progress){$.next=12;break}return $.next=12,O.default.awrap(P.progress(j.length/G,b,te.res));case 12:U({number:_e,etag:te.res.headers.etag}),$.next=16;break;case 15:U();case 16:$.next=19;break;case 18:U();case 19:$.next=30;break;case 21:$.prev=21,$.t0=$.catch(0),ae=new Error,ae.name=$.t0.name,ae.message=$.t0.message,ae.stack=$.t0.stack,ae.partNum=_e,n($.t0).to(ae),K(ae);case 30:case"end":return $.stop()}},null,le,[[0,21]])})},W=(0,T.default)(new Array(G),function(de,ve){return ve+1}),L=k.map(function(de){return de.number}),z=W.filter(function(de){return L.indexOf(de)<0}),ie=5,ce=P.parallel||ie,Te.next=17,O.default.awrap(this._parallel(z,ce,function(de){return new m.default(function(ve,_e){H(R,de).then(function(le){le&&k.push(le),ve()}).catch(function(le){_e(le)})})}));case 17:if(ue=Te.sent,D=!0,!this.isCancel()){Te.next=22;break}throw H=null,this._makeCancelEvent();case 22:if(!(ue&&ue.length>0)){Te.next=25;break}throw ue[0].message="Failed to upload some parts with error: "+ue[0].toString()+" part_num: "+ue[0].partNum,ue[0];case 25:return Te.next=27,O.default.awrap(this.completeMultipartUpload(I,A,k,P));case 27:return Te.abrupt("return",Te.sent);case 28:case"end":return Te.stop()}},null,this)},h._getFileSize=function(b){return O.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!e.buffer(b)){R.next=4;break}return R.abrupt("return",b.length);case 4:if(!(o(b)||d(b))){R.next=6;break}return R.abrupt("return",b.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return R.stop()}},null,this)};var s=N("stream"),u=s.Readable;function w(x,b){if(!(this instanceof w))return new w(x,b);u.call(this,b),this.file=x,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(w,u),w.prototype.readFileAndPush=function(b){if(this.fileBuffer)for(var P=!0;P&&this.fileBuffer&&this.start<this.fileBuffer.length;){var R=this.start,C=R+b;C=C>this.fileBuffer.length?this.fileBuffer.length:C,this.start=C,P=this.push(this.fileBuffer.slice(R,C))}},w.prototype._read=function(b){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;b=b||P;var R=this;this.reader.onload=function(S){R.fileBuffer=M.from(new Uint8Array(S.target.result)),R.file=null,R.readFileAndPush(b)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(b)},h._createStream=function(b,P,R){if(o(b)||d(b))return new w(b.slice(P,R));throw new Error("_createStream requires File/Blob.")},h._getPartSize=function(b,P){var R=10*1e3,C=1024*1024;return P?Math.max(Math.ceil(b/R),P):C},h._divideParts=function(b,P){for(var R=Math.ceil(b/P),C=[],S=0;S<R;S++){var _=P*S,A=Math.min(_+P,b);C.push({start:_,end:A})}return C}}).call(this,N("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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/promise"),E=e(M),T=N("babel-runtime/core-js/object/keys"),v=e(T),m=N("babel-runtime/core-js/object/assign"),y=e(m),O=N("babel-runtime/regenerator"),g=e(O);function e(R){return R&&R.__esModule?R:{default:R}}var f=N("utility"),r=N("fs"),c=N("is-type-of"),n=N("url"),a=N("copy-to"),o=N("path"),l=N("mime"),d=N("../common/callback"),h=N("../common/signUtils"),s=N("merge-descriptors"),u=N("../common/utils/isBlob"),w=u.isBlob,x=N("../common/utils/isFile"),b=x.isFile,P=i;P.append=function(C,S,_){var A;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return _=_||{},_.position===void 0&&(_.position="0"),_.subres={append:"",position:_.position},_.method="POST",I.next=6,g.default.awrap(this.put(C,S,_));case 6:return A=I.sent,A.nextAppendPosition=A.res.headers["x-oss-next-append-position"],I.abrupt("return",A);case 9:case"end":return I.stop()}},null,this)},P.put=function(C,S,_){var A,j,I,k,J,G,D;return g.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(A=void 0,_=_||{},C=this._objectName(C),!c.buffer(S)){W.next=7;break}A=S,W.next=33;break;case 7:if(!(w(S)||b(S))){W.next=32;break}return _.mime||(b(S)?_.mime=l.getType(o.extname(S.name)):_.mime=S.type),j=this._createStream(S,0,S.size),W.next=12,g.default.awrap(this._getFileSize(S));case 12:return _.contentLength=W.sent,W.prev=13,W.next=16,g.default.awrap(this.putStream(C,j,_));case 16:return I=W.sent,W.abrupt("return",I);case 20:if(W.prev=20,W.t0=W.catch(13),!(W.t0.code==="RequestTimeTooSkewed")){W.next=29;break}return this.options.amendTimeSkewed=+new Date(W.t0.serverTime)-new Date,W.next=26,g.default.awrap(this.put(C,S,_));case 26:return W.abrupt("return",W.sent);case 29:throw W.t0;case 30:W.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return _.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),k=_.method||"PUT",J=this._objectRequestParams(k,C,_),d.encodeCallback(J,_),J.mime=_.mime,J.content=A,J.successStatuses=[200],W.next=43,g.default.awrap(this.request(J));case 43:return G=W.sent,D={name:C,url:this._objectUrl(C),res:G.res},J.headers&&J.headers["x-oss-callback"]&&(D.data=JSON.parse(G.data.toString())),W.abrupt("return",D);case 47:case"end":return W.stop()}},null,this,[[13,20]])},P.putStream=function(C,S,_){var A,j,I,k;return g.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return _=_||{},_.headers=_.headers||{},C=this._objectName(C),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),A=_.method||"PUT",j=this._objectRequestParams(A,C,_),d.encodeCallback(j,_),j.mime=_.mime,j.stream=S,j.successStatuses=[200],G.next=13,g.default.awrap(this.request(j));case 13:return I=G.sent,k={name:C,url:this._objectUrl(C),res:I.res},j.headers&&j.headers["x-oss-callback"]&&(k.data=JSON.parse(I.data.toString())),G.abrupt("return",k);case 17:case"end":return G.stop()}},null,this)},s(P,N("../common/object/copyObject")),s(P,N("../common/object/getObjectTagging")),s(P,N("../common/object/putObjectTagging")),s(P,N("../common/object/deleteObjectTagging")),s(P,N("../common/image")),s(P,N("../common/object/getBucketVersions")),s(P,N("../common/object/getACL")),s(P,N("../common/object/putACL")),s(P,N("../common/object/head")),s(P,N("../common/object/delete")),s(P,N("../common/object/get")),s(P,N("../common/object/putSymlink")),s(P,N("../common/object/getSymlink")),s(P,N("../common/object/deleteMulti")),s(P,N("../common/object/getObjectMeta")),P.putMeta=function(C,S,_){var A;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,g.default.awrap(this.copy(C,C,{meta:S||{},timeout:_&&_.timeout,ctx:_&&_.ctx}));case 2:return A=I.sent,I.abrupt("return",A);case 4:case"end":return I.stop()}},null,this)},P.list=function(C,S){var _,A,j,I,k;return g.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return _=this._objectRequestParams("GET","",S),_.query=C,_.xmlResponse=!0,_.successStatuses=[200],G.next=6,g.default.awrap(this.request(_));case 6:return A=G.sent,j=A.data.Contents,I=this,j&&(Array.isArray(j)||(j=[j]),j=j.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}}})),k=A.data.CommonPrefixes||null,k&&(Array.isArray(k)||(k=[k]),k=k.map(function(D){return D.Prefix})),G.abrupt("return",{res:A.res,objects:j,prefixes:k,nextMarker:A.data.NextMarker||null,isTruncated:A.data.IsTruncated==="true"});case 13:case"end":return G.stop()}},null,this)},P.restore=function(C,S){var _,A;return g.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return S=S||{},S.subres=(0,y.default)({restore:""},S.subres),S.versionId&&(S.subres.versionId=S.versionId),_=this._objectRequestParams("POST",C,S),_.successStatuses=[202],I.next=7,g.default.awrap(this.request(_));case 7:return A=I.sent,I.abrupt("return",{res:A.res});case 9:case"end":return I.stop()}},null,this)},P.signatureUrl=function(C,S){S=S||{},C=this._objectName(C),S.method=S.method||"GET";var _=f.timestamp()+(S.expires||1800),A={bucket:this.options.bucket,object:C},j=this._getResource(A);this.options.stsToken&&(S["security-token"]=this.options.stsToken);var I=h._signatureForURL(this.options.accessKeySecret,S,j,_),k=n.parse(this._getReqUrl(A));return k.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:I.Signature},a(I.subResource).to(k.query),k.format()},P.getObjectUrl=function(C,S){return S?S[S.length-1]!=="/"&&(S+="/"):S=this.options.endpoint.format(),S+this._escape(this._objectName(C))},P._objectUrl=function(C){return this._getReqUrl({bucket:this.options.bucket,object:C})},P.generateObjectUrl=function(R,C){if(C)C[C.length-1]!=="/"&&(C+="/");else{C=this.options.endpoint.format();var S=n.parse(C),_=this.options.bucket;S.hostname=_+"."+S.hostname,S.host=_+"."+S.host,C=S.format()}return C+this._escape(this._objectName(R))},P._objectRequestParams=function(C,S,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},S=this._objectName(S);var A={object:S,bucket:this.options.bucket,method:C,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(A.headers={},a(_.headers).to(A.headers)),A},P._objectName=function(C){return C.replace(/^\/+/,"")},P._convertMetaToHeaders=function(C,S){if(!C)return;(0,v.default)(C).forEach(function(_){S["x-oss-meta-"+_]=C[_]})},P._deleteFileSafe=function(C){var S=this;return new E.default(function(_){r.exists(C,function(A){A?r.unlink(C,function(j){j&&S.debug("unlink %j error: %s",C,j,"error"),_()}):_()})})}},{"../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(N,Y,i){"use strict";i.version="6.10.0"},{}],6:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(O){return O&&O.__esModule?O:{default:O}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=i;y.deleteBucketLifecycle=function(g,e){var f,r;return E.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return m(g),f=this._bucketRequestParams("DELETE",g,"lifecycle",e),f.successStatuses=[204],n.next=5,E.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(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(O){return O&&O.__esModule?O:{default:O}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=i;y.deleteBucketWebsite=function(g,e){var f,r;return E.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return m(g),f=this._bucketRequestParams("DELETE",g,"website",e),f.successStatuses=[204],n.next=5,E.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(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(r){return r&&r.__esModule?r:{default:r}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=N("../utils/isArray"),O=y.isArray,g=N("../utils/formatObjKey"),e=g.formatObjKey,f=i;f.getBucketLifecycle=function(c,n){var a,o,l;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return m(c),a=this._bucketRequestParams("GET",c,"lifecycle",n),a.successStatuses=[200],a.xmlResponse=!0,h.next=6,E.default.awrap(this.request(a));case 6:return o=h.sent,l=o.data.Rule||null,l&&(O(l)||(l=[l]),l=l.map(function(s){return s.ID&&(s.id=s.ID,delete s.ID),s.Tag&&!O(s.Tag)&&(s.Tag=[s.Tag]),e(s,"firstLowerCase")})),h.abrupt("return",{rules:l,res:o.res});case 10:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(O){return O&&O.__esModule?O:{default:O}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=i;y.getBucketVersioning=function(g,e){var f,r,c;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return m(g),f=this._bucketRequestParams("GET",g,"versioning",e),f.xmlResponse=!0,f.successStatuses=[200],a.next=6,E.default.awrap(this.request(f));case 6:return r=a.sent,c=r.data.Status,a.abrupt("return",{status:r.status,versionStatus:c,res:r.res});case 9:case"end":return a.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(e){return e&&e.__esModule?e:{default:e}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=N("../utils/isObject"),O=y.isObject,g=i;g.getBucketWebsite=function(f,r){var c,n,a;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return m(f),c=this._bucketRequestParams("GET",f,"website",r),c.successStatuses=[200],c.xmlResponse=!0,l.next=6,E.default.awrap(this.request(c));case 6:return n=l.sent,a=[],n.data.RoutingRules&&n.data.RoutingRules.RoutingRule&&(O(n.data.RoutingRules.RoutingRule)?a=[n.data.RoutingRules.RoutingRule]:a=n.data.RoutingRules.RoutingRule),l.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:a,error:n.data.ErrorDocument&&n.data.ErrorDocument.Key||null,res:n.res});case 10:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(b){return b&&b.__esModule?b:{default:b}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=N("../utils/isArray"),O=y.isArray,g=N("../utils/deepCopy"),e=g.deepCopy,f=N("../utils/isObject"),r=f.isObject,c=N("../utils/obj2xml"),n=c.obj2xml,a=N("../utils/checkObjectTag"),o=a.checkObjectTag,l=N("../utils/getStrBytesCount"),d=l.getStrBytesCount,h=i;h.putBucketLifecycle=function(P,R,C){var S,_,A,j,I;return E.default.async(function(J){for(;;)switch(J.prev=J.next){case 0:if(m(P),O(R)){J.next=3;break}throw new Error("rules must be Array");case 3:return S=this._bucketRequestParams("PUT",P,"lifecycle",C),_=[],A={LifecycleConfiguration:{Rule:_}},R.forEach(function(G){s(G),x(G),G.id&&(G.ID=G.id,delete G.id),_.push(G)}),j=n(A,{headers:!0,firstUpperCase:!0}),S.content=j,S.mime="xml",S.successStatuses=[200],J.next=13,E.default.awrap(this.request(S));case 13:return I=J.sent,J.abrupt("return",{res:I.res});case 15:case"end":return J.stop()}},null,this)};function s(b){b.days&&(b.expiration={days:b.days}),b.date&&(b.expiration={createdBeforeDate:b.date})}function u(b,P){var R=b.days,C=b.createdBeforeDate;if(!R&&!C)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(C&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(C))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function w(b){if(!O(b)&&!r(b))throw new Error("tag must be Object or Array");b=r(b)?[b]:b;var P={},R=e(b);R.forEach(function(C){P[C.key]=C.value}),o(P)}function x(b){if(b.id&&d(b.id)>255)throw new Error("ID is composed of 255 bytes at most");if(b.prefix===""||b.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(b.status))throw new Error("Status must be Enabled or Disabled");if(b.transition){if(!["IA","Archive"].includes(b.transition.storageClass))throw new Error("StorageClass must be IA or Archive");u(b.transition,"Transition")}if(b.expiration){if(!b.expiration.expiredObjectDeleteMarker)u(b.expiration,"Expiration");else if(b.expiration.days||b.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(b.abortMultipartUpload&&u(b.abortMultipartUpload,"AbortMultipartUpload"),!b.expiration&&!b.abortMultipartUpload&&!b.transition&&!b.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(b.tag){if(b.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(b.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(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(e){return e&&e.__esModule?e:{default:e}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=N("../utils/obj2xml"),O=y.obj2xml,g=i;g.putBucketVersioning=function(f,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,a,o;return E.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:if(m(f),["Enabled","Suspended"].includes(r)){d.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",f,"versioning",c),a={VersioningConfiguration:{Status:r}},n.mime="xml",n.content=O(a,{headers:!0}),d.next=9,E.default.awrap(this.request(n));case 9:return o=d.sent,d.abrupt("return",{res:o.res,status:o.status});case 11:case"end":return d.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(r){return r&&r.__esModule?r:{default:r}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=N("../utils/obj2xml"),O=y.obj2xml,g=N("../utils/isArray"),e=g.isArray,f=i;f.putBucketWebsite=function(c){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments[2],o,l,d,h,s;return E.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(m(c),o=this._bucketRequestParams("PUT",c,"website",a),l={Suffix:n.index||"index.html"},d={IndexDocument:l},h={WebsiteConfiguration:d},n.supportSubDir&&(l.SupportSubDir=n.supportSubDir),n.type&&(l.Type=n.type),n.error&&(d.ErrorDocument={Key:n.error}),!(n.routingRules!==void 0)){w.next=12;break}if(e(n.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:d.RoutingRules={RoutingRule:n.routingRules};case 12:return h=O(h),o.content=h,o.mime="xml",o.successStatuses=[200],w.next=18,E.default.awrap(this.request(o));case 18:return s=w.sent,w.abrupt("return",{res:s.res});case 20:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(N,Y,i){(function(M){"use strict";var E=N("babel-runtime/core-js/object/keys"),T=y(E),v=N("babel-runtime/core-js/json/stringify"),m=y(v);function y(O){return O&&O.__esModule?O:{default:O}}i.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,m.default)(f)).toString("base64");if(g.headers["x-oss-callback"]=r,e.callback.customValue){var c={};(0,T.default)(e.callback.customValue).forEach(function(n){c["x:"+n]=e.callback.customValue[n]}),g.headers["x-oss-callback-var"]=M.from((0,m.default)(c)).toString("base64")}}}}).call(this,N("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/assign"),E=T(M);function T(f){return f&&f.__esModule?f:{default:f}}var v=N("humanize-ms"),m=N("url"),y=N("../utils/checkBucketName"),O=y.checkBucketName;function g(f,r){var c=m.parse(f);if(c.protocol||(c=m.parse("http"+(r?"s":"")+"://"+f)),c.protocol!=="http:"&&c.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return c}function e(f,r,c){var n=c?"https://":"http://",a=r?"-internal.aliyuncs.com":".aliyuncs.com",o="vpc100-oss-cn-";return f.substr(0,o.length)===o&&(a=".aliyuncs.com"),m.parse(n+f+a)}Y.exports=function(f){if(!f||!f.accessKeyId||!f.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");f.bucket&&O(f.bucket);var r=(0,E.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=v(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(N,Y,i){"use strict";var M=N("merge-descriptors"),E=i;M(E,N("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(r){return r&&r.__esModule?r:{default:r}}var v=N("../utils/checkBucketName"),m=v.checkBucketName,y=N("querystring"),O=N("js-base64"),g=O.Base64.encode,e=i;e.processObjectSave=function(c,n,a,o){var l,d,h,s;return E.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return f(c,"sourceObject"),f(n,"targetObject"),f(a,"process"),n=this._objectName(n),o&&m(o),l=this._objectRequestParams("POST",c,{subres:"x-oss-process"}),d=o?",b_"+g(o):"",n=g(n),h={"x-oss-process":a+"|sys/saveas,o_"+n+d},l.content=y.stringify(h),w.next=12,E.default.awrap(this.request(l));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.res.status});case 14:case"end":return w.stop()}},null,this)};function f(r,c){if(!r)throw new Error(c+" is required");if(typeof r!="string")throw new Error(c+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=T(M);function T(e){return e&&e.__esModule?e:{default:e}}var v=N("copy-to"),m=N("./callback"),y=N("./utils/deepCopy"),O=y.deepCopy,g=i;g.listUploads=function(f,r){var c,n,a,o;return E.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=r||{},c={},v(r).to(c),c.subres="uploads",n=this._objectRequestParams("GET","",c),n.query=f,n.xmlResponse=!0,n.successStatuses=[200],d.next=10,E.default.awrap(this.request(n));case 10:return a=d.sent,o=a.data.Upload||[],Array.isArray(o)||(o=[o]),o=o.map(function(h){return{name:h.Key,uploadId:h.UploadId,initiated:h.Initiated}}),d.abrupt("return",{res:a.res,uploads:o,bucket:a.data.Bucket,nextKeyMarker:a.data.NextKeyMarker,nextUploadIdMarker:a.data.NextUploadIdMarker,isTruncated:a.data.IsTruncated==="true"});case 15:case"end":return d.stop()}},null,this)},g.listParts=function(f,r,c,n){var a,o,l;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=n||{},a={},v(n).to(a),a.subres={uploadId:r},o=this._objectRequestParams("GET",f,a),o.query=c,o.xmlResponse=!0,o.successStatuses=[200],h.next=10,E.default.awrap(this.request(o));case 10:return l=h.sent,h.abrupt("return",{res:l.res,uploadId:l.data.UploadId,bucket:l.data.Bucket,name:l.data.Key,partNumberMarker:l.data.PartNumberMarker,nextPartNumberMarker:l.data.NextPartNumberMarker,maxParts:l.data.MaxParts,isTruncated:l.data.IsTruncated,parts:l.data.Part||[]});case 12:case"end":return h.stop()}},null,this)},g.abortMultipartUpload=function(f,r,c){var n,a,o;return E.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return this._stop(),c=c||{},n={},v(c).to(n),n.subres={uploadId:r},a=this._objectRequestParams("DELETE",f,n),a.successStatuses=[204],d.next=9,E.default.awrap(this.request(a));case 9:return o=d.sent,d.abrupt("return",{res:o.res});case 11:case"end":return d.stop()}},null,this)},g.initMultipartUpload=function(f,r){var c,n,a;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},c={},v(r).to(c),c.headers=c.headers||{},this._convertMetaToHeaders(r.meta,c.headers),c.subres="uploads",n=this._objectRequestParams("POST",f,c),n.mime=r.mime,n.xmlResponse=!0,n.successStatuses=[200],l.next=12,E.default.awrap(this.request(n));case 12:return a=l.sent,l.abrupt("return",{res:a.res,bucket:a.data.Bucket,name:a.data.Key,uploadId:a.data.UploadId});case 14:case"end":return l.stop()}},null,this)},g.uploadPart=function(f,r,c,n,a,o,l){var d;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return d={stream:this._createStream(n,a,o),size:o-a},s.next=3,E.default.awrap(this._uploadPart(f,r,c,d,l));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},g.completeMultipartUpload=function(f,r,c,n){var a,o,l,d,h,s,u,w;return E.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:for(a=c.concat().sort(function(P,R){return P.number-R.number}).filter(function(P,R,C){return!R||P.number!==C[R-1].number}),o=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,l=0;l<a.length;l++)d=a[l],o+=`<Part>
`,o+="<PartNumber>"+d.number+`</PartNumber>
`,o+="<ETag>"+d.etag+`</ETag>
`,o+=`</Part>
`;return o+="</CompleteMultipartUpload>",n=n||{},h={},h=O(n),h.headers&&delete h.headers["x-oss-server-side-encryption"],h.subres={uploadId:r},s=this._objectRequestParams("POST",f,h),m.encodeCallback(s,h),s.mime="xml",s.content=o,s.headers&&s.headers["x-oss-callback"]||(s.xmlResponse=!0),s.successStatuses=[200],b.next=17,E.default.awrap(this.request(s));case 17:return u=b.sent,w={res:u.res,bucket:s.bucket,name:f,etag:u.res.headers.etag},s.headers&&s.headers["x-oss-callback"]&&(w.data=JSON.parse(u.data.toString())),b.abrupt("return",w);case 21:case"end":return b.stop()}},null,this)},g._uploadPart=function(f,r,c,n,a){var o,l,d;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return a=a||{},o={},v(a).to(o),o.headers={"Content-Length":n.size},o.subres={partNumber:c,uploadId:r},l=this._objectRequestParams("PUT",f,o),l.mime=o.mime,l.stream=n.stream,l.successStatuses=[200],s.next=11,E.default.awrap(this.request(l));case 11:if(d=s.sent,d.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,l.stream=null,s.abrupt("return",{name:f,etag:d.res.headers.etag,res:d.res});case 17:case"end":return s.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=O(M),T=N("babel-runtime/core-js/object/keys"),v=O(T),m=N("babel-runtime/helpers/typeof"),y=O(m);function O(r){return r&&r.__esModule?r:{default:r}}var g=N("../utils/checkBucketName"),e=g.checkBucketName,f=i;f.copy=function(c,n,a,o){var l,d,h;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return(typeof a=="undefined"?"undefined":(0,y.default)(a))==="object"&&(o=a),o=o||{},o.headers=o.headers||{},(0,v.default)(o.headers).forEach(function(w){o.headers["x-oss-copy-source-"+w.toLowerCase()]=o.headers[w]}),o.meta&&(o.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(o.meta,o.headers),n=this._getSourceName(n,a),o.versionId&&(n=n+"?versionId="+o.versionId),o.headers["x-oss-copy-source"]=n,l=this._objectRequestParams("PUT",c,o),l.xmlResponse=!0,l.successStatuses=[200,304],u.next=14,E.default.awrap(this.request(l));case 14:return d=u.sent,h=d.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),u.abrupt("return",{data:h,res:d.res});case 18:case"end":return u.stop()}},null,this)},f._getSourceName=function(c,n){return typeof n=="string"?c=this._objectName(c):c[0]!=="/"?n=this.options.bucket:(n=c.replace(/\/(.+?)(\/.*)/,"$1"),c=c.replace(/(\/.+?\/)(.*)/,"$2")),e(n),c=encodeURI(c),c="/"+n+"/"+c,c}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y.delete=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r;return E.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,v.default)({},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("DELETE",g,e),f.successStatuses=[204],n.next=6,E.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(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(f){return f&&f.__esModule?f:{default:f}}var y=N("utility"),O=N("../utils/obj2xml"),g=O.obj2xml,e=i;e.deleteMulti=function(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,o,l,d,h,s,u,w,x,b,P;return E.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(n=[],!(!r||!r.length)){C.next=3;break}throw new Error("names is required");case 3:for(a=0;a<r.length;a++)o={},typeof r[a]=="string"?o.Key=y.escape(this._objectName(r[a])):(l=r[a],d=l.key,h=l.versionId,o.Key=y.escape(this._objectName(d)),o.VersionId=h),n.push(o);return s={Delete:{Quiet:!!c.quiet,Object:n}},u=g(s,{headers:!0}),c.subres=(0,v.default)({delete:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),w=this._objectRequestParams("POST","",c),w.mime="xml",w.content=u,w.xmlResponse=!0,w.successStatuses=[200],C.next=15,E.default.awrap(this.request(w));case 15:return x=C.sent,b=x.data,P=b&&b.Deleted||null,P&&(Array.isArray(P)||(P=[P])),C.abrupt("return",{res:x.res,deleted:P||[]});case 20:case"end":return C.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y.deleteObjectTagging=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r;return E.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,v.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,E.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(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(e){return e&&e.__esModule?e:{default:e}}var y=N("fs"),O=N("is-type-of"),g=i;g.get=function(f,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,a,o,l;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=null,a=!1,O.writableStream(r)?n=r:O.string(r)?(n=y.createWriteStream(r),a=!0):c=r,c=c||{},c.subres=(0,v.default)({},c.subres),c.versionId&&(c.subres.versionId=c.versionId),c.process&&(c.subres["x-oss-process"]=c.process),o=void 0,h.prev=8,l=this._objectRequestParams("GET",f,c),l.writeStream=n,l.successStatuses=[200,206,304],h.next=14,E.default.awrap(this.request(l));case 14:o=h.sent,a&&n.destroy(),h.next=25;break;case 18:if(h.prev=18,h.t0=h.catch(8),!a){h.next=24;break}return n.destroy(),h.next=24,E.default.awrap(this._deleteFileSafe(r));case 24:throw h.t0;case 25:return h.abrupt("return",{res:o.res,content:o.data});case 26:case"end":return h.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y.getACL=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r;return E.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e.subres=(0,v.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,E.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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/keys"),E=O(M),T=N("babel-runtime/regenerator"),v=O(T),m=N("babel-runtime/core-js/object/assign"),y=O(m);function O(l){return l&&l.__esModule?l:{default:l}}var g=i,e=N("../utils/isObject"),f=e.isObject,r=N("../utils/isArray"),c=r.isArray;g.getBucketVersions=n,g.listObjectVersions=n;function n(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,s,u,w,x,b;return v.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!(l.versionIdMarker&&l.keyMarker===void 0)){R.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return d.subres=(0,y.default)({versions:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),h=this._objectRequestParams("GET","",d),h.xmlResponse=!0,h.successStatuses=[200],h.query=o(l),R.next=10,v.default.awrap(this.request(h));case 10:return s=R.sent,u=s.data.Version||[],w=s.data.DeleteMarker||[],x=this,u&&(Array.isArray(u)||(u=[u]),u=u.map(function(C){return{name:C.Key,url:x._objectUrl(C.Key),lastModified:C.LastModified,isLatest:C.IsLatest==="true",versionId:C.VersionId,etag:C.ETag,type:C.Type,size:Number(C.Size),storageClass:C.StorageClass,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),w&&(c(w)||(w=[w]),w=w.map(function(C){return{name:C.Key,lastModified:C.LastModified,versionId:C.VersionId,owner:{id:C.Owner.ID,displayName:C.Owner.DisplayName}}})),b=s.data.CommonPrefixes||null,b&&(c(b)||(b=[b]),b=b.map(function(C){return C.Prefix})),R.abrupt("return",{res:s.res,objects:u,deleteMarker:w,prefixes:b,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 a(l){return l.replace(/([A-Z])/g,"-$1").toLowerCase()}function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d={};return f(l)&&(0,E.default)(l).forEach(function(h){d[a(h)]=l[h]}),d}},{"../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(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y.getObjectMeta=function(g,e){var f,r;return E.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return e=e||{},g=this._objectName(g),e.subres=(0,v.default)({objectMeta:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),f=this._objectRequestParams("HEAD",g,e),f.successStatuses=[200],n.next=8,E.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(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(e){return e&&e.__esModule?e:{default:e}}var y=i,O=N("../utils/isObject"),g=O.isObject;y.getObjectTagging=function(f){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,n,a,o,l;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return r.subres=(0,v.default)({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),f=this._objectName(f),c=this._objectRequestParams("GET",f,r),c.successStatuses=[200],h.next=7,E.default.awrap(this.request(c));case 7:return n=h.sent,h.next=10,E.default.awrap(this.parseXML(n.data));case 10:return a=h.sent,o=a.TagSet.Tag,o=o&&g(o)?[o]:o||[],l={},o.forEach(function(s){l[s.Key]=s.Value}),h.abrupt("return",{status:n.status,res:n.res,tag:l});case 16:case"end":return h.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y.getSymlink=function(g){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f,r,c;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return e.subres=(0,v.default)({symlink:""},e.subres),e.versionId&&(e.subres.versionId=e.versionId),g=this._objectName(g),f=this._objectRequestParams("GET",g,e),f.successStatuses=[200],a.next=7,E.default.awrap(this.request(f));case 7:return r=a.sent,c=r.res.headers["x-oss-symlink-target"],a.abrupt("return",{targetName:decodeURIComponent(c),res:r.res});case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=O(M),T=N("babel-runtime/core-js/object/keys"),v=O(T),m=N("babel-runtime/core-js/object/assign"),y=O(m);function O(e){return e&&e.__esModule?e:{default:e}}var g=i;g.head=function(f){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,n,a;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r.subres=(0,y.default)({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),c=this._objectRequestParams("HEAD",f,r),c.successStatuses=[200,304],l.next=6,E.default.awrap(this.request(c));case 6:return n=l.sent,a={meta:null,res:n.res,status:n.status},n.status===200&&(0,v.default)(n.headers).forEach(function(d){d.indexOf("x-oss-meta-")===0&&(a.meta||(a.meta={}),a.meta[d.substring(11)]=n.headers[d])}),l.abrupt("return",a);case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y.putACL=function(g,e,f){var r,c;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return f=f||{},f.subres=(0,v.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],a.next=10,E.default.awrap(this.request(r));case 10:return c=a.sent,a.abrupt("return",{res:c.res});case 12:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=O(M),T=N("babel-runtime/core-js/object/keys"),v=O(T),m=N("babel-runtime/core-js/object/assign"),y=O(m);function O(n){return n&&n.__esModule?n:{default:n}}var g=N("../utils/obj2xml"),e=g.obj2xml,f=N("../utils/checkObjectTag"),r=f.checkObjectTag,c=i;c.putObjectTagging=function(a,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,h,s;return E.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return r(o),l.subres=(0,y.default)({tagging:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),a=this._objectName(a),d=this._objectRequestParams("PUT",a,l),d.successStatuses=[200],o=(0,v.default)(o).map(function(x){return{Key:x,Value:o[x]}}),h={Tagging:{TagSet:{Tag:o}}},d.mime="xml",d.content=e(h),w.next=12,E.default.awrap(this.request(d));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.status});case 14:case"end":return w.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/object/assign"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y.putSymlink=function(g,e,f){var r,c;return E.default.async(function(a){for(;;)switch(a.prev=a.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,v.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],a.next=13,E.default.awrap(this.request(r));case 13:return c=a.sent,a.abrupt("return",{res:c.res});case 15:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(N,Y,i){"use strict";var M=N("babel-runtime/regenerator"),E=m(M),T=N("babel-runtime/core-js/promise"),v=m(T);function m(O){return O&&O.__esModule?O:{default:O}}var y=i;y._parallelNode=function(g,e,f,r){var c,n,a,o,l,d,h,s;return E.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:c=this,n=[],a=[],o=g.length/e,l=g.length%e,d=l===0?o:(g.length-l)/e+1,h=1,s=0;case 8:if(!(s<g.length)){w.next=26;break}if(!c.isCancel()){w.next=11;break}return w.abrupt("break",26);case 11:if(r?a.push(f(c,g[s],r)):a.push(f(c,g[s])),!(a.length===e||h===d&&s===g.length-1)){w.next=23;break}return w.prev=13,h+=1,w.next=17,E.default.awrap(v.default.all(a));case 17:w.next=22;break;case 19:w.prev=19,w.t0=w.catch(13),n.push(w.t0);case 22:a=[];case 23:s++,w.next=8;break;case 26:return w.abrupt("return",n);case 27:case"end":return w.stop()}},null,this,[[13,19]])},y._parallel=function(g,e,f){var r=this;return new v.default(function(c){var n=[];if(e<=0||!g){c(n);return}function a(b){return function(){if(b===null)throw new Error("Callback was already called.");var P=b;b=null;for(var R=arguments.length,C=Array(R),S=0;S<R;S++)C[S]=arguments[S];P.apply(this,C)}}function o(b){var P=-1,R=b.length;return function(){return++P<R&&!r.isCancel()?{value:b[P],key:P}:null}}var l=o(g),d=!1,h=0,s=!1;function u(b,P){h-=1,b?(d=!0,n.push(b),c(n)):P==={}||d&&h<=0?(d=!0,c(n)):s||(r.isCancel()?c(n):x())}function w(b,P){f(b).then(function(R){P(null,R)}).catch(function(R){P(R)})}function x(){for(s=!0;h<e&&!d&&!r.isCancel();){var b=l();if(b===null||n.length>0){d=!0,h<=0&&c(n);return}h+=1,w(b.value,a(u))}s=!1}x()})},y.cancel=function(g){this.options.cancelFlag=!0,g&&this.abortMultipartUpload(g.name,g.uploadId,g.options)},y.isCancel=function(){return this.options.cancelFlag},y.resetCancelFlag=function(){this.options.cancelFlag=!1},y._stop=function(){this.options.cancelFlag=!0},y._makeCancelEvent=function(){var g={status:0,name:"cancel"};return g}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(N,Y,i){(function(M){"use strict";var E=N("babel-runtime/core-js/json/stringify"),T=y(E),v=N("babel-runtime/core-js/object/keys"),m=y(v);function y(e){return e&&e.__esModule?e:{default:e}}var O=N("./../../shims/crypto/crypto.js"),g=N("is-type-of");i.buildCanonicalizedResource=function(f,r){var c=""+f,n="?";if(g.string(r)&&r.trim()!=="")c+=n+r;else if(g.array(r))r.sort(),c+=n+r.join("&");else if(r){var a=function(d,h){return d[0]>h[0]?1:d[0]<h[0]?-1:0},o=function(d){c+=n+d,r[d]&&(c+="="+r[d]),n="&"};(0,m.default)(r).sort(a).forEach(o)}return c},i.buildCanonicalString=function(f,r,c,n){c=c||{};var a=c.headers||{},o="x-oss-",l=[],d={},h=[f.toUpperCase(),a["Content-Md5"]||"",a["Content-Type"]||a["Content-Type".toLowerCase()],n||a["x-oss-date"]];return(0,m.default)(a).forEach(function(s){var u=s.toLowerCase();u.indexOf(o)===0&&(d[u]=String(a[s]).trim())}),(0,m.default)(d).sort().forEach(function(s){l.push(s+":"+d[s])}),h=h.concat(l),h.push(this.buildCanonicalizedResource(r,c.parameters)),h.join(`
`)},i.computeSignature=function(f,r){var c=O.createHmac("sha1",f);return c.update(M.from(r,"utf8")).digest("base64")},i.authorization=function(f,r,c){return"OSS "+f+":"+this.computeSignature(r,c)},i._signatureForURL=function(f){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments[2],n=arguments[3],a={},o=r.subResource,l=o===void 0?{}:o;if(r.process){var d="x-oss-process";l[d]=r.process}if(r.trafficLimit){var h="x-oss-traffic-limit";l[h]=r.trafficLimit}if(r.response&&(0,m.default)(r.response).forEach(function(x){var b="response-"+x.toLowerCase();l[b]=r.response[x]}),(0,m.default)(r).forEach(function(x){var b=x.toLowerCase(),P=r[x];b.indexOf("x-oss-")===0?a[b]=P:(b.indexOf("content-md5")===0||b.indexOf("content-type")===0)&&(a[x]=P)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(l["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),l.callback=M.from((0,T.default)(s)).toString("base64"),r.callback.customValue){var u={};(0,m.default)(r.callback.customValue).forEach(function(x){u["x:"+x]=r.callback.customValue[x]}),l["callback-var"]=M.from((0,T.default)(u)).toString("base64")}}var w=this.buildCanonicalString(r.method,c,{headers:a,parameters:l},n.toString());return{Signature:this.computeSignature(f,w),subResource:l}}}).call(this,N("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(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkBucketName=void 0,i.checkBucketName=function(M,E){var T=E?/^[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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/entries"),E=T(M);function T(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(i,"__esModule",{value:!0}),i.checkObjectTag=void 0;var v=N("./checkValid"),m=v.checkValid,y=N("./isObject"),O=y.isObject,g=[{validator:function(c){if(typeof c!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],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(!O(r))throw new Error("tag must be Object");var c=(0,E.default)(r);if(c.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];c.forEach(function(a){a.forEach(function(o,l){m(o,e[n[l]])})})}i.checkObjectTag=f},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkValid=void 0;function M(E,T){T.forEach(function(v){if(v.validator)v.validator(E);else if(v.pattern&&!v.pattern.test(E))throw new Error(v.msg)})}i.checkValid=M},{}],38:[function(N,Y,i){(function(M){"use strict";var E=N("babel-runtime/core-js/object/assign"),T=v(E);function v(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(i,"__esModule",{value:!0}),i.createRequest=void 0;var m=N("./../../../shims/crypto/crypto.js"),y=N("debug")("ali-oss"),O=N("mime"),g=N("dateformat"),e=N("copy-to"),f=N("path");function r(a,o){return a[o]||a[o.toLowerCase()]}function c(a,o){delete a[o],delete a[o.toLowerCase()]}function n(a){var o=new Date;this.options.amendTimeSkewed&&(o=+new Date+this.options.amendTimeSkewed);var l={"x-oss-date":g(o,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(l["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(l,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(l["x-oss-security-token"]=this.options.stsToken),e(a.headers).to(l),r(l,"Content-Type")||(a.mime&&a.mime.indexOf("/")>0?l["Content-Type"]=a.mime:l["Content-Type"]=O.getType(a.mime||f.extname(a.object||""))),r(l,"Content-Type")||c(l,"Content-Type"),a.content&&(l["Content-Md5"]=m.createHash("md5").update(M.from(a.content,"utf8")).digest("base64"),l["Content-Length"]||(l["Content-Length"]=a.content.length));var d=this._getResource(a);l.authorization=this.authorization(a.method,d,a.subres,l);var h=this._getReqUrl(a);y("request %s %s, with headers %j, !!stream: %s",a.method,h,l,!!a.stream);var s=a.timeout||this.options.timeout,u={method:a.method,content:a.content,stream:a.stream,headers:l,timeout:s,writeStream:a.writeStream,customResponse:a.customResponse,ctx:a.ctx||this.ctx};return this.agent&&(u.agent=this.agent),this.httpsAgent&&(u.httpsAgent=this.httpsAgent),{url:h,params:u}}i.createRequest=n}).call(this,N("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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/keys"),E=m(M),T=N("babel-runtime/helpers/typeof"),v=m(T);function m(y){return y&&y.__esModule?y:{default:y}}Object.defineProperty(i,"__esModule",{value:!0}),i.deepCopy=void 0,i.deepCopy=function(y){if(y===null||(typeof y=="undefined"?"undefined":(0,v.default)(y))!=="object")return y;var O=Array.isArray(y)?[]:{};return(0,E.default)(y).forEach(function(g){O[g]=i.deepCopy(y[g])}),O}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/keys"),E=m(M),T=N("babel-runtime/helpers/typeof"),v=m(T);function m(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(i,"__esModule",{value:!0}),i.formatObjKey=void 0;function y(g,e){if(g===null||(typeof g=="undefined"?"undefined":(0,v.default)(g))!=="object")return g;var f=void 0;if(Array.isArray(g)){f=[];for(var r=0;r<g.length;r++)f.push(y(g[r],e))}else f={},(0,E.default)(g).forEach(function(c){f[O(c,e)]=y(g[c],e)});return f}i.formatObjKey=y;function O(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(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStrBytesCount=void 0;function M(E){for(var T=0,v=0;v<E.length;v++){var m=E.charAt(v);/^[\u00-\uff]$/.test(m)?T+=1:T+=2}return T}i.getStrBytesCount=M},{}],42:[function(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isArray=void 0,i.isArray=function(M){return Object.prototype.toString.call(M)==="[object Array]"}},{}],43:[function(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isBlob=void 0;function M(E){return typeof Blob!="undefined"&&E instanceof Blob}i.isBlob=M},{}],44:[function(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isFile=void 0,i.isFile=function(M){return typeof File!="undefined"&&M instanceof File}},{}],45:[function(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isIP=void 0,i.isIP=function(M){var E=/^(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 E.test(M)||T.test(M)}},{}],46:[function(N,Y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isObject=void 0,i.isObject=function(M){return Object.prototype.toString.call(M)==="[object Object]"}},{}],47:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/keys"),E=T(M);function T(O){return O&&O.__esModule?O:{default:O}}Object.defineProperty(i,"__esModule",{value:!0}),i.obj2xml=void 0;var v=N("./formatObjKey");function m(O){return Object.prototype.toString.call(O).replace(/(.*? |])/g,"").toLowerCase()}function y(O,g){var e="";return g&&g.headers&&(e=`<?xml version="1.0" encoding="UTF-8"?>
`),g&&g.firstUpperCase&&(O=v.formatObjKey(O,"firstUpperCase")),m(O)==="object"?(0,E.default)(O).forEach(function(f){m(O[f])==="string"||m(O[f])==="number"?e+="<"+f+">"+O[f]+"</"+f+">":m(O[f])==="object"?e+="<"+f+">"+y(O[f])+"</"+f+">":m(O[f])==="array"?e+=O[f].map(function(r){return"<"+f+">"+y(r)+"</"+f+">"}).join(""):e+="<"+f+">"+O[f].toString()+"</"+f+">"}):e+=O.toString(),e}i.obj2xml=y},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(N,Y,i){Y.exports=M,Y.exports.HttpsAgent=M;function M(){}},{}],49:[function(N,Y,i){Y.exports=N("./register")().Promise},{"./register":51}],50:[function(N,Y,i){"use strict";var M="@@any-promise/REGISTRATION",E=null;Y.exports=function(T,v){return function(y,O){y=y||null,O=O||{};var g=O.global!==!1;if(E===null&&g&&(E=T[M]||null),E!==null&&y!==null&&E.implementation!==y)throw new Error('any-promise already defined as "'+E.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return E===null&&(y!==null&&typeof O.Promise!="undefined"?E={Promise:O.Promise,implementation:y}:E=v(y),g&&(T[M]=E)),E}}},{}],51:[function(N,Y,i){"use strict";Y.exports=N("./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(N,Y,i){Y.exports={default:N("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(N,Y,i){Y.exports={default:N("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(N,Y,i){"use strict";i.__esModule=!0;var M=N("../core-js/symbol/iterator"),E=y(M),T=N("../core-js/symbol"),v=y(T),m=typeof v.default=="function"&&typeof E.default=="symbol"?function(O){return typeof O}:function(O){return O&&typeof v.default=="function"&&O.constructor===v.default&&O!==v.default.prototype?"symbol":typeof O};function y(O){return O&&O.__esModule?O:{default:O}}i.default=typeof v.default=="function"&&m(E.default)==="symbol"?function(O){return typeof O=="undefined"?"undefined":m(O)}:function(O){return O&&typeof v.default=="function"&&O.constructor===v.default&&O!==v.default.prototype?"symbol":typeof O=="undefined"?"undefined":m(O)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(N,Y,i){Y.exports=N("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(N,Y,i){"use strict";i.byteLength=g,i.toByteArray=f,i.fromByteArray=n;for(var M=[],E=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,y=v.length;m<y;++m)M[m]=v[m],E[v.charCodeAt(m)]=m;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function O(a){var o=a.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=a.indexOf("=");l===-1&&(l=o);var d=l===o?0:4-l%4;return[l,d]}function g(a){var o=O(a),l=o[0],d=o[1];return(l+d)*3/4-d}function e(a,o,l){return(o+l)*3/4-l}function f(a){var o,l=O(a),d=l[0],h=l[1],s=new T(e(a,d,h)),u=0,w=h>0?d-4:d,x;for(x=0;x<w;x+=4)o=E[a.charCodeAt(x)]<<18|E[a.charCodeAt(x+1)]<<12|E[a.charCodeAt(x+2)]<<6|E[a.charCodeAt(x+3)],s[u++]=o>>16&255,s[u++]=o>>8&255,s[u++]=o&255;return h===2&&(o=E[a.charCodeAt(x)]<<2|E[a.charCodeAt(x+1)]>>4,s[u++]=o&255),h===1&&(o=E[a.charCodeAt(x)]<<10|E[a.charCodeAt(x+1)]<<4|E[a.charCodeAt(x+2)]>>2,s[u++]=o>>8&255,s[u++]=o&255),s}function r(a){return M[a>>18&63]+M[a>>12&63]+M[a>>6&63]+M[a&63]}function c(a,o,l){for(var d,h=[],s=o;s<l;s+=3)d=(a[s]<<16&16711680)+(a[s+1]<<8&65280)+(a[s+2]&255),h.push(r(d));return h.join("")}function n(a){for(var o,l=a.length,d=l%3,h=[],s=16383,u=0,w=l-d;u<w;u+=s)h.push(c(a,u,u+s>w?w:u+s));return d===1?(o=a[l-1],h.push(M[o>>2]+M[o<<4&63]+"==")):d===2&&(o=(a[l-2]<<8)+a[l-1],h.push(M[o>>10]+M[o>>4&63]+M[o<<2&63]+"=")),h.join("")}},{}],70:[function(N,Y,i){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(M,E,T){typeof Y!="undefined"&&Y.exports?Y.exports=T():typeof define=="function"&&define.amd?define(E,T):M[E]=T()}(this,"bowser",function(){var M=!0;function E(e){function f(H){var W=e.match(H);return W&&W.length>1&&W[1]||""}function r(H){var W=e.match(H);return W&&W.length>1&&W[2]||""}var c=f(/(ipod|iphone|ipad)/i).toLowerCase(),n=/like android/i.test(e),a=!n&&/android/i.test(e),o=/nexus\s*[0-6]\s*/i.test(e),l=!o&&/nexus\s*[0-9]+/i.test(e),d=/CrOS/.test(e),h=/silk/i.test(e),s=/sailfish/i.test(e),u=/tizen/i.test(e),w=/(web|hpw)(o|0)s/i.test(e),x=/windows phone/i.test(e),b=/SamsungBrowser/i.test(e),P=!x&&/windows/i.test(e),R=!c&&!h&&/macintosh/i.test(e),C=!a&&!s&&!u&&!w&&/linux/i.test(e),S=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=f(/version\/(\d+(\.\d+)?)/i),A=/tablet/i.test(e)&&!/tablet pc/i.test(e),j=!A&&/[^-]mobi/i.test(e),I=/xbox/i.test(e),k;/opera/i.test(e)?k={name:"Opera",opera:M,version:_||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?k={name:"Opera",opera:M,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(e)?k={name:"Samsung Internet for Android",samsungBrowser:M,version:_||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?k={name:"NAVER Whale browser",whale:M,version:f(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?k={name:"MZ Browser",mzbrowser:M,version:f(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?k={name:"Opera Coast",coast:M,version:_||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?k={name:"Focus",focus:M,version:f(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?k={name:"Yandex Browser",yandexbrowser:M,version:_||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?k={name:"UC Browser",ucbrowser:M,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?k={name:"Maxthon",maxthon:M,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?k={name:"Epiphany",epiphany:M,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?k={name:"Puffin",puffin:M,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?k={name:"Sleipnir",sleipnir:M,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?k={name:"K-Meleon",kMeleon:M,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:x?(k={name:"Windows Phone",osname:"Windows Phone",windowsphone:M},S?(k.msedge=M,k.version=S):(k.msie=M,k.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?k={name:"Internet Explorer",msie:M,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:d?k={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)?k={name:"Microsoft Edge",msedge:M,version:S}:/vivaldi/i.test(e)?k={name:"Vivaldi",vivaldi:M,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||_}:s?k={name:"Sailfish",osname:"Sailfish OS",sailfish:M,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?k={name:"SeaMonkey",seamonkey:M,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(k={name:"Firefox",firefox:M,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(k.firefoxos=M,k.osname="Firefox OS")):h?k={name:"Amazon Silk",silk:M,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?k={name:"PhantomJS",phantom:M,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?k={name:"SlimerJS",slimer:M,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?k={name:"BlackBerry",osname:"BlackBerry OS",blackberry:M,version:_||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:w?(k={name:"WebOS",osname:"WebOS",webos:M,version:_||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(k.touchpad=M)):/bada/i.test(e)?k={name:"Bada",osname:"Bada",bada:M,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:u?k={name:"Tizen",osname:"Tizen",tizen:M,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(e)?k={name:"QupZilla",qupzilla:M,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(e)?k={name:"Chromium",chromium:M,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(e)?k={name:"Chrome",chrome:M,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?k={name:"Android",version:_}:/safari|applewebkit/i.test(e)?(k={name:"Safari",safari:M},_&&(k.version=_)):c?(k={name:c=="iphone"?"iPhone":c=="ipad"?"iPad":"iPod"},_&&(k.version=_)):/googlebot/i.test(e)?k={name:"Googlebot",googlebot:M,version:f(/googlebot\/(\d+(\.\d+))/i)||_}:k={name:f(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!k.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(k.name=k.name||"Blink",k.blink=M):(k.name=k.name||"Webkit",k.webkit=M),!k.version&&_&&(k.version=_)):!k.opera&&/gecko\//i.test(e)&&(k.name=k.name||"Gecko",k.gecko=M,k.version=k.version||f(/gecko\/(\d+(\.\d+)?)/i)),!k.windowsphone&&(a||k.silk)?(k.android=M,k.osname="Android"):!k.windowsphone&&c?(k[c]=M,k.ios=M,k.osname="iOS"):R?(k.mac=M,k.osname="macOS"):I?(k.xbox=M,k.osname="Xbox"):P?(k.windows=M,k.osname="Windows"):C&&(k.linux=M,k.osname="Linux");function J(H){switch(H){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 G="";k.windows?G=J(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):k.windowsphone?G=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):k.mac?(G=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),G=G.replace(/[_\s]/g,".")):c?(G=f(/os (\d+([_\s]\d+)*) like mac os x/i),G=G.replace(/[_\s]/g,".")):a?G=f(/android[ \/-](\d+(\.\d+)*)/i):k.webos?G=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):k.blackberry?G=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):k.bada?G=f(/bada\/(\d+(\.\d+)*)/i):k.tizen&&(G=f(/tizen[\/\s](\d+(\.\d+)*)/i)),G&&(k.osversion=G);var D=!k.windows&&G.split(".")[0];return A||l||c=="ipad"||a&&(D==3||D>=4&&!j)||k.silk?k.tablet=M:(j||c=="iphone"||c=="ipod"||a||o||k.blackberry||k.webos||k.bada)&&(k.mobile=M),k.msedge||k.msie&&k.version>=10||k.yandexbrowser&&k.version>=15||k.vivaldi&&k.version>=1||k.chrome&&k.version>=20||k.samsungBrowser&&k.version>=4||k.whale&&y([k.version,"1.0"])===1||k.mzbrowser&&y([k.version,"6.0"])===1||k.focus&&y([k.version,"1.0"])===1||k.firefox&&k.version>=20||k.safari&&k.version>=6||k.opera&&k.version>=10||k.ios&&k.osversion&&k.osversion.split(".")[0]>=6||k.blackberry&&k.version>=10.1||k.chromium&&k.version>=20?k.a=M:k.msie&&k.version<10||k.chrome&&k.version<20||k.firefox&&k.version<20||k.safari&&k.version<6||k.opera&&k.version<10||k.ios&&k.osversion&&k.osversion.split(".")[0]<6||k.chromium&&k.version<20?k.c=M:k.x=M,k}var T=E(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 v(e){return e.split(".").length}function m(e,f){var r=[],c;if(Array.prototype.map)return Array.prototype.map.call(e,f);for(c=0;c<e.length;c++)r.push(f(e[c]));return r}function y(e){for(var f=Math.max(v(e[0]),v(e[1])),r=m(e,function(c){var n=f-v(c);return c=c+new Array(n+1).join(".0"),m(c.split("."),function(a){return new Array(20-a.length).join("0")+a}).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 O(e,f,r){var c=T;typeof f=="string"&&(r=f,f=void 0),f===void 0&&(f=!1),r&&(c=E(r));var n=""+c.version;for(var a in e)if(e.hasOwnProperty(a)&&c[a]){if(typeof e[a]!="string")throw new Error("Browser version in the minVersion map should be a string: "+a+": "+String(e));return y([n,e[a]])<0}return f}function g(e,f,r){return!O(e,f,r)}return T.isUnsupportedBrowser=O,T.compareVersions=y,T.check=g,T._detect=E,T.detect=E,T})},{}],71:[function(N,Y,i){},{}],72:[function(N,Y,i){var M=N("buffer").Buffer,E=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&&!E(g))throw new Error("Unknown encoding: "+g)}var v=i.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=y;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=O;break;default:this.write=m;return}this.charBuffer=new M(6),this.charReceived=0,this.charLength=0};v.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 c=e.charCodeAt(e.length-1);if(c>=55296&&c<=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,c=e.charCodeAt(r);if(c>=55296&&c<=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},v.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},v.prototype.end=function(g){var e="";if(g&&g.length&&(e=this.write(g)),this.charReceived){var f=this.charReceived,r=this.charBuffer,c=this.encoding;e+=r.slice(0,f).toString(c)}return e};function m(g){return g.toString(this.encoding)}function y(g){this.charReceived=g.length%2,this.charLength=this.charReceived?2:0}function O(g){this.charReceived=g.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(N,Y,i){(function(M,E){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var T=N("base64-js"),v=N("ieee754"),m=N("isarray");i.Buffer=E,i.SlowBuffer=h,i.INSPECT_MAX_BYTES=50,E.TYPED_ARRAY_SUPPORT=M.TYPED_ARRAY_SUPPORT!==void 0?M.TYPED_ARRAY_SUPPORT:y(),i.kMaxLength=O();function y(){try{var ae=new Uint8Array(1);return ae.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ae.foo()===42&&typeof ae.subarray=="function"&&ae.subarray(1,1).byteLength===0}catch(re){return!1}}function O(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(ae,re){if(O()<re)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(ae=new Uint8Array(re),ae.__proto__=E.prototype):(ae===null&&(ae=new E(re)),ae.length=re),ae}function E(ae,re,$){if(!E.TYPED_ARRAY_SUPPORT&&!(this instanceof E))return new E(ae,re,$);if(typeof ae=="number"){if(typeof re=="string")throw new Error("If encoding is specified then the first argument must be a string");return c(this,ae)}return e(this,ae,re,$)}E.poolSize=8192,E._augment=function(ae){return ae.__proto__=E.prototype,ae};function e(ae,re,$,Z){if(typeof re=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&re instanceof ArrayBuffer?o(ae,re,$,Z):typeof re=="string"?n(ae,re,$):l(ae,re)}E.from=function(ae,re,$){return e(null,ae,re,$)},E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0}));function f(ae){if(typeof ae!="number")throw new TypeError('"size" argument must be a number');if(ae<0)throw new RangeError('"size" argument must not be negative')}function r(ae,re,$,Z){return f(re),re<=0?g(ae,re):$!==void 0?typeof Z=="string"?g(ae,re).fill($,Z):g(ae,re).fill($):g(ae,re)}E.alloc=function(ae,re,$){return r(null,ae,re,$)};function c(ae,re){if(f(re),ae=g(ae,re<0?0:d(re)|0),!E.TYPED_ARRAY_SUPPORT)for(var $=0;$<re;++$)ae[$]=0;return ae}E.allocUnsafe=function(ae){return c(null,ae)},E.allocUnsafeSlow=function(ae){return c(null,ae)};function n(ae,re,$){if((typeof $!="string"||$==="")&&($="utf8"),!E.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Z=s(re,$)|0;ae=g(ae,Z);var fe=ae.write(re,$);return fe!==Z&&(ae=ae.slice(0,fe)),ae}function a(ae,re){var $=re.length<0?0:d(re.length)|0;ae=g(ae,$);for(var Z=0;Z<$;Z+=1)ae[Z]=re[Z]&255;return ae}function o(ae,re,$,Z){if(re.byteLength,$<0||re.byteLength<$)throw new RangeError("'offset' is out of bounds");if(re.byteLength<$+(Z||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Z===void 0?re=new Uint8Array(re):Z===void 0?re=new Uint8Array(re,$):re=new Uint8Array(re,$,Z),E.TYPED_ARRAY_SUPPORT?(ae=re,ae.__proto__=E.prototype):ae=a(ae,re),ae}function l(ae,re){if(E.isBuffer(re)){var $=d(re.length)|0;return ae=g(ae,$),ae.length===0||re.copy(ae,0,0,$),ae}if(re){if(typeof ArrayBuffer!="undefined"&&re.buffer instanceof ArrayBuffer||"length"in re)return typeof re.length!="number"||te(re.length)?g(ae,0):a(ae,re);if(re.type==="Buffer"&&m(re.data))return a(ae,re.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(ae){if(ae>=O())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O().toString(16)+" bytes");return ae|0}function h(ae){return+ae!=ae&&(ae=0),E.alloc(+ae)}E.isBuffer=function(re){return!!(re!=null&&re._isBuffer)},E.compare=function(re,$){if(!E.isBuffer(re)||!E.isBuffer($))throw new TypeError("Arguments must be Buffers");if(re===$)return 0;for(var Z=re.length,fe=$.length,me=0,Oe=Math.min(Z,fe);me<Oe;++me)if(re[me]!==$[me]){Z=re[me],fe=$[me];break}return Z<fe?-1:fe<Z?1:0},E.isEncoding=function(re){switch(String(re).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}},E.concat=function(re,$){if(!m(re))throw new TypeError('"list" argument must be an Array of Buffers');if(re.length===0)return E.alloc(0);var Z;if($===void 0)for($=0,Z=0;Z<re.length;++Z)$+=re[Z].length;var fe=E.allocUnsafe($),me=0;for(Z=0;Z<re.length;++Z){var Oe=re[Z];if(!E.isBuffer(Oe))throw new TypeError('"list" argument must be an Array of Buffers');Oe.copy(fe,me),me+=Oe.length}return fe};function s(ae,re){if(E.isBuffer(ae))return ae.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ae)||ae instanceof ArrayBuffer))return ae.byteLength;typeof ae!="string"&&(ae=""+ae);var $=ae.length;if($===0)return 0;for(var Z=!1;;)switch(re){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return ee(ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return X(ae).length;default:if(Z)return ee(ae).length;re=(""+re).toLowerCase(),Z=!0}}E.byteLength=s;function u(ae,re,$){var Z=!1;if((re===void 0||re<0)&&(re=0),re>this.length)return"";if(($===void 0||$>this.length)&&($=this.length),$<=0)return"";if($>>>=0,re>>>=0,$<=re)return"";for(ae||(ae="utf8");;)switch(ae){case"hex":return H(this,re,$);case"utf8":case"utf-8":return I(this,re,$);case"ascii":return G(this,re,$);case"latin1":case"binary":return D(this,re,$);case"base64":return j(this,re,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,re,$);default:if(Z)throw new TypeError("Unknown encoding: "+ae);ae=(ae+"").toLowerCase(),Z=!0}}E.prototype._isBuffer=!0;function w(ae,re,$){var Z=ae[re];ae[re]=ae[$],ae[$]=Z}E.prototype.swap16=function(){var re=this.length;if(re%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<re;$+=2)w(this,$,$+1);return this},E.prototype.swap32=function(){var re=this.length;if(re%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<re;$+=4)w(this,$,$+3),w(this,$+1,$+2);return this},E.prototype.swap64=function(){var re=this.length;if(re%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<re;$+=8)w(this,$,$+7),w(this,$+1,$+6),w(this,$+2,$+5),w(this,$+3,$+4);return this},E.prototype.toString=function(){var re=this.length|0;return re===0?"":arguments.length===0?I(this,0,re):u.apply(this,arguments)},E.prototype.equals=function(re){if(!E.isBuffer(re))throw new TypeError("Argument must be a Buffer");return this===re?!0:E.compare(this,re)===0},E.prototype.inspect=function(){var re="",$=i.INSPECT_MAX_BYTES;return this.length>0&&(re=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(re+=" ... ")),"<Buffer "+re+">"},E.prototype.compare=function(re,$,Z,fe,me){if(!E.isBuffer(re))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Z===void 0&&(Z=re?re.length:0),fe===void 0&&(fe=0),me===void 0&&(me=this.length),$<0||Z>re.length||fe<0||me>this.length)throw new RangeError("out of range index");if(fe>=me&&$>=Z)return 0;if(fe>=me)return-1;if($>=Z)return 1;if($>>>=0,Z>>>=0,fe>>>=0,me>>>=0,this===re)return 0;for(var Oe=me-fe,He=Z-$,Qe=Math.min(Oe,He),ot=this.slice(fe,me),st=re.slice($,Z),ct=0;ct<Qe;++ct)if(ot[ct]!==st[ct]){Oe=ot[ct],He=st[ct];break}return Oe<He?-1:He<Oe?1:0};function x(ae,re,$,Z,fe){if(ae.length===0)return-1;if(typeof $=="string"?(Z=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=fe?0:ae.length-1),$<0&&($=ae.length+$),$>=ae.length){if(fe)return-1;$=ae.length-1}else if($<0)if(fe)$=0;else return-1;if(typeof re=="string"&&(re=E.from(re,Z)),E.isBuffer(re))return re.length===0?-1:b(ae,re,$,Z,fe);if(typeof re=="number")return re=re&255,E.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(ae,re,$):Uint8Array.prototype.lastIndexOf.call(ae,re,$):b(ae,[re],$,Z,fe);throw new TypeError("val must be string, number or Buffer")}function b(ae,re,$,Z,fe){var me=1,Oe=ae.length,He=re.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(ae.length<2||re.length<2)return-1;me=2,Oe/=2,He/=2,$/=2}function Qe(Xe,ke){return me===1?Xe[ke]:Xe.readUInt16BE(ke*me)}var ot;if(fe){var st=-1;for(ot=$;ot<Oe;ot++)if(Qe(ae,ot)===Qe(re,st===-1?0:ot-st)){if(st===-1&&(st=ot),ot-st+1===He)return st*me}else st!==-1&&(ot-=ot-st),st=-1}else for($+He>Oe&&($=Oe-He),ot=$;ot>=0;ot--){for(var ct=!0,dt=0;dt<He;dt++)if(Qe(ae,ot+dt)!==Qe(re,dt)){ct=!1;break}if(ct)return ot}return-1}E.prototype.includes=function(re,$,Z){return this.indexOf(re,$,Z)!==-1},E.prototype.indexOf=function(re,$,Z){return x(this,re,$,Z,!0)},E.prototype.lastIndexOf=function(re,$,Z){return x(this,re,$,Z,!1)};function P(ae,re,$,Z){$=Number($)||0;var fe=ae.length-$;Z?(Z=Number(Z),Z>fe&&(Z=fe)):Z=fe;var me=re.length;if(me%2!==0)throw new TypeError("Invalid hex string");Z>me/2&&(Z=me/2);for(var Oe=0;Oe<Z;++Oe){var He=parseInt(re.substr(Oe*2,2),16);if(isNaN(He))return Oe;ae[$+Oe]=He}return Oe}function R(ae,re,$,Z){return Q(ee(re,ae.length-$),ae,$,Z)}function C(ae,re,$,Z){return Q(U(re),ae,$,Z)}function S(ae,re,$,Z){return C(ae,re,$,Z)}function _(ae,re,$,Z){return Q(X(re),ae,$,Z)}function A(ae,re,$,Z){return Q(K(re,ae.length-$),ae,$,Z)}E.prototype.write=function(re,$,Z,fe){if($===void 0)fe="utf8",Z=this.length,$=0;else if(Z===void 0&&typeof $=="string")fe=$,Z=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Z)?(Z=Z|0,fe===void 0&&(fe="utf8")):(fe=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var me=this.length-$;if((Z===void 0||Z>me)&&(Z=me),re.length>0&&(Z<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Oe=!1;;)switch(fe){case"hex":return P(this,re,$,Z);case"utf8":case"utf-8":return R(this,re,$,Z);case"ascii":return C(this,re,$,Z);case"latin1":case"binary":return S(this,re,$,Z);case"base64":return _(this,re,$,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,re,$,Z);default:if(Oe)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Oe=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(ae,re,$){return re===0&&$===ae.length?T.fromByteArray(ae):T.fromByteArray(ae.slice(re,$))}function I(ae,re,$){$=Math.min(ae.length,$);for(var Z=[],fe=re;fe<$;){var me=ae[fe],Oe=null,He=me>239?4:me>223?3:me>191?2:1;if(fe+He<=$){var Qe,ot,st,ct;switch(He){case 1:me<128&&(Oe=me);break;case 2:Qe=ae[fe+1],(Qe&192)===128&&(ct=(me&31)<<6|Qe&63,ct>127&&(Oe=ct));break;case 3:Qe=ae[fe+1],ot=ae[fe+2],(Qe&192)===128&&(ot&192)===128&&(ct=(me&15)<<12|(Qe&63)<<6|ot&63,ct>2047&&(ct<55296||ct>57343)&&(Oe=ct));break;case 4:Qe=ae[fe+1],ot=ae[fe+2],st=ae[fe+3],(Qe&192)===128&&(ot&192)===128&&(st&192)===128&&(ct=(me&15)<<18|(Qe&63)<<12|(ot&63)<<6|st&63,ct>65535&&ct<1114112&&(Oe=ct))}}Oe===null?(Oe=65533,He=1):Oe>65535&&(Oe-=65536,Z.push(Oe>>>10&1023|55296),Oe=56320|Oe&1023),Z.push(Oe),fe+=He}return J(Z)}var k=4096;function J(ae){var re=ae.length;if(re<=k)return String.fromCharCode.apply(String,ae);for(var $="",Z=0;Z<re;)$+=String.fromCharCode.apply(String,ae.slice(Z,Z+=k));return $}function G(ae,re,$){var Z="";$=Math.min(ae.length,$);for(var fe=re;fe<$;++fe)Z+=String.fromCharCode(ae[fe]&127);return Z}function D(ae,re,$){var Z="";$=Math.min(ae.length,$);for(var fe=re;fe<$;++fe)Z+=String.fromCharCode(ae[fe]);return Z}function H(ae,re,$){var Z=ae.length;(!re||re<0)&&(re=0),(!$||$<0||$>Z)&&($=Z);for(var fe="",me=re;me<$;++me)fe+=le(ae[me]);return fe}function W(ae,re,$){for(var Z=ae.slice(re,$),fe="",me=0;me<Z.length;me+=2)fe+=String.fromCharCode(Z[me]+Z[me+1]*256);return fe}E.prototype.slice=function(re,$){var Z=this.length;re=~~re,$=$===void 0?Z:~~$,re<0?(re+=Z,re<0&&(re=0)):re>Z&&(re=Z),$<0?($+=Z,$<0&&($=0)):$>Z&&($=Z),$<re&&($=re);var fe;if(E.TYPED_ARRAY_SUPPORT)fe=this.subarray(re,$),fe.__proto__=E.prototype;else{var me=$-re;fe=new E(me,void 0);for(var Oe=0;Oe<me;++Oe)fe[Oe]=this[Oe+re]}return fe};function L(ae,re,$){if(ae%1!==0||ae<0)throw new RangeError("offset is not uint");if(ae+re>$)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(re,$,Z){re=re|0,$=$|0,Z||L(re,$,this.length);for(var fe=this[re],me=1,Oe=0;++Oe<$&&(me*=256);)fe+=this[re+Oe]*me;return fe},E.prototype.readUIntBE=function(re,$,Z){re=re|0,$=$|0,Z||L(re,$,this.length);for(var fe=this[re+--$],me=1;$>0&&(me*=256);)fe+=this[re+--$]*me;return fe},E.prototype.readUInt8=function(re,$){return $||L(re,1,this.length),this[re]},E.prototype.readUInt16LE=function(re,$){return $||L(re,2,this.length),this[re]|this[re+1]<<8},E.prototype.readUInt16BE=function(re,$){return $||L(re,2,this.length),this[re]<<8|this[re+1]},E.prototype.readUInt32LE=function(re,$){return $||L(re,4,this.length),(this[re]|this[re+1]<<8|this[re+2]<<16)+this[re+3]*16777216},E.prototype.readUInt32BE=function(re,$){return $||L(re,4,this.length),this[re]*16777216+(this[re+1]<<16|this[re+2]<<8|this[re+3])},E.prototype.readIntLE=function(re,$,Z){re=re|0,$=$|0,Z||L(re,$,this.length);for(var fe=this[re],me=1,Oe=0;++Oe<$&&(me*=256);)fe+=this[re+Oe]*me;return me*=128,fe>=me&&(fe-=Math.pow(2,8*$)),fe},E.prototype.readIntBE=function(re,$,Z){re=re|0,$=$|0,Z||L(re,$,this.length);for(var fe=$,me=1,Oe=this[re+--fe];fe>0&&(me*=256);)Oe+=this[re+--fe]*me;return me*=128,Oe>=me&&(Oe-=Math.pow(2,8*$)),Oe},E.prototype.readInt8=function(re,$){return $||L(re,1,this.length),this[re]&128?(255-this[re]+1)*-1:this[re]},E.prototype.readInt16LE=function(re,$){$||L(re,2,this.length);var Z=this[re]|this[re+1]<<8;return Z&32768?Z|4294901760:Z},E.prototype.readInt16BE=function(re,$){$||L(re,2,this.length);var Z=this[re+1]|this[re]<<8;return Z&32768?Z|4294901760:Z},E.prototype.readInt32LE=function(re,$){return $||L(re,4,this.length),this[re]|this[re+1]<<8|this[re+2]<<16|this[re+3]<<24},E.prototype.readInt32BE=function(re,$){return $||L(re,4,this.length),this[re]<<24|this[re+1]<<16|this[re+2]<<8|this[re+3]},E.prototype.readFloatLE=function(re,$){return $||L(re,4,this.length),v.read(this,re,!0,23,4)},E.prototype.readFloatBE=function(re,$){return $||L(re,4,this.length),v.read(this,re,!1,23,4)},E.prototype.readDoubleLE=function(re,$){return $||L(re,8,this.length),v.read(this,re,!0,52,8)},E.prototype.readDoubleBE=function(re,$){return $||L(re,8,this.length),v.read(this,re,!1,52,8)};function z(ae,re,$,Z,fe,me){if(!E.isBuffer(ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(re>fe||re<me)throw new RangeError('"value" argument is out of bounds');if($+Z>ae.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(re,$,Z,fe){if(re=+re,$=$|0,Z=Z|0,!fe){var me=Math.pow(2,8*Z)-1;z(this,re,$,Z,me,0)}var Oe=1,He=0;for(this[$]=re&255;++He<Z&&(Oe*=256);)this[$+He]=re/Oe&255;return $+Z},E.prototype.writeUIntBE=function(re,$,Z,fe){if(re=+re,$=$|0,Z=Z|0,!fe){var me=Math.pow(2,8*Z)-1;z(this,re,$,Z,me,0)}var Oe=Z-1,He=1;for(this[$+Oe]=re&255;--Oe>=0&&(He*=256);)this[$+Oe]=re/He&255;return $+Z},E.prototype.writeUInt8=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,1,255,0),E.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),this[$]=re&255,$+1};function ie(ae,re,$,Z){re<0&&(re=65535+re+1);for(var fe=0,me=Math.min(ae.length-$,2);fe<me;++fe)ae[$+fe]=(re&255<<8*(Z?fe:1-fe))>>>(Z?fe:1-fe)*8}E.prototype.writeUInt16LE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[$]=re&255,this[$+1]=re>>>8):ie(this,re,$,!0),$+2},E.prototype.writeUInt16BE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[$]=re>>>8,this[$+1]=re&255):ie(this,re,$,!1),$+2};function ce(ae,re,$,Z){re<0&&(re=4294967295+re+1);for(var fe=0,me=Math.min(ae.length-$,4);fe<me;++fe)ae[$+fe]=re>>>(Z?fe:3-fe)*8&255}E.prototype.writeUInt32LE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[$+3]=re>>>24,this[$+2]=re>>>16,this[$+1]=re>>>8,this[$]=re&255):ce(this,re,$,!0),$+4},E.prototype.writeUInt32BE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[$]=re>>>24,this[$+1]=re>>>16,this[$+2]=re>>>8,this[$+3]=re&255):ce(this,re,$,!1),$+4},E.prototype.writeIntLE=function(re,$,Z,fe){if(re=+re,$=$|0,!fe){var me=Math.pow(2,8*Z-1);z(this,re,$,Z,me-1,-me)}var Oe=0,He=1,Qe=0;for(this[$]=re&255;++Oe<Z&&(He*=256);)re<0&&Qe===0&&this[$+Oe-1]!==0&&(Qe=1),this[$+Oe]=(re/He>>0)-Qe&255;return $+Z},E.prototype.writeIntBE=function(re,$,Z,fe){if(re=+re,$=$|0,!fe){var me=Math.pow(2,8*Z-1);z(this,re,$,Z,me-1,-me)}var Oe=Z-1,He=1,Qe=0;for(this[$+Oe]=re&255;--Oe>=0&&(He*=256);)re<0&&Qe===0&&this[$+Oe+1]!==0&&(Qe=1),this[$+Oe]=(re/He>>0)-Qe&255;return $+Z},E.prototype.writeInt8=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,1,127,-128),E.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),re<0&&(re=255+re+1),this[$]=re&255,$+1},E.prototype.writeInt16LE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[$]=re&255,this[$+1]=re>>>8):ie(this,re,$,!0),$+2},E.prototype.writeInt16BE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[$]=re>>>8,this[$+1]=re&255):ie(this,re,$,!1),$+2},E.prototype.writeInt32LE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,4,2147483647,-2147483648),E.TYPED_ARRAY_SUPPORT?(this[$]=re&255,this[$+1]=re>>>8,this[$+2]=re>>>16,this[$+3]=re>>>24):ce(this,re,$,!0),$+4},E.prototype.writeInt32BE=function(re,$,Z){return re=+re,$=$|0,Z||z(this,re,$,4,2147483647,-2147483648),re<0&&(re=4294967295+re+1),E.TYPED_ARRAY_SUPPORT?(this[$]=re>>>24,this[$+1]=re>>>16,this[$+2]=re>>>8,this[$+3]=re&255):ce(this,re,$,!1),$+4};function ue(ae,re,$,Z,fe,me){if($+Z>ae.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function xe(ae,re,$,Z,fe){return fe||ue(ae,re,$,4,34028234663852886e22,-34028234663852886e22),v.write(ae,re,$,Z,23,4),$+4}E.prototype.writeFloatLE=function(re,$,Z){return xe(this,re,$,!0,Z)},E.prototype.writeFloatBE=function(re,$,Z){return xe(this,re,$,!1,Z)};function Te(ae,re,$,Z,fe){return fe||ue(ae,re,$,8,17976931348623157e292,-17976931348623157e292),v.write(ae,re,$,Z,52,8),$+8}E.prototype.writeDoubleLE=function(re,$,Z){return Te(this,re,$,!0,Z)},E.prototype.writeDoubleBE=function(re,$,Z){return Te(this,re,$,!1,Z)},E.prototype.copy=function(re,$,Z,fe){if(Z||(Z=0),!fe&&fe!==0&&(fe=this.length),$>=re.length&&($=re.length),$||($=0),fe>0&&fe<Z&&(fe=Z),fe===Z)return 0;if(re.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),re.length-$<fe-Z&&(fe=re.length-$+Z);var me=fe-Z,Oe;if(this===re&&Z<$&&$<fe)for(Oe=me-1;Oe>=0;--Oe)re[Oe+$]=this[Oe+Z];else if(me<1e3||!E.TYPED_ARRAY_SUPPORT)for(Oe=0;Oe<me;++Oe)re[Oe+$]=this[Oe+Z];else Uint8Array.prototype.set.call(re,this.subarray(Z,Z+me),$);return me},E.prototype.fill=function(re,$,Z,fe){if(typeof re=="string"){if(typeof $=="string"?(fe=$,$=0,Z=this.length):typeof Z=="string"&&(fe=Z,Z=this.length),re.length===1){var me=re.charCodeAt(0);me<256&&(re=me)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!E.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof re=="number"&&(re=re&255);if($<0||this.length<$||this.length<Z)throw new RangeError("Out of range index");if(Z<=$)return this;$=$>>>0,Z=Z===void 0?this.length:Z>>>0,re||(re=0);var Oe;if(typeof re=="number")for(Oe=$;Oe<Z;++Oe)this[Oe]=re;else{var He=E.isBuffer(re)?re:ee(new E(re,fe).toString()),Qe=He.length;for(Oe=0;Oe<Z-$;++Oe)this[Oe+$]=He[Oe%Qe]}return this};var de=/[^+\/0-9A-Za-z-_]/g;function ve(ae){if(ae=_e(ae).replace(de,""),ae.length<2)return"";for(;ae.length%4!==0;)ae=ae+"=";return ae}function _e(ae){return ae.trim?ae.trim():ae.replace(/^\s+|\s+$/g,"")}function le(ae){return ae<16?"0"+ae.toString(16):ae.toString(16)}function ee(ae,re){re=re||Infinity;for(var $,Z=ae.length,fe=null,me=[],Oe=0;Oe<Z;++Oe){if($=ae.charCodeAt(Oe),$>55295&&$<57344){if(!fe){if($>56319){(re-=3)>-1&&me.push(239,191,189);continue}else if(Oe+1===Z){(re-=3)>-1&&me.push(239,191,189);continue}fe=$;continue}if($<56320){(re-=3)>-1&&me.push(239,191,189),fe=$;continue}$=(fe-55296<<10|$-56320)+65536}else fe&&((re-=3)>-1&&me.push(239,191,189));if(fe=null,$<128){if((re-=1)<0)break;me.push($)}else if($<2048){if((re-=2)<0)break;me.push($>>6|192,$&63|128)}else if($<65536){if((re-=3)<0)break;me.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((re-=4)<0)break;me.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return me}function U(ae){for(var re=[],$=0;$<ae.length;++$)re.push(ae.charCodeAt($)&255);return re}function K(ae,re){for(var $,Z,fe,me=[],Oe=0;Oe<ae.length&&!((re-=2)<0);++Oe)$=ae.charCodeAt(Oe),Z=$>>8,fe=$%256,me.push(fe),me.push(Z);return me}function X(ae){return T.toByteArray(ve(ae))}function Q(ae,re,$,Z){for(var fe=0;fe<Z&&!(fe+$>=re.length||fe>=ae.length);++fe)re[fe+$]=ae[fe];return fe}function te(ae){return ae!==ae}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},N("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(N,Y,i){Y.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(N,Y,i){Y.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(N,Y,i){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var M=Array.prototype.slice;Y.exports=E;function E(v,m){if(!(this instanceof E))return new E(v,m);this.src=v,this._withAccess=m}E.prototype.withAccess=function(v){return this._withAccess=v!==!1,this},E.prototype.pick=function(v){return Array.isArray(v)||(v=M.call(arguments)),v.length&&(this.keys=v),this},E.prototype.to=function(v){if(v=v||{},!this.src)return v;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var y=0;y<m.length;y++){if(O=m[y],v[O]!==void 0)continue;v[O]=this.src[O]}return v}for(var y=0;y<m.length;y++){var O=m[y];if(!T(v,O))continue;var g=this.src.__lookupGetter__(O),e=this.src.__lookupSetter__(O);g&&v.__defineGetter__(O,g),e&&v.__defineSetter__(O,e),!g&&!e&&(v[O]=this.src[O])}return v},E.prototype.toCover=function(v){for(var m=this.keys||Object.keys(this.src),y=0;y<m.length;y++){var O=m[y];delete v[O];var g=this.src.__lookupGetter__(O),e=this.src.__lookupSetter__(O);g&&v.__defineGetter__(O,g),e&&v.__defineSetter__(O,e),!g&&!e&&(v[O]=this.src[O])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(v){var m={};return this.to(m),this.src=v,this.to(m),this.src=m,this};function T(v,m){return v[m]===void 0&&v.__lookupGetter__(m)===void 0&&v.__lookupSetter__(m)===void 0}},{}],77:[function(N,Y,i){N("../../modules/es6.string.iterator"),N("../../modules/es6.array.from"),Y.exports=N("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(N,Y,i){var M=N("../../modules/_core"),E=M.JSON||(M.JSON={stringify:JSON.stringify});Y.exports=function(v){return E.stringify.apply(E,arguments)}},{"../../modules/_core":99}],79:[function(N,Y,i){N("../../modules/es6.object.assign"),Y.exports=N("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(N,Y,i){N("../../modules/es6.object.create");var M=N("../../modules/_core").Object;Y.exports=function(T,v){return M.create(T,v)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(N,Y,i){N("../../modules/es6.object.define-property");var M=N("../../modules/_core").Object;Y.exports=function(T,v,m){return M.defineProperty(T,v,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(N,Y,i){N("../../modules/es7.object.entries"),Y.exports=N("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(N,Y,i){N("../../modules/es6.object.get-own-property-names");var M=N("../../modules/_core").Object;Y.exports=function(T){return M.getOwnPropertyNames(T)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(N,Y,i){N("../../modules/es6.object.get-prototype-of"),Y.exports=N("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(N,Y,i){N("../../modules/es6.object.keys"),Y.exports=N("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(N,Y,i){N("../modules/es6.object.to-string"),N("../modules/es6.string.iterator"),N("../modules/web.dom.iterable"),N("../modules/es6.promise"),N("../modules/es7.promise.finally"),N("../modules/es7.promise.try"),Y.exports=N("../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(N,Y,i){N("../modules/web.immediate"),Y.exports=N("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(N,Y,i){N("../../modules/es6.string.from-code-point"),Y.exports=N("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(N,Y,i){N("../../modules/es6.function.has-instance"),Y.exports=N("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(N,Y,i){N("../../modules/es6.symbol"),N("../../modules/es6.object.to-string"),N("../../modules/es7.symbol.async-iterator"),N("../../modules/es7.symbol.observable"),Y.exports=N("../../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(N,Y,i){N("../../modules/es6.string.iterator"),N("../../modules/web.dom.iterable"),Y.exports=N("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(N,Y,i){Y.exports=function(M){if(typeof M!="function")throw TypeError(M+" is not a function!");return M}},{}],93:[function(N,Y,i){Y.exports=function(){}},{}],94:[function(N,Y,i){Y.exports=function(M,E,T,v){if(!(M instanceof E)||v!==void 0&&v in M)throw TypeError(T+": incorrect invocation!");return M}},{}],95:[function(N,Y,i){var M=N("./_is-object");Y.exports=function(E){if(!M(E))throw TypeError(E+" is not an object!");return E}},{"./_is-object":119}],96:[function(N,Y,i){var M=N("./_to-iobject"),E=N("./_to-length"),T=N("./_to-absolute-index");Y.exports=function(v){return function(m,y,O){var g=M(m),e=E(g.length),f=T(O,e),r;if(v&&y!=y){for(;e>f;)if(r=g[f++],r!=r)return!0}else for(;e>f;f++)if((v||f in g)&&g[f]===y)return v||f||0;return!v&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(N,Y,i){var M=N("./_cof"),E=N("./_wks")("toStringTag"),T=M(function(){return arguments}())=="Arguments",v=function(m,y){try{return m[y]}catch(O){}};Y.exports=function(m){var y,O,g;return m===void 0?"Undefined":m===null?"Null":typeof(O=v(y=Object(m),E))=="string"?O:T?M(y):(g=M(y))=="Object"&&typeof y.callee=="function"?"Arguments":g}},{"./_cof":98,"./_wks":166}],98:[function(N,Y,i){var M={}.toString;Y.exports=function(E){return M.call(E).slice(8,-1)}},{}],99:[function(N,Y,i){var M=Y.exports={version:"2.6.11"};typeof __e=="number"&&(__e=M)},{}],100:[function(N,Y,i){"use strict";var M=N("./_object-dp"),E=N("./_property-desc");Y.exports=function(T,v,m){v in T?M.f(T,v,E(0,m)):T[v]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(N,Y,i){var M=N("./_a-function");Y.exports=function(E,T,v){if(M(E),T===void 0)return E;switch(v){case 1:return function(m){return E.call(T,m)};case 2:return function(m,y){return E.call(T,m,y)};case 3:return function(m,y,O){return E.call(T,m,y,O)}}return function(){return E.apply(T,arguments)}}},{"./_a-function":92}],102:[function(N,Y,i){Y.exports=function(M){if(M==null)throw TypeError("Can't call method on "+M);return M}},{}],103:[function(N,Y,i){Y.exports=!N("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(N,Y,i){var M=N("./_is-object"),E=N("./_global").document,T=M(E)&&M(E.createElement);Y.exports=function(v){return T?E.createElement(v):{}}},{"./_global":110,"./_is-object":119}],105:[function(N,Y,i){Y.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(N,Y,i){var M=N("./_object-keys"),E=N("./_object-gops"),T=N("./_object-pie");Y.exports=function(v){var m=M(v),y=E.f;if(y)for(var O=y(v),g=T.f,e=0,f;O.length>e;)g.call(v,f=O[e++])&&m.push(f);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(N,Y,i){var M=N("./_global"),E=N("./_core"),T=N("./_ctx"),v=N("./_hide"),m=N("./_has"),y="prototype",O=function(g,e,f){var r=g&O.F,c=g&O.G,n=g&O.S,a=g&O.P,o=g&O.B,l=g&O.W,d=c?E:E[e]||(E[e]={}),h=d[y],s=c?M:n?M[e]:(M[e]||{})[y],u,w,x;c&&(f=e);for(u in f){if(w=!r&&s&&s[u]!==void 0,w&&m(d,u))continue;x=w?s[u]:f[u],d[u]=c&&typeof s[u]!="function"?f[u]:o&&w?T(x,M):l&&s[u]==x?function(b){var P=function(R,C,S){if(this instanceof b){switch(arguments.length){case 0:return new b;case 1:return new b(R);case 2:return new b(R,C)}return new b(R,C,S)}return b.apply(this,arguments)};return P[y]=b[y],P}(x):a&&typeof x=="function"?T(Function.call,x):x,a&&((d.virtual||(d.virtual={}))[u]=x,g&O.R&&h&&!h[u]&&v(h,u,x))}};O.F=1,O.G=2,O.S=4,O.P=8,O.B=16,O.W=32,O.U=64,O.R=128,Y.exports=O},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(N,Y,i){Y.exports=function(M){try{return!!M()}catch(E){return!0}}},{}],109:[function(N,Y,i){var M=N("./_ctx"),E=N("./_iter-call"),T=N("./_is-array-iter"),v=N("./_an-object"),m=N("./_to-length"),y=N("./core.get-iterator-method"),O={},g={},i=Y.exports=function(e,f,r,c,n){var a=n?function(){return e}:y(e),o=M(r,c,f?2:1),l=0,d,h,s,u;if(typeof a!="function")throw TypeError(e+" is not iterable!");if(T(a)){for(d=m(e.length);d>l;l++)if(u=f?o(v(h=e[l])[0],h[1]):o(e[l]),u===O||u===g)return u}else for(s=a.call(e);!(h=s.next()).done;)if(u=E(s,o,h.value,f),u===O||u===g)return u};i.BREAK=O,i.RETURN=g},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(N,Y,i){var M=Y.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(N,Y,i){var M={}.hasOwnProperty;Y.exports=function(E,T){return M.call(E,T)}},{}],112:[function(N,Y,i){var M=N("./_object-dp"),E=N("./_property-desc");Y.exports=N("./_descriptors")?function(T,v,m){return M.f(T,v,E(1,m))}:function(T,v,m){return T[v]=m,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(N,Y,i){var M=N("./_global").document;Y.exports=M&&M.documentElement},{"./_global":110}],114:[function(N,Y,i){Y.exports=!N("./_descriptors")&&!N("./_fails")(function(){return Object.defineProperty(N("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(N,Y,i){Y.exports=function(M,E,T){var v=T===void 0;switch(E.length){case 0:return v?M():M.call(T);case 1:return v?M(E[0]):M.call(T,E[0]);case 2:return v?M(E[0],E[1]):M.call(T,E[0],E[1]);case 3:return v?M(E[0],E[1],E[2]):M.call(T,E[0],E[1],E[2]);case 4:return v?M(E[0],E[1],E[2],E[3]):M.call(T,E[0],E[1],E[2],E[3])}return M.apply(T,E)}},{}],116:[function(N,Y,i){var M=N("./_cof");Y.exports=Object("z").propertyIsEnumerable(0)?Object:function(E){return M(E)=="String"?E.split(""):Object(E)}},{"./_cof":98}],117:[function(N,Y,i){var M=N("./_iterators"),E=N("./_wks")("iterator"),T=Array.prototype;Y.exports=function(v){return v!==void 0&&(M.Array===v||T[E]===v)}},{"./_iterators":125,"./_wks":166}],118:[function(N,Y,i){var M=N("./_cof");Y.exports=Array.isArray||function(T){return M(T)=="Array"}},{"./_cof":98}],119:[function(N,Y,i){Y.exports=function(M){return typeof M=="object"?M!==null:typeof M=="function"}},{}],120:[function(N,Y,i){var M=N("./_an-object");Y.exports=function(E,T,v,m){try{return m?T(M(v)[0],v[1]):T(v)}catch(O){var y=E.return;throw y!==void 0&&M(y.call(E)),O}}},{"./_an-object":95}],121:[function(N,Y,i){"use strict";var M=N("./_object-create"),E=N("./_property-desc"),T=N("./_set-to-string-tag"),v={};N("./_hide")(v,N("./_wks")("iterator"),function(){return this}),Y.exports=function(m,y,O){m.prototype=M(v,{next:E(1,O)}),T(m,y+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(N,Y,i){"use strict";var M=N("./_library"),E=N("./_export"),T=N("./_redefine"),v=N("./_hide"),m=N("./_iterators"),y=N("./_iter-create"),O=N("./_set-to-string-tag"),g=N("./_object-gpo"),e=N("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),r="@@iterator",c="keys",n="values",a=function(){return this};Y.exports=function(o,l,d,h,s,u,w){y(d,l,h);var x=function(G){if(!f&&G in C)return C[G];switch(G){case c:return function(){return new d(this,G)};case n:return function(){return new d(this,G)}}return function(){return new d(this,G)}},b=l+" Iterator",P=s==n,R=!1,C=o.prototype,S=C[e]||C[r]||s&&C[s],_=S||x(s),A=s?P?x("entries"):_:void 0,j=l=="Array"&&C.entries||S,I,k,J;if(j&&(J=g(j.call(new o)),J!==Object.prototype&&J.next&&(O(J,b,!0),!M&&typeof J[e]!="function"&&v(J,e,a))),P&&S&&S.name!==n&&(R=!0,_=function(){return S.call(this)}),(!M||w)&&(f||R||!C[e])&&v(C,e,_),m[l]=_,m[b]=a,s)if(I={values:P?_:x(n),keys:u?_:x(c),entries:A},w)for(k in I)k in C||T(C,k,I[k]);else E(E.P+E.F*(f||R),l,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(N,Y,i){var M=N("./_wks")("iterator"),E=!1;try{var T=[7][M]();T.return=function(){E=!0},Array.from(T,function(){throw 2})}catch(v){}Y.exports=function(v,m){if(!m&&!E)return!1;var y=!1;try{var O=[7],g=O[M]();g.next=function(){return{done:y=!0}},O[M]=function(){return g},v(O)}catch(e){}return y}},{"./_wks":166}],124:[function(N,Y,i){Y.exports=function(M,E){return{value:E,done:!!M}}},{}],125:[function(N,Y,i){Y.exports={}},{}],126:[function(N,Y,i){Y.exports=!0},{}],127:[function(N,Y,i){var M=N("./_uid")("meta"),E=N("./_is-object"),T=N("./_has"),v=N("./_object-dp").f,m=0,y=Object.isExtensible||function(){return!0},O=!N("./_fails")(function(){return y(Object.preventExtensions({}))}),g=function(n){v(n,M,{value:{i:"O"+ ++m,w:{}}})},e=function(n,a){if(!E(n))return typeof n=="symbol"?n:(typeof n=="string"?"S":"P")+n;if(!T(n,M)){if(!y(n))return"F";if(!a)return"E";g(n)}return n[M].i},f=function(n,a){if(!T(n,M)){if(!y(n))return!0;if(!a)return!1;g(n)}return n[M].w},r=function(n){return O&&c.NEED&&y(n)&&!T(n,M)&&g(n),n},c=Y.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(N,Y,i){var M=N("./_global"),E=N("./_task").set,T=M.MutationObserver||M.WebKitMutationObserver,v=M.process,m=M.Promise,y=N("./_cof")(v)=="process";Y.exports=function(){var O,g,e,f=function(){var a,o;for(y&&(a=v.domain)&&a.exit();O;){o=O.fn,O=O.next;try{o()}catch(l){throw O?e():g=void 0,l}}g=void 0,a&&a.enter()};if(y)e=function(){v.nextTick(f)};else if(T&&!(M.navigator&&M.navigator.standalone)){var r=!0,c=document.createTextNode("");new T(f).observe(c,{characterData:!0}),e=function(){c.data=r=!r}}else if(m&&m.resolve){var n=m.resolve(void 0);e=function(){n.then(f)}}else e=function(){E.call(M,f)};return function(a){var o={fn:a,next:void 0};g&&(g.next=o),O||(O=o,e()),g=o}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(N,Y,i){"use strict";var M=N("./_a-function");function E(T){var v,m;this.promise=new T(function(y,O){if(v!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");v=y,m=O}),this.resolve=M(v),this.reject=M(m)}Y.exports.f=function(T){return new E(T)}},{"./_a-function":92}],130:[function(N,Y,i){"use strict";var M=N("./_descriptors"),E=N("./_object-keys"),T=N("./_object-gops"),v=N("./_object-pie"),m=N("./_to-object"),y=N("./_iobject"),O=Object.assign;Y.exports=!O||N("./_fails")(function(){var g={},e={},f=Symbol(),r="abcdefghijklmnopqrst";return g[f]=7,r.split("").forEach(function(c){e[c]=c}),O({},g)[f]!=7||Object.keys(O({},e)).join("")!=r})?function(e,f){for(var r=m(e),c=arguments.length,n=1,a=T.f,o=v.f;c>n;)for(var l=y(arguments[n++]),d=a?E(l).concat(a(l)):E(l),h=d.length,s=0,u;h>s;)u=d[s++],(!M||o.call(l,u))&&(r[u]=l[u]);return r}:O},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(N,Y,i){var M=N("./_an-object"),E=N("./_object-dps"),T=N("./_enum-bug-keys"),v=N("./_shared-key")("IE_PROTO"),m=function(){},y="prototype",O=function(){var g=N("./_dom-create")("iframe"),e=T.length,f="<",r=">",c;for(g.style.display="none",N("./_html").appendChild(g),g.src="javascript:",c=g.contentWindow.document,c.open(),c.write(f+"script"+r+"document.F=Object"+f+"/script"+r),c.close(),O=c.F;e--;)delete O[y][T[e]];return O()};Y.exports=Object.create||function(e,f){var r;return e!==null?(m[y]=M(e),r=new m,m[y]=null,r[v]=e):r=O(),f===void 0?r:E(r,f)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(N,Y,i){var M=N("./_an-object"),E=N("./_ie8-dom-define"),T=N("./_to-primitive"),v=Object.defineProperty;i.f=N("./_descriptors")?Object.defineProperty:function(y,O,g){if(M(y),O=T(O,!0),M(g),E)try{return v(y,O,g)}catch(e){}if("get"in g||"set"in g)throw TypeError("Accessors not supported!");return"value"in g&&(y[O]=g.value),y}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(N,Y,i){var M=N("./_object-dp"),E=N("./_an-object"),T=N("./_object-keys");Y.exports=N("./_descriptors")?Object.defineProperties:function(m,y){E(m);for(var O=T(y),g=O.length,e=0,f;g>e;)M.f(m,f=O[e++],y[f]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(N,Y,i){var M=N("./_object-pie"),E=N("./_property-desc"),T=N("./_to-iobject"),v=N("./_to-primitive"),m=N("./_has"),y=N("./_ie8-dom-define"),O=Object.getOwnPropertyDescriptor;i.f=N("./_descriptors")?O:function(e,f){if(e=T(e),f=v(f,!0),y)try{return O(e,f)}catch(r){}if(m(e,f))return E(!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(N,Y,i){var M=N("./_to-iobject"),E=N("./_object-gopn").f,T={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(y){try{return E(y)}catch(O){return v.slice()}};Y.exports.f=function(O){return v&&T.call(O)=="[object Window]"?m(O):E(M(O))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(N,Y,i){var M=N("./_object-keys-internal"),E=N("./_enum-bug-keys").concat("length","prototype");i.f=Object.getOwnPropertyNames||function(v){return M(v,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(N,Y,i){i.f=Object.getOwnPropertySymbols},{}],138:[function(N,Y,i){var M=N("./_has"),E=N("./_to-object"),T=N("./_shared-key")("IE_PROTO"),v=Object.prototype;Y.exports=Object.getPrototypeOf||function(m){return m=E(m),M(m,T)?m[T]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?v:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(N,Y,i){var M=N("./_has"),E=N("./_to-iobject"),T=N("./_array-includes")(!1),v=N("./_shared-key")("IE_PROTO");Y.exports=function(m,y){var O=E(m),g=0,e=[],f;for(f in O)f!=v&&(M(O,f)&&e.push(f));for(;y.length>g;)M(O,f=y[g++])&&(~T(e,f)||e.push(f));return e}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(N,Y,i){var M=N("./_object-keys-internal"),E=N("./_enum-bug-keys");Y.exports=Object.keys||function(v){return M(v,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(N,Y,i){i.f={}.propertyIsEnumerable},{}],142:[function(N,Y,i){var M=N("./_export"),E=N("./_core"),T=N("./_fails");Y.exports=function(v,m){var y=(E.Object||{})[v]||Object[v],O={};O[v]=m(y),M(M.S+M.F*T(function(){y(1)}),"Object",O)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(N,Y,i){var M=N("./_descriptors"),E=N("./_object-keys"),T=N("./_to-iobject"),v=N("./_object-pie").f;Y.exports=function(m){return function(y){for(var O=T(y),g=E(O),e=g.length,f=0,r=[],c;e>f;)c=g[f++],(!M||v.call(O,c))&&r.push(m?[c,O[c]]:O[c]);return r}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(N,Y,i){Y.exports=function(M){try{return{e:!1,v:M()}}catch(E){return{e:!0,v:E}}}},{}],145:[function(N,Y,i){var M=N("./_an-object"),E=N("./_is-object"),T=N("./_new-promise-capability");Y.exports=function(v,m){if(M(v),E(m)&&m.constructor===v)return m;var y=T.f(v),O=y.resolve;return O(m),y.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(N,Y,i){Y.exports=function(M,E){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:E}}},{}],147:[function(N,Y,i){var M=N("./_hide");Y.exports=function(E,T,v){for(var m in T)v&&E[m]?E[m]=T[m]:M(E,m,T[m]);return E}},{"./_hide":112}],148:[function(N,Y,i){Y.exports=N("./_hide")},{"./_hide":112}],149:[function(N,Y,i){"use strict";var M=N("./_global"),E=N("./_core"),T=N("./_object-dp"),v=N("./_descriptors"),m=N("./_wks")("species");Y.exports=function(y){var O=typeof E[y]=="function"?E[y]:M[y];v&&O&&!O[m]&&T.f(O,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(N,Y,i){var M=N("./_object-dp").f,E=N("./_has"),T=N("./_wks")("toStringTag");Y.exports=function(v,m,y){v&&!E(v=y?v:v.prototype,T)&&M(v,T,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(N,Y,i){var M=N("./_shared")("keys"),E=N("./_uid");Y.exports=function(T){return M[T]||(M[T]=E(T))}},{"./_shared":152,"./_uid":162}],152:[function(N,Y,i){var M=N("./_core"),E=N("./_global"),T="__core-js_shared__",v=E[T]||(E[T]={});(Y.exports=function(m,y){return v[m]||(v[m]=y!==void 0?y:{})})("versions",[]).push({version:M.version,mode:N("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(N,Y,i){var M=N("./_an-object"),E=N("./_a-function"),T=N("./_wks")("species");Y.exports=function(v,m){var y=M(v).constructor,O;return y===void 0||(O=M(y)[T])==null?m:E(O)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(N,Y,i){var M=N("./_to-integer"),E=N("./_defined");Y.exports=function(T){return function(v,m){var y=String(E(v)),O=M(m),g=y.length,e,f;return O<0||O>=g?T?"":void 0:(e=y.charCodeAt(O),e<55296||e>56319||O+1===g||(f=y.charCodeAt(O+1))<56320||f>57343?T?y.charAt(O):e:T?y.slice(O,O+2):(e-55296<<10)+(f-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(N,Y,i){var M=N("./_ctx"),E=N("./_invoke"),T=N("./_html"),v=N("./_dom-create"),m=N("./_global"),y=m.process,O=m.setImmediate,g=m.clearImmediate,e=m.MessageChannel,f=m.Dispatch,r=0,c={},n="onreadystatechange",a,o,l,d=function(){var s=+this;if(c.hasOwnProperty(s)){var u=c[s];delete c[s],u()}},h=function(s){d.call(s.data)};(!O||!g)&&(O=function(u){for(var w=[],x=1;arguments.length>x;)w.push(arguments[x++]);return c[++r]=function(){E(typeof u=="function"?u:Function(u),w)},a(r),r},g=function(u){delete c[u]},N("./_cof")(y)=="process"?a=function(s){y.nextTick(M(d,s,1))}:f&&f.now?a=function(s){f.now(M(d,s,1))}:e?(o=new e,l=o.port2,o.port1.onmessage=h,a=M(l.postMessage,l,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(a=function(s){m.postMessage(s+"","*")},m.addEventListener("message",h,!1)):n in v("script")?a=function(s){T.appendChild(v("script"))[n]=function(){T.removeChild(this),d.call(s)}}:a=function(s){setTimeout(M(d,s,1),0)}),Y.exports={set:O,clear:g}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(N,Y,i){var M=N("./_to-integer"),E=Math.max,T=Math.min;Y.exports=function(v,m){return v=M(v),v<0?E(v+m,0):T(v,m)}},{"./_to-integer":157}],157:[function(N,Y,i){var M=Math.ceil,E=Math.floor;Y.exports=function(T){return isNaN(T=+T)?0:(T>0?E:M)(T)}},{}],158:[function(N,Y,i){var M=N("./_iobject"),E=N("./_defined");Y.exports=function(T){return M(E(T))}},{"./_defined":102,"./_iobject":116}],159:[function(N,Y,i){var M=N("./_to-integer"),E=Math.min;Y.exports=function(T){return T>0?E(M(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(N,Y,i){var M=N("./_defined");Y.exports=function(E){return Object(M(E))}},{"./_defined":102}],161:[function(N,Y,i){var M=N("./_is-object");Y.exports=function(E,T){if(!M(E))return E;var v,m;if(T&&typeof(v=E.toString)=="function"&&!M(m=v.call(E)))return m;if(typeof(v=E.valueOf)=="function"&&!M(m=v.call(E)))return m;if(!T&&typeof(v=E.toString)=="function"&&!M(m=v.call(E)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(N,Y,i){var M=0,E=Math.random();Y.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++M+E).toString(36))}},{}],163:[function(N,Y,i){var M=N("./_global"),E=M.navigator;Y.exports=E&&E.userAgent||""},{"./_global":110}],164:[function(N,Y,i){var M=N("./_global"),E=N("./_core"),T=N("./_library"),v=N("./_wks-ext"),m=N("./_object-dp").f;Y.exports=function(y){var O=E.Symbol||(E.Symbol=T?{}:M.Symbol||{});y.charAt(0)!="_"&&!(y in O)&&m(O,y,{value:v.f(y)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(N,Y,i){i.f=N("./_wks")},{"./_wks":166}],166:[function(N,Y,i){var M=N("./_shared")("wks"),E=N("./_uid"),T=N("./_global").Symbol,v=typeof T=="function",m=Y.exports=function(y){return M[y]||(M[y]=v&&T[y]||(v?T:E)("Symbol."+y))};m.store=M},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(N,Y,i){var M=N("./_classof"),E=N("./_wks")("iterator"),T=N("./_iterators");Y.exports=N("./_core").getIteratorMethod=function(v){if(v!=null)return v[E]||v["@@iterator"]||T[M(v)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(N,Y,i){"use strict";var M=N("./_ctx"),E=N("./_export"),T=N("./_to-object"),v=N("./_iter-call"),m=N("./_is-array-iter"),y=N("./_to-length"),O=N("./_create-property"),g=N("./core.get-iterator-method");E(E.S+E.F*!N("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(f){var r=T(f),c=typeof this=="function"?this:Array,n=arguments.length,a=n>1?arguments[1]:void 0,o=a!==void 0,l=0,d=g(r),h,s,u,w;if(o&&(a=M(a,n>2?arguments[2]:void 0,2)),d!=null&&!(c==Array&&m(d)))for(w=d.call(r),s=new c;!(u=w.next()).done;l++)O(s,l,o?v(w,a,[u.value,l],!0):u.value);else for(h=y(r.length),s=new c(h);h>l;l++)O(s,l,o?a(r[l],l):r[l]);return s.length=l,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(N,Y,i){"use strict";var M=N("./_add-to-unscopables"),E=N("./_iter-step"),T=N("./_iterators"),v=N("./_to-iobject");Y.exports=N("./_iter-define")(Array,"Array",function(m,y){this._t=v(m),this._i=0,this._k=y},function(){var m=this._t,y=this._k,O=this._i++;return!m||O>=m.length?(this._t=void 0,E(1)):y=="keys"?E(0,O):y=="values"?E(0,m[O]):E(0,[O,m[O]])},"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(N,Y,i){"use strict";var M=N("./_is-object"),E=N("./_object-gpo"),T=N("./_wks")("hasInstance"),v=Function.prototype;T in v||N("./_object-dp").f(v,T,{value:function(m){if(typeof this!="function"||!M(m))return!1;if(!M(this.prototype))return m instanceof this;for(;m=E(m);)if(this.prototype===m)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(N,Y,i){var M=N("./_export");M(M.S+M.F,"Object",{assign:N("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(N,Y,i){var M=N("./_export");M(M.S,"Object",{create:N("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(N,Y,i){var M=N("./_export");M(M.S+M.F*!N("./_descriptors"),"Object",{defineProperty:N("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(N,Y,i){N("./_object-sap")("getOwnPropertyNames",function(){return N("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(N,Y,i){var M=N("./_to-object"),E=N("./_object-gpo");N("./_object-sap")("getPrototypeOf",function(){return function(v){return E(M(v))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(N,Y,i){var M=N("./_to-object"),E=N("./_object-keys");N("./_object-sap")("keys",function(){return function(v){return E(M(v))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(N,Y,i){arguments[4][71][0].apply(i,arguments)},{dup:71}],178:[function(N,Y,i){"use strict";var M=N("./_library"),E=N("./_global"),T=N("./_ctx"),v=N("./_classof"),m=N("./_export"),y=N("./_is-object"),O=N("./_a-function"),g=N("./_an-instance"),e=N("./_for-of"),f=N("./_species-constructor"),r=N("./_task").set,c=N("./_microtask")(),n=N("./_new-promise-capability"),a=N("./_perform"),o=N("./_user-agent"),l=N("./_promise-resolve"),d="Promise",h=E.TypeError,s=E.process,u=s&&s.versions,w=u&&u.v8||"",x=E[d],b=v(s)=="process",P=function(){},R,C,S,_,A=C=n.f,j=!!function(){try{var L=x.resolve(1),z=(L.constructor={})[N("./_wks")("species")]=function(ie){ie(P,P)};return(b||typeof PromiseRejectionEvent=="function")&&L.then(P)instanceof z&&w.indexOf("6.6")!==0&&o.indexOf("Chrome/66")===-1}catch(ie){}}(),I=function(L){var z;return y(L)&&typeof(z=L.then)=="function"?z:!1},k=function(L,z){if(L._n)return;L._n=!0;var ie=L._c;c(function(){for(var ce=L._v,ue=L._s==1,xe=0,Te=function(de){var ve=ue?de.ok:de.fail,_e=de.resolve,le=de.reject,ee=de.domain,U,K,X;try{ve?(ue||(L._h==2&&D(L),L._h=1),ve===!0?U=ce:(ee&&ee.enter(),U=ve(ce),ee&&(ee.exit(),X=!0)),U===de.promise?le(h("Promise-chain cycle")):(K=I(U))?K.call(U,_e,le):_e(U)):le(ce)}catch(Q){ee&&!X&&ee.exit(),le(Q)}};ie.length>xe;)Te(ie[xe++]);L._c=[],L._n=!1,z&&!L._h&&J(L)})},J=function(L){r.call(E,function(){var z=L._v,ie=G(L),ce,ue,xe;if(ie&&(ce=a(function(){b?s.emit("unhandledRejection",z,L):(ue=E.onunhandledrejection)?ue({promise:L,reason:z}):(xe=E.console)&&xe.error&&xe.error("Unhandled promise rejection",z)}),L._h=b||G(L)?2:1),L._a=void 0,ie&&ce.e)throw ce.v})},G=function(L){return L._h!==1&&(L._a||L._c).length===0},D=function(L){r.call(E,function(){var z;b?s.emit("rejectionHandled",L):(z=E.onrejectionhandled)&&z({promise:L,reason:L._v})})},H=function(L){var z=this;if(z._d)return;z._d=!0,z=z._w||z,z._v=L,z._s=2,z._a||(z._a=z._c.slice()),k(z,!0)},W=function(L){var z=this,ie;if(z._d)return;z._d=!0,z=z._w||z;try{if(z===L)throw h("Promise can't be resolved itself");(ie=I(L))?c(function(){var ce={_w:z,_d:!1};try{ie.call(L,T(W,ce,1),T(H,ce,1))}catch(ue){H.call(ce,ue)}}):(z._v=L,z._s=1,k(z,!1))}catch(ce){H.call({_w:z,_d:!1},ce)}};j||(x=function(z){g(this,x,d,"_h"),O(z),R.call(this);try{z(T(W,this,1),T(H,this,1))}catch(ie){H.call(this,ie)}},R=function(z){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},R.prototype=N("./_redefine-all")(x.prototype,{then:function(z,ie){var ce=A(f(this,x));return ce.ok=typeof z=="function"?z:!0,ce.fail=typeof ie=="function"&&ie,ce.domain=b?s.domain:void 0,this._c.push(ce),this._a&&this._a.push(ce),this._s&&k(this,!1),ce.promise},catch:function(L){return this.then(void 0,L)}}),S=function(){var L=new R;this.promise=L,this.resolve=T(W,L,1),this.reject=T(H,L,1)},n.f=A=function(L){return L===x||L===_?new S(L):C(L)}),m(m.G+m.W+m.F*!j,{Promise:x}),N("./_set-to-string-tag")(x,d),N("./_set-species")(d),_=N("./_core")[d],m(m.S+m.F*!j,d,{reject:function(z){var ie=A(this),ce=ie.reject;return ce(z),ie.promise}}),m(m.S+m.F*(M||!j),d,{resolve:function(z){return l(M&&this===_?x:this,z)}}),m(m.S+m.F*!(j&&N("./_iter-detect")(function(L){x.all(L).catch(P)})),d,{all:function(z){var ie=this,ce=A(ie),ue=ce.resolve,xe=ce.reject,Te=a(function(){var de=[],ve=0,_e=1;e(z,!1,function(le){var ee=ve++,U=!1;de.push(void 0),_e++,ie.resolve(le).then(function(K){if(U)return;U=!0,de[ee]=K,--_e||ue(de)},xe)}),--_e||ue(de)});return Te.e&&xe(Te.v),ce.promise},race:function(z){var ie=this,ce=A(ie),ue=ce.reject,xe=a(function(){e(z,!1,function(Te){ie.resolve(Te).then(ce.resolve,ue)})});return xe.e&&ue(xe.v),ce.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(N,Y,i){var M=N("./_export"),E=N("./_to-absolute-index"),T=String.fromCharCode,v=String.fromCodePoint;M(M.S+M.F*(!!v&&v.length!=1),"String",{fromCodePoint:function(y){for(var O=[],g=arguments.length,e=0,f;g>e;){if(f=+arguments[e++],E(f,1114111)!==f)throw RangeError(f+" is not a valid code point");O.push(f<65536?T(f):T(((f-=65536)>>10)+55296,f%1024+56320))}return O.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(N,Y,i){"use strict";var M=N("./_string-at")(!0);N("./_iter-define")(String,"String",function(E){this._t=String(E),this._i=0},function(){var E=this._t,T=this._i,v;return T>=E.length?{value:void 0,done:!0}:(v=M(E,T),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(N,Y,i){"use strict";var M=N("./_global"),E=N("./_has"),T=N("./_descriptors"),v=N("./_export"),m=N("./_redefine"),y=N("./_meta").KEY,O=N("./_fails"),g=N("./_shared"),e=N("./_set-to-string-tag"),f=N("./_uid"),r=N("./_wks"),c=N("./_wks-ext"),n=N("./_wks-define"),a=N("./_enum-keys"),o=N("./_is-array"),l=N("./_an-object"),d=N("./_is-object"),h=N("./_to-object"),s=N("./_to-iobject"),u=N("./_to-primitive"),w=N("./_property-desc"),x=N("./_object-create"),b=N("./_object-gopn-ext"),P=N("./_object-gopd"),R=N("./_object-gops"),C=N("./_object-dp"),S=N("./_object-keys"),_=P.f,A=C.f,j=b.f,I=M.Symbol,k=M.JSON,J=k&&k.stringify,G="prototype",D=r("_hidden"),H=r("toPrimitive"),W={}.propertyIsEnumerable,L=g("symbol-registry"),z=g("symbols"),ie=g("op-symbols"),ce=Object[G],ue=typeof I=="function"&&!!R.f,xe=M.QObject,Te=!xe||!xe[G]||!xe[G].findChild,de=T&&O(function(){return x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a!=7})?function(me,Oe,He){var Qe=_(ce,Oe);Qe&&delete ce[Oe],A(me,Oe,He),Qe&&me!==ce&&A(ce,Oe,Qe)}:A,ve=function(me){var Oe=z[me]=x(I[G]);return Oe._k=me,Oe},_e=ue&&typeof I.iterator=="symbol"?function(me){return typeof me=="symbol"}:function(me){return me instanceof I},le=function(Oe,He,Qe){return Oe===ce&&le(ie,He,Qe),l(Oe),He=u(He,!0),l(Qe),E(z,He)?(Qe.enumerable?(E(Oe,D)&&Oe[D][He]&&(Oe[D][He]=!1),Qe=x(Qe,{enumerable:w(0,!1)})):(E(Oe,D)||A(Oe,D,w(1,{})),Oe[D][He]=!0),de(Oe,He,Qe)):A(Oe,He,Qe)},ee=function(Oe,He){l(Oe);for(var Qe=a(He=s(He)),ot=0,st=Qe.length,ct;st>ot;)le(Oe,ct=Qe[ot++],He[ct]);return Oe},U=function(Oe,He){return He===void 0?x(Oe):ee(x(Oe),He)},K=function(Oe){var He=W.call(this,Oe=u(Oe,!0));return this===ce&&E(z,Oe)&&!E(ie,Oe)?!1:He||!E(this,Oe)||!E(z,Oe)||E(this,D)&&this[D][Oe]?He:!0},X=function(Oe,He){if(Oe=s(Oe),He=u(He,!0),Oe===ce&&E(z,He)&&!E(ie,He))return;var Qe=_(Oe,He);return Qe&&E(z,He)&&!(E(Oe,D)&&Oe[D][He])&&(Qe.enumerable=!0),Qe},Q=function(Oe){for(var He=j(s(Oe)),Qe=[],ot=0,st;He.length>ot;)!E(z,st=He[ot++])&&st!=D&&st!=y&&Qe.push(st);return Qe},te=function(Oe){for(var He=Oe===ce,Qe=j(He?ie:s(Oe)),ot=[],st=0,ct;Qe.length>st;)E(z,ct=Qe[st++])&&(He?E(ce,ct):!0)&&ot.push(z[ct]);return ot};ue||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var Oe=f(arguments.length>0?arguments[0]:void 0),He=function(Qe){this===ce&&He.call(ie,Qe),E(this,D)&&E(this[D],Oe)&&(this[D][Oe]=!1),de(this,Oe,w(1,Qe))};return T&&Te&&de(ce,Oe,{configurable:!0,set:He}),ve(Oe)},m(I[G],"toString",function(){return this._k}),P.f=X,C.f=le,N("./_object-gopn").f=b.f=Q,N("./_object-pie").f=K,R.f=te,T&&!N("./_library")&&m(ce,"propertyIsEnumerable",K,!0),c.f=function(me){return ve(r(me))}),v(v.G+v.W+v.F*!ue,{Symbol:I});for(var ae="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ae.length>re;)r(ae[re++]);for(var $=S(r.store),Z=0;$.length>Z;)n($[Z++]);v(v.S+v.F*!ue,"Symbol",{for:function(me){return E(L,me+="")?L[me]:L[me]=I(me)},keyFor:function(Oe){if(!_e(Oe))throw TypeError(Oe+" is not a symbol!");for(var He in L)if(L[He]===Oe)return He},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),v(v.S+v.F*!ue,"Object",{create:U,defineProperty:le,defineProperties:ee,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:te});var fe=O(function(){R.f(1)});v(v.S+v.F*fe,"Object",{getOwnPropertySymbols:function(Oe){return R.f(h(Oe))}}),k&&v(v.S+v.F*(!ue||O(function(){var me=I();return J([me])!="[null]"||J({a:me})!="{}"||J(Object(me))!="{}"})),"JSON",{stringify:function(Oe){for(var He=[Oe],Qe=1,ot,st;arguments.length>Qe;)He.push(arguments[Qe++]);return st=ot=He[1],!d(ot)&&Oe===void 0||_e(Oe)?void 0:(o(ot)||(ot=function(ct,dt){if(typeof st=="function"&&(dt=st.call(this,ct,dt)),!_e(dt))return dt}),He[1]=ot,J.apply(k,He))}}),I[G][H]||N("./_hide")(I[G],H,I[G].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(N,Y,i){var M=N("./_export"),E=N("./_object-to-array")(!0);M(M.S,"Object",{entries:function(v){return E(v)}})},{"./_export":107,"./_object-to-array":143}],183:[function(N,Y,i){"use strict";var M=N("./_export"),E=N("./_core"),T=N("./_global"),v=N("./_species-constructor"),m=N("./_promise-resolve");M(M.P+M.R,"Promise",{finally:function(y){var O=v(this,E.Promise||T.Promise),g=typeof y=="function";return this.then(g?function(e){return m(O,y()).then(function(){return e})}:y,g?function(e){return m(O,y()).then(function(){throw e})}:y)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(N,Y,i){"use strict";var M=N("./_export"),E=N("./_new-promise-capability"),T=N("./_perform");M(M.S,"Promise",{try:function(v){var m=E.f(this),y=T(v);return(y.e?m.reject:m.resolve)(y.v),m.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(N,Y,i){N("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(N,Y,i){N("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(N,Y,i){N("./es6.array.iterator");for(var M=N("./_global"),E=N("./_hide"),T=N("./_iterators"),v=N("./_wks")("toStringTag"),m="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(","),y=0;y<m.length;y++){var O=m[y],g=M[O],e=g&&g.prototype;e&&!e[v]&&E(e,v,O),T[O]=T.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(N,Y,i){var M=N("./_export"),E=N("./_task");M(M.G+M.B,{setImmediate:E.set,clearImmediate:E.clear})},{"./_export":107,"./_task":155}],189:[function(N,Y,i){(function(M){"use strict";var E=N("babel-runtime/helpers/typeof"),T=v(E);function v(u){return u&&u.__esModule?u:{default:u}}function m(u){return Array.isArray?Array.isArray(u):s(u)==="[object Array]"}i.isArray=m;function y(u){return typeof u=="boolean"}i.isBoolean=y;function O(u){return u===null}i.isNull=O;function g(u){return u==null}i.isNullOrUndefined=g;function e(u){return typeof u=="number"}i.isNumber=e;function f(u){return typeof u=="string"}i.isString=f;function r(u){return(typeof u=="undefined"?"undefined":(0,T.default)(u))==="symbol"}i.isSymbol=r;function c(u){return u===void 0}i.isUndefined=c;function n(u){return s(u)==="[object RegExp]"}i.isRegExp=n;function a(u){return(typeof u=="undefined"?"undefined":(0,T.default)(u))==="object"&&u!==null}i.isObject=a;function o(u){return s(u)==="[object Date]"}i.isDate=o;function l(u){return s(u)==="[object Error]"||u instanceof Error}i.isError=l;function d(u){return typeof u=="function"}i.isFunction=d;function h(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"}i.isPrimitive=h,i.isBuffer=M.isBuffer;function s(u){return Object.prototype.toString.call(u)}}).call(this,{isBuffer:N("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(N,Y,i){"use strict";var M=N("babel-runtime/helpers/typeof"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(v){"use strict";var m=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,c=/[^-+\dA-Z]/g;return function(n,a,o,l){if(arguments.length===1&&e(n)==="string"&&!/\d/.test(n)&&(a=n,n=void 0),n=n||new Date,n instanceof Date||(n=new Date(n)),isNaN(n))throw TypeError("Invalid date");a=String(m.masks[a]||a||m.masks.default);var d=a.slice(0,4);(d==="UTC:"||d==="GMT:")&&(a=a.slice(4),o=!0,d==="GMT:"&&(l=!0));var h=o?"getUTC":"get",s=n[h+"Date"](),u=n[h+"Day"](),w=n[h+"Month"](),x=n[h+"FullYear"](),b=n[h+"Hours"](),P=n[h+"Minutes"](),R=n[h+"Seconds"](),C=n[h+"Milliseconds"](),S=o?0:n.getTimezoneOffset(),_=O(n),A=g(n),j={d:s,dd:y(s),ddd:m.i18n.dayNames[u],dddd:m.i18n.dayNames[u+7],m:w+1,mm:y(w+1),mmm:m.i18n.monthNames[w],mmmm:m.i18n.monthNames[w+12],yy:String(x).slice(2),yyyy:x,h:b%12||12,hh:y(b%12||12),H:b,HH:y(b),M:P,MM:y(P),s:R,ss:y(R),l:y(C,3),L:y(Math.round(C/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:l?"GMT":o?"UTC":(String(n).match(r)||[""]).pop().replace(c,""),o:(S>0?"-":"+")+y(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:_,N:A};return a.replace(f,function(I){return I in j?j[I]:I.slice(1,I.length-1)})}}();m.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"},m.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 y(f,r){for(f=String(f),r=r||2;f.length<r;)f="0"+f;return f}function O(f){var r=new Date(f.getFullYear(),f.getMonth(),f.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var c=new Date(r.getFullYear(),0,4);c.setDate(c.getDate()-(c.getDay()+6)%7+3);var n=r.getTimezoneOffset()-c.getTimezoneOffset();r.setHours(r.getHours()-n);var a=(r-c)/(864e5*7);return 1+Math.floor(a)}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,E.default)(f))!=="object"?typeof f=="undefined"?"undefined":(0,E.default)(f):Array.isArray(f)?"array":{}.toString.call(f).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof i=="undefined"?"undefined":(0,E.default)(i))==="object"?Y.exports=m:v.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(N,Y,i){/*!
* 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=/["'&<>]/;Y.exports=E;function E(T){var v=""+T,m=M.exec(v);if(!m)return v;var y,O="",g=0,e=0;for(g=m.index;g<v.length;g++){switch(v.charCodeAt(g)){case 34:y="&quot;";break;case 38:y="&amp;";break;case 39:y="&#39;";break;case 60:y="&lt;";break;case 62:y="&gt;";break;default:continue}e!==g&&(O+=v.substring(e,g)),e=g+1,O+=y}return e!==g?O+v.substring(e,g):O}},{}],192:[function(N,Y,i){function M(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}Y.exports=M,M.EventEmitter=M,M.prototype._events=void 0,M.prototype._maxListeners=void 0,M.defaultMaxListeners=10,M.prototype.setMaxListeners=function(y){if(!T(y)||y<0||isNaN(y))throw TypeError("n must be a positive number");return this._maxListeners=y,this},M.prototype.emit=function(y){var O,g,e,f,r,c;if(this._events||(this._events={}),y==="error"&&(!this._events.error||v(this._events.error)&&!this._events.error.length)){if(O=arguments[1],O instanceof Error)throw O;var n=new Error('Uncaught, unspecified "error" event. ('+O+")");throw n.context=O,n}if(g=this._events[y],m(g))return!1;if(E(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(v(g))for(f=Array.prototype.slice.call(arguments,1),c=g.slice(),e=c.length,r=0;r<e;r++)c[r].apply(this,f);return!0},M.prototype.addListener=function(y,O){var g;if(!E(O))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",y,E(O.listener)?O.listener:O),this._events[y]?v(this._events[y])?this._events[y].push(O):this._events[y]=[this._events[y],O]:this._events[y]=O,v(this._events[y])&&!this._events[y].warned&&(m(this._maxListeners)?g=M.defaultMaxListeners:g=this._maxListeners,g&&g>0&&this._events[y].length>g&&(this._events[y].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[y].length),typeof console.trace=="function"&&console.trace())),this},M.prototype.on=M.prototype.addListener,M.prototype.once=function(y,O){if(!E(O))throw TypeError("listener must be a function");var g=!1;function e(){this.removeListener(y,e),g||(g=!0,O.apply(this,arguments))}return e.listener=O,this.on(y,e),this},M.prototype.removeListener=function(y,O){var g,e,f,r;if(!E(O))throw TypeError("listener must be a function");if(!this._events||!this._events[y])return this;if(g=this._events[y],f=g.length,e=-1,g===O||E(g.listener)&&g.listener===O)delete this._events[y],this._events.removeListener&&this.emit("removeListener",y,O);else if(v(g)){for(r=f;r-- >0;)if(g[r]===O||g[r].listener&&g[r].listener===O){e=r;break}if(e<0)return this;g.length===1?(g.length=0,delete this._events[y]):g.splice(e,1),this._events.removeListener&&this.emit("removeListener",y,O)}return this},M.prototype.removeAllListeners=function(y){var O,g;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[y]&&delete this._events[y],this;if(arguments.length===0){for(O in this._events){if(O==="removeListener")continue;this.removeAllListeners(O)}return this.removeAllListeners("removeListener"),this._events={},this}if(g=this._events[y],E(g))this.removeListener(y,g);else if(g)for(;g.length;)this.removeListener(y,g[g.length-1]);return delete this._events[y],this},M.prototype.listeners=function(y){var O;return!this._events||!this._events[y]?O=[]:E(this._events[y])?O=[this._events[y]]:O=this._events[y].slice(),O},M.prototype.listenerCount=function(y){if(this._events){var O=this._events[y];if(E(O))return 1;if(O)return O.length}return 0},M.listenerCount=function(y,O){return y.listenerCount(O)};function E(y){return typeof y=="function"}function T(y){return typeof y=="number"}function v(y){return typeof y=="object"&&y!==null}function m(y){return y===void 0}},{}],193:[function(N,Y,i){var M=N("http"),E=Y.exports;for(var T in M)M.hasOwnProperty(T)&&(E[T]=M[T]);E.request=function(v,m){return v||(v={}),v.scheme="https",v.protocol="https:",M.request.call(this,v,m)}},{http:231}],194:[function(N,Y,i){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var M=N("util"),E=N("ms");Y.exports=function(T){if(typeof T=="number")return T;var v=E(T);if(v===void 0){var m=new Error(M.format("humanize-ms(%j) result undefined",T));console.warn(m.stack)}return v}},{ms:204,util:243}],195:[function(N,Y,i){i.read=function(M,E,T,v,m){var y,O,g=m*8-v-1,e=(1<<g)-1,f=e>>1,r=-7,c=T?m-1:0,n=T?-1:1,a=M[E+c];for(c+=n,y=a&(1<<-r)-1,a>>=-r,r+=g;r>0;y=y*256+M[E+c],c+=n,r-=8);for(O=y&(1<<-r)-1,y>>=-r,r+=v;r>0;O=O*256+M[E+c],c+=n,r-=8);if(y===0)y=1-f;else{if(y===e)return O?NaN:(a?-1:1)*Infinity;O=O+Math.pow(2,v),y=y-f}return(a?-1:1)*O*Math.pow(2,y-v)},i.write=function(M,E,T,v,m,y){var O,g,e,f=y*8-m-1,r=(1<<f)-1,c=r>>1,n=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=v?0:y-1,o=v?1:-1,l=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===Infinity?(g=isNaN(E)?1:0,O=r):(O=Math.floor(Math.log(E)/Math.LN2),E*(e=Math.pow(2,-O))<1&&(O--,e*=2),O+c>=1?E+=n/e:E+=n*Math.pow(2,1-c),E*e>=2&&(O++,e/=2),O+c>=r?(g=0,O=r):O+c>=1?(g=(E*e-1)*Math.pow(2,m),O=O+c):(g=E*Math.pow(2,c-1)*Math.pow(2,m),O=0));m>=8;M[T+a]=g&255,a+=o,g/=256,m-=8);for(O=O<<m|g,f+=m;f>0;M[T+a]=O&255,a+=o,O/=256,f-=8);M[T+a-o]|=l*128}},{}],196:[function(N,Y,i){typeof Object.create=="function"?Y.exports=function(E,T){T&&(E.super_=T,E.prototype=Object.create(T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:Y.exports=function(E,T){if(T){E.super_=T;var v=function(){};v.prototype=T.prototype,E.prototype=new v,E.prototype.constructor=E}}},{}],197:[function(N,Y,i){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/Y.exports=function(T){return T!=null&&(M(T)||E(T)||!!T._isBuffer)};function M(T){return!!T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T)}function E(T){return typeof T.readFloatLE=="function"&&typeof T.slice=="function"&&M(T.slice(0,0))}},{}],198:[function(N,Y,i){var M={}.toString;Y.exports=Array.isArray||function(E){return M.call(E)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(N,Y){typeof exports=="object"&&typeof module!="undefined"?module.exports=Y(N):typeof define=="function"&&define.amd?define(Y):Y(N)})(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(N){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(N){for(var Y={},i=0,M=N.length;i<M;i++)Y[N.charAt(i)]=i;return Y}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(N){if(N.length<2){var Y=N.charCodeAt(0);return Y<128?N:Y<2048?fromCharCode(192|Y>>>6)+fromCharCode(128|Y&63):fromCharCode(224|Y>>>12&15)+fromCharCode(128|Y>>>6&63)+fromCharCode(128|Y&63)}else{var Y=65536+(N.charCodeAt(0)-55296)*1024+(N.charCodeAt(1)-56320);return fromCharCode(240|Y>>>18&7)+fromCharCode(128|Y>>>12&63)+fromCharCode(128|Y>>>6&63)+fromCharCode(128|Y&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(N){return N.replace(re_utob,cb_utob)},cb_encode=function(N){var Y=[0,2,1][N.length%3],i=N.charCodeAt(0)<<16|(N.length>1?N.charCodeAt(1):0)<<8|(N.length>2?N.charCodeAt(2):0),M=[b64chars.charAt(i>>>18),b64chars.charAt(i>>>12&63),Y>=2?"=":b64chars.charAt(i>>>6&63),Y>=1?"=":b64chars.charAt(i&63)];return M.join("")},btoa=global.btoa?function(N){return global.btoa(N)}:function(N){return N.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(N){var Y=Object.prototype.toString.call(N)==="[object Uint8Array]";return Y?N.toString("base64"):btoa(utob(String(N)))},encode=function(N,Y){return Y?_encode(String(N)).replace(/[+\/]/g,function(i){return i=="+"?"-":"_"}).replace(/=/g,""):_encode(N)},encodeURI=function(N){return encode(N,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(N){switch(N.length){case 4:var Y=(7&N.charCodeAt(0))<<18|(63&N.charCodeAt(1))<<12|(63&N.charCodeAt(2))<<6|63&N.charCodeAt(3),i=Y-65536;return fromCharCode((i>>>10)+55296)+fromCharCode((i&1023)+56320);case 3:return fromCharCode((15&N.charCodeAt(0))<<12|(63&N.charCodeAt(1))<<6|63&N.charCodeAt(2));default:return fromCharCode((31&N.charCodeAt(0))<<6|63&N.charCodeAt(1))}},btou=function(N){return N.replace(re_btou,cb_btou)},cb_decode=function(N){var Y=N.length,i=Y%4,M=(Y>0?b64tab[N.charAt(0)]<<18:0)|(Y>1?b64tab[N.charAt(1)]<<12:0)|(Y>2?b64tab[N.charAt(2)]<<6:0)|(Y>3?b64tab[N.charAt(3)]:0),E=[fromCharCode(M>>>16),fromCharCode(M>>>8&255),fromCharCode(M&255)];return E.length-=[0,0,2,1][i],E.join("")},_atob=global.atob?function(N){return global.atob(N)}:function(N){return N.replace(/\S{1,4}/g,cb_decode)},atob=function(N){return _atob(String(N).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(N){return(N.constructor===buffer.constructor?N:buffer.from(N,"base64")).toString()}:function(N){return(N.constructor===buffer.constructor?N:new buffer(N,"base64")).toString()}:function(N){return btou(_atob(N))},decode=function(N){return _decode(String(N).replace(/[-_]/g,function(Y){return Y=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var N=global.Base64;return global.Base64=_Base64,N};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(N){return{value:N,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(N){return encode(this,N)})),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(N,Y,i){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";Y.exports=E;var M=Object.prototype.hasOwnProperty;function E(T,v,m){if(!T)throw new TypeError("argument dest is required");if(!v)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(v).forEach(function(O){if(!m&&M.call(T,O))return;var g=Object.getOwnPropertyDescriptor(v,O);Object.defineProperty(T,O,g)}),T}},{}],201:[function(N,Y,i){"use strict";function M(){this._types=Object.create(null),this._extensions=Object.create(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}M.prototype.define=function(E,T){for(var v in E){var m=E[v].map(function(g){return g.toLowerCase()});v=v.toLowerCase();for(var y=0;y<m.length;y++){var O=m[y];if(O[0]=="*")continue;if(!T&&O in this._types)throw new Error('Attempt to change mapping for "'+O+'" extension from "'+this._types[O]+'" to "'+v+'". Pass `force=true` to allow this, otherwise remove "'+O+'" from the list of extensions for "'+v+'".');this._types[O]=v}if(T||!this._extensions[v]){var O=m[0];this._extensions[v]=O[0]!="*"?O:O.substr(1)}}},M.prototype.getType=function(E){E=String(E);var T=E.replace(/^.*[/\\]/,"").toLowerCase(),v=T.replace(/^.*\./,"").toLowerCase(),m=T.length<E.length,y=v.length<T.length-1;return(y||!m)&&this._types[v]||null},M.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},Y.exports=M},{}],202:[function(N,Y,i){"use strict";var M=N("./Mime");Y.exports=new M(N("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(N,Y,i){Y.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(N,Y,i){var M=1e3,E=M*60,T=E*60,v=T*24,m=v*7,y=v*365.25;Y.exports=function(r,c){c=c||{};var n=typeof r;if(n==="string"&&r.length>0)return O(r);if(n==="number"&&isFinite(r))return c.long?e(r):g(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function O(r){if(r=String(r),r.length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!c)return;var n=parseFloat(c[1]),a=(c[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"weeks":case"week":case"w":return n*m;case"days":case"day":case"d":return n*v;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*E;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 c=Math.abs(r);return c>=v?Math.round(r/v)+"d":c>=T?Math.round(r/T)+"h":c>=E?Math.round(r/E)+"m":c>=M?Math.round(r/M)+"s":r+"ms"}function e(r){var c=Math.abs(r);return c>=v?f(r,c,v,"day"):c>=T?f(r,c,T,"hour"):c>=E?f(r,c,E,"minute"):c>=M?f(r,c,M,"second"):r+" ms"}function f(r,c,n,a){var o=c>=n*1.5;return Math.round(r/n)+" "+a+(o?"s":"")}},{}],205:[function(N,Y,i){(function(M){function E(y,O){for(var g=0,e=y.length-1;e>=0;e--){var f=y[e];f==="."?y.splice(e,1):f===".."?(y.splice(e,1),g++):g&&(y.splice(e,1),g--)}if(O)for(;g--;g)y.unshift("..");return y}i.resolve=function(){for(var y="",O=!1,g=arguments.length-1;g>=-1&&!O;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;y=e+"/"+y,O=e.charAt(0)==="/"}return y=E(v(y.split("/"),function(f){return!!f}),!O).join("/"),(O?"/":"")+y||"."},i.normalize=function(y){var O=i.isAbsolute(y),g=m(y,-1)==="/";return y=E(v(y.split("/"),function(e){return!!e}),!O).join("/"),!y&&!O&&(y="."),y&&g&&(y+="/"),(O?"/":"")+y},i.isAbsolute=function(y){return y.charAt(0)==="/"},i.join=function(){var y=Array.prototype.slice.call(arguments,0);return i.normalize(v(y,function(O,g){if(typeof O!="string")throw new TypeError("Arguments to path.join must be strings");return O}).join("/"))},i.relative=function(y,O){y=i.resolve(y).substr(1),O=i.resolve(O).substr(1);function g(o){for(var l=0;l<o.length&&!(o[l]!=="");l++);for(var d=o.length-1;d>=0&&!(o[d]!=="");d--);return l>d?[]:o.slice(l,d-l+1)}for(var e=g(y.split("/")),f=g(O.split("/")),r=Math.min(e.length,f.length),c=r,n=0;n<r;n++)if(e[n]!==f[n]){c=n;break}for(var a=[],n=c;n<e.length;n++)a.push("..");return a=a.concat(f.slice(c)),a.join("/")},i.sep="/",i.delimiter=":",i.dirname=function(y){if(typeof y!="string"&&(y=y+""),y.length===0)return".";for(var O=y.charCodeAt(0),g=O===47,e=-1,f=!0,r=y.length-1;r>=1;--r)if(O=y.charCodeAt(r),O===47){if(!f){e=r;break}}else f=!1;return e===-1?g?"/":".":g&&e===1?"/":y.slice(0,e)};function T(y){typeof y!="string"&&(y=y+"");var O=0,g=-1,e=!0,f;for(f=y.length-1;f>=0;--f)if(y.charCodeAt(f)===47){if(!e){O=f+1;break}}else g===-1&&(e=!1,g=f+1);return g===-1?"":y.slice(O,g)}i.basename=function(y,O){var g=T(y);return O&&g.substr(-1*O.length)===O&&(g=g.substr(0,g.length-O.length)),g},i.extname=function(y){typeof y!="string"&&(y=y+"");for(var O=-1,g=0,e=-1,f=!0,r=0,c=y.length-1;c>=0;--c){var n=y.charCodeAt(c);if(n===47){if(!f){g=c+1;break}continue}e===-1&&(f=!1,e=c+1),n===46?O===-1?O=c:r!==1&&(r=1):O!==-1&&(r=-1)}return O===-1||e===-1||r===0||r===1&&O===e-1&&O===g+1?"":y.slice(O,e)};function v(y,O){if(y.filter)return y.filter(O);for(var g=[],e=0;e<y.length;e++)O(y[e],e,y)&&g.push(y[e]);return g}var m="ab".substr(-1)==="b"?function(y,O,g){return y.substr(O,g)}:function(y,O,g){return O<0&&(O=y.length+O),y.substr(O,g)}}).call(this,N("_process"))},{_process:208}],206:[function(N,Y,i){(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 E={function:!0,object:!0},T=E[typeof window]&&window||this,v=T,m=E[typeof i]&&i,y=E[typeof Y]&&Y&&!Y.nodeType&&Y,O=m&&y&&typeof M=="object"&&M;O&&(O.global===O||O.window===O||O.self===O)&&(T=O);var g=Math.pow(2,53)-1,e=/\bOpera/,f=this,r=Object.prototype,c=r.hasOwnProperty,n=r.toString;function a(C){return C=String(C),C.charAt(0).toUpperCase()+C.slice(1)}function o(C,S,_){var A={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return S&&_&&/^Win/i.test(C)&&!/^Windows Phone /i.test(C)&&(A=A[/[\d.]+$/.exec(C)])&&(C="Windows "+A),C=String(C),S&&_&&(C=C.replace(RegExp(S,"i"),_)),C=d(C.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]),C}function l(C,S){var _=-1,A=C?C.length:0;if(typeof A=="number"&&A>-1&&A<=g)for(;++_<A;)S(C[_],_,C);else h(C,S)}function d(C){return C=b(C),/^(?:webOS|i(?:OS|P))/.test(C)?C:a(C)}function h(C,S){for(var _ in C)c.call(C,_)&&S(C[_],_,C)}function s(C){return C==null?a(C):n.call(C).slice(8,-1)}function u(C,S){var _=C!=null?typeof C[S]:"number";return!/^(?:boolean|number|string|undefined)$/.test(_)&&(_=="object"?!!C[S]:!0)}function w(C){return String(C).replace(/([ -])(?!$)/g,"$1?")}function x(C,S){var _=null;return l(C,function(A,j){_=S(_,A,j,C)}),_}function b(C){return String(C).replace(/^ +| +$/g,"")}function P(C){var S=T,_=C&&typeof C=="object"&&s(C)!="String";_&&(S=C,C=null);var A=S.navigator||{},j=A.userAgent||"";C||(C=j);var I=_||f==v,k=_?!!A.likeChrome:/\bChrome\b/.test(C)&&!/internal|\n/i.test(n.toString()),J="Object",G=_?J:"ScriptBridgingProxyObject",D=_?J:"Environment",H=_&&S.java?"JavaPackage":s(S.java),W=_?J:"RuntimeObject",L=/\bJava/.test(H)&&S.java,z=L&&s(S.environment)==D,ie=L?"a":"\u03B1",ce=L?"b":"\u03B2",ue=S.document||{},xe=S.operamini||S.opera,Te=e.test(Te=_&&xe?xe["[[Class]]"]:s(xe))?Te:xe=null,de,ve=C,_e=[],le=null,ee=C==j,U=ee&&xe&&typeof xe.version=="function"&&xe.version(),K,X=$([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Q=fe(["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"]),te=Oe([{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"]),ae=Z({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}}),re=me(["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 $(st){return x(st,function(ct,dt){return ct||RegExp("\\b"+(dt.pattern||w(dt))+"\\b","i").exec(C)&&(dt.label||dt)})}function Z(st){return x(st,function(ct,dt,Xe){return ct||(dt[te]||dt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(te)]||RegExp("\\b"+w(Xe)+"(?:\\b|\\w*\\d)","i").exec(C))&&Xe})}function fe(st){return x(st,function(ct,dt){return ct||RegExp("\\b"+(dt.pattern||w(dt))+"\\b","i").exec(C)&&(dt.label||dt)})}function me(st){return x(st,function(ct,dt){var Xe=dt.pattern||w(dt);return!ct&&(ct=RegExp("\\b"+Xe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(C))&&(ct=o(ct,Xe,dt.label||dt)),ct})}function Oe(st){return x(st,function(ct,dt){var Xe=dt.pattern||w(dt);return!ct&&(ct=RegExp("\\b"+Xe+" *\\d+[.\\w_]*","i").exec(C)||RegExp("\\b"+Xe+" *\\w+-[\\w]*","i").exec(C)||RegExp("\\b"+Xe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(C))&&((ct=String(dt.label&&!RegExp(Xe,"i").test(dt.label)?dt.label:ct).split("/"))[1]&&!/[\d.]+/.test(ct[0])&&(ct[0]+=" "+ct[1]),dt=dt.label||dt,ct=d(ct[0].replace(RegExp(Xe,"i"),dt).replace(RegExp("; *(?:"+dt+"[_-])?","i")," ").replace(RegExp("("+dt+")[-_.]?(\\w)","i"),"$1 $2"))),ct})}function He(st){return x(st,function(ct,dt){return ct||(RegExp(dt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(C)||0)[1]||null})}function Qe(){return this.description||""}if(X&&(X=[X]),ae&&!te&&(te=Oe([ae])),(de=/\bGoogle TV\b/.exec(te))&&(te=de[0]),/\bSimulator\b/i.test(C)&&(te=(te?te+" ":"")+"Simulator"),Q=="Opera Mini"&&/\bOPiOS\b/.test(C)&&_e.push("running in Turbo/Uncompressed mode"),Q=="IE"&&/\blike iPhone OS\b/.test(C)?(de=P(C.replace(/like iPhone OS/,"")),ae=de.manufacturer,te=de.product):/^iP/.test(te)?(Q||(Q="Safari"),re="iOS"+((de=/ OS ([\d_]+)/i.exec(C))?" "+de[1].replace(/_/g,"."):"")):Q=="Konqueror"&&!/buntu/i.test(re)?re="Kubuntu":ae&&ae!="Google"&&(/Chrome/.test(Q)&&!/\bMobile Safari\b/i.test(C)||/\bVita\b/.test(te))||/\bAndroid\b/.test(re)&&/^Chrome/.test(Q)&&/\bVersion\//i.test(C)?(Q="Android Browser",re=/\bAndroid\b/.test(re)?re:"Android"):Q=="Silk"?(/\bMobi/i.test(C)||(re="Android",_e.unshift("desktop mode")),/Accelerated *= *true/i.test(C)&&_e.unshift("accelerated")):Q=="PaleMoon"&&(de=/\bFirefox\/([\d.]+)\b/.exec(C))?_e.push("identifying as Firefox "+de[1]):Q=="Firefox"&&(de=/\b(Mobile|Tablet|TV)\b/i.exec(C))?(re||(re="Firefox OS"),te||(te=de[1])):!Q||(de=!/\bMinefield\b/i.test(C)&&/\b(?:Firefox|Safari)\b/.exec(Q))?(Q&&!te&&/[\/,]|^[^(]+?\)/.test(C.slice(C.indexOf(de+"/")+8))&&(Q=null),(de=te||ae||re)&&(te||ae||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(re))&&(Q=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(re)?re:de)+" Browser")):Q=="Electron"&&(de=(/\bChrome\/([\d.]+)\b/.exec(C)||0)[1])&&_e.push("Chromium "+de),U||(U=He(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",w(Q),"(?:Firefox|Minefield|NetFront)"])),(de=X=="iCab"&&parseFloat(U)>3&&"WebKit"||/\bOpera\b/.test(Q)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(X)&&"WebKit"||!X&&/\bMSIE\b/i.test(C)&&(re=="Mac OS"?"Tasman":"Trident")||X=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Q)&&"NetFront")&&(X=[de]),Q=="IE"&&(de=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(Q+=" Mobile",re="Windows Phone "+(/\+$/.test(de)?de:de+".x"),_e.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(Q="IE Mobile",re="Windows Phone 8.x",_e.unshift("desktop mode"),U||(U=(/\brv:([\d.]+)/.exec(C)||0)[1])):Q!="IE"&&X=="Trident"&&(de=/\brv:([\d.]+)/.exec(C))&&(Q&&_e.push("identifying as "+Q+(U?" "+U:"")),Q="IE",U=de[1]),ee){if(u(S,"global"))if(L&&(de=L.lang.System,ve=de.getProperty("os.arch"),re=re||de.getProperty("os.name")+" "+de.getProperty("os.version")),z){try{U=S.require("ringo/engine").version.join("."),Q="RingoJS"}catch(st){(de=S.system)&&de.global.system==S.system&&(Q="Narwhal",re||(re=de[0].os||null))}Q||(Q="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(de=S.process)&&(typeof de.versions=="object"&&(typeof de.versions.electron=="string"?(_e.push("Node "+de.versions.node),Q="Electron",U=de.versions.electron):typeof de.versions.nw=="string"&&(_e.push("Chromium "+U,"Node "+de.versions.node),Q="NW.js",U=de.versions.nw)),Q||(Q="Node.js",ve=de.arch,re=de.platform,U=/[\d.]+/.exec(de.version),U=U?U[0]:null));else s(de=S.runtime)==G?(Q="Adobe AIR",re=de.flash.system.Capabilities.os):s(de=S.phantom)==W?(Q="PhantomJS",U=(de=de.version||null)&&de.major+"."+de.minor+"."+de.patch):typeof ue.documentMode=="number"&&(de=/\bTrident\/(\d+)/i.exec(C))?(U=[U,ue.documentMode],(de=+de[1]+4)!=U[1]&&(_e.push("IE "+U[1]+" mode"),X&&(X[1]=""),U[1]=de),U=Q=="IE"?String(U[1].toFixed(1)):U[0]):typeof ue.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Q)&&(_e.push("masking as "+Q+" "+U),Q="IE",U="11.0",X=["Trident"],re="Windows");re=re&&d(re)}if(U&&(de=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(U)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(ee&&A.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(le=/b/i.test(de)?"beta":"alpha",U=U.replace(RegExp(de+"\\+?$"),"")+(le=="beta"?ce:ie)+(/\d+\+?/.exec(de)||"")),Q=="Fennec"||Q=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(re))Q="Firefox Mobile";else if(Q=="Maxthon"&&U)U=U.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(te))te=="Xbox 360"&&(re=null),te=="Xbox 360"&&/\bIEMobile\b/.test(C)&&_e.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Q)||Q&&!te&&!/Browser|Mobi/.test(Q))&&(re=="Windows CE"||/Mobi/i.test(C)))Q+=" Mobile";else if(Q=="IE"&&ee)try{S.external===null&&_e.unshift("platform preview")}catch(st){_e.unshift("embedded")}else(/\bBlackBerry\b/.test(te)||/\bBB10\b/.test(C))&&(de=(RegExp(te.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||U)?(de=[de,/BB10/.test(C)],re=(de[1]?(te=null,ae="BlackBerry"):"Device Software")+" "+de[0],U=null):this!=h&&te!="Wii"&&(ee&&xe||/Opera/.test(Q)&&/\b(?:MSIE|Firefox)\b/i.test(C)||Q=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(re)||Q=="IE"&&(re&&!/^Win/.test(re)&&U>5.5||/\bWindows XP\b/.test(re)&&U>8||U==8&&!/\bTrident\b/.test(C)))&&!e.test(de=P.call(h,C.replace(e,"")+";"))&&de.name&&(de="ing as "+de.name+((de=de.version)?" "+de:""),e.test(Q)?(/\bIE\b/.test(de)&&re=="Mac OS"&&(re=null),de="identify"+de):(de="mask"+de,Te?Q=d(Te.replace(/([a-z])([A-Z])/g,"$1 $2")):Q="Opera",/\bIE\b/.test(de)&&(re=null),ee||(U=null)),X=["Presto"],_e.push(de));(de=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(de=[parseFloat(de.replace(/\.(\d)$/,".0$1")),de],Q=="Safari"&&de[1].slice(-1)=="+"?(Q="WebKit Nightly",le="alpha",U=de[1].slice(0,-1)):(U==de[1]||U==(de[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&(U=null),de[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],de[0]==537.36&&de[2]==537.36&&parseFloat(de[1])>=28&&X=="WebKit"&&(X=["Blink"]),!ee||!k&&!de[1]?(X&&(X[1]="like Safari"),de=(de=de[0],de<400?1:de<500?2:de<526?3:de<533?4:de<534?"4+":de<535?5:de<537?6:de<538?7:de<601?8:"8")):(X&&(X[1]="like Chrome"),de=de[1]||(de=de[0],de<530?1:de<532?2:de<532.05?3:de<533?4:de<534.03?5:de<534.07?6:de<534.1?7:de<534.13?8:de<534.16?9:de<534.24?10:de<534.3?11:de<535.01?12:de<535.02?"13+":de<535.07?15:de<535.11?16:de<535.19?17:de<536.05?18:de<536.1?19:de<537.01?20:de<537.11?"21+":de<537.13?23:de<537.18?24:de<537.24?25:de<537.36?26:X!="Blink"?"27":"28")),X&&(X[1]+=" "+(de+=typeof de=="number"?".x":/[.+]/.test(de)?"":"+")),Q=="Safari"&&(!U||parseInt(U)>45)&&(U=de)),Q=="Opera"&&(de=/\bzbov|zvav$/.exec(re))?(Q+=" ",_e.unshift("desktop mode"),de=="zvav"?(Q+="Mini",U=null):Q+="Mobile",re=re.replace(RegExp(" *"+de+"$"),"")):Q=="Safari"&&/\bChrome\b/.exec(X&&X[1])&&(_e.unshift("desktop mode"),Q="Chrome Mobile",U=null,/\bOS X\b/.test(re)?(ae="Apple",re="iOS 4.3+"):re=null),U&&U.indexOf(de=/[\d.]+$/.exec(re))==0&&C.indexOf("/"+de+"-")>-1&&(re=b(re.replace(de,""))),X&&!/\b(?:Avant|Nook)\b/.test(Q)&&(/Browser|Lunascape|Maxthon/.test(Q)||Q!="Safari"&&/^iOS/.test(re)&&/\bSafari\b/.test(X[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Q)&&X[1])&&((de=X[X.length-1])&&_e.push(de)),_e.length&&(_e=["("+_e.join("; ")+")"]),ae&&te&&te.indexOf(ae)<0&&_e.push("on "+ae),te&&_e.push((/^on /.test(_e[_e.length-1])?"":"on ")+te),re&&(de=/ ([\d.+]+)$/.exec(re),K=de&&re.charAt(re.length-de[0].length-1)=="/",re={architecture:32,family:de&&!K?re.replace(de[0],""):re,version:de?de[1]:null,toString:function(){var st=this.version;return this.family+(st&&!K?" "+st:"")+(this.architecture==64?" 64-bit":"")}}),(de=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ve))&&!/\bi686\b/i.test(ve)?(re&&(re.architecture=64,re.family=re.family.replace(RegExp(" *"+de),"")),Q&&(/\bWOW64\b/i.test(C)||ee&&/\w(?:86|32)$/.test(A.cpuClass||A.platform)&&!/\bWin64; x64\b/i.test(C))&&_e.unshift("32-bit")):re&&/^OS X/.test(re.family)&&Q=="Chrome"&&parseFloat(U)>=39&&(re.architecture=64),C||(C=null);var ot={};return ot.description=C,ot.layout=X&&X[0],ot.manufacturer=ae,ot.name=Q,ot.prerelease=le,ot.product=te,ot.ua=C,ot.version=Q&&U,ot.os=re||{architecture:null,family:null,version:null,toString:function(){return"null"}},ot.parse=P,ot.toString=Qe,ot.version&&_e.unshift(U),ot.name&&_e.unshift(Q),re&&Q&&!(re==String(re).split(" ")[0]&&(re==Q.split(" ")[0]||te))&&_e.push(te?"("+re+")":"on "+re),_e.length&&(ot.description=_e.join(" ")),ot}var R=P();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=R,define(function(){return R})):m&&y?h(R,function(C,S){m[S]=C}):T.platform=R}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(N,Y,i){(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?Y.exports={nextTick:E}:Y.exports=M;function E(T,v,m,y){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var O=arguments.length,g,e;switch(O){case 0:case 1:return M.nextTick(T);case 2:return M.nextTick(function(){T.call(null,v)});case 3:return M.nextTick(function(){T.call(null,v,m)});case 4:return M.nextTick(function(){T.call(null,v,m,y)});default:for(g=new Array(O-1),e=0;e<g.length;)g[e++]=arguments[e];return M.nextTick(function(){T.apply(null,g)})}}}).call(this,N("_process"))},{_process:208}],208:[function(N,Y,i){var M=Y.exports={},E,T;function v(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=v}catch(l){E=v}try{typeof clearTimeout=="function"?T=clearTimeout:T=m}catch(l){T=m}})();function y(l){if(E===setTimeout)return setTimeout(l,0);if((E===v||!E)&&setTimeout)return E=setTimeout,setTimeout(l,0);try{return E(l,0)}catch(d){try{return E.call(null,l,0)}catch(h){return E.call(this,l,0)}}}function O(l){if(T===clearTimeout)return clearTimeout(l);if((T===m||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(l);try{return T(l)}catch(d){try{return T.call(null,l)}catch(h){return T.call(this,l)}}}var g=[],e=!1,f,r=-1;function c(){if(!e||!f)return;e=!1,f.length?g=f.concat(g):r=-1,g.length&&n()}function n(){if(e)return;var l=y(c);e=!0;for(var d=g.length;d;){for(f=g,g=[];++r<d;)f&&f[r].run();r=-1,d=g.length}f=null,e=!1,O(l)}M.nextTick=function(l){var d=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)d[h-1]=arguments[h];g.push(new a(l,d)),g.length===1&&!e&&y(n)};function a(l,d){this.fun=l,this.array=d}a.prototype.run=function(){this.fun.apply(null,this.array)},M.title="browser",M.browser=!0,M.env={},M.argv=[],M.version="",M.versions={};function o(){}M.on=o,M.addListener=o,M.once=o,M.off=o,M.removeListener=o,M.removeAllListeners=o,M.emit=o,M.prependListener=o,M.prependOnceListener=o,M.listeners=function(l){return[]},M.binding=function(l){throw new Error("process.binding is not supported")},M.cwd=function(){return"/"},M.chdir=function(l){throw new Error("process.chdir is not supported")},M.umask=function(){return 0}},{}],209:[function(N,Y,i){(function(M){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(E){var T=typeof i=="object"&&i&&!i.nodeType&&i,v=typeof Y=="object"&&Y&&!Y.nodeType&&Y,m=typeof M=="object"&&M;(m.global===m||m.window===m||m.self===m)&&(E=m);var y,O=2147483647,g=36,e=1,f=26,r=38,c=700,n=72,a=128,o="-",l=/^xn--/,d=/[^\x20-\x7E]/,h=/[\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,w=Math.floor,x=String.fromCharCode,b;function P(H){throw new RangeError(s[H])}function R(H,W){for(var L=H.length,z=[];L--;)z[L]=W(H[L]);return z}function C(H,W){var L=H.split("@"),z="";L.length>1&&(z=L[0]+"@",H=L[1]),H=H.replace(h,".");var ie=H.split("."),ce=R(ie,W).join(".");return z+ce}function S(H){for(var W=[],L=0,z=H.length,ie,ce;L<z;)ie=H.charCodeAt(L++),ie>=55296&&ie<=56319&&L<z?(ce=H.charCodeAt(L++),(ce&64512)==56320?W.push(((ie&1023)<<10)+(ce&1023)+65536):(W.push(ie),L--)):W.push(ie);return W}function _(H){return R(H,function(W){var L="";return W>65535&&(W-=65536,L+=x(W>>>10&1023|55296),W=56320|W&1023),L+=x(W),L}).join("")}function A(H){return H-48<10?H-22:H-65<26?H-65:H-97<26?H-97:g}function j(H,W){return H+22+75*(H<26)-((W!=0)<<5)}function I(H,W,L){var z=0;for(H=L?w(H/c):H>>1,H+=w(H/W);H>u*f>>1;z+=g)H=w(H/u);return w(z+(u+1)*H/(H+r))}function k(H){var W=[],L=H.length,z,ie=0,ce=a,ue=n,xe,Te,de,ve,_e,le,ee,U,K;for(xe=H.lastIndexOf(o),xe<0&&(xe=0),Te=0;Te<xe;++Te)H.charCodeAt(Te)>=128&&P("not-basic"),W.push(H.charCodeAt(Te));for(de=xe>0?xe+1:0;de<L;){for(ve=ie,_e=1,le=g;!(de>=L&&P("invalid-input"),ee=A(H.charCodeAt(de++)),(ee>=g||ee>w((O-ie)/_e))&&P("overflow"),ie+=ee*_e,U=le<=ue?e:le>=ue+f?f:le-ue,ee<U);le+=g)K=g-U,_e>w(O/K)&&P("overflow"),_e*=K;z=W.length+1,ue=I(ie-ve,z,ve==0),w(ie/z)>O-ce&&P("overflow"),ce+=w(ie/z),ie%=z,W.splice(ie++,0,ce)}return _(W)}function J(H){var W,L,z,ie,ce,ue,xe,Te,de,ve,_e,le=[],ee,U,K,X;for(H=S(H),ee=H.length,W=a,L=0,ce=n,ue=0;ue<ee;++ue)_e=H[ue],_e<128&&le.push(x(_e));for(z=ie=le.length,ie&&le.push(o);z<ee;){for(xe=O,ue=0;ue<ee;++ue)_e=H[ue],_e>=W&&_e<xe&&(xe=_e);for(U=z+1,xe-W>w((O-L)/U)&&P("overflow"),L+=(xe-W)*U,W=xe,ue=0;ue<ee;++ue)if(_e=H[ue],_e<W&&++L>O&&P("overflow"),_e==W){for(Te=L,de=g;!(ve=de<=ce?e:de>=ce+f?f:de-ce,Te<ve);de+=g)X=Te-ve,K=g-ve,le.push(x(j(ve+X%K,0))),Te=w(X/K);le.push(x(j(Te,0))),ce=I(L,U,z==ie),L=0,++z}++L,++W}return le.join("")}function G(H){return C(H,function(W){return l.test(W)?k(W.slice(4).toLowerCase()):W})}function D(H){return C(H,function(W){return d.test(W)?"xn--"+J(W):W})}if(y={version:"1.4.1",ucs2:{decode:S,encode:_},decode:k,encode:J,toASCII:D,toUnicode:G},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return y});else if(T&&v)if(Y.exports==T)v.exports=y;else for(b in y)y.hasOwnProperty(b)&&(T[b]=y[b]);else E.punycode=y})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(N,Y,i){"use strict";function M(T,v){return Object.prototype.hasOwnProperty.call(T,v)}Y.exports=function(T,v,m,y){v=v||"&",m=m||"=";var O={};if(typeof T!="string"||T.length===0)return O;var g=/\+/g;T=T.split(v);var e=1e3;y&&typeof y.maxKeys=="number"&&(e=y.maxKeys);var f=T.length;e>0&&f>e&&(f=e);for(var r=0;r<f;++r){var c=T[r].replace(g,"%20"),n=c.indexOf(m),a,o,l,d;n>=0?(a=c.substr(0,n),o=c.substr(n+1)):(a=c,o=""),l=decodeURIComponent(a),d=decodeURIComponent(o),M(O,l)?E(O[l])?O[l].push(d):O[l]=[O[l],d]:O[l]=d}return O};var E=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(N,Y,i){"use strict";var M=function(m){switch(typeof m){case"string":return m;case"boolean":return m?"true":"false";case"number":return isFinite(m)?m:"";default:return""}};Y.exports=function(m,y,O,g){return y=y||"&",O=O||"=",m===null&&(m=void 0),typeof m=="object"?T(v(m),function(e){var f=encodeURIComponent(M(e))+O;return E(m[e])?T(m[e],function(r){return f+encodeURIComponent(M(r))}).join(y):f+encodeURIComponent(M(m[e]))}).join(y):g?encodeURIComponent(M(g))+O+encodeURIComponent(M(m)):""};var E=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};function T(m,y){if(m.map)return m.map(y);for(var O=[],g=0;g<m.length;g++)O.push(y(m[g],g));return O}var v=Object.keys||function(m){var y=[];for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&y.push(O);return y}},{}],212:[function(N,Y,i){"use strict";i.decode=i.parse=N("./decode"),i.encode=i.stringify=N("./encode")},{"./decode":210,"./encode":211}],213:[function(N,Y,i){Y.exports=N("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=m(M),T=N("babel-runtime/core-js/object/keys"),v=m(T);function m(d){return d&&d.__esModule?d:{default:d}}var y=N("process-nextick-args"),O=v.default||function(d){var h=[];for(var s in d)h.push(s);return h};Y.exports=a;var g=(0,E.default)(N("core-util-is"));g.inherits=N("inherits");var e=N("./_stream_readable"),f=N("./_stream_writable");g.inherits(a,e);for(var r=O(f.prototype),c=0;c<r.length;c++){var n=r[c];a.prototype[n]||(a.prototype[n]=f.prototype[n])}function a(d){if(!(this instanceof a))return new a(d);e.call(this,d),f.call(this,d),d&&d.readable===!1&&(this.readable=!1),d&&d.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,d&&d.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){if(this.allowHalfOpen||this._writableState.ended)return;y.nextTick(l,this)}function l(d){d.end()}Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(h){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=h,this._writableState.destroyed=h}}),a.prototype._destroy=function(d,h){this.push(null),this.end(),y.nextTick(h,d)}},{"./_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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(O){return O&&O.__esModule?O:{default:O}}Y.exports=y;var v=N("./_stream_transform"),m=(0,E.default)(N("core-util-is"));m.inherits=N("inherits"),m.inherits(y,v);function y(O){if(!(this instanceof y))return new y(O);v.call(this,O)}y.prototype._transform=function(O,g,e){e(null,O)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(N,Y,i){(function(M,E){"use strict";var T=N("babel-runtime/core-js/object/get-prototype-of"),v=O(T),m=N("babel-runtime/core-js/object/create"),y=O(m);function O(X){return X&&X.__esModule?X:{default:X}}var g=N("process-nextick-args");Y.exports=S;var e=N("isarray"),f;S.ReadableState=C;var r=N("events").EventEmitter,c=function(Q,te){return Q.listeners(te).length},n=N("./internal/streams/stream"),a=N("safe-buffer").Buffer,o=E.Uint8Array||function(){};function l(X){return a.from(X)}function d(X){return a.isBuffer(X)||X instanceof o}var h=(0,y.default)(N("core-util-is"));h.inherits=N("inherits");var s=N("util"),u=void 0;s&&s.debuglog?u=s.debuglog("stream"):u=function(){};var w=N("./internal/streams/BufferList"),x=N("./internal/streams/destroy"),b;h.inherits(S,n);var P=["error","close","destroy","pause","resume"];function R(X,Q,te){if(typeof X.prependListener=="function")return X.prependListener(Q,te);!X._events||!X._events[Q]?X.on(Q,te):e(X._events[Q])?X._events[Q].unshift(te):X._events[Q]=[te,X._events[Q]]}function C(X,Q){f=f||N("./_stream_duplex"),X=X||{};var te=Q instanceof f;this.objectMode=!!X.objectMode,te&&(this.objectMode=this.objectMode||!!X.readableObjectMode);var ae=X.highWaterMark,re=X.readableHighWaterMark,$=this.objectMode?16:16*1024;ae||ae===0?this.highWaterMark=ae:te&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=$,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=X.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,X.encoding&&(b||(b=N("string_decoder/").StringDecoder),this.decoder=new b(X.encoding),this.encoding=X.encoding)}function S(X){if(f=f||N("./_stream_duplex"),!(this instanceof S))return new S(X);this._readableState=new C(X,this),this.readable=!0,X&&(typeof X.read=="function"&&(this._read=X.read),typeof X.destroy=="function"&&(this._destroy=X.destroy)),n.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Q){if(!this._readableState)return;this._readableState.destroyed=Q}}),S.prototype.destroy=x.destroy,S.prototype._undestroy=x.undestroy,S.prototype._destroy=function(X,Q){this.push(null),Q(X)},S.prototype.push=function(X,Q){var te=this._readableState,ae;return te.objectMode?ae=!0:typeof X=="string"&&(Q=Q||te.defaultEncoding,Q!==te.encoding&&(X=a.from(X,Q),Q=""),ae=!0),_(this,X,Q,!1,ae)},S.prototype.unshift=function(X){return _(this,X,null,!0,!1)};function _(X,Q,te,ae,re){var $=X._readableState;if(Q===null)$.reading=!1,D(X,$);else{var Z;re||(Z=j($,Q)),Z?X.emit("error",Z):$.objectMode||Q&&Q.length>0?(typeof Q!="string"&&!$.objectMode&&(0,v.default)(Q)!==a.prototype&&(Q=l(Q)),ae?$.endEmitted?X.emit("error",new Error("stream.unshift() after end event")):A(X,$,Q,!0):$.ended?X.emit("error",new Error("stream.push() after EOF")):($.reading=!1,$.decoder&&!te?(Q=$.decoder.write(Q),$.objectMode||Q.length!==0?A(X,$,Q,!1):L(X,$)):A(X,$,Q,!1))):ae||($.reading=!1)}return I($)}function A(X,Q,te,ae){Q.flowing&&Q.length===0&&!Q.sync?(X.emit("data",te),X.read(0)):(Q.length+=Q.objectMode?1:te.length,ae?Q.buffer.unshift(te):Q.buffer.push(te),Q.needReadable&&H(X)),L(X,Q)}function j(X,Q){var te;return!d(Q)&&typeof Q!="string"&&Q!==void 0&&!X.objectMode&&(te=new TypeError("Invalid non-string/buffer chunk")),te}function I(X){return!X.ended&&(X.needReadable||X.length<X.highWaterMark||X.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(X){return b||(b=N("string_decoder/").StringDecoder),this._readableState.decoder=new b(X),this._readableState.encoding=X,this};var k=8388608;function J(X){return X>=k?X=k:(X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++),X}function G(X,Q){return X<=0||Q.length===0&&Q.ended?0:Q.objectMode?1:X!==X?Q.flowing&&Q.length?Q.buffer.head.data.length:Q.length:(X>Q.highWaterMark&&(Q.highWaterMark=J(X)),X<=Q.length?X:Q.ended?Q.length:(Q.needReadable=!0,0))}S.prototype.read=function(X){u("read",X),X=parseInt(X,10);var Q=this._readableState,te=X;if(X!==0&&(Q.emittedReadable=!1),X===0&&Q.needReadable&&(Q.length>=Q.highWaterMark||Q.ended))return u("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended?ee(this):H(this),null;if(X=G(X,Q),X===0&&Q.ended)return Q.length===0&&ee(this),null;var ae=Q.needReadable;u("need readable",ae),(Q.length===0||Q.length-X<Q.highWaterMark)&&(ae=!0,u("length less than watermark",ae)),Q.ended||Q.reading?(ae=!1,u("reading or ended",ae)):ae&&(u("do read"),Q.reading=!0,Q.sync=!0,Q.length===0&&(Q.needReadable=!0),this._read(Q.highWaterMark),Q.sync=!1,Q.reading||(X=G(te,Q)));var re;return X>0?re=de(X,Q):re=null,re===null?(Q.needReadable=!0,X=0):Q.length-=X,Q.length===0&&(Q.ended||(Q.needReadable=!0),te!==X&&Q.ended&&ee(this)),re!==null&&this.emit("data",re),re};function D(X,Q){if(Q.ended)return;if(Q.decoder){var te=Q.decoder.end();te&&te.length&&(Q.buffer.push(te),Q.length+=Q.objectMode?1:te.length)}Q.ended=!0,H(X)}function H(X){var Q=X._readableState;Q.needReadable=!1,Q.emittedReadable||(u("emitReadable",Q.flowing),Q.emittedReadable=!0,Q.sync?g.nextTick(W,X):W(X))}function W(X){u("emit readable"),X.emit("readable"),Te(X)}function L(X,Q){Q.readingMore||(Q.readingMore=!0,g.nextTick(z,X,Q))}function z(X,Q){for(var te=Q.length;!Q.reading&&!Q.flowing&&!Q.ended&&Q.length<Q.highWaterMark&&!(u("maybeReadMore read 0"),X.read(0),te===Q.length);)te=Q.length;Q.readingMore=!1}S.prototype._read=function(X){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(X,Q){var te=this,ae=this._readableState;switch(ae.pipesCount){case 0:ae.pipes=X;break;case 1:ae.pipes=[ae.pipes,X];break;default:ae.pipes.push(X);break}ae.pipesCount+=1,u("pipe count=%d opts=%j",ae.pipesCount,Q);var re=(!Q||Q.end!==!1)&&X!==M.stdout&&X!==M.stderr,$=re?fe:Xe;ae.endEmitted?g.nextTick($):te.once("end",$),X.on("unpipe",Z);function Z(ke,lt){u("onunpipe"),ke===te&&(lt&&lt.hasUnpiped===!1&&(lt.hasUnpiped=!0,He()))}function fe(){u("onend"),X.end()}var me=ie(te);X.on("drain",me);var Oe=!1;function He(){u("cleanup"),X.removeListener("close",ct),X.removeListener("finish",dt),X.removeListener("drain",me),X.removeListener("error",st),X.removeListener("unpipe",Z),te.removeListener("end",fe),te.removeListener("end",Xe),te.removeListener("data",ot),Oe=!0,ae.awaitDrain&&(!X._writableState||X._writableState.needDrain)&&me()}var Qe=!1;te.on("data",ot);function ot(ke){u("ondata"),Qe=!1;var lt=X.write(ke);lt===!1&&!Qe&&((ae.pipesCount===1&&ae.pipes===X||ae.pipesCount>1&&K(ae.pipes,X)!==-1)&&!Oe&&(u("false write response, pause",te._readableState.awaitDrain),te._readableState.awaitDrain++,Qe=!0),te.pause())}function st(ke){u("onerror",ke),Xe(),X.removeListener("error",st),c(X,"error")===0&&X.emit("error",ke)}R(X,"error",st);function ct(){X.removeListener("finish",dt),Xe()}X.once("close",ct);function dt(){u("onfinish"),X.removeListener("close",ct),Xe()}X.once("finish",dt);function Xe(){u("unpipe"),te.unpipe(X)}return X.emit("pipe",te),ae.flowing||(u("pipe resume"),te.resume()),X};function ie(X){return function(){var Q=X._readableState;u("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&c(X,"data")&&(Q.flowing=!0,Te(X))}}S.prototype.unpipe=function(X){var Q=this._readableState,te={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1)return X&&X!==Q.pipes?this:(X||(X=Q.pipes),Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,X&&X.emit("unpipe",this,te),this);if(!X){var ae=Q.pipes,re=Q.pipesCount;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var $=0;$<re;$++)ae[$].emit("unpipe",this,te);return this}var Z=K(Q.pipes,X);return Z===-1?this:(Q.pipes.splice(Z,1),Q.pipesCount-=1,Q.pipesCount===1&&(Q.pipes=Q.pipes[0]),X.emit("unpipe",this,te),this)},S.prototype.on=function(X,Q){var te=n.prototype.on.call(this,X,Q);if(X==="data")this._readableState.flowing!==!1&&this.resume();else if(X==="readable"){var ae=this._readableState;!ae.endEmitted&&!ae.readableListening&&(ae.readableListening=ae.needReadable=!0,ae.emittedReadable=!1,ae.reading?ae.length&&H(this):g.nextTick(ce,this))}return te},S.prototype.addListener=S.prototype.on;function ce(X){u("readable nexttick read 0"),X.read(0)}S.prototype.resume=function(){var X=this._readableState;return X.flowing||(u("resume"),X.flowing=!0,ue(this,X)),this};function ue(X,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,g.nextTick(xe,X,Q))}function xe(X,Q){Q.reading||(u("resume read 0"),X.read(0)),Q.resumeScheduled=!1,Q.awaitDrain=0,X.emit("resume"),Te(X),Q.flowing&&!Q.reading&&X.read(0)}S.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 Te(X){var Q=X._readableState;for(u("flow",Q.flowing);Q.flowing&&X.read()!==null;);}S.prototype.wrap=function(X){var Q=this,te=this._readableState,ae=!1;X.on("end",function(){if(u("wrapped end"),te.decoder&&!te.ended){var Z=te.decoder.end();Z&&Z.length&&Q.push(Z)}Q.push(null)}),X.on("data",function(Z){if(u("wrapped data"),te.decoder&&(Z=te.decoder.write(Z)),te.objectMode&&Z==null)return;if(!te.objectMode&&(!Z||!Z.length))return;var fe=Q.push(Z);fe||(ae=!0,X.pause())});for(var re in X)this[re]===void 0&&typeof X[re]=="function"&&(this[re]=function(Z){return function(){return X[Z].apply(X,arguments)}}(re));for(var $=0;$<P.length;$++)X.on(P[$],this.emit.bind(this,P[$]));return this._read=function(Z){u("wrapped _read",Z),ae&&(ae=!1,X.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=de;function de(X,Q){if(Q.length===0)return null;var te;return Q.objectMode?te=Q.buffer.shift():!X||X>=Q.length?(Q.decoder?te=Q.buffer.join(""):Q.buffer.length===1?te=Q.buffer.head.data:te=Q.buffer.concat(Q.length),Q.buffer.clear()):te=ve(X,Q.buffer,Q.decoder),te}function ve(X,Q,te){var ae;return X<Q.head.data.length?(ae=Q.head.data.slice(0,X),Q.head.data=Q.head.data.slice(X)):X===Q.head.data.length?ae=Q.shift():ae=te?_e(X,Q):le(X,Q),ae}function _e(X,Q){var te=Q.head,ae=1,re=te.data;for(X-=re.length;te=te.next;){var $=te.data,Z=X>$.length?$.length:X;if(Z===$.length?re+=$:re+=$.slice(0,X),X-=Z,X===0){Z===$.length?(++ae,te.next?Q.head=te.next:Q.head=Q.tail=null):(Q.head=te,te.data=$.slice(Z));break}++ae}return Q.length-=ae,re}function le(X,Q){var te=a.allocUnsafe(X),ae=Q.head,re=1;for(ae.data.copy(te),X-=ae.data.length;ae=ae.next;){var $=ae.data,Z=X>$.length?$.length:X;if($.copy(te,te.length-X,0,Z),X-=Z,X===0){Z===$.length?(++re,ae.next?Q.head=ae.next:Q.head=Q.tail=null):(Q.head=ae,ae.data=$.slice(Z));break}++re}return Q.length-=re,te}function ee(X){var Q=X._readableState;if(Q.length>0)throw new Error('"endReadable()" called on non-empty stream');Q.endEmitted||(Q.ended=!0,g.nextTick(U,Q,X))}function U(X,Q){!X.endEmitted&&X.length===0&&(X.endEmitted=!0,Q.readable=!1,Q.emit("end"))}function K(X,Q){for(var te=0,ae=X.length;te<ae;te++)if(X[te]===Q)return te;return-1}}).call(this,N("_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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(f){return f&&f.__esModule?f:{default:f}}Y.exports=O;var v=N("./_stream_duplex"),m=(0,E.default)(N("core-util-is"));m.inherits=N("inherits"),m.inherits(O,v);function y(f,r){var c=this._transformState;c.transforming=!1;var n=c.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,r!=null&&this.push(r),n(f);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function O(f){if(!(this instanceof O))return new O(f);v.call(this,f),this._transformState={afterTransform:y.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,c){e(f,r,c)}):e(this,null,null)}O.prototype.push=function(f,r){return this._transformState.needTransform=!1,v.prototype.push.call(this,f,r)},O.prototype._transform=function(f,r,c){throw new Error("_transform() is not implemented")},O.prototype._write=function(f,r,c){var n=this._transformState;if(n.writecb=c,n.writechunk=f,n.writeencoding=r,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},O.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},O.prototype._destroy=function(f,r){var c=this;v.prototype._destroy.call(this,f,function(n){r(n),c.emit("close")})};function e(f,r,c){if(r)return f.emit("error",r);if(c!=null&&f.push(c),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(N,Y,i){(function(M,E){"use strict";var T=N("babel-runtime/core-js/object/define-property"),v=n(T),m=N("babel-runtime/core-js/symbol/has-instance"),y=n(m),O=N("babel-runtime/core-js/symbol"),g=n(O),e=N("babel-runtime/core-js/object/create"),f=n(e),r=N("babel-runtime/core-js/set-immediate"),c=n(r);function n(le){return le&&le.__esModule?le:{default:le}}var a=N("process-nextick-args");Y.exports=j;function o(le,ee,U){this.chunk=le,this.encoding=ee,this.callback=U,this.next=null}function l(le){var ee=this;this.next=null,this.entry=null,this.finish=function(){_e(ee,le)}}var d=!M.browser&&["v0.10","v0.9."].indexOf(M.version.slice(0,5))>-1?c.default:a.nextTick,h;j.WritableState=_;var s=(0,f.default)(N("core-util-is"));s.inherits=N("inherits");var u={deprecate:N("util-deprecate")},w=N("./internal/streams/stream"),x=N("safe-buffer").Buffer,b=E.Uint8Array||function(){};function P(le){return x.from(le)}function R(le){return x.isBuffer(le)||le instanceof b}var C=N("./internal/streams/destroy");s.inherits(j,w);function S(){}function _(le,ee){h=h||N("./_stream_duplex"),le=le||{};var U=ee instanceof h;this.objectMode=!!le.objectMode,U&&(this.objectMode=this.objectMode||!!le.writableObjectMode);var K=le.highWaterMark,X=le.writableHighWaterMark,Q=this.objectMode?16:16*1024;K||K===0?this.highWaterMark=K:U&&(X||X===0)?this.highWaterMark=X:this.highWaterMark=Q,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 te=le.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ae){L(ee,ae)},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 l(this)}_.prototype.getBuffer=function(){for(var ee=this.bufferedRequest,U=[];ee;)U.push(ee),ee=ee.next;return U},function(){try{Object.defineProperty(_.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(le){}}();var A;typeof g.default=="function"&&y.default&&typeof Function.prototype[y.default]=="function"?(A=Function.prototype[y.default],(0,v.default)(j,y.default,{value:function(ee){return A.call(this,ee)?!0:this!==j?!1:ee&&ee._writableState instanceof _}})):A=function(ee){return ee instanceof this};function j(le){if(h=h||N("./_stream_duplex"),!A.call(j,this)&&!(this instanceof h))return new j(le);this._writableState=new _(le,this),this.writable=!0,le&&(typeof le.write=="function"&&(this._write=le.write),typeof le.writev=="function"&&(this._writev=le.writev),typeof le.destroy=="function"&&(this._destroy=le.destroy),typeof le.final=="function"&&(this._final=le.final)),w.call(this)}j.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function I(le,ee){var U=new Error("write after end");le.emit("error",U),a.nextTick(ee,U)}function k(le,ee,U,K){var X=!0,Q=!1;return U===null?Q=new TypeError("May not write null values to stream"):typeof U!="string"&&U!==void 0&&!ee.objectMode&&(Q=new TypeError("Invalid non-string/buffer chunk")),Q&&(le.emit("error",Q),a.nextTick(K,Q),X=!1),X}j.prototype.write=function(le,ee,U){var K=this._writableState,X=!1,Q=!K.objectMode&&R(le);return Q&&!x.isBuffer(le)&&(le=P(le)),typeof ee=="function"&&(U=ee,ee=null),Q?ee="buffer":ee||(ee=K.defaultEncoding),typeof U!="function"&&(U=S),K.ended?I(this,U):(Q||k(this,K,le,U))&&(K.pendingcb++,X=G(this,K,Q,le,ee,U)),X},j.prototype.cork=function(){var le=this._writableState;le.corked++},j.prototype.uncork=function(){var le=this._writableState;le.corked&&(le.corked--,!le.writing&&!le.corked&&!le.finished&&!le.bufferProcessing&&le.bufferedRequest&&ce(this,le))},j.prototype.setDefaultEncoding=function(ee){if(typeof ee=="string"&&(ee=ee.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ee+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ee);return this._writableState.defaultEncoding=ee,this};function J(le,ee,U){return!le.objectMode&&le.decodeStrings!==!1&&typeof ee=="string"&&(ee=x.from(ee,U)),ee}Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G(le,ee,U,K,X,Q){if(!U){var te=J(ee,K,X);K!==te&&(U=!0,X="buffer",K=te)}var ae=ee.objectMode?1:K.length;ee.length+=ae;var re=ee.length<ee.highWaterMark;if(re||(ee.needDrain=!0),ee.writing||ee.corked){var $=ee.lastBufferedRequest;ee.lastBufferedRequest={chunk:K,encoding:X,isBuf:U,callback:Q,next:null},$?$.next=ee.lastBufferedRequest:ee.bufferedRequest=ee.lastBufferedRequest,ee.bufferedRequestCount+=1}else D(le,ee,!1,ae,K,X,Q);return re}function D(le,ee,U,K,X,Q,te){ee.writelen=K,ee.writecb=te,ee.writing=!0,ee.sync=!0,U?le._writev(X,ee.onwrite):le._write(X,Q,ee.onwrite),ee.sync=!1}function H(le,ee,U,K,X){--ee.pendingcb,U?(a.nextTick(X,K),a.nextTick(de,le,ee),le._writableState.errorEmitted=!0,le.emit("error",K)):(X(K),le._writableState.errorEmitted=!0,le.emit("error",K),de(le,ee))}function W(le){le.writing=!1,le.writecb=null,le.length-=le.writelen,le.writelen=0}function L(le,ee){var U=le._writableState,K=U.sync,X=U.writecb;if(W(U),ee)H(le,U,K,ee,X);else{var Q=ue(U);!Q&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&ce(le,U),K?d(z,le,U,Q,X):z(le,U,Q,X)}}function z(le,ee,U,K){U||ie(le,ee),ee.pendingcb--,K(),de(le,ee)}function ie(le,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,le.emit("drain"))}function ce(le,ee){ee.bufferProcessing=!0;var U=ee.bufferedRequest;if(le._writev&&U&&U.next){var K=ee.bufferedRequestCount,X=new Array(K),Q=ee.corkedRequestsFree;Q.entry=U;for(var te=0,ae=!0;U;)X[te]=U,U.isBuf||(ae=!1),U=U.next,te+=1;X.allBuffers=ae,D(le,ee,!0,ee.length,X,"",Q.finish),ee.pendingcb++,ee.lastBufferedRequest=null,Q.next?(ee.corkedRequestsFree=Q.next,Q.next=null):ee.corkedRequestsFree=new l(ee),ee.bufferedRequestCount=0}else{for(;U;){var re=U.chunk,$=U.encoding,Z=U.callback,fe=ee.objectMode?1:re.length;if(D(le,ee,!1,fe,re,$,Z),U=U.next,ee.bufferedRequestCount--,ee.writing)break}U===null&&(ee.lastBufferedRequest=null)}ee.bufferedRequest=U,ee.bufferProcessing=!1}j.prototype._write=function(le,ee,U){U(new Error("_write() is not implemented"))},j.prototype._writev=null,j.prototype.end=function(le,ee,U){var K=this._writableState;typeof le=="function"?(U=le,le=null,ee=null):typeof ee=="function"&&(U=ee,ee=null),le!=null&&this.write(le,ee),K.corked&&(K.corked=1,this.uncork()),!K.ending&&!K.finished&&ve(this,K,U)};function ue(le){return le.ending&&le.length===0&&le.bufferedRequest===null&&!le.finished&&!le.writing}function xe(le,ee){le._final(function(U){ee.pendingcb--,U&&le.emit("error",U),ee.prefinished=!0,le.emit("prefinish"),de(le,ee)})}function Te(le,ee){!ee.prefinished&&!ee.finalCalled&&(typeof le._final=="function"?(ee.pendingcb++,ee.finalCalled=!0,a.nextTick(xe,le,ee)):(ee.prefinished=!0,le.emit("prefinish")))}function de(le,ee){var U=ue(ee);return U&&(Te(le,ee),ee.pendingcb===0&&(ee.finished=!0,le.emit("finish"))),U}function ve(le,ee,U){ee.ending=!0,de(le,ee),U&&(ee.finished?a.nextTick(U):le.once("finish",U)),ee.ended=!0,le.writable=!1}function _e(le,ee,U){var K=le.entry;for(le.entry=null;K;){var X=K.callback;ee.pendingcb--,X(U),K=K.next}ee.corkedRequestsFree?ee.corkedRequestsFree.next=le:ee.corkedRequestsFree=le}Object.defineProperty(j.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ee){if(!this._writableState)return;this._writableState.destroyed=ee}}),j.prototype.destroy=C.destroy,j.prototype._undestroy=C.undestroy,j.prototype._destroy=function(le,ee){this.end(),ee(le)}}).call(this,N("_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(N,Y,i){"use strict";function M(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}var E=N("safe-buffer").Buffer,T=N("util");function v(m,y,O){m.copy(y,O)}Y.exports=function(){function m(){M(this,m),this.head=null,this.tail=null,this.length=0}return m.prototype.push=function(O){var g={data:O,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length},m.prototype.unshift=function(O){var g={data:O,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length},m.prototype.shift=function(){if(this.length===0)return;var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O},m.prototype.clear=function(){this.head=this.tail=null,this.length=0},m.prototype.join=function(O){if(this.length===0)return"";for(var g=this.head,e=""+g.data;g=g.next;)e+=O+g.data;return e},m.prototype.concat=function(O){if(this.length===0)return E.alloc(0);if(this.length===1)return this.head.data;for(var g=E.allocUnsafe(O>>>0),e=this.head,f=0;e;)v(e.data,g,f),f+=e.data.length,e=e.next;return g},m}(),T&&T.inspect&&T.inspect.custom&&(Y.exports.prototype[T.inspect.custom]=function(){var m=T.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(N,Y,i){"use strict";var M=N("process-nextick-args");function E(m,y){var O=this,g=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return g||e?(y?y(m):m&&(!this._writableState||!this._writableState.errorEmitted)&&M.nextTick(v,this,m),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(m||null,function(f){!y&&f?(M.nextTick(v,O,f),O._writableState&&(O._writableState.errorEmitted=!0)):y&&y(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 v(m,y){m.emit("error",y)}Y.exports={destroy:E,undestroy:T}},{"process-nextick-args":207}],221:[function(N,Y,i){"use strict";Y.exports=N("events").EventEmitter},{events:192}],222:[function(N,Y,i){Y.exports=N("./readable").PassThrough},{"./readable":223}],223:[function(N,Y,i){i=Y.exports=N("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=N("./lib/_stream_writable.js"),i.Duplex=N("./lib/_stream_duplex.js"),i.Transform=N("./lib/_stream_transform.js"),i.PassThrough=N("./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(N,Y,i){Y.exports=N("./readable").Transform},{"./readable":223}],225:[function(N,Y,i){Y.exports=N("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(N,Y,i){var M=function(){return this}()||Function("return this")(),E=M.regeneratorRuntime&&Object.getOwnPropertyNames(M).indexOf("regeneratorRuntime")>=0,T=E&&M.regeneratorRuntime;if(M.regeneratorRuntime=void 0,Y.exports=N("./runtime"),E)M.regeneratorRuntime=T;else try{delete M.regeneratorRuntime}catch(v){M.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(N,Y,i){!function(M){"use strict";var E=Object.prototype,T=E.hasOwnProperty,v,m=typeof Symbol=="function"?Symbol:{},y=m.iterator||"@@iterator",O=m.asyncIterator||"@@asyncIterator",g=m.toStringTag||"@@toStringTag",e=typeof Y=="object",f=M.regeneratorRuntime;if(f){e&&(Y.exports=f);return}f=M.regeneratorRuntime=e?Y.exports:{};function r(G,D,H,W){var L=D&&D.prototype instanceof h?D:h,z=Object.create(L.prototype),ie=new I(W||[]);return z._invoke=S(G,H,ie),z}f.wrap=r;function c(G,D,H){try{return{type:"normal",arg:G.call(D,H)}}catch(W){return{type:"throw",arg:W}}}var n="suspendedStart",a="suspendedYield",o="executing",l="completed",d={};function h(){}function s(){}function u(){}var w={};w[y]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(k([])));b&&b!==E&&T.call(b,y)&&(w=b);var P=u.prototype=h.prototype=Object.create(w);s.prototype=P.constructor=u,u.constructor=s,u[g]=s.displayName="GeneratorFunction";function R(G){["next","throw","return"].forEach(function(D){G[D]=function(H){return this._invoke(D,H)}})}f.isGeneratorFunction=function(G){var D=typeof G=="function"&&G.constructor;return D?D===s||(D.displayName||D.name)==="GeneratorFunction":!1},f.mark=function(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,u):(G.__proto__=u,g in G||(G[g]="GeneratorFunction")),G.prototype=Object.create(P),G},f.awrap=function(G){return{__await:G}};function C(G){function D(L,z,ie,ce){var ue=c(G[L],G,z);if(ue.type==="throw")ce(ue.arg);else{var xe=ue.arg,Te=xe.value;return Te&&typeof Te=="object"&&T.call(Te,"__await")?Promise.resolve(Te.__await).then(function(de){D("next",de,ie,ce)},function(de){D("throw",de,ie,ce)}):Promise.resolve(Te).then(function(de){xe.value=de,ie(xe)},ce)}}var H;function W(L,z){function ie(){return new Promise(function(ce,ue){D(L,z,ce,ue)})}return H=H?H.then(ie,ie):ie()}this._invoke=W}R(C.prototype),C.prototype[O]=function(){return this},f.AsyncIterator=C,f.async=function(G,D,H,W){var L=new C(r(G,D,H,W));return f.isGeneratorFunction(D)?L:L.next().then(function(z){return z.done?z.value:L.next()})};function S(G,D,H){var W=n;return function(z,ie){if(W===o)throw new Error("Generator is already running");if(W===l){if(z==="throw")throw ie;return J()}for(H.method=z,H.arg=ie;;){var ce=H.delegate;if(ce){var ue=_(ce,H);if(ue){if(ue===d)continue;return ue}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(W===n)throw W=l,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);W=o;var xe=c(G,D,H);if(xe.type==="normal"){if(W=H.done?l:a,xe.arg===d)continue;return{value:xe.arg,done:H.done}}else xe.type==="throw"&&(W=l,H.method="throw",H.arg=xe.arg)}}}function _(G,D){var H=G.iterator[D.method];if(H===v){if(D.delegate=null,D.method==="throw"){if(G.iterator.return&&(D.method="return",D.arg=v,_(G,D),D.method==="throw"))return d;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var W=c(H,G.iterator,D.arg);if(W.type==="throw")return D.method="throw",D.arg=W.arg,D.delegate=null,d;var L=W.arg;if(!L)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,d;if(L.done)D[G.resultName]=L.value,D.next=G.nextLoc,D.method!=="return"&&(D.method="next",D.arg=v);else return L;return D.delegate=null,d}R(P),P[g]="Generator",P[y]=function(){return this},P.toString=function(){return"[object Generator]"};function A(G){var D={tryLoc:G[0]};1 in G&&(D.catchLoc=G[1]),2 in G&&(D.finallyLoc=G[2],D.afterLoc=G[3]),this.tryEntries.push(D)}function j(G){var D=G.completion||{};D.type="normal",delete D.arg,G.completion=D}function I(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(A,this),this.reset(!0)}f.keys=function(G){var D=[];for(var H in G)D.push(H);return D.reverse(),function W(){for(;D.length;){var L=D.pop();if(L in G)return W.value=L,W.done=!1,W}return W.done=!0,W}};function k(G){if(G){var D=G[y];if(D)return D.call(G);if(typeof G.next=="function")return G;if(!isNaN(G.length)){var H=-1,W=function L(){for(;++H<G.length;)if(T.call(G,H))return L.value=G[H],L.done=!1,L;return L.value=v,L.done=!0,L};return W.next=W}}return{next:J}}f.values=k;function J(){return{value:v,done:!0}}I.prototype={constructor:I,reset:function(G){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(j),!G)for(var D in this)D.charAt(0)==="t"&&T.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=v)},stop:function(){this.done=!0;var G=this.tryEntries[0],D=G.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(G){if(this.done)throw G;var D=this;function H(ue,xe){return z.type="throw",z.arg=G,D.next=ue,xe&&(D.method="next",D.arg=v),!!xe}for(var W=this.tryEntries.length-1;W>=0;--W){var L=this.tryEntries[W],z=L.completion;if(L.tryLoc==="root")return H("end");if(L.tryLoc<=this.prev){var ie=T.call(L,"catchLoc"),ce=T.call(L,"finallyLoc");if(ie&&ce){if(this.prev<L.catchLoc)return H(L.catchLoc,!0);if(this.prev<L.finallyLoc)return H(L.finallyLoc)}else if(ie){if(this.prev<L.catchLoc)return H(L.catchLoc,!0)}else if(ce){if(this.prev<L.finallyLoc)return H(L.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(G,D){for(var H=this.tryEntries.length-1;H>=0;--H){var W=this.tryEntries[H];if(W.tryLoc<=this.prev&&T.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var L=W;break}}L&&(G==="break"||G==="continue")&&L.tryLoc<=D&&D<=L.finallyLoc&&(L=null);var z=L?L.completion:{};return z.type=G,z.arg=D,L?(this.method="next",this.next=L.finallyLoc,d):this.complete(z)},complete:function(G,D){if(G.type==="throw")throw G.arg;return G.type==="break"||G.type==="continue"?this.next=G.arg:G.type==="return"?(this.rval=this.arg=G.arg,this.method="return",this.next="end"):G.type==="normal"&&D&&(this.next=D),d},finish:function(G){for(var D=this.tryEntries.length-1;D>=0;--D){var H=this.tryEntries[D];if(H.finallyLoc===G)return this.complete(H.completion,H.afterLoc),j(H),d}},catch:function(G){for(var D=this.tryEntries.length-1;D>=0;--D){var H=this.tryEntries[D];if(H.tryLoc===G){var W=H.completion;if(W.type==="throw"){var L=W.arg;j(H)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(G,D,H){return this.delegate={iterator:k(G),resultName:D,nextLoc:H},this.method==="next"&&(this.arg=v),d}}}(function(){return this}()||Function("return this")())},{}],228:[function(N,Y,i){var M=N("buffer"),E=M.Buffer;function T(m,y){for(var O in m)y[O]=m[O]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?Y.exports=M:(T(M,i),i.Buffer=v);function v(m,y,O){return E(m,y,O)}T(E,v),v.from=function(m,y,O){if(typeof m=="number")throw new TypeError("Argument must not be a number");return E(m,y,O)},v.alloc=function(m,y,O){if(typeof m!="number")throw new TypeError("Argument must be a number");var g=E(m);return y!==void 0?typeof O=="string"?g.fill(y,O):g.fill(y):g.fill(0),g},v.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return E(m)},v.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return M.SlowBuffer(m)}},{buffer:73}],229:[function(N,Y,i){(function(M){"use strict";var E=N("babel-runtime/core-js/string/from-code-point"),T=a(E),v=N("babel-runtime/core-js/json/stringify"),m=a(v),y=N("babel-runtime/helpers/typeof"),O=a(y),g=N("babel-runtime/core-js/object/define-property"),e=a(g),f=N("babel-runtime/core-js/object/keys"),r=a(f),c=N("babel-runtime/core-js/object/create"),n=a(c);function a(o){return o&&o.__esModule?o:{default:o}}(function(o){o.parser=function($,Z){return new d($,Z)},o.SAXParser=d,o.SAXStream=P,o.createStream=b,o.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];o.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function d($,Z){if(!(this instanceof d))return new d($,Z);var fe=this;s(fe),fe.q=fe.c="",fe.bufferCheckPosition=o.MAX_BUFFER_LENGTH,fe.opt=Z||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!$,fe.noscript=!!($||fe.opt.noscript),fe.state=z.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?(0,n.default)(o.XML_ENTITIES):(0,n.default)(o.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=(0,n.default)(A)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),ce(fe,"onready")}n.default||(Object.create=function($){function Z(){}Z.prototype=$;var fe=new Z;return fe}),r.default||(Object.keys=function($){var Z=[];for(var fe in $)$.hasOwnProperty(fe)&&Z.push(fe);return Z});function h($){for(var Z=Math.max(o.MAX_BUFFER_LENGTH,10),fe=0,me=0,Oe=l.length;me<Oe;me++){var He=$[l[me]].length;if(He>Z)switch(l[me]){case"textNode":xe($);break;case"cdata":ue($,"oncdata",$.cdata),$.cdata="";break;case"script":ue($,"onscript",$.script),$.script="";break;default:de($,"Max buffer length exceeded: "+l[me])}fe=Math.max(fe,He)}var Qe=o.MAX_BUFFER_LENGTH-fe;$.bufferCheckPosition=Qe+$.position}function s($){for(var Z=0,fe=l.length;Z<fe;Z++)$[l[Z]]=""}function u($){xe($),$.cdata!==""&&(ue($,"oncdata",$.cdata),$.cdata=""),$.script!==""&&(ue($,"onscript",$.script),$.script="")}d.prototype={end:function(){ve(this)},write:re,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){u(this)}};var w;try{w=N("stream").Stream}catch($){w=function(){}}var x=o.EVENTS.filter(function($){return $!=="error"&&$!=="end"});function b($,Z){return new P($,Z)}function P($,Z){if(!(this instanceof P))return new P($,Z);w.apply(this),this._parser=new d($,Z),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(me){fe.emit("error",me),fe._parser.error=null},this._decoder=null,x.forEach(function(me){(0,e.default)(fe,"on"+me,{get:function(){return fe._parser["on"+me]},set:function(He){if(!He)return fe.removeAllListeners(me),fe._parser["on"+me]=He,He;fe.on(me,He)},enumerable:!0,configurable:!1})})}P.prototype=(0,n.default)(w.prototype,{constructor:{value:P}}),P.prototype.write=function($){if(typeof M=="function"&&typeof M.isBuffer=="function"&&M.isBuffer($)){if(!this._decoder){var Z=N("string_decoder").StringDecoder;this._decoder=new Z("utf8")}$=this._decoder.write($)}return this._parser.write($.toString()),this.emit("data",$),!0},P.prototype.end=function($){return $&&$.length&&this.write($),this._parser.end(),!0},P.prototype.on=function($,Z){var fe=this;return!fe._parser["on"+$]&&x.indexOf($)!==-1&&(fe._parser["on"+$]=function(){var me=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);me.splice(0,0,$),fe.emit.apply(fe,me)}),w.prototype.on.call(fe,$,Z)};var R="[CDATA[",C="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",A={xml:S,xmlns:_},j=/[:_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-]/,k=/[#:_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]/,J=/[#:_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 G($){return $===" "||$===`
`||$==="\r"||$===" "}function D($){return $==='"'||$==="'"}function H($){return $===">"||G($)}function W($,Z){return $.test(Z)}function L($,Z){return!W($,Z)}var z=0;o.STATE={BEGIN:z++,BEGIN_WHITESPACE:z++,TEXT:z++,TEXT_ENTITY:z++,OPEN_WAKA:z++,SGML_DECL:z++,SGML_DECL_QUOTED:z++,DOCTYPE:z++,DOCTYPE_QUOTED:z++,DOCTYPE_DTD:z++,DOCTYPE_DTD_QUOTED:z++,COMMENT_STARTING:z++,COMMENT:z++,COMMENT_ENDING:z++,COMMENT_ENDED:z++,CDATA:z++,CDATA_ENDING:z++,CDATA_ENDING_2:z++,PROC_INST:z++,PROC_INST_BODY:z++,PROC_INST_ENDING:z++,OPEN_TAG:z++,OPEN_TAG_SLASH:z++,ATTRIB:z++,ATTRIB_NAME:z++,ATTRIB_NAME_SAW_WHITE:z++,ATTRIB_VALUE:z++,ATTRIB_VALUE_QUOTED:z++,ATTRIB_VALUE_CLOSED:z++,ATTRIB_VALUE_UNQUOTED:z++,ATTRIB_VALUE_ENTITY_Q:z++,ATTRIB_VALUE_ENTITY_U:z++,CLOSE_TAG:z++,CLOSE_TAG_SAW_WHITE:z++,SCRIPT:z++,SCRIPT_ENDING:z++},o.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},o.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)(o.ENTITIES).forEach(function($){var Z=o.ENTITIES[$],fe=typeof Z=="number"?String.fromCharCode(Z):Z;o.ENTITIES[$]=fe});for(var ie in o.STATE)o.STATE[o.STATE[ie]]=ie;z=o.STATE;function ce($,Z,fe){$[Z]&&$[Z](fe)}function ue($,Z,fe){$.textNode&&xe($),ce($,Z,fe)}function xe($){$.textNode=Te($.opt,$.textNode),$.textNode&&ce($,"ontext",$.textNode),$.textNode=""}function Te($,Z){return $.trim&&(Z=Z.trim()),$.normalize&&(Z=Z.replace(/\s+/g," ")),Z}function de($,Z){return xe($),$.trackPosition&&(Z+=`
Line: `+$.line+`
Column: `+$.column+`
Char: `+$.c),Z=new Error(Z),$.error=Z,ce($,"onerror",Z),$}function ve($){return $.sawRoot&&!$.closedRoot&&_e($,"Unclosed root tag"),$.state!==z.BEGIN&&$.state!==z.BEGIN_WHITESPACE&&$.state!==z.TEXT&&de($,"Unexpected end"),xe($),$.c="",$.closed=!0,ce($,"onend"),d.call($,$.strict,$.opt),$}function _e($,Z){if((typeof $=="undefined"?"undefined":(0,O.default)($))!=="object"||!($ instanceof d))throw new Error("bad call to strictFail");$.strict&&de($,Z)}function le($){$.strict||($.tagName=$.tagName[$.looseCase]());var Z=$.tags[$.tags.length-1]||$,fe=$.tag={name:$.tagName,attributes:{}};$.opt.xmlns&&(fe.ns=Z.ns),$.attribList.length=0,ue($,"onopentagstart",fe)}function ee($,Z){var fe=$.indexOf(":"),me=fe<0?["",$]:$.split(":"),Oe=me[0],He=me[1];return Z&&$==="xmlns"&&(Oe="xmlns",He=""),{prefix:Oe,local:He}}function U($){if($.strict||($.attribName=$.attribName[$.looseCase]()),$.attribList.indexOf($.attribName)!==-1||$.tag.attributes.hasOwnProperty($.attribName)){$.attribName=$.attribValue="";return}if($.opt.xmlns){var Z=ee($.attribName,!0),fe=Z.prefix,me=Z.local;if(fe==="xmlns")if(me==="xml"&&$.attribValue!==S)_e($,"xml: prefix must be bound to "+S+`
Actual: `+$.attribValue);else if(me==="xmlns"&&$.attribValue!==_)_e($,"xmlns: prefix must be bound to "+_+`
Actual: `+$.attribValue);else{var Oe=$.tag,He=$.tags[$.tags.length-1]||$;Oe.ns===He.ns&&(Oe.ns=(0,n.default)(He.ns)),Oe.ns[me]=$.attribValue}$.attribList.push([$.attribName,$.attribValue])}else $.tag.attributes[$.attribName]=$.attribValue,ue($,"onattribute",{name:$.attribName,value:$.attribValue});$.attribName=$.attribValue=""}function K($,Z){if($.opt.xmlns){var fe=$.tag,me=ee($.tagName);fe.prefix=me.prefix,fe.local=me.local,fe.uri=fe.ns[me.prefix]||"",fe.prefix&&!fe.uri&&(_e($,"Unbound namespace prefix: "+(0,m.default)($.tagName)),fe.uri=me.prefix);var Oe=$.tags[$.tags.length-1]||$;fe.ns&&Oe.ns!==fe.ns&&(0,r.default)(fe.ns).forEach(function(Ce){ue($,"onopennamespace",{prefix:Ce,uri:fe.ns[Ce]})});for(var He=0,Qe=$.attribList.length;He<Qe;He++){var ot=$.attribList[He],st=ot[0],ct=ot[1],dt=ee(st,!0),Xe=dt.prefix,ke=dt.local,lt=Xe===""?"":fe.ns[Xe]||"",Mt={name:st,value:ct,prefix:Xe,local:ke,uri:lt};Xe&&Xe!=="xmlns"&&!lt&&(_e($,"Unbound namespace prefix: "+(0,m.default)(Xe)),Mt.uri=Xe),$.tag.attributes[st]=Mt,ue($,"onattribute",Mt)}$.attribList.length=0}$.tag.isSelfClosing=!!Z,$.sawRoot=!0,$.tags.push($.tag),ue($,"onopentag",$.tag),Z||(!$.noscript&&$.tagName.toLowerCase()==="script"?$.state=z.SCRIPT:$.state=z.TEXT,$.tag=null,$.tagName=""),$.attribName=$.attribValue="",$.attribList.length=0}function X($){if(!$.tagName){_e($,"Weird empty close tag."),$.textNode+="</>",$.state=z.TEXT;return}if($.script){if($.tagName!=="script"){$.script+="</"+$.tagName+">",$.tagName="",$.state=z.SCRIPT;return}ue($,"onscript",$.script),$.script=""}var Z=$.tags.length,fe=$.tagName;$.strict||(fe=fe[$.looseCase]());for(var me=fe;Z--;){var Oe=$.tags[Z];if(Oe.name!==me)_e($,"Unexpected close tag");else break}if(Z<0){_e($,"Unmatched closing tag: "+$.tagName),$.textNode+="</"+$.tagName+">",$.state=z.TEXT;return}$.tagName=fe;for(var He=$.tags.length;He-- >Z;){var Qe=$.tag=$.tags.pop();$.tagName=$.tag.name,ue($,"onclosetag",$.tagName);var ot={};for(var st in Qe.ns)ot[st]=Qe.ns[st];var ct=$.tags[$.tags.length-1]||$;$.opt.xmlns&&Qe.ns!==ct.ns&&(0,r.default)(Qe.ns).forEach(function(dt){var Xe=Qe.ns[dt];ue($,"onclosenamespace",{prefix:dt,uri:Xe})})}Z===0&&($.closedRoot=!0),$.tagName=$.attribValue=$.attribName="",$.attribList.length=0,$.state=z.TEXT}function Q($){var Z=$.entity,fe=Z.toLowerCase(),me,Oe="";return $.ENTITIES[Z]?$.ENTITIES[Z]:$.ENTITIES[fe]?$.ENTITIES[fe]:(Z=fe,Z.charAt(0)==="#"&&(Z.charAt(1)==="x"?(Z=Z.slice(2),me=parseInt(Z,16),Oe=me.toString(16)):(Z=Z.slice(1),me=parseInt(Z,10),Oe=me.toString(10))),Z=Z.replace(/^0+/,""),isNaN(me)||Oe.toLowerCase()!==Z?(_e($,"Invalid character entity"),"&"+$.entity+";"):(0,T.default)(me))}function te($,Z){Z==="<"?($.state=z.OPEN_WAKA,$.startTagPosition=$.position):G(Z)||(_e($,"Non-whitespace before first tag."),$.textNode=Z,$.state=z.TEXT)}function ae($,Z){var fe="";return Z<$.length&&(fe=$.charAt(Z)),fe}function re($){var Z=this;if(this.error)throw this.error;if(Z.closed)return de(Z,"Cannot write after close. Assign an onready handler.");if($===null)return ve(Z);(typeof $=="undefined"?"undefined":(0,O.default)($))==="object"&&($=$.toString());for(var fe=0,me="";!(me=ae($,fe++),Z.c=me,!me);){Z.trackPosition&&(Z.position++,me===`
`?(Z.line++,Z.column=0):Z.column++);switch(Z.state){case z.BEGIN:if(Z.state=z.BEGIN_WHITESPACE,me==="\uFEFF")continue;te(Z,me);continue;case z.BEGIN_WHITESPACE:te(Z,me);continue;case z.TEXT:if(Z.sawRoot&&!Z.closedRoot){for(var Oe=fe-1;me&&me!=="<"&&me!=="&";)me=ae($,fe++),me&&Z.trackPosition&&(Z.position++,me===`
`?(Z.line++,Z.column=0):Z.column++);Z.textNode+=$.substring(Oe,fe-1)}me==="<"&&!(Z.sawRoot&&Z.closedRoot&&!Z.strict)?(Z.state=z.OPEN_WAKA,Z.startTagPosition=Z.position):(!G(me)&&(!Z.sawRoot||Z.closedRoot)&&_e(Z,"Text data outside of root node."),me==="&"?Z.state=z.TEXT_ENTITY:Z.textNode+=me);continue;case z.SCRIPT:me==="<"?Z.state=z.SCRIPT_ENDING:Z.script+=me;continue;case z.SCRIPT_ENDING:me==="/"?Z.state=z.CLOSE_TAG:(Z.script+="<"+me,Z.state=z.SCRIPT);continue;case z.OPEN_WAKA:if(me==="!")Z.state=z.SGML_DECL,Z.sgmlDecl="";else if(!G(me))if(W(j,me))Z.state=z.OPEN_TAG,Z.tagName=me;else if(me==="/")Z.state=z.CLOSE_TAG,Z.tagName="";else if(me==="?")Z.state=z.PROC_INST,Z.procInstName=Z.procInstBody="";else{if(_e(Z,"Unencoded <"),Z.startTagPosition+1<Z.position){var He=Z.position-Z.startTagPosition;me=new Array(He).join(" ")+me}Z.textNode+="<"+me,Z.state=z.TEXT}continue;case z.SGML_DECL:(Z.sgmlDecl+me).toUpperCase()===R?(ue(Z,"onopencdata"),Z.state=z.CDATA,Z.sgmlDecl="",Z.cdata=""):Z.sgmlDecl+me==="--"?(Z.state=z.COMMENT,Z.comment="",Z.sgmlDecl=""):(Z.sgmlDecl+me).toUpperCase()===C?(Z.state=z.DOCTYPE,(Z.doctype||Z.sawRoot)&&_e(Z,"Inappropriately located doctype declaration"),Z.doctype="",Z.sgmlDecl=""):me===">"?(ue(Z,"onsgmldeclaration",Z.sgmlDecl),Z.sgmlDecl="",Z.state=z.TEXT):(D(me)&&(Z.state=z.SGML_DECL_QUOTED),Z.sgmlDecl+=me);continue;case z.SGML_DECL_QUOTED:me===Z.q&&(Z.state=z.SGML_DECL,Z.q=""),Z.sgmlDecl+=me;continue;case z.DOCTYPE:me===">"?(Z.state=z.TEXT,ue(Z,"ondoctype",Z.doctype),Z.doctype=!0):(Z.doctype+=me,me==="["?Z.state=z.DOCTYPE_DTD:D(me)&&(Z.state=z.DOCTYPE_QUOTED,Z.q=me));continue;case z.DOCTYPE_QUOTED:Z.doctype+=me,me===Z.q&&(Z.q="",Z.state=z.DOCTYPE);continue;case z.DOCTYPE_DTD:Z.doctype+=me,me==="]"?Z.state=z.DOCTYPE:D(me)&&(Z.state=z.DOCTYPE_DTD_QUOTED,Z.q=me);continue;case z.DOCTYPE_DTD_QUOTED:Z.doctype+=me,me===Z.q&&(Z.state=z.DOCTYPE_DTD,Z.q="");continue;case z.COMMENT:me==="-"?Z.state=z.COMMENT_ENDING:Z.comment+=me;continue;case z.COMMENT_ENDING:me==="-"?(Z.state=z.COMMENT_ENDED,Z.comment=Te(Z.opt,Z.comment),Z.comment&&ue(Z,"oncomment",Z.comment),Z.comment=""):(Z.comment+="-"+me,Z.state=z.COMMENT);continue;case z.COMMENT_ENDED:me!==">"?(_e(Z,"Malformed comment"),Z.comment+="--"+me,Z.state=z.COMMENT):Z.state=z.TEXT;continue;case z.CDATA:me==="]"?Z.state=z.CDATA_ENDING:Z.cdata+=me;continue;case z.CDATA_ENDING:me==="]"?Z.state=z.CDATA_ENDING_2:(Z.cdata+="]"+me,Z.state=z.CDATA);continue;case z.CDATA_ENDING_2:me===">"?(Z.cdata&&ue(Z,"oncdata",Z.cdata),ue(Z,"onclosecdata"),Z.cdata="",Z.state=z.TEXT):me==="]"?Z.cdata+="]":(Z.cdata+="]]"+me,Z.state=z.CDATA);continue;case z.PROC_INST:me==="?"?Z.state=z.PROC_INST_ENDING:G(me)?Z.state=z.PROC_INST_BODY:Z.procInstName+=me;continue;case z.PROC_INST_BODY:if(!Z.procInstBody&&G(me))continue;me==="?"?Z.state=z.PROC_INST_ENDING:Z.procInstBody+=me;continue;case z.PROC_INST_ENDING:me===">"?(ue(Z,"onprocessinginstruction",{name:Z.procInstName,body:Z.procInstBody}),Z.procInstName=Z.procInstBody="",Z.state=z.TEXT):(Z.procInstBody+="?"+me,Z.state=z.PROC_INST_BODY);continue;case z.OPEN_TAG:W(I,me)?Z.tagName+=me:(le(Z),me===">"?K(Z):me==="/"?Z.state=z.OPEN_TAG_SLASH:(G(me)||_e(Z,"Invalid character in tag name"),Z.state=z.ATTRIB));continue;case z.OPEN_TAG_SLASH:me===">"?(K(Z,!0),X(Z)):(_e(Z,"Forward-slash in opening tag not followed by >"),Z.state=z.ATTRIB);continue;case z.ATTRIB:if(G(me))continue;me===">"?K(Z):me==="/"?Z.state=z.OPEN_TAG_SLASH:W(j,me)?(Z.attribName=me,Z.attribValue="",Z.state=z.ATTRIB_NAME):_e(Z,"Invalid attribute name");continue;case z.ATTRIB_NAME:me==="="?Z.state=z.ATTRIB_VALUE:me===">"?(_e(Z,"Attribute without value"),Z.attribValue=Z.attribName,U(Z),K(Z)):G(me)?Z.state=z.ATTRIB_NAME_SAW_WHITE:W(I,me)?Z.attribName+=me:_e(Z,"Invalid attribute name");continue;case z.ATTRIB_NAME_SAW_WHITE:if(me==="=")Z.state=z.ATTRIB_VALUE;else{if(G(me))continue;_e(Z,"Attribute without value"),Z.tag.attributes[Z.attribName]="",Z.attribValue="",ue(Z,"onattribute",{name:Z.attribName,value:""}),Z.attribName="",me===">"?K(Z):W(j,me)?(Z.attribName=me,Z.state=z.ATTRIB_NAME):(_e(Z,"Invalid attribute name"),Z.state=z.ATTRIB)}continue;case z.ATTRIB_VALUE:if(G(me))continue;D(me)?(Z.q=me,Z.state=z.ATTRIB_VALUE_QUOTED):(_e(Z,"Unquoted attribute value"),Z.state=z.ATTRIB_VALUE_UNQUOTED,Z.attribValue=me);continue;case z.ATTRIB_VALUE_QUOTED:if(me!==Z.q){me==="&"?Z.state=z.ATTRIB_VALUE_ENTITY_Q:Z.attribValue+=me;continue}U(Z),Z.q="",Z.state=z.ATTRIB_VALUE_CLOSED;continue;case z.ATTRIB_VALUE_CLOSED:G(me)?Z.state=z.ATTRIB:me===">"?K(Z):me==="/"?Z.state=z.OPEN_TAG_SLASH:W(j,me)?(_e(Z,"No whitespace between attributes"),Z.attribName=me,Z.attribValue="",Z.state=z.ATTRIB_NAME):_e(Z,"Invalid attribute name");continue;case z.ATTRIB_VALUE_UNQUOTED:if(!H(me)){me==="&"?Z.state=z.ATTRIB_VALUE_ENTITY_U:Z.attribValue+=me;continue}U(Z),me===">"?K(Z):Z.state=z.ATTRIB;continue;case z.CLOSE_TAG:if(Z.tagName)me===">"?X(Z):W(I,me)?Z.tagName+=me:Z.script?(Z.script+="</"+Z.tagName,Z.tagName="",Z.state=z.SCRIPT):(G(me)||_e(Z,"Invalid tagname in closing tag"),Z.state=z.CLOSE_TAG_SAW_WHITE);else{if(G(me))continue;L(j,me)?Z.script?(Z.script+="</"+me,Z.state=z.SCRIPT):_e(Z,"Invalid tagname in closing tag."):Z.tagName=me}continue;case z.CLOSE_TAG_SAW_WHITE:if(G(me))continue;me===">"?X(Z):_e(Z,"Invalid characters in closing tag");continue;case z.TEXT_ENTITY:case z.ATTRIB_VALUE_ENTITY_Q:case z.ATTRIB_VALUE_ENTITY_U:var Qe,ot;switch(Z.state){case z.TEXT_ENTITY:Qe=z.TEXT,ot="textNode";break;case z.ATTRIB_VALUE_ENTITY_Q:Qe=z.ATTRIB_VALUE_QUOTED,ot="attribValue";break;case z.ATTRIB_VALUE_ENTITY_U:Qe=z.ATTRIB_VALUE_UNQUOTED,ot="attribValue";break}me===";"?(Z[ot]+=Q(Z),Z.entity="",Z.state=Qe):W(Z.entity.length?J:k,me)?Z.entity+=me:(_e(Z,"Invalid character in entity name"),Z[ot]+="&"+Z.entity+me,Z.entity="",Z.state=Qe);continue;default:throw new Error(Z,"Unknown state: "+Z.state)}}return Z.position>=Z.bufferCheckPosition&&h(Z),Z}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var $=String.fromCharCode,Z=Math.floor,fe=function(){var Oe=16384,He=[],Qe,ot,st=-1,ct=arguments.length;if(!ct)return"";for(var dt="";++st<ct;){var Xe=Number(arguments[st]);if(!isFinite(Xe)||Xe<0||Xe>1114111||Z(Xe)!==Xe)throw RangeError("Invalid code point: "+Xe);Xe<=65535?He.push(Xe):(Xe-=65536,Qe=(Xe>>10)+55296,ot=Xe%1024+56320,He.push(Qe,ot)),(st+1===ct||He.length>Oe)&&(dt+=$.apply(null,He),He.length=0)}return dt};e.default?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof i=="undefined"?(void 0).sax={}:i)}).call(this,N("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(N,Y,i){Y.exports=T;var M=N("events").EventEmitter,E=N("inherits");E(T,M),T.Readable=N("readable-stream/readable.js"),T.Writable=N("readable-stream/writable.js"),T.Duplex=N("readable-stream/duplex.js"),T.Transform=N("readable-stream/transform.js"),T.PassThrough=N("readable-stream/passthrough.js"),T.Stream=T;function T(){M.call(this)}T.prototype.pipe=function(v,m){var y=this;function O(a){v.writable&&(v.write(a)===!1&&y.pause&&y.pause())}y.on("data",O);function g(){y.readable&&y.resume&&y.resume()}v.on("drain",g),!v._isStdio&&(!m||m.end!==!1)&&(y.on("end",f),y.on("close",r));var e=!1;function f(){if(e)return;e=!0,v.end()}function r(){if(e)return;e=!0,typeof v.destroy=="function"&&v.destroy()}function c(a){if(n(),M.listenerCount(this,"error")===0)throw a}y.on("error",c),v.on("error",c);function n(){y.removeListener("data",O),v.removeListener("drain",g),y.removeListener("end",f),y.removeListener("close",r),y.removeListener("error",c),v.removeListener("error",c),y.removeListener("end",n),y.removeListener("close",n),v.removeListener("close",n)}return y.on("end",n),y.on("close",n),v.on("close",n),v.emit("pipe",y),v}},{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(N,Y,i){(function(M){var E=N("./lib/request"),T=N("./lib/response"),v=N("xtend"),m=N("builtin-status-codes"),y=N("url"),O=i;O.request=function(g,e){typeof g=="string"?g=y.parse(g):g=v(g);var f=M.location.protocol.search(/^https?:$/)===-1?"http:":"",r=g.protocol||f,c=g.hostname||g.host,n=g.port,a=g.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),g.url=(c?r+"//"+c:"")+(n?":"+n:"")+a,g.method=(g.method||"GET").toUpperCase(),g.headers=g.headers||{};var o=new E(g);return e&&o.on("response",e),o},O.get=function(e,f){var r=O.request(e,f);return r.end(),r},O.ClientRequest=E,O.IncomingMessage=T.IncomingMessage,O.Agent=function(){},O.Agent.defaultMaxSockets=4,O.globalAgent=new O.Agent,O.STATUS_CODES=m,O.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(N,Y,i){(function(M){"use strict";i.fetch=O(M.fetch)&&O(M.ReadableStream),i.writableStream=O(M.WritableStream),i.abortController=O(M.AbortController),i.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),i.blobConstructor=!0}catch(g){}var E;function T(){if(E!==void 0)return E;if(M.XMLHttpRequest){E=new M.XMLHttpRequest;try{E.open("GET",M.XDomainRequest?"/":"https://example.com")}catch(g){E=null}}else E=null;return E}function v(g){var e=T();if(!e)return!1;try{return e.responseType=g,e.responseType===g}catch(f){}return!1}var m=typeof M.ArrayBuffer!="undefined",y=m&&O(M.ArrayBuffer.prototype.slice);i.arraybuffer=i.fetch||m&&v("arraybuffer"),i.msstream=!i.fetch&&y&&v("ms-stream"),i.mozchunkedarraybuffer=!i.fetch&&m&&v("moz-chunked-arraybuffer"),i.overrideMimeType=i.fetch||(T()?O(T().overrideMimeType):!1),i.vbArray=O(M.VBArray);function O(g){return typeof g=="function"}E=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(N,Y,i){(function(M,E,T){"use strict";var v=N("babel-runtime/core-js/object/keys"),m=y(v);function y(h){return h&&h.__esModule?h:{default:h}}var O=N("./capability"),g=N("inherits"),e=N("./response"),f=N("readable-stream"),r=N("to-arraybuffer"),c=e.IncomingMessage,n=e.readyStates;function a(h,s){return O.fetch&&s?"fetch":O.mozchunkedarraybuffer?"moz-chunked-arraybuffer":O.msstream?"ms-stream":O.arraybuffer&&h?"arraybuffer":O.vbArray&&h?"text:vbarray":"text"}var o=Y.exports=function(h){var s=this;f.Writable.call(s),s._opts=h,s._body=[],s._headers={},h.auth&&s.setHeader("Authorization","Basic "+new T(h.auth).toString("base64")),(0,m.default)(h.headers).forEach(function(x){s.setHeader(x,h.headers[x])});var u,w=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!O.abortController)w=!1,u=!0;else if(h.mode==="prefer-streaming")u=!1;else if(h.mode==="allow-wrong-content-type")u=!O.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")u=!0;else throw new Error("Invalid value for opts.mode");s._mode=a(u,w),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};g(o,f.Writable),o.prototype.setHeader=function(h,s){var u=this,w=h.toLowerCase();if(d.indexOf(w)!==-1)return;u._headers[w]={name:h,value:s}},o.prototype.getHeader=function(h){var s=this._headers[h.toLowerCase()];return s?s.value:null},o.prototype.removeHeader=function(h){var s=this;delete s._headers[h.toLowerCase()]},o.prototype._onFinish=function(){var h=this;if(h._destroyed)return;var s=h._opts,u=h._headers,w=null;s.method!=="GET"&&s.method!=="HEAD"&&(O.arraybuffer?w=r(T.concat(h._body)):O.blobConstructor?w=new E.Blob(h._body.map(function(S){return r(S)}),{type:(u["content-type"]||{}).value||""}):w=T.concat(h._body).toString());var x=[];if((0,m.default)(u).forEach(function(S){var _=u[S].name,A=u[S].value;Array.isArray(A)?A.forEach(function(j){x.push([_,j])}):x.push([_,A])}),h._mode==="fetch"){var b=null,P=null;if(O.abortController){var R=new AbortController;b=R.signal,h._fetchAbortController=R,"requestTimeout"in s&&s.requestTimeout!==0&&(h._fetchTimer=E.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},s.requestTimeout))}E.fetch(h._opts.url,{method:h._opts.method,headers:x,body:w||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:b}).then(function(S){h._fetchResponse=S,h._connect()},function(S){E.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",S)})}else{var C=h._xhr=new E.XMLHttpRequest;try{C.open(h._opts.method,h._opts.url,!0)}catch(S){M.nextTick(function(){h.emit("error",S)});return}"responseType"in C&&(C.responseType=h._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!s.withCredentials),h._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in s&&(C.timeout=s.requestTimeout,C.ontimeout=function(){h.emit("requestTimeout")}),x.forEach(function(S){C.setRequestHeader(S[0],S[1])}),h._response=null,C.onreadystatechange=function(){switch(C.readyState){case n.LOADING:case n.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){h._onXHRProgress()}),C.onerror=function(){if(h._destroyed)return;h.emit("error",new Error("XHR error"))};try{C.send(w)}catch(S){M.nextTick(function(){h.emit("error",S)});return}}};function l(h){try{var s=h.status;return s!==null&&s!==0}catch(u){return!1}}o.prototype._onXHRProgress=function(){var h=this;if(!l(h._xhr)||h._destroyed)return;h._response||h._connect(),h._response._onXHRProgress()},o.prototype._connect=function(){var h=this;if(h._destroyed)return;h._response=new c(h._xhr,h._fetchResponse,h._mode,h._fetchTimer),h._response.on("error",function(s){h.emit("error",s)}),h.emit("response",h._response)},o.prototype._write=function(h,s,u){var w=this;w._body.push(h),u()},o.prototype.abort=o.prototype.destroy=function(){var h=this;h._destroyed=!0,E.clearTimeout(h._fetchTimer),h._response&&(h._response._destroyed=!0),h._xhr?h._xhr.abort():h._fetchAbortController&&h._fetchAbortController.abort()},o.prototype.end=function(h,s,u){var w=this;typeof h=="function"&&(u=h,h=void 0),f.Writable.prototype.end.call(w,h,s,u)},o.prototype.flushHeaders=function(){},o.prototype.setTimeout=function(){},o.prototype.setNoDelay=function(){},o.prototype.setSocketKeepAlive=function(){};var d=["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,N("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},N("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(N,Y,i){(function(M,E,T){"use strict";var v=N("babel-runtime/core-js/promise"),m=y(v);function y(c){return c&&c.__esModule?c:{default:c}}var O=N("./capability"),g=N("inherits"),e=N("readable-stream"),f=i.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=i.IncomingMessage=function(c,n,a,o){var l=this;if(e.Readable.call(l),l._mode=a,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){M.nextTick(function(){l.emit("close")})}),a==="fetch"){var d=function b(){s.read().then(function(P){if(l._destroyed)return;if(P.done){E.clearTimeout(o),l.push(null);return}l.push(new T(P.value)),b()}).catch(function(P){E.clearTimeout(o),l._destroyed||l.emit("error",P)})};if(l._fetchResponse=n,l.url=n.url,l.statusCode=n.status,l.statusMessage=n.statusText,n.headers.forEach(function(b,P){l.headers[P.toLowerCase()]=b,l.rawHeaders.push(P,b)}),O.writableStream){var h=new WritableStream({write:function(P){return new m.default(function(R,C){l._destroyed?C():l.push(new T(P))?R():l._resumeFetch=R})},close:function(){E.clearTimeout(o),l._destroyed||l.push(null)},abort:function(P){l._destroyed||l.emit("error",P)}});try{n.body.pipeTo(h).catch(function(b){E.clearTimeout(o),l._destroyed||l.emit("error",b)});return}catch(b){}}var s=n.body.getReader();d()}else{l._xhr=c,l._pos=0,l.url=c.responseURL,l.statusCode=c.status,l.statusMessage=c.statusText;var u=c.getAllResponseHeaders().split(/\r?\n/);if(u.forEach(function(b){var P=b.match(/^([^:]+):\s*(.*)/);if(P){var R=P[1].toLowerCase();R==="set-cookie"?(l.headers[R]===void 0&&(l.headers[R]=[]),l.headers[R].push(P[2])):l.headers[R]!==void 0?l.headers[R]+=", "+P[2]:l.headers[R]=P[2],l.rawHeaders.push(P[1],P[2])}}),l._charset="x-user-defined",!O.overrideMimeType){var w=l.rawHeaders["mime-type"];if(w){var x=w.match(/;\s*charset=([^;])(;|$)/);x&&(l._charset=x[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};g(r,e.Readable),r.prototype._read=function(){var c=this,n=c._resumeFetch;n&&(c._resumeFetch=null,n())},r.prototype._onXHRProgress=function(){var c=this,n=c._xhr,a=null;switch(c._mode){case"text:vbarray":if(n.readyState!==f.DONE)break;try{a=new E.VBArray(n.responseBody).toArray()}catch(s){}if(a!==null){c.push(new T(a));break}case"text":try{a=n.responseText}catch(s){c._mode="text:vbarray";break}if(a.length>c._pos){var o=a.substr(c._pos);if(c._charset==="x-user-defined"){for(var l=new T(o.length),d=0;d<o.length;d++)l[d]=o.charCodeAt(d)&255;c.push(l)}else c.push(o,c._charset);c._pos=a.length}break;case"arraybuffer":if(n.readyState!==f.DONE||!n.response)break;a=n.response,c.push(new T(new Uint8Array(a)));break;case"moz-chunked-arraybuffer":if(a=n.response,n.readyState!==f.LOADING||!a)break;c.push(new T(new Uint8Array(a)));break;case"ms-stream":if(a=n.response,n.readyState!==f.LOADING)break;var h=new E.MSStreamReader;h.onprogress=function(){h.result.byteLength>c._pos&&(c.push(new T(new Uint8Array(h.result.slice(c._pos)))),c._pos=h.result.byteLength)},h.onload=function(){c.push(null)},h.readAsArrayBuffer(a);break}c._xhr.readyState===f.DONE&&c._mode!=="ms-stream"&&c.push(null)}}).call(this,N("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},N("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(N,Y,i){"use strict";var M=N("safe-buffer").Buffer,E=M.isEncoding||function(h){h=""+h;switch(h&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(h){if(!h)return"utf8";for(var s;;)switch(h){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 h;default:if(s)return;h=(""+h).toLowerCase(),s=!0}}function v(h){var s=T(h);if(typeof s!="string"&&(M.isEncoding===E||!E(h)))throw new Error("Unknown encoding: "+h);return s||h}i.StringDecoder=m;function m(h){this.encoding=v(h);var s;switch(this.encoding){case"utf16le":this.text=c,this.end=n,s=4;break;case"utf8":this.fillLast=e,s=4;break;case"base64":this.text=a,this.end=o,s=3;break;default:this.write=l,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=M.allocUnsafe(s)}m.prototype.write=function(h){if(h.length===0)return"";var s,u;if(this.lastNeed){if(s=this.fillLast(h),s===void 0)return"";u=this.lastNeed,this.lastNeed=0}else u=0;return u<h.length?s?s+this.text(h,u):this.text(h,u):s||""},m.prototype.end=r,m.prototype.text=f,m.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function y(h){return h<=127?0:h>>5===6?2:h>>4===14?3:h>>3===30?4:h>>6===2?-1:-2}function O(h,s,u){var w=s.length-1;if(w<u)return 0;var x=y(s[w]);return x>=0?(x>0&&(h.lastNeed=x-1),x):--w<u||x===-2?0:(x=y(s[w]),x>=0?(x>0&&(h.lastNeed=x-2),x):--w<u||x===-2?0:(x=y(s[w]),x>=0?(x>0&&(x===2?x=0:h.lastNeed=x-3),x):0))}function g(h,s,u){if((s[0]&192)!==128)return h.lastNeed=0,"\uFFFD";if(h.lastNeed>1&&s.length>1){if((s[1]&192)!==128)return h.lastNeed=1,"\uFFFD";if(h.lastNeed>2&&s.length>2&&(s[2]&192)!==128)return h.lastNeed=2,"\uFFFD"}}function e(h){var s=this.lastTotal-this.lastNeed,u=g(this,h,s);if(u!==void 0)return u;if(this.lastNeed<=h.length)return h.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,s,0,h.length),this.lastNeed-=h.length}function f(h,s){var u=O(this,h,s);if(!this.lastNeed)return h.toString("utf8",s);this.lastTotal=u;var w=h.length-(u-this.lastNeed);return h.copy(this.lastChar,0,w),h.toString("utf8",s,w)}function r(h){var s=h&&h.length?this.write(h):"";return this.lastNeed?s+"\uFFFD":s}function c(h,s){if((h.length-s)%2===0){var u=h.toString("utf16le",s);if(u){var w=u.charCodeAt(u.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],u.slice(0,-1)}return u}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",s,h.length-1)}function n(h){var s=h&&h.length?this.write(h):"";if(this.lastNeed){var u=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,u)}return s}function a(h,s){var u=(h.length-s)%3;return u===0?h.toString("base64",s):(this.lastNeed=3-u,this.lastTotal=3,u===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",s,h.length-u))}function o(h){var s=h&&h.length?this.write(h):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function l(h){return h.toString(this.encoding)}function d(h){return h&&h.length?this.write(h):""}},{"safe-buffer":228}],236:[function(N,Y,i){(function(M,E){var T=N("process/browser.js").nextTick,v=Function.prototype.apply,m=Array.prototype.slice,y={},O=0;i.setTimeout=function(){return new g(v.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new g(v.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.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)},i.enroll=function(e,f){clearTimeout(e._idleTimeoutId),e._idleTimeout=f},i.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var f=e._idleTimeout;f>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},f))},i.setImmediate=typeof M=="function"?M:function(e){var f=O++,r=arguments.length<2?!1:m.call(arguments,1);return y[f]=!0,T(function(){y[f]&&(r?e.apply(null,r):e.call(null),i.clearImmediate(f))}),f},i.clearImmediate=typeof E=="function"?E:function(e){delete y[e]}}).call(this,N("timers").setImmediate,N("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(N,Y,i){var M=N("buffer").Buffer;Y.exports=function(E){if(E instanceof Uint8Array){if(E.byteOffset===0&&E.byteLength===E.buffer.byteLength)return E.buffer;if(typeof E.buffer.slice=="function")return E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength)}if(M.isBuffer(E)){for(var T=new Uint8Array(E.length),v=E.length,m=0;m<v;m++)T[m]=E[m];return T.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(N,Y,i){"use strict";var M=N("punycode"),E=N("./util");i.parse=s,i.resolve=w,i.resolveObject=x,i.format=u,i.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 v=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,O=["<",">",'"',"`"," ","\r",`
`," "],g=["{","}","|","\\","^","`"].concat(O),e=["'"].concat(g),f=["%","/","?",";","#"].concat(e),r=["/","?","#"],c=255,n=/^[+a-z0-9A-Z_-]{0,63}$/,a=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,o={javascript:!0,"javascript:":!0},l={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h=N("querystring");function s(b,P,R){if(b&&E.isObject(b)&&b instanceof T)return b;var C=new T;return C.parse(b,P,R),C}T.prototype.parse=function(b,P,R){if(!E.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var C=b.indexOf("?"),S=C!==-1&&C<b.indexOf("#")?"?":"#",_=b.split(S),A=/\\/g;_[0]=_[0].replace(A,"/"),b=_.join(S);var j=b;if(j=j.trim(),!R&&b.split("#").length===1){var I=y.exec(j);if(I)return this.path=j,this.href=j,this.pathname=I[1],I[2]?(this.search=I[2],P?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):P&&(this.search="",this.query={}),this}var k=v.exec(j);if(k){k=k[0];var J=k.toLowerCase();this.protocol=J,j=j.substr(k.length)}if(R||k||j.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=j.substr(0,2)==="//";G&&!(k&&l[k])&&(j=j.substr(2),this.slashes=!0)}if(!l[k]&&(G||k&&!d[k])){for(var D=-1,H=0;H<r.length;H++){var W=j.indexOf(r[H]);W!==-1&&(D===-1||W<D)&&(D=W)}var L,z;D===-1?z=j.lastIndexOf("@"):z=j.lastIndexOf("@",D),z!==-1&&(L=j.slice(0,z),j=j.slice(z+1),this.auth=decodeURIComponent(L)),D=-1;for(var H=0;H<f.length;H++){var W=j.indexOf(f[H]);W!==-1&&(D===-1||W<D)&&(D=W)}D===-1&&(D=j.length),this.host=j.slice(0,D),j=j.slice(D),this.parseHost(),this.hostname=this.hostname||"";var ie=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ie)for(var ce=this.hostname.split(/\./),H=0,ue=ce.length;H<ue;H++){var xe=ce[H];if(!xe)continue;if(!xe.match(n)){for(var Te="",de=0,ve=xe.length;de<ve;de++)xe.charCodeAt(de)>127?Te+="x":Te+=xe[de];if(!Te.match(n)){var _e=ce.slice(0,H),le=ce.slice(H+1),ee=xe.match(a);ee&&(_e.push(ee[1]),le.unshift(ee[2])),le.length&&(j="/"+le.join(".")+j),this.hostname=_e.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),ie||(this.hostname=M.toASCII(this.hostname));var U=this.port?":"+this.port:"",K=this.hostname||"";this.host=K+U,this.href+=this.host,ie&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),j[0]!=="/"&&(j="/"+j))}if(!o[J])for(var H=0,ue=e.length;H<ue;H++){var X=e[H];if(j.indexOf(X)===-1)continue;var Q=encodeURIComponent(X);Q===X&&(Q=escape(X)),j=j.split(X).join(Q)}var te=j.indexOf("#");te!==-1&&(this.hash=j.substr(te),j=j.slice(0,te));var ae=j.indexOf("?");if(ae!==-1?(this.search=j.substr(ae),this.query=j.substr(ae+1),P&&(this.query=h.parse(this.query)),j=j.slice(0,ae)):P&&(this.search="",this.query={}),j&&(this.pathname=j),d[J]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",re=this.search||"";this.path=U+re}return this.href=this.format(),this};function u(b){return E.isString(b)&&(b=s(b)),b instanceof T?b.format():T.prototype.format.call(b)}T.prototype.format=function(){var b=this.auth||"";b&&(b=encodeURIComponent(b),b=b.replace(/%3A/i,":"),b+="@");var P=this.protocol||"",R=this.pathname||"",C=this.hash||"",S=!1,_="";this.host?S=b+this.host:this.hostname&&(S=b+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&E.isObject(this.query)&&Object.keys(this.query).length&&(_=h.stringify(this.query));var A=this.search||_&&"?"+_||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||d[P])&&S!==!1?(S="//"+(S||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):S||(S=""),C&&C.charAt(0)!=="#"&&(C="#"+C),A&&A.charAt(0)!=="?"&&(A="?"+A),R=R.replace(/[?#]/g,function(j){return encodeURIComponent(j)}),A=A.replace("#","%23"),P+S+R+A+C};function w(b,P){return s(b,!1,!0).resolve(P)}T.prototype.resolve=function(b){return this.resolveObject(s(b,!1,!0)).format()};function x(b,P){return b?s(b,!1,!0).resolveObject(P):P}T.prototype.resolveObject=function(b){if(E.isString(b)){var P=new T;P.parse(b,!1,!0),b=P}for(var R=new T,C=Object.keys(this),S=0;S<C.length;S++){var _=C[S];R[_]=this[_]}if(R.hash=b.hash,b.href==="")return R.href=R.format(),R;if(b.slashes&&!b.protocol){for(var A=Object.keys(b),j=0;j<A.length;j++){var I=A[j];I!=="protocol"&&(R[I]=b[I])}return d[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(b.protocol&&b.protocol!==R.protocol){if(!d[b.protocol]){for(var k=Object.keys(b),J=0;J<k.length;J++){var G=k[J];R[G]=b[G]}return R.href=R.format(),R}if(R.protocol=b.protocol,!b.host&&!l[b.protocol]){for(var ue=(b.pathname||"").split("/");ue.length&&!(b.host=ue.shift()););b.host||(b.host=""),b.hostname||(b.hostname=""),ue[0]!==""&&ue.unshift(""),ue.length<2&&ue.unshift(""),R.pathname=ue.join("/")}else R.pathname=b.pathname;if(R.search=b.search,R.query=b.query,R.host=b.host||"",R.auth=b.auth,R.hostname=b.hostname||b.host,R.port=b.port,R.pathname||R.search){var D=R.pathname||"",H=R.search||"";R.path=D+H}return R.slashes=R.slashes||b.slashes,R.href=R.format(),R}var W=R.pathname&&R.pathname.charAt(0)==="/",L=b.host||b.pathname&&b.pathname.charAt(0)==="/",z=L||W||R.host&&b.pathname,ie=z,ce=R.pathname&&R.pathname.split("/")||[],ue=b.pathname&&b.pathname.split("/")||[],xe=R.protocol&&!d[R.protocol];if(xe&&(R.hostname="",R.port=null,R.host&&(ce[0]===""?ce[0]=R.host:ce.unshift(R.host)),R.host="",b.protocol&&(b.hostname=null,b.port=null,b.host&&(ue[0]===""?ue[0]=b.host:ue.unshift(b.host)),b.host=null),z=z&&(ue[0]===""||ce[0]==="")),L)R.host=b.host||b.host===""?b.host:R.host,R.hostname=b.hostname||b.hostname===""?b.hostname:R.hostname,R.search=b.search,R.query=b.query,ce=ue;else if(ue.length)ce||(ce=[]),ce.pop(),ce=ce.concat(ue),R.search=b.search,R.query=b.query;else if(!E.isNullOrUndefined(b.search)){if(xe){R.hostname=R.host=ce.shift();var Te=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Te&&(R.auth=Te.shift(),R.host=R.hostname=Te.shift())}return R.search=b.search,R.query=b.query,(!E.isNull(R.pathname)||!E.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!ce.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var de=ce.slice(-1)[0],ve=(R.host||b.host||ce.length>1)&&(de==="."||de==="..")||de==="",_e=0,le=ce.length;le>=0;le--)de=ce[le],de==="."?ce.splice(le,1):de===".."?(ce.splice(le,1),_e++):_e&&(ce.splice(le,1),_e--);if(!z&&!ie)for(;_e--;_e)ce.unshift("..");z&&ce[0]!==""&&(!ce[0]||ce[0].charAt(0)!=="/")&&ce.unshift(""),ve&&ce.join("/").substr(-1)!=="/"&&ce.push("");var ee=ce[0]===""||ce[0]&&ce[0].charAt(0)==="/";if(xe){R.hostname=R.host=ee?"":ce.length?ce.shift():"";var Te=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;Te&&(R.auth=Te.shift(),R.host=R.hostname=Te.shift())}return z=z||R.host&&ce.length,z&&!ee&&ce.unshift(""),ce.length?R.pathname=ce.join("/"):(R.pathname=null,R.path=null),(!E.isNull(R.pathname)||!E.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=b.auth||R.auth,R.slashes=R.slashes||b.slashes,R.href=R.format(),R},T.prototype.parseHost=function(){var b=this.host,P=m.exec(b);P&&(P=P[0],P!==":"&&(this.port=P.substr(1)),b=b.substr(0,b.length-P.length)),b&&(this.hostname=b)}},{"./util":239,punycode:209,querystring:212}],239:[function(N,Y,i){"use strict";Y.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(N,Y,i){(function(M){Y.exports=E;function E(v,m){if(T("noDeprecation"))return v;var y=!1;function O(){if(!y){if(T("throwDeprecation"))throw new Error(m);T("traceDeprecation")?console.trace(m):console.warn(m),y=!0}return v.apply(this,arguments)}return O}function T(v){try{if(!M.localStorage)return!1}catch(y){return!1}var m=M.localStorage[v];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(N,Y,i){typeof Object.create=="function"?Y.exports=function(E,T){E.super_=T,E.prototype=Object.create(T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:Y.exports=function(E,T){E.super_=T;var v=function(){};v.prototype=T.prototype,E.prototype=new v,E.prototype.constructor=E}},{}],242:[function(N,Y,i){Y.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],243:[function(N,Y,i){(function(M,E){var T=/%[sdj%]/g;i.format=function(D){if(!w(D)){for(var H=[],W=0;W<arguments.length;W++)H.push(y(arguments[W]));return H.join(" ")}for(var W=1,L=arguments,z=L.length,ie=String(D).replace(T,function(ue){if(ue==="%%")return"%";if(W>=z)return ue;switch(ue){case"%s":return String(L[W++]);case"%d":return Number(L[W++]);case"%j":try{return JSON.stringify(L[W++])}catch(xe){return"[Circular]"}default:return ue}}),ce=L[W];W<z;ce=L[++W])h(ce)||!R(ce)?ie+=" "+ce:ie+=" "+y(ce);return ie},i.deprecate=function(D,H){if(b(E.process))return function(){return i.deprecate(D,H).apply(this,arguments)};if(M.noDeprecation===!0)return D;var W=!1;function L(){if(!W){if(M.throwDeprecation)throw new Error(H);M.traceDeprecation?console.trace(H):console.error(H),W=!0}return D.apply(this,arguments)}return L};var v={},m;i.debuglog=function(D){if(b(m)&&(m=M.env.NODE_DEBUG||""),D=D.toUpperCase(),!v[D])if(new RegExp("\\b"+D+"\\b","i").test(m)){var H=M.pid;v[D]=function(){var W=i.format.apply(i,arguments);console.error("%s %d: %s",D,H,W)}}else v[D]=function(){};return v[D]};function y(D,H){var W={seen:[],stylize:g};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),d(H)?W.showHidden=H:H&&i._extend(W,H),b(W.showHidden)&&(W.showHidden=!1),b(W.depth)&&(W.depth=2),b(W.colors)&&(W.colors=!1),b(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=O),f(W,D,W.depth)}i.inspect=y,y.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]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function O(D,H){var W=y.styles[H];return W?"["+y.colors[W][0]+"m"+D+"["+y.colors[W][1]+"m":D}function g(D,H){return D}function e(D){var H={};return D.forEach(function(W,L){H[W]=!0}),H}function f(D,H,W){if(D.customInspect&&H&&_(H.inspect)&&H.inspect!==i.inspect&&!(H.constructor&&H.constructor.prototype===H)){var L=H.inspect(W,D);return w(L)||(L=f(D,L,W)),L}var z=r(D,H);if(z)return z;var ie=Object.keys(H),ce=e(ie);if(D.showHidden&&(ie=Object.getOwnPropertyNames(H)),S(H)&&(ie.indexOf("message")>=0||ie.indexOf("description")>=0))return c(H);if(ie.length===0){if(_(H)){var ue=H.name?": "+H.name:"";return D.stylize("[Function"+ue+"]","special")}if(P(H))return D.stylize(RegExp.prototype.toString.call(H),"regexp");if(C(H))return D.stylize(Date.prototype.toString.call(H),"date");if(S(H))return c(H)}var xe="",Te=!1,de=["{","}"];if(l(H)&&(Te=!0,de=["[","]"]),_(H)){var ve=H.name?": "+H.name:"";xe=" [Function"+ve+"]"}if(P(H)&&(xe=" "+RegExp.prototype.toString.call(H)),C(H)&&(xe=" "+Date.prototype.toUTCString.call(H)),S(H)&&(xe=" "+c(H)),ie.length===0&&(!Te||H.length==0))return de[0]+xe+de[1];if(W<0)return P(H)?D.stylize(RegExp.prototype.toString.call(H),"regexp"):D.stylize("[Object]","special");D.seen.push(H);var _e;return Te?_e=n(D,H,W,ce,ie):_e=ie.map(function(le){return a(D,H,W,ce,le,Te)}),D.seen.pop(),o(_e,xe,de)}function r(D,H){if(b(H))return D.stylize("undefined","undefined");if(w(H)){var W="'"+JSON.stringify(H).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(W,"string")}if(u(H))return D.stylize(""+H,"number");if(d(H))return D.stylize(""+H,"boolean");if(h(H))return D.stylize("null","null")}function c(D){return"["+Error.prototype.toString.call(D)+"]"}function n(D,H,W,L,z){for(var ie=[],ce=0,ue=H.length;ce<ue;++ce)G(H,String(ce))?ie.push(a(D,H,W,L,String(ce),!0)):ie.push("");return z.forEach(function(xe){xe.match(/^\d+$/)||ie.push(a(D,H,W,L,xe,!0))}),ie}function a(D,H,W,L,z,ie){var ce,ue,xe;if(xe=Object.getOwnPropertyDescriptor(H,z)||{value:H[z]},xe.get?xe.set?ue=D.stylize("[Getter/Setter]","special"):ue=D.stylize("[Getter]","special"):xe.set&&(ue=D.stylize("[Setter]","special")),G(L,z)||(ce="["+z+"]"),ue||(D.seen.indexOf(xe.value)<0?(h(W)?ue=f(D,xe.value,null):ue=f(D,xe.value,W-1),ue.indexOf(`
`)>-1&&(ie?ue=ue.split(`
`).map(function(Te){return" "+Te}).join(`
`).substr(2):ue=`
`+ue.split(`
`).map(function(Te){return" "+Te}).join(`
`))):ue=D.stylize("[Circular]","special")),b(ce)){if(ie&&z.match(/^\d+$/))return ue;ce=JSON.stringify(""+z),ce.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ce=ce.substr(1,ce.length-2),ce=D.stylize(ce,"name")):(ce=ce.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ce=D.stylize(ce,"string"))}return ce+": "+ue}function o(D,H,W){var L=0,z=D.reduce(function(ie,ce){return L++,ce.indexOf(`
`)>=0&&L++,ie+ce.replace(/\u001b\[\d\d?m/g,"").length+1},0);return z>60?W[0]+(H===""?"":H+`
`)+" "+D.join(`,
`)+" "+W[1]:W[0]+H+" "+D.join(", ")+" "+W[1]}function l(D){return Array.isArray(D)}i.isArray=l;function d(D){return typeof D=="boolean"}i.isBoolean=d;function h(D){return D===null}i.isNull=h;function s(D){return D==null}i.isNullOrUndefined=s;function u(D){return typeof D=="number"}i.isNumber=u;function w(D){return typeof D=="string"}i.isString=w;function x(D){return typeof D=="symbol"}i.isSymbol=x;function b(D){return D===void 0}i.isUndefined=b;function P(D){return R(D)&&j(D)==="[object RegExp]"}i.isRegExp=P;function R(D){return typeof D=="object"&&D!==null}i.isObject=R;function C(D){return R(D)&&j(D)==="[object Date]"}i.isDate=C;function S(D){return R(D)&&(j(D)==="[object Error]"||D instanceof Error)}i.isError=S;function _(D){return typeof D=="function"}i.isFunction=_;function A(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D=="undefined"}i.isPrimitive=A,i.isBuffer=N("./support/isBuffer");function j(D){return Object.prototype.toString.call(D)}function I(D){return D<10?"0"+D.toString(10):D.toString(10)}var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function J(){var D=new Date,H=[I(D.getHours()),I(D.getMinutes()),I(D.getSeconds())].join(":");return[D.getDate(),k[D.getMonth()],H].join(" ")}i.log=function(){console.log("%s - %s",J(),i.format.apply(i,arguments))},i.inherits=N("inherits"),i._extend=function(D,H){if(!H||!R(H))return D;for(var W=Object.keys(H),L=W.length;L--;)D[W[L]]=H[W[L]];return D};function G(D,H){return Object.prototype.hasOwnProperty.call(D,H)}}).call(this,N("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(N,Y,i){"use strict";(function(){"use strict";i.stripBOM=function(M){return M[0]==="\uFEFF"?M.substring(1):M}}).call(void 0)},{}],245:[function(N,Y,i){"use strict";var M=N("babel-runtime/helpers/typeof"),E=m(M),T=N("babel-runtime/core-js/object/keys"),v=m(T);function m(y){return y&&y.__esModule?y:{default:y}}(function(){"use strict";var y,O,g,e,f,r={}.hasOwnProperty;y=N("xmlbuilder"),O=N("./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[>")},i.Builder=function(){function c(n){var a,o,l;this.options={},o=O["0.2"];for(a in o){if(!r.call(o,a))continue;l=o[a],this.options[a]=l}for(a in n){if(!r.call(n,a))continue;l=n[a],this.options[a]=l}}return c.prototype.buildObject=function(n){var a,o,l,d,h;return a=this.options.attrkey,o=this.options.charkey,(0,v.default)(n).length===1&&this.options.rootName===O["0.2"].rootName?(h=(0,v.default)(n)[0],n=n[h]):h=this.options.rootName,l=function(s){return function(u,w){var x,b,P,R,C,S;if((typeof w=="undefined"?"undefined":(0,E.default)(w))!=="object")s.options.cdata&&e(w)?u.raw(f(w)):u.txt(w);else if(Array.isArray(w))for(R in w){if(!r.call(w,R))continue;b=w[R];for(C in b)P=b[C],u=l(u.ele(C),P).up()}else for(C in w){if(!r.call(w,C))continue;if(b=w[C],C===a){if((typeof b=="undefined"?"undefined":(0,E.default)(b))==="object")for(x in b)S=b[x],u=u.att(x,S)}else if(C===o)s.options.cdata&&e(b)?u=u.raw(f(b)):u=u.txt(b);else if(Array.isArray(b))for(R in b){if(!r.call(b,R))continue;P=b[R],typeof P=="string"?s.options.cdata&&e(P)?u=u.ele(C).raw(f(P)).up():u=u.ele(C,P).up():u=l(u.ele(C),P).up()}else(typeof b=="undefined"?"undefined":(0,E.default)(b))==="object"?u=l(u.ele(C),b).up():typeof b=="string"&&s.options.cdata&&e(b)?u=u.ele(C).raw(f(b)).up():(b==null&&(b=""),u=u.ele(C,b.toString()).up())}return u}}(this),d=y.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(d,n).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(N,Y,i){"use strict";(function(){i.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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/promise"),E=e(M),T=N("babel-runtime/core-js/object/get-own-property-names"),v=e(T),m=N("babel-runtime/core-js/object/keys"),y=e(m),O=N("babel-runtime/helpers/typeof"),g=e(O);function e(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,r,c,n,a,o,l,d,h=function(x,b){return function(){return x.apply(b,arguments)}},s=function(x,b){for(var P in b)u.call(b,P)&&(x[P]=b[P]);function R(){this.constructor=x}return R.prototype=b.prototype,x.prototype=new R,x.__super__=b.prototype,x},u={}.hasOwnProperty;l=N("sax"),c=N("events"),f=N("./bom"),o=N("./processors"),d=N("timers").setImmediate,r=N("./defaults").defaults,n=function(x){return(typeof x=="undefined"?"undefined":(0,g.default)(x))==="object"&&x!=null&&(0,y.default)(x).length===0},a=function(x,b,P){var R,C,S;for(R=0,C=x.length;R<C;R++)S=x[R],b=S(b,P);return b},i.Parser=function(w){s(x,w);function x(b){this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this);var P,R,C;if(!(this instanceof i.Parser))return new i.Parser(b);this.options={},R=r["0.2"];for(P in R){if(!u.call(R,P))continue;C=R[P],this.options[P]=C}for(P in b){if(!u.call(b,P))continue;C=b[P],this.options[P]=C}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(o.normalize)),this.reset()}return x.prototype.processAsync=function(){var b,P;try{return this.remaining.length<=this.options.chunkSize?(b=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(b),this.saxParser.close()):(b=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(b),d(this.processAsync))}catch(R){if(P=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(P)}},x.prototype.assignOrPush=function(b,P,R){return P in b?(b[P]instanceof Array||(b[P]=[b[P]]),b[P].push(R)):this.options.explicitArray?b[P]=[R]:b[P]=R},x.prototype.reset=function(){var b,P,R,C;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(S){return function(_){if(S.saxParser.resume(),!S.saxParser.errThrown)return S.saxParser.errThrown=!0,S.emit("error",_)}}(this),this.saxParser.onend=function(S){return function(){if(!S.saxParser.ended)return S.saxParser.ended=!0,S.emit("end",S.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,C=[],b=this.options.attrkey,P=this.options.charkey,this.saxParser.onopentag=function(S){return function(_){var A,j,I,k,J;if(I={},I[P]="",!S.options.ignoreAttrs){J=_.attributes;for(A in J){if(!u.call(J,A))continue;!(b in I)&&!S.options.mergeAttrs&&(I[b]={}),j=S.options.attrValueProcessors?a(S.options.attrValueProcessors,_.attributes[A],A):_.attributes[A],k=S.options.attrNameProcessors?a(S.options.attrNameProcessors,A):A,S.options.mergeAttrs?S.assignOrPush(I,k,j):I[b][k]=j}}return I["#name"]=S.options.tagNameProcessors?a(S.options.tagNameProcessors,_.name):_.name,S.options.xmlns&&(I[S.options.xmlnskey]={uri:_.uri,local:_.local}),C.push(I)}}(this),this.saxParser.onclosetag=function(S){return function(){var _,A,j,I,k,J,G,D,H,W;if(J=C.pop(),k=J["#name"],(!S.options.explicitChildren||!S.options.preserveChildrenOrder)&&delete J["#name"],J.cdata===!0&&(_=J.cdata,delete J.cdata),H=C[C.length-1],J[P].match(/^\s*$/)&&!_?(A=J[P],delete J[P]):(S.options.trim&&(J[P]=J[P].trim()),S.options.normalize&&(J[P]=J[P].replace(/\s{2,}/g," ").trim()),J[P]=S.options.valueProcessors?a(S.options.valueProcessors,J[P],k):J[P],(0,y.default)(J).length===1&&P in J&&!S.EXPLICIT_CHARKEY&&(J=J[P])),n(J)&&(J=S.options.emptyTag!==""?S.options.emptyTag:A),S.options.validator!=null&&(W="/"+function(){var L,z,ie;for(ie=[],L=0,z=C.length;L<z;L++)I=C[L],ie.push(I["#name"]);return ie}().concat(k).join("/"),function(){var L;try{return J=S.options.validator(W,H&&H[k],J)}catch(z){return L=z,S.emit("error",L)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof J=="undefined"?"undefined":(0,g.default)(J))==="object"){if(!S.options.preserveChildrenOrder)I={},S.options.attrkey in J&&(I[S.options.attrkey]=J[S.options.attrkey],delete J[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in J&&(I[S.options.charkey]=J[S.options.charkey],delete J[S.options.charkey]),(0,v.default)(J).length>0&&(I[S.options.childkey]=J),J=I;else if(H){H[S.options.childkey]=H[S.options.childkey]||[],G={};for(j in J){if(!u.call(J,j))continue;G[j]=J[j]}H[S.options.childkey].push(G),delete J["#name"],(0,y.default)(J).length===1&&P in J&&!S.EXPLICIT_CHARKEY&&(J=J[P])}}return C.length>0?S.assignOrPush(H,k,J):(S.options.explicitRoot&&(D=J,J={},J[k]=D),S.resultObject=J,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),R=function(S){return function(_){var A,j;if(j=C[C.length-1],j)return j[P]+=_,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||_.replace(/\\n/g,"").trim()!=="")&&(j[S.options.childkey]=j[S.options.childkey]||[],A={"#name":"__text__"},A[P]=_,S.options.normalize&&(A[P]=A[P].replace(/\s{2,}/g," ").trim()),j[S.options.childkey].push(A)),j}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(S){return function(_){var A;if(A=R(_),A)return A.cdata=!0}}(this)},x.prototype.parseString=function(b,P){var R;P!=null&&typeof P=="function"&&(this.on("end",function(C){return this.reset(),P(null,C)}),this.on("error",function(C){return this.reset(),P(C)}));try{return b=b.toString(),b.trim()===""?(this.emit("end",null),!0):(b=f.stripBOM(b),this.options.async?(this.remaining=b,d(this.processAsync),this.saxParser):this.saxParser.write(b).close())}catch(C){if(R=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw R}else return this.emit("error",R),this.saxParser.errThrown=!0}},x.prototype.parseStringPromise=function(b){return new E.default(function(P){return function(R,C){return P.parseString(b,function(S,_){return S?C(S):R(_)})}}(this))},x}(c),i.parseString=function(w,x,b){var P,R,C;return b!=null?(typeof b=="function"&&(P=b),(typeof x=="undefined"?"undefined":(0,g.default)(x))==="object"&&(R=x)):(typeof x=="function"&&(P=x),R={}),C=new i.Parser(R),C.parseString(w,P)},i.parseStringPromise=function(w,x){var b,P;return(typeof x=="undefined"?"undefined":(0,g.default)(x))==="object"&&(b=x),P=new i.Parser(b),P.parseStringPromise(w)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(N,Y,i){"use strict";(function(){"use strict";var M;M=new RegExp(/(?!xmlns)^.*:/),i.normalize=function(E){return E.toLowerCase()},i.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},i.stripPrefix=function(E){return E.replace(M,"")},i.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},i.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(void 0)},{}],249:[function(N,Y,i){"use strict";(function(){"use strict";var M,E,T,v,m=function(g,e){for(var f in e)y.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},y={}.hasOwnProperty;E=N("./defaults"),M=N("./builder"),T=N("./parser"),v=N("./processors"),i.defaults=E.defaults,i.processors=v,i.ValidationError=function(O){m(g,O);function g(e){this.message=e}return g}(Error),i.Builder=M.Builder,i.Parser=T.Parser,i.parseString=T.parseString,i.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(N,Y,i){"use strict";(function(){Y.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(N,Y,i){"use strict";(function(){Y.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/get-prototype-of"),E=O(M),T=N("babel-runtime/helpers/typeof"),v=O(T),m=N("babel-runtime/core-js/object/assign"),y=O(m);function O(g){return g&&g.__esModule?g:{default:g}}(function(){var g,e,f,r,c,n,a,o=[].slice,l={}.hasOwnProperty;g=function(){var h,s,u,w,x,b;if(b=arguments[0],x=2<=arguments.length?o.call(arguments,1):[],c(y.default))y.default.apply(null,arguments);else for(h=0,u=x.length;h<u;h++)if(w=x[h],w!=null)for(s in w){if(!l.call(w,s))continue;b[s]=w[s]}return b},c=function(h){return!!h&&Object.prototype.toString.call(h)==="[object Function]"},n=function(h){var s;return!!h&&((s=typeof h=="undefined"?"undefined":(0,v.default)(h))==="function"||s==="object")},f=function(h){return c(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},r=function(h){var s;if(f(h))return!h.length;for(s in h){if(!l.call(h,s))continue;return!1}return!0},a=function(h){var s,u;return n(h)&&(u=(0,E.default)(h))&&(s=u.constructor)&&typeof s=="function"&&s instanceof s&&Function.prototype.toString.call(s)===Function.prototype.toString.call(Object)},e=function(h){return c(h.valueOf)?h.valueOf():h},Y.exports.assign=g,Y.exports.isFunction=c,Y.exports.isObject=n,Y.exports.isArray=f,Y.exports.isEmpty=r,Y.exports.isPlainObject=a,Y.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(N,Y,i){"use strict";(function(){Y.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y;v=N("./NodeType"),y=N("./XMLNode"),Y.exports=m=function(){function O(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=v.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(O.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(O.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(O.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(O.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(O.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(O.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"specified",{get:function(){return!0}}),O.prototype.clone=function(){return(0,E.default)(this)},O.prototype.toString=function(g){return this.options.writer.attribute(this,this.options.writer.filterOptions(g))},O.prototype.debugInfo=function(g){return g=g||this.name,g==null?"parent: <"+this.parent.name+">":"attribute: {"+g+"}, parent: <"+this.parent.name+">"},O.prototype.isEqualNode=function(g){return g.namespaceURI!==this.namespaceURI||(g.prefix!==this.prefix||g.localName!==this.localName)?!1:!(g.value!==this.value)},O}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y,O=function(f,r){for(var c in r)g.call(r,c)&&(f[c]=r[c]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;v=N("./NodeType"),y=N("./XMLCharacterData"),Y.exports=m=function(e){O(f,e);function f(r,c){if(f.__super__.constructor.call(this,r),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(c)}return f.prototype.clone=function(){return(0,E.default)(this)},f.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y=function(e,f){for(var r in f)O.call(f,r)&&(e[r]=f[r]);function c(){this.constructor=e}return c.prototype=f.prototype,e.prototype=new c,e.__super__=f.prototype,e},O={}.hasOwnProperty;m=N("./XMLNode"),Y.exports=v=function(g){y(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,E.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,c){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}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y,O=function(f,r){for(var c in r)g.call(r,c)&&(f[c]=r[c]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;v=N("./NodeType"),m=N("./XMLCharacterData"),Y.exports=y=function(e){O(f,e);function f(r,c){if(f.__super__.constructor.call(this,r),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(c)}return f.prototype.clone=function(){return(0,E.default)(this)},f.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},f}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/keys"),E=m(M),T=N("babel-runtime/core-js/object/create"),v=m(T);function m(y){return y&&y.__esModule?y:{default:y}}(function(){var y,O,g;O=N("./XMLDOMErrorHandler"),g=N("./XMLDOMStringList"),Y.exports=y=function(){function e(){var f;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new O,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=f=(0,v.default)(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new g((0,E.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(N,Y,i){"use strict";(function(){var M;Y.exports=M=function(){function E(){}return E.prototype.handleError=function(T){throw new Error(T)},E}()}).call(void 0)},{}],260:[function(N,Y,i){"use strict";(function(){var M;Y.exports=M=function(){function E(){}return E.prototype.hasFeature=function(T,v){return!0},E.prototype.createDocumentType=function(T,v,m){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(T,v,m){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(T,v){throw new Error("This DOM method is not implemented.")},E}()}).call(void 0)},{}],261:[function(N,Y,i){"use strict";(function(){var M;Y.exports=M=function(){function E(T){this.arr=T||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(T){return this.arr[T]||null},E.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},E}()}).call(void 0)},{}],262:[function(N,Y,i){"use strict";(function(){var M,E,T,v=function(O,g){for(var e in g)m.call(g,e)&&(O[e]=g[e]);function f(){this.constructor=O}return f.prototype=g.prototype,O.prototype=new f,O.__super__=g.prototype,O},m={}.hasOwnProperty;T=N("./XMLNode"),M=N("./NodeType"),Y.exports=E=function(y){v(O,y);function O(g,e,f,r,c,n){if(O.__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(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(e));if(n&&!c.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=c}return O.prototype.toString=function(g){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(g))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(N,Y,i){"use strict";(function(){var M,E,T,v=function(O,g){for(var e in g)m.call(g,e)&&(O[e]=g[e]);function f(){this.constructor=O}return f.prototype=g.prototype,O.prototype=new f,O.__super__=g.prototype,O},m={}.hasOwnProperty;T=N("./XMLNode"),M=N("./NodeType"),Y.exports=E=function(y){v(O,y);function O(g,e,f){if(O.__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 O.prototype.toString=function(g){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(g))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(N,Y,i){"use strict";(function(){var M,E,T,v,m=function(g,e){for(var f in e)y.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},y={}.hasOwnProperty;v=N("./Utility").isObject,T=N("./XMLNode"),M=N("./NodeType"),Y.exports=E=function(O){m(g,O);function g(e,f,r,c){if(g.__super__.constructor.call(this,e),r==null)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!f,this.name=this.stringify.name(r),this.type=M.EntityDeclaration,!v(c))this.value=this.stringify.dtdEntityValue(c),this.internal=!0;else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}}return Object.defineProperty(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(N,Y,i){"use strict";(function(){var M,E,T,v=function(O,g){for(var e in g)m.call(g,e)&&(O[e]=g[e]);function f(){this.constructor=O}return f.prototype=g.prototype,O.prototype=new f,O.__super__=g.prototype,O},m={}.hasOwnProperty;T=N("./XMLNode"),M=N("./NodeType"),Y.exports=E=function(y){v(O,y);function O(g,e,f){if(O.__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(O.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(O.prototype,"systemId",{get:function(){return this.sysID}}),O.prototype.toString=function(g){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(g))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(N,Y,i){"use strict";(function(){var M,E,T,v,m=function(g,e){for(var f in e)y.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},y={}.hasOwnProperty;v=N("./Utility").isObject,T=N("./XMLNode"),M=N("./NodeType"),Y.exports=E=function(O){m(g,O);function g(e,f,r,c){var n;g.__super__.constructor.call(this,e),v(f)&&(n=f,f=n.version,r=n.encoding,c=n.standalone),f||(f="1.0"),this.type=M.Declaration,this.version=this.stringify.xmlVersion(f),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}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(N,Y,i){"use strict";(function(){var M,E,T,v,m,y,O,g,e,f=function(n,a){for(var o in a)r.call(a,o)&&(n[o]=a[o]);function l(){this.constructor=n}return l.prototype=a.prototype,n.prototype=new l,n.__super__=a.prototype,n},r={}.hasOwnProperty;e=N("./Utility").isObject,g=N("./XMLNode"),M=N("./NodeType"),E=N("./XMLDTDAttList"),v=N("./XMLDTDEntity"),T=N("./XMLDTDElement"),m=N("./XMLDTDNotation"),O=N("./XMLNamedNodeMap"),Y.exports=y=function(c){f(n,c);function n(a,o,l){var d,h,s,u,w,x;if(n.__super__.constructor.call(this,a),this.type=M.DocType,a.children){for(u=a.children,h=0,s=u.length;h<s;h++)if(d=u[h],d.type===M.Element){this.name=d.name;break}}this.documentObject=a,e(o)&&(w=o,o=w.pubID,l=w.sysID),l==null&&(x=[o,l],l=x[0],o=x[1]),o!=null&&(this.pubID=this.stringify.dtdPubID(o)),l!=null&&(this.sysID=this.stringify.dtdSysID(l))}return Object.defineProperty(n.prototype,"entities",{get:function(){var o,l,d,h,s;for(h={},s=this.children,l=0,d=s.length;l<d;l++)o=s[l],o.type===M.EntityDeclaration&&!o.pe&&(h[o.name]=o);return new O(h)}}),Object.defineProperty(n.prototype,"notations",{get:function(){var o,l,d,h,s;for(h={},s=this.children,l=0,d=s.length;l<d;l++)o=s[l],o.type===M.NotationDeclaration&&(h[o.name]=o);return new O(h)}}),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(a,o){var l;return l=new T(this,a,o),this.children.push(l),this},n.prototype.attList=function(a,o,l,d,h){var s;return s=new E(this,a,o,l,d,h),this.children.push(s),this},n.prototype.entity=function(a,o){var l;return l=new v(this,!1,a,o),this.children.push(l),this},n.prototype.pEntity=function(a,o){var l;return l=new v(this,!0,a,o),this.children.push(l),this},n.prototype.notation=function(a,o){var l;return l=new m(this,a,o),this.children.push(l),this},n.prototype.toString=function(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))},n.prototype.ele=function(a,o){return this.element(a,o)},n.prototype.att=function(a,o,l,d,h){return this.attList(a,o,l,d,h)},n.prototype.ent=function(a,o){return this.entity(a,o)},n.prototype.pent=function(a,o){return this.pEntity(a,o)},n.prototype.not=function(a,o){return this.notation(a,o)},n.prototype.up=function(){return this.root()||this.documentObject},n.prototype.isEqualNode=function(a){return n.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?a.name!==this.name||a.publicId!==this.publicId?!1:!(a.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(N,Y,i){"use strict";(function(){var M,E,T,v,m,y,O,g,e=function(c,n){for(var a in n)f.call(n,a)&&(c[a]=n[a]);function o(){this.constructor=c}return o.prototype=n.prototype,c.prototype=new o,c.__super__=n.prototype,c},f={}.hasOwnProperty;g=N("./Utility").isPlainObject,T=N("./XMLDOMImplementation"),E=N("./XMLDOMConfiguration"),m=N("./XMLNode"),M=N("./NodeType"),O=N("./XMLStringifier"),y=N("./XMLStringWriter"),Y.exports=v=function(r){e(c,r);function c(n){c.__super__.constructor.call(this,null),this.name="#document",this.type=M.Document,this.documentURI=null,this.domConfig=new E,n||(n={}),n.writer||(n.writer=new y),this.options=n,this.stringify=new O(n)}return Object.defineProperty(c.prototype,"implementation",{value:new T}),Object.defineProperty(c.prototype,"doctype",{get:function(){var a,o,l,d;for(d=this.children,o=0,l=d.length;o<l;o++)if(a=d[o],a.type===M.DocType)return a;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c.prototype.end=function(n){var a;return a={},n?g(n)&&(a=n,n=this.options.writer):n=this.options.writer,n.document(this,n.filterOptions(a))},c.prototype.toString=function(n){return this.options.writer.document(this,this.options.writer.filterOptions(n))},c.prototype.createElement=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTextNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createComment=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createCDATASection=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createProcessingInstruction=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttribute=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEntityReference=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.importNode=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createElementNS=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttributeNS=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementById=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.adoptNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.renameNode=function(n,a,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEvent=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createNodeIterator=function(n,a,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTreeWalker=function(n,a,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},c}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(N,Y,i){"use strict";(function(){var M,E,T,v,m,y,O,g,e,f,r,c,n,a,o,l,d,h,s,u,w,x,b,P,R={}.hasOwnProperty;P=N("./Utility"),x=P.isObject,w=P.isFunction,b=P.isPlainObject,u=P.getValue,M=N("./NodeType"),c=N("./XMLDocument"),a=N("./XMLElement"),v=N("./XMLCData"),m=N("./XMLComment"),l=N("./XMLRaw"),s=N("./XMLText"),o=N("./XMLProcessingInstruction"),f=N("./XMLDeclaration"),r=N("./XMLDocType"),y=N("./XMLDTDAttList"),g=N("./XMLDTDEntity"),O=N("./XMLDTDElement"),e=N("./XMLDTDNotation"),T=N("./XMLAttribute"),h=N("./XMLStringifier"),d=N("./XMLStringWriter"),E=N("./WriterState"),Y.exports=n=function(){function C(S,_,A){var j;this.name="?xml",this.type=M.Document,S||(S={}),j={},S.writer?b(S.writer)&&(j=S.writer,S.writer=new d):S.writer=new d,this.options=S,this.writer=S.writer,this.writerOptions=this.writer.filterOptions(j),this.stringify=new h(S),this.onDataCallback=_||function(){},this.onEndCallback=A||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return C.prototype.createChildNode=function(S){var _,A,j,I,k,J,G,D;switch(S.type){case M.CData:this.cdata(S.value);break;case M.Comment:this.comment(S.value);break;case M.Element:j={},G=S.attribs;for(A in G){if(!R.call(G,A))continue;_=G[A],j[A]=_.value}this.node(S.name,j);break;case M.Dummy:this.dummy();break;case M.Raw:this.raw(S.value);break;case M.Text:this.text(S.value);break;case M.ProcessingInstruction:this.instruction(S.target,S.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+S.constructor.name)}for(D=S.children,k=0,J=D.length;k<J;k++)I=D[k],this.createChildNode(I),I.type===M.Element&&this.up();return this},C.prototype.dummy=function(){return this},C.prototype.node=function(S,_,A){var j;if(S==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(S));return this.openCurrent(),S=u(S),_==null&&(_={}),_=u(_),x(_)||(j=[_,A],A=j[0],_=j[1]),this.currentNode=new a(this,S,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,A!=null&&this.text(A),this},C.prototype.element=function(S,_,A){var j,I,k,J,G,D;if(this.currentNode&&this.currentNode.type===M.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(S)||x(S)||w(S))for(J=this.options.noValidation,this.options.noValidation=!0,D=new c(this.options).element("TEMP_ROOT"),D.element(S),this.options.noValidation=J,G=D.children,I=0,k=G.length;I<k;I++)j=G[I],this.createChildNode(j),j.type===M.Element&&this.up();else this.node(S,_,A);return this},C.prototype.attribute=function(S,_){var A,j;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null&&(S=u(S)),x(S))for(A in S){if(!R.call(S,A))continue;j=S[A],this.attribute(A,j)}else w(_)&&(_=_.apply()),this.options.keepNullAttributes&&_==null?this.currentNode.attribs[S]=new T(this,S,""):_!=null&&(this.currentNode.attribs[S]=new T(this,S,_));return this},C.prototype.text=function(S){var _;return this.openCurrent(),_=new s(this,S),this.onData(this.writer.text(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.cdata=function(S){var _;return this.openCurrent(),_=new v(this,S),this.onData(this.writer.cdata(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.comment=function(S){var _;return this.openCurrent(),_=new m(this,S),this.onData(this.writer.comment(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.raw=function(S){var _;return this.openCurrent(),_=new l(this,S),this.onData(this.writer.raw(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.instruction=function(S,_){var A,j,I,k,J;if(this.openCurrent(),S!=null&&(S=u(S)),_!=null&&(_=u(_)),Array.isArray(S))for(A=0,k=S.length;A<k;A++)j=S[A],this.instruction(j);else if(x(S))for(j in S){if(!R.call(S,j))continue;I=S[j],this.instruction(j,I)}else w(_)&&(_=_.apply()),J=new o(this,S,_),this.onData(this.writer.processingInstruction(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},C.prototype.declaration=function(S,_,A){var j;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return j=new f(this,S,_,A),this.onData(this.writer.declaration(j,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.doctype=function(S,_,A){if(this.openCurrent(),S==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new r(this,_,A),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(S,_){var A;return this.openCurrent(),A=new O(this,S,_),this.onData(this.writer.dtdElement(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.attList=function(S,_,A,j,I){var k;return this.openCurrent(),k=new y(this,S,_,A,j,I),this.onData(this.writer.dtdAttList(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.entity=function(S,_){var A;return this.openCurrent(),A=new g(this,!1,S,_),this.onData(this.writer.dtdEntity(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.pEntity=function(S,_){var A;return this.openCurrent(),A=new g(this,!0,S,_),this.onData(this.writer.dtdEntity(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.prototype.notation=function(S,_){var A;return this.openCurrent(),A=new e(this,S,_),this.onData(this.writer.dtdNotation(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},C.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},C.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(S){var _,A,j,I;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===M.Element&&(this.root=S),A="",S.type===M.Element){this.writerOptions.state=E.OpenTag,A=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,I=S.attribs;for(j in I){if(!R.call(I,j))continue;_=I[j],A+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}A+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,A=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+S.rootNodeName,S.pubID&&S.sysID?A+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(A+=' SYSTEM "'+S.sysID+'"'),S.children?(A+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,A+=">"),A+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(A,this.currentLevel),S.isOpen=!0}},C.prototype.closeNode=function(S){var _;if(!S.isClosed)return _="",this.writerOptions.state=E.CloseTag,S.type===M.Element?_=this.writer.indent(S,this.writerOptions,this.currentLevel)+"</"+S.name+">"+this.writer.endline(S,this.writerOptions,this.currentLevel):_=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(_,this.currentLevel),S.isClosed=!0},C.prototype.onData=function(S,_){return this.documentStarted=!0,this.onDataCallback(S,_+1)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(S,_,A){return this.node(S,_,A)},C.prototype.txt=function(S){return this.text(S)},C.prototype.dat=function(S){return this.cdata(S)},C.prototype.com=function(S){return this.comment(S)},C.prototype.ins=function(S,_){return this.instruction(S,_)},C.prototype.dec=function(S,_,A){return this.declaration(S,_,A)},C.prototype.dtd=function(S,_,A){return this.doctype(S,_,A)},C.prototype.e=function(S,_,A){return this.element(S,_,A)},C.prototype.n=function(S,_,A){return this.node(S,_,A)},C.prototype.t=function(S){return this.text(S)},C.prototype.d=function(S){return this.cdata(S)},C.prototype.c=function(S){return this.comment(S)},C.prototype.r=function(S){return this.raw(S)},C.prototype.i=function(S,_){return this.instruction(S,_)},C.prototype.att=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(S,_){return this.entity(S,_)},C.prototype.pent=function(S,_){return this.pEntity(S,_)},C.prototype.not=function(S,_){return this.notation(S,_)},C}()}).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(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y,O=function(f,r){for(var c in r)g.call(r,c)&&(f[c]=r[c]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;y=N("./XMLNode"),v=N("./NodeType"),Y.exports=m=function(e){O(f,e);function f(r){f.__super__.constructor.call(this,r),this.type=v.Dummy}return f.prototype.clone=function(){return(0,E.default)(this)},f.prototype.toString=function(r){return""},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y,O,g,e,f,r,c,n=function(l,d){for(var h in d)a.call(d,h)&&(l[h]=d[h]);function s(){this.constructor=l}return s.prototype=d.prototype,l.prototype=new s,l.__super__=d.prototype,l},a={}.hasOwnProperty;c=N("./Utility"),r=c.isObject,f=c.isFunction,e=c.getValue,g=N("./XMLNode"),v=N("./NodeType"),m=N("./XMLAttribute"),O=N("./XMLNamedNodeMap"),Y.exports=y=function(o){n(l,o);function l(d,h,s){var u,w,x,b;if(l.__super__.constructor.call(this,d),h==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(h),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,s!=null&&this.attribute(s),d.type===v.Document&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this,d.children)){for(b=d.children,w=0,x=b.length;w<x;w++)if(u=b[w],u.type===v.DocType){u.name=this.name;break}}}return Object.defineProperty(l.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(l.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(l.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new O(this.attribs)),this.attributeMap}}),l.prototype.clone=function(){var d,h,s,u;s=(0,E.default)(this),s.isRoot&&(s.documentObject=null),s.attribs={},u=this.attribs;for(h in u){if(!a.call(u,h))continue;d=u[h],s.attribs[h]=d.clone()}return s.children=[],this.children.forEach(function(w){var x;return x=w.clone(),x.parent=s,s.children.push(x)}),s},l.prototype.attribute=function(d,h){var s,u;if(d!=null&&(d=e(d)),r(d))for(s in d){if(!a.call(d,s))continue;u=d[s],this.attribute(s,u)}else f(h)&&(h=h.apply()),this.options.keepNullAttributes&&h==null?this.attribs[d]=new m(this,d,""):h!=null&&(this.attribs[d]=new m(this,d,h));return this},l.prototype.removeAttribute=function(d){var h,s,u;if(d==null)throw new Error("Missing attribute name. "+this.debugInfo());if(d=e(d),Array.isArray(d))for(s=0,u=d.length;s<u;s++)h=d[s],delete this.attribs[h];else delete this.attribs[d];return this},l.prototype.toString=function(d){return this.options.writer.element(this,this.options.writer.filterOptions(d))},l.prototype.att=function(d,h){return this.attribute(d,h)},l.prototype.a=function(d,h){return this.attribute(d,h)},l.prototype.getAttribute=function(d){return this.attribs.hasOwnProperty(d)?this.attribs[d].value:null},l.prototype.setAttribute=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getAttributeNode=function(d){return this.attribs.hasOwnProperty(d)?this.attribs[d]:null},l.prototype.setAttributeNode=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeAttributeNode=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getAttributeNS=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setAttributeNS=function(d,h,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeAttributeNS=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getAttributeNodeNS=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setAttributeNodeNS=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.hasAttribute=function(d){return this.attribs.hasOwnProperty(d)},l.prototype.hasAttributeNS=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setIdAttribute=function(d,h){return this.attribs.hasOwnProperty(d)?this.attribs[d].isId:h},l.prototype.setIdAttributeNS=function(d,h,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setIdAttributeNode=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(d,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByClassName=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(d){var h,s,u;if(!l.__super__.isEqualNode.apply(this,arguments).isEqualNode(d))return!1;if(d.namespaceURI!==this.namespaceURI)return!1;if(d.prefix!==this.prefix)return!1;if(d.localName!==this.localName)return!1;if(d.attribs.length!==this.attribs.length)return!1;for(h=s=0,u=this.attribs.length-1;0<=u?s<=u:s>=u;h=0<=u?++s:--s)if(!this.attribs[h].isEqualNode(d.attribs[h]))return!1;return!0},l}(g)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/keys"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v;Y.exports=v=function(){function m(y){this.nodes=y}return Object.defineProperty(m.prototype,"length",{get:function(){return(0,E.default)(this.nodes).length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.getNamedItem=function(y){return this.nodes[y]},m.prototype.setNamedItem=function(y){var O;return O=this.nodes[y.nodeName],this.nodes[y.nodeName]=y,O||null},m.prototype.removeNamedItem=function(y){var O;return O=this.nodes[y],delete this.nodes[y],O||null},m.prototype.item=function(y){return this.nodes[(0,E.default)(this.nodes)[y]]||null},m.prototype.getNamedItemNS=function(y,O){throw new Error("This DOM method is not implemented.")},m.prototype.setNamedItemNS=function(y){throw new Error("This DOM method is not implemented.")},m.prototype.removeNamedItemNS=function(y,O){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(N,Y,i){"use strict";(function(){var M,E,T,v,m,y,O,g,e,f,r,c,n,a,o,l,d,h,s,u={}.hasOwnProperty;s=N("./Utility"),h=s.isObject,d=s.isFunction,l=s.isEmpty,o=s.getValue,g=null,T=null,v=null,m=null,y=null,n=null,a=null,c=null,O=null,E=null,r=null,e=null,M=null,Y.exports=f=function(){function w(x){this.parent=x,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,g||(g=N("./XMLElement"),T=N("./XMLCData"),v=N("./XMLComment"),m=N("./XMLDeclaration"),y=N("./XMLDocType"),n=N("./XMLRaw"),a=N("./XMLText"),c=N("./XMLProcessingInstruction"),O=N("./XMLDummy"),E=N("./NodeType"),r=N("./XMLNodeList"),e=N("./XMLNamedNodeMap"),M=N("./DocumentPosition"))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new r(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var b;return b=this.parent.children.indexOf(this),this.parent.children[b-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var b;return b=this.parent.children.indexOf(this),this.parent.children[b+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var b,P,R,C,S;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(S="",C=this.children,P=0,R=C.length;P<R;P++)b=C[P],b.textContent&&(S+=b.textContent);return S}else return null},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),w.prototype.setParent=function(x){var b,P,R,C,S;for(this.parent=x,x&&(this.options=x.options,this.stringify=x.stringify),C=this.children,S=[],P=0,R=C.length;P<R;P++)b=C[P],S.push(b.setParent(this));return S},w.prototype.element=function(x,b,P){var R,C,S,_,A,j,I,k,J,G,D;if(j=null,b===null&&P==null&&(J=[{},null],b=J[0],P=J[1]),b==null&&(b={}),b=o(b),h(b)||(G=[b,P],P=G[0],b=G[1]),x!=null&&(x=o(x)),Array.isArray(x))for(S=0,I=x.length;S<I;S++)C=x[S],j=this.element(C);else if(d(x))j=this.element(x.apply());else if(h(x))for(A in x){if(!u.call(x,A))continue;if(D=x[A],d(D)&&(D=D.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&A.indexOf(this.stringify.convertAttKey)===0)j=this.attribute(A.substr(this.stringify.convertAttKey.length),D);else if(!this.options.separateArrayItems&&Array.isArray(D)&&l(D))j=this.dummy();else if(h(D)&&l(D))j=this.element(A);else if(!this.options.keepNullNodes&&D==null)j=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(D))for(_=0,k=D.length;_<k;_++)C=D[_],R={},R[A]=C,j=this.element(R);else h(D)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&A.indexOf(this.stringify.convertTextKey)===0?j=this.element(D):(j=this.element(A),j.element(D)):j=this.element(A,D)}else!this.options.keepNullNodes&&P===null?j=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&x.indexOf(this.stringify.convertTextKey)===0?j=this.text(P):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&x.indexOf(this.stringify.convertCDataKey)===0?j=this.cdata(P):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&x.indexOf(this.stringify.convertCommentKey)===0?j=this.comment(P):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&x.indexOf(this.stringify.convertRawKey)===0?j=this.raw(P):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&x.indexOf(this.stringify.convertPIKey)===0?j=this.instruction(x.substr(this.stringify.convertPIKey.length),P):j=this.node(x,b,P);if(j==null)throw new Error("Could not create any elements with: "+x+". "+this.debugInfo());return j},w.prototype.insertBefore=function(x,b,P){var R,C,S,_,A;if(x!=null?x.type:void 0)return S=x,_=b,S.setParent(this),_?(C=children.indexOf(_),A=children.splice(C),children.push(S),Array.prototype.push.apply(children,A)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return C=this.parent.children.indexOf(this),A=this.parent.children.splice(C),R=this.parent.element(x,b,P),Array.prototype.push.apply(this.parent.children,A),R},w.prototype.insertAfter=function(x,b,P){var R,C,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return C=this.parent.children.indexOf(this),S=this.parent.children.splice(C+1),R=this.parent.element(x,b,P),Array.prototype.push.apply(this.parent.children,S),R},w.prototype.remove=function(){var x,b;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return x=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[x,x-x+1].concat(b=[])),this.parent},w.prototype.node=function(x,b,P){var R,C;return x!=null&&(x=o(x)),b||(b={}),b=o(b),h(b)||(C=[b,P],P=C[0],b=C[1]),R=new g(this,x,b),P!=null&&R.text(P),this.children.push(R),R},w.prototype.text=function(x){var b;return h(x)&&this.element(x),b=new a(this,x),this.children.push(b),this},w.prototype.cdata=function(x){var b;return b=new T(this,x),this.children.push(b),this},w.prototype.comment=function(x){var b;return b=new v(this,x),this.children.push(b),this},w.prototype.commentBefore=function(x){var b,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P),b=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.commentAfter=function(x){var b,P,R;return P=this.parent.children.indexOf(this),R=this.parent.children.splice(P+1),b=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,R),this},w.prototype.raw=function(x){var b;return b=new n(this,x),this.children.push(b),this},w.prototype.dummy=function(){var x;return x=new O(this),x},w.prototype.instruction=function(x,b){var P,R,C,S,_;if(x!=null&&(x=o(x)),b!=null&&(b=o(b)),Array.isArray(x))for(S=0,_=x.length;S<_;S++)P=x[S],this.instruction(P);else if(h(x))for(P in x){if(!u.call(x,P))continue;R=x[P],this.instruction(P,R)}else d(b)&&(b=b.apply()),C=new c(this,x,b),this.children.push(C);return this},w.prototype.instructionBefore=function(x,b){var P,R,C;return R=this.parent.children.indexOf(this),C=this.parent.children.splice(R),P=this.parent.instruction(x,b),Array.prototype.push.apply(this.parent.children,C),this},w.prototype.instructionAfter=function(x,b){var P,R,C;return R=this.parent.children.indexOf(this),C=this.parent.children.splice(R+1),P=this.parent.instruction(x,b),Array.prototype.push.apply(this.parent.children,C),this},w.prototype.declaration=function(x,b,P){var R,C;return R=this.document(),C=new m(R,x,b,P),R.children.length===0?R.children.unshift(C):R.children[0].type===E.Declaration?R.children[0]=C:R.children.unshift(C),R.root()||R},w.prototype.dtd=function(x,b){var P,R,C,S,_,A,j,I,k,J;for(R=this.document(),C=new y(R,x,b),k=R.children,S=_=0,j=k.length;_<j;S=++_)if(P=k[S],P.type===E.DocType)return R.children[S]=C,C;for(J=R.children,S=A=0,I=J.length;A<I;S=++A)if(P=J[S],P.isRoot)return R.children.splice(S,0,C),C;return R.children.push(C),C},w.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},w.prototype.root=function(){var x;for(x=this;x;){if(x.type===E.Document)return x.rootObject;if(x.isRoot)return x;x=x.parent}},w.prototype.document=function(){var x;for(x=this;x;){if(x.type===E.Document)return x;x=x.parent}},w.prototype.end=function(x){return this.document().end(x)},w.prototype.prev=function(){var x;if(x=this.parent.children.indexOf(this),x<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[x-1]},w.prototype.next=function(){var x;if(x=this.parent.children.indexOf(this),x===-1||x===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[x+1]},w.prototype.importDocument=function(x){var b;return b=x.root().clone(),b.parent=this,b.isRoot=!1,this.children.push(b),this},w.prototype.debugInfo=function(x){var b,P;return x=x||this.name,x==null&&!((b=this.parent)!=null?b.name:void 0)?"":x==null?"parent: <"+this.parent.name+">":((P=this.parent)!=null?P.name:void 0)?"node: <"+x+">, parent: <"+this.parent.name+">":"node: <"+x+">"},w.prototype.ele=function(x,b,P){return this.element(x,b,P)},w.prototype.nod=function(x,b,P){return this.node(x,b,P)},w.prototype.txt=function(x){return this.text(x)},w.prototype.dat=function(x){return this.cdata(x)},w.prototype.com=function(x){return this.comment(x)},w.prototype.ins=function(x,b){return this.instruction(x,b)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(x,b,P){return this.declaration(x,b,P)},w.prototype.e=function(x,b,P){return this.element(x,b,P)},w.prototype.n=function(x,b,P){return this.node(x,b,P)},w.prototype.t=function(x){return this.text(x)},w.prototype.d=function(x){return this.cdata(x)},w.prototype.c=function(x){return this.comment(x)},w.prototype.r=function(x){return this.raw(x)},w.prototype.i=function(x,b){return this.instruction(x,b)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(x){return this.importDocument(x)},w.prototype.replaceChild=function(x,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(x,b){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(x){var b,P;return b=this,b===x?0:this.document()!==x.document()?(P=M.Disconnected|M.ImplementationSpecific,Math.random()<.5?P|=M.Preceding:P|=M.Following,P):b.isAncestor(x)?M.Contains|M.Preceding:b.isDescendant(x)?M.Contains|M.Following:b.isPreceding(x)?M.Preceding:M.Following},w.prototype.isSameNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(x){var b,P,R;if(x.nodeType!==this.nodeType)return!1;if(x.children.length!==this.children.length)return!1;for(b=P=0,R=this.children.length-1;0<=R?P<=R:P>=R;b=0<=R?++P:--P)if(!this.children[b].isEqualNode(x.children[b]))return!1;return!0},w.prototype.getFeature=function(x,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(x,b,P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(x){return x?x===this||this.isDescendant(x):!1},w.prototype.isDescendant=function(x){var b,P,R,C,S;for(S=this.children,R=0,C=S.length;R<C;R++){if(b=S[R],x===b)return!0;if(P=b.isDescendant(x),P)return!0}return!1},w.prototype.isAncestor=function(x){return x.isDescendant(this)},w.prototype.isPreceding=function(x){var b,P;return b=this.treePosition(x),P=this.treePosition(this),b===-1||P===-1?!1:b<P},w.prototype.isFollowing=function(x){var b,P;return b=this.treePosition(x),P=this.treePosition(this),b===-1||P===-1?!1:b>P},w.prototype.treePosition=function(x){var b,P;return P=0,b=!1,this.foreachTreeNode(this.document(),function(R){if(P++,!b&&R===x)return b=!0}),b?P:-1},w.prototype.foreachTreeNode=function(x,b){var P,R,C,S,_;for(x||(x=this.document()),S=x.children,R=0,C=S.length;R<C;R++){if(P=S[R],_=b(P))return _;if(_=this.foreachTreeNode(P,b),_)return _}},w}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(N,Y,i){"use strict";(function(){var M;Y.exports=M=function(){function E(T){this.nodes=T}return Object.defineProperty(E.prototype,"length",{get:function(){return this.nodes.length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.item=function(T){return this.nodes[T]||null},E}()}).call(void 0)},{}],275:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y,O=function(f,r){for(var c in r)g.call(r,c)&&(f[c]=r[c]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;v=N("./NodeType"),m=N("./XMLCharacterData"),Y.exports=y=function(e){O(f,e);function f(r,c,n){if(f.__super__.constructor.call(this,r),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=v.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,n&&(this.value=this.stringify.insValue(n))}return f.prototype.clone=function(){return(0,E.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}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y,O=function(f,r){for(var c in r)g.call(r,c)&&(f[c]=r[c]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;v=N("./NodeType"),m=N("./XMLNode"),Y.exports=y=function(e){O(f,e);function f(r,c){if(f.__super__.constructor.call(this,r),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=v.Raw,this.value=this.stringify.raw(c)}return f.prototype.clone=function(){return(0,E.default)(this)},f.prototype.toString=function(r){return this.options.writer.raw(this,this.options.writer.filterOptions(r))},f}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(N,Y,i){"use strict";(function(){var M,E,T,v,m=function(g,e){for(var f in e)y.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},y={}.hasOwnProperty;M=N("./NodeType"),v=N("./XMLWriterBase"),E=N("./WriterState"),Y.exports=T=function(O){m(g,O);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===E.CloseTag?"":g.__super__.endline.call(this,e,f,r)},g.prototype.document=function(e,f){var r,c,n,a,o,l,d,h,s;for(d=e.children,c=n=0,o=d.length;n<o;c=++n)r=d[c],r.isLastRootNode=c===e.children.length-1;for(f=this.filterOptions(f),h=e.children,s=[],a=0,l=h.length;a<l;a++)r=h[a],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 c,n,a,o;if(r||(r=0),this.openNode(e,f,r),f.state=E.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=E.InsideTag,o=e.children,n=0,a=o.length;n<a;n++)c=o[n],this.writeChildNode(c,f,r+1);f.state=E.CloseTag,this.stream.write("]")}return f.state=E.CloseTag,this.stream.write(f.spaceBeforeSlash+">"),this.stream.write(this.endline(e,f,r)),f.state=E.None,this.closeNode(e,f,r)},g.prototype.element=function(e,f,r){var c,n,a,o,l,d,h,s,u,w;r||(r=0),this.openNode(e,f,r),f.state=E.OpenTag,this.stream.write(this.indent(e,f,r)+"<"+e.name),u=e.attribs;for(h in u){if(!y.call(u,h))continue;c=u[h],this.attribute(c,f,r)}if(a=e.children.length,o=a===0?null:e.children[0],a===0||e.children.every(function(x){return(x.type===M.Text||x.type===M.Raw)&&x.value===""}))f.allowEmpty?(this.stream.write(">"),f.state=E.CloseTag,this.stream.write("</"+e.name+">")):(f.state=E.CloseTag,this.stream.write(f.spaceBeforeSlash+"/>"));else if(f.pretty&&a===1&&(o.type===M.Text||o.type===M.Raw)&&o.value!=null)this.stream.write(">"),f.state=E.InsideTag,f.suppressPrettyCount++,s=!0,this.writeChildNode(o,f,r+1),f.suppressPrettyCount--,s=!1,f.state=E.CloseTag,this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.endline(e,f,r)),f.state=E.InsideTag,w=e.children,l=0,d=w.length;l<d;l++)n=w[l],this.writeChildNode(n,f,r+1);f.state=E.CloseTag,this.stream.write(this.indent(e,f,r)+"</"+e.name+">")}return this.stream.write(this.endline(e,f,r)),f.state=E.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}(v)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(N,Y,i){"use strict";(function(){var M,E,T=function(y,O){for(var g in O)v.call(O,g)&&(y[g]=O[g]);function e(){this.constructor=y}return e.prototype=O.prototype,y.prototype=new e,y.__super__=O.prototype,y},v={}.hasOwnProperty;E=N("./XMLWriterBase"),Y.exports=M=function(m){T(y,m);function y(O){y.__super__.constructor.call(this,O)}return y.prototype.document=function(O,g){var e,f,r,c,n;for(g=this.filterOptions(g),c="",n=O.children,f=0,r=n.length;f<r;f++)e=n[f],c+=this.writeChildNode(e,g,0);return g.pretty&&c.slice(-g.newline.length)===g.newline&&(c=c.slice(0,-g.newline.length)),c},y}(E)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(N,Y,i){"use strict";(function(){var M,E=function(m,y){return function(){return m.apply(y,arguments)}},T={}.hasOwnProperty;Y.exports=M=function(){function v(m){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var y,O,g;m||(m={}),this.options=m,this.options.version||(this.options.version="1.0"),O=m.stringify||{};for(y in O){if(!T.call(O,y))continue;g=O[y],this[y]=g}}return v.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},v.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},v.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},v.prototype.comment=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+m);return this.assertLegalChar(m)},v.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},v.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},v.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.insValue=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/\?>/))throw new Error("Invalid processing instruction value: "+m);return this.assertLegalChar(m)},v.prototype.xmlVersion=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+m);return m},v.prototype.xmlEncoding=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+m);return this.assertLegalChar(m)},v.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},v.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.convertAttKey="@",v.prototype.convertPIKey="?",v.prototype.convertTextKey="#text",v.prototype.convertCDataKey="#cdata",v.prototype.convertCommentKey="#comment",v.prototype.convertRawKey="#raw",v.prototype.assertLegalChar=function(m){var y,O;if(this.options.noValidation)return m;if(y="",this.options.version==="1.0"){if(y=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=m.match(y))throw new Error("Invalid character in string: "+m+" at index "+O.index)}else if(this.options.version==="1.1"&&(y=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=m.match(y)))throw new Error("Invalid character in string: "+m+" at index "+O.index);return m},v.prototype.assertLegalName=function(m){var y;if(this.options.noValidation)return m;if(this.assertLegalChar(m),y=/^([: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])*$/,!m.match(y))throw new Error("Invalid character in name");return m},v.prototype.textEscape=function(m){var y;return this.options.noValidation?m:(y=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(y,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},v.prototype.attEscape=function(m){var y;return this.options.noValidation?m:(y=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(y,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},v}()}).call(void 0)},{}],280:[function(N,Y,i){"use strict";var M=N("babel-runtime/core-js/object/create"),E=T(M);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,y,O=function(f,r){for(var c in r)g.call(r,c)&&(f[c]=r[c]);function n(){this.constructor=f}return n.prototype=r.prototype,f.prototype=new n,f.__super__=r.prototype,f},g={}.hasOwnProperty;v=N("./NodeType"),m=N("./XMLCharacterData"),Y.exports=y=function(e){O(f,e);function f(r,c){if(f.__super__.constructor.call(this,r),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=v.Text,this.value=this.stringify.text(c)}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 c,n,a;for(a="",n=this.previousSibling;n;)a=n.data+a,n=n.previousSibling;for(a+=this.data,c=this.nextSibling;c;)a=a+c.data,c=c.nextSibling;return a}}),f.prototype.clone=function(){return(0,E.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}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(N,Y,i){"use strict";(function(){var M,E,T,v,m,y,O,g,e,f,r,c,n,a,o,l,d,h={}.hasOwnProperty;d=N("./Utility").assign,M=N("./NodeType"),e=N("./XMLDeclaration"),f=N("./XMLDocType"),T=N("./XMLCData"),v=N("./XMLComment"),c=N("./XMLElement"),a=N("./XMLRaw"),o=N("./XMLText"),n=N("./XMLProcessingInstruction"),r=N("./XMLDummy"),m=N("./XMLDTDAttList"),y=N("./XMLDTDElement"),O=N("./XMLDTDEntity"),g=N("./XMLDTDNotation"),E=N("./WriterState"),Y.exports=l=function(){function s(u){var w,x,b;u||(u={}),this.options=u,x=u.writer||{};for(w in x){if(!h.call(x,w))continue;b=x[w],this["_"+w]=this[w],this[w]=b}}return s.prototype.filterOptions=function(u){var w,x,b,P,R,C,S,_;return u||(u={}),u=d({},this.options,u),w={writer:this},w.pretty=u.pretty||!1,w.allowEmpty=u.allowEmpty||!1,w.indent=(x=u.indent)!=null?x:" ",w.newline=(b=u.newline)!=null?b:`
`,w.offset=(P=u.offset)!=null?P:0,w.dontPrettyTextNodes=(R=(C=u.dontPrettyTextNodes)!=null?C:u.dontprettytextnodes)!=null?R:0,w.spaceBeforeSlash=(S=(_=u.spaceBeforeSlash)!=null?_:u.spacebeforeslash)!=null?S:"",w.spaceBeforeSlash===!0&&(w.spaceBeforeSlash=" "),w.suppressPrettyCount=0,w.user={},w.state=E.None,w},s.prototype.indent=function(u,w,x){var b;return!w.pretty||w.suppressPrettyCount?"":w.pretty&&(b=(x||0)+w.offset+1,b>0)?new Array(b).join(w.indent):""},s.prototype.endline=function(u,w,x){return!w.pretty||w.suppressPrettyCount?"":w.newline},s.prototype.attribute=function(u,w,x){var b;return this.openAttribute(u,w,x),b=" "+u.name+'="'+u.value+'"',this.closeAttribute(u,w,x),b},s.prototype.cdata=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<![CDATA[",w.state=E.InsideTag,b+=u.value,w.state=E.CloseTag,b+="]]>"+this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.comment=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<!-- ",w.state=E.InsideTag,b+=u.value,w.state=E.CloseTag,b+=" -->"+this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.declaration=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<?xml",w.state=E.InsideTag,b+=' version="'+u.version+'"',u.encoding!=null&&(b+=' encoding="'+u.encoding+'"'),u.standalone!=null&&(b+=' standalone="'+u.standalone+'"'),w.state=E.CloseTag,b+=w.spaceBeforeSlash+"?>",b+=this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.docType=function(u,w,x){var b,P,R,C,S;if(x||(x=0),this.openNode(u,w,x),w.state=E.OpenTag,C=this.indent(u,w,x),C+="<!DOCTYPE "+u.root().name,u.pubID&&u.sysID?C+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.sysID&&(C+=' SYSTEM "'+u.sysID+'"'),u.children.length>0){for(C+=" [",C+=this.endline(u,w,x),w.state=E.InsideTag,S=u.children,P=0,R=S.length;P<R;P++)b=S[P],C+=this.writeChildNode(b,w,x+1);w.state=E.CloseTag,C+="]"}return w.state=E.CloseTag,C+=w.spaceBeforeSlash+">",C+=this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),C},s.prototype.element=function(u,w,x){var b,P,R,C,S,_,A,j,I,k,J,G,D,H;x||(x=0),k=!1,J="",this.openNode(u,w,x),w.state=E.OpenTag,J+=this.indent(u,w,x)+"<"+u.name,G=u.attribs;for(I in G){if(!h.call(G,I))continue;b=G[I],J+=this.attribute(b,w,x)}if(R=u.children.length,C=R===0?null:u.children[0],R===0||u.children.every(function(W){return(W.type===M.Text||W.type===M.Raw)&&W.value===""}))w.allowEmpty?(J+=">",w.state=E.CloseTag,J+="</"+u.name+">"+this.endline(u,w,x)):(w.state=E.CloseTag,J+=w.spaceBeforeSlash+"/>"+this.endline(u,w,x));else if(w.pretty&&R===1&&(C.type===M.Text||C.type===M.Raw)&&C.value!=null)J+=">",w.state=E.InsideTag,w.suppressPrettyCount++,k=!0,J+=this.writeChildNode(C,w,x+1),w.suppressPrettyCount--,k=!1,w.state=E.CloseTag,J+="</"+u.name+">"+this.endline(u,w,x);else{if(w.dontPrettyTextNodes){for(D=u.children,S=0,A=D.length;S<A;S++)if(P=D[S],(P.type===M.Text||P.type===M.Raw)&&P.value!=null){w.suppressPrettyCount++,k=!0;break}}for(J+=">"+this.endline(u,w,x),w.state=E.InsideTag,H=u.children,_=0,j=H.length;_<j;_++)P=H[_],J+=this.writeChildNode(P,w,x+1);w.state=E.CloseTag,J+=this.indent(u,w,x)+"</"+u.name+">",k&&w.suppressPrettyCount--,J+=this.endline(u,w,x),w.state=E.None}return this.closeNode(u,w,x),J},s.prototype.writeChildNode=function(u,w,x){switch(u.type){case M.CData:return this.cdata(u,w,x);case M.Comment:return this.comment(u,w,x);case M.Element:return this.element(u,w,x);case M.Raw:return this.raw(u,w,x);case M.Text:return this.text(u,w,x);case M.ProcessingInstruction:return this.processingInstruction(u,w,x);case M.Dummy:return"";case M.Declaration:return this.declaration(u,w,x);case M.DocType:return this.docType(u,w,x);case M.AttributeDeclaration:return this.dtdAttList(u,w,x);case M.ElementDeclaration:return this.dtdElement(u,w,x);case M.EntityDeclaration:return this.dtdEntity(u,w,x);case M.NotationDeclaration:return this.dtdNotation(u,w,x);default:throw new Error("Unknown XML node type: "+u.constructor.name)}},s.prototype.processingInstruction=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<?",w.state=E.InsideTag,b+=u.target,u.value&&(b+=" "+u.value),w.state=E.CloseTag,b+=w.spaceBeforeSlash+"?>",b+=this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.raw=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x),w.state=E.InsideTag,b+=u.value,w.state=E.CloseTag,b+=this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.text=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x),w.state=E.InsideTag,b+=u.value,w.state=E.CloseTag,b+=this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.dtdAttList=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<!ATTLIST",w.state=E.InsideTag,b+=" "+u.elementName+" "+u.attributeName+" "+u.attributeType,u.defaultValueType!=="#DEFAULT"&&(b+=" "+u.defaultValueType),u.defaultValue&&(b+=' "'+u.defaultValue+'"'),w.state=E.CloseTag,b+=w.spaceBeforeSlash+">"+this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.dtdElement=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<!ELEMENT",w.state=E.InsideTag,b+=" "+u.name+" "+u.value,w.state=E.CloseTag,b+=w.spaceBeforeSlash+">"+this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.dtdEntity=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<!ENTITY",w.state=E.InsideTag,u.pe&&(b+=" %"),b+=" "+u.name,u.value?b+=' "'+u.value+'"':(u.pubID&&u.sysID?b+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.sysID&&(b+=' SYSTEM "'+u.sysID+'"'),u.nData&&(b+=" NDATA "+u.nData)),w.state=E.CloseTag,b+=w.spaceBeforeSlash+">"+this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.dtdNotation=function(u,w,x){var b;return this.openNode(u,w,x),w.state=E.OpenTag,b=this.indent(u,w,x)+"<!NOTATION",w.state=E.InsideTag,b+=" "+u.name,u.pubID&&u.sysID?b+=' PUBLIC "'+u.pubID+'" "'+u.sysID+'"':u.pubID?b+=' PUBLIC "'+u.pubID+'"':u.sysID&&(b+=' SYSTEM "'+u.sysID+'"'),w.state=E.CloseTag,b+=w.spaceBeforeSlash+">"+this.endline(u,w,x),w.state=E.None,this.closeNode(u,w,x),b},s.prototype.openNode=function(u,w,x){},s.prototype.closeNode=function(u,w,x){},s.prototype.openAttribute=function(u,w,x){},s.prototype.closeAttribute=function(u,w,x){},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(N,Y,i){"use strict";(function(){var M,E,T,v,m,y,O,g,e,f;f=N("./Utility"),g=f.assign,e=f.isFunction,T=N("./XMLDOMImplementation"),v=N("./XMLDocument"),m=N("./XMLDocumentCB"),O=N("./XMLStringWriter"),y=N("./XMLStreamWriter"),M=N("./NodeType"),E=N("./WriterState"),Y.exports.create=function(r,c,n,a){var o,l;if(r==null)throw new Error("Root element needs a name.");return a=g({},c,n,a),o=new v(a),l=o.element(r),a.headless||(o.declaration(a),(a.pubID!=null||a.sysID!=null)&&o.dtd(a)),l},Y.exports.begin=function(r,c,n){var a;return e(r)&&(a=[r,c],c=a[0],n=a[1],r={}),c?new m(r,c,n):new v(r)},Y.exports.stringWriter=function(r){return new O(r)},Y.exports.streamWriter=function(r,c){return new y(r,c)},Y.exports.implementation=new T,Y.exports.nodeType=M,Y.exports.writerState=E}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(N,Y,i){Y.exports=E;var M=Object.prototype.hasOwnProperty;function E(){for(var T={},v=0;v<arguments.length;v++){var m=arguments[v];for(var y in m)M.call(m,y)&&(T[y]=m[y])}return T}},{}],284:[function(N,Y,i){"use strict";var M=N("buffer").Buffer,E=N("./sha"),T=N("./md5"),v={sha1:E,md5:T},m=64,y=M.alloc(m);y.fill(0);function O(f,r,c){M.isBuffer(r)||(r=M.from(r)),M.isBuffer(c)||(c=M.from(c)),r.length>m?r=f(r):r.length<m&&(r=M.concat([r,y],m));for(var n=M.alloc(m),a=M.alloc(m),o=0;o<m;o++)n[o]=r[o]^54,a[o]=r[o]^92;var l=f(M.concat([n,c]));return f(M.concat([a,l]))}function g(f,r){f=f||"sha1";var c=v[f],n=[],a=0;return c||e("algorithm:",f,"is not yet supported"),{update:function(l){return M.isBuffer(l)||(l=M.from(l)),n.push(l),a+=l.length,this},digest:function(l){var d=M.concat(n),h=r?O(c,r,d):c(d);return n=null,l?h.toString(l):h}}}function e(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}i.createHash=function(f){return g(f)},i.createHmac=function(f,r){return g(f,r)},i.createCredentials=function(){e("sorry,createCredentials is not implemented yet")},i.createCipher=function(){e("sorry,createCipher is not implemented yet")},i.createCipheriv=function(){e("sorry,createCipheriv is not implemented yet")},i.createDecipher=function(){e("sorry,createDecipher is not implemented yet")},i.createDecipheriv=function(){e("sorry,createDecipheriv is not implemented yet")},i.createSign=function(){e("sorry,createSign is not implemented yet")},i.createVerify=function(){e("sorry,createVerify is not implemented yet")},i.createDiffieHellman=function(){e("sorry,createDiffieHellman is not implemented yet")},i.pbkdf2=function(){e("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(N,Y,i){"use strict";var M=N("buffer").Buffer,E=4,T=M.alloc(E);T.fill(0);var v=8;function m(g,e){if(g.length%E!==0){var f=g.length+(E-g.length%E);g=M.concat([g,T],f)}for(var r=[],c=e?g.readInt32BE:g.readInt32LE,n=0;n<g.length;n+=E)r.push(c.call(g,n));return r}function y(g,e,f){for(var r=M.alloc(e),c=f?r.writeInt32BE:r.writeInt32LE,n=0;n<g.length;n++)c.call(r,g[n],n*4,!0);return r}function O(g,e,f,r){M.isBuffer(g)||(g=M.from(g));var c=e(m(g,r),g.length*v);return y(c,f,r)}Y.exports={hash:O}},{buffer:73}],286:[function(N,Y,i){"use strict";var M=N("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function T(r,c){r[c>>5]|=128<<c%32,r[(c+64>>>9<<4)+14]=c;for(var n=1732584193,a=-271733879,o=-1732584194,l=271733878,d=0;d<r.length;d+=16){var h=n,s=a,u=o,w=l;n=m(n,a,o,l,r[d+0],7,-680876936),l=m(l,n,a,o,r[d+1],12,-389564586),o=m(o,l,n,a,r[d+2],17,606105819),a=m(a,o,l,n,r[d+3],22,-1044525330),n=m(n,a,o,l,r[d+4],7,-176418897),l=m(l,n,a,o,r[d+5],12,1200080426),o=m(o,l,n,a,r[d+6],17,-1473231341),a=m(a,o,l,n,r[d+7],22,-45705983),n=m(n,a,o,l,r[d+8],7,1770035416),l=m(l,n,a,o,r[d+9],12,-1958414417),o=m(o,l,n,a,r[d+10],17,-42063),a=m(a,o,l,n,r[d+11],22,-1990404162),n=m(n,a,o,l,r[d+12],7,1804603682),l=m(l,n,a,o,r[d+13],12,-40341101),o=m(o,l,n,a,r[d+14],17,-1502002290),a=m(a,o,l,n,r[d+15],22,1236535329),n=y(n,a,o,l,r[d+1],5,-165796510),l=y(l,n,a,o,r[d+6],9,-1069501632),o=y(o,l,n,a,r[d+11],14,643717713),a=y(a,o,l,n,r[d+0],20,-373897302),n=y(n,a,o,l,r[d+5],5,-701558691),l=y(l,n,a,o,r[d+10],9,38016083),o=y(o,l,n,a,r[d+15],14,-660478335),a=y(a,o,l,n,r[d+4],20,-405537848),n=y(n,a,o,l,r[d+9],5,568446438),l=y(l,n,a,o,r[d+14],9,-1019803690),o=y(o,l,n,a,r[d+3],14,-187363961),a=y(a,o,l,n,r[d+8],20,1163531501),n=y(n,a,o,l,r[d+13],5,-1444681467),l=y(l,n,a,o,r[d+2],9,-51403784),o=y(o,l,n,a,r[d+7],14,1735328473),a=y(a,o,l,n,r[d+12],20,-1926607734),n=O(n,a,o,l,r[d+5],4,-378558),l=O(l,n,a,o,r[d+8],11,-2022574463),o=O(o,l,n,a,r[d+11],16,1839030562),a=O(a,o,l,n,r[d+14],23,-35309556),n=O(n,a,o,l,r[d+1],4,-1530992060),l=O(l,n,a,o,r[d+4],11,1272893353),o=O(o,l,n,a,r[d+7],16,-155497632),a=O(a,o,l,n,r[d+10],23,-1094730640),n=O(n,a,o,l,r[d+13],4,681279174),l=O(l,n,a,o,r[d+0],11,-358537222),o=O(o,l,n,a,r[d+3],16,-722521979),a=O(a,o,l,n,r[d+6],23,76029189),n=O(n,a,o,l,r[d+9],4,-640364487),l=O(l,n,a,o,r[d+12],11,-421815835),o=O(o,l,n,a,r[d+15],16,530742520),a=O(a,o,l,n,r[d+2],23,-995338651),n=g(n,a,o,l,r[d+0],6,-198630844),l=g(l,n,a,o,r[d+7],10,1126891415),o=g(o,l,n,a,r[d+14],15,-1416354905),a=g(a,o,l,n,r[d+5],21,-57434055),n=g(n,a,o,l,r[d+12],6,1700485571),l=g(l,n,a,o,r[d+3],10,-1894986606),o=g(o,l,n,a,r[d+10],15,-1051523),a=g(a,o,l,n,r[d+1],21,-2054922799),n=g(n,a,o,l,r[d+8],6,1873313359),l=g(l,n,a,o,r[d+15],10,-30611744),o=g(o,l,n,a,r[d+6],15,-1560198380),a=g(a,o,l,n,r[d+13],21,1309151649),n=g(n,a,o,l,r[d+4],6,-145523070),l=g(l,n,a,o,r[d+11],10,-1120210379),o=g(o,l,n,a,r[d+2],15,718787259),a=g(a,o,l,n,r[d+9],21,-343485551),n=e(n,h),a=e(a,s),o=e(o,u),l=e(l,w)}return Array(n,a,o,l)}function v(r,c,n,a,o,l){return e(f(e(e(c,r),e(a,l)),o),n)}function m(r,c,n,a,o,l,d){return v(c&n|~c&a,r,c,o,l,d)}function y(r,c,n,a,o,l,d){return v(c&a|n&~a,r,c,o,l,d)}function O(r,c,n,a,o,l,d){return v(c^n^a,r,c,o,l,d)}function g(r,c,n,a,o,l,d){return v(n^(c|~a),r,c,o,l,d)}function e(r,c){var n=(r&65535)+(c&65535),a=(r>>16)+(c>>16)+(n>>16);return a<<16|n&65535}function f(r,c){return r<<c|r>>>32-c}Y.exports=function(c){return M.hash(c,T,16)}},{"./helpers":285}],287:[function(N,Y,i){"use strict";var M=N("./helpers");function E(O,g){O[g>>5]|=128<<24-g%32,O[(g+64>>9<<4)+15]=g;for(var e=Array(80),f=1732584193,r=-271733879,c=-1732584194,n=271733878,a=-1009589776,o=0;o<O.length;o+=16){for(var l=f,d=r,h=c,s=n,u=a,w=0;w<80;w++){w<16?e[w]=O[o+w]:e[w]=y(e[w-3]^e[w-8]^e[w-14]^e[w-16],1);var x=m(m(y(f,5),T(w,r,c,n)),m(m(a,e[w]),v(w)));a=n,n=c,c=y(r,30),r=f,f=x}f=m(f,l),r=m(r,d),c=m(c,h),n=m(n,s),a=m(a,u)}return Array(f,r,c,n,a)}function T(O,g,e,f){return O<20?g&e|~g&f:O<40?g^e^f:O<60?g&e|g&f|e&f:g^e^f}function v(O){return O<20?1518500249:O<40?1859775393:O<60?-1894007588:-899497514}function m(O,g){var e=(O&65535)+(g&65535),f=(O>>16)+(g>>16)+(e>>16);return f<<16|e&65535}function y(O,g){return O<<g|O>>>32-g}Y.exports=function(g){return M.hash(g,E,20,!0)}},{"./helpers":285}],288:[function(N,Y,i){"use strict";Y.exports=function(){return function(){}}},{}],289:[function(N,Y,i){(function(M){"use strict";var E=N("babel-runtime/helpers/typeof"),T=v(E);function v(f){return f&&f.__esModule?f:{default:f}}var m=N("stream"),y=m.Stream,O=N("../lib/common/utils/isArray"),g=O.isArray;Y.exports.string=function(r){return typeof r=="string"},Y.exports.array=g,Y.exports.buffer=M.isBuffer;function e(f){return f instanceof y}Y.exports.writableStream=function(r){return e(r)&&typeof r._write=="function"&&(0,T.default)(r._writableState)==="object"}}).call(this,{isBuffer:N("../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(N,Y,i){"use strict";i.encodeURIComponent=function(M){try{return encodeURIComponent(M)}catch(E){return M}},i.escape=N("escape-html"),i.timestamp=function(E){if(E){var T=E;return typeof T=="string"&&(T=Number(T)),String(E).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(N,Y,i){(function(M,E){"use strict";var T=N("babel-runtime/core-js/json/stringify"),v=O(T),m=N("babel-runtime/helpers/typeof"),y=O(m);function O(w){return w&&w.__esModule?w:{default:w}}var g=N("util"),e=N("url"),f=N("http"),r=N("https"),c=N("debug")("urllib"),n=N("humanize-ms"),a,o=0,l=Math.pow(2,31)-10,d=/^https?:\/\//i;function h(w,x){return w===void 0?x:w}function s(w,x){return function(b,P,R){if(b)return x(b);w({data:P,status:R.statusCode,headers:R.headers,res:R})}}i.TIMEOUTS=[n("300s"),n("300s")];var u=["json","text"];i.request=function(x,b,P){return arguments.length===2&&typeof b=="function"&&(P=b,b=null),typeof P=="function"?i.requestWithCallback(x,b,P):(a||(a=N("any-promise")),new a(function(R,C){i.requestWithCallback(x,b,s(R,C))}))},i.requestWithCallback=function(x,b,P){if(!x||typeof x!="string"&&(typeof x=="undefined"?"undefined":(0,y.default)(x))!=="object"){var R=g.format("expect request url to be a string or a http request options, but got %j",x);throw new Error(R)}arguments.length===2&&typeof b=="function"&&(P=b,b=null),b=b||{},o>=l&&(o=0);var C=++o;b.requestUrls=b.requestUrls||[];var S={requestId:C,url:x,args:b,ctx:b.ctx};b.emitter&&b.emitter.emit("request",S),b.timeout=b.timeout||i.TIMEOUTS,b.maxRedirects=b.maxRedirects||10,b.streaming=b.streaming||b.customResponse;var _=Date.now(),A;typeof x=="string"?(d.test(x)||(x="http://"+x),A=e.parse(x)):A=x;var j=(b.type||b.method||A.method||"GET").toUpperCase(),I=A.port||80,k=f,J=h(b.agent,i.agent),G=b.fixJSONCtlChars;A.protocol==="https:"&&(k=r,J=h(b.httpsAgent,i.httpsAgent),A.port||(I=443));var D={host:A.hostname||A.host||"localhost",path:A.path||"/",method:j,port:I,agent:J,headers:b.headers||{},lookup:b.lookup};Array.isArray(b.timeout)?D.requestTimeout=b.timeout[b.timeout.length-1]:typeof b.timeout!="undefined"&&(D.requestTimeout=b.timeout);for(var H=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],W=0;W<H.length;W++){var L=H[W];b.hasOwnProperty(L)&&(D[L]=b[L])}D.rejectUnauthorized===!1&&!D.hasOwnProperty("secureOptions")&&(D.secureOptions=N("constants").SSL_OP_NO_TLSv1_2);var z=b.auth||A.auth;z&&(D.auth=z);var ie=b.content||b.data,ce=j==="GET"||j==="HEAD"||b.dataAsQueryString;if(!b.content&&(ie&&!(typeof ie=="string"||E.isBuffer(ie))))if(ce)ie=b.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie);else{var ue=D.headers["Content-Type"]||D.headers["content-type"];ue||(b.contentType==="json"?ue="application/json":ue="application/x-www-form-urlencoded",D.headers["Content-Type"]=ue),parseContentType(ue).type==="application/json"?ie=(0,v.default)(ie):ie=b.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie)}ce&&ie&&(D.path+=(A.query?"&":"?")+ie,ie=null);var xe=0;if(ie){var Te=ie.length;E.isBuffer(ie)||(Te=E.byteLength(ie)),xe=D.headers["Content-Length"]=Te}b.dataType==="json"&&(D.headers.Accept="application/json"),typeof b.beforeRequest=="function"&&b.beforeRequest(D);var de=null,ve=null,_e=null,le=!1,ee=!1,U=0,K=-1,X=!1,Q="",te="",ae=null;b.timing&&(ae={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function re(){de&&(clearTimeout(de),de=null)}function $(){ve&&(clearTimeout(ve),ve=null)}function Z(ke,lt,Mt){if($(),!P){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),C,M.pid,D.method,x),ke&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),C,M.pid,ke.name,ke.message,ke.stack);return}var Ce=P;P=null;var he={};if(Mt&&(K=Mt.statusCode,he=Mt.headers),K===401&&he["www-authenticate"]&&(!b.headers||!b.headers.Authorization)&&b.digestAuth){var be=he["www-authenticate"];if(be.indexOf("Digest ")>=0)return c("Request#%d %s: got digest auth header WWW-Authenticate: %s",C,x,be),b.headers=b.headers||{},b.headers.Authorization=digestAuthHeader(D.method,D.path,be,b.digestAuth),c("Request#%d %s: auth with digest header: %s",C,x,b.headers.Authorization),Mt.headers["set-cookie"]&&(b.headers.Cookie=Mt.headers["set-cookie"].join(";")),i.requestWithCallback(x,b,Ce)}var Ee=Date.now()-_;ae&&(ae.contentDownload=Ee),c("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ee,U,K,D.method,D.host,D.path,ee,ae);var Ne={status:K,statusCode:K,headers:he,size:U,aborted:X,rt:Ee,keepAliveSocket:ee,data:lt,requestUrls:b.requestUrls,timing:ae,remoteAddress:Q,remotePort:te};if(ke){var we="";J&&typeof J.getCurrentStatus=="function"&&(we=", agent status: "+(0,v.default)(J.getCurrentStatus())),ke.message+=", "+D.method+" "+x+" "+K+" (connected: "+le+", keepalive socket: "+ee+we+`)
headers: `+(0,v.default)(he),ke.data=lt,ke.path=D.path,ke.status=K,ke.headers=he,ke.res=Ne}Ce(ke,lt,b.streaming?Mt:Ne),b.emitter&&(S.url=x,S.socket=dt&&dt.connection,S.options=D,S.size=xe,b.emitter.emit("response",{requestId:C,error:ke,ctx:b.ctx,req:S,res:Ne}))}function fe(ke){var lt=null;if(b.followRedirect&&statuses.redirect[ke.statusCode]){b._followRedirectCount=(b._followRedirectCount||0)+1;var Mt=ke.headers.location;if(!Mt)lt=new Error("Got statusCode "+ke.statusCode+" but cannot resolve next location from headers"),lt.name="FollowRedirectError";else if(b._followRedirectCount>b.maxRedirects)lt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+x),lt.name="MaxRedirectError";else{var Ce=b.formatRedirectUrl?b.formatRedirectUrl(x,Mt):e.resolve(x,Mt);c("Request#%d %s: `redirected` from %s to %s",C,D.path,x,Ce),$(),b.headers&&b.headers.Host&&d.test(Mt)&&(b.headers.Host=null);var he=P;return P=null,i.requestWithCallback(Ce,b,he),{redirect:!0,error:null}}}return{redirect:!1,error:lt}}!D.headers["User-Agent"]&&!D.headers["user-agent"]&&(D.headers["User-Agent"]=navigator.userAgent),b.gzip&&(!D.headers["Accept-Encoding"]&&!D.headers["accept-encoding"]&&(D.headers["Accept-Encoding"]="gzip"));function me(ke,lt,Mt){var Ce=ke.headers["content-encoding"];return Mt(null,lt,Ce)}var Oe=b.writeStream;c("Request#%d %s %s with headers %j, options.path: %s",C,j,x,D.headers,D.path),b.requestUrls.push(x);function He(ke){if(ae&&(ae.waiting=Date.now()-_),c("Request#%d %s `req response` event emit: status %d, headers: %j",C,x,ke.statusCode,ke.headers),b.streaming){var lt=fe(ke);if(lt.redirect){ke.resume();return}return lt.error?(ke.resume(),Z(lt.error,null,ke)):Z(null,null,ke)}if(ke.on("close",function(){c("Request#%d %s: `res close` event emit, total size %d",C,x,U)}),ke.on("error",function(){c("Request#%d %s: `res error` event emit, total size %d",C,x,U)}),ke.on("aborted",function(){X=!0,c("Request#%d %s: `res aborted` event emit, total size %d",C,x,U)}),Oe){var lt=fe(ke);if(lt.redirect){ke.resume();return}return lt.error?(ke.resume(),Oe.end(),Z(lt.error,null,ke)):(b.consumeWriteStream===!1?ke.on("end",Z.bind(null,null,null,ke)):isNode010||isNode012?first([[Oe,"close"],[ke,"aborted"]],function(he,be,Ee){c("Request#%d %s: writeStream or res %s event emitted",C,x,Ee),Z(_e||null,null,ke)}):Oe.on("close",function(){c("Request#%d %s: writeStream close event emitted",C,x),Z(_e||null,null,ke)}),ke.pipe(Oe))}var Mt=[];ke.on("data",function(Ce){c("Request#%d %s: `res data` event emit, size %d",C,x,Ce.length),U+=Ce.length,Mt.push(Ce)}),ke.on("end",function(){var Ce=E.concat(Mt,U);if(c("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",C,x,U,ke._dumped),_e)return Z(_e,Ce,ke);var he=fe(ke);if(he.error)return Z(he.error,Ce,ke);if(he.redirect)return;me(ke,Ce,function(be,Ee,Ne){if(be)return Z(be,Ce,ke);if(!Ne&&u.indexOf(b.dataType)>=0){try{Ee=decodeBodyByCharset(Ee,ke)}catch(Ae){return c("decodeBodyByCharset error: %s",Ae),Z(null,Ee,ke)}if(b.dataType==="json")if(U===0)Ee=null;else{var we=parseJSON(Ee,G);we.error?be=we.error:Ee=we.data}}X&&c("Request#%d %s: Remote socket was terminated before `response.end()` was called",C,x),Z(be,Ee,ke)})})}var Qe,ot;Array.isArray(b.timeout)?(Qe=n(b.timeout[0]),ot=n(b.timeout[1])):Qe=ot=n(b.timeout),c("ConnectTimeout: %d, ResponseTimeout: %d",Qe,ot);function st(){c("Connect timer ticking, timeout: %d",Qe),de=setTimeout(function(){de=null,K===-1&&(K=-2);var ke="Connect timeout for "+Qe+"ms",lt="ConnectionTimeoutError";dt.socket||(lt="SocketAssignTimeoutError",ke+=", working sockets is full"),_e=new Error(ke),_e.name=lt,_e.requestId=C,c("ConnectTimeout: Request#%d %s %s: %s, connected: %s",C,x,_e.name,ke,le),Xe()},Qe)}function ct(){c("Response timer ticking, timeout: %d",ot),ve=setTimeout(function(){ve=null;var ke="Response timeout for "+ot+"ms",lt="ResponseTimeoutError";_e=new Error(ke),_e.name=lt,_e.requestId=C,c("ResponseTimeout: Request#%d %s %s: %s, connected: %s",C,x,_e.name,ke,le),Xe()},ot)}var dt;D.mode=b.mode?b.mode:"";try{dt=k.request(D,He)}catch(ke){return Z(ke)}typeof window=="undefined"?st():dt.on("requestTimeout",function(){K===-1&&(K=-2);var ke="Connect timeout for "+Qe+"ms",lt="ConnectionTimeoutError";_e=new Error(ke),_e.name=lt,_e.requestId=C,Xe()});function Xe(){c("Request#%d %s abort, connected: %s",C,x,le),dt.socket||(_e.noSocket=!0,Z(_e)),dt.abort()}return ae&&dt.on("finish",function(){ae.requestSent=Date.now()-_}),dt.once("socket",function(ke){ae&&(ae.queuing=Date.now()-_),isNode010&&ke.socket&&(ke=ke.socket);var lt=ke.readyState;if(lt==="opening"){ke.once("lookup",function(Mt,Ce,he){c("Request#%d %s lookup: %s, %s, %s",C,x,Mt,Ce,he),ae&&(ae.dnslookup=Date.now()-_),Ce&&(Q=Ce)}),ke.once("connect",function(){ae&&(ae.connected=Date.now()-_),re(),ct(),c("Request#%d %s new socket connected",C,x),le=!0,Q||(Q=ke.remoteAddress),te=ke.remotePort});return}c("Request#%d %s reuse socket connected, readyState: %s",C,x,lt),le=!0,ee=!0,Q||(Q=ke.remoteAddress),te=ke.remotePort,re(),ct()}),dt.on("error",function(ke){(ke.name==="Error"||ke.name==="TypeError")&&(ke.name=le?"ResponseError":"RequestError"),ke.message+=' (req "error")',c("Request#%d %s `req error` event emit, %s: %s",C,x,ke.name,ke.message),Z(_e||ke)}),Oe&&Oe.once("error",function(ke){ke.message+=' (writeStream "error")',_e=ke,c("Request#%d %s `writeStream error` event emit, %s: %s",C,x,ke.name,ke.message),Xe()}),b.stream?(b.stream.pipe(dt),b.stream.once("error",function(ke){ke.message+=' (stream "error")',_e=ke,c("Request#%d %s `readStream error` event emit, %s: %s",C,x,ke.name,ke.message),Xe()})):dt.end(ie),dt.requestId=C,dt}}).call(this,N("_process"),N("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(N,Y,i){"use strict";i.d(Y,"a",function(){return g});var M=i("q1tI"),E=i("biw7"),T=i("fyJ8");function v(e){var f=e.className,r=e.index,c=e.children,n=e.colSpan,a=e.rowSpan,o=M.useContext(E.a),l=o.prefixCls,d=o.fixedInfoList,h=d[r];return M.createElement(T.a,Object.assign({className:f,index:r,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:c,props:{colSpan:n,rowSpan:a}}}},h))}function m(e){return M.createElement("tr",Object.assign({},e))}function y(e){var f=e.children,r=M.useContext(E.a),c=r.prefixCls;return M.createElement("tfoot",{className:"".concat(c,"-summary")},f)}var O=Y.b=y,g={Cell:v,Row:m}},nEHx:function(N,Y,i){"use strict";i.d(Y,"a",function(){return M});var M;(function(E){E.DARK="dark",E.LIGHT="light",E.HIGH_CONTRAST="hc"})(M||(M={}))},nKGa:function(N,Y,i){N.exports=i.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(N,Y,i){"use strict";i.d(Y,"a",function(){return jl}),i.d(Y,"b",function(){return Dl}),i.d(Y,"c",function(){return Rl});var M=i("q1tI"),E=i.n(M),T=i("dI71"),v=i("wx14"),m=i("ANjH"),y=i("/MKj");function O(q,ne){if(q.length!==ne.length)return!1;for(var se=0;se<q.length;se++)if(q[se]!==ne[se])return!1;return!0}function g(q,ne){var se=Object(M.useState)(function(){return{inputs:ne,result:q()}})[0],ge=Object(M.useRef)(!0),Ie=Object(M.useRef)(se),Le=ge.current||Boolean(ne&&Ie.current.inputs&&O(ne,Ie.current.inputs)),Ke=Le?Ie.current:{inputs:ne,result:q()};return Object(M.useEffect)(function(){ge.current=!1,Ie.current=Ke},[Ke]),Ke.result}function e(q,ne){return g(function(){return q},ne)}var f=g,r=e,c=i("9R94"),n=function(ne){var se=ne.top,ge=ne.right,Ie=ne.bottom,Le=ne.left,Ke=ge-Le,Ge=Ie-se,ft={top:se,right:ge,bottom:Ie,left:Le,width:Ke,height:Ge,x:Le,y:se,center:{x:(ge+Le)/2,y:(Ie+se)/2}};return ft},a=function(ne,se){return{top:ne.top-se.top,left:ne.left-se.left,bottom:ne.bottom+se.bottom,right:ne.right+se.right}},o=function(ne,se){return{top:ne.top+se.top,left:ne.left+se.left,bottom:ne.bottom-se.bottom,right:ne.right-se.right}},l=function(ne,se){return{top:ne.top+se.y,left:ne.left+se.x,bottom:ne.bottom+se.y,right:ne.right+se.x}},d={top:0,right:0,bottom:0,left:0},h=function(ne){var se=ne.borderBox,ge=ne.margin,Ie=ge===void 0?d:ge,Le=ne.border,Ke=Le===void 0?d:Le,Ge=ne.padding,ft=Ge===void 0?d:Ge,Dt=n(a(se,Ie)),Rt=n(o(se,Ke)),gt=n(o(Rt,ft));return{marginBox:Dt,borderBox:n(se),paddingBox:Rt,contentBox:gt,margin:Ie,border:Ke,padding:ft}},s=function(ne){var se=ne.slice(0,-2),ge=ne.slice(-2);if(ge!=="px")return 0;var Ie=Number(se);return isNaN(Ie)&&Object(c.a)(!1),Ie},u=function(){return{x:window.pageXOffset,y:window.pageYOffset}},w=function(ne,se){var ge=ne.borderBox,Ie=ne.border,Le=ne.margin,Ke=ne.padding,Ge=l(ge,se);return h({borderBox:Ge,border:Ie,margin:Le,padding:Ke})},x=function(ne,se){return se===void 0&&(se=u()),w(ne,se)},b=function(ne,se){var ge={top:s(se.marginTop),right:s(se.marginRight),bottom:s(se.marginBottom),left:s(se.marginLeft)},Ie={top:s(se.paddingTop),right:s(se.paddingRight),bottom:s(se.paddingBottom),left:s(se.paddingLeft)},Le={top:s(se.borderTopWidth),right:s(se.borderRightWidth),bottom:s(se.borderBottomWidth),left:s(se.borderLeftWidth)};return h({borderBox:ne,margin:ge,padding:Ie,border:Le})},P=function(ne){var se=ne.getBoundingClientRect(),ge=window.getComputedStyle(ne);return b(se,ge)},R=Number.isNaN||function(ne){return typeof ne=="number"&&ne!==ne};function C(q,ne){return q===ne?!0:!!(R(q)&&R(ne))}function S(q,ne){if(q.length!==ne.length)return!1;for(var se=0;se<q.length;se++)if(!C(q[se],ne[se]))return!1;return!0}function _(q,ne){ne===void 0&&(ne=S);var se,ge=[],Ie,Le=!1;function Ke(){for(var Ge=[],ft=0;ft<arguments.length;ft++)Ge[ft]=arguments[ft];return Le&&se===this&&ne(Ge,ge)||(Ie=q.apply(this,Ge),Le=!0,se=this,ge=Ge),Ie}return Ke}var A=_,j=function(ne){var se=[],ge=null,Ie=function(){for(var Ke=arguments.length,Ge=new Array(Ke),ft=0;ft<Ke;ft++)Ge[ft]=arguments[ft];if(se=Ge,ge)return;ge=requestAnimationFrame(function(){ge=null,ne.apply(void 0,se)})};return Ie.cancel=function(){if(!ge)return;cancelAnimationFrame(ge),ge=null},Ie},I=j,k=i("i8i4"),J=i.n(k),G=!0,D=/[ \t]{2,}/g,H=/^[ \t]*/gm,W=function(ne){return ne.replace(D," ").replace(H,"").trim()},L=function(ne){return W(`
%creact-beautiful-dnd
%c`+W(ne)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},z=function(ne){return[L(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ie="__react-beautiful-dnd-disable-dev-warnings";function ce(q,ne){var se;if(G)return;if(typeof window!="undefined"&&window[ie])return;(se=console)[q].apply(se,z(ne))}var ue=ce.bind(null,"warn"),xe=ce.bind(null,"error");function Te(){}function de(q,ne){return Object(v.a)({},q,{},ne)}function ve(q,ne,se){var ge=ne.map(function(Ie){var Le=de(se,Ie.options);return q.addEventListener(Ie.eventName,Ie.fn,Le),function(){q.removeEventListener(Ie.eventName,Ie.fn,Le)}});return function(){ge.forEach(function(Le){Le()})}}var _e=!0,le="Invariant failed";function ee(q){this.message=q}ee.prototype.toString=function(){return this.message};function U(q,ne){if(q)return;throw _e?new ee(le):new ee(le+": "+(ne||""))}var K=function(q){Object(T.a)(ne,q);function ne(){for(var ge,Ie=arguments.length,Le=new Array(Ie),Ke=0;Ke<Ie;Ke++)Le[Ke]=arguments[Ke];return ge=q.call.apply(q,[this].concat(Le))||this,ge.callbacks=null,ge.unbind=Te,ge.onWindowError=function(Ge){var ft=ge.getCallbacks();ft.isDragging()&&ft.tryAbort();var Dt=Ge.error;Dt instanceof ee&&Ge.preventDefault()},ge.getCallbacks=function(){if(!ge.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ge.callbacks},ge.setCallbacks=function(Ge){ge.callbacks=Ge},ge}var se=ne.prototype;return se.componentDidMount=function(){this.unbind=ve(window,[{eventName:"error",fn:this.onWindowError}])},se.componentWillUnmount=function(){this.unbind()},se.componentDidCatch=function(Ie){if(Ie instanceof ee){this.setState({});return}throw Ie},se.render=function(){return this.props.children(this.setCallbacks)},ne}(E.a.Component),X=`
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
`,Q=function(ne){return ne+1},te=function(ne){return`
You have lifted an item in position `+Q(ne.source.index)+`
`},ae=function(ne,se){var ge=ne.droppableId===se.droppableId,Ie=Q(ne.index),Le=Q(se.index);return ge?`
You have moved the item from position `+Ie+`
to position `+Le+`
`:`
You have moved the item from position `+Ie+`
in list `+ne.droppableId+`
to list `+se.droppableId+`
in position `+Le+`
`},re=function(ne,se,ge){var Ie=se.droppableId===ge.droppableId;return Ie?`
The item `+ne+`
has been combined with `+ge.draggableId:`
The item `+ne+`
in list `+se.droppableId+`
has been combined with `+ge.draggableId+`
in list `+ge.droppableId+`
`},$=function(ne){var se=ne.destination;if(se)return ae(ne.source,se);var ge=ne.combine;return ge?re(ne.draggableId,ne.source,ge):"You are over an area that cannot be dropped on"},Z=function(ne){return`
The item has returned to its starting position
of `+Q(ne.index)+`
`},fe=function(ne){if(ne.reason==="CANCEL")return`
Movement cancelled.
`+Z(ne.source)+`
`;var se=ne.destination,ge=ne.combine;return se?`
You have dropped the item.
`+ae(ne.source,se)+`
`:ge?`
You have dropped the item.
`+re(ne.draggableId,ne.source,ge)+`
`:`
The item has been dropped while not over a drop area.
`+Z(ne.source)+`
`},me={dragHandleUsageInstructions:X,onDragStart:te,onDragUpdate:$,onDragEnd:fe},Oe={x:0,y:0},He=function(ne,se){return{x:ne.x+se.x,y:ne.y+se.y}},Qe=function(ne,se){return{x:ne.x-se.x,y:ne.y-se.y}},ot=function(ne,se){return ne.x===se.x&&ne.y===se.y},st=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},ct=function(ne,se,ge){var Ie;return ge===void 0&&(ge=0),Ie={},Ie[ne]=se,Ie[ne==="x"?"y":"x"]=ge,Ie},dt=function(ne,se){return Math.sqrt(Math.pow(se.x-ne.x,2)+Math.pow(se.y-ne.y,2))},Xe=function(ne,se){return Math.min.apply(Math,se.map(function(ge){return dt(ne,ge)}))},ke=function(ne){return function(se){return{x:ne(se.x),y:ne(se.y)}}},lt=function(q,ne){var se=n({top:Math.max(ne.top,q.top),right:Math.min(ne.right,q.right),bottom:Math.min(ne.bottom,q.bottom),left:Math.max(ne.left,q.left)});return se.width<=0||se.height<=0?null:se},Mt=function(ne,se){return{top:ne.top+se.y,left:ne.left+se.x,bottom:ne.bottom+se.y,right:ne.right+se.x}},Ce=function(ne){return[{x:ne.left,y:ne.top},{x:ne.right,y:ne.top},{x:ne.left,y:ne.bottom},{x:ne.right,y:ne.bottom}]},he={top:0,right:0,bottom:0,left:0},be=function(ne,se){return se?Mt(ne,se.scroll.diff.displacement):ne},Ee=function(ne,se,ge){if(ge&&ge.increasedBy){var Ie;return Object(v.a)({},ne,(Ie={},Ie[se.end]=ne[se.end]+ge.increasedBy[se.line],Ie))}return ne},Ne=function(ne,se){return se&&se.shouldClipSubject?lt(se.pageMarginBox,ne):n(ne)},we=function(q){var ne=q.page,se=q.withPlaceholder,ge=q.axis,Ie=q.frame,Le=be(ne.marginBox,Ie),Ke=Ee(Le,ge,se),Ge=Ne(Ke,Ie);return{page:ne,withPlaceholder:se,active:Ge}},Ae=function(q,ne){q.frame||U(!1);var se=q.frame,ge=Qe(ne,se.scroll.initial),Ie=st(ge),Le=Object(v.a)({},se,{scroll:{initial:se.scroll.initial,current:ne,diff:{value:ge,displacement:Ie},max:se.scroll.max}}),Ke=we({page:q.subject.page,withPlaceholder:q.subject.withPlaceholder,axis:q.axis,frame:Le}),Ge=Object(v.a)({},q,{frame:Le,subject:Ke});return Ge};function Ue(q){return Number.isInteger?Number.isInteger(q):typeof q=="number"&&isFinite(q)&&Math.floor(q)===q}function We(q){return Object.values?Object.values(q):Object.keys(q).map(function(ne){return q[ne]})}function Je(q,ne){if(q.findIndex)return q.findIndex(ne);for(var se=0;se<q.length;se++)if(ne(q[se]))return se;return-1}function $e(q,ne){if(q.find)return q.find(ne);var se=Je(q,ne);return se!==-1?q[se]:void 0}function pt(q){return Array.prototype.slice.call(q)}var Jt=A(function(q){return q.reduce(function(ne,se){return ne[se.descriptor.id]=se,ne},{})}),fn=A(function(q){return q.reduce(function(ne,se){return ne[se.descriptor.id]=se,ne},{})}),qt=A(function(q){return We(q)}),St=A(function(q){return We(q)}),Be=A(function(q,ne){var se=St(ne).filter(function(ge){return q===ge.descriptor.droppableId}).sort(function(ge,Ie){return ge.descriptor.index-Ie.descriptor.index});return se});function at(q){return q.at&&q.at.type==="REORDER"?q.at.destination:null}function it(q){return q.at&&q.at.type==="COMBINE"?q.at.combine:null}var Me=A(function(q,ne){return ne.filter(function(se){return se.descriptor.id!==q.descriptor.id})}),Ve=function(q){var ne=q.isMovingForward,se=q.draggable,ge=q.destination,Ie=q.insideDestination,Le=q.previousImpact;if(!ge.isCombineEnabled)return null;var Ke=at(Le);if(!Ke)return null;function Ge(lr){var fr={type:"COMBINE",combine:{draggableId:lr,droppableId:ge.descriptor.id}};return Object(v.a)({},Le,{at:fr})}var ft=Le.displaced.all,Dt=ft.length?ft[0]:null;if(ne)return Dt?Ge(Dt):null;var Rt=Me(se,Ie);if(!Dt){if(!Rt.length)return null;var gt=Rt[Rt.length-1];return Ge(gt.descriptor.id)}var mt=Je(Rt,function(lr){return lr.descriptor.id===Dt});mt!==-1||U(!1);var Tt=mt-1;if(Tt<0)return null;var cn=Rt[Tt];return Ge(cn.descriptor.id)},xt=function(q,ne){return q.descriptor.droppableId===ne.descriptor.id},_t={point:Oe,value:0},At={invisible:{},visible:{},all:[]},Ot={displaced:At,displacedBy:_t,at:null},Ct=function(q,ne){return function(se){return q<=se&&se<=ne}},Bt=function(q){var ne=Ct(q.top,q.bottom),se=Ct(q.left,q.right);return function(ge){var Ie=ne(ge.top)&&ne(ge.bottom)&&se(ge.left)&&se(ge.right);if(Ie)return!0;var Le=ne(ge.top)||ne(ge.bottom),Ke=se(ge.left)||se(ge.right),Ge=Le&&Ke;if(Ge)return!0;var ft=ge.top<q.top&&ge.bottom>q.bottom,Dt=ge.left<q.left&&ge.right>q.right,Rt=ft&&Dt;if(Rt)return!0;var gt=ft&&Ke||Dt&&Le;return gt}},It=function(q){var ne=Ct(q.top,q.bottom),se=Ct(q.left,q.right);return function(ge){var Ie=ne(ge.top)&&ne(ge.bottom)&&se(ge.left)&&se(ge.right);return Ie}},yt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},zt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},sn=function(q){return function(ne){var se=Ct(ne.top,ne.bottom),ge=Ct(ne.left,ne.right);return function(Ie){return q===yt?se(Ie.top)&&se(Ie.bottom):ge(Ie.left)&&ge(Ie.right)}}},hn=function(ne,se){var ge=se.frame?se.frame.scroll.diff.displacement:Oe;return Mt(ne,ge)},un=function(ne,se,ge){return se.subject.active?ge(se.subject.active)(ne):!1},Kt=function(ne,se,ge){return ge(se)(ne)},gn=function(ne){var se=ne.target,ge=ne.destination,Ie=ne.viewport,Le=ne.withDroppableDisplacement,Ke=ne.isVisibleThroughFrameFn,Ge=Le?hn(se,ge):se;return un(Ge,ge,Ke)&&Kt(Ge,Ie,Ke)},Rn=function(ne){return gn(Object(v.a)({},ne,{isVisibleThroughFrameFn:Bt}))},Cn=function(ne){return gn(Object(v.a)({},ne,{isVisibleThroughFrameFn:It}))},an=function(ne){return gn(Object(v.a)({},ne,{isVisibleThroughFrameFn:sn(ne.destination.axis)}))},_n=function(ne,se,ge){if(typeof ge=="boolean")return ge;if(!se)return!0;var Ie=se.invisible,Le=se.visible;if(Ie[ne])return!1;var Ke=Le[ne];return Ke?Ke.shouldAnimate:!0};function vn(q,ne){var se=q.page.marginBox,ge={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return n(a(se,ge))}function Ft(q){var ne=q.afterDragging,se=q.destination,ge=q.displacedBy,Ie=q.viewport,Le=q.forceShouldAnimate,Ke=q.last;return ne.reduce(function(ft,Dt){var Rt=vn(Dt,ge),gt=Dt.descriptor.id;ft.all.push(gt);var mt=Rn({target:Rt,destination:se,viewport:Ie,withDroppableDisplacement:!0});if(!mt)return ft.invisible[Dt.descriptor.id]=!0,ft;var Tt=_n(gt,Ke,Le),cn={draggableId:gt,shouldAnimate:Tt};return ft.visible[gt]=cn,ft},{all:[],visible:{},invisible:{}})}function Nt(q,ne){if(!q.length)return 0;var se=q[q.length-1].descriptor.index;return ne.inHomeList?se:se+1}function pn(q){var ne=q.insideDestination,se=q.inHomeList,ge=q.displacedBy,Ie=q.destination,Le=Nt(ne,{inHomeList:se});return{displaced:At,displacedBy:ge,at:{type:"REORDER",destination:{droppableId:Ie.descriptor.id,index:Le}}}}function qn(q){var ne=q.draggable,se=q.insideDestination,ge=q.destination,Ie=q.viewport,Le=q.displacedBy,Ke=q.last,Ge=q.index,ft=q.forceShouldAnimate,Dt=xt(ne,ge);if(Ge==null)return pn({insideDestination:se,inHomeList:Dt,displacedBy:Le,destination:ge});var Rt=$e(se,function(lr){return lr.descriptor.index===Ge});if(!Rt)return pn({insideDestination:se,inHomeList:Dt,displacedBy:Le,destination:ge});var gt=Me(ne,se),mt=se.indexOf(Rt),Tt=gt.slice(mt),cn=Ft({afterDragging:Tt,destination:ge,displacedBy:Le,last:Ke,viewport:Ie.frame,forceShouldAnimate:ft});return{displaced:cn,displacedBy:Le,at:{type:"REORDER",destination:{droppableId:ge.descriptor.id,index:Ge}}}}function Qt(q,ne){return Boolean(ne.effected[q])}var Vn=function(q){var ne=q.isMovingForward,se=q.destination,ge=q.draggables,Ie=q.combine,Le=q.afterCritical;if(!se.isCombineEnabled)return null;var Ke=Ie.draggableId,Ge=ge[Ke],ft=Ge.descriptor.index,Dt=Qt(Ke,Le);return Dt?ne?ft:ft-1:ne?ft+1:ft},Gn=function(q){var ne=q.isMovingForward,se=q.isInHomeList,ge=q.insideDestination,Ie=q.location;if(!ge.length)return null;var Le=Ie.index,Ke=ne?Le+1:Le-1,Ge=ge[0].descriptor.index,ft=ge[ge.length-1].descriptor.index,Dt=se?ft:ft+1;return Ke<Ge||Ke>Dt?null:Ke},xr=function(q){var ne=q.isMovingForward,se=q.isInHomeList,ge=q.draggable,Ie=q.draggables,Le=q.destination,Ke=q.insideDestination,Ge=q.previousImpact,ft=q.viewport,Dt=q.afterCritical,Rt=Ge.at;if(Rt||U(!1),Rt.type==="REORDER"){var gt=Gn({isMovingForward:ne,isInHomeList:se,location:Rt.destination,insideDestination:Ke});return gt==null?null:qn({draggable:ge,insideDestination:Ke,destination:Le,viewport:ft,last:Ge.displaced,displacedBy:Ge.displacedBy,index:gt})}var mt=Vn({isMovingForward:ne,destination:Le,displaced:Ge.displaced,draggables:Ie,combine:Rt.combine,afterCritical:Dt});return mt==null?null:qn({draggable:ge,insideDestination:Ke,destination:Le,viewport:ft,last:Ge.displaced,displacedBy:Ge.displacedBy,index:mt})},Sn=function(q){var ne=q.displaced,se=q.afterCritical,ge=q.combineWith,Ie=q.displacedBy,Le=Boolean(ne.visible[ge]||ne.invisible[ge]);return Qt(ge,se)?Le?Oe:st(Ie.point):Le?Ie.point:Oe},Pn=function(q){var ne=q.afterCritical,se=q.impact,ge=q.draggables,Ie=it(se);Ie||U(!1);var Le=Ie.draggableId,Ke=ge[Le].page.borderBox.center,Ge=Sn({displaced:se.displaced,afterCritical:ne,combineWith:Le,displacedBy:se.displacedBy});return He(Ke,Ge)},Yt=function(ne,se){return se.margin[ne.start]+se.borderBox[ne.size]/2},Hr=function(ne,se){return se.margin[ne.end]+se.borderBox[ne.size]/2},ar=function(ne,se,ge){return se[ne.crossAxisStart]+ge.margin[ne.crossAxisStart]+ge.borderBox[ne.crossAxisSize]/2},ma=function(ne){var se=ne.axis,ge=ne.moveRelativeTo,Ie=ne.isMoving;return ct(se.line,ge.marginBox[se.end]+Yt(se,Ie),ar(se,ge.marginBox,Ie))},Br=function(ne){var se=ne.axis,ge=ne.moveRelativeTo,Ie=ne.isMoving;return ct(se.line,ge.marginBox[se.start]-Hr(se,Ie),ar(se,ge.marginBox,Ie))},Na=function(ne){var se=ne.axis,ge=ne.moveInto,Ie=ne.isMoving;return ct(se.line,ge.contentBox[se.start]+Yt(se,Ie),ar(se,ge.contentBox,Ie))},Xa=function(q){var ne=q.impact,se=q.draggable,ge=q.draggables,Ie=q.droppable,Le=q.afterCritical,Ke=Be(Ie.descriptor.id,ge),Ge=se.page,ft=Ie.axis;if(!Ke.length)return Na({axis:ft,moveInto:Ie.page,isMoving:Ge});var Dt=ne.displaced,Rt=ne.displacedBy,gt=Dt.all[0];if(gt){var mt=ge[gt];if(Qt(gt,Le))return Br({axis:ft,moveRelativeTo:mt.page,isMoving:Ge});var Tt=w(mt.page,Rt.point);return Br({axis:ft,moveRelativeTo:Tt,isMoving:Ge})}var cn=Ke[Ke.length-1];if(cn.descriptor.id===se.descriptor.id)return Ge.borderBox.center;if(Qt(cn.descriptor.id,Le)){var lr=w(cn.page,st(Le.displacedBy.point));return ma({axis:ft,moveRelativeTo:lr,isMoving:Ge})}return ma({axis:ft,moveRelativeTo:cn.page,isMoving:Ge})},ua=function(q,ne){var se=q.frame;return se?He(ne,se.scroll.diff.displacement):ne},Zr=function(ne){var se=ne.impact,ge=ne.draggable,Ie=ne.droppable,Le=ne.draggables,Ke=ne.afterCritical,Ge=ge.page.borderBox.center,ft=se.at;return Ie&&ft?ft.type==="REORDER"?Xa({impact:se,draggable:ge,draggables:Le,droppable:Ie,afterCritical:Ke}):Pn({impact:se,draggables:Le,afterCritical:Ke}):Ge},Sr=function(q){var ne=Zr(q),se=q.droppable,ge=se?ua(se,ne):ne;return ge},Oa=function(q,ne){var se=Qe(ne,q.scroll.initial),ge=st(se),Ie=n({top:ne.y,bottom:ne.y+q.frame.height,left:ne.x,right:ne.x+q.frame.width}),Le={frame:Ie,scroll:{initial:q.scroll.initial,max:q.scroll.max,current:ne,diff:{value:se,displacement:ge}}};return Le};function Ma(q,ne){return q.map(function(se){return ne[se]})}function Sa(q,ne){for(var se=0;se<ne.length;se++){var ge=ne[se].visible[q];if(ge)return ge}return null}var ca=function(q){var ne=q.impact,se=q.viewport,ge=q.destination,Ie=q.draggables,Le=q.maxScrollChange,Ke=Oa(se,He(se.scroll.current,Le)),Ge=ge.frame?Ae(ge,He(ge.frame.scroll.current,Le)):ge,ft=ne.displaced,Dt=Ft({afterDragging:Ma(ft.all,Ie),destination:ge,displacedBy:ne.displacedBy,viewport:Ke.frame,last:ft,forceShouldAnimate:!1}),Rt=Ft({afterDragging:Ma(ft.all,Ie),destination:Ge,displacedBy:ne.displacedBy,viewport:se.frame,last:ft,forceShouldAnimate:!1}),gt={},mt={},Tt=[ft,Dt,Rt];ft.all.forEach(function(lr){var fr=Sa(lr,Tt);if(fr){mt[lr]=fr;return}gt[lr]=!0});var cn=Object(v.a)({},ne,{displaced:{all:ft.all,invisible:gt,visible:mt}});return cn},ka=function(q,ne){return He(q.scroll.diff.displacement,ne)},Ga=function(q){var ne=q.pageBorderBoxCenter,se=q.draggable,ge=q.viewport,Ie=ka(ge,ne),Le=Qe(Ie,se.page.borderBox.center);return He(se.client.borderBox.center,Le)},La=function(q){var ne=q.draggable,se=q.destination,ge=q.newPageBorderBoxCenter,Ie=q.viewport,Le=q.withDroppableDisplacement,Ke=q.onlyOnMainAxis,Ge=Ke===void 0?!1:Ke,ft=Qe(ge,ne.page.borderBox.center),Dt=Mt(ne.page.borderBox,ft),Rt={target:Dt,destination:se,withDroppableDisplacement:Le,viewport:Ie};return Ge?an(Rt):Cn(Rt)},Za=function(q){var ne=q.isMovingForward,se=q.draggable,ge=q.destination,Ie=q.draggables,Le=q.previousImpact,Ke=q.viewport,Ge=q.previousPageBorderBoxCenter,ft=q.previousClientSelection,Dt=q.afterCritical;if(!ge.isEnabled)return null;var Rt=Be(ge.descriptor.id,Ie),gt=xt(se,ge),mt=Ve({isMovingForward:ne,draggable:se,destination:ge,insideDestination:Rt,previousImpact:Le})||xr({isMovingForward:ne,isInHomeList:gt,draggable:se,draggables:Ie,destination:ge,insideDestination:Rt,previousImpact:Le,viewport:Ke,afterCritical:Dt});if(!mt)return null;var Tt=Sr({impact:mt,draggable:se,droppable:ge,draggables:Ie,afterCritical:Dt}),cn=La({draggable:se,destination:ge,newPageBorderBoxCenter:Tt,viewport:Ke.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(cn){var lr=Ga({pageBorderBoxCenter:Tt,draggable:se,viewport:Ke});return{clientSelection:lr,impact:mt,scrollJumpRequest:null}}var fr=Qe(Tt,Ge),Pr=ca({impact:mt,viewport:Ke,destination:ge,draggables:Ie,maxScrollChange:fr});return{clientSelection:ft,impact:Pr,scrollJumpRequest:fr}},Ia=function(ne){var se=ne.subject.active;return se||U(!1),se},xa=function(q){var ne=q.isMovingForward,se=q.pageBorderBoxCenter,ge=q.source,Ie=q.droppables,Le=q.viewport,Ke=ge.subject.active;if(!Ke)return null;var Ge=ge.axis,ft=Ct(Ke[Ge.start],Ke[Ge.end]),Dt=qt(Ie).filter(function(gt){return gt!==ge}).filter(function(gt){return gt.isEnabled}).filter(function(gt){return Boolean(gt.subject.active)}).filter(function(gt){return Bt(Le.frame)(Ia(gt))}).filter(function(gt){var mt=Ia(gt);return ne?Ke[Ge.crossAxisEnd]<mt[Ge.crossAxisEnd]:mt[Ge.crossAxisStart]<Ke[Ge.crossAxisStart]}).filter(function(gt){var mt=Ia(gt),Tt=Ct(mt[Ge.start],mt[Ge.end]);return ft(mt[Ge.start])||ft(mt[Ge.end])||Tt(Ke[Ge.start])||Tt(Ke[Ge.end])}).sort(function(gt,mt){var Tt=Ia(gt)[Ge.crossAxisStart],cn=Ia(mt)[Ge.crossAxisStart];return ne?Tt-cn:cn-Tt}).filter(function(gt,mt,Tt){return Ia(gt)[Ge.crossAxisStart]===Ia(Tt[0])[Ge.crossAxisStart]});if(!Dt.length)return null;if(Dt.length===1)return Dt[0];var Rt=Dt.filter(function(gt){var mt=Ct(Ia(gt)[Ge.start],Ia(gt)[Ge.end]);return mt(se[Ge.line])});return Rt.length===1?Rt[0]:Rt.length>1?Rt.sort(function(gt,mt){return Ia(gt)[Ge.start]-Ia(mt)[Ge.start]})[0]:Dt.sort(function(gt,mt){var Tt=Xe(se,Ce(Ia(gt))),cn=Xe(se,Ce(Ia(mt)));return Tt!==cn?Tt-cn:Ia(gt)[Ge.start]-Ia(mt)[Ge.start]})[0]},Fa=function(ne,se){var ge=ne.page.borderBox.center;return Qt(ne.descriptor.id,se)?Qe(ge,se.displacedBy.point):ge},li=function(ne,se){var ge=ne.page.borderBox;return Qt(ne.descriptor.id,se)?Mt(ge,st(se.displacedBy.point)):ge},yi=function(q){var ne=q.pageBorderBoxCenter,se=q.viewport,ge=q.destination,Ie=q.insideDestination,Le=q.afterCritical,Ke=Ie.filter(function(Ge){return Cn({target:li(Ge,Le),destination:ge,viewport:se.frame,withDroppableDisplacement:!0})}).sort(function(Ge,ft){var Dt=dt(ne,ua(ge,Fa(Ge,Le))),Rt=dt(ne,ua(ge,Fa(ft,Le)));return Dt<Rt?-1:Rt<Dt?1:Ge.descriptor.index-ft.descriptor.index});return Ke[0]||null},ga=A(function(ne,se){var ge=se[ne.line];return{value:ge,point:ct(ne.line,ge)}}),va=function(ne,se,ge){var Ie=ne.axis;if(ne.descriptor.mode==="virtual")return ct(Ie.line,se[Ie.line]);var Le=ne.subject.page.contentBox[Ie.size],Ke=Be(ne.descriptor.id,ge),Ge=Ke.reduce(function(Rt,gt){return Rt+gt.client.marginBox[Ie.size]},0),ft=Ge+se[Ie.line],Dt=ft-Le;return Dt<=0?null:ct(Ie.line,Dt)},ya=function(ne,se){return Object(v.a)({},ne,{scroll:Object(v.a)({},ne.scroll,{max:se})})},ye=function(ne,se,ge){var Ie=ne.frame;xt(se,ne)&&U(!1),ne.subject.withPlaceholder&&U(!1);var Le=ga(ne.axis,se.displaceBy).point,Ke=va(ne,Le,ge),Ge={placeholderSize:Le,increasedBy:Ke,oldFrameMaxScroll:ne.frame?ne.frame.scroll.max:null};if(!Ie){var ft=we({page:ne.subject.page,withPlaceholder:Ge,axis:ne.axis,frame:ne.frame});return Object(v.a)({},ne,{subject:ft})}var Dt=Ke?He(Ie.scroll.max,Ke):Ie.scroll.max,Rt=ya(Ie,Dt),gt=we({page:ne.subject.page,withPlaceholder:Ge,axis:ne.axis,frame:Rt});return Object(v.a)({},ne,{subject:gt,frame:Rt})},rt=function(ne){var se=ne.subject.withPlaceholder;se||U(!1);var ge=ne.frame;if(!ge){var Ie=we({page:ne.subject.page,axis:ne.axis,frame:null,withPlaceholder:null});return Object(v.a)({},ne,{subject:Ie})}var Le=se.oldFrameMaxScroll;Le||U(!1);var Ke=ya(ge,Le),Ge=we({page:ne.subject.page,axis:ne.axis,frame:Ke,withPlaceholder:null});return Object(v.a)({},ne,{subject:Ge,frame:Ke})},Et=function(q){var ne=q.previousPageBorderBoxCenter,se=q.moveRelativeTo,ge=q.insideDestination,Ie=q.draggable,Le=q.draggables,Ke=q.destination,Ge=q.viewport,ft=q.afterCritical;if(!se){if(ge.length)return null;var Dt={displaced:At,displacedBy:_t,at:{type:"REORDER",destination:{droppableId:Ke.descriptor.id,index:0}}},Rt=Sr({impact:Dt,draggable:Ie,droppable:Ke,draggables:Le,afterCritical:ft}),gt=xt(Ie,Ke)?Ke:ye(Ke,Ie,Le),mt=La({draggable:Ie,destination:gt,newPageBorderBoxCenter:Rt,viewport:Ge.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return mt?Dt:null}var Tt=Boolean(ne[Ke.axis.line]<=se.page.borderBox.center[Ke.axis.line]),cn=function(){var fr=se.descriptor.index;return se.descriptor.id===Ie.descriptor.id||Tt?fr:fr+1}(),lr=ga(Ke.axis,Ie.displaceBy);return qn({draggable:Ie,insideDestination:ge,destination:Ke,viewport:Ge,displacedBy:lr,last:At,index:cn})},vt=function(q){var ne=q.isMovingForward,se=q.previousPageBorderBoxCenter,ge=q.draggable,Ie=q.isOver,Le=q.draggables,Ke=q.droppables,Ge=q.viewport,ft=q.afterCritical,Dt=xa({isMovingForward:ne,pageBorderBoxCenter:se,source:Ie,droppables:Ke,viewport:Ge});if(!Dt)return null;var Rt=Be(Dt.descriptor.id,Le),gt=yi({pageBorderBoxCenter:se,viewport:Ge,destination:Dt,insideDestination:Rt,afterCritical:ft}),mt=Et({previousPageBorderBoxCenter:se,destination:Dt,draggable:ge,draggables:Le,moveRelativeTo:gt,insideDestination:Rt,viewport:Ge,afterCritical:ft});if(!mt)return null;var Tt=Sr({impact:mt,draggable:ge,droppable:Dt,draggables:Le,afterCritical:ft}),cn=Ga({pageBorderBoxCenter:Tt,draggable:ge,viewport:Ge});return{clientSelection:cn,impact:mt,scrollJumpRequest:null}},Wt=function(q){var ne=q.at;return ne?ne.type==="REORDER"?ne.destination.droppableId:ne.combine.droppableId:null},Lt=function(ne,se){var ge=Wt(ne);return ge?se[ge]:null},Zt=function(q){var ne=q.state,se=q.type,ge=Lt(ne.impact,ne.dimensions.droppables),Ie=Boolean(ge),Le=ne.dimensions.droppables[ne.critical.droppable.id],Ke=ge||Le,Ge=Ke.axis.direction,ft=Ge==="vertical"&&(se==="MOVE_UP"||se==="MOVE_DOWN")||Ge==="horizontal"&&(se==="MOVE_LEFT"||se==="MOVE_RIGHT");if(ft&&!Ie)return null;var Dt=se==="MOVE_DOWN"||se==="MOVE_RIGHT",Rt=ne.dimensions.draggables[ne.critical.draggable.id],gt=ne.current.page.borderBoxCenter,mt=ne.dimensions,Tt=mt.draggables,cn=mt.droppables;return ft?Za({isMovingForward:Dt,previousPageBorderBoxCenter:gt,draggable:Rt,destination:Ke,draggables:Tt,viewport:ne.viewport,previousClientSelection:ne.current.client.selection,previousImpact:ne.impact,afterCritical:ne.afterCritical}):vt({isMovingForward:Dt,previousPageBorderBoxCenter:gt,draggable:Rt,isOver:Ke,draggables:Tt,droppables:cn,viewport:ne.viewport,afterCritical:ne.afterCritical})};function dn(q){return q.phase==="DRAGGING"||q.phase==="COLLECTING"}function En(q){var ne=Ct(q.top,q.bottom),se=Ct(q.left,q.right);return function(Ie){return ne(Ie.y)&&se(Ie.x)}}function wn(q,ne){return q.left<ne.right&&q.right>ne.left&&q.top<ne.bottom&&q.bottom>ne.top}function Hn(q){var ne=q.pageBorderBox,se=q.draggable,ge=q.candidates,Ie=se.page.borderBox.center,Le=ge.map(function(Ke){var Ge=Ke.axis,ft=ct(Ke.axis.line,ne.center[Ge.line],Ke.page.borderBox.center[Ge.crossAxisLine]);return{id:Ke.descriptor.id,distance:dt(Ie,ft)}}).sort(function(Ke,Ge){return Ge.distance-Ke.distance});return Le[0]?Le[0].id:null}function jn(q){var ne=q.pageBorderBox,se=q.draggable,ge=q.droppables,Ie=qt(ge).filter(function(Le){if(!Le.isEnabled)return!1;var Ke=Le.subject.active;if(!Ke)return!1;if(!wn(ne,Ke))return!1;if(En(Ke)(ne.center))return!0;var Ge=Le.axis,ft=Ke.center[Ge.crossAxisLine],Dt=ne[Ge.crossAxisStart],Rt=ne[Ge.crossAxisEnd],gt=Ct(Ke[Ge.crossAxisStart],Ke[Ge.crossAxisEnd]),mt=gt(Dt),Tt=gt(Rt);return!mt&&!Tt?!0:mt?Dt<ft:Rt>ft});return Ie.length?Ie.length===1?Ie[0].descriptor.id:Hn({pageBorderBox:ne,draggable:se,candidates:Ie}):null}var nn=function(ne,se){return n(Mt(ne,se))},Mn=function(q,ne){var se=q.frame;return se?nn(ne,se.scroll.diff.value):ne};function mn(q){var ne=q.displaced,se=q.id;return Boolean(ne.visible[se]||ne.invisible[se])}function Wn(q){var ne=q.draggable,se=q.closest,ge=q.inHomeList;return se?ge&&se.descriptor.index>ne.descriptor.index?se.descriptor.index-1:se.descriptor.index:null}var Dn=function(q){var ne=q.pageBorderBoxWithDroppableScroll,se=q.draggable,ge=q.destination,Ie=q.insideDestination,Le=q.last,Ke=q.viewport,Ge=q.afterCritical,ft=ge.axis,Dt=ga(ge.axis,se.displaceBy),Rt=Dt.value,gt=ne[ft.start],mt=ne[ft.end],Tt=Me(se,Ie),cn=$e(Tt,function(fr){var Pr=fr.descriptor.id,jr=fr.page.borderBox.center[ft.line],la=Qt(Pr,Ge),Ur=mn({displaced:Le,id:Pr});return la?Ur?mt<=jr:gt<jr-Rt:Ur?mt<=jr+Rt:gt<jr}),lr=Wn({draggable:se,closest:cn,inHomeList:xt(se,ge)});return qn({draggable:se,insideDestination:Ie,destination:ge,viewport:Ke,last:Le,displacedBy:Dt,index:lr})},tr=4,sr=function(q){var ne=q.draggable,se=q.pageBorderBoxWithDroppableScroll,ge=q.previousImpact,Ie=q.destination,Le=q.insideDestination,Ke=q.afterCritical;if(!Ie.isCombineEnabled)return null;var Ge=Ie.axis,ft=ga(Ie.axis,ne.displaceBy),Dt=ft.value,Rt=se[Ge.start],gt=se[Ge.end],mt=Me(ne,Le),Tt=$e(mt,function(lr){var fr=lr.descriptor.id,Pr=lr.page.borderBox,jr=Pr[Ge.size],la=jr/tr,Ur=Qt(fr,Ke),Ra=mn({displaced:ge.displaced,id:fr});return Ur?Ra?gt>Pr[Ge.start]+la&&gt<Pr[Ge.end]-la:Rt>Pr[Ge.start]-Dt+la&&Rt<Pr[Ge.end]-Dt-la:Ra?gt>Pr[Ge.start]+Dt+la&&gt<Pr[Ge.end]+Dt-la:Rt>Pr[Ge.start]+la&&Rt<Pr[Ge.end]-la});if(!Tt)return null;var cn={displacedBy:ft,displaced:ge.displaced,at:{type:"COMBINE",combine:{draggableId:Tt.descriptor.id,droppableId:Ie.descriptor.id}}};return cn},Ir=function(q){var ne=q.pageOffset,se=q.draggable,ge=q.draggables,Ie=q.droppables,Le=q.previousImpact,Ke=q.viewport,Ge=q.afterCritical,ft=nn(se.page.borderBox,ne),Dt=jn({pageBorderBox:ft,draggable:se,droppables:Ie});if(!Dt)return Ot;var Rt=Ie[Dt],gt=Be(Rt.descriptor.id,ge),mt=Mn(Rt,ft);return sr({pageBorderBoxWithDroppableScroll:mt,draggable:se,previousImpact:Le,destination:Rt,insideDestination:gt,afterCritical:Ge})||Dn({pageBorderBoxWithDroppableScroll:mt,draggable:se,destination:Rt,insideDestination:gt,last:Le.displaced,viewport:Ke,afterCritical:Ge})},oa=function(q,ne){var se;return Object(v.a)({},q,(se={},se[ne.descriptor.id]=ne,se))},Cr=function(ne){var se=ne.previousImpact,ge=ne.impact,Ie=ne.droppables,Le=Wt(se),Ke=Wt(ge);if(!Le)return Ie;if(Le===Ke)return Ie;var Ge=Ie[Le];if(!Ge.subject.withPlaceholder)return Ie;var ft=rt(Ge);return oa(Ie,ft)},Or=function(q){var ne=q.draggable,se=q.draggables,ge=q.droppables,Ie=q.previousImpact,Le=q.impact,Ke=Cr({previousImpact:Ie,impact:Le,droppables:ge}),Ge=Wt(Le);if(!Ge)return Ke;var ft=ge[Ge];if(xt(ne,ft))return Ke;if(ft.subject.withPlaceholder)return Ke;var Dt=ye(ft,ne,se);return oa(Ke,Dt)},ea=function(q){var ne=q.state,se=q.clientSelection,ge=q.dimensions,Ie=q.viewport,Le=q.impact,Ke=q.scrollJumpRequest,Ge=Ie||ne.viewport,ft=ge||ne.dimensions,Dt=se||ne.current.client.selection,Rt=Qe(Dt,ne.initial.client.selection),gt={offset:Rt,selection:Dt,borderBoxCenter:He(ne.initial.client.borderBoxCenter,Rt)},mt={selection:He(gt.selection,Ge.scroll.current),borderBoxCenter:He(gt.borderBoxCenter,Ge.scroll.current),offset:He(gt.offset,Ge.scroll.diff.value)},Tt={client:gt,page:mt};if(ne.phase==="COLLECTING")return Object(v.a)({phase:"COLLECTING"},ne,{dimensions:ft,viewport:Ge,current:Tt});var cn=ft.draggables[ne.critical.draggable.id],lr=Le||Ir({pageOffset:mt.offset,draggable:cn,draggables:ft.draggables,droppables:ft.droppables,previousImpact:ne.impact,viewport:Ge,afterCritical:ne.afterCritical}),fr=Or({draggable:cn,impact:lr,previousImpact:ne.impact,draggables:ft.draggables,droppables:ft.droppables}),Pr=Object(v.a)({},ne,{current:Tt,dimensions:{draggables:ft.draggables,droppables:fr},impact:lr,viewport:Ge,scrollJumpRequest:Ke||null,forceShouldAnimate:Ke?!1:null});return Pr};function Nn(q,ne){return q.map(function(se){return ne[se]})}var br=function(q){var ne=q.impact,se=q.viewport,ge=q.draggables,Ie=q.destination,Le=q.forceShouldAnimate,Ke=ne.displaced,Ge=Nn(Ke.all,ge),ft=Ft({afterDragging:Ge,destination:Ie,displacedBy:ne.displacedBy,viewport:se.frame,forceShouldAnimate:Le,last:Ke});return Object(v.a)({},ne,{displaced:ft})},$t=function(q){var ne=q.impact,se=q.draggable,ge=q.droppable,Ie=q.draggables,Le=q.viewport,Ke=q.afterCritical,Ge=Sr({impact:ne,draggable:se,draggables:Ie,droppable:ge,afterCritical:Ke});return Ga({pageBorderBoxCenter:Ge,draggable:se,viewport:Le})},jt=function(q){var ne=q.state,se=q.dimensions,ge=q.viewport;ne.movementMode==="SNAP"||U(!1);var Ie=ne.impact,Le=ge||ne.viewport,Ke=se||ne.dimensions,Ge=Ke.draggables,ft=Ke.droppables,Dt=Ge[ne.critical.draggable.id],Rt=Wt(Ie);Rt||U(!1);var gt=ft[Rt],mt=br({impact:Ie,viewport:Le,destination:gt,draggables:Ge}),Tt=$t({impact:mt,draggable:Dt,droppable:gt,draggables:Ge,viewport:Le,afterCritical:ne.afterCritical});return ea({impact:mt,clientSelection:Tt,state:ne,dimensions:Ke,viewport:Le})},on=function(q){return{index:q.index,droppableId:q.droppableId}},An=function(q){var ne=q.draggable,se=q.home,ge=q.draggables,Ie=q.viewport,Le=ga(se.axis,ne.displaceBy),Ke=Be(se.descriptor.id,ge),Ge=Ke.indexOf(ne);Ge!==-1||U(!1);var ft=Ke.slice(Ge+1),Dt=ft.reduce(function(Tt,cn){return Tt[cn.descriptor.id]=!0,Tt},{}),Rt={inVirtualList:se.descriptor.mode==="virtual",displacedBy:Le,effected:Dt},gt=Ft({afterDragging:ft,destination:se,displacedBy:Le,last:null,viewport:Ie.frame,forceShouldAnimate:!1}),mt={displaced:gt,displacedBy:Le,at:{type:"REORDER",destination:on(ne.descriptor)}};return{impact:mt,afterCritical:Rt}},Tn=function(q,ne){return{draggables:q.draggables,droppables:oa(q.droppables,ne)}},Yn=function(ne){},Jn=function(ne){},kn=function(q){var ne=q.draggable,se=q.offset,ge=q.initialWindowScroll,Ie=w(ne.client,se),Le=x(Ie,ge),Ke=Object(v.a)({},ne,{placeholder:Object(v.a)({},ne.placeholder,{client:Ie}),client:Ie,page:Le});return Ke},Ar=function(q){var ne=q.frame;return ne||U(!1),ne},ur=function(q){var ne=q.additions,se=q.updatedDroppables,ge=q.viewport,Ie=ge.scroll.diff.value;return ne.map(function(Le){var Ke=Le.descriptor.droppableId,Ge=se[Ke],ft=Ar(Ge),Dt=ft.scroll.diff.value,Rt=He(Ie,Dt),gt=kn({draggable:Le,offset:Rt,initialWindowScroll:ge.scroll.initial});return gt})},yr=function(q){var ne=q.state,se=q.published;Yn();var ge=se.modified.map(function(la){var Ur=ne.dimensions.droppables[la.droppableId],Ra=Ae(Ur,la.scroll);return Ra}),Ie=Object(v.a)({},ne.dimensions.droppables,{},Jt(ge)),Le=fn(ur({additions:se.additions,updatedDroppables:Ie,viewport:ne.viewport})),Ke=Object(v.a)({},ne.dimensions.draggables,{},Le);se.removals.forEach(function(la){delete Ke[la]});var Ge={droppables:Ie,draggables:Ke},ft=Wt(ne.impact),Dt=ft?Ge.droppables[ft]:null,Rt=Ge.draggables[ne.critical.draggable.id],gt=Ge.droppables[ne.critical.droppable.id],mt=An({draggable:Rt,home:gt,draggables:Ke,viewport:ne.viewport}),Tt=mt.impact,cn=mt.afterCritical,lr=Dt&&Dt.isCombineEnabled?ne.impact:Tt,fr=Ir({pageOffset:ne.current.page.offset,draggable:Ge.draggables[ne.critical.draggable.id],draggables:Ge.draggables,droppables:Ge.droppables,previousImpact:lr,viewport:ne.viewport,afterCritical:cn});Jn();var Pr=Object(v.a)({phase:"DRAGGING"},ne,{phase:"DRAGGING",impact:fr,onLiftImpact:Tt,dimensions:Ge,afterCritical:cn,forceShouldAnimate:!1});if(ne.phase==="COLLECTING")return Pr;var jr=Object(v.a)({phase:"DROP_PENDING"},Pr,{phase:"DROP_PENDING",reason:ne.reason,isWaiting:!1});return jr},vr=function(ne){return ne.movementMode==="SNAP"},Dr=function(ne,se,ge){var Ie=Tn(ne.dimensions,se);return!vr(ne)||ge?ea({state:ne,dimensions:Ie}):jt({state:ne,dimensions:Ie})};function Xn(q){return q.isDragging&&q.movementMode==="SNAP"?Object(v.a)({phase:"DRAGGING"},q,{scrollJumpRequest:null}):q}var Ut={phase:"IDLE",completed:null,shouldFlush:!1},en=function(q,ne){if(q===void 0&&(q=Ut),ne.type==="FLUSH")return Object(v.a)({},Ut,{shouldFlush:!0});if(ne.type==="INITIAL_PUBLISH"){q.phase==="IDLE"||U(!1);var se=ne.payload,ge=se.critical,Ie=se.clientSelection,Le=se.viewport,Ke=se.dimensions,Ge=se.movementMode,ft=Ke.draggables[ge.draggable.id],Dt=Ke.droppables[ge.droppable.id],Rt={selection:Ie,borderBoxCenter:ft.client.borderBox.center,offset:Oe},gt={client:Rt,page:{selection:He(Rt.selection,Le.scroll.initial),borderBoxCenter:He(Rt.selection,Le.scroll.initial),offset:He(Rt.selection,Le.scroll.diff.value)}},mt=qt(Ke.droppables).every(function(aa){return!aa.isFixedOnPage}),Tt=An({draggable:ft,home:Dt,draggables:Ke.draggables,viewport:Le}),cn=Tt.impact,lr=Tt.afterCritical,fr={phase:"DRAGGING",isDragging:!0,critical:ge,movementMode:Ge,dimensions:Ke,initial:gt,current:gt,isWindowScrollAllowed:mt,impact:cn,afterCritical:lr,onLiftImpact:cn,viewport:Le,scrollJumpRequest:null,forceShouldAnimate:null};return fr}if(ne.type==="COLLECTION_STARTING"){if(q.phase==="COLLECTING"||q.phase==="DROP_PENDING")return q;q.phase==="DRAGGING"||U(!1);var Pr=Object(v.a)({phase:"COLLECTING"},q,{phase:"COLLECTING"});return Pr}if(ne.type==="PUBLISH_WHILE_DRAGGING")return q.phase==="COLLECTING"||q.phase==="DROP_PENDING"||U(!1),yr({state:q,published:ne.payload});if(ne.type==="MOVE"){if(q.phase==="DROP_PENDING")return q;dn(q)||U(!1);var jr=ne.payload.client;return ot(jr,q.current.client.selection)?q:ea({state:q,clientSelection:jr,impact:vr(q)?q.impact:null})}if(ne.type==="UPDATE_DROPPABLE_SCROLL"){if(q.phase==="DROP_PENDING")return Xn(q);if(q.phase==="COLLECTING")return Xn(q);dn(q)||U(!1);var la=ne.payload,Ur=la.id,Ra=la.newScroll,Ta=q.dimensions.droppables[Ur];if(!Ta)return q;var Va=Ae(Ta,Ra);return Dr(q,Va,!1)}if(ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(q.phase==="DROP_PENDING")return q;dn(q)||U(!1);var si=ne.payload,t=si.id,p=si.isEnabled,F=q.dimensions.droppables[t];F||U(!1),F.isEnabled!==p||U(!1);var B=Object(v.a)({},F,{isEnabled:p});return Dr(q,B,!0)}if(ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(q.phase==="DROP_PENDING")return q;dn(q)||U(!1);var V=ne.payload,oe=V.id,pe=V.isCombineEnabled,Se=q.dimensions.droppables[oe];Se||U(!1),Se.isCombineEnabled!==pe||U(!1);var De=Object(v.a)({},Se,{isCombineEnabled:pe});return Dr(q,De,!0)}if(ne.type==="MOVE_BY_WINDOW_SCROLL"){if(q.phase==="DROP_PENDING"||q.phase==="DROP_ANIMATING")return q;dn(q)||U(!1),q.isWindowScrollAllowed||U(!1);var je=ne.payload.newScroll;if(ot(q.viewport.scroll.current,je))return Xn(q);var ut=Oa(q.viewport,je);return vr(q)?jt({state:q,viewport:ut}):ea({state:q,viewport:ut})}if(ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!dn(q))return q;var bt=ne.payload.maxScroll;if(ot(bt,q.viewport.scroll.max))return q;var Xt=Object(v.a)({},q.viewport,{scroll:Object(v.a)({},q.viewport.scroll,{max:bt})});return Object(v.a)({phase:"DRAGGING"},q,{viewport:Xt})}if(ne.type==="MOVE_UP"||ne.type==="MOVE_DOWN"||ne.type==="MOVE_LEFT"||ne.type==="MOVE_RIGHT"){if(q.phase==="COLLECTING"||q.phase==="DROP_PENDING")return q;q.phase==="DRAGGING"||U(!1);var Ht=Zt({state:q,type:ne.type});return Ht?ea({state:q,impact:Ht.impact,clientSelection:Ht.clientSelection,scrollJumpRequest:Ht.scrollJumpRequest}):q}if(ne.type==="DROP_PENDING"){var xn=ne.payload.reason;q.phase==="COLLECTING"||U(!1);var Fn=Object(v.a)({phase:"DROP_PENDING"},q,{phase:"DROP_PENDING",isWaiting:!0,reason:xn});return Fn}if(ne.type==="DROP_ANIMATE"){var nr=ne.payload,hr=nr.completed,Mr=nr.dropDuration,pr=nr.newHomeClientOffset;q.phase==="DRAGGING"||q.phase==="DROP_PENDING"||U(!1);var Wr={phase:"DROP_ANIMATING",completed:hr,dropDuration:Mr,newHomeClientOffset:pr,dimensions:q.dimensions};return Wr}if(ne.type==="DROP_COMPLETE"){var da=ne.payload.completed;return{phase:"IDLE",completed:da,shouldFlush:!1}}return q},Vt=function(ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:ne}},Un=function(ne){return{type:"LIFT",payload:ne}},$n=function(ne){return{type:"INITIAL_PUBLISH",payload:ne}},ir=function(ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:ne}},Kn=function(){return{type:"COLLECTION_STARTING",payload:null}},rr=function(ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ne}},or=function(ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ne}},ta=function(ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ne}},wr=function(ne){return{type:"MOVE",payload:ne}},_r=function(ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ne}},qr=function(ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ne}},Kr=function(){return{type:"MOVE_UP",payload:null}},mr=function(){return{type:"MOVE_DOWN",payload:null}},Jr=function(){return{type:"MOVE_RIGHT",payload:null}},Rr=function(){return{type:"MOVE_LEFT",payload:null}},ra=function(){return{type:"FLUSH",payload:null}},Gr=function(ne){return{type:"DROP_ANIMATE",payload:ne}},Fe=function(ne){return{type:"DROP_COMPLETE",payload:ne}},tt=function(ne){return{type:"DROP",payload:ne}},nt=function(ne){return{type:"DROP_PENDING",payload:ne}},Ye=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Pe(q){if(q.length<=1)return;for(var ne=q.map(function(Ge){return Ge.descriptor.index}),se={},ge=1;ge<ne.length;ge++){var Ie=ne[ge],Le=ne[ge-1];Ie!==Le+1&&(se[Ie]=!0)}if(!Object.keys(se).length)return;var Ke=ne.map(function(Ge){var ft=Boolean(se[Ge]);return ft?"[\u{1F525}"+Ge+"]":""+Ge}).join(", ")}function ze(q,ne){if(!1)var se}var Re=function(q){return function(ne){var se=ne.getState,ge=ne.dispatch;return function(Ie){return function(Le){if(Le.type!=="LIFT"){Ie(Le);return}var Ke=Le.payload,Ge=Ke.id,ft=Ke.clientSelection,Dt=Ke.movementMode,Rt=se();Rt.phase==="DROP_ANIMATING"&&ge(Fe({completed:Rt.completed})),se().phase==="IDLE"||U(!1),ge(ra()),ge(Vt({draggableId:Ge,movementMode:Dt}));var gt={shouldPublishImmediately:Dt==="SNAP"},mt={draggableId:Ge,scrollOptions:gt},Tt=q.startPublishing(mt),cn=Tt.critical,lr=Tt.dimensions,fr=Tt.viewport;ze(cn,lr),ge($n({critical:cn,dimensions:lr,clientSelection:ft,movementMode:Dt,viewport:fr}))}}}},Ze=function(q){return function(){return function(ne){return function(se){se.type==="INITIAL_PUBLISH"&&q.dragging(),se.type==="DROP_ANIMATE"&&q.dropping(se.payload.completed.result.reason),(se.type==="FLUSH"||se.type==="DROP_COMPLETE")&&q.resting(),ne(se)}}}},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}},et={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},wt=et.outOfTheWay+"s "+qe.outOfTheWay,Pt={fluid:"opacity "+wt,snap:"transform "+wt+", opacity "+wt,drop:function(ne){var se=ne+"s "+qe.drop;return"transform "+se+", opacity "+se},outOfTheWay:"transform "+wt,placeholder:"height "+wt+", width "+wt+", margin "+wt},Gt=function(ne){return ot(ne,Oe)?null:"translate("+ne.x+"px, "+ne.y+"px)"},kt={moveTo:Gt,drop:function(ne,se){var ge=Gt(ne);return ge?se?ge+" scale("+ht.scale.drop+")":ge:null}},ln=et.minDropTime,On=et.maxDropTime,er=On-ln,Zn=1500,Tr=.6,dr=function(q){var ne=q.current,se=q.destination,ge=q.reason,Ie=dt(ne,se);if(Ie<=0)return ln;if(Ie>=Zn)return On;var Le=Ie/Zn,Ke=ln+er*Le,Ge=ge==="CANCEL"?Ke*Tr:Ke;return Number(Ge.toFixed(2))},Bn=function(q){var ne=q.impact,se=q.draggable,ge=q.dimensions,Ie=q.viewport,Le=q.afterCritical,Ke=ge.draggables,Ge=ge.droppables,ft=Wt(ne),Dt=ft?Ge[ft]:null,Rt=Ge[se.descriptor.droppableId],gt=$t({impact:ne,draggable:se,draggables:Ke,afterCritical:Le,droppable:Dt||Rt,viewport:Ie}),mt=Qe(gt,se.client.borderBox.center);return mt},rn=function(q){var ne=q.draggables,se=q.reason,ge=q.lastImpact,Ie=q.home,Le=q.viewport,Ke=q.onLiftImpact;if(!ge.at||se!=="DROP"){var Ge=br({draggables:ne,impact:Ke,destination:Ie,viewport:Le,forceShouldAnimate:!0});return{impact:Ge,didDropInsideDroppable:!1}}if(ge.at.type==="REORDER")return{impact:ge,didDropInsideDroppable:!0};var ft=Object(v.a)({},ge,{displaced:At});return{impact:ft,didDropInsideDroppable:!0}},yn=function(q){var ne=q.getState,se=q.dispatch;return function(ge){return function(Ie){if(Ie.type!=="DROP"){ge(Ie);return}var Le=ne(),Ke=Ie.payload.reason;if(Le.phase==="COLLECTING"){se(nt({reason:Ke}));return}if(Le.phase==="IDLE")return;var Ge=Le.phase==="DROP_PENDING"&&Le.isWaiting;Ge&&U(!1),Le.phase==="DRAGGING"||Le.phase==="DROP_PENDING"||U(!1);var ft=Le.critical,Dt=Le.dimensions,Rt=Dt.draggables[Le.critical.draggable.id],gt=rn({reason:Ke,lastImpact:Le.impact,afterCritical:Le.afterCritical,onLiftImpact:Le.onLiftImpact,home:Le.dimensions.droppables[Le.critical.droppable.id],viewport:Le.viewport,draggables:Le.dimensions.draggables}),mt=gt.impact,Tt=gt.didDropInsideDroppable,cn=Tt?at(mt):null,lr=Tt?it(mt):null,fr={index:ft.draggable.index,droppableId:ft.droppable.id},Pr={draggableId:Rt.descriptor.id,type:Rt.descriptor.type,source:fr,reason:Ke,mode:Le.movementMode,destination:cn,combine:lr},jr=Bn({impact:mt,draggable:Rt,dimensions:Dt,viewport:Le.viewport,afterCritical:Le.afterCritical}),la={critical:Le.critical,afterCritical:Le.afterCritical,result:Pr,impact:mt},Ur=!ot(Le.current.client.offset,jr)||Boolean(Pr.combine);if(!Ur){se(Fe({completed:la}));return}var Ra=dr({current:Le.current.client.offset,destination:jr,reason:Ke}),Ta={newHomeClientOffset:jr,dropDuration:Ra,completed:la};se(Gr(Ta))}}},tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Er(q){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(se){if(se.target!==window&&se.target!==window.document)return;q()}}}function zn(q){var ne=q.onWindowScroll;function se(){ne(tn())}var ge=I(se),Ie=Er(ge),Le=Te;function Ke(){return Le!==Te}function Ge(){Ke()&&U(!1),Le=ve(window,[Ie])}function ft(){Ke()||U(!1),ge.cancel(),Le(),Le=Te}return{start:Ge,stop:ft,isActive:Ke}}var bn=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},In=function(q){var ne=zn({onWindowScroll:function(ge){q.dispatch(_r({newScroll:ge}))}});return function(se){return function(ge){!ne.isActive()&&ge.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&bn(ge)&&ne.stop(),se(ge)}}},Fr=function(q){var ne=!1,se=!1,ge=setTimeout(function(){se=!0}),Ie=function(Ke){if(ne)return;if(se)return;ne=!0,q(Ke),clearTimeout(ge)};return Ie.wasCalled=function(){return ne},Ie},Qn=function(){var q=[],ne=function(Le){var Ke=Je(q,function(Dt){return Dt.timerId===Le});Ke!==-1||U(!1);var Ge=q.splice(Ke,1),ft=Ge[0];ft.callback()},se=function(Le){var Ke=setTimeout(function(){return ne(Ke)}),Ge={timerId:Ke,callback:Le};q.push(Ge)},ge=function(){if(!q.length)return;var Le=[].concat(q);q.length=0,Le.forEach(function(Ke){clearTimeout(Ke.timerId),Ke.callback()})};return{add:se,flush:ge}},Ln=function(ne,se){return ne==null&&se==null?!0:ne==null||se==null?!1:ne.droppableId===se.droppableId&&ne.index===se.index},cr=function(ne,se){return ne==null&&se==null?!0:ne==null||se==null?!1:ne.draggableId===se.draggableId&&ne.droppableId===se.droppableId},Lr=function(ne,se){if(ne===se)return!0;var ge=ne.draggable.id===se.draggable.id&&ne.draggable.droppableId===se.draggable.droppableId&&ne.draggable.type===se.draggable.type&&ne.draggable.index===se.draggable.index,Ie=ne.droppable.id===se.droppable.id&&ne.droppable.type===se.droppable.type;return ge&&Ie},Nr=function(ne,se){Yn(),se(),Jn()},$r=function(ne,se){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:se}},fa=function(ne,se,ge,Ie){if(!ne){ge(Ie(se));return}var Le=Fr(ge),Ke={announce:Le};ne(se,Ke),Le.wasCalled()||ge(Ie(se))},ia=function(q,ne){var se=Qn(),ge=null,Ie=function(mt,Tt){ge&&U(!1),Nr("onBeforeCapture",function(){var cn=q().onBeforeCapture;if(cn){var lr={draggableId:mt,mode:Tt};cn(lr)}})},Le=function(mt,Tt){ge&&U(!1),Nr("onBeforeDragStart",function(){var cn=q().onBeforeDragStart;cn&&cn($r(mt,Tt))})},Ke=function(mt,Tt){ge&&U(!1);var cn=$r(mt,Tt);ge={mode:Tt,lastCritical:mt,lastLocation:cn.source,lastCombine:null},se.add(function(){Nr("onDragStart",function(){return fa(q().onDragStart,cn,ne,me.onDragStart)})})},Ge=function(mt,Tt){var cn=at(Tt),lr=it(Tt);ge||U(!1);var fr=!Lr(mt,ge.lastCritical);fr&&(ge.lastCritical=mt);var Pr=!Ln(ge.lastLocation,cn);Pr&&(ge.lastLocation=cn);var jr=!cr(ge.lastCombine,lr);if(jr&&(ge.lastCombine=lr),!fr&&!Pr&&!jr)return;var la=Object(v.a)({},$r(mt,ge.mode),{combine:lr,destination:cn});se.add(function(){Nr("onDragUpdate",function(){return fa(q().onDragUpdate,la,ne,me.onDragUpdate)})})},ft=function(){ge||U(!1),se.flush()},Dt=function(mt){ge||U(!1),ge=null,Nr("onDragEnd",function(){return fa(q().onDragEnd,mt,ne,me.onDragEnd)})},Rt=function(){if(!ge)return;var mt=Object(v.a)({},$r(ge.lastCritical,ge.mode),{combine:null,destination:null,reason:"CANCEL"});Dt(mt)};return{beforeCapture:Ie,beforeStart:Le,start:Ke,update:Ge,flush:ft,drop:Dt,abort:Rt}},na=function(q,ne){var se=ia(q,ne);return function(ge){return function(Ie){return function(Le){if(Le.type==="BEFORE_INITIAL_CAPTURE"){se.beforeCapture(Le.payload.draggableId,Le.payload.movementMode);return}if(Le.type==="INITIAL_PUBLISH"){var Ke=Le.payload.critical;se.beforeStart(Ke,Le.payload.movementMode),Ie(Le),se.start(Ke,Le.payload.movementMode);return}if(Le.type==="DROP_COMPLETE"){var Ge=Le.payload.completed.result;se.flush(),Ie(Le),se.drop(Ge);return}if(Ie(Le),Le.type==="FLUSH"){se.abort();return}var ft=ge.getState();ft.phase==="DRAGGING"&&se.update(ft.critical,ft.impact)}}}},kr=function(q){return function(ne){return function(se){if(se.type!=="DROP_ANIMATION_FINISHED"){ne(se);return}var ge=q.getState();ge.phase==="DROP_ANIMATING"||U(!1),q.dispatch(Fe({completed:ge.completed}))}}},Wa=function(q){var ne=null,se=null;function ge(){se&&(cancelAnimationFrame(se),se=null),ne&&(ne(),ne=null)}return function(Ie){return function(Le){if((Le.type==="FLUSH"||Le.type==="DROP_COMPLETE"||Le.type==="DROP_ANIMATION_FINISHED")&&ge(),Ie(Le),Le.type!=="DROP_ANIMATE")return;var Ke={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var ft=q.getState();ft.phase==="DROP_ANIMATING"&&q.dispatch(Ye())}};se=requestAnimationFrame(function(){se=null,ne=ve(window,[Ke])})}}},mi=function(q){return function(){return function(ne){return function(se){(se.type==="DROP_COMPLETE"||se.type==="FLUSH"||se.type==="DROP_ANIMATE")&&q.stopPublishing(),ne(se)}}}},Qr=function(q){var ne=!1;return function(){return function(se){return function(ge){if(ge.type==="INITIAL_PUBLISH"){ne=!0,q.tryRecordFocus(ge.payload.critical.draggable.id),se(ge),q.tryRestoreFocusRecorded();return}if(se(ge),!ne)return;if(ge.type==="FLUSH"){ne=!1,q.tryRestoreFocusRecorded();return}if(ge.type==="DROP_COMPLETE"){ne=!1;var Ie=ge.payload.completed.result;Ie.combine&&q.tryShiftRecord(Ie.draggableId,Ie.combine.draggableId),q.tryRestoreFocusRecorded()}}}}},zr=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Xr=function(q){return function(ne){return function(se){return function(ge){if(zr(ge)){q.stop(),se(ge);return}if(ge.type==="INITIAL_PUBLISH"){se(ge);var Ie=ne.getState();Ie.phase==="DRAGGING"||U(!1),q.start(Ie);return}se(ge),q.scroll(ne.getState())}}}},Vr=function(q){return function(ne){return function(se){if(ne(se),se.type!=="PUBLISH_WHILE_DRAGGING")return;var ge=q.getState();if(ge.phase!=="DROP_PENDING")return;if(ge.isWaiting)return;q.dispatch(tt({reason:ge.reason}))}}},ha=m.d,sa=function(q){var ne=q.dimensionMarshal,se=q.focusMarshal,ge=q.styleMarshal,Ie=q.getResponders,Le=q.announce,Ke=q.autoScroller;return Object(m.e)(en,ha(Object(m.a)(Ze(ge),mi(ne),Re(ne),yn,kr,Wa,Vr,Xr(Ke),In,Qr(se),na(Ie,Le))))},_a=function(){return{additions:{},removals:{},modified:{}}};function Ha(q){var ne=q.registry,se=q.callbacks,ge=_a(),Ie=null,Le=function(){if(Ie)return;se.collectionStarting(),Ie=requestAnimationFrame(function(){Ie=null,Yn();var Rt=ge,gt=Rt.additions,mt=Rt.removals,Tt=Rt.modified,cn=Object.keys(gt).map(function(Pr){return ne.draggable.getById(Pr).getDimension(Oe)}).sort(function(Pr,jr){return Pr.descriptor.index-jr.descriptor.index}),lr=Object.keys(Tt).map(function(Pr){var jr=ne.droppable.getById(Pr),la=jr.callbacks.getScrollWhileDragging();return{droppableId:Pr,scroll:la}}),fr={additions:cn,removals:Object.keys(mt),modified:lr};ge=_a(),Jn(),se.publish(fr)})},Ke=function(Rt){var gt=Rt.descriptor.id;ge.additions[gt]=Rt,ge.modified[Rt.descriptor.droppableId]=!0,ge.removals[gt]&&delete ge.removals[gt],Le()},Ge=function(Rt){var gt=Rt.descriptor;ge.removals[gt.id]=!0,ge.modified[gt.droppableId]=!0,ge.additions[gt.id]&&delete ge.additions[gt.id],Le()},ft=function(){if(!Ie)return;cancelAnimationFrame(Ie),Ie=null,ge=_a()};return{add:Ke,remove:Ge,stop:ft}}var Ua=function(q){var ne=q.scrollHeight,se=q.scrollWidth,ge=q.height,Ie=q.width,Le=Qe({x:se,y:ne},{x:Ie,y:ge}),Ke={x:Math.max(0,Le.x),y:Math.max(0,Le.y)};return Ke},Pa=function(){var q=document.documentElement;return q||U(!1),q},Ei=function(){var q=Pa(),ne=Ua({scrollHeight:q.scrollHeight,scrollWidth:q.scrollWidth,width:q.clientWidth,height:q.clientHeight});return ne},Ti=function(){var q=tn(),ne=Ei(),se=q.y,ge=q.x,Ie=Pa(),Le=Ie.clientWidth,Ke=Ie.clientHeight,Ge=ge+Le,ft=se+Ke,Dt=n({top:se,left:ge,right:Ge,bottom:ft}),Rt={frame:Dt,scroll:{initial:q,current:q,max:ne,diff:{value:Oe,displacement:Oe}}};return Rt},ja=function(q){var ne=q.critical,se=q.scrollOptions,ge=q.registry;Yn();var Ie=Ti(),Le=Ie.scroll.current,Ke=ne.droppable,Ge=ge.droppable.getAllByType(Ke.type).map(function(gt){return gt.callbacks.getDimensionAndWatchScroll(Le,se)}),ft=ge.draggable.getAllByType(ne.draggable.type).map(function(gt){return gt.getDimension(Le)}),Dt={draggables:fn(ft),droppables:Jt(Ge)};Jn();var Rt={dimensions:Dt,critical:ne,viewport:Ie};return Rt};function Da(q,ne,se){if(se.descriptor.id===ne.id)return!1;if(se.descriptor.type!==ne.type)return!1;var ge=q.droppable.getById(se.descriptor.droppableId);return!(ge.descriptor.mode!=="virtual")}var $a=function(q,ne){var se=null,ge=Ha({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:q}),Ie=function(Tt,cn){if(q.droppable.exists(Tt)||U(!1),!se)return;ne.updateDroppableIsEnabled({id:Tt,isEnabled:cn})},Le=function(Tt,cn){if(!se)return;q.droppable.exists(Tt)||U(!1),ne.updateDroppableIsCombineEnabled({id:Tt,isCombineEnabled:cn})},Ke=function(Tt,cn){if(!se)return;q.droppable.exists(Tt)||U(!1),ne.updateDroppableScroll({id:Tt,newScroll:cn})},Ge=function(Tt,cn){if(!se)return;q.droppable.getById(Tt).callbacks.scroll(cn)},ft=function(){if(!se)return;ge.stop();var Tt=se.critical.droppable;q.droppable.getAllByType(Tt.type).forEach(function(cn){return cn.callbacks.dragStopped()}),se.unsubscribe(),se=null},Dt=function(Tt){se||U(!1);var cn=se.critical.draggable;Tt.type==="ADDITION"&&(Da(q,cn,Tt.value)&&ge.add(Tt.value)),Tt.type==="REMOVAL"&&(Da(q,cn,Tt.value)&&ge.remove(Tt.value))},Rt=function(Tt){se&&U(!1);var cn=q.draggable.getById(Tt.draggableId),lr=q.droppable.getById(cn.descriptor.droppableId),fr={draggable:cn.descriptor,droppable:lr.descriptor},Pr=q.subscribe(Dt);return se={critical:fr,unsubscribe:Pr},ja({critical:fr,registry:q,scrollOptions:Tt.scrollOptions})},gt={updateDroppableIsEnabled:Ie,updateDroppableIsCombineEnabled:Le,scrollDroppable:Ge,updateDroppableScroll:Ke,startPublishing:Rt,stopPublishing:ft};return gt},to=function(q,ne){return q.phase==="IDLE"?!0:q.phase!=="DROP_ANIMATING"||q.completed.result.draggableId===ne?!1:q.completed.result.reason==="DROP"},Mo=function(q){window.scrollBy(q.x,q.y)},Li=A(function(q){return qt(q).filter(function(ne){return ne.isEnabled?!!ne.frame:!1})}),no=function(ne,se){var ge=$e(Li(se),function(Ie){return Ie.frame||U(!1),En(Ie.frame.pageMarginBox)(ne)});return ge},ro=function(q){var ne=q.center,se=q.destination,ge=q.droppables;if(se){var Ie=ge[se];return Ie.frame?Ie:null}var Le=no(ne,ge);return Le},gi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(q,ne){var se=q[ne.size]*gi.startFromPercentage,ge=q[ne.size]*gi.maxScrollAtPercentage,Ie={startScrollingFrom:se,maxScrollValueAt:ge};return Ie},Io=function(q){var ne=q.startOfRange,se=q.endOfRange,ge=q.current,Ie=se-ne;if(Ie===0)return 0;var Le=ge-ne,Ke=Le/Ie;return Ke},Lo=1,bo=function(q,ne){if(q>ne.startScrollingFrom)return 0;if(q<=ne.maxScrollValueAt)return gi.maxPixelScroll;if(q===ne.startScrollingFrom)return Lo;var se=Io({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:q}),ge=1-se,Ie=gi.maxPixelScroll*gi.ease(ge);return Math.ceil(Ie)},Vi=gi.durationDampening.accelerateAt,co=gi.durationDampening.stopDampeningAt,Xi=function(q,ne){var se=ne,ge=co,Ie=Date.now(),Le=Ie-se;if(Le>=co)return q;if(Le<Vi)return Lo;var Ke=Io({startOfRange:Vi,endOfRange:ge,current:Le}),Ge=q*gi.ease(Ke);return Math.ceil(Ge)},Yi=function(q){var ne=q.distanceToEdge,se=q.thresholds,ge=q.dragStartTime,Ie=q.shouldUseTimeDampening,Le=bo(ne,se);return Le===0?0:Ie?Math.max(Xi(Le,ge),Lo):Le},No=function(q){var ne=q.container,se=q.distanceToEdges,ge=q.dragStartTime,Ie=q.axis,Le=q.shouldUseTimeDampening,Ke=uo(ne,Ie),Ge=se[Ie.end]<se[Ie.start];return Ge?Yi({distanceToEdge:se[Ie.end],thresholds:Ke,dragStartTime:ge,shouldUseTimeDampening:Le}):-1*Yi({distanceToEdge:se[Ie.start],thresholds:Ke,dragStartTime:ge,shouldUseTimeDampening:Le})},yo=function(q){var ne=q.container,se=q.subject,ge=q.proposedScroll,Ie=se.height>ne.height,Le=se.width>ne.width;return!Le&&!Ie?ge:Le&&Ie?null:{x:Le?0:ge.x,y:Ie?0:ge.y}},ao=ke(function(q){return q===0?0:q}),Ji=function(q){var ne=q.dragStartTime,se=q.container,ge=q.subject,Ie=q.center,Le=q.shouldUseTimeDampening,Ke={top:Ie.y-se.top,right:se.right-Ie.x,bottom:se.bottom-Ie.y,left:Ie.x-se.left},Ge=No({container:se,distanceToEdges:Ke,dragStartTime:ne,axis:yt,shouldUseTimeDampening:Le}),ft=No({container:se,distanceToEdges:Ke,dragStartTime:ne,axis:zt,shouldUseTimeDampening:Le}),Dt=ao({x:ft,y:Ge});if(ot(Dt,Oe))return null;var Rt=yo({container:se,subject:ge,proposedScroll:Dt});return Rt?ot(Rt,Oe)?null:Rt:null},Qi=ke(function(q){return q===0?0:q>0?1:-1}),ni=function(){var q=function(se,ge){return se<0?se:se>ge?se-ge:0};return function(ne){var se=ne.current,ge=ne.max,Ie=ne.change,Le=He(se,Ie),Ke={x:q(Le.x,ge.x),y:q(Le.y,ge.y)};return ot(Ke,Oe)?null:Ke}}(),Ni=function(ne){var se=ne.max,ge=ne.current,Ie=ne.change,Le={x:Math.max(ge.x,se.x),y:Math.max(ge.y,se.y)},Ke=Qi(Ie),Ge=ni({max:Le,current:ge,change:Ke});return Ge?Ke.x!==0&&Ge.x===0?!0:Ke.y!==0&&Ge.y===0:!0},Ri=function(ne,se){return Ni({current:ne.scroll.current,max:ne.scroll.max,change:se})},Zi=function(ne,se){if(!Ri(ne,se))return null;var ge=ne.scroll.max,Ie=ne.scroll.current;return ni({current:Ie,max:ge,change:se})},Pi=function(ne,se){var ge=ne.frame;return ge?Ni({current:ge.scroll.current,max:ge.scroll.max,change:se}):!1},Eo=function(ne,se){var ge=ne.frame;return ge&&Pi(ne,se)?ni({current:ge.scroll.current,max:ge.scroll.max,change:se}):null},xo=function(q){var ne=q.viewport,se=q.subject,ge=q.center,Ie=q.dragStartTime,Le=q.shouldUseTimeDampening,Ke=Ji({dragStartTime:Ie,container:ne.frame,subject:se,center:ge,shouldUseTimeDampening:Le});return Ke&&Ri(ne,Ke)?Ke:null},Co=function(q){var ne=q.droppable,se=q.subject,ge=q.center,Ie=q.dragStartTime,Le=q.shouldUseTimeDampening,Ke=ne.frame;if(!Ke)return null;var Ge=Ji({dragStartTime:Ie,container:Ke.pageMarginBox,subject:se,center:ge,shouldUseTimeDampening:Le});return Ge&&Pi(ne,Ge)?Ge:null},io=function(q){var ne=q.state,se=q.dragStartTime,ge=q.shouldUseTimeDampening,Ie=q.scrollWindow,Le=q.scrollDroppable,Ke=ne.current.page.borderBoxCenter,Ge=ne.dimensions.draggables[ne.critical.draggable.id],ft=Ge.page.marginBox;if(ne.isWindowScrollAllowed){var Dt=ne.viewport,Rt=xo({dragStartTime:se,viewport:Dt,subject:ft,center:Ke,shouldUseTimeDampening:ge});if(Rt){Ie(Rt);return}}var gt=ro({center:Ke,destination:Wt(ne.impact),droppables:ne.dimensions.droppables});if(!gt)return;var mt=Co({dragStartTime:se,droppable:gt,subject:ft,center:Ke,shouldUseTimeDampening:ge});mt&&Le(gt.descriptor.id,mt)},ki=function(q){var ne=q.scrollWindow,se=q.scrollDroppable,ge=I(ne),Ie=I(se),Le=null,Ke=function(Rt){Le||U(!1);var gt=Le,mt=gt.shouldUseTimeDampening,Tt=gt.dragStartTime;io({state:Rt,scrollWindow:ge,scrollDroppable:Ie,dragStartTime:Tt,shouldUseTimeDampening:mt})},Ge=function(Rt){Yn(),Le&&U(!1);var gt=Date.now(),mt=!1,Tt=function(){mt=!0};io({state:Rt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Tt,scrollDroppable:Tt}),Le={dragStartTime:gt,shouldUseTimeDampening:mt},Jn(),mt&&Ke(Rt)},ft=function(){if(!Le)return;ge.cancel(),Ie.cancel(),Le=null};return{start:Ge,stop:ft,scroll:Ke}},qi=function(q){var ne=q.move,se=q.scrollDroppable,ge=q.scrollWindow,Ie=function(Dt,Rt){var gt=He(Dt.current.client.selection,Rt);ne({client:gt})},Le=function(Dt,Rt){if(!Pi(Dt,Rt))return Rt;var gt=Eo(Dt,Rt);if(!gt)return se(Dt.descriptor.id,Rt),null;var mt=Qe(Rt,gt);se(Dt.descriptor.id,mt);var Tt=Qe(Rt,mt);return Tt},Ke=function(Dt,Rt,gt){if(!Dt)return gt;if(!Ri(Rt,gt))return gt;var mt=Zi(Rt,gt);if(!mt)return ge(gt),null;var Tt=Qe(gt,mt);ge(Tt);var cn=Qe(gt,Tt);return cn},Ge=function(Dt){var Rt=Dt.scrollJumpRequest;if(!Rt)return;var gt=Wt(Dt.impact);gt||U(!1);var mt=Le(Dt.dimensions.droppables[gt],Rt);if(!mt)return;var Tt=Dt.viewport,cn=Ke(Dt.isWindowScrollAllowed,Tt,mt);if(!cn)return;Ie(Dt,cn)};return Ge},ko=function(q){var ne=q.scrollDroppable,se=q.scrollWindow,ge=q.move,Ie=ki({scrollWindow:se,scrollDroppable:ne}),Le=qi({move:ge,scrollWindow:se,scrollDroppable:ne}),Ke=function(Dt){if(Dt.phase!=="DRAGGING")return;if(Dt.movementMode==="FLUID"){Ie.scroll(Dt);return}if(!Dt.scrollJumpRequest)return;Le(Dt)},Ge={scroll:Ke,start:Ie.start,stop:Ie.stop};return Ge},oo="data-rbd",so=function(){var q=oo+"-drag-handle";return{base:q,draggableId:q+"-draggable-id",contextId:q+"-context-id"}}(),So=function(){var q=oo+"-draggable";return{base:q,contextId:q+"-context-id",id:q+"-id"}}(),Uo=function(){var q=oo+"-droppable";return{base:q,contextId:q+"-context-id",id:q+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(ne){return function(se){return"["+se+'="'+ne+'"]'}},Ka=function(ne,se){return ne.map(function(ge){var Ie=ge.styles[se];return Ie?ge.selector+" { "+Ie+" }":""}).join(" ")},ai="pointer-events: none;",Ja=function(q){var ne=fi(q),se=function(){var Ge=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:ne(so.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Ge,dragging:ai,dropAnimating:Ge}}}(),ge=function(){var Ge=`
transition: `+Pt.outOfTheWay+`;
`;return{selector:ne(So.contextId),styles:{dragging:Ge,dropAnimating:Ge,userCancel:Ge}}}(),Ie={selector:ne(Uo.contextId),styles:{always:"overflow-anchor: none;"}},Le={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;
`}},Ke=[ge,se,Ie,Le];return{always:Ka(Ke,"always"),resting:Ka(Ke,"resting"),dragging:Ka(Ke,"dragging"),dropAnimating:Ka(Ke,"dropAnimating"),userCancel:Ka(Ke,"userCancel")}},ii=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?M.useLayoutEffect:M.useEffect,wo=function(){var ne=document.querySelector("head");return ne||U(!1),ne},xi=function(ne){var se=document.createElement("style");return ne&&se.setAttribute("nonce",ne),se.type="text/css",se};function Bo(q,ne){var se=f(function(){return Ja(q)},[q]),ge=Object(M.useRef)(null),Ie=Object(M.useRef)(null),Le=r(A(function(gt){var mt=Ie.current;mt||U(!1),mt.textContent=gt}),[]),Ke=r(function(gt){var mt=ge.current;mt||U(!1),mt.textContent=gt},[]);ii(function(){!ge.current&&!Ie.current||U(!1);var gt=xi(ne),mt=xi(ne);return ge.current=gt,Ie.current=mt,gt.setAttribute(oo+"-always",q),mt.setAttribute(oo+"-dynamic",q),wo().appendChild(gt),wo().appendChild(mt),Ke(se.always),Le(se.resting),function(){var Tt=function(lr){var fr=lr.current;fr||U(!1),wo().removeChild(fr),lr.current=null};Tt(ge),Tt(Ie)}},[ne,Ke,Le,se.always,se.resting,q]);var Ge=r(function(){return Le(se.dragging)},[Le,se.dragging]),ft=r(function(gt){if(gt==="DROP"){Le(se.dropAnimating);return}Le(se.userCancel)},[Le,se.dropAnimating,se.userCancel]),Dt=r(function(){if(!Ie.current)return;Le(se.resting)},[Le,se.resting]),Rt=f(function(){return{dragging:Ge,dropping:ft,resting:Dt}},[Ge,ft,Dt]);return Rt}var To=function(q){return q&&q.ownerDocument?q.ownerDocument.defaultView:window};function $i(q){return q instanceof To(q).HTMLElement}function Wi(q,ne){var se="["+so.contextId+'="'+q+'"]',ge=pt(document.querySelectorAll(se));if(!ge.length)return null;var Ie=$e(ge,function(Le){return Le.getAttribute(so.draggableId)===ne});return Ie&&$i(Ie)?Ie:null}function Oo(q){var ne=Object(M.useRef)({}),se=Object(M.useRef)(null),ge=Object(M.useRef)(null),Ie=Object(M.useRef)(!1),Le=r(function(mt,Tt){var cn={id:mt,focus:Tt};return ne.current[mt]=cn,function(){var fr=ne.current,Pr=fr[mt];Pr!==cn&&delete fr[mt]}},[]),Ke=r(function(mt){var Tt=Wi(q,mt);Tt&&Tt!==document.activeElement&&Tt.focus()},[q]),Ge=r(function(mt,Tt){se.current===mt&&(se.current=Tt)},[]),ft=r(function(){if(ge.current)return;if(!Ie.current)return;ge.current=requestAnimationFrame(function(){ge.current=null;var mt=se.current;mt&&Ke(mt)})},[Ke]),Dt=r(function(mt){se.current=null;var Tt=document.activeElement;if(!Tt)return;if(Tt.getAttribute(so.draggableId)!==mt)return;se.current=mt},[]);ii(function(){return Ie.current=!0,function(){Ie.current=!1;var mt=ge.current;mt&&cancelAnimationFrame(mt)}},[]);var Rt=f(function(){return{register:Le,tryRecordFocus:Dt,tryRestoreFocusRecorded:ft,tryShiftRecord:Ge}},[Le,Dt,ft,Ge]);return Rt}function fo(){var q={draggables:{},droppables:{}},ne=[];function se(gt){return ne.push(gt),function(){var Tt=ne.indexOf(gt);if(Tt===-1)return;ne.splice(Tt,1)}}function ge(gt){ne.length&&ne.forEach(function(mt){return mt(gt)})}function Ie(gt){return q.draggables[gt]||null}function Le(gt){var mt=Ie(gt);return mt||U(!1),mt}var Ke={register:function(mt){q.draggables[mt.descriptor.id]=mt,ge({type:"ADDITION",value:mt})},update:function(mt,Tt){var cn=q.draggables[Tt.descriptor.id];if(!cn)return;if(cn.uniqueId!==mt.uniqueId)return;delete q.draggables[Tt.descriptor.id],q.draggables[mt.descriptor.id]=mt},unregister:function(mt){var Tt=mt.descriptor.id,cn=Ie(Tt);if(!cn)return;if(mt.uniqueId!==cn.uniqueId)return;delete q.draggables[Tt],ge({type:"REMOVAL",value:mt})},getById:Le,findById:Ie,exists:function(mt){return Boolean(Ie(mt))},getAllByType:function(mt){return We(q.draggables).filter(function(Tt){return Tt.descriptor.type===mt})}};function Ge(gt){return q.droppables[gt]||null}function ft(gt){var mt=Ge(gt);return mt||U(!1),mt}var Dt={register:function(mt){q.droppables[mt.descriptor.id]=mt},unregister:function(mt){var Tt=Ge(mt.descriptor.id);if(!Tt)return;if(mt.uniqueId!==Tt.uniqueId)return;delete q.droppables[mt.descriptor.id]},getById:ft,findById:Ge,exists:function(mt){return Boolean(Ge(mt))},getAllByType:function(mt){return We(q.droppables).filter(function(Tt){return Tt.descriptor.type===mt})}};function Rt(){q.draggables={},q.droppables={},ne.length=0}return{draggable:Ke,droppable:Dt,subscribe:se,clean:Rt}}function Wo(){var q=f(fo,[]);return Object(M.useEffect)(function(){return function(){requestAnimationFrame(q.clean)}},[q]),q}var lo=E.a.createContext(null),wa=function(){var q=document.body;return q||U(!1),q},Ea={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},za=function(ne){return"rbd-announcement-"+ne};function ui(q){var ne=f(function(){return za(q)},[q]),se=Object(M.useRef)(null);Object(M.useEffect)(function(){var Le=document.createElement("div");return se.current=Le,Le.id=ne,Le.setAttribute("aria-live","assertive"),Le.setAttribute("aria-atomic","true"),Object(v.a)(Le.style,Ea),wa().appendChild(Le),function(){setTimeout(function(){var ft=wa();ft.contains(Le)&&ft.removeChild(Le),Le===se.current&&(se.current=null)})}},[ne]);var ge=r(function(Ie){var Le=se.current;if(Le){Le.textContent=Ie;return}},[]);return ge}var eo=0,Ui={separator:"::"};function ho(){eo=0}function Oi(q,ne){return ne===void 0&&(ne=Ui),f(function(){return""+q+ne.separator+eo++},[ne.separator,q])}function ei(q){var ne=q.contextId,se=q.uniqueId;return"rbd-hidden-text-"+ne+"-"+se}function po(q){var ne=q.contextId,se=q.text,ge=Oi("hidden-text",{separator:"-"}),Ie=f(function(){return ei({contextId:ne,uniqueId:ge})},[ge,ne]);return Object(M.useEffect)(function(){var Ke=document.createElement("div");return Ke.id=Ie,Ke.textContent=se,Ke.style.display="none",wa().appendChild(Ke),function(){var ft=wa();ft.contains(Ke)&&ft.removeChild(Ke)}},[Ie,se]),Ie}var Hi=E.a.createContext(null),mo={react:"^16.8.5","react-dom":"^16.8.5"},hi=/(\d+)\.(\d+)\.(\d+)/,Aa=function(ne){var se=hi.exec(ne);se!=null||U(!1);var ge=Number(se[1]),Ie=Number(se[2]),Le=Number(se[3]);return{major:ge,minor:Ie,patch:Le,raw:ne}},pa=function(ne,se){return se.major>ne.major?!0:se.major<ne.major?!1:se.minor>ne.minor?!0:se.minor<ne.minor?!1:se.patch>=ne.patch},gr=function(q,ne){var se=Aa(q),ge=Aa(ne);if(pa(se,ge))return},Yr=`
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
`,ba=function(q){var ne=q.doctype;if(!ne)return;ne.name.toLowerCase()!=="html",ne.publicId!==""};function Ba(q){}function Ci(q,ne){Ba(function(){Object(M.useEffect)(function(){try{q()}catch(se){xe(`
A setup problem was encountered.
> `+se.message+`
`)}},ne)})}function Mi(){Ci(function(){gr(mo.react,E.a.version),ba(document)},[])}function ti(q){var ne=Object(M.useRef)(q);return Object(M.useEffect)(function(){ne.current=q}),ne}function Si(){var q=null;function ne(){return Boolean(q)}function se(Ke){return Ke===q}function ge(Ke){q&&U(!1);var Ge={abandon:Ke};return q=Ge,Ge}function Ie(){q||U(!1),q=null}function Le(){q&&(q.abandon(),Ie())}return{isClaimed:ne,isActive:se,claim:ge,release:Ie,tryAbandon:Le}}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(q){ms[q.keyCode]&&q.preventDefault()},gs=function(){var q="visibilitychange";if(typeof document=="undefined")return q;var ne=[q,"ms"+q,"webkit"+q,"moz"+q,"o"+q],se=$e(ne,function(ge){return"on"+ge in document});return se||q}(),Zs=0,Ps=5;function Ho(q,ne){return Math.abs(ne.x-q.x)>=Ps||Math.abs(ne.y-q.y)>=Ps}var vs={type:"IDLE"};function _s(q){var ne=q.cancel,se=q.completed,ge=q.getPhase,Ie=q.setPhase;return[{eventName:"mousemove",fn:function(Ke){var Ge=Ke.button,ft=Ke.clientX,Dt=Ke.clientY;if(Ge!==Zs)return;var Rt={x:ft,y:Dt},gt=ge();if(gt.type==="DRAGGING"){Ke.preventDefault(),gt.actions.move(Rt);return}gt.type==="PENDING"||U(!1);var mt=gt.point;if(!Ho(mt,Rt))return;Ke.preventDefault();var Tt=gt.actions.fluidLift(Rt);Ie({type:"DRAGGING",actions:Tt})}},{eventName:"mouseup",fn:function(Ke){var Ge=ge();if(Ge.type!=="DRAGGING"){ne();return}Ke.preventDefault(),Ge.actions.drop({shouldBlockNextClick:!0}),se()}},{eventName:"mousedown",fn:function(Ke){ge().type==="DRAGGING"&&Ke.preventDefault(),ne()}},{eventName:"keydown",fn:function(Ke){var Ge=ge();if(Ge.type==="PENDING"){ne();return}if(Ke.keyCode===qa){Ke.preventDefault(),ne();return}Rs(Ke)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ge().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(Ke){var Ge=ge();if(Ge.type!=="IDLE"||U(!1),Ge.actions.shouldRespectForcePress()){ne();return}Ke.preventDefault()}},{eventName:gs,fn:ne}]}function $s(q){var ne=Object(M.useRef)(vs),se=Object(M.useRef)(Te),ge=f(function(){return{eventName:"mousedown",fn:function(gt){if(gt.defaultPrevented)return;if(gt.button!==Zs)return;if(gt.ctrlKey||gt.metaKey||gt.shiftKey||gt.altKey)return;var mt=q.findClosestDraggableId(gt);if(!mt)return;var Tt=q.tryGetLock(mt,Ke,{sourceEvent:gt});if(!Tt)return;gt.preventDefault();var cn={x:gt.clientX,y:gt.clientY};se.current(),Dt(Tt,cn)}}},[q]),Ie=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(gt){if(gt.defaultPrevented)return;var mt=q.findClosestDraggableId(gt);if(!mt)return;var Tt=q.findOptionsForDraggable(mt);if(!Tt)return;if(Tt.shouldRespectForcePress)return;if(!q.canGetLock(mt))return;gt.preventDefault()}}},[q]),Le=r(function(){var gt={passive:!1,capture:!0};se.current=ve(window,[Ie,ge],gt)},[Ie,ge]),Ke=r(function(){var Rt=ne.current;if(Rt.type==="IDLE")return;ne.current=vs,se.current(),Le()},[Le]),Ge=r(function(){var Rt=ne.current;Ke(),Rt.type==="DRAGGING"&&Rt.actions.cancel({shouldBlockNextClick:!0}),Rt.type==="PENDING"&&Rt.actions.abort()},[Ke]),ft=r(function(){var gt={capture:!0,passive:!1},mt=_s({cancel:Ge,completed:Ke,getPhase:function(){return ne.current},setPhase:function(cn){ne.current=cn}});se.current=ve(window,mt,gt)},[Ge,Ke]),Dt=r(function(gt,mt){ne.current.type==="IDLE"||U(!1),ne.current={type:"PENDING",point:mt,actions:gt},ft()},[ft]);ii(function(){return Le(),function(){se.current()}},[Le])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(q,ne){function se(){ne(),q.cancel()}function ge(){ne(),q.drop()}return[{eventName:"keydown",fn:function(Le){if(Le.keyCode===qa){Le.preventDefault(),se();return}if(Le.keyCode===As){Le.preventDefault(),ge();return}if(Le.keyCode===Il){Le.preventDefault(),q.moveDown();return}if(Le.keyCode===Ml){Le.preventDefault(),q.moveUp();return}if(Le.keyCode===Qs){Le.preventDefault(),q.moveRight();return}if(Le.keyCode===Js){Le.preventDefault(),q.moveLeft();return}if(Ll[Le.keyCode]){Le.preventDefault();return}Rs(Le)}},{eventName:"mousedown",fn:se},{eventName:"mouseup",fn:se},{eventName:"click",fn:se},{eventName:"touchstart",fn:se},{eventName:"resize",fn:se},{eventName:"wheel",fn:se,options:{passive:!0}},{eventName:gs,fn:se}]}function vi(q){var ne=Object(M.useRef)(el),se=f(function(){return{eventName:"keydown",fn:function(Le){if(Le.defaultPrevented)return;if(Le.keyCode!==As)return;var Ke=q.findClosestDraggableId(Le);if(!Ke)return;var Ge=q.tryGetLock(Ke,Rt,{sourceEvent:Le});if(!Ge)return;Le.preventDefault();var ft=!0,Dt=Ge.snapLift();ne.current();function Rt(){ft||U(!1),ft=!1,ne.current(),ge()}ne.current=ve(window,tl(Dt,Rt),{capture:!0,passive:!1})}}},[q]),ge=r(function(){var Le={passive:!1,capture:!0};ne.current=ve(window,[se],Le)},[se]);ii(function(){return ge(),function(){ne.current()}},[ge])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(q){var ne=q.cancel,se=q.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function(Ie){Ie.preventDefault()}},{eventName:"keydown",fn:function(Ie){if(se().type!=="DRAGGING"){ne();return}Ie.keyCode===qa&&Ie.preventDefault(),ne()}},{eventName:gs,fn:ne}]}function Go(q){var ne=q.cancel,se=q.completed,ge=q.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Le){var Ke=ge();if(Ke.type!=="DRAGGING"){ne();return}Ke.hasMoved=!0;var Ge=Le.touches[0],ft=Ge.clientX,Dt=Ge.clientY,Rt={x:ft,y:Dt};Le.preventDefault(),Ke.actions.move(Rt)}},{eventName:"touchend",fn:function(Le){var Ke=ge();if(Ke.type!=="DRAGGING"){ne();return}Le.preventDefault(),Ke.actions.drop({shouldBlockNextClick:!0}),se()}},{eventName:"touchcancel",fn:function(Le){if(ge().type!=="DRAGGING"){ne();return}Le.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(Le){var Ke=ge();Ke.type!=="IDLE"||U(!1);var Ge=Le.touches[0];if(!Ge)return;var ft=Ge.force>=rl;if(!ft)return;var Dt=Ke.actions.shouldRespectForcePress();if(Ke.type==="PENDING"){Dt&&ne();return}if(Dt){if(Ke.hasMoved){Le.preventDefault();return}ne();return}Le.preventDefault()}},{eventName:gs,fn:ne}]}function bs(q){var ne=Object(M.useRef)(Ko),se=Object(M.useRef)(Te),ge=r(function(){return ne.current},[]),Ie=r(function(Tt){ne.current=Tt},[]),Le=f(function(){return{eventName:"touchstart",fn:function(Tt){if(Tt.defaultPrevented)return;var cn=q.findClosestDraggableId(Tt);if(!cn)return;var lr=q.tryGetLock(cn,Ge,{sourceEvent:Tt});if(!lr)return;var fr=Tt.touches[0],Pr=fr.clientX,jr=fr.clientY,la={x:Pr,y:jr};se.current(),gt(lr,la)}}},[q]),Ke=r(function(){var Tt={capture:!0,passive:!1};se.current=ve(window,[Le],Tt)},[Le]),Ge=r(function(){var mt=ne.current;if(mt.type==="IDLE")return;mt.type==="PENDING"&&clearTimeout(mt.longPressTimerId),Ie(Ko),se.current(),Ke()},[Ke,Ie]),ft=r(function(){var mt=ne.current;Ge(),mt.type==="DRAGGING"&&mt.actions.cancel({shouldBlockNextClick:!0}),mt.type==="PENDING"&&mt.actions.abort()},[Ge]),Dt=r(function(){var Tt={capture:!0,passive:!1},cn={cancel:ft,completed:Ge,getPhase:ge},lr=ve(window,Go(cn),Tt),fr=ve(window,al(cn),Tt);se.current=function(){lr(),fr()}},[ft,ge,Ge]),Rt=r(function(){var Tt=ge();Tt.type==="PENDING"||U(!1);var cn=Tt.actions.fluidLift(Tt.point);Ie({type:"DRAGGING",actions:cn,hasMoved:!1})},[ge,Ie]),gt=r(function(Tt,cn){ge().type==="IDLE"||U(!1);var lr=setTimeout(Rt,nl);Ie({type:"PENDING",point:cn,actions:Tt,longPressTimerId:lr}),Dt()},[Dt,ge,Ie,Rt]);ii(function(){return Ke(),function(){se.current();var cn=ge();cn.type==="PENDING"&&(clearTimeout(cn.longPressTimerId),Ie(Ko))}},[ge,Ke,Ie]),ii(function(){var Tt=ve(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Tt},[])}function il(q){Ba(function(){var ne=ti(q);Ci(function(){ne.current.length===q.length||U(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(q,ne){if(ne==null)return!1;var se=Boolean(ol[ne.tagName.toLowerCase()]);if(se)return!0;var ge=ne.getAttribute("contenteditable");return ge==="true"||ge===""?!0:ne===q?!1:Ms(q,ne.parentElement)}function zo(q,ne){var se=ne.target;return $i(se)?Ms(q,se):!1}var sl=function(q){return n(q.getBoundingClientRect()).center};function ys(q){return q instanceof To(q).Element}var ll=function(){var q="matches";if(typeof document=="undefined")return q;var ne=[q,"msMatchesSelector","webkitMatchesSelector"],se=$e(ne,function(ge){return ge in Element.prototype});return se||q}();function Vo(q,ne){return q==null?null:q[ll](ne)?q:Vo(q.parentElement,ne)}function Nl(q,ne){return q.closest?q.closest(ne):Vo(q,ne)}function Xo(q){return"["+so.contextId+'="'+q+'"]'}function ul(q,ne){var se=ne.target;if(!ys(se))return null;var ge=Xo(q),Ie=Nl(se,ge);return Ie&&$i(Ie)?Ie:null}function cl(q,ne){var se=ul(q,ne);return se?se.getAttribute(so.draggableId):null}function dl(q,ne){var se="["+So.contextId+'="'+q+'"]',ge=pt(document.querySelectorAll(se)),Ie=$e(ge,function(Le){return Le.getAttribute(So.id)===ne});return Ie&&$i(Ie)?Ie:null}function ts(q){q.preventDefault()}function Do(q){var ne=q.expected,se=q.phase,ge=q.isLockActive,Ie=q.shouldWarn;return ge()?!(ne!==se):!1}function Yo(q){var ne=q.lockAPI,se=q.store,ge=q.registry,Ie=q.draggableId;if(ne.isClaimed())return!1;var Le=ge.draggable.findById(Ie);return Le&&Le.options.isEnabled?!!to(se.getState(),Ie):!1}function ns(q){var ne=q.lockAPI,se=q.contextId,ge=q.store,Ie=q.registry,Le=q.draggableId,Ke=q.forceSensorStop,Ge=q.sourceEvent,ft=Yo({lockAPI:ne,store:ge,registry:Ie,draggableId:Le});if(!ft)return null;var Dt=Ie.draggable.getById(Le),Rt=dl(se,Dt.descriptor.id);if(!Rt)return null;if(Ge&&!Dt.options.canDragInteractiveElements&&zo(Rt,Ge))return null;var gt=ne.claim(Ke||Te),mt="PRE_DRAG";function Tt(){return Dt.options.shouldRespectForcePress}function cn(){return ne.isActive(gt)}function lr(Ta,Va){Do({expected:Ta,phase:mt,isLockActive:cn,shouldWarn:!0})&&ge.dispatch(Va())}var fr=lr.bind(null,"DRAGGING");function Pr(Ta){function Va(){ne.release(),mt="COMPLETED"}mt!=="PRE_DRAG"&&(Va(),mt==="PRE_DRAG"||U(!1)),ge.dispatch(Un(Ta.liftActionArgs)),mt="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Ta.cleanup(),p.shouldBlockNextClick){var F=ve(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(F)}Va(),ge.dispatch(tt({reason:t}))}return Object(v.a)({isActive:function(){return Do({expected:"DRAGGING",phase:mt,isLockActive:cn,shouldWarn:!1})},shouldRespectForcePress:Tt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Ta.actions)}function jr(Ta){var Va=I(function(t){fr(function(){return wr({client:t})})}),si=Pr({liftActionArgs:{id:Le,clientSelection:Ta,movementMode:"FLUID"},cleanup:function(){return Va.cancel()},actions:{move:Va}});return Object(v.a)({},si,{move:Va})}function la(){var Ta={moveUp:function(){return fr(Kr)},moveRight:function(){return fr(Jr)},moveDown:function(){return fr(mr)},moveLeft:function(){return fr(Rr)}};return Pr({liftActionArgs:{id:Le,clientSelection:sl(Rt),movementMode:"SNAP"},cleanup:Te,actions:Ta})}function Ur(){var Ta=Do({expected:"PRE_DRAG",phase:mt,isLockActive:cn,shouldWarn:!0});Ta&&ne.release()}var Ra={isActive:function(){return Do({expected:"PRE_DRAG",phase:mt,isLockActive:cn,shouldWarn:!1})},shouldRespectForcePress:Tt,fluidLift:jr,snapLift:la,abort:Ur};return Ra}var fl=[$s,vi,bs];function kl(q){var ne=q.contextId,se=q.store,ge=q.registry,Ie=q.customSensors,Le=q.enableDefaultSensors,Ke=[].concat(Le?fl:[],Ie||[]),Ge=Object(M.useState)(function(){return Si()})[0],ft=r(function(jr,la){jr.isDragging&&!la.isDragging&&Ge.tryAbandon()},[Ge]);ii(function(){var jr=se.getState(),la=se.subscribe(function(){var Ur=se.getState();ft(jr,Ur),jr=Ur});return la},[Ge,se,ft]),ii(function(){return Ge.tryAbandon},[Ge.tryAbandon]);var Dt=r(function(Pr){return Yo({lockAPI:Ge,registry:ge,store:se,draggableId:Pr})},[Ge,ge,se]),Rt=r(function(Pr,jr,la){return ns({lockAPI:Ge,registry:ge,contextId:ne,store:se,draggableId:Pr,forceSensorStop:jr,sourceEvent:la&&la.sourceEvent?la.sourceEvent:null})},[ne,Ge,ge,se]),gt=r(function(Pr){return cl(ne,Pr)},[ne]),mt=r(function(Pr){var jr=ge.draggable.findById(Pr);return jr?jr.options:null},[ge.draggable]),Tt=r(function(){if(!Ge.isClaimed())return;Ge.tryAbandon(),se.getState().phase!=="IDLE"&&se.dispatch(ra())},[Ge,se]),cn=r(Ge.isClaimed,[Ge]),lr=f(function(){return{canGetLock:Dt,tryGetLock:Rt,findClosestDraggableId:gt,findOptionsForDraggable:mt,tryReleaseLock:Tt,isLockClaimed:cn}},[Dt,Rt,gt,mt,Tt,cn]);il(Ke);for(var fr=0;fr<Ke.length;fr++)Ke[fr](lr)}var hl=function(ne){return{onBeforeCapture:ne.onBeforeCapture,onBeforeDragStart:ne.onBeforeDragStart,onDragStart:ne.onDragStart,onDragEnd:ne.onDragEnd,onDragUpdate:ne.onDragUpdate}};function Gi(q){return q.current||U(!1),q.current}function Jo(q){var ne=q.contextId,se=q.setCallbacks,ge=q.sensors,Ie=q.nonce,Le=q.dragHandleUsageInstructions,Ke=Object(M.useRef)(null);Mi();var Ge=ti(q),ft=r(function(){return hl(Ge.current)},[Ge]),Dt=ui(ne),Rt=po({contextId:ne,text:Le}),gt=Bo(ne,Ie),mt=r(function(t){Gi(Ke).dispatch(t)},[]),Tt=f(function(){return Object(m.b)({publishWhileDragging:ir,updateDroppableScroll:rr,updateDroppableIsEnabled:or,updateDroppableIsCombineEnabled:ta,collectionStarting:Kn},mt)},[mt]),cn=Wo(),lr=f(function(){return $a(cn,Tt)},[cn,Tt]),fr=f(function(){return ko(Object(v.a)({scrollWindow:Mo,scrollDroppable:lr.scrollDroppable},Object(m.b)({move:wr},mt)))},[lr.scrollDroppable,mt]),Pr=Oo(ne),jr=f(function(){return sa({announce:Dt,autoScroller:fr,dimensionMarshal:lr,focusMarshal:Pr,getResponders:ft,styleMarshal:gt})},[Dt,fr,lr,Pr,ft,gt]);Ke.current=jr;var la=r(function(){var t=Gi(Ke),p=t.getState();p.phase!=="IDLE"&&t.dispatch(ra())},[]),Ur=r(function(){var t=Gi(Ke).getState();return t.isDragging||t.phase==="DROP_ANIMATING"},[]),Ra=f(function(){return{isDragging:Ur,tryAbort:la}},[Ur,la]);se(Ra);var Ta=r(function(t){return to(Gi(Ke).getState(),t)},[]),Va=r(function(){return dn(Gi(Ke).getState())},[]),si=f(function(){return{marshal:lr,focus:Pr,contextId:ne,canLift:Ta,isMovementAllowed:Va,dragHandleUsageInstructionsId:Rt,registry:cn}},[ne,lr,Rt,Pr,Ta,Va,cn]);return kl({contextId:ne,store:jr,registry:cn,customSensors:ge,enableDefaultSensors:q.enableDefaultSensors!==!1}),Object(M.useEffect)(function(){return la},[la]),E.a.createElement(Hi.Provider,{value:si},E.a.createElement(y.a,{context:lo,store:jr},q.children))}var Qo=0;function Ul(){Qo=0}function pl(){return f(function(){return""+Qo++},[])}function iu(){Ul(),ho()}function jl(q){var ne=pl(),se=q.dragHandleUsageInstructions||me.dragHandleUsageInstructions;return E.a.createElement(K,null,function(ge){return E.a.createElement(Jo,{nonce:q.nonce,contextId:ne,setCallbacks:ge,dragHandleUsageInstructions:se,enableDefaultSensors:q.enableDefaultSensors,sensors:q.sensors,onBeforeCapture:q.onBeforeCapture,onBeforeDragStart:q.onBeforeDragStart,onDragStart:q.onDragStart,onDragUpdate:q.onDragUpdate,onDragEnd:q.onDragEnd},q.children)})}var Is=function(ne){return function(se){return ne===se}},Ai=Is("scroll"),ml=Is("auto"),Bl=Is("visible"),gl=function(ne,se){return se(ne.overflowX)||se(ne.overflowY)},Fl=function(ne,se){return se(ne.overflowX)&&se(ne.overflowY)},Ls=function(ne){var se=window.getComputedStyle(ne),ge={overflowX:se.overflowX,overflowY:se.overflowY};return gl(ge,Ai)||gl(ge,ml)},vl=function(){return!1;var ne,se;if(!Ls(ne))return!1;var ge,Ie;if(Fl(Ie,Bl))return!1},Ns=function q(ne){return ne==null?null:ne===document.body?vl()?ne:null:ne===document.documentElement?null:Ls(ne)?ne:q(ne.parentElement)},ou=function(q){if(!q)return;var ne=Ns(q.parentElement);if(!ne)return},ks=function(q){return{x:q.scrollLeft,y:q.scrollTop}},Wl=function q(ne){if(!ne)return!1;var se=window.getComputedStyle(ne);return se.position==="fixed"?!0:q(ne.parentElement)},Ro=function(q){var ne=Ns(q),se=Wl(q);return{closestScrollable:ne,isFixedOnPage:se}},rs=function(q){var ne=q.descriptor,se=q.isEnabled,ge=q.isCombineEnabled,Ie=q.isFixedOnPage,Le=q.direction,Ke=q.client,Ge=q.page,ft=q.closest,Dt=function(){if(!ft)return null;var Tt=ft.scrollSize,cn=ft.client,lr=Ua({scrollHeight:Tt.scrollHeight,scrollWidth:Tt.scrollWidth,height:cn.paddingBox.height,width:cn.paddingBox.width});return{pageMarginBox:ft.page.marginBox,frameClient:cn,scrollSize:Tt,shouldClipSubject:ft.shouldClipSubject,scroll:{initial:ft.scroll,current:ft.scroll,max:lr,diff:{value:Oe,displacement:Oe}}}}(),Rt=Le==="vertical"?yt:zt,gt=we({page:Ge,withPlaceholder:null,axis:Rt,frame:Dt}),mt={descriptor:ne,isCombineEnabled:ge,isFixedOnPage:Ie,axis:Rt,isEnabled:se,client:Ke,page:Ge,frame:Dt,subject:gt};return mt},Es=function(ne,se){var ge=P(ne);if(!se)return ge;if(ne!==se)return ge;var Ie=ge.paddingBox.top-se.scrollTop,Le=ge.paddingBox.left-se.scrollLeft,Ke=Ie+se.scrollHeight,Ge=Le+se.scrollWidth,ft={top:Ie,right:Ge,bottom:Ke,left:Le},Dt=a(ft,ge.border),Rt=h({borderBox:Dt,margin:ge.margin,border:ge.border,padding:ge.padding});return Rt},as=function(q){var ne=q.ref,se=q.descriptor,ge=q.env,Ie=q.windowScroll,Le=q.direction,Ke=q.isDropDisabled,Ge=q.isCombineEnabled,ft=q.shouldClipSubject,Dt=ge.closestScrollable,Rt=Es(ne,Dt),gt=x(Rt,Ie),mt=function(){if(!Dt)return null;var cn=P(Dt),lr={scrollHeight:Dt.scrollHeight,scrollWidth:Dt.scrollWidth};return{client:cn,page:x(cn,Ie),scroll:ks(Dt),scrollSize:lr,shouldClipSubject:ft}}(),Tt=rs({descriptor:se,isEnabled:!Ke,isCombineEnabled:Ge,isFixedOnPage:ge.isFixedOnPage,direction:Le,client:Rt,page:gt,closest:mt});return Tt},vo={passive:!1},Hl={passive:!0},_l=function(q){return q.shouldPublishImmediately?vo:Hl};function _o(q){var ne=Object(M.useContext)(q);return ne||U(!1),ne}var is=function(ne){return ne&&ne.env.closestScrollable||null};function bl(q){var ne=Object(M.useRef)(null),se=_o(Hi),ge=Oi("droppable"),Ie=se.registry,Le=se.marshal,Ke=ti(q),Ge=f(function(){return{id:q.droppableId,type:q.type,mode:q.mode}},[q.droppableId,q.mode,q.type]),ft=Object(M.useRef)(Ge),Dt=f(function(){return A(function(Ur,Ra){ne.current||U(!1);var Ta={x:Ur,y:Ra};Le.updateDroppableScroll(Ge.id,Ta)})},[Ge.id,Le]),Rt=r(function(){var Ur=ne.current;return!Ur||!Ur.env.closestScrollable?Oe:ks(Ur.env.closestScrollable)},[]),gt=r(function(){var Ur=Rt();Dt(Ur.x,Ur.y)},[Rt,Dt]),mt=f(function(){return I(gt)},[gt]),Tt=r(function(){var Ur=ne.current,Ra=is(Ur);Ur&&Ra||U(!1);var Ta=Ur.scrollOptions;if(Ta.shouldPublishImmediately){gt();return}mt()},[mt,gt]),cn=r(function(Ur,Ra){ne.current&&U(!1);var Ta=Ke.current,Va=Ta.getDroppableRef();Va||U(!1);var si=Ro(Va),t={ref:Va,descriptor:Ge,env:si,scrollOptions:Ra};ne.current=t;var p=as({ref:Va,descriptor:Ge,env:si,windowScroll:Ur,direction:Ta.direction,isDropDisabled:Ta.isDropDisabled,isCombineEnabled:Ta.isCombineEnabled,shouldClipSubject:!Ta.ignoreContainerClipping}),F=si.closestScrollable;return F&&(F.setAttribute(jo.contextId,se.contextId),F.addEventListener("scroll",Tt,_l(t.scrollOptions))),p},[se.contextId,Ge,Tt,Ke]),lr=r(function(){var Ur=ne.current,Ra=is(Ur);return Ur&&Ra||U(!1),ks(Ra)},[]),fr=r(function(){var Ur=ne.current;Ur||U(!1);var Ra=is(Ur);if(ne.current=null,!Ra)return;mt.cancel(),Ra.removeAttribute(jo.contextId),Ra.removeEventListener("scroll",Tt,_l(Ur.scrollOptions))},[Tt,mt]),Pr=r(function(Ur){var Ra=ne.current;Ra||U(!1);var Ta=is(Ra);Ta||U(!1),Ta.scrollTop+=Ur.y,Ta.scrollLeft+=Ur.x},[]),jr=f(function(){return{getDimensionAndWatchScroll:cn,getScrollWhileDragging:lr,dragStopped:fr,scroll:Pr}},[fr,cn,lr,Pr]),la=f(function(){return{uniqueId:ge,descriptor:Ge,callbacks:jr}},[jr,Ge,ge]);ii(function(){return ft.current=la.descriptor,Ie.droppable.register(la),function(){ne.current&&fr(),Ie.droppable.unregister(la)}},[jr,Ge,fr,la,Le,Ie.droppable]),ii(function(){if(!ne.current)return;Le.updateDroppableIsEnabled(ft.current.id,!q.isDropDisabled)},[q.isDropDisabled,Le]),ii(function(){if(!ne.current)return;Le.updateDroppableIsCombineEnabled(ft.current.id,q.isCombineEnabled)},[q.isCombineEnabled,Le])}function xs(){}var os={width:0,height:0,margin:he},Zo=function(ne){var se=ne.isAnimatingOpenOnMount,ge=ne.placeholder,Ie=ne.animate;return se||Ie==="close"?os:{height:ge.client.borderBox.height,width:ge.client.borderBox.width,margin:ge.client.margin}},Us=function(ne){var se=ne.isAnimatingOpenOnMount,ge=ne.placeholder,Ie=ne.animate,Le=Zo({isAnimatingOpenOnMount:se,placeholder:ge,animate:Ie});return{display:ge.display,boxSizing:"border-box",width:Le.width,height:Le.height,marginTop:Le.margin.top,marginRight:Le.margin.right,marginBottom:Le.margin.bottom,marginLeft:Le.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ie!=="none"?Pt.placeholder:null}};function js(q){var ne=Object(M.useRef)(null),se=r(function(){if(!ne.current)return;clearTimeout(ne.current),ne.current=null},[]),ge=q.animate,Ie=q.onTransitionEnd,Le=q.onClose,Ke=q.contextId,Ge=Object(M.useState)(q.animate==="open"),ft=Ge[0],Dt=Ge[1];Object(M.useEffect)(function(){return ft?ge!=="open"?(se(),Dt(!1),xs):ne.current?xs:(ne.current=setTimeout(function(){ne.current=null,Dt(!1)}),se):xs},[ge,ft,se]);var Rt=r(function(mt){if(mt.propertyName!=="height")return;Ie(),ge==="close"&&Le()},[ge,Le,Ie]),gt=Us({isAnimatingOpenOnMount:ft,animate:q.animate,placeholder:q.placeholder});return E.a.createElement(q.placeholder.tagName,{style:gt,"data-rbd-placeholder-context-id":Ke,onTransitionEnd:Rt,ref:q.innerRef})}var Bs=E.a.memo(js),Fs=E.a.createContext(null);function qo(q){q&&$i(q)||U(!1)}function Cs(q){return typeof q=="boolean"}function Ws(q,ne){ne.forEach(function(se){return se(q)})}var yl=[function(ne){var se=ne.props;se.droppableId||U(!1),typeof se.droppableId=="string"||U(!1)},function(ne){var se=ne.props;Cs(se.isDropDisabled)||U(!1),Cs(se.isCombineEnabled)||U(!1),Cs(se.ignoreContainerClipping)||U(!1)},function(ne){var se=ne.getDroppableRef;qo(se())}],Ss=[function(ne){var se=ne.props,ge=ne.getPlaceholderRef;if(!se.placeholder)return;var Ie=ge();if(Ie)return}],Kl=[function(ne){var se=ne.props;se.renderClone||U(!1)},function(ne){var se=ne.getPlaceholderRef;se()&&U(!1)}];function Gl(q){Ci(function(){Ws(q,yl),q.props.mode==="standard"&&Ws(q,Ss),q.props.mode==="virtual"&&Ws(q,Kl)})}var ss=function(q){Object(T.a)(ne,q);function ne(){for(var ge,Ie=arguments.length,Le=new Array(Ie),Ke=0;Ke<Ie;Ke++)Le[Ke]=arguments[Ke];return ge=q.call.apply(q,[this].concat(Le))||this,ge.state={isVisible:Boolean(ge.props.on),data:ge.props.on,animate:ge.props.shouldAnimate&&ge.props.on?"open":"none"},ge.onClose=function(){if(ge.state.animate!=="close")return;ge.setState({isVisible:!1})},ge}ne.getDerivedStateFromProps=function(Ie,Le){return Ie.shouldAnimate?Ie.on?{isVisible:!0,data:Ie.on,animate:"open"}:Le.isVisible?{isVisible:!0,data:Le.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(Ie.on),data:Ie.on,animate:"none"}};var se=ne.prototype;return se.render=function(){if(!this.state.isVisible)return null;var Ie={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ie)},ne}(E.a.PureComponent),Hs={dragging:5e3,dropAnimating:4500},El=function(ne,se){return se?Pt.drop(se.duration):ne?Pt.snap:Pt.fluid},zl=function(ne,se){return ne?se?ht.opacity.drop:ht.opacity.combining:null},Ks=function(ne){return ne.forceShouldAnimate!=null?ne.forceShouldAnimate:ne.mode==="SNAP"};function xl(q){var ne=q.dimension,se=ne.client,ge=q.offset,Ie=q.combineWith,Le=q.dropping,Ke=Boolean(Ie),Ge=Ks(q),ft=Boolean(Le),Dt=ft?kt.drop(ge,Ke):kt.moveTo(ge),Rt={position:"fixed",top:se.marginBox.top,left:se.marginBox.left,boxSizing:"border-box",width:se.borderBox.width,height:se.borderBox.height,transition:El(Ge,Le),transform:Dt,opacity:zl(Ke,ft),zIndex:ft?Hs.dropAnimating:Hs.dragging,pointerEvents:"none"};return Rt}function Vl(q){return{transform:kt.moveTo(q.offset),transition:q.shouldAnimateDisplacement?null:"none"}}function Cl(q){return q.type==="DRAGGING"?xl(q):Vl(q)}function Sl(q,ne,se){se===void 0&&(se=Oe);var ge=window.getComputedStyle(ne),Ie=ne.getBoundingClientRect(),Le=b(Ie,ge),Ke=x(Le,se),Ge={client:Le,tagName:ne.tagName.toLowerCase(),display:ge.display},ft={x:Le.marginBox.width,y:Le.marginBox.height},Dt={descriptor:q,placeholder:Ge,displaceBy:ft,client:Le,page:Ke};return Dt}function Xl(q){var ne=Oi("draggable"),se=q.descriptor,ge=q.registry,Ie=q.getDraggableRef,Le=q.canDragInteractiveElements,Ke=q.shouldRespectForcePress,Ge=q.isEnabled,ft=f(function(){return{canDragInteractiveElements:Le,shouldRespectForcePress:Ke,isEnabled:Ge}},[Le,Ge,Ke]),Dt=r(function(Tt){var cn=Ie();return cn||U(!1),Sl(se,cn,Tt)},[se,Ie]),Rt=f(function(){return{uniqueId:ne,descriptor:se,options:ft,getDimension:Dt}},[se,Dt,ft,ne]),gt=Object(M.useRef)(Rt),mt=Object(M.useRef)(!0);ii(function(){return ge.draggable.register(gt.current),function(){return ge.draggable.unregister(gt.current)}},[ge.draggable]),ii(function(){if(mt.current){mt.current=!1;return}var Tt=gt.current;gt.current=Rt,ge.draggable.update(Rt,Tt)},[Rt,ge.draggable])}function Gs(q,ne,se){Ci(function(){function ge(Le){return"Draggable[id: "+Le+"]: "}var Ie=q.draggableId;if(Ie||U(!1),typeof Ie=="string"||U(!1),Ue(q.index)||U(!1),q.mapped.type==="DRAGGING")return;qo(se()),q.isEnabled&&(Wi(ne,Ie)||U(!1))})}function ls(q){Ba(function(){var ne=Object(M.useRef)(q);Ci(function(){q===ne.current||U(!1)},[q])})}function us(q){q.preventDefault()}function Yl(q){var ne=Object(M.useRef)(null),se=r(function(t){ne.current=t},[]),ge=r(function(){return ne.current},[]),Ie=_o(Hi),Le=Ie.contextId,Ke=Ie.dragHandleUsageInstructionsId,Ge=Ie.registry,ft=_o(Fs),Dt=ft.type,Rt=ft.droppableId,gt=f(function(){return{id:q.draggableId,index:q.index,type:Dt,droppableId:Rt}},[q.draggableId,q.index,Dt,Rt]),mt=q.children,Tt=q.draggableId,cn=q.isEnabled,lr=q.shouldRespectForcePress,fr=q.canDragInteractiveElements,Pr=q.isClone,jr=q.mapped,la=q.dropAnimationFinished;if(Gs(q,Le,ge),ls(Pr),!Pr){var Ur=f(function(){return{descriptor:gt,registry:Ge,getDraggableRef:ge,canDragInteractiveElements:fr,shouldRespectForcePress:lr,isEnabled:cn}},[gt,Ge,ge,fr,lr,cn]);Xl(Ur)}var Ra=f(function(){return cn?{tabIndex:0,role:"button","aria-describedby":Ke,"data-rbd-drag-handle-draggable-id":Tt,"data-rbd-drag-handle-context-id":Le,draggable:!1,onDragStart:us}:null},[Le,Ke,Tt,cn]),Ta=r(function(t){if(jr.type!=="DRAGGING")return;if(!jr.dropping)return;if(t.propertyName!=="transform")return;la()},[la,jr]),Va=f(function(){var t=Cl(jr),p=jr.type==="DRAGGING"&&jr.dropping?Ta:null,F={innerRef:se,draggableProps:{"data-rbd-draggable-context-id":Le,"data-rbd-draggable-id":Tt,style:t,onTransitionEnd:p},dragHandleProps:Ra};return F},[Le,Ra,Tt,jr,Ta,se]),si=f(function(){return{draggableId:gt.id,type:gt.type,source:{index:gt.index,droppableId:gt.droppableId}}},[gt.droppableId,gt.id,gt.index,gt.type]);return mt(Va,jr.snapshot,si)}var zs=function(q,ne){return q===ne},wl=function(q){var ne=q.combine,se=q.destination;return se?se.droppableId:ne?ne.droppableId:null},Jl=function(ne){return ne.combine?ne.combine.draggableId:null},Ql=function(ne){return ne.at&&ne.at.type==="COMBINE"?ne.at.combine.draggableId:null};function Zl(){var q=A(function(Ie,Le){return{x:Ie,y:Le}}),ne=A(function(Ie,Le,Ke,Ge,ft){return{isDragging:!0,isClone:Le,isDropAnimating:Boolean(ft),dropAnimation:ft,mode:Ie,draggingOver:Ke,combineWith:Ge,combineTargetFor:null}}),se=A(function(Ie,Le,Ke,Ge,ft,Dt,Rt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:ft,combineWith:Dt,mode:Le,offset:Ie,dimension:Ke,forceShouldAnimate:Rt,snapshot:ne(Le,Ge,ft,Dt,null)}}}),ge=function(Le,Ke){if(Le.isDragging){if(Le.critical.draggable.id!==Ke.draggableId)return null;var Ge=Le.current.client.offset,ft=Le.dimensions.draggables[Ke.draggableId],Dt=Wt(Le.impact),Rt=Ql(Le.impact),gt=Le.forceShouldAnimate;return se(q(Ge.x,Ge.y),Le.movementMode,ft,Ke.isClone,Dt,Rt,gt)}if(Le.phase==="DROP_ANIMATING"){var mt=Le.completed;if(mt.result.draggableId!==Ke.draggableId)return null;var Tt=Ke.isClone,cn=Le.dimensions.draggables[Ke.draggableId],lr=mt.result,fr=lr.mode,Pr=wl(lr),jr=Jl(lr),la=Le.dropDuration,Ur={duration:la,curve:qe.drop,moveTo:Le.newHomeClientOffset,opacity:jr?ht.opacity.drop:null,scale:jr?ht.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Le.newHomeClientOffset,dimension:cn,dropping:Ur,draggingOver:Pr,combineWith:jr,mode:fr,forceShouldAnimate:null,snapshot:ne(fr,Tt,Pr,jr,Ur)}}}return null};return ge}function Vs(q){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:q,combineWith:null}}var ql={mapped:{type:"SECONDARY",offset:Oe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function $l(){var q=A(function(Ke,Ge){return{x:Ke,y:Ge}}),ne=A(Vs),se=A(function(Ke,Ge,ft){return Ge===void 0&&(Ge=null),{mapped:{type:"SECONDARY",offset:Ke,combineTargetFor:Ge,shouldAnimateDisplacement:ft,snapshot:ne(Ge)}}}),ge=function(Ge){return Ge?se(Oe,Ge,!0):null},Ie=function(Ge,ft,Dt,Rt){var gt=Dt.displaced.visible[Ge],mt=Boolean(Rt.inVirtualList&&Rt.effected[Ge]),Tt=it(Dt),cn=Tt&&Tt.draggableId===Ge?ft:null;if(!gt){if(!mt)return ge(cn);if(Dt.displaced.invisible[Ge])return null;var lr=st(Rt.displacedBy.point),fr=q(lr.x,lr.y);return se(fr,cn,!0)}if(mt)return ge(cn);var Pr=Dt.displacedBy.point,jr=q(Pr.x,Pr.y);return se(jr,cn,gt.shouldAnimate)},Le=function(Ge,ft){if(Ge.isDragging)return Ge.critical.draggable.id===ft.draggableId?null:Ie(ft.draggableId,Ge.critical.draggable.id,Ge.impact,Ge.afterCritical);if(Ge.phase==="DROP_ANIMATING"){var Dt=Ge.completed;return Dt.result.draggableId===ft.draggableId?null:Ie(ft.draggableId,Dt.result.draggableId,Dt.impact,Dt.afterCritical)}return null};return Le}var Tl=function(){var ne=Zl(),se=$l(),ge=function(Le,Ke){return ne(Le,Ke)||se(Le,Ke)||ql};return ge},Xs={dropAnimationFinished:Ye},Ol=Object(y.c)(Tl,Xs,null,{context:lo,pure:!0,areStatePropsEqual:zs})(Yl);function Al(q){var ne=_o(Fs),se=ne.isUsingCloneFor;return se===q.draggableId&&!q.isClone?null:E.a.createElement(Ol,q)}function Dl(q){var ne=typeof q.isDragDisabled=="boolean"?!q.isDragDisabled:!0,se=Boolean(q.disableInteractiveElementBlocking),ge=Boolean(q.shouldRespectForcePress);return E.a.createElement(Al,Object(v.a)({},q,{isClone:!1,isEnabled:ne,canDragInteractiveElements:se,shouldRespectForcePress:ge}))}function $o(q){var ne=Object(M.useContext)(Hi);ne||U(!1);var se=ne.contextId,ge=ne.isMovementAllowed,Ie=Object(M.useRef)(null),Le=Object(M.useRef)(null),Ke=q.children,Ge=q.droppableId,ft=q.type,Dt=q.mode,Rt=q.direction,gt=q.ignoreContainerClipping,mt=q.isDropDisabled,Tt=q.isCombineEnabled,cn=q.snapshot,lr=q.useClone,fr=q.updateViewportMaxScroll,Pr=q.getContainerForClone,jr=r(function(){return Ie.current},[]),la=r(function(B){Ie.current=B},[]),Ur=r(function(){return Le.current},[]),Ra=r(function(B){Le.current=B},[]);Gl({props:q,getDroppableRef:jr,getPlaceholderRef:Ur});var Ta=r(function(){ge()&&fr({maxScroll:Ei()})},[ge,fr]);bl({droppableId:Ge,type:ft,mode:Dt,direction:Rt,isDropDisabled:mt,isCombineEnabled:Tt,ignoreContainerClipping:gt,getDroppableRef:jr});var Va=E.a.createElement(ss,{on:q.placeholder,shouldAnimate:q.shouldAnimatePlaceholder},function(B){var V=B.onClose,oe=B.data,pe=B.animate;return E.a.createElement(Bs,{placeholder:oe,onClose:V,innerRef:Ra,animate:pe,contextId:se,onTransitionEnd:Ta})}),si=f(function(){return{innerRef:la,placeholder:Va,droppableProps:{"data-rbd-droppable-id":Ge,"data-rbd-droppable-context-id":se}}},[se,Ge,Va,la]),t=lr?lr.dragging.draggableId:null,p=f(function(){return{droppableId:Ge,type:ft,isUsingCloneFor:t}},[Ge,t,ft]);function F(){if(!lr)return null;var B=lr.dragging,V=lr.render,oe=E.a.createElement(Al,{draggableId:B.draggableId,index:B.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(pe,Se){return V(pe,Se,B)});return J.a.createPortal(oe,Pr())}return E.a.createElement(Fs.Provider,{value:p},Ke(si,cn),F())}var ws=function(ne,se){return ne===se.droppable.type},cs=function(ne,se){return se.draggables[ne.draggable.id]},eu=function(){var ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},se=Object(v.a)({},ne,{shouldAnimatePlaceholder:!1}),ge=A(function(Ke){return{draggableId:Ke.id,type:Ke.type,source:{index:Ke.index,droppableId:Ke.droppableId}}}),Ie=A(function(Ke,Ge,ft,Dt,Rt,gt){var mt=Rt.descriptor.id,Tt=Rt.descriptor.droppableId===Ke;if(Tt){var cn=gt?{render:gt,dragging:ge(Rt.descriptor)}:null,lr={isDraggingOver:ft,draggingOverWith:ft?mt:null,draggingFromThisWith:mt,isUsingPlaceholder:!0};return{placeholder:Rt.placeholder,shouldAnimatePlaceholder:!1,snapshot:lr,useClone:cn}}if(!Ge)return se;if(!Dt)return ne;var fr={isDraggingOver:ft,draggingOverWith:mt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Rt.placeholder,shouldAnimatePlaceholder:!0,snapshot:fr,useClone:null}}),Le=function(Ge,ft){var Dt=ft.droppableId,Rt=ft.type,gt=!ft.isDropDisabled,mt=ft.renderClone;if(Ge.isDragging){var Tt=Ge.critical;if(!ws(Rt,Tt))return se;var cn=cs(Tt,Ge.dimensions),lr=Wt(Ge.impact)===Dt;return Ie(Dt,gt,lr,lr,cn,mt)}if(Ge.phase==="DROP_ANIMATING"){var fr=Ge.completed;if(!ws(Rt,fr.critical))return se;var Pr=cs(fr.critical,Ge.dimensions);return Ie(Dt,gt,wl(fr.result)===Dt,Wt(fr.impact)===Dt,Pr,mt)}if(Ge.phase==="IDLE"&&Ge.completed&&!Ge.shouldFlush){var jr=Ge.completed;if(!ws(Rt,jr.critical))return se;var la=Wt(jr.impact)===Dt,Ur=Boolean(jr.impact.at&&jr.impact.at.type==="COMBINE"),Ra=jr.critical.droppable.id===Dt;return la?Ur?ne:se:Ra?ne:se}return se};return Le},tu={updateViewportMaxScroll:qr};function nu(){return document.body||U(!1),document.body}var Qa={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nu},Rl=Object(y.c)(eu,tu,null,{context:lo,pure:!0,areStatePropsEqual:zs})($o);Rl.defaultProps=Qa},nnTU:function(N,Y,i){"use strict";i.d(Y,"b",function(){return O}),i.d(Y,"a",function(){return g});var M=i("MI8n"),E=i("JYp7"),T=i("pmY6"),v=i("24hK"),m=i("746U"),y=i("Cg/j");const O=Object(y.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 o=[];for(let d of e.description.args)o.push(d.constraint);const l=e.handler;e.handler=function(d,...h){return Object(m.o)(h,o),l(d,...h)}}const{id:r}=e;let c=this._commands.get(r);c||(c=new v.a,this._commands.set(r,c));let n=c.unshift(e),a=Object(T.i)(()=>{n();const o=this._commands.get(r);(o==null?void 0:o.isEmpty())&&this._commands.delete(r)});return this._onDidRegisterCommand.fire(r),a}registerCommandAlias(e,f){return g.registerCommand(e,(r,...c)=>r.get(O).executeCommand(f,...c))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:E.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(N,Y){N.exports="data:image/png;base64,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"},oRuE:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.pad.Iso10126={pad:function(E,T){var v=T*4,m=v-E.sigBytes%v;E.concat(M.lib.WordArray.random(m-1)).concat(M.lib.WordArray.create([m<<24],1))},unpad:function(E){var T=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=T}},M.pad.Iso10126})},oaGz:function(N,Y,i){N.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(N,Y,i){"use strict";i.d(Y,"a",function(){return va});var M=i("1OyB"),E=i("vuIU"),T=i("Ji7U"),v=i("LK+K"),m=i("rePB"),y=i("VTBJ"),O=i("ODXe"),g=i("q1tI"),e=i("TSYQ"),f=i.n(e),r=i("Kwbf"),c=i("6cGi"),n=i("U8pU"),a=i("4IlW"),o=g.createContext({}),l=o,d={visibility:"hidden"};function h(ye){var rt=ye.prefixCls,Et=ye.prevIcon,vt=Et===void 0?"\u2039":Et,Wt=ye.nextIcon,Lt=Wt===void 0?"\u203A":Wt,Zt=ye.superPrevIcon,dn=Zt===void 0?"\xAB":Zt,En=ye.superNextIcon,wn=En===void 0?"\xBB":En,Hn=ye.onSuperPrev,jn=ye.onSuperNext,nn=ye.onPrev,Mn=ye.onNext,mn=ye.children,Wn=g.useContext(l),Dn=Wn.hideNextBtn,tr=Wn.hidePrevBtn;return g.createElement("div",{className:rt},Hn&&g.createElement("button",{type:"button",onClick:Hn,tabIndex:-1,className:"".concat(rt,"-super-prev-btn"),style:tr?d:{}},dn),nn&&g.createElement("button",{type:"button",onClick:nn,tabIndex:-1,className:"".concat(rt,"-prev-btn"),style:tr?d:{}},vt),g.createElement("div",{className:"".concat(rt,"-view")},mn),Mn&&g.createElement("button",{type:"button",onClick:Mn,tabIndex:-1,className:"".concat(rt,"-next-btn"),style:Dn?d:{}},Lt),jn&&g.createElement("button",{type:"button",onClick:jn,tabIndex:-1,className:"".concat(rt,"-super-next-btn"),style:Dn?d:{}},wn))}var s=h;function u(ye){var rt=g.useContext(l),Et=rt.hideHeader;if(Et)return null;var vt=ye.prefixCls,Wt=ye.generateConfig,Lt=ye.locale,Zt=ye.value,dn=ye.format,En="".concat(vt,"-header");return g.createElement(s,{prefixCls:En},Zt?Wt.locale.format(Lt.locale,Zt,dn):"\xA0")}var w=u,x=i("YrtM"),b=i("KQm4"),P=new Map;function R(ye,rt,Et){if(P.get(ye)&&cancelAnimationFrame(P.get(ye)),Et<=0){P.set(ye,requestAnimationFrame(function(){ye.scrollTop=rt}));return}var vt=rt-ye.scrollTop,Wt=vt/Et*10;P.set(ye,requestAnimationFrame(function(){ye.scrollTop+=Wt,ye.scrollTop!==rt&&R(ye,rt,Et-10)}))}function C(ye,rt){var Et=rt.onLeftRight,vt=rt.onCtrlLeftRight,Wt=rt.onUpDown,Lt=rt.onPageUpDown,Zt=rt.onEnter,dn=ye.which,En=ye.ctrlKey,wn=ye.metaKey;switch(dn){case a.a.LEFT:if(En||wn){if(vt)return vt(-1),!0}else if(Et)return Et(-1),!0;break;case a.a.RIGHT:if(En||wn){if(vt)return vt(1),!0}else if(Et)return Et(1),!0;break;case a.a.UP:if(Wt)return Wt(-1),!0;break;case a.a.DOWN:if(Wt)return Wt(1),!0;break;case a.a.PAGE_UP:if(Lt)return Lt(-1),!0;break;case a.a.PAGE_DOWN:if(Lt)return Lt(1),!0;break;case a.a.ENTER:if(Zt)return Zt(),!0;break}return!1}function S(ye,rt,Et,vt){var Wt=ye;if(!Wt)switch(rt){case"time":Wt=vt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Wt="gggg-wo";break;case"month":Wt="YYYY-MM";break;case"quarter":Wt="YYYY-[Q]Q";break;case"year":Wt="YYYY";break;default:Wt=Et?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Wt}function _(ye,rt){var Et=ye==="time"?8:10;return Math.max(Et,rt.length)+2}var A=null,j=new Set;function I(ye){return!A&&typeof window!="undefined"&&window.addEventListener&&(A=function(Et){Object(b.a)(j).forEach(function(vt){vt(Et)})},window.addEventListener("mousedown",A)),j.add(ye),function(){j.delete(ye),j.size===0&&(window.removeEventListener("mousedown",A),A=null)}}var k=function(rt){return rt==="month"||rt==="date"?"year":rt},J=function(rt){return rt==="date"?"month":rt},G=function(rt){return rt==="month"||rt==="date"?"quarter":rt},D=function(rt){return rt==="date"?"week":rt},H={year:k,month:J,quarter:G,week:D,time:null,date:null};function W(ye,rt){return ye.some(function(Et){return Et&&Et.contains(rt)})}function L(ye){var rt=ye.prefixCls,Et=ye.units,vt=ye.onSelect,Wt=ye.value,Lt=ye.active,Zt=ye.hideDisabledOptions,dn="".concat(rt,"-cell"),En=g.useContext(l),wn=En.open,Hn=g.useRef(null),jn=g.useRef(new Map);return g.useLayoutEffect(function(){var nn=jn.current.get(Wt);nn&&wn!==!1&&R(Hn.current,nn.offsetTop,120)},[Wt]),g.useLayoutEffect(function(){if(wn){var nn=jn.current.get(Wt);nn&&R(Hn.current,nn.offsetTop,0)}},[wn]),g.createElement("ul",{className:f()("".concat(rt,"-column"),Object(m.a)({},"".concat(rt,"-column-active"),Lt)),ref:Hn,style:{position:"relative"}},Et.map(function(nn){var Mn;return Zt&&nn.disabled?null:g.createElement("li",{key:nn.value,ref:function(Wn){jn.current.set(nn.value,Wn)},className:f()(dn,(Mn={},Object(m.a)(Mn,"".concat(dn,"-disabled"),nn.disabled),Object(m.a)(Mn,"".concat(dn,"-selected"),Wt===nn.value),Mn)),onClick:function(){if(nn.disabled)return;vt(nn.value)}},g.createElement("div",{className:"".concat(dn,"-inner")},nn.label))}))}var z=L;function ie(ye,rt){for(var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",vt=String(ye);vt.length<rt;)vt="".concat(Et).concat(ye);return vt}var ce=function(){for(var rt=arguments.length,Et=new Array(rt),vt=0;vt<rt;vt++)Et[vt]=arguments[vt];return Et};function ue(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function xe(ye){var rt={};return Object.keys(ye).forEach(function(Et){(Et.substr(0,5)==="data-"||Et.substr(0,5)==="aria-"||Et==="role"||Et==="name")&&Et.substr(0,7)!=="data-__"&&(rt[Et]=ye[Et])}),rt}function Te(ye,rt){return ye?ye[rt]:null}function de(ye,rt,Et){var vt=[Te(ye,0),Te(ye,1)];return vt[Et]=typeof rt=="function"?rt(vt[Et]):rt,!vt[0]&&!vt[1]?null:vt}function ve(ye,rt,Et,vt,Wt){var Lt=ye.setHour(rt,Et);return Lt=ye.setMinute(Lt,vt),Lt=ye.setSecond(Lt,Wt),Lt}function _e(ye,rt,Et,vt,Wt,Lt){var Zt=Math.floor(ye/vt)*vt;if(Zt<ye)return[Zt,60-Wt,60-Lt];var dn=Math.floor(rt/Wt)*Wt;if(dn<rt)return[Zt,dn,60-Lt];var En=Math.floor(Et/Lt)*Lt;return[Zt,dn,En]}function le(ye,rt){if(ye.length!==rt.length)return!0;for(var Et=0;Et<ye.length;Et+=1)if(ye[Et].disabled!==rt[Et].disabled)return!0;return!1}function ee(ye,rt,Et,vt){for(var Wt=[],Lt=ye;Lt<=rt;Lt+=Et)Wt.push({label:ie(Lt,2),value:Lt,disabled:(vt||[]).includes(Lt)});return Wt}function U(ye){var rt=ye.generateConfig,Et=ye.prefixCls,vt=ye.operationRef,Wt=ye.activeColumnIndex,Lt=ye.value,Zt=ye.showHour,dn=ye.showMinute,En=ye.showSecond,wn=ye.use12Hours,Hn=ye.hourStep,jn=Hn===void 0?1:Hn,nn=ye.minuteStep,Mn=nn===void 0?1:nn,mn=ye.secondStep,Wn=mn===void 0?1:mn,Dn=ye.disabledHours,tr=ye.disabledMinutes,sr=ye.disabledSeconds,Ir=ye.hideDisabledOptions,oa=ye.onSelect,Cr=[],Or="".concat(Et,"-content"),ea="".concat(Et,"-time-panel"),Nn,br=Lt?rt.getHour(Lt):-1,$t=Lt?rt.getMinute(Lt):-1,jt=Lt?rt.getSecond(Lt):-1,on=function(en,Vt,Un,$n){var ir=Lt||rt.getNow(),Kn=Math.max(0,Vt),rr=Math.max(0,Un),or=Math.max(0,$n);return ir=ve(rt,ir,!wn||!en?Kn:Kn+12,rr,or),ir},An=ee(0,23,jn,Dn&&Dn()),Tn=Object(x.a)(function(){return An},An,le);wn&&(Nn=br>=12,br%=12);var Yn=g.useMemo(function(){if(!wn)return[!1,!1];var Ut=[!0,!0];return Tn.forEach(function(en){var Vt=en.disabled,Un=en.value;if(Vt)return;Un>=12?Ut[1]=!1:Ut[0]=!1}),Ut},[wn,Tn]),Jn=Object(O.a)(Yn,2),kn=Jn[0],Ar=Jn[1],ur=g.useMemo(function(){return wn?Tn.filter(Nn?function(Ut){return Ut.value>=12}:function(Ut){return Ut.value<12}).map(function(Ut){var en=Ut.value%12,Vt=en===0?"12":ie(en,2);return Object(y.a)(Object(y.a)({},Ut),{},{label:Vt,value:en})}):Tn},[wn,Tn]),yr=ee(0,59,Mn,tr&&tr(br)),vr=ee(0,59,Wn,sr&&sr(br,$t));vt.current={onUpDown:function(en){var Vt=Cr[Wt];if(Vt)for(var Un=Vt.units.findIndex(function(rr){return rr.value===Vt.value}),$n=Vt.units.length,ir=1;ir<$n;ir+=1){var Kn=Vt.units[(Un+en*ir+$n)%$n];if(Kn.disabled!==!0){Vt.onSelect(Kn.value);break}}}};function Dr(Ut,en,Vt,Un,$n){Ut!==!1&&Cr.push({node:g.cloneElement(en,{prefixCls:ea,value:Vt,active:Wt===Cr.length,onSelect:$n,units:Un,hideDisabledOptions:Ir}),onSelect:$n,value:Vt,units:Un})}Dr(Zt,g.createElement(z,{key:"hour"}),br,ur,function(Ut){oa(on(Nn,Ut,$t,jt),"mouse")}),Dr(dn,g.createElement(z,{key:"minute"}),$t,yr,function(Ut){oa(on(Nn,br,Ut,jt),"mouse")}),Dr(En,g.createElement(z,{key:"second"}),jt,vr,function(Ut){oa(on(Nn,br,$t,Ut),"mouse")});var Xn=-1;return typeof Nn=="boolean"&&(Xn=Nn?1:0),Dr(wn===!0,g.createElement(z,{key:"12hours"}),Xn,[{label:"AM",value:0,disabled:kn},{label:"PM",value:1,disabled:Ar}],function(Ut){oa(on(!!Ut,br,$t,jt),"mouse")}),g.createElement("div",{className:Or},Cr.map(function(Ut){var en=Ut.node;return en}))}var K=U,X=function(rt){return rt.filter(function(Et){return Et!==!1}).length};function Q(ye){var rt=ye.generateConfig,Et=ye.format,vt=Et===void 0?"HH:mm:ss":Et,Wt=ye.prefixCls,Lt=ye.active,Zt=ye.operationRef,dn=ye.showHour,En=ye.showMinute,wn=ye.showSecond,Hn=ye.use12Hours,jn=Hn===void 0?!1:Hn,nn=ye.onSelect,Mn=ye.value,mn="".concat(Wt,"-time-panel"),Wn=g.useRef(),Dn=g.useState(-1),tr=Object(O.a)(Dn,2),sr=tr[0],Ir=tr[1],oa=X([dn,En,wn,jn]);return Zt.current={onKeyDown:function(Or){return C(Or,{onLeftRight:function(Nn){Ir((sr+Nn+oa)%oa)},onUpDown:function(Nn){sr===-1?Ir(0):Wn.current&&Wn.current.onUpDown(Nn)},onEnter:function(){nn(Mn||rt.getNow(),"key"),Ir(-1)}})},onBlur:function(){Ir(-1)}},g.createElement("div",{className:f()(mn,Object(m.a)({},"".concat(mn,"-active"),Lt))},g.createElement(w,Object.assign({},ye,{format:vt,prefixCls:Wt})),g.createElement(K,Object.assign({},ye,{prefixCls:Wt,activeColumnIndex:sr,operationRef:Wn})))}var te=Q,ae=7;function re(ye,rt){return!ye&&!rt?!0:!ye||!rt?!1:void 0}function $(ye,rt,Et){var vt=re(rt,Et);if(typeof vt=="boolean")return vt;var Wt=Math.floor(ye.getYear(rt)/10),Lt=Math.floor(ye.getYear(Et)/10);return Wt===Lt}function Z(ye,rt,Et){var vt=re(rt,Et);return typeof vt=="boolean"?vt:ye.getYear(rt)===ye.getYear(Et)}function fe(ye,rt){var Et=Math.floor(ye.getMonth(rt)/3);return Et+1}function me(ye,rt,Et){var vt=re(rt,Et);return typeof vt=="boolean"?vt:Z(ye,rt,Et)&&fe(ye,rt)===fe(ye,Et)}function Oe(ye,rt,Et){var vt=re(rt,Et);return typeof vt=="boolean"?vt:Z(ye,rt,Et)&&ye.getMonth(rt)===ye.getMonth(Et)}function He(ye,rt,Et){var vt=re(rt,Et);return typeof vt=="boolean"?vt:ye.getYear(rt)===ye.getYear(Et)&&ye.getMonth(rt)===ye.getMonth(Et)&&ye.getDate(rt)===ye.getDate(Et)}function Qe(ye,rt,Et){var vt=re(rt,Et);return typeof vt=="boolean"?vt:ye.getHour(rt)===ye.getHour(Et)&&ye.getMinute(rt)===ye.getMinute(Et)&&ye.getSecond(rt)===ye.getSecond(Et)}function ot(ye,rt,Et,vt){var Wt=re(Et,vt);return typeof Wt=="boolean"?Wt:ye.locale.getWeek(rt,Et)===ye.locale.getWeek(rt,vt)}function st(ye,rt,Et){return He(ye,rt,Et)&&Qe(ye,rt,Et)}function ct(ye,rt,Et,vt){return!rt||!Et||!vt?!1:!He(ye,rt,vt)&&!He(ye,Et,vt)&&ye.isAfter(vt,rt)&&ye.isAfter(Et,vt)}function dt(ye,rt,Et){var vt=rt.locale.getWeekFirstDay(ye),Wt=rt.setDate(Et,1),Lt=rt.getWeekDay(Wt),Zt=rt.addDate(Wt,vt-Lt);return rt.getMonth(Zt)===rt.getMonth(Et)&&rt.getDate(Zt)>1&&(Zt=rt.addDate(Zt,-7)),Zt}function Xe(ye,rt,Et){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(rt){case"year":return Et.addYear(ye,vt*10);case"quarter":case"month":return Et.addYear(ye,vt);default:return Et.addMonth(ye,vt)}}var ke=g.createContext({}),lt=ke;function Mt(ye){var rt=ye.cellPrefixCls,Et=ye.generateConfig,vt=ye.rangedValue,Wt=ye.hoverRangedValue,Lt=ye.isInView,Zt=ye.isSameCell,dn=ye.offsetCell,En=ye.today,wn=ye.value;function Hn(jn){var nn,Mn=dn(jn,-1),mn=dn(jn,1),Wn=Te(vt,0),Dn=Te(vt,1),tr=Te(Wt,0),sr=Te(Wt,1),Ir=ct(Et,tr,sr,jn);function oa($t){return Zt(Wn,$t)}function Cr($t){return Zt(Dn,$t)}var Or=Zt(tr,jn),ea=Zt(sr,jn),Nn=(Ir||ea)&&(!Lt(Mn)||Cr(Mn)),br=(Ir||Or)&&(!Lt(mn)||oa(mn));return nn={},Object(m.a)(nn,"".concat(rt,"-in-view"),Lt(jn)),Object(m.a)(nn,"".concat(rt,"-in-range"),ct(Et,Wn,Dn,jn)),Object(m.a)(nn,"".concat(rt,"-range-start"),oa(jn)),Object(m.a)(nn,"".concat(rt,"-range-end"),Cr(jn)),Object(m.a)(nn,"".concat(rt,"-range-start-single"),oa(jn)&&!Dn),Object(m.a)(nn,"".concat(rt,"-range-end-single"),Cr(jn)&&!Wn),Object(m.a)(nn,"".concat(rt,"-range-start-near-hover"),oa(jn)&&(Zt(Mn,tr)||ct(Et,tr,sr,Mn))),Object(m.a)(nn,"".concat(rt,"-range-end-near-hover"),Cr(jn)&&(Zt(mn,sr)||ct(Et,tr,sr,mn))),Object(m.a)(nn,"".concat(rt,"-range-hover"),Ir),Object(m.a)(nn,"".concat(rt,"-range-hover-start"),Or),Object(m.a)(nn,"".concat(rt,"-range-hover-end"),ea),Object(m.a)(nn,"".concat(rt,"-range-hover-edge-start"),Nn),Object(m.a)(nn,"".concat(rt,"-range-hover-edge-end"),br),Object(m.a)(nn,"".concat(rt,"-range-hover-edge-start-near-range"),Nn&&Zt(Mn,Dn)),Object(m.a)(nn,"".concat(rt,"-range-hover-edge-end-near-range"),br&&Zt(mn,Wn)),Object(m.a)(nn,"".concat(rt,"-today"),Zt(En,jn)),Object(m.a)(nn,"".concat(rt,"-selected"),Zt(wn,jn)),nn}return Hn}function Ce(ye){for(var rt=ye.prefixCls,Et=ye.disabledDate,vt=ye.onSelect,Wt=ye.rowNum,Lt=ye.colNum,Zt=ye.prefixColumn,dn=ye.rowClassName,En=ye.baseDate,wn=ye.getCellClassName,Hn=ye.getCellText,jn=ye.getCellNode,nn=ye.getCellDate,Mn=ye.titleCell,mn=ye.headerCells,Wn=g.useContext(l),Dn=Wn.onDateMouseEnter,tr=Wn.onDateMouseLeave,sr="".concat(rt,"-cell"),Ir=[],oa=0;oa<Wt;oa+=1){for(var Cr=[],Or=void 0,ea=function($t){var jt=oa*Lt+$t,on=nn(En,jt),An=Et&&Et(on);$t===0&&(Or=on,Zt&&Cr.push(Zt(Or))),Cr.push(g.createElement("td",{key:$t,title:Mn&&Mn(on),className:f()(sr,Object(y.a)(Object(m.a)({},"".concat(sr,"-disabled"),An),wn(on))),onClick:function(){An||vt(on)},onMouseEnter:function(){!An&&Dn&&Dn(on)},onMouseLeave:function(){!An&&tr&&tr(on)}},jn?jn(on):g.createElement("div",{className:"".concat(sr,"-inner")},Hn(on))))},Nn=0;Nn<Lt;Nn+=1)ea(Nn);Ir.push(g.createElement("tr",{key:oa,className:dn&&dn(Or)},Cr))}return g.createElement("div",{className:"".concat(rt,"-body")},g.createElement("table",{className:"".concat(rt,"-content")},mn&&g.createElement("thead",null,g.createElement("tr",null,mn)),g.createElement("tbody",null,Ir)))}function he(ye){var rt=ye.prefixCls,Et=ye.generateConfig,vt=ye.prefixColumn,Wt=ye.locale,Lt=ye.rowCount,Zt=ye.viewDate,dn=ye.value,En=ye.dateRender,wn=g.useContext(lt),Hn=wn.rangedValue,jn=wn.hoverRangedValue,nn=dt(Wt.locale,Et,Zt),Mn="".concat(rt,"-cell"),mn=Et.locale.getWeekFirstDay(Wt.locale),Wn=Et.getNow(),Dn=[],tr=Wt.shortWeekDays||(Et.locale.getShortWeekDays?Et.locale.getShortWeekDays(Wt.locale):[]);vt&&Dn.push(g.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var sr=0;sr<ae;sr+=1)Dn.push(g.createElement("th",{key:sr},tr[(sr+mn)%ae]));var Ir=Mt({cellPrefixCls:Mn,today:Wn,value:dn,generateConfig:Et,rangedValue:vt?null:Hn,hoverRangedValue:vt?null:jn,isSameCell:function(Or,ea){return He(Et,Or,ea)},isInView:function(Or){return Oe(Et,Or,Zt)},offsetCell:function(Or,ea){return Et.addDate(Or,ea)}}),oa=En?function(Cr){return En(Cr,Wn)}:void 0;return g.createElement(Ce,Object.assign({},ye,{rowNum:Lt,colNum:ae,baseDate:nn,getCellNode:oa,getCellText:Et.getDate,getCellClassName:Ir,getCellDate:Et.addDate,titleCell:function(Or){return Et.locale.format(Wt.locale,Or,"YYYY-MM-DD")},headerCells:Dn}))}var be=he;function Ee(ye){var rt=ye.prefixCls,Et=ye.generateConfig,vt=ye.locale,Wt=ye.viewDate,Lt=ye.onNextMonth,Zt=ye.onPrevMonth,dn=ye.onNextYear,En=ye.onPrevYear,wn=ye.onYearClick,Hn=ye.onMonthClick,jn=g.useContext(l),nn=jn.hideHeader;if(nn)return null;var Mn="".concat(rt,"-header"),mn=vt.shortMonths||(Et.locale.getShortMonths?Et.locale.getShortMonths(vt.locale):[]),Wn=Et.getMonth(Wt),Dn=g.createElement("button",{type:"button",key:"year",onClick:wn,tabIndex:-1,className:"".concat(rt,"-year-btn")},Et.locale.format(vt.locale,Wt,vt.yearFormat)),tr=g.createElement("button",{type:"button",key:"month",onClick:Hn,tabIndex:-1,className:"".concat(rt,"-month-btn")},vt.monthFormat?Et.locale.format(vt.locale,Wt,vt.monthFormat):mn[Wn]),sr=vt.monthBeforeYear?[tr,Dn]:[Dn,tr];return g.createElement(s,Object.assign({},ye,{prefixCls:Mn,onSuperPrev:En,onPrev:Zt,onNext:Lt,onSuperNext:dn}),sr)}var Ne=Ee,we=6;function Ae(ye){var rt=ye.prefixCls,Et=ye.panelName,vt=Et===void 0?"date":Et,Wt=ye.keyboardConfig,Lt=ye.active,Zt=ye.operationRef,dn=ye.generateConfig,En=ye.value,wn=ye.viewDate,Hn=ye.onViewDateChange,jn=ye.onPanelChange,nn=ye.onSelect,Mn="".concat(rt,"-").concat(vt,"-panel");Zt.current={onKeyDown:function(tr){return C(tr,Object(y.a)({onLeftRight:function(Ir){nn(dn.addDate(En||wn,Ir),"key")},onCtrlLeftRight:function(Ir){nn(dn.addYear(En||wn,Ir),"key")},onUpDown:function(Ir){nn(dn.addDate(En||wn,Ir*ae),"key")},onPageUpDown:function(Ir){nn(dn.addMonth(En||wn,Ir),"key")}},Wt))}};var mn=function(tr){var sr=dn.addYear(wn,tr);Hn(sr),jn(null,sr)},Wn=function(tr){var sr=dn.addMonth(wn,tr);Hn(sr),jn(null,sr)};return g.createElement("div",{className:f()(Mn,Object(m.a)({},"".concat(Mn,"-active"),Lt))},g.createElement(Ne,Object.assign({},ye,{prefixCls:rt,value:En,viewDate:wn,onPrevYear:function(){mn(-1)},onNextYear:function(){mn(1)},onPrevMonth:function(){Wn(-1)},onNextMonth:function(){Wn(1)},onMonthClick:function(){jn("month",wn)},onYearClick:function(){jn("year",wn)}})),g.createElement(be,Object.assign({},ye,{onSelect:function(tr){return nn(tr,"mouse")},prefixCls:rt,value:En,viewDate:wn,rowCount:we})))}var Ue=Ae;function We(ye,rt,Et){if(!Et)return rt;var vt=rt;return vt=ye.setHour(vt,ye.getHour(Et)),vt=ye.setMinute(vt,ye.getMinute(Et)),vt=ye.setSecond(vt,ye.getSecond(Et)),vt}var Je=ce("date","time");function $e(ye){var rt=ye.prefixCls,Et=ye.operationRef,vt=ye.generateConfig,Wt=ye.value,Lt=ye.defaultValue,Zt=ye.disabledTime,dn=ye.showTime,En=ye.onSelect,wn="".concat(rt,"-datetime-panel"),Hn=g.useState(null),jn=Object(O.a)(Hn,2),nn=jn[0],Mn=jn[1],mn=g.useRef({}),Wn=g.useRef({}),Dn=Object(n.a)(dn)==="object"?Object(y.a)({},dn):{};function tr(Cr){var Or=Je.indexOf(nn)+Cr,ea=Je[Or]||null;return ea}var sr=function(Or){Wn.current.onBlur&&Wn.current.onBlur(Or),Mn(null)};Et.current={onKeyDown:function(Or){if(Or.which===a.a.TAB){var ea=tr(Or.shiftKey?-1:1);return Mn(ea),ea&&Or.preventDefault(),!0}if(nn){var Nn=nn==="date"?mn:Wn;return Nn.current&&Nn.current.onKeyDown&&Nn.current.onKeyDown(Or),!0}return[a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN].includes(Or.which)?(Mn("date"),!0):!1},onBlur:sr,onClose:sr};var Ir=function(Or,ea){var Nn=Or;ea==="date"&&!Wt&&Dn.defaultValue?(Nn=vt.setHour(Nn,vt.getHour(Dn.defaultValue)),Nn=vt.setMinute(Nn,vt.getMinute(Dn.defaultValue)),Nn=vt.setSecond(Nn,vt.getSecond(Dn.defaultValue))):ea==="time"&&!Wt&&Lt&&(Nn=vt.setYear(Nn,vt.getYear(Lt)),Nn=vt.setMonth(Nn,vt.getMonth(Lt)),Nn=vt.setDate(Nn,vt.getDate(Lt))),En&&En(Nn,"mouse")},oa=Zt?Zt(Wt||null):{};return g.createElement("div",{className:f()(wn,Object(m.a)({},"".concat(wn,"-active"),nn))},g.createElement(Ue,Object.assign({},ye,{operationRef:mn,active:nn==="date",onSelect:function(Or){Ir(We(vt,Or,dn&&Object(n.a)(dn)==="object"?dn.defaultValue:null),"date")}})),g.createElement(te,Object.assign({},ye,{format:void 0},Dn,oa,{defaultValue:void 0,operationRef:Wn,active:nn==="time",onSelect:function(Or){Ir(Or,"time")}})))}var pt=$e;function Jt(ye){var rt=ye.prefixCls,Et=ye.generateConfig,vt=ye.locale,Wt=ye.value,Lt="".concat(rt,"-cell"),Zt=function(Hn){return g.createElement("td",{key:"week",className:f()(Lt,"".concat(Lt,"-week"))},Et.locale.getWeek(vt.locale,Hn))},dn="".concat(rt,"-week-panel-row"),En=function(Hn){return f()(dn,Object(m.a)({},"".concat(dn,"-selected"),ot(Et,vt.locale,Wt,Hn)))};return g.createElement(Ue,Object.assign({},ye,{panelName:"week",prefixColumn:Zt,rowClassName:En,keyboardConfig:{onLeftRight:null}}))}var fn=Jt;function qt(ye){var rt=ye.prefixCls,Et=ye.generateConfig,vt=ye.locale,Wt=ye.viewDate,Lt=ye.onNextYear,Zt=ye.onPrevYear,dn=ye.onYearClick,En=g.useContext(l),wn=En.hideHeader;if(wn)return null;var Hn="".concat(rt,"-header");return g.createElement(s,Object.assign({},ye,{prefixCls:Hn,onSuperPrev:Zt,onSuperNext:Lt}),g.createElement("button",{type:"button",onClick:dn,className:"".concat(rt,"-year-btn")},Et.locale.format(vt.locale,Wt,vt.yearFormat)))}var St=qt,Be=3,at=4;function it(ye){var rt=ye.prefixCls,Et=ye.locale,vt=ye.value,Wt=ye.viewDate,Lt=ye.generateConfig,Zt=ye.monthCellRender,dn=g.useContext(lt),En=dn.rangedValue,wn=dn.hoverRangedValue,Hn="".concat(rt,"-cell"),jn=Mt({cellPrefixCls:Hn,value:vt,generateConfig:Lt,rangedValue:En,hoverRangedValue:wn,isSameCell:function(Dn,tr){return Oe(Lt,Dn,tr)},isInView:function(){return!0},offsetCell:function(Dn,tr){return Lt.addMonth(Dn,tr)}}),nn=Et.shortMonths||(Lt.locale.getShortMonths?Lt.locale.getShortMonths(Et.locale):[]),Mn=Lt.setMonth(Wt,0),mn=Zt?function(Wn){return Zt(Wn,Et)}:void 0;return g.createElement(Ce,Object.assign({},ye,{rowNum:at,colNum:Be,baseDate:Mn,getCellNode:mn,getCellText:function(Dn){return Et.monthFormat?Lt.locale.format(Et.locale,Dn,Et.monthFormat):nn[Lt.getMonth(Dn)]},getCellClassName:jn,getCellDate:Lt.addMonth,titleCell:function(Dn){return Lt.locale.format(Et.locale,Dn,"YYYY-MM")}}))}var Me=it;function Ve(ye){var rt=ye.prefixCls,Et=ye.operationRef,vt=ye.onViewDateChange,Wt=ye.generateConfig,Lt=ye.value,Zt=ye.viewDate,dn=ye.onPanelChange,En=ye.onSelect,wn="".concat(rt,"-month-panel");Et.current={onKeyDown:function(nn){return C(nn,{onLeftRight:function(mn){En(Wt.addMonth(Lt||Zt,mn),"key")},onCtrlLeftRight:function(mn){En(Wt.addYear(Lt||Zt,mn),"key")},onUpDown:function(mn){En(Wt.addMonth(Lt||Zt,mn*Be),"key")},onEnter:function(){dn("date",Lt||Zt)}})}};var Hn=function(nn){var Mn=Wt.addYear(Zt,nn);vt(Mn),dn(null,Mn)};return g.createElement("div",{className:wn},g.createElement(St,Object.assign({},ye,{prefixCls:rt,onPrevYear:function(){Hn(-1)},onNextYear:function(){Hn(1)},onYearClick:function(){dn("year",Zt)}})),g.createElement(Me,Object.assign({},ye,{prefixCls:rt,onSelect:function(nn){En(nn,"mouse"),dn("date",nn)}})))}var xt=Ve;function _t(ye){var rt=ye.prefixCls,Et=ye.generateConfig,vt=ye.locale,Wt=ye.viewDate,Lt=ye.onNextYear,Zt=ye.onPrevYear,dn=ye.onYearClick,En=g.useContext(l),wn=En.hideHeader;if(wn)return null;var Hn="".concat(rt,"-header");return g.createElement(s,Object.assign({},ye,{prefixCls:Hn,onSuperPrev:Zt,onSuperNext:Lt}),g.createElement("button",{type:"button",onClick:dn,className:"".concat(rt,"-year-btn")},Et.locale.format(vt.locale,Wt,vt.yearFormat)))}var At=_t,Ot=4,Ct=1;function Bt(ye){var rt=ye.prefixCls,Et=ye.locale,vt=ye.value,Wt=ye.viewDate,Lt=ye.generateConfig,Zt=g.useContext(lt),dn=Zt.rangedValue,En=Zt.hoverRangedValue,wn="".concat(rt,"-cell"),Hn=Mt({cellPrefixCls:wn,value:vt,generateConfig:Lt,rangedValue:dn,hoverRangedValue:En,isSameCell:function(Mn,mn){return me(Lt,Mn,mn)},isInView:function(){return!0},offsetCell:function(Mn,mn){return Lt.addMonth(Mn,mn*3)}}),jn=Lt.setDate(Lt.setMonth(Wt,0),1);return g.createElement(Ce,Object.assign({},ye,{rowNum:Ct,colNum:Ot,baseDate:jn,getCellText:function(Mn){return Lt.locale.format(Et.locale,Mn,Et.quarterFormat||"[Q]Q")},getCellClassName:Hn,getCellDate:function(Mn,mn){return Lt.addMonth(Mn,mn*3)},titleCell:function(Mn){return Lt.locale.format(Et.locale,Mn,"YYYY-[Q]Q")}}))}var It=Bt;function yt(ye){var rt=ye.prefixCls,Et=ye.operationRef,vt=ye.onViewDateChange,Wt=ye.generateConfig,Lt=ye.value,Zt=ye.viewDate,dn=ye.onPanelChange,En=ye.onSelect,wn="".concat(rt,"-quarter-panel");Et.current={onKeyDown:function(nn){return C(nn,{onLeftRight:function(mn){En(Wt.addMonth(Lt||Zt,mn*3),"key")},onCtrlLeftRight:function(mn){En(Wt.addYear(Lt||Zt,mn),"key")},onUpDown:function(mn){En(Wt.addYear(Lt||Zt,mn),"key")}})}};var Hn=function(nn){var Mn=Wt.addYear(Zt,nn);vt(Mn),dn(null,Mn)};return g.createElement("div",{className:wn},g.createElement(At,Object.assign({},ye,{prefixCls:rt,onPrevYear:function(){Hn(-1)},onNextYear:function(){Hn(1)},onYearClick:function(){dn("year",Zt)}})),g.createElement(It,Object.assign({},ye,{prefixCls:rt,onSelect:function(nn){En(nn,"mouse")}})))}var zt=yt;function sn(ye){var rt=ye.prefixCls,Et=ye.generateConfig,vt=ye.viewDate,Wt=ye.onPrevDecade,Lt=ye.onNextDecade,Zt=ye.onDecadeClick,dn=g.useContext(l),En=dn.hideHeader;if(En)return null;var wn="".concat(rt,"-header"),Hn=Et.getYear(vt),jn=Math.floor(Hn/Cn)*Cn,nn=jn+Cn-1;return g.createElement(s,Object.assign({},ye,{prefixCls:wn,onSuperPrev:Wt,onSuperNext:Lt}),g.createElement("button",{type:"button",onClick:Zt,className:"".concat(rt,"-decade-btn")},jn,"-",nn))}var hn=sn,un=3,Kt=4;function gn(ye){var rt=ye.prefixCls,Et=ye.value,vt=ye.viewDate,Wt=ye.locale,Lt=ye.generateConfig,Zt=g.useContext(lt),dn=Zt.rangedValue,En=Zt.hoverRangedValue,wn="".concat(rt,"-cell"),Hn=Lt.getYear(vt),jn=Math.floor(Hn/Cn)*Cn,nn=jn+Cn-1,Mn=Lt.setYear(vt,jn-Math.ceil((un*Kt-Cn)/2)),mn=function(tr){var sr=Lt.getYear(tr);return jn<=sr&&sr<=nn},Wn=Mt({cellPrefixCls:wn,value:Et,generateConfig:Lt,rangedValue:dn,hoverRangedValue:En,isSameCell:function(tr,sr){return Z(Lt,tr,sr)},isInView:mn,offsetCell:function(tr,sr){return Lt.addYear(tr,sr)}});return g.createElement(Ce,Object.assign({},ye,{rowNum:Kt,colNum:un,baseDate:Mn,getCellText:Lt.getYear,getCellClassName:Wn,getCellDate:Lt.addYear,titleCell:function(tr){return Lt.locale.format(Wt.locale,tr,"YYYY")}}))}var Rn=gn,Cn=10;function an(ye){var rt=ye.prefixCls,Et=ye.operationRef,vt=ye.onViewDateChange,Wt=ye.generateConfig,Lt=ye.value,Zt=ye.viewDate,dn=ye.sourceMode,En=ye.onSelect,wn=ye.onPanelChange,Hn="".concat(rt,"-year-panel");Et.current={onKeyDown:function(Mn){return C(Mn,{onLeftRight:function(Wn){En(Wt.addYear(Lt||Zt,Wn),"key")},onCtrlLeftRight:function(Wn){En(Wt.addYear(Lt||Zt,Wn*Cn),"key")},onUpDown:function(Wn){En(Wt.addYear(Lt||Zt,Wn*un),"key")},onEnter:function(){wn(dn==="date"?"date":"month",Lt||Zt)}})}};var jn=function(Mn){var mn=Wt.addYear(Zt,Mn*10);vt(mn),wn(null,mn)};return g.createElement("div",{className:Hn},g.createElement(hn,Object.assign({},ye,{prefixCls:rt,onPrevDecade:function(){jn(-1)},onNextDecade:function(){jn(1)},onDecadeClick:function(){wn("decade",Zt)}})),g.createElement(Rn,Object.assign({},ye,{prefixCls:rt,onSelect:function(Mn){wn(dn==="date"?"date":"month",Mn),En(Mn,"mouse")}})))}var _n=an;function vn(ye){var rt=ye.prefixCls,Et=ye.generateConfig,vt=ye.viewDate,Wt=ye.onPrevDecades,Lt=ye.onNextDecades,Zt=g.useContext(l),dn=Zt.hideHeader;if(dn)return null;var En="".concat(rt,"-header"),wn=Et.getYear(vt),Hn=Math.floor(wn/Gn)*Gn,jn=Hn+Gn-1;return g.createElement(s,Object.assign({},ye,{prefixCls:En,onSuperPrev:Wt,onSuperNext:Lt}),Hn,"-",jn)}var Ft=vn,Nt=3,pn=4;function qn(ye){var rt=Vn-1,Et=ye.prefixCls,vt=ye.viewDate,Wt=ye.generateConfig,Lt=ye.disabledDate,Zt="".concat(Et,"-cell"),dn=Wt.getYear(vt),En=Math.floor(dn/Vn)*Vn,wn=Math.floor(dn/Gn)*Gn,Hn=wn+Gn-1,jn=Wt.setYear(vt,wn-Math.ceil((Nt*pn*Vn-Gn)/2)),nn=function(mn){var Wn,Dn=Lt&&Lt(mn),tr=Wt.getYear(mn),sr=tr+rt;return Wn={},Object(m.a)(Wn,"".concat(Zt,"-disabled"),Dn),Object(m.a)(Wn,"".concat(Zt,"-in-view"),wn<=tr&&sr<=Hn),Object(m.a)(Wn,"".concat(Zt,"-selected"),tr===En),Wn};return g.createElement(Ce,Object.assign({},ye,{rowNum:pn,colNum:Nt,baseDate:jn,getCellText:function(mn){var Wn=Wt.getYear(mn);return"".concat(Wn,"-").concat(Wn+rt)},getCellClassName:nn,getCellDate:function(mn,Wn){return Wt.addYear(mn,Wn*Vn)}}))}var Qt=qn,Vn=10,Gn=Vn*10;function xr(ye){var rt=ye.prefixCls,Et=ye.onViewDateChange,vt=ye.generateConfig,Wt=ye.viewDate,Lt=ye.operationRef,Zt=ye.onSelect,dn=ye.onPanelChange,En="".concat(rt,"-decade-panel");Lt.current={onKeyDown:function(nn){return C(nn,{onLeftRight:function(mn){Zt(vt.addYear(Wt,mn*Vn),"key")},onCtrlLeftRight:function(mn){Zt(vt.addYear(Wt,mn*Gn),"key")},onUpDown:function(mn){Zt(vt.addYear(Wt,mn*Vn*Nt),"key")},onEnter:function(){dn("year",Wt)}})}};var wn=function(nn){var Mn=vt.addYear(Wt,nn*Gn);Et(Mn),dn(null,Mn)},Hn=function(nn){Zt(nn,"mouse"),dn("year",nn)};return g.createElement("div",{className:En},g.createElement(Ft,Object.assign({},ye,{prefixCls:rt,onPrevDecades:function(){wn(-1)},onNextDecades:function(){wn(1)}})),g.createElement(Qt,Object.assign({},ye,{prefixCls:rt,onSelect:Hn})))}var Sn=xr;function Pn(ye,rt,Et){return Et?g.createElement("div",{className:"".concat(ye,"-footer-extra")},Et(rt)):null}function Yt(ye){var rt=ye.prefixCls,Et=ye.rangeList,vt=Et===void 0?[]:Et,Wt=ye.components,Lt=Wt===void 0?{}:Wt,Zt=ye.needConfirmButton,dn=ye.onNow,En=ye.onOk,wn=ye.okDisabled,Hn=ye.showNow,jn=ye.locale,nn,Mn;if(vt.length){var mn=Lt.rangeItem||"span";nn=g.createElement(g.Fragment,null,vt.map(function(Dn){var tr=Dn.label,sr=Dn.onClick,Ir=Dn.onMouseEnter,oa=Dn.onMouseLeave;return g.createElement("li",{key:tr,className:"".concat(rt,"-preset")},g.createElement(mn,{onClick:sr,onMouseEnter:Ir,onMouseLeave:oa},tr))}))}if(Zt){var Wn=Lt.button||"button";dn&&!nn&&Hn!==!1&&(nn=g.createElement("li",{className:"".concat(rt,"-now")},g.createElement("a",{className:"".concat(rt,"-now-btn"),onClick:dn},jn.now))),Mn=Zt&&g.createElement("li",{className:"".concat(rt,"-ok")},g.createElement(Wn,{disabled:wn,onClick:En},jn.ok))}return!nn&&!Mn?null:g.createElement("ul",{className:"".concat(rt,"-ranges")},nn,Mn)}function Hr(ye){var rt,Et=ye.prefixCls,vt=Et===void 0?"rc-picker":Et,Wt=ye.className,Lt=ye.style,Zt=ye.locale,dn=ye.generateConfig,En=ye.value,wn=ye.defaultValue,Hn=ye.pickerValue,jn=ye.defaultPickerValue,nn=ye.disabledDate,Mn=ye.mode,mn=ye.picker,Wn=mn===void 0?"date":mn,Dn=ye.tabIndex,tr=Dn===void 0?0:Dn,sr=ye.showNow,Ir=ye.showTime,oa=ye.showToday,Cr=ye.renderExtraFooter,Or=ye.hideHeader,ea=ye.onSelect,Nn=ye.onChange,br=ye.onPanelChange,$t=ye.onMouseDown,jt=ye.onPickerValueChange,on=ye.onOk,An=ye.components,Tn=ye.direction,Yn=ye.hourStep,Jn=Yn===void 0?1:Yn,kn=ye.minuteStep,Ar=kn===void 0?1:kn,ur=ye.secondStep,yr=ur===void 0?1:ur,vr=Wn==="date"&&!!Ir||Wn==="time",Dr=24%Jn===0,Xn=60%Ar===0,Ut=60%yr===0,en=g.useContext(l),Vt=en.operationRef,Un=en.panelRef,$n=en.onSelect,ir=en.hideRanges,Kn=en.defaultOpenValue,rr=g.useContext(lt),or=rr.inRange,ta=rr.panelPosition,wr=rr.rangedValue,_r=rr.hoverRangedValue,qr=g.useRef({}),Kr=g.useRef(!0),mr=Object(c.a)(null,{value:En,defaultValue:wn,postState:function(bn){return!bn&&Kn&&Wn==="time"?Kn:bn}}),Jr=Object(O.a)(mr,2),Rr=Jr[0],ra=Jr[1],Gr=Object(c.a)(null,{value:Hn,defaultValue:jn||Rr,postState:function(bn){return bn||dn.getNow()}}),Fe=Object(O.a)(Gr,2),tt=Fe[0],nt=Fe[1],Ye=function(bn){nt(bn),jt&&jt(bn)},Pe=function(bn){var In=H[Wn];return In?In(bn):bn},ze=Object(c.a)(function(){return Wn==="time"?"time":Pe("date")},{value:Mn}),Re=Object(O.a)(ze,2),Ze=Re[0],qe=Re[1];g.useEffect(function(){qe(Wn)},[Wn]);var ht=g.useState(function(){return Ze}),et=Object(O.a)(ht,2),wt=et[0],Pt=et[1],Gt=function(bn,In){var Fr=Pe(bn||Ze);Pt(Ze),qe(Fr),br&&(Ze!==Fr||st(dn,tt,tt))&&br(In,Fr)},kt=function(bn,In){var Fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Ze===Wn||Fr)&&(ra(bn),ea&&ea(bn),$n&&$n(bn,In),Nn&&!st(dn,bn,Rr)&&Nn(bn))},ln=function(bn){return qr.current&&qr.current.onKeyDown?([a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN,a.a.PAGE_UP,a.a.PAGE_DOWN,a.a.ENTER].includes(bn.which)&&bn.preventDefault(),qr.current.onKeyDown(bn)):(Object(r.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},On=function(bn){qr.current&&qr.current.onBlur&&qr.current.onBlur(bn)};Vt&&ta!=="right"&&(Vt.current={onKeyDown:ln,onClose:function(){qr.current&&qr.current.onClose&&qr.current.onClose()}}),g.useEffect(function(){En&&!Kr.current&&nt(En)},[En]),g.useEffect(function(){Kr.current=!1},[]);var er,Zn=Object(y.a)(Object(y.a)({},ye),{},{operationRef:qr,prefixCls:vt,viewDate:tt,value:Rr,onViewDateChange:Ye,sourceMode:wt,onPanelChange:Gt,disabledDate:Ze!=="decade"?nn:void 0});delete Zn.onChange,delete Zn.onSelect;switch(Ze){case"decade":er=g.createElement(Sn,Object.assign({},Zn,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}}));break;case"year":er=g.createElement(_n,Object.assign({},Zn,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}}));break;case"month":er=g.createElement(xt,Object.assign({},Zn,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}}));break;case"quarter":er=g.createElement(zt,Object.assign({},Zn,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}}));break;case"week":er=g.createElement(fn,Object.assign({},Zn,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}}));break;case"time":delete Zn.showTime,er=g.createElement(te,Object.assign({},Zn,Object(n.a)(Ir)==="object"?Ir:null,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}}));break;default:Ir?er=g.createElement(pt,Object.assign({},Zn,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}})):er=g.createElement(Ue,Object.assign({},Zn,{onSelect:function(bn,In){Ye(bn),kt(bn,In)}}))}var Tr,dr,Bn=function(){var bn=dn.getNow(),In=_e(dn.getHour(bn),dn.getMinute(bn),dn.getSecond(bn),Dr?Jn:1,Xn?Ar:1,Ut?yr:1),Fr=ve(dn,bn,In[0],In[1],In[2]);kt(Fr,"submit")};ir||(Tr=Pn(vt,Ze,Cr),dr=Yt({prefixCls:vt,components:An,needConfirmButton:vr,okDisabled:!Rr||nn&&nn(Rr),locale:Zt,showNow:sr,onNow:vr&&Bn,onOk:function(){Rr&&(kt(Rr,"submit",!0),on&&on(Rr))}}));var rn;if(oa&&Ze==="date"&&Wn==="date"&&!Ir){var yn=dn.getNow(),tn="".concat(vt,"-today-btn"),Er=nn&&nn(yn);rn=g.createElement("a",{className:f()(tn,Er&&"".concat(tn,"-disabled")),"aria-disabled":Er,onClick:function(){Er||kt(yn,"mouse",!0)}},Zt.today)}return g.createElement(l.Provider,{value:Object(y.a)(Object(y.a)({},en),{},{hideHeader:"hideHeader"in ye?Or:en.hideHeader,hidePrevBtn:or&&ta==="right",hideNextBtn:or&&ta==="left"})},g.createElement("div",{tabIndex:tr,className:f()("".concat(vt,"-panel"),Wt,(rt={},Object(m.a)(rt,"".concat(vt,"-panel-has-range"),wr&&wr[0]&&wr[1]),Object(m.a)(rt,"".concat(vt,"-panel-has-range-hover"),_r&&_r[0]&&_r[1]),Object(m.a)(rt,"".concat(vt,"-panel-rtl"),Tn==="rtl"),rt)),style:Lt,onKeyDown:ln,onBlur:On,onMouseDown:$t,ref:Un},er,Tr||dr||rn?g.createElement("div",{className:"".concat(vt,"-footer")},Tr,dr,rn):null))}var ar=Hr,ma=i("uciX"),Br={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 Na(ye){var rt,Et=ye.prefixCls,vt=ye.popupElement,Wt=ye.popupStyle,Lt=ye.visible,Zt=ye.dropdownClassName,dn=ye.dropdownAlign,En=ye.transitionName,wn=ye.getPopupContainer,Hn=ye.children,jn=ye.range,nn=ye.popupPlacement,Mn=ye.direction,mn="".concat(Et,"-dropdown"),Wn=function(){return nn!==void 0?nn:Mn==="rtl"?"bottomRight":"bottomLeft"};return g.createElement(ma.a,{showAction:[],hideAction:[],popupPlacement:Wn(),builtinPlacements:Br,prefixCls:mn,popupTransitionName:En,popup:vt,popupAlign:dn,popupVisible:Lt,popupClassName:f()(Zt,(rt={},Object(m.a)(rt,"".concat(mn,"-range"),jn),Object(m.a)(rt,"".concat(mn,"-rtl"),Mn==="rtl"),rt)),popupStyle:Wt,getPopupContainer:wn},Hn)}var Xa=Na;function ua(ye){var rt=ye.open,Et=ye.value,vt=ye.isClickOutside,Wt=ye.triggerOpen,Lt=ye.forwardKeyDown,Zt=ye.blurToCancel,dn=ye.onSubmit,En=ye.onCancel,wn=ye.onFocus,Hn=ye.onBlur,jn=Object(g.useState)(!1),nn=Object(O.a)(jn,2),Mn=nn[0],mn=nn[1],Wn=Object(g.useState)(!1),Dn=Object(O.a)(Wn,2),tr=Dn[0],sr=Dn[1],Ir=Object(g.useRef)(!1),oa=Object(g.useRef)(!1),Cr={onMouseDown:function(){mn(!0),Wt(!0)},onKeyDown:function(ea){switch(ea.which){case a.a.ENTER:{rt?dn()!==!1&&mn(!0):Wt(!0),ea.preventDefault();return}case a.a.TAB:{Mn&&rt&&!ea.shiftKey?(mn(!1),ea.preventDefault()):!Mn&&rt&&(!Lt(ea)&&ea.shiftKey&&(mn(!0),ea.preventDefault()));return}case a.a.ESC:{mn(!0),En();return}}!rt&&![a.a.SHIFT].includes(ea.which)?Wt(!0):Mn||Lt(ea)},onFocus:function(ea){mn(!0),sr(!0),wn&&wn(ea)},onBlur:function(ea){if(Ir.current||!vt(document.activeElement)){Ir.current=!1;return}Zt?setTimeout(function(){vt(document.activeElement)&&En()},0):rt&&(Wt(!1),oa.current&&dn()),sr(!1),Hn&&Hn(ea)}};return Object(g.useEffect)(function(){oa.current=!1},[rt]),Object(g.useEffect)(function(){oa.current=!0},[Et]),Object(g.useEffect)(function(){return I(function(Or){var ea=Or.target;rt&&(vt(ea)?tr||Wt(!1):(Ir.current=!0,requestAnimationFrame(function(){Ir.current=!1})))})}),[Cr,{focused:tr,typing:Mn}]}function Zr(ye){var rt=ye.valueTexts,Et=ye.onTextChange,vt=g.useState(""),Wt=Object(O.a)(vt,2),Lt=Wt[0],Zt=Wt[1],dn=g.useRef([]);dn.current=rt;function En(Hn){Zt(Hn),Et(Hn)}function wn(){Zt(dn.current[0])}return g.useEffect(function(){rt.every(function(Hn){return Hn!==Lt})&&wn()},[rt.join("||")]),[Lt,En,wn]}var Sr=i("Gytx"),Oa=i.n(Sr);function Ma(ye,rt){var Et=rt.formatList,vt=rt.generateConfig,Wt=rt.locale;return Object(x.a)(function(){if(!ye)return[[""],""];for(var Lt="",Zt=[],dn=0;dn<Et.length;dn+=1){var En=Et[dn],wn=vt.locale.format(Wt.locale,ye,En);Zt.push(wn),dn===0&&(Lt=wn)}return[Zt,Lt]},[ye,Et],function(Lt,Zt){return Lt[0]!==Zt[0]||!Oa()(Lt[1],Zt[1])})}function Sa(ye,rt){var Et=rt.formatList,vt=rt.generateConfig,Wt=rt.locale,Lt=Object(g.useState)(null),Zt=Object(O.a)(Lt,2),dn=Zt[0],En=Zt[1],wn=Object(g.useRef)(null);function Hn(Dn){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(wn.current),tr){En(Dn);return}wn.current=requestAnimationFrame(function(){En(Dn)})}var jn=Ma(dn,{formatList:Et,generateConfig:vt,locale:Wt}),nn=Object(O.a)(jn,2),Mn=nn[1];function mn(Dn){Hn(Dn)}function Wn(){var Dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Hn(null,Dn)}return Object(g.useEffect)(function(){Wn(!0)},[ye]),Object(g.useEffect)(function(){return function(){return cancelAnimationFrame(wn.current)}},[]),[Mn,mn,Wn]}function ca(ye){var rt,Et=ye.prefixCls,vt=Et===void 0?"rc-picker":Et,Wt=ye.id,Lt=ye.tabIndex,Zt=ye.style,dn=ye.className,En=ye.dropdownClassName,wn=ye.dropdownAlign,Hn=ye.popupStyle,jn=ye.transitionName,nn=ye.generateConfig,Mn=ye.locale,mn=ye.inputReadOnly,Wn=ye.allowClear,Dn=ye.autoFocus,tr=ye.showTime,sr=ye.picker,Ir=sr===void 0?"date":sr,oa=ye.format,Cr=ye.use12Hours,Or=ye.value,ea=ye.defaultValue,Nn=ye.open,br=ye.defaultOpen,$t=ye.defaultOpenValue,jt=ye.suffixIcon,on=ye.clearIcon,An=ye.disabled,Tn=ye.disabledDate,Yn=ye.placeholder,Jn=ye.getPopupContainer,kn=ye.pickerRef,Ar=ye.panelRender,ur=ye.onChange,yr=ye.onOpenChange,vr=ye.onFocus,Dr=ye.onBlur,Xn=ye.onMouseDown,Ut=ye.onMouseUp,en=ye.onMouseEnter,Vt=ye.onMouseLeave,Un=ye.onContextMenu,$n=ye.onClick,ir=ye.direction,Kn=ye.autoComplete,rr=Kn===void 0?"off":Kn,or=g.useRef(null),ta=Ir==="date"&&!!tr||Ir==="time",wr=ue(S(oa,Ir,tr,Cr)),_r=g.useRef(null),qr=g.useRef(null),Kr=Object(c.a)(null,{value:Or,defaultValue:ea}),mr=Object(O.a)(Kr,2),Jr=mr[0],Rr=mr[1],ra=g.useState(Jr),Gr=Object(O.a)(ra,2),Fe=Gr[0],tt=Gr[1],nt=g.useRef(null),Ye=Object(c.a)(!1,{value:Nn,defaultValue:br,postState:function(kr){return An?!1:kr},onChange:function(kr){yr&&yr(kr),!kr&&nt.current&&nt.current.onClose&&nt.current.onClose()}}),Pe=Object(O.a)(Ye,2),ze=Pe[0],Re=Pe[1],Ze=Ma(Fe,{formatList:wr,generateConfig:nn,locale:Mn}),qe=Object(O.a)(Ze,2),ht=qe[0],et=qe[1],wt=Zr({valueTexts:ht,onTextChange:function(kr){var Wa=nn.locale.parse(Mn.locale,kr,wr);Wa&&(!Tn||!Tn(Wa))&&tt(Wa)}}),Pt=Object(O.a)(wt,3),Gt=Pt[0],kt=Pt[1],ln=Pt[2],On=function(kr){tt(kr),Rr(kr),ur&&!st(nn,Jr,kr)&&ur(kr,kr?nn.locale.format(Mn.locale,kr,wr[0]):"")},er=function(kr){if(An&&kr)return;Re(kr)},Zn=function(kr){return ze&&nt.current&&nt.current.onKeyDown?nt.current.onKeyDown(kr):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Tr=function(){Ut&&Ut.apply(void 0,arguments),or.current&&(or.current.focus(),er(!0))},dr=ua({blurToCancel:ta,open:ze,value:Gt,triggerOpen:er,forwardKeyDown:Zn,isClickOutside:function(kr){return!W([_r.current,qr.current],kr)},onSubmit:function(){return Tn&&Tn(Fe)?!1:(On(Fe),er(!1),ln(),!0)},onCancel:function(){er(!1),tt(Jr),ln()},onFocus:vr,onBlur:Dr}),Bn=Object(O.a)(dr,2),rn=Bn[0],yn=Bn[1],tn=yn.focused,Er=yn.typing;g.useEffect(function(){ze||(tt(Jr),!ht.length||ht[0]===""?kt(""):et!==Gt&&ln())},[ze,ht]),g.useEffect(function(){ze||ln()},[Ir]),g.useEffect(function(){tt(Jr)},[Jr]),kn&&(kn.current={focus:function(){or.current&&or.current.focus()},blur:function(){or.current&&or.current.blur()}});var zn=Object(y.a)(Object(y.a)({},ye),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),bn=g.createElement(ar,Object.assign({},zn,{generateConfig:nn,className:f()(Object(m.a)({},"".concat(vt,"-panel-focused"),!Er)),value:Fe,locale:Mn,tabIndex:-1,onChange:tt,direction:ir}));Ar&&(bn=Ar(bn));var In=g.createElement("div",{className:"".concat(vt,"-panel-container"),onMouseDown:function(kr){kr.preventDefault()}},bn),Fr;jt&&(Fr=g.createElement("span",{className:"".concat(vt,"-suffix")},jt));var Qn;Wn&&Jr&&!An&&(Qn=g.createElement("span",{onMouseDown:function(kr){kr.preventDefault(),kr.stopPropagation()},onMouseUp:function(kr){kr.preventDefault(),kr.stopPropagation(),On(null),er(!1)},className:"".concat(vt,"-clear")},on||g.createElement("span",{className:"".concat(vt,"-clear-btn")})));var Ln=function(kr,Wa){(Wa==="submit"||Wa!=="key"&&!ta)&&(On(kr),er(!1))},cr=ir==="rtl"?"bottomRight":"bottomLeft",Lr=Sa(Gt,{formatList:wr,generateConfig:nn,locale:Mn}),Nr=Object(O.a)(Lr,3),$r=Nr[0],fa=Nr[1],ia=Nr[2];return g.createElement(l.Provider,{value:{operationRef:nt,hideHeader:Ir==="time",panelRef:_r,onSelect:Ln,open:ze,defaultOpenValue:$t,onDateMouseEnter:fa,onDateMouseLeave:ia}},g.createElement(Xa,{visible:ze,popupElement:In,popupStyle:Hn,prefixCls:vt,dropdownClassName:En,dropdownAlign:wn,getPopupContainer:Jn,transitionName:jn,popupPlacement:cr,direction:ir},g.createElement("div",{className:f()(vt,dn,(rt={},Object(m.a)(rt,"".concat(vt,"-disabled"),An),Object(m.a)(rt,"".concat(vt,"-focused"),tn),Object(m.a)(rt,"".concat(vt,"-rtl"),ir==="rtl"),rt)),style:Zt,onMouseDown:Xn,onMouseUp:Tr,onMouseEnter:en,onMouseLeave:Vt,onContextMenu:Un,onClick:$n},g.createElement("div",{className:f()("".concat(vt,"-input"),Object(m.a)({},"".concat(vt,"-input-placeholder"),!!$r)),ref:qr},g.createElement("input",Object.assign({id:Wt,tabIndex:Lt,disabled:An,readOnly:mn||!Er,value:$r||Gt,onChange:function(kr){kt(kr.target.value)},autoFocus:Dn,placeholder:Yn,ref:or,title:Gt},rn,{size:_(Ir,wr[0])},xe(ye),{autoComplete:rr})),Fr,Qn))))}var ka=function(ye){Object(T.a)(Et,ye);var rt=Object(v.a)(Et);function Et(){var vt;return Object(M.a)(this,Et),vt=rt.apply(this,arguments),vt.pickerRef=g.createRef(),vt.focus=function(){vt.pickerRef.current&&vt.pickerRef.current.focus()},vt.blur=function(){vt.pickerRef.current&&vt.pickerRef.current.blur()},vt}return Object(E.a)(Et,[{key:"render",value:function(){return g.createElement(ca,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Et}(g.Component),Ga=ka;function La(ye,rt,Et){var vt=ye.picker,Wt=ye.locale,Lt=ye.selectedValue,Zt=ye.disabledDate,dn=ye.disabled,En=ye.generateConfig,wn=Te(Lt,0),Hn=Te(Lt,1);function jn(Dn){var tr=En.getYear(Dn),sr=En.locale.getWeek(Wt.locale,Dn);return tr*100+sr}function nn(Dn){var tr=En.getYear(Dn),sr=En.getMonth(Dn);return tr*100+sr}function Mn(Dn){var tr=En.getYear(Dn),sr=fe(En,Dn);return tr*10+sr}var mn=g.useCallback(function(Dn){if(Zt&&Zt(Dn))return!0;if(dn[1]&&Hn)return!He(En,Dn,Hn)&&En.isAfter(Dn,Hn);if(rt&&Hn)switch(vt){case"quarter":return Mn(Dn)>Mn(Hn);case"month":return nn(Dn)>nn(Hn);case"week":return jn(Dn)>jn(Hn);default:return!He(En,Dn,Hn)&&En.isAfter(Dn,Hn)}return!1},[Zt,dn[1],Hn,rt]),Wn=g.useCallback(function(Dn){if(Zt&&Zt(Dn))return!0;if(dn[0]&&wn)return!He(En,Dn,Hn)&&En.isAfter(wn,Dn);if(Et&&wn)switch(vt){case"quarter":return Mn(Dn)<Mn(wn);case"month":return nn(Dn)<nn(wn);case"week":return jn(Dn)<jn(wn);default:return!He(En,Dn,wn)&&En.isAfter(wn,Dn)}return!1},[Zt,dn[0],wn,Et]);return[mn,Wn]}function Za(ye,rt,Et,vt){var Wt=Xe(ye,Et,vt,1);function Lt(Zt){return Zt(ye,rt)?"same":Zt(Wt,rt)?"closing":"far"}switch(Et){case"year":return Lt(function(Zt,dn){return $(vt,Zt,dn)});case"quarter":case"month":return Lt(function(Zt,dn){return Z(vt,Zt,dn)});default:return Lt(function(Zt,dn){return Oe(vt,Zt,dn)})}}function Ia(ye,rt,Et,vt){var Wt=Te(ye,0),Lt=Te(ye,1);if(rt===0)return Wt;if(Wt&&Lt){var Zt=Za(Wt,Lt,Et,vt);switch(Zt){case"same":return Wt;case"closing":return Wt;default:return Xe(Lt,Et,vt,-1)}}return Wt}function xa(ye){var rt=ye.values,Et=ye.picker,vt=ye.defaultDates,Wt=ye.generateConfig,Lt=g.useState(function(){return[Te(vt,0),Te(vt,1)]}),Zt=Object(O.a)(Lt,2),dn=Zt[0],En=Zt[1],wn=g.useState(null),Hn=Object(O.a)(wn,2),jn=Hn[0],nn=Hn[1],Mn=Te(rt,0),mn=Te(rt,1);function Wn(tr){return dn[tr]?dn[tr]:Te(jn,tr)||Ia(rt,tr,Et,Wt)||Mn||mn||Wt.getNow()}function Dn(tr,sr){if(tr){var Ir=de(jn,tr,sr);En(de(dn,null,sr)||[null,null]);var oa=(sr+1)%2;Te(rt,oa)||(Ir=de(Ir,tr,oa)),nn(Ir)}else(Mn||mn)&&nn(null)}return[Wn,Dn]}function Fa(ye,rt){return ye&&ye[0]&&ye[1]&&rt.isAfter(ye[0],ye[1])?[ye[1],ye[0]]:ye}function li(ye,rt,Et,vt){return ye||vt&&vt[rt]?!0:!!Et[(rt+1)%2]}function yi(ye){var rt,Et,vt,Wt=ye.prefixCls,Lt=Wt===void 0?"rc-picker":Wt,Zt=ye.id,dn=ye.style,En=ye.className,wn=ye.popupStyle,Hn=ye.dropdownClassName,jn=ye.transitionName,nn=ye.dropdownAlign,Mn=ye.getPopupContainer,mn=ye.generateConfig,Wn=ye.locale,Dn=ye.placeholder,tr=ye.autoFocus,sr=ye.disabled,Ir=ye.format,oa=ye.picker,Cr=oa===void 0?"date":oa,Or=ye.showTime,ea=ye.use12Hours,Nn=ye.separator,br=Nn===void 0?"~":Nn,$t=ye.value,jt=ye.defaultValue,on=ye.defaultPickerValue,An=ye.open,Tn=ye.defaultOpen,Yn=ye.disabledDate,Jn=ye.disabledTime,kn=ye.dateRender,Ar=ye.panelRender,ur=ye.ranges,yr=ye.allowEmpty,vr=ye.allowClear,Dr=ye.suffixIcon,Xn=ye.clearIcon,Ut=ye.pickerRef,en=ye.inputReadOnly,Vt=ye.mode,Un=ye.renderExtraFooter,$n=ye.onChange,ir=ye.onOpenChange,Kn=ye.onPanelChange,rr=ye.onCalendarChange,or=ye.onFocus,ta=ye.onBlur,wr=ye.onOk,_r=ye.components,qr=ye.order,Kr=ye.direction,mr=ye.activePickerIndex,Jr=ye.autoComplete,Rr=Jr===void 0?"off":Jr,ra=Cr==="date"&&!!Or||Cr==="time",Gr=Object(g.useRef)({}),Fe=Object(g.useRef)(null),tt=Object(g.useRef)(null),nt=Object(g.useRef)(null),Ye=Object(g.useRef)(null),Pe=Object(g.useRef)(null),ze=Object(g.useRef)(null),Re=Object(g.useRef)(null),Ze=ue(S(Ir,Cr,Or,ea)),qe=Object(c.a)(0,{value:mr}),ht=Object(O.a)(qe,2),et=ht[0],wt=ht[1],Pt=Object(g.useRef)(null),Gt=g.useMemo(function(){return Array.isArray(sr)?sr:[sr||!1,sr||!1]},[sr]),kt=Object(c.a)(null,{value:$t,defaultValue:jt,postState:function(gr){return Cr==="time"&&!qr?gr:Fa(gr,mn)}}),ln=Object(O.a)(kt,2),On=ln[0],er=ln[1],Zn=xa({values:On,picker:Cr,defaultDates:on,generateConfig:mn}),Tr=Object(O.a)(Zn,2),dr=Tr[0],Bn=Tr[1],rn=Object(c.a)(On,{postState:function(gr){var Yr=gr;if(Gt[0]&&Gt[1])return Yr;for(var ba=0;ba<2;ba+=1)Gt[ba]&&!Te(Yr,ba)&&!Te(yr,ba)&&(Yr=de(Yr,mn.getNow(),ba));return Yr}}),yn=Object(O.a)(rn,2),tn=yn[0],Er=yn[1],zn=Object(c.a)([Cr,Cr],{value:Vt}),bn=Object(O.a)(zn,2),In=bn[0],Fr=bn[1];Object(g.useEffect)(function(){Fr([Cr,Cr])},[Cr]);var Qn=function(gr,Yr){Fr(gr),Kn&&Kn(Yr,gr)},Ln=La({picker:Cr,selectedValue:tn,locale:Wn,disabled:Gt,disabledDate:Yn,generateConfig:mn},Gr.current[1],Gr.current[0]),cr=Object(O.a)(Ln,2),Lr=cr[0],Nr=cr[1],$r=Object(c.a)(!1,{value:An,defaultValue:Tn,postState:function(gr){return Gt[et]?!1:gr},onChange:function(gr){ir&&ir(gr),!gr&&Pt.current&&Pt.current.onClose&&Pt.current.onClose()}}),fa=Object(O.a)($r,2),ia=fa[0],na=fa[1],kr=ia&&et===0,Wa=ia&&et===1,mi=Object(g.useState)(0),Qr=Object(O.a)(mi,2),zr=Qr[0],Xr=Qr[1];Object(g.useEffect)(function(){!ia&&Fe.current&&Xr(Fe.current.offsetWidth)},[ia]);var Vr=g.useRef();function ha(pa,gr){if(pa)clearTimeout(Vr.current),Gr.current[gr]=!0,wt(gr),na(pa),ia||Bn(null,gr);else if(et===gr){na(pa);var Yr=Gr.current;Vr.current=setTimeout(function(){Yr===Gr.current&&(Gr.current={})})}}function sa(pa){ha(!0,pa),setTimeout(function(){var gr=[ze,Re][pa];gr.current&&gr.current.focus()},0)}function _a(pa,gr){var Yr=pa,ba=Te(Yr,0),Ba=Te(Yr,1);ba&&Ba&&mn.isAfter(ba,Ba)&&(Cr==="week"&&!ot(mn,Wn.locale,ba,Ba)||Cr==="quarter"&&!me(mn,ba,Ba)||Cr!=="week"&&Cr!=="quarter"&&Cr!=="time"&&!He(mn,ba,Ba)?(gr===0?(Yr=[ba,null],Ba=null):(ba=null,Yr=[null,Ba]),Gr.current=Object(m.a)({},gr,!0)):(Cr!=="time"||qr!==!1)&&(Yr=Fa(Yr,mn))),Er(Yr);var Ci=Yr&&Yr[0]?mn.locale.format(Wn.locale,Yr[0],Ze[0]):"",Mi=Yr&&Yr[1]?mn.locale.format(Wn.locale,Yr[1],Ze[0]):"";if(rr){var ti={range:gr===0?"start":"end"};rr(Yr,[Ci,Mi],ti)}var Si=li(ba,0,Gt,yr),Ki=li(Ba,1,Gt,yr),go=Yr===null||Si&&Ki;go&&(er(Yr),$n&&(!st(mn,Te(On,0),ba)||!st(mn,Te(On,1),Ba))&&$n(Yr,[Ci,Mi]));var qa=null;gr===0&&!Gt[1]?qa=1:gr===1&&!Gt[0]&&(qa=0),qa!==null&&qa!==et&&(!Gr.current[qa]||!Te(Yr,qa))&&Te(Yr,gr)?sa(qa):ha(!1,gr)}var Ha=function(gr){return ia&&Pt.current&&Pt.current.onKeyDown?Pt.current.onKeyDown(gr):(Object(r.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ua={formatList:Ze,generateConfig:mn,locale:Wn},Pa=Ma(Te(tn,0),Ua),Ei=Object(O.a)(Pa,2),Ti=Ei[0],ja=Ei[1],Da=Ma(Te(tn,1),Ua),$a=Object(O.a)(Da,2),to=$a[0],Mo=$a[1],Li=function(gr,Yr){var ba=mn.locale.parse(Wn.locale,gr,Ze),Ba=Yr===0?Lr:Nr;ba&&!Ba(ba)&&(Er(de(tn,ba,Yr)),Bn(ba,Yr))},no=Zr({valueTexts:Ti,onTextChange:function(gr){return Li(gr,0)}}),ro=Object(O.a)(no,3),gi=ro[0],uo=ro[1],Io=ro[2],Lo=Zr({valueTexts:to,onTextChange:function(gr){return Li(gr,1)}}),bo=Object(O.a)(Lo,3),Vi=bo[0],co=bo[1],Xi=bo[2],Yi=Object(g.useState)(null),No=Object(O.a)(Yi,2),yo=No[0],ao=No[1],Ji=Object(g.useState)(null),Qi=Object(O.a)(Ji,2),ni=Qi[0],Ni=Qi[1],Ri=Sa(gi,{formatList:Ze,generateConfig:mn,locale:Wn}),Zi=Object(O.a)(Ri,3),Pi=Zi[0],Eo=Zi[1],xo=Zi[2],Co=Sa(Vi,{formatList:Ze,generateConfig:mn,locale:Wn}),io=Object(O.a)(Co,3),ki=io[0],qi=io[1],ko=io[2],oo=function(gr){Ni(de(tn,gr,et)),et===0?Eo(gr):qi(gr)},so=function(){Ni(de(tn,null,et)),et===0?xo():ko()},So=function(gr,Yr){return{blurToCancel:ra,forwardKeyDown:Ha,onBlur:ta,isClickOutside:function(Ba){return!W([tt.current,nt.current,Ye.current],Ba)},onFocus:function(Ba){wt(gr),or&&or(Ba)},triggerOpen:function(Ba){ha(Ba,gr)},onSubmit:function(){_a(tn,gr),Yr()},onCancel:function(){ha(!1,gr),Er(On),Yr()}}},Uo=ua(Object(y.a)(Object(y.a)({},So(0,Io)),{},{open:kr,value:gi})),jo=Object(O.a)(Uo,2),fi=jo[0],Ka=jo[1],ai=Ka.focused,Ja=Ka.typing,ii=ua(Object(y.a)(Object(y.a)({},So(1,Xi)),{},{open:Wa,value:Vi})),wo=Object(O.a)(ii,2),xi=wo[0],Bo=wo[1],To=Bo.focused,$i=Bo.typing,Wi=function(gr){!ia&&!ze.current.contains(gr.target)&&!Re.current.contains(gr.target)&&(Gt[0]?Gt[1]||sa(1):sa(0))},Oo=function(gr){ia&&(ai||To)&&!ze.current.contains(gr.target)&&!Re.current.contains(gr.target)&&gr.preventDefault()},fo=On&&On[0]?mn.locale.format(Wn.locale,On[0],"YYYYMMDDHHmmss"):"",Wo=On&&On[1]?mn.locale.format(Wn.locale,On[1],"YYYYMMDDHHmmss"):"";Object(g.useEffect)(function(){ia||(Er(On),!Ti.length||Ti[0]===""?uo(""):ja!==gi&&Io(),!to.length||to[0]===""?co(""):Mo!==Vi&&Xi())},[ia,Ti,to]),Object(g.useEffect)(function(){Er(On)},[fo,Wo]),Ut&&(Ut.current={focus:function(){ze.current&&ze.current.focus()},blur:function(){ze.current&&ze.current.blur(),Re.current&&Re.current.blur()}});var lo=Object.keys(ur||{}),wa=lo.map(function(pa){var gr=ur[pa],Yr=typeof gr=="function"?gr():gr;return{label:pa,onClick:function(){_a(Yr,null),ha(!1,et)},onMouseEnter:function(){ao(Yr)},onMouseLeave:function(){ao(null)}}});function Ea(){var pa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yr=null;ia&&ni&&ni[0]&&ni[1]&&mn.isAfter(ni[1],ni[0])&&(Yr=ni);var ba=Or;if(Or&&Object(n.a)(Or)==="object"&&Or.defaultValue){var Ba=Or.defaultValue;ba=Object(y.a)(Object(y.a)({},Or),{},{defaultValue:Te(Ba,et)||void 0})}var Ci=null;return kn&&(Ci=function(ti,Si){return kn(ti,Si,{range:et?"end":"start"})}),g.createElement(lt.Provider,{value:{inRange:!0,panelPosition:pa,rangedValue:yo||tn,hoverRangedValue:Yr}},g.createElement(ar,Object.assign({},ye,gr,{dateRender:Ci,showTime:ba,mode:In[et],generateConfig:mn,style:void 0,direction:Kr,disabledDate:et===0?Lr:Nr,disabledTime:function(ti){return Jn?Jn(ti,et===0?"start":"end"):!1},className:f()(Object(m.a)({},"".concat(Lt,"-panel-focused"),et===0?!Ja:!$i)),value:Te(tn,et),locale:Wn,tabIndex:-1,onPanelChange:function(ti,Si){Qn(de(In,Si,et),de(tn,ti,et));var Ki=ti;pa==="right"&&In[et]===Si&&(Ki=Xe(Ki,Si,mn,-1)),Bn(Ki,et)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var za=0,ui=0;et&&nt.current&&Pe.current&&tt.current&&(za=nt.current.offsetWidth+Pe.current.offsetWidth,tt.current.offsetWidth&&za>tt.current.offsetWidth&&(ui=za));var eo=Kr==="rtl"?{right:za}:{left:za};function Ui(){var pa,gr=Pn(Lt,In[et],Un),Yr=Yt({prefixCls:Lt,components:_r,needConfirmButton:ra,okDisabled:!Te(tn,et)||Yn&&Yn(tn[et]),locale:Wn,rangeList:wa,onOk:function(){Te(tn,et)&&(_a(tn,et),wr&&wr(tn))}});if(Cr!=="time"&&!Or){var ba=dr(et),Ba=Xe(ba,Cr,mn),Ci=In[et],Mi=Ci===Cr,ti=Ea(Mi?"left":!1,{pickerValue:ba,onPickerValueChange:function(qa){Bn(qa,et)}}),Si=Ea("right",{pickerValue:Ba,onPickerValueChange:function(qa){Bn(Xe(qa,Cr,mn,-1),et)}});Kr==="rtl"?pa=g.createElement(g.Fragment,null,Si,Mi&&ti):pa=g.createElement(g.Fragment,null,ti,Mi&&Si)}else pa=Ea();var Ki=g.createElement(g.Fragment,null,g.createElement("div",{className:"".concat(Lt,"-panels")},pa),(gr||Yr)&&g.createElement("div",{className:"".concat(Lt,"-footer")},gr,Yr));return Ar&&(Ki=Ar(Ki)),g.createElement("div",{className:"".concat(Lt,"-panel-container"),style:{marginLeft:ui},ref:tt,onMouseDown:function(qa){qa.preventDefault()}},Ki)}var ho=g.createElement("div",{className:f()("".concat(Lt,"-range-wrapper"),"".concat(Lt,"-").concat(Cr,"-range-wrapper")),style:{minWidth:zr}},g.createElement("div",{className:"".concat(Lt,"-range-arrow"),style:eo}),Ui()),Oi;Dr&&(Oi=g.createElement("span",{className:"".concat(Lt,"-suffix")},Dr));var ei;vr&&(Te(On,0)&&!Gt[0]||Te(On,1)&&!Gt[1])&&(ei=g.createElement("span",{onMouseDown:function(gr){gr.preventDefault(),gr.stopPropagation()},onMouseUp:function(gr){gr.preventDefault(),gr.stopPropagation();var Yr=On;Gt[0]||(Yr=de(Yr,null,0)),Gt[1]||(Yr=de(Yr,null,1)),_a(Yr,null),ha(!1,et)},className:"".concat(Lt,"-clear")},Xn||g.createElement("span",{className:"".concat(Lt,"-clear-btn")})));var po={size:_(Cr,Ze[0])},Hi=0,mo=0;nt.current&&Ye.current&&Pe.current&&(et===0?mo=nt.current.offsetWidth:(Hi=za,mo=Ye.current.offsetWidth));var hi=Kr==="rtl"?{right:Hi}:{left:Hi},Aa=function(gr,Yr){var ba=de(tn,gr,et);Yr==="submit"||Yr!=="key"&&!ra?(_a(ba,et),et===0?xo():ko()):Er(ba)};return g.createElement(l.Provider,{value:{operationRef:Pt,hideHeader:Cr==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Aa,open:ia}},g.createElement(Xa,{visible:ia,popupElement:ho,popupStyle:wn,prefixCls:Lt,dropdownClassName:Hn,dropdownAlign:nn,getPopupContainer:Mn,transitionName:jn,range:!0,direction:Kr},g.createElement("div",Object.assign({ref:Fe,className:f()(Lt,"".concat(Lt,"-range"),En,(rt={},Object(m.a)(rt,"".concat(Lt,"-disabled"),Gt[0]&&Gt[1]),Object(m.a)(rt,"".concat(Lt,"-focused"),et===0?ai:To),Object(m.a)(rt,"".concat(Lt,"-rtl"),Kr==="rtl"),rt)),style:dn,onClick:Wi,onMouseDown:Oo},xe(ye)),g.createElement("div",{className:f()("".concat(Lt,"-input"),(Et={},Object(m.a)(Et,"".concat(Lt,"-input-active"),et===0),Object(m.a)(Et,"".concat(Lt,"-input-placeholder"),!!Pi),Et)),ref:nt},g.createElement("input",Object.assign({id:Zt,disabled:Gt[0],readOnly:en||!Ja,value:Pi||gi,onChange:function(gr){uo(gr.target.value)},autoFocus:tr,placeholder:Te(Dn,0)||"",ref:ze},fi,po,{autoComplete:Rr}))),g.createElement("div",{className:"".concat(Lt,"-range-separator"),ref:Pe},br),g.createElement("div",{className:f()("".concat(Lt,"-input"),(vt={},Object(m.a)(vt,"".concat(Lt,"-input-active"),et===1),Object(m.a)(vt,"".concat(Lt,"-input-placeholder"),!!ki),vt)),ref:Ye},g.createElement("input",Object.assign({disabled:Gt[1],readOnly:en||!$i,value:ki||Vi,onChange:function(gr){co(gr.target.value)},placeholder:Te(Dn,1)||"",ref:Re},xi,po,{autoComplete:Rr}))),g.createElement("div",{className:"".concat(Lt,"-active-bar"),style:Object(y.a)(Object(y.a)({},hi),{},{width:mo,position:"absolute"})}),Oi,ei)))}var ga=function(ye){Object(T.a)(Et,ye);var rt=Object(v.a)(Et);function Et(){var vt;return Object(M.a)(this,Et),vt=rt.apply(this,arguments),vt.pickerRef=g.createRef(),vt.focus=function(){vt.pickerRef.current&&vt.pickerRef.current.focus()},vt.blur=function(){vt.pickerRef.current&&vt.pickerRef.current.blur()},vt}return Object(E.a)(Et,[{key:"render",value:function(){return g.createElement(yi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Et}(g.Component),va=ga,ya=Y.b=Ga},onxn:function(N,Y){N.exports="data:image/png;base64,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"},osHv:function(N,Y,i){(function(M){M(i("VrN/"))})(function(M){"use strict";var E=M.Pos;function T(d,h){return d.line-h.line||d.ch-h.ch}var v="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",m=v+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",y=new RegExp("<(/?)(["+v+"]["+m+"]*)","g");function O(d,h,s,u){this.line=h,this.ch=s,this.cm=d,this.text=d.getLine(h),this.min=u?Math.max(u.from,d.firstLine()):d.firstLine(),this.max=u?Math.min(u.to-1,d.lastLine()):d.lastLine()}function g(d,h){var s=d.cm.getTokenTypeAt(E(d.line,h));return s&&/\btag\b/.test(s)}function e(d){return d.line>=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function f(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function r(d){for(;;){var h=d.text.indexOf(">",d.ch);if(h==-1){if(e(d))continue;return}if(!g(d,h+1)){d.ch=h+1;continue}var s=d.text.lastIndexOf("/",h),u=s>-1&&!/\S/.test(d.text.slice(s+1,h));return d.ch=h+1,u?"selfClose":"regular"}}function c(d){for(;;){var h=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(h==-1){if(f(d))continue;return}if(!g(d,h+1)){d.ch=h;continue}y.lastIndex=h,d.ch=h;var s=y.exec(d.text);if(s&&s.index==h)return s}}function n(d){for(;;){y.lastIndex=d.ch;var h=y.exec(d.text);if(!h){if(e(d))continue;return}if(!g(d,h.index+1)){d.ch=h.index+1;continue}return d.ch=h.index+h[0].length,h}}function a(d){for(;;){var h=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(h==-1){if(f(d))continue;return}if(!g(d,h+1)){d.ch=h;continue}var s=d.text.lastIndexOf("/",h),u=s>-1&&!/\S/.test(d.text.slice(s+1,h));return d.ch=h+1,u?"selfClose":"regular"}}function o(d,h){for(var s=[];;){var u=n(d),w,x=d.line,b=d.ch-(u?u[0].length:0);if(!u||!(w=r(d)))return;if(w=="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&&(!h||h==u[2]))return{tag:u[2],from:E(x,b),to:E(d.line,d.ch)}}else s.push(u[2])}}function l(d,h){for(var s=[];;){var u=a(d);if(!u)return;if(u=="selfClose"){c(d);continue}var w=d.line,x=d.ch,b=c(d);if(!b)return;if(b[1])s.push(b[2]);else{for(var P=s.length-1;P>=0;--P)if(s[P]==b[2]){s.length=P;break}if(P<0&&(!h||h==b[2]))return{tag:b[2],from:E(d.line,d.ch),to:E(w,x)}}}}M.registerHelper("fold","xml",function(d,h){for(var s=new O(d,h.line,0);;){var u=n(s);if(!u||s.line!=h.line)return;var w=r(s);if(!w)return;if(!u[1]&&w!="selfClose"){var x=E(s.line,s.ch),b=o(s,u[2]);return b&&T(b.from,x)>0?{from:x,to:b.from}:null}}}),M.findMatchingTag=function(d,h,s){var u=new O(d,h.line,h.ch,s);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var w=r(u),x=w&&E(u.line,u.ch),b=w&&c(u);if(!w||!b||T(u,h)>0)return;var P={from:E(u.line,u.ch),to:x,tag:b[2]};return w=="selfClose"?{open:P,close:null,at:"open"}:b[1]?{open:l(u,b[2]),close:P,at:"close"}:(u=new O(d,x.line,x.ch,s),{open:P,close:o(u,b[2]),at:"open"})},M.findEnclosingTag=function(d,h,s,u){for(var w=new O(d,h.line,h.ch,s);;){var x=l(w,u);if(!x)break;var b=new O(d,h.line,h.ch,s),P=o(b,x.tag);if(P)return{open:x,close:P}}},M.scanForClosingTag=function(d,h,s,u){var w=new O(d,h.line,h.ch,u?{from:0,to:u}:null);return o(w,s)}})},p5ED:function(N,Y,i){"use strict";var M=i("+L6B"),E=i("2/Rp"),T=i("5Dmo"),v=i("3S7+"),m=i("k1fw"),y=i("9og8"),O=i("tJVT"),g=i("WmNS"),e=i.n(g),f=i("q1tI"),r=i.n(f),c=i("vHTk"),n=i.n(c),a=i("yEEn"),o=i("ZW9T"),l=i("1vsH"),d=i("V0Rq"),h=i("m3rI");Y.a=function(s){var u,w,x,b,P,R,C,S=s.editOffice,_=S===void 0?"view":S,A=s.data,j=s.theme,I=s.type,k=s.filename,J=s.monacoEditor,G=s.className,D=s.style,H=s.close,W=s.onClose,L=s.hasMask,z=s.disabledDownload,ie=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ce=Object(O.a)(ie,2),ue=ce[0],xe=ce[1],Te=Object(f.useState)(""),de=Object(O.a)(Te,2),ve=de[0],_e=de[1],le=Object(f.useState)(),ee=Object(O.a)(le,2),U=ee[0],K=ee[1],X=window.ENV==="build"?"/react/build":"",Q=h.a.PROXY_SERVER||location.origin,te,ae=1024*1024,re=10*ae,$=Object(f.useRef)();(u=A)!==null&&u!==void 0&&u.startsWith("/api")&&I!=="txt"&&(A=(h.a.API_SERVER||location.origin)+A),I==="office"&&(te=Object(l.T)(A).filesize,te>re&&(I="other")),k&&J&&(J.filename=k),Object(f.useEffect)(function(){var Oe,He,Qe=(Oe=document.cookie)===null||Oe===void 0||((He=Oe.replace(/\s/g,""))===null||He===void 0)?void 0:He.split(";");Qe==null||Qe.map(function(ot){var st=ot.split("=");st[0]==="_educoder_session"&&_e(st[1])})},[]),Object(f.useEffect)(function(){I==="office"&&Z()},[I,A]);var Z=function(){var Oe=Object(y.a)(e.a.mark(function He(){var Qe,ot,st;return e.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return console.log("data:",A),Qe=A,A.startsWith("http")||(Qe=location.origin+Qe),ot=new URL(Qe).pathname.split("/").pop(),dt.next=6,Object(d.V)({attachment_id:ot});case 6:st=dt.sent,K(st);case 8:case"end":return dt.stop()}},He)}));return function(){return Oe.apply(this,arguments)}}(),fe=function(){if(A.startsWith("http")||A.startsWith("blob:")){me();return}Object(l.z)(k||"educoder",A,k)},me=function(){Object(l.x)(k||"educoder",decodeURIComponent(A))};return r.a.createElement("div",{style:Object(m.a)({},D||{}),className:"".concat(L&&n.a.bgBlack," ").concat(I?n.a.wrp:"hide")},H&&r.a.createElement("div",{className:n.a.close,ref:$},!z&&r.a.createElement(v.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return $.current}},r.a.createElement("span",{onClick:me},r.a.createElement("i",{className:"icon-quxiaozhiding"}))),r.a.createElement(v.a,{title:"\u5173\u95ED",getPopupContainer:function(){return $.current}},r.a.createElement("span",{className:"",onClick:W},r.a.createElement("i",{className:"icon-guanbi1"})))),r.a.createElement("div",{className:"".concat(n.a[G]," ").concat(G," ").concat(n.a.monaco," ").concat(I==="txt"?"show":"hide")},I==="txt"&&r.a.createElement(o.b,J)),I==="audio"&&r.a.createElement("audio",{src:"".concat(((w=A)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((x=A)===null||x===void 0?void 0:x.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(A),autoPlay:!0}),I==="video"&&r.a.createElement(r.a.Fragment,null,((b=A)===null||b===void 0?void 0:b.indexOf("http"))>-1?r.a.createElement("video",{controls:!0,src:"".concat(A),autoPlay:!0}):r.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(A),autoPlay:!0})),I==="office"&&U&&r.a.createElement("iframe",{src:"".concat(X,"/office.html?key=").concat(U.key,"&url=").concat(Q+U.url,"&callbackUrl=").concat(Q+U.callbackUrl,"&fileType=").concat(U.fileType,"&title=").concat(U.title,"&model=").concat(_,"&officeServer=").concat(h.a.OFFICE_SERVER,"&disabledDownload=").concat(!!z)}),I==="html"&&r.a.createElement("iframe",{src:A+"&disposition=inline"}),I==="pdf"&&r.a.createElement("iframe",{src:"".concat(X,"/js/pdfview/index.html?url=").concat(A,"&disabledDownload=").concat(!!z)}),I==="image"&&r.a.createElement("img",{src:"".concat(((P=A)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((R=A)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(C=A)!==null&&C!==void 0&&C.startsWith("/api")?"":"data:image/png;base64,").concat(A)}),I==="other"&&r.a.createElement("div",null,r.a.createElement(E.a,{type:"primary",size:"large",onClick:fe},r.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),I==="download"&&r.a.createElement(E.a,{type:"primary",size:"large",onClick:fe},r.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(N,Y,i){},pA7S:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.WordArray,m=T.BlockCipher,y=E.algo,O=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],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],c=y.DES=m.extend({_doReset:function(){for(var l=this._key,d=l.words,h=[],s=0;s<56;s++){var u=O[s]-1;h[s]=d[u>>>5]>>>31-u%32&1}for(var w=this._subKeys=[],x=0;x<16;x++){for(var b=w[x]=[],P=e[x],s=0;s<24;s++)b[s/6|0]|=h[(g[s]-1+P)%28]<<31-s%6,b[4+(s/6|0)]|=h[28+(g[s+24]-1+P)%28]<<31-s%6;b[0]=b[0]<<1|b[0]>>>31;for(var s=1;s<7;s++)b[s]=b[s]>>>(s-1)*4+3;b[7]=b[7]<<5|b[7]>>>27}for(var R=this._invSubKeys=[],s=0;s<16;s++)R[s]=w[15-s]},encryptBlock:function(l,d){this._doCryptBlock(l,d,this._subKeys)},decryptBlock:function(l,d){this._doCryptBlock(l,d,this._invSubKeys)},_doCryptBlock:function(l,d,h){this._lBlock=l[d],this._rBlock=l[d+1],n.call(this,4,252645135),n.call(this,16,65535),a.call(this,2,858993459),a.call(this,8,16711935),n.call(this,1,1431655765);for(var s=0;s<16;s++){for(var u=h[s],w=this._lBlock,x=this._rBlock,b=0,P=0;P<8;P++)b|=f[P][((x^u[P])&r[P])>>>0];this._lBlock=x,this._rBlock=w^b}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,n.call(this,1,1431655765),a.call(this,8,16711935),a.call(this,2,858993459),n.call(this,16,65535),n.call(this,4,252645135),l[d]=this._lBlock,l[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function n(l,d){var h=(this._lBlock>>>l^this._rBlock)&d;this._rBlock^=h,this._lBlock^=h<<l}function a(l,d){var h=(this._rBlock>>>l^this._lBlock)&d;this._lBlock^=h,this._rBlock^=h<<l}E.DES=m._createHelper(c);var o=y.TripleDES=m.extend({_doReset:function(){var l=this._key,d=l.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=d.slice(0,2),s=d.length<4?d.slice(0,2):d.slice(2,4),u=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=c.createEncryptor(v.create(h)),this._des2=c.createEncryptor(v.create(s)),this._des3=c.createEncryptor(v.create(u))},encryptBlock:function(l,d){this._des1.encryptBlock(l,d),this._des2.decryptBlock(l,d),this._des3.encryptBlock(l,d)},decryptBlock:function(l,d){this._des3.decryptBlock(l,d),this._des2.encryptBlock(l,d),this._des1.decryptBlock(l,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});E.TripleDES=m._createHelper(o)}(),M.TripleDES})},pUFm:function(N,Y,i){N.exports=i.p+"static/no-data.c803c40c.png"},pmY6:function(N,Y,i){"use strict";i.d(Y,"h",function(){return f}),i.d(Y,"g",function(){return c}),i.d(Y,"f",function(){return n}),i.d(Y,"e",function(){return a}),i.d(Y,"i",function(){return o}),i.d(Y,"b",function(){return l}),i.d(Y,"a",function(){return d}),i.d(Y,"d",function(){return h}),i.d(Y,"c",function(){return s});var M=i("C/vA"),E=i("JYp7");const T=!1;let v=null;function m(u){v=u}if(T){const u="__is_disposable_tracked__";m(new class{trackDisposable(w){const x=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[u]||console.log(x)},3e3)}setParent(w,x){if(w&&w!==d.None)try{w[u]=!0}catch(b){}}markAsDisposed(w){if(w&&w!==d.None)try{w[u]=!0}catch(x){}}markAsSingleton(w){}})}function y(u){return v==null||v.trackDisposable(u),u}function O(u){v==null||v.markAsDisposed(u)}function g(u,w){v==null||v.setParent(u,w)}function e(u,w){if(!v)return;for(const x of u)v.setParent(x,w)}function f(u){return v==null||v.markAsSingleton(u),u}class r extends Error{constructor(u){super(`Encountered errors while disposing of store. Errors: [${u.join(", ")}]`);this.errors=u}}function c(u){return typeof u.dispose=="function"&&u.dispose.length===0}function n(u){if(E.a.is(u)){let w=[];for(const x of u)if(x)try{x.dispose()}catch(b){w.push(b)}if(w.length===1)throw w[0];if(w.length>1)throw new r(w);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function a(...u){const w=o(()=>n(u));return e(u,w),w}function o(u){const w=y({dispose:Object(M.a)(()=>{O(w),u()})});return w}class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,y(this)}dispose(){if(this._isDisposed)return;O(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?l.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}}l.DISABLE_DISPOSED_WARNING=!1;class d{constructor(){this._store=new l,y(this),g(this._store,this)}dispose(){O(this),this._store.dispose()}_register(u){if(u===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(u)}}d.None=Object.freeze({dispose(){}});class h{constructor(){this._isDisposed=!1,y(this)}get value(){return this._isDisposed?void 0:this._value}set value(u){var w;if(this._isDisposed||u===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),u&&g(u,this),this._value=u}clear(){this.value=void 0}dispose(){var u;this._isDisposed=!0,O(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(N,Y,i){var M,E;(function(){var T;(function(){"use strict";var O=[,,function(r){function c(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}c.prototype.clone_empty=function(){var o=new c(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},c.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},c.prototype.has_match=function(o){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(o))return!0;return!1},c.prototype.set_indent=function(o,l){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},c.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},c.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},c.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},c.prototype.is_empty=function(){return this.__items.length===0},c.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},c.prototype.push=function(o){this.__items.push(o);var l=o.lastIndexOf(`
`);l!==-1?this.__character_count=o.length-l:this.__character_count+=o.length},c.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},c.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},c.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},c.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},c.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function n(o,l){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),l=l||"",o.indent_level>0&&(l=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}n.prototype.get_indent_size=function(o,l){var d=this.__base_string_length;return l=l||0,o<0&&(d=0),d+=o*this.__indent_size,d+=l,d},n.prototype.get_indent_string=function(o,l){var d=this.__base_string;return l=l||0,o<0&&(o=0,d=""),l+=o*this.__indent_size,this.__ensure_cache(l),d+=this.__cache[l],d},n.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var o=this.__cache.length,l=0,d="";this.__indent_size&&o>=this.__indent_size&&(l=Math.floor(o/this.__indent_size),o-=l*this.__indent_size,d=new Array(l+1).join(this.__indent_string)),o&&(d+=new Array(o+1).join(" ")),this.__cache.push(d)};function a(o,l){this.__indent_cache=new n(o,l),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new c(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(o,l){return this.__indent_cache.get_indent_string(o,l)},a.prototype.get_indent_size=function(o,l){return this.__indent_cache.get_indent_size(o,l)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(o){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===`
`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
`);return o!==`
`&&(d=d.replace(/[\n]/g,o)),d},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(o,l){return o=o||0,l=l||0,this.next_line.set_indent(o,l),this.__lines.length>1?(this.current_line.set_indent(o,l),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(o){for(var l=0;l<o.newlines;l++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},a.prototype.remove_indent=function(o){for(var l=this.__lines.length;o<l;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(o,l){for(var d=this.__lines.length-2;d>=0;){var h=this.__lines[d];if(h.is_empty())break;if(h.item(0).indexOf(o)!==0&&h.item(-1)!==l){this.__lines.splice(d+1,0,new c(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},r.exports.Output=a},function(r){function c(n,a,o,l){this.type=n,this.text=a,this.comments_before=null,this.newlines=o||0,this.whitespace_before=l||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=c},,,function(r){function c(o,l){this.raw_options=n(o,l),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}c.prototype._get_array=function(o,l){var d=this.raw_options[o],h=l||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(h=d.concat()):typeof d=="string"&&(h=d.split(/[^a-zA-Z0-9_\/\-]+/)),h},c.prototype._get_boolean=function(o,l){var d=this.raw_options[o],h=d===void 0?!!l:!!d;return h},c.prototype._get_characters=function(o,l){var d=this.raw_options[o],h=l||"";return typeof d=="string"&&(h=d.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),h},c.prototype._get_number=function(o,l){var d=this.raw_options[o];l=parseInt(l,10),isNaN(l)&&(l=0);var h=parseInt(d,10);return isNaN(h)&&(h=l),h},c.prototype._get_selection=function(o,l,d){var h=this._get_selection_list(o,l,d);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
`+l+`
You passed in: '`+this.raw_options[o]+"'");return h[0]},c.prototype._get_selection_list=function(o,l,d){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[l[0]],!this._is_valid_selection(d,l))throw new Error("Invalid Default Value!");var h=this._get_array(o,d);if(!this._is_valid_selection(h,l))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
`+l+`
You passed in: '`+this.raw_options[o]+"'");return h},c.prototype._is_valid_selection=function(o,l){return o.length&&l.length&&!o.some(function(d){return l.indexOf(d)===-1})};function n(o,l){var d={};o=a(o);var h;for(h in o)h!==l&&(d[h]=o[h]);if(l&&o[l])for(h in o[l])d[h]=o[l][h];return d}function a(o){var l={},d;for(d in o){var h=d.replace(/-/g,"_");l[h]=o[d]}return l}r.exports.Options=c,r.exports.normalizeOpts=a,r.exports.mergeOpts=n},,function(r){var c=RegExp.prototype.hasOwnProperty("sticky");function n(a){this.__input=a||"",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 a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},n.prototype.peek=function(a){var o=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(o=this.__input.charAt(a)),o},n.prototype.__match=function(a,o){a.lastIndex=o;var l=a.exec(this.__input);return l&&!(c&&a.sticky)&&(l.index!==o&&(l=null)),l},n.prototype.test=function(a,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(a,o):!1},n.prototype.testChar=function(a,o){var l=this.peek(o);return a.lastIndex=0,l!==null&&a.test(l)},n.prototype.match=function(a){var o=this.__match(a,this.__position);return o?this.__position+=o[0].length:o=null,o},n.prototype.read=function(a,o,l){var d="",h;return a&&(h=this.match(a),h&&(d+=h[0])),o&&(h||!a)&&(d+=this.readUntil(o,l)),d},n.prototype.readUntil=function(a,o){var l="",d=this.__position;a.lastIndex=this.__position;var h=a.exec(this.__input);return h?(d=h.index,o&&(d+=h[0].length)):d=this.__input_length,l=this.__input.substring(this.__position,d),this.__position=d,l},n.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},n.prototype.get_regexp=function(a,o){var l=null,d="g";return o&&c&&(d="y"),typeof a=="string"&&a!==""?l=new RegExp(a,d):a&&(l=new RegExp(a.source,d)),l},n.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(a){var o=this.__position,l=this.readUntilAfter(a);return this.__position=o,l},n.prototype.lookBack=function(a){var o=this.__position-1;return o>=a.length&&this.__input.substring(o-a.length,o).toLowerCase()===a},r.exports.InputScanner=n},function(r,c,n){var a=n(8).InputScanner,o=n(3).Token,l=n(10).TokenStream,d=n(11).WhitespacePattern,h={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(u,w){this._input=new a(u),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new d(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new l,this._reset();for(var u,w=new o(h.START,""),x=null,b=[],P=new l;w.type!==h.EOF;){for(u=this._get_next_token(w,x);this._is_comment(u);)P.add(u),u=this._get_next_token(w,x);P.isEmpty()||(u.comments_before=P,P=new l),u.parent=x,this._is_opening(u)?(b.push(x),x=u):x&&this._is_closing(u,x)&&(u.opened=x,x.closed=u,x=b.pop(),u.parent=x),u.previous=w,w.next=u,this.__tokens.add(u),w=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,w){this._readWhitespace();var x=this._input.read(/.+/g);return x?this._create_token(h.RAW,x):this._create_token(h.EOF,"")},s.prototype._is_comment=function(u){return!1},s.prototype._is_opening=function(u){return!1},s.prototype._is_closing=function(u,w){return!1},s.prototype._create_token=function(u,w){var x=new o(u,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return x},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=s,r.exports.TOKEN=h},function(r){function c(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}c.prototype.restart=function(){this.__position=0},c.prototype.isEmpty=function(){return this.__tokens_length===0},c.prototype.hasNext=function(){return this.__position<this.__tokens_length},c.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},c.prototype.peek=function(n){var a=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(a=this.__tokens[n]),a},c.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},r.exports.TokenStream=c},function(r,c,n){var a=n(12).Pattern;function o(l,d){a.call(this,l,d),d?this._line_regexp=this._input.get_regexp(d._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new a,o.prototype.__set_whitespace_patterns=function(l,d){l+="\\t ",d+="\\n\\r",this._match_pattern=this._input.get_regexp("["+l+d+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+d+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var l=this._input.read(this._match_pattern);if(l===" ")this.whitespace_before_token=" ";else if(l){var d=this.__split(this._newline_regexp,l);this.newline_count=d.length-1,this.whitespace_before_token=d[this.newline_count]}return l},o.prototype.matching=function(l,d){var h=this._create();return h.__set_whitespace_patterns(l,d),h._update(),h},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(l,d){l.lastIndex=0;for(var h=0,s=[],u=l.exec(d);u;)s.push(d.substring(h,u.index)),h=u.index+u[0].length,u=l.exec(d);return h<d.length?s.push(d.substring(h,d.length)):s.push(""),s},r.exports.WhitespacePattern=o},function(r){function c(n,a){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}c.prototype.read=function(){var 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},c.prototype.read_match=function(){return this._input.match(this._match_pattern)},c.prototype.until_after=function(n){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(n),a._update(),a},c.prototype.until=function(n){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(n),a._update(),a},c.prototype.starting_with=function(n){var a=this._create();return a._starting_pattern=this._input.get_regexp(n,!0),a._update(),a},c.prototype.matching=function(n){var a=this._create();return a._match_pattern=this._input.get_regexp(n,!0),a._update(),a},c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){},r.exports.Pattern=c},function(r){function c(n,a){n=typeof n=="string"?n:n.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+a,"g")}c.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(n);o;)a[o[1]]=o[2],o=this.__directive_pattern.exec(n);return a},c.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=c},function(r,c,n){var a=n(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function l(d,h){a.call(this,d,h),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),h&&(this.__template_pattern=this._input.get_regexp(h.__template_pattern),this._excluded=Object.assign(this._excluded,h._excluded),this._disabled=Object.assign(this._disabled,h._disabled));var s=new a(d);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}/)}}l.prototype=new a,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(d){var h=this._create();return h._disabled[d]=!0,h._update(),h},l.prototype.read_options=function(d){var h=this._create();for(var s in o)h._disabled[s]=d.templating.indexOf(s)===-1;return h._update(),h},l.prototype.exclude=function(d){var h=this._create();return h._excluded[d]=!0,h._update(),h},l.prototype.read=function(){var d="";this._match_pattern?d=this._input.read(this._starting_pattern):d=this._input.read(this._starting_pattern,this.__template_pattern);for(var h=this._read_template();h;)this._match_pattern?h+=this._input.read(this._match_pattern):h+=this._input.readUntil(this.__template_pattern),d+=h,h=this._read_template();return this._until_after&&(d+=this._input.readUntilAfter(this._until_pattern)),d},l.prototype.__set_templated_pattern=function(){var d=[];this._disabled.php||d.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||d.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||d.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(d.push(this.__patterns.django._starting_pattern.source),d.push(this.__patterns.django_value._starting_pattern.source),d.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||d.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&d.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+d.join("|")+")")},l.prototype._read_template=function(){var d="",h=this._input.peek();if(h==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(d=d||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(d=d||this.__patterns.erb.read())}else h==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(d=d||this.__patterns.handlebars_comment.read(),d=d||this.__patterns.handlebars_unescaped.read(),d=d||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(d=d||this.__patterns.django_value.read()),this._excluded.django||(d=d||this.__patterns.django_comment.read(),d=d||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(d=d||this.__patterns.smarty_comment.read(),d=d||this.__patterns.smarty_literal.read(),d=d||this.__patterns.smarty.read()));return d},r.exports.TemplatablePattern=l},,,,function(r,c,n){var a=n(19).Beautifier,o=n(20).Options;function l(d,h,s,u){var w=new a(d,h,s,u);return w.beautify()}r.exports=l,r.exports.defaultOptions=function(){return new o}},function(r,c,n){var a=n(20).Options,o=n(2).Output,l=n(21).Tokenizer,d=n(21).TOKEN,h=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,u=function(j,I){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=j.max_preserve_newlines,this.preserve_newlines=j.preserve_newlines,this._output=new o(j,I)};u.prototype.current_line_has_match=function(j){return this._output.current_line.has_match(j)},u.prototype.set_space_before_token=function(j,I){this._output.space_before_token=j,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(j){this._output.add_raw_token(j)},u.prototype.print_preserved_newlines=function(j){var I=0;j.type!==d.TEXT&&j.previous.type!==d.TEXT&&(I=j.newlines?1:0),this.preserve_newlines&&(I=j.newlines<this.max_preserve_newlines+1?j.newlines:this.max_preserve_newlines+1);for(var k=0;k<I;k++)this.print_newline(k>0);return I!==0},u.prototype.traverse_whitespace=function(j){return j.whitespace_before||j.newlines?(this.print_preserved_newlines(j)||(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(j){this._output.add_new_line(j)},u.prototype.print_token=function(j){j.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(j.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(j){return j=this.indent_level+(j||0),j<1?"":this._output.get_indent_string(j)};var w=function(j){for(var I=null,k=j.next;k.type!==d.EOF&&j.closed!==k;){if(k.type===d.ATTRIBUTE&&k.text==="type"){k.next&&k.next.type===d.EQUALS&&k.next.next&&k.next.next.type===d.VALUE&&(I=k.next.next.text);break}k=k.next}return I},x=function(j,I){var k=null,J=null;return I.closed?(j==="script"?k="text/javascript":j==="style"&&(k="text/css"),k=w(I)||k,k.search("text/css")>-1?J="css":k.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?J="javascript":k.search(/(text|application|dojo)\/(x-)?(html)/)>-1?J="html":k.search(/test\/null/)>-1&&(J="null"),J):null};function b(j,I){return I.indexOf(j)!==-1}function P(j,I,k){this.parent=j||null,this.tag=I?I.tag_name:"",this.indent_level=k||0,this.parser_token=I||null}function R(j){this._printer=j,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(j){var I=new P(this._current_frame,j,this._printer.indent_level);this._current_frame=I},R.prototype._try_pop_frame=function(j){var I=null;return j&&(I=j.parser_token,this._printer.indent_level=j.indent_level,this._current_frame=j.parent),I},R.prototype._get_frame=function(j,I){for(var k=this._current_frame;k&&!(j.indexOf(k.tag)!==-1);){if(I&&I.indexOf(k.tag)!==-1){k=null;break}k=k.parent}return k},R.prototype.try_pop=function(j,I){var k=this._get_frame([j],I);return this._try_pop_frame(k)},R.prototype.indent_to_tag=function(j){var I=this._get_frame(j);I&&(this._printer.indent_level=I.indent_level)};function C(j,I,k,J){this._source_text=j||"",I=I||{},this._js_beautify=k,this._css_beautify=J,this._tag_stack=null;var G=new a(I,"html");this._options=G,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"}C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var j=this._source_text,I=this._options.eol;this._options.eol==="auto"&&(I=`
`,j&&h.test(j)&&(I=j.match(h)[0])),j=j.replace(s,`
`);var k=j.match(/^[\t ]*/)[0],J={text:"",type:""},G=new S,D=new u(this._options,k),H=new l(j,this._options).tokenize();this._tag_stack=new R(D);for(var W=null,L=H.next();L.type!==d.EOF;)L.type===d.TAG_OPEN||L.type===d.COMMENT?(W=this._handle_tag_open(D,L,G,J),G=W):L.type===d.ATTRIBUTE||L.type===d.EQUALS||L.type===d.VALUE||L.type===d.TEXT&&!G.tag_complete?W=this._handle_inside_tag(D,L,G,H):L.type===d.TAG_CLOSE?W=this._handle_tag_close(D,L,G):L.type===d.TEXT?W=this._handle_text(D,L,G):D.add_raw_token(L),J=W,L=H.next();var z=D._output.get_code(I);return z},C.prototype._handle_tag_close=function(j,I,k){var J={text:I.text,type:I.type};return j.alignment_size=0,k.tag_complete=!0,j.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),k.is_unformatted?j.add_raw_token(I):(k.tag_start_char==="<"&&(j.set_space_before_token(I.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&k.has_wrapped_attrs&&j.print_newline(!1)),j.print_token(I)),k.indent_content&&!(k.is_unformatted||k.is_content_unformatted)&&(j.indent(),k.indent_content=!1),!k.is_inline_element&&!(k.is_unformatted||k.is_content_unformatted)&&j.set_wrap_point(),J},C.prototype._handle_inside_tag=function(j,I,k,J){var G=k.has_wrapped_attrs,D={text:I.text,type:I.type};if(j.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),k.is_unformatted)j.add_raw_token(I);else if(k.tag_start_char==="{"&&I.type===d.TEXT)j.print_preserved_newlines(I)?(I.newlines=0,j.add_raw_token(I)):j.print_token(I);else{if(I.type===d.ATTRIBUTE?(j.set_space_before_token(!0),k.attr_count+=1):(I.type===d.EQUALS||I.type===d.VALUE&&I.previous.type===d.EQUALS)&&j.set_space_before_token(!1),I.type===d.ATTRIBUTE&&k.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(j.traverse_whitespace(I),G=G||I.newlines!==0),this._is_wrap_attributes_force)){var H=k.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&k.attr_count===1){var W=!0,L=0,z;do{if(z=J.peek(L),z.type===d.ATTRIBUTE){W=!1;break}L+=1}while(L<4&&z.type!==d.EOF&&z.type!==d.TAG_CLOSE);H=!W}H&&(j.print_newline(!1),G=!0)}j.print_token(I),G=G||j.previous_token_wrapped(),k.has_wrapped_attrs=G}return D},C.prototype._handle_text=function(j,I,k){var J={text:I.text,type:"TK_CONTENT"};return k.custom_beautifier_name?this._print_custom_beatifier_text(j,I,k):k.is_unformatted||k.is_content_unformatted?j.add_raw_token(I):(j.traverse_whitespace(I),j.print_token(I)),J},C.prototype._print_custom_beatifier_text=function(j,I,k){var J=this;if(I.text!==""){var G=I.text,D,H=1,W="",L="";k.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?D=this._js_beautify:k.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?D=this._css_beautify:k.custom_beautifier_name==="html"&&(D=function(Te,de){var ve=new C(Te,de,J._js_beautify,J._css_beautify);return ve.beautify()}),this._options.indent_scripts==="keep"?H=0:this._options.indent_scripts==="separate"&&(H=-j.indent_level);var z=j.get_full_indent(H);if(G=G.replace(/\n[ \t]*$/,""),k.custom_beautifier_name!=="html"&&G[0]==="<"&&G.match(/^(<!--|<!\[CDATA\[)/)){var ie=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(G);if(!ie){j.add_raw_token(I);return}W=z+ie[1]+`
`,G=ie[4],ie[5]&&(L=z+ie[5]),G=G.replace(/\n[ \t]*$/,""),(ie[2]||ie[3].indexOf(`
`)!==-1)&&(ie=ie[3].match(/[ \t]+$/),ie&&(I.whitespace_before=ie[0]))}if(G)if(D){var ce=function(){this.eol=`
`};ce.prototype=this._options.raw_options;var ue=new ce;G=D(z+G,ue)}else{var xe=I.whitespace_before;xe&&(G=G.replace(new RegExp(`
(`+xe+")?","g"),`
`)),G=z+G.replace(/\n/g,`
`+z)}W&&(G?G=W+G+`
`+L:G=W+L),j.print_newline(!1),G&&(I.text=G,I.whitespace_before="",I.newlines=0,j.add_raw_token(I),j.print_newline(!0))}},C.prototype._handle_tag_open=function(j,I,k,J){var G=this._get_tag_open_token(I);return(k.is_unformatted||k.is_content_unformatted)&&!k.is_empty_element&&I.type===d.TAG_OPEN&&I.text.indexOf("</")===0?(j.add_raw_token(I),G.start_tag_token=this._tag_stack.try_pop(G.tag_name)):(j.traverse_whitespace(I),this._set_tag_position(j,I,G,k,J),G.is_inline_element||j.set_wrap_point(),j.print_token(I)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(G.alignment_size=I.text.length+1),!G.tag_complete&&!G.is_unformatted&&(j.alignment_size=G.alignment_size),G};var S=function(j,I){if(this.parent=j||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 k;this.tag_start_char=I.text[0],this.text=I.text,this.tag_start_char==="<"?(k=I.text.match(/^<([^\s>]*)/),this.tag_check=k?k[1]:""):(k=I.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=k?k[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===d.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 J=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(J=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(J)))}};C.prototype._get_tag_open_token=function(j){var I=new S(this._tag_stack.get_parser_token(),j);return I.alignment_size=this._options.wrap_attributes_indent_size,I.is_end_tag=I.is_end_tag||b(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&&b(I.tag_check,this._options.unformatted),I.is_content_unformatted=!I.is_empty_element&&b(I.tag_check,this._options.content_unformatted),I.is_inline_element=b(I.tag_name,this._options.inline)||I.tag_name.includes("-")||I.tag_start_char==="{",I},C.prototype._set_tag_position=function(j,I,k,J,G){if(k.is_empty_element||(k.is_end_tag?k.start_tag_token=this._tag_stack.try_pop(k.tag_name):(this._do_optional_end_element(k)&&(k.is_inline_element||j.print_newline(!1)),this._tag_stack.record_tag(k),(k.tag_name==="script"||k.tag_name==="style")&&!(k.is_unformatted||k.is_content_unformatted)&&(k.custom_beautifier_name=x(k.tag_check,I)))),b(k.tag_check,this._options.extra_liners)&&(j.print_newline(!1),j._output.just_added_blankline()||j.print_newline(!0)),k.is_empty_element){if(k.tag_start_char==="{"&&k.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),k.indent_content=!0;var D=j.current_line_has_match(/{{#if/);D||j.print_newline(!1)}k.tag_name==="!--"&&G.type===d.TAG_CLOSE&&J.is_end_tag&&k.text.indexOf(`
`)===-1||(k.is_inline_element||k.is_unformatted||j.print_newline(!1),this._calcluate_parent_multiline(j,k))}else if(k.is_end_tag){var H=!1;H=k.start_tag_token&&k.start_tag_token.multiline_content,H=H||!k.is_inline_element&&!(J.is_inline_element||J.is_unformatted)&&!(G.type===d.TAG_CLOSE&&k.start_tag_token===J)&&G.type!=="TK_CONTENT",(k.is_content_unformatted||k.is_unformatted)&&(H=!1),H&&j.print_newline(!1)}else k.indent_content=!k.custom_beautifier_name,k.tag_start_char==="<"&&(k.tag_name==="html"?k.indent_content=this._options.indent_inner_html:k.tag_name==="head"?k.indent_content=this._options.indent_head_inner_html:k.tag_name==="body"&&(k.indent_content=this._options.indent_body_inner_html)),!(k.is_inline_element||k.is_unformatted)&&(G.type!=="TK_CONTENT"||k.is_content_unformatted)&&j.print_newline(!1),this._calcluate_parent_multiline(j,k)},C.prototype._calcluate_parent_multiline=function(j,I){I.parent&&j._output.just_added_newline()&&!((I.is_inline_element||I.is_unformatted)&&I.parent.is_inline_element)&&(I.parent.multiline_content=!0)};var _=["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"],A=["a","audio","del","ins","map","noscript","video"];C.prototype._do_optional_end_element=function(j){var I=null;if(j.is_empty_element||!j.is_start_tag||!j.parent)return;if(j.tag_name==="body")I=I||this._tag_stack.try_pop("head");else if(j.tag_name==="li")I=I||this._tag_stack.try_pop("li",["ol","ul"]);else if(j.tag_name==="dd"||j.tag_name==="dt")I=I||this._tag_stack.try_pop("dt",["dl"]),I=I||this._tag_stack.try_pop("dd",["dl"]);else if(j.parent.tag_name==="p"&&_.indexOf(j.tag_name)!==-1){var k=j.parent.parent;(!k||A.indexOf(k.tag_name)===-1)&&(I=I||this._tag_stack.try_pop("p"))}else j.tag_name==="rp"||j.tag_name==="rt"?(I=I||this._tag_stack.try_pop("rt",["ruby","rtc"]),I=I||this._tag_stack.try_pop("rp",["ruby","rtc"])):j.tag_name==="optgroup"?I=I||this._tag_stack.try_pop("optgroup",["select"]):j.tag_name==="option"?I=I||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):j.tag_name==="colgroup"?I=I||this._tag_stack.try_pop("caption",["table"]):j.tag_name==="thead"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"])):j.tag_name==="tbody"||j.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"])):j.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"])):(j.tag_name==="th"||j.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 j.parent=this._tag_stack.get_parser_token(),I},r.exports.Beautifier=C},function(r,c,n){var a=n(6).Options;function o(l){a.call(this,l,"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"])}o.prototype=new a,r.exports.Options=o},function(r,c,n){var a=n(9).Tokenizer,o=n(9).TOKEN,l=n(13).Directives,d=n(14).TemplatablePattern,h=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:o.START,RAW:o.RAW,EOF:o.EOF},u=new l(/<\!--/,/-->/),w=function(x,b){a.call(this,x,b),this._current_tag_name="";var P=new d(this._input).read_options(this._options),R=new h(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 C=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(C).until_after(C)}};w.prototype=new a,w.prototype._is_comment=function(x){return!1},w.prototype._is_opening=function(x){return x.type===s.TAG_OPEN},w.prototype._is_closing=function(x,b){return x.type===s.TAG_CLOSE&&b&&((x.text===">"||x.text==="/>")&&b.text[0]==="<"||x.text==="}}"&&b.text[0]==="{"&&b.text[1]==="{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(x,b){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,b),P=P||this._read_attribute(R,x,b),P=P||this._read_close(R,b),P=P||this._read_raw_content(R,x,b),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,b),P=P||this._create_token(s.UNKNOWN,this._input.next()),P)},w.prototype._read_comment_or_cdata=function(x){var b=null,P=null,R=null;if(x==="<"){var C=this._input.peek(1);C==="!"&&(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&&(b=this._create_token(s.COMMENT,P),b.directives=R)}return b},w.prototype._read_processing=function(x){var b=null,P=null,R=null;if(x==="<"){var C=this._input.peek(1);(C==="!"||C==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(b=this._create_token(s.COMMENT,P),b.directives=R)}return b},w.prototype._read_open=function(x,b){var P=null,R=null;return b||x==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,P)),R},w.prototype._read_open_handlebars=function(x,b){var P=null,R=null;return b||this._options.indent_handlebars&&x==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,P))),R},w.prototype._read_close=function(x,b){var P=null,R=null;return b&&(b.text[0]==="<"&&(x===">"||x==="/"&&this._input.peek(1)===">")?(P=this._input.next(),x==="/"&&(P+=this._input.next()),R=this._create_token(s.TAG_CLOSE,P)):b.text[0]==="{"&&x==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},w.prototype._read_attribute=function(x,b,P){var R=null,C="";if(P&&P.text[0]==="<")if(x==="=")R=this._create_token(s.EQUALS,this._input.next());else if(x==='"'||x==="'"){var S=this._input.next();x==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,S)}else C=this.__patterns.attribute.read(),C&&(b.type===s.EQUALS?R=this._create_token(s.VALUE,C):R=this._create_token(s.ATTRIBUTE,C));return R},w.prototype._is_content_unformatted=function(x){return this._options.void_elements.indexOf(x)===-1&&(this._options.content_unformatted.indexOf(x)!==-1||this._options.unformatted.indexOf(x)!==-1)},w.prototype._read_raw_content=function(x,b,P){var R="";if(P&&P.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(b.type===s.TAG_CLOSE&&b.opened.text[0]==="<"&&b.text[0]!=="/"){var C=b.opened.text.substr(1).toLowerCase();if(C==="script"||C==="style"){var S=this._read_comment_or_cdata(x);if(S)return S.type=s.TEXT,S;R=this._input.readUntil(new RegExp("</"+C+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(C)&&(R=this._input.readUntil(new RegExp("</"+C+"[\\n\\r\\t ]*?>","ig")))}return R?this._create_token(s.TEXT,R):null},w.prototype._read_content_word=function(x){var b="";if(this._options.unformatted_content_delimiter&&(x===this._options.unformatted_content_delimiter[0]&&(b=this.__patterns.unformatted_content_delimiter.read())),b||(b=this.__patterns.word.read()),b)return this._create_token(s.TEXT,b)},r.exports.Tokenizer=w,r.exports.TOKEN=s}],g={};function e(r){var c=g[r];if(c!==void 0)return c.exports;var n=g[r]={exports:{}};return O[r](n,n.exports,e),n.exports}var f=e(18);T=f})();var v=T;if(!0)!(M=[i,i("6UM0"),i("TXwP")],E=function(O){var g=i("6UM0"),e=i("TXwP");return{html_beautify:function(f,r){return v(f,r,g.js_beautify,e.css_beautify)}}}.apply(Y,M),E!==void 0&&(N.exports=E));else var m,y})()},qB8g:function(N,Y,i){N.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(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.pad.AnsiX923={pad:function(E,T){var v=E.sigBytes,m=T*4,y=m-v%m,O=v+y-1;E.clamp(),E.words[O>>>2]|=y<<24-O%4*8,E.sigBytes+=y},unpad:function(E){var T=E.words[E.sigBytes-1>>>2]&255;E.sigBytes-=T}},M.pad.Ansix923})},qM6L:function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.WordArray,m=E.enc,y=m.Utf16=m.Utf16BE={stringify:function(g){for(var e=g.words,f=g.sigBytes,r=[],c=0;c<f;c+=2){var n=e[c>>>2]>>>16-c%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 v.create(f,e*2)}};m.Utf16LE={stringify:function(g){for(var e=g.words,f=g.sigBytes,r=[],c=0;c<f;c+=2){var n=O(e[c>>>2]>>>16-c%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]|=O(g.charCodeAt(r)<<16-r%2*16);return v.create(f,e*2)}};function O(g){return g<<8&4278255360|g>>>8&16711935}}(),M.enc.Utf16})},qgvg:function(N,Y){N.exports="data:image/gif;base64,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"},qu8F:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("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 E=M.lib.BlockCipherMode.extend();function T(y){if((y>>24&255)===255){var O=y>>16&255,g=y>>8&255,e=y&255;O===255?(O=0,g===255?(g=0,e===255?e=0:++e):++g):++O,y=0,y+=O<<16,y+=g<<8,y+=e}else y+=1<<24;return y}function v(y){return(y[0]=T(y[0]))===0&&(y[1]=T(y[1])),y}var m=E.Encryptor=E.extend({processBlock:function(y,O){var g=this._cipher,e=g.blockSize,f=this._iv,r=this._counter;f&&(r=this._counter=f.slice(0),this._iv=void 0),v(r);var c=r.slice(0);g.encryptBlock(c,0);for(var n=0;n<e;n++)y[O+n]^=c[n]}});return E.Decryptor=m,E}(),M.mode.CTRGladman})},"rAM+":function(N,Y,i){"use strict";i.d(Y,"a",function(){return E});var M=i("Qw5x");function E(T,v){var m;if(typeof Symbol=="undefined"||T[Symbol.iterator]==null){if(Array.isArray(T)||(m=Object(M.a)(T))||v&&T&&typeof T.length=="number"){m&&(T=m);var y=0,O=function(){};return{s:O,n:function(){return y>=T.length?{done:!0}:{done:!1,value:T[y++]}},e:function(c){throw c},f:O}}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(){m=T[Symbol.iterator]()},n:function(){var c=m.next();return g=c.done,c},e:function(c){e=!0,f=c},f:function(){try{!g&&m.return!=null&&m.return()}finally{if(e)throw f}}}}},rHrb:function(N,Y,i){"use strict";Object.defineProperty(Y,"__esModule",{value:!0}),Y.CopyToClipboard=void 0;var M=T(i("q1tI")),E=T(i("+QRC"));function T(s){return s&&s.__esModule?s:{default:s}}function v(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(w){return typeof w}:v=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},v(s)}function m(s,u){var w=Object.keys(s);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(s);u&&(x=x.filter(function(b){return Object.getOwnPropertyDescriptor(s,b).enumerable})),w.push.apply(w,x)}return w}function y(s){for(var u=1;u<arguments.length;u++){var w=arguments[u]!=null?arguments[u]:{};u%2?m(w,!0).forEach(function(x){d(s,x,w[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(w)):m(w).forEach(function(x){Object.defineProperty(s,x,Object.getOwnPropertyDescriptor(w,x))})}return s}function O(s,u){if(s==null)return{};var w=g(s,u),x,b;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(s);for(b=0;b<P.length;b++){if(x=P[b],u.indexOf(x)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,x))continue;w[x]=s[x]}}return w}function g(s,u){if(s==null)return{};var w={},x=Object.keys(s),b,P;for(P=0;P<x.length;P++){if(b=x[P],u.indexOf(b)>=0)continue;w[b]=s[b]}return w}function e(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function f(s,u){for(var w=0;w<u.length;w++){var x=u[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(s,x.key,x)}}function r(s,u,w){return u&&f(s.prototype,u),w&&f(s,w),s}function c(s,u){return u&&(v(u)==="object"||typeof u=="function")?u:a(s)}function n(s){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},n(s)}function a(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function o(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&&l(s,u)}function l(s,u){return l=Object.setPrototypeOf||function(x,b){return x.__proto__=b,x},l(s,u)}function d(s,u,w){return u in s?Object.defineProperty(s,u,{value:w,enumerable:!0,configurable:!0,writable:!0}):s[u]=w,s}var h=function(s){o(u,s);function u(){var w,x;e(this,u);for(var b=arguments.length,P=new Array(b),R=0;R<b;R++)P[R]=arguments[R];return x=c(this,(w=n(u)).call.apply(w,[this].concat(P))),d(a(x),"onClick",function(C){var S=x.props,_=S.text,A=S.onCopy,j=S.children,I=S.options,k=M.default.Children.only(j),J=(0,E.default)(_,I);A&&A(_,J),k&&k.props&&typeof k.props.onClick=="function"&&k.props.onClick(C)}),x}return r(u,[{key:"render",value:function(){var x=this.props,b=x.text,P=x.onCopy,R=x.options,C=x.children,S=O(x,["text","onCopy","options","children"]),_=M.default.Children.only(C);return M.default.cloneElement(_,y({},S,{onClick:this.onClick}))}}]),u}(M.default.PureComponent);Y.CopyToClipboard=h,d(h,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(N,Y){const i=/[&<>"']/,M=/[&<>"']/g,E=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=R=>v[R];function y(R,C){if(C){if(i.test(R))return R.replace(M,m)}else if(E.test(R))return R.replace(T,m);return R}const O=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(R){return R.replace(O,(C,S)=>(S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""))}const e=/(^|[^\[])\^/g;function f(R,C){R=R.source||R,C=C||"";const S={replace:(_,A)=>(A=A.source||A,A=A.replace(e,"$1"),R=R.replace(_,A),S),getRegex:()=>new RegExp(R,C)};return S}const r=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function n(R,C,S){if(R){let _;try{_=decodeURIComponent(g(S)).replace(r,"").toLowerCase()}catch(A){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}C&&!c.test(S)&&(S=h(C,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(_){return null}return S}const a={},o=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(R,C){a[" "+R]||(o.test(R)?a[" "+R]=R+"/":a[" "+R]=x(R,"/",!0)),R=a[" "+R];const S=R.indexOf(":")===-1;return C.substring(0,2)==="//"?S?C:R.replace(l,"$1")+C:C.charAt(0)==="/"?S?C:R.replace(d,"$1")+C:R+C}const s={exec:function(){}};function u(R){let C=1,S,_;for(;C<arguments.length;C++){S=arguments[C];for(_ in S)Object.prototype.hasOwnProperty.call(S,_)&&(R[_]=S[_])}return R}function w(R,C){const S=R.replace(/\|/g,(j,I,k)=>{let J=!1,G=I;for(;--G>=0&&k[G]==="\\";)J=!J;return J?"|":" |"}),_=S.split(/ \|/);let A=0;if(_.length>C)_.splice(C);else for(;_.length<C;)_.push("");for(;A<_.length;A++)_[A]=_[A].trim().replace(/\\\|/g,"|");return _}function x(R,C,S){const _=R.length;if(_===0)return"";let A=0;for(;A<_;){const j=R.charAt(_-A-1);if(j===C&&!S)A++;else if(j!==C&&S)A++;else break}return R.substr(0,_-A)}function b(R,C){if(R.indexOf(C[1])===-1)return-1;const S=R.length;let _=0,A=0;for(;A<S;A++)if(R[A]==="\\")A++;else if(R[A]===C[0])_++;else if(R[A]===C[1]&&(_--,_<0))return A;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")}N.exports={escape:y,unescape:g,edit:f,cleanUrl:n,resolveUrl:h,noopTest:s,merge:u,splitCells:w,rtrim:x,findClosingBracket:b,checkSanitizeDeprecation:P}},ruvs:function(N,Y,i){"use strict";i.d(Y,"b",function(){return Xe});var M=i("2qtc"),E=i("kLXV"),T=i("14J3"),v=i("BMrR"),m=i("9og8"),y=i("rAM+"),O=i("tJVT"),g=i("PpiC"),e=i("k1fw"),f=i("5NDa"),r=i("5rEg"),c=i("B9cy"),n=i("Ol7k"),a=i("WmNS"),o=i.n(a),l=i("q1tI"),d=i.n(l),h=i("Ty5D"),s=i("55Ip"),u=i("9kvl"),w=i("xrsn"),x=i.n(w),b=i("1Sn+"),P=i("qVdP"),R=i("jsC+"),C=i("jCWc"),S=i("kPKH"),_=i("lUTK"),A=i("BvKs"),j=i("miYZ"),I=i("tsqr"),k=i("7Kak"),J=i("9yH6"),G=i("6CvP"),D=i("1vsH"),H;(function(Ce){Ce.Manager="manager",Ce.Developer="developer",Ce.Reporter="reporter"})(H||(H={}));var W=function(he){var be=he.visible,Ee=he.onCancel,Ne=Ee===void 0?function(){}:Ee,we=Object(l.useState)(),Ae=Object(O.a)(we,2),Ue=Ae[0],We=Ae[1],Je=Object(l.useState)(),$e=Object(O.a)(Je,2),pt=$e[0],Jt=$e[1],fn=Object(l.useState)(!1),qt=Object(O.a)(fn,2),St=qt[0],Be=qt[1],at=function(){var Me=Object(m.a)(o.a.mark(function Ve(){var xt,_t;return o.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(Ue){Ot.next=3;break}return I.b.info("\u8BF7\u8F93\u5165\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Ot.abrupt("return");case 3:if(!(Ue.length!==6)){Ot.next=6;break}return I.b.info("\u8BF7\u8F93\u51656\u4F4D\u9879\u76EE\u9080\u8BF7\u7801\uFF01"),Ot.abrupt("return");case 6:if(pt){Ot.next=9;break}return I.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u8EAB\u4EFD\uFF01"),Ot.abrupt("return");case 9:return Be(!0),Ot.next=12,Object(G.s)({code:Ue,role:pt});case 12:if(xt=Ot.sent,Be(!1),it(),_t={1:"\u60A8\u8F93\u5165\u7684\u9080\u8BF7\u7801\u9519\u8BEF",2:"\u60A8\u5DF2\u7ECF\u662F\u8BE5\u9879\u76EE\u6210\u5458",3:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u89D2\u8272",4:"\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279",5:"\u60A8\u5DF2\u7ECF\u7533\u8BF7\u52A0\u5165\u8BE5\u9879\u76EE\u4E86\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85",6:"\u60A8\u5DF2\u6210\u529F\u52A0\u5165\u9879\u76EE"},!_t[xt.status]){Ot.next=19;break}return I.b.info(_t[xt.status]),Ot.abrupt("return");case 19:if(!(xt.status===0)){Ot.next=22;break}return pt==="reporter"?(I.b.success("\u60A8\u52A0\u5165\u9879\u76EE\u6210\u529F\uFF01"),Object(D.db)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u6210\u529F"]),u.d.push("/projects/".concat(xt==null?void 0:xt.project_id))):(Object(D.db)(["\u5F00\u53D1\u9879\u76EE","\u52A0\u5165\u9879\u76EE\u7B49\u5F85\u5BA1\u6279"]),I.b.success("\u60A8\u7684\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u9879\u76EE\u7BA1\u7406\u5458\u5BA1\u6279\uFF01")),Ot.abrupt("return");case 22:case"end":return Ot.stop()}},Ve)}));return function(){return Me.apply(this,arguments)}}(),it=function(){var Me=Object(m.a)(o.a.mark(function Ve(){return o.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:Ne();case 1:case"end":return _t.stop()}},Ve)}));return function(){return Me.apply(this,arguments)}}();return d.a.createElement(d.a.Fragment,null,d.a.createElement(E.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u9879\u76EE",visible:be,confirmLoading:St,onOk:at,onCancel:it},d.a.createElement("div",{className:"tc"},d.a.createElement("div",null,d.a.createElement("span",null,"\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"),d.a.createElement(r.a,{placeholder:"\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",style:{width:270},value:Ue,onChange:function(Ve){if(Ve.target.value.length>=7){I.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}We(Ve.target.value)}})),d.a.createElement("div",{className:"mt10 font14"},d.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),d.a.createElement(J.a.Group,{value:pt,onChange:function(Ve){return Jt(Ve.target.value)}},d.a.createElement(J.a,{value:H.Manager},"\u7BA1\u7406\u4EBA\u5458"),d.a.createElement(J.a,{value:H.Developer},"\u5F00\u53D1\u4EBA\u5458"),d.a.createElement(J.a,{value:H.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},L=W,z=i("Jky8"),ie=i("6Fuo"),ce=i.n(ie),ue=i("NLgs"),xe=i("xKgJ"),Te;(function(Ce){Ce.Projects="projects",Ce.Shixuns="shixuns",Ce.Classrooms="classrooms"})(Te||(Te={}));var de;(function(Ce){Ce.Classrooms="classrooms",Ce.Shixuns="shixuns",Ce.Paths="paths",Ce.Projects="projects",Ce.Videos="videos",Ce.Topics="topics"})(de||(de={}));var ve=function(he){var be,Ee,Ne,we,Ae,Ue,We,Je=he.homePage,$e=he.user,pt=he.globalSetting,Jt=he.loading,fn=he.dispatch,qt=he.location,St=Object(g.a)(he,["homePage","user","globalSetting","loading","dispatch","location"]),Be=Object(l.useState)(),at=Object(O.a)(Be,2),it=at[0],Me=at[1],Ve=Object(l.useState)(),xt=Object(O.a)(Ve,2),_t=xt[0],At=xt[1],Ot=function(un){var Kt;if(!Object(ue.e)(fn))return;if(un===Te.Projects&&!((Kt=$e.userInfo)!==null&&Kt!==void 0&&Kt.email)){I.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}un===Te.Classrooms?Me(!0):un===Te.Projects&&At(!0)},Ct=function(un,Kt){var gn;if(!Object(ue.e)(fn))return;if(Kt===Te.Projects&&!((gn=$e.userInfo)!==null&&gn!==void 0&&gn.email)){I.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Kt===Te.Shixuns&&!Object(ue.c)())return;un&&(window.location.href=un)},Bt=(be=(((Ee=pt.setting)===null||Ee===void 0?void 0:Ee.navbar)||[]).find(function(hn){return hn.link==="/".concat(de.Classrooms)}))===null||be===void 0?void 0:be.hidden,It=(Ne=(((we=pt.setting)===null||we===void 0?void 0:we.navbar)||[]).find(function(hn){return hn.link==="/".concat(de.Shixuns)}))===null||Ne===void 0?void 0:Ne.hidden,yt=(Ae=(((Ue=pt.setting)===null||Ue===void 0?void 0:Ue.navbar)||[]).find(function(hn){return hn.link==="/".concat(de.Paths)}))===null||Ae===void 0?void 0:Ae.hidden;if(pt!=null&&(We=pt.setting)!==null&&We!==void 0&&We.is_local){var zt;$e!=null&&(zt=$e.userInfo)!==null&&zt!==void 0&&zt.is_shixun_marker||(It=!0)}var sn=function(un){var Kt,gn,Rn,Cn,an;return d.a.createElement(d.a.Fragment,null,d.a.createElement(v.a,{justify:"space-around",className:"pt5 pb5"},d.a.createElement(S.a,{className:ce.a.joinCol},!(pt!=null&&pt.setting.hide_course)&&((Kt=$e.userInfo)===null||Kt===void 0?void 0:Kt.user_identity)!=="\u5B66\u751F"&&!Bt&&d.a.createElement(A.a.Item,un,d.a.createElement("a",{onClick:function(){return Ct("/classrooms/new")}},(gn=$e.userInfo)!==null&&gn!==void 0&&gn.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(pt!=null&&(Rn=pt.setting)!==null&&Rn!==void 0&&Rn.hide_subject&&Object(xe.m)())&&!(pt!=null&&pt.setting.hide_course)&&d.a.createElement(A.a.Item,un,d.a.createElement("a",{onClick:function(){return Ct("/paths/new")}},"\u65B0\u5EFA\u5B9E\u9A8C\u9879\u76EE")),!(pt!=null&&pt.setting.hide_shixun&&Object(xe.m)())&&!(pt!=null&&pt.setting.hide_course)&&d.a.createElement(A.a.Item,un,d.a.createElement("a",{onClick:function(){return Ct("/shixuns/new",Te.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u5E73\u53F0")),!(pt!=null&&(Cn=pt.setting)!==null&&Cn!==void 0&&Cn.is_local)&&((an=$e.userInfo)===null||an===void 0?void 0:an.main_site)&&d.a.createElement(A.a.Item,un,d.a.createElement("a",{onClick:function(){var vn,Ft;return Ct("".concat((vn=$e.navigationInfo)===null||vn===void 0||((Ft=vn.top)===null||Ft===void 0)?void 0:Ft.old_url,"/projects/deposit/new"),Te.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),d.a.createElement(S.a,null,d.a.createElement("div",{className:ce.a.joinBoard})),d.a.createElement(S.a,{className:ce.a.joinCol},d.a.createElement(A.a.Item,un,d.a.createElement("a",{onClick:function(){return Ot(Te.Projects)}},"banner\u56FE\u7BA1\u7406")),d.a.createElement(A.a.Item,un,d.a.createElement("a",null,"\u9879\u76EE\u7C7B\u578B\u7BA1\u7406")),d.a.createElement(A.a.Item,un,d.a.createElement("a",null,"\u5DE5\u4F5C\u5355\u4F4D\u7BA1\u7406")),d.a.createElement(A.a.Item,un,d.a.createElement("a",null,"\u7814\u53D1\u673A\u6784\u7BA1\u7406")),d.a.createElement(A.a.Item,un,d.a.createElement("a",null,"\u5B9E\u9A8C\u5E73\u53F0\u7BA1\u7406")))))};return d.a.createElement("section",null,d.a.createElement(R.a,{overlay:d.a.createElement(A.a,{className:"".concat(ce.a.rightMenu," ").concat(ce.a.joinMenu," mt10")},d.a.createElement(sn,null)),placement:"bottomRight"},d.a.createElement("span",{style:{lineHeight:"inherit",color:"#666"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),d.a.createElement(z.a,{visible:it,onCancel:function(){return Me(!1)}}),d.a.createElement(L,{visible:_t,onCancel:function(){return At(!1)}}))},_e=Object(u.a)(function(Ce){var he=Ce.homePage,be=Ce.loading,Ee=Ce.user,Ne=Ce.globalSetting;return{homePage:he,user:Ee,globalSetting:Ne,loading:be.models.index}})(ve),le=i("vToQ"),ee=i.n(le),U=i("jb+D"),K=i("m3rI"),X=function(he){var be,Ee=RegExp("(^| )"+he+"=([^;]+)(;|$)");return(be=document.cookie.match(Ee))?decodeURIComponent(be[2]):null},Q=function(he){var be=new Date;be.setTime(be.getTime()-1);var Ee=X(he);Ee!=null&&(document.cookie=he+"="+Ee+";expires="+be.toGMTString())},te;(function(Ce){Ce.Classrooms="classrooms",Ce.Shixuns="shixuns",Ce.Paths="paths",Ce.Projects="projects",Ce.Videos="videos",Ce.Topics="topics"})(te||(te={}));var ae=function(he){var be,Ee,Ne,we,Ae,Ue,We,Je,$e,pt,Jt,fn=he.homePage,qt=he.user,St=he.globalSetting,Be=he.loading,at=he.dispatch,it=he.shixunHomeworks,Me=he.location,Ve=he.payload,xt=Ve===void 0?{}:Ve,_t=Object(g.a)(he,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),At=(be=(((Ee=St.setting)===null||Ee===void 0?void 0:Ee.navbar)||[]).find(function(sn){return sn.link==="/".concat(te.Classrooms)}))===null||be===void 0?void 0:be.hidden,Ot=(Ne=(((we=St.setting)===null||we===void 0?void 0:we.navbar)||[]).find(function(sn){return sn.link==="/".concat(te.Shixuns)}))===null||Ne===void 0?void 0:Ne.hidden,Ct=(Ae=(((Ue=St.setting)===null||Ue===void 0?void 0:Ue.navbar)||[]).find(function(sn){return sn.link==="/".concat(te.Paths)}))===null||Ae===void 0?void 0:Ae.hidden,Bt=((We=qt.userInfo)===null||We===void 0?void 0:We.admin)||((Je=qt.userInfo)===null||Je===void 0?void 0:Je.business)||(($e=qt.userInfo)===null||$e===void 0?void 0:$e.is_shixun_marker)||((pt=qt.userInfo)===null||pt===void 0?void 0:pt.is_teacher)||((Jt=qt.userInfo)===null||Jt===void 0?void 0:Jt.user_identity)!=="\u5B66\u751F",It=function(){return Object(D.r)()?d.a.createElement(A.a,{className:"".concat(ee.a.rightMenu," ").concat(ee.a.menuWrap)},d.a.createElement(A.a.Item,null,d.a.createElement(s.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406"))):d.a.createElement(A.a,{className:"".concat(ee.a.rightMenu," ").concat(ee.a.menuWrap)},d.a.createElement(A.a.Item,{className:ee.a.exit},d.a.createElement("a",{onClick:Object(m.a)(o.a.mark(function hn(){var un;return o.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,Object(U.c)({});case 2:un=gn.sent,(un==null?void 0:un.status)===1&&(at({type:"user/getUserInfo",payload:Object(e.a)({},xt)}),at({type:"user/getNavigationInfo",payload:Object(e.a)({},xt)}),Q("autologin_trustie"),Q("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),I.b.success(un==null?void 0:un.message),u.d.replace("/"));case 4:case"end":return gn.stop()}},hn)}))},"\u9000\u51FA")))};if(Object(xe.p)()){var yt,zt;return d.a.createElement(R.a,{className:"".concat(ee.a.height67),overlay:It,placement:"bottomRight"},d.a.createElement("section",null,d.a.createElement("aside",null,d.a.createElement("div",{className:it.actionTabs.type===1?ee.a.classromediv:""},d.a.createElement("img",{className:"".concat(ee.a.userPic," current ml15"),src:"".concat(K.a===null||K.a===void 0?void 0:K.a.IMG_SERVER,"/images/").concat((yt=qt.userInfo)===null||yt===void 0?void 0:yt.image_url),alt:""}),Object(D.r)()&&d.a.createElement("span",{className:"ml10 font16"},(zt=qt.userInfo)===null||zt===void 0?void 0:zt.username)))))}else return d.a.createElement("div",{style:{color:"#2958D4"},className:"font15 ".concat(St.isIlearning?ee.a.login:"")},d.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){at({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"))},re=Object(u.a)(function(Ce){var he=Ce.homePage,be=Ce.loading,Ee=Ce.user,Ne=Ce.globalSetting,we=Ce.shixunHomeworks;return{homePage:he,user:Ee,globalSetting:Ne,shixunHomeworks:we,loading:be.models.index}})(ae),$=i("+L6B"),Z=i("2/Rp"),fe=i("Cs+z"),me=i.n(fe),Oe=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],He=function(he){var be=he.homePage,Ee=he.user,Ne=he.globalSetting,we=he.loading,Ae=he.dispatch,Ue=he.location,We=he.text,Je=he.shixunHomeworks,$e=he.payload,pt=$e===void 0?{}:$e,Jt=Object(g.a)(he,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),fn=Object(l.useState)("none"),qt=Object(O.a)(fn,2),St=qt[0],Be=qt[1];return Object(l.useEffect)(function(){Je.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Be("flex")},[Je.actionTabs.key]),Object(l.useEffect)(function(){Je.actionTabs.key==="\u9690\u85CF"&&(Be("none"),localStorage.setItem("Noviceguide","0"))},[Je.actionTabs.key]),d.a.createElement("div",{style:{display:St,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},d.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},d.a.createElement("img",{src:me.a,style:{position:"absolute",top:"-32px"}}),d.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Je.actionTabs.text),Je.actionTabs.type===9?d.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},d.a.createElement(Z.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Be("none"),Ae({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):d.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},d.a.createElement(Z.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Ae({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Be("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},Qe=Object(u.a)(function(Ce){var he=Ce.homePage,be=Ce.loading,Ee=Ce.user,Ne=Ce.globalSetting,we=Ce.shixunHomeworks;return{homePage:he,user:Ee,globalSetting:Ne,loading:be.models.index,shixunHomeworks:we}})(He),ot=i("vix7"),st=i.n(ot),ct=n.a.Header,dt=r.a.Search;function Xe(){var Ce,he,be=window.location.pathname,Ee=be.split("/"),Ne={};return Ee[1]=="classrooms"&&Ee.length>3&&!((Ce=Ee[4])!==null&&Ce!==void 0&&Ce.includes("newgold"))&&!((he=Ee[5])!==null&&he!==void 0&&he.includes("newgold"))&&Ee[2]!=="coursesId"&&(Ne.course_id=Ee[2]),Object(e.a)(Object(e.a)({},Ne),{school:1})}var ke=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],lt=function(he){var be,Ee,Ne,we=he.homePage,Ae=he.user,Ue=he.globalSetting,We=he.loading,Je=he.dispatch,$e=he.location,pt=he.shixunHomeworks,Jt=Object(g.a)(he,["homePage","user","globalSetting","loading","dispatch","location","shixunHomeworks"]),fn=Object(h.g)(),qt=Object(l.useState)(!1),St=Object(O.a)(qt,2),Be=St[0],at=St[1],it=Object(l.useState)(""),Me=Object(O.a)(it,2),Ve=Me[0],xt=Me[1],_t=Object(l.useState)(!1),At=Object(O.a)(_t,2),Ot=At[0],Ct=At[1],Bt=Xe(),It=Object(l.useRef)({id:0});Object(l.useEffect)(function(){Je({type:"user/getNavigationInfo",payload:Object(e.a)({},Bt)})},[Ue.name]),Object(l.useEffect)(function(){pt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(ke!=null&&ke.includes($e==null?void 0:$e.pathname)||($e==null?void 0:$e.pathname.indexOf("/classrooms"))===0||Je({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[$e.pathname]),Object(l.useEffect)(function(){pt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(pt.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[pt.actionTabs.key]),Object(l.useEffect)(function(){if(Ue!=null&&Ue.setting){var an,_n,vn=Ue==null||((an=Ue.setting)===null||an===void 0||((_n=an.navbar)===null||_n===void 0))?void 0:_n.filter(function(Qt){return!(Qt!=null&&Qt.hidden)&&!(Object(xe.m)()&&Qt.link==="/paperlibrary")}),Ft=Object(y.a)(vn),Nt;try{for(Ft.s();!(Nt=Ft.n()).done;){var pn=Nt.value;pn.subitem&&(pn.subitem=pn.subitem.filter(function(Qt){return!(Qt!=null&&Qt.hidden)&&!(Object(xe.m)()&&Qt.link==="/paperlibrary")}))}}catch(Qt){Ft.e(Qt)}finally{Ft.f()}var qn=!1;vn==null||vn.map(function(Qt,Vn){var Gn,xr,Sn,Pn="/"+((Gn=$e.pathname)===null||Gn===void 0||((xr=Gn.split("/"))===null||xr===void 0)?void 0:xr[1]);if(Qt.link===Pn&&(xt(Qt==null?void 0:Qt.link),Object(D.X)(Qt==null?void 0:Qt.name),gn(Cn(Vn,{name:Qt==null?void 0:Qt.name,link:Qt==null?void 0:Qt.link},vn)),qn=!0),Qt!=null&&(Sn=Qt.subitem)!==null&&Sn!==void 0&&Sn.length){var Yt;Qt==null||((Yt=Qt.subitem)===null||Yt===void 0)||Yt.map(function(Hr){Hr.link===Pn&&(xt(Hr==null?void 0:Hr.link),Object(D.X)(Hr==null?void 0:Hr.name),gn(Cn(Vn,{name:Hr==null?void 0:Hr.name,link:Hr==null?void 0:Hr.link},vn)),qn=!0)})}}),qn||gn(vn)}},[Ue==null?void 0:Ue.setting,Ae]);var yt=Object(l.useMemo)(function(){var an;if(Ue!=null&&(an=Ue.setting)!==null&&an!==void 0&&an.nav_logo_url){var _n;return"".concat(K.a.IMG_SERVER,"/").concat(Ue==null||((_n=Ue.setting)===null||_n===void 0)?void 0:_n.nav_logo_url)}else return"".concat(K.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Ue==null||((be=Ue.setting)===null||be===void 0)?void 0:be.nav_logo_url]);function zt(an){fn.push("/search?value="+an)}var sn=function(){return Be?d.a.createElement("div",{onBlur:function(){setTimeout(function(){at(!1)},300)}},d.a.createElement(dt,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:zt,autoFocus:!0})):d.a.createElement("span",{style:{color:"#666"},className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){fn.push("/search?value=")}})},hn=Object(l.useState)([]),un=Object(O.a)(hn,2),Kt=un[0],gn=un[1],Rn=function(){var an=Object(m.a)(o.a.mark(function _n(vn,Ft){var Nt,pn,qn,Qt,Vn,Gn,xr,Sn;return o.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(!((vn==null?void 0:vn.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Yt.next=6;break}return Yt.next=3,Object(U.j)();case 3:return qn=Yt.sent,qn!=null&&(pn=qn.data)!==null&&pn!==void 0&&pn.engineer_url?qn!=null&&(Qt=qn.data)!==null&&Qt!==void 0&&(Vn=Qt.engineer_url)!==null&&Vn!==void 0&&Vn.includes("http")?Object(D.S)(qn==null||((Gn=qn.data)===null||Gn===void 0)?void 0:Gn.engineer_url):fn.push(qn==null||((xr=qn.data)===null||xr===void 0)?void 0:xr.engineer_url):(qn==null?void 0:qn.status)!=401&&(Ue!=null&&(Sn=Ue.setting)!==null&&Sn!==void 0&&Sn.authority_qrcode_url?Ct(!0):Ct(!1)),Yt.abrupt("return");case 6:vn!=null&&(Nt=vn.link)!==null&&Nt!==void 0&&Nt.includes("http")?Object(D.S)(vn==null?void 0:vn.link):fn.push(vn==null?void 0:vn.link),(vn==null?void 0:vn.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&Je({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:d.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 Yt.stop()}},_n)}));return function(vn,Ft){return an.apply(this,arguments)}}(),Cn=function(_n,vn,Ft){var Nt=Ft.slice();return Nt[_n]&&(Nt[_n].name=vn.name,Nt[_n].link=vn.link),Nt||[]};return d.a.createElement(n.a,{className:"".concat(Ue.isIlearning?x.a["header-iearning"]:x.a.header,`
`).concat(Ue.showHeaderFixed?x.a.headerFixed:"")},d.a.createElement(ct,{className:"header"},d.a.createElement("section",{className:x.a["edu-menu"]},d.a.createElement(s.a,{to:"/",style:{display:"flex",alignItems:"center"},onClick:function(){Je({type:"shixunHomeworks/setActionTabs",payload:{key:""}})}},d.a.createElement("img",{src:st.a,className:x.a.logo,title:(Ee=Ue.setting)===null||Ee===void 0?void 0:Ee.name})),d.a.createElement(v.a,{style:{marginLeft:"auto"}},d.a.createElement("ul",{className:"".concat(x.a.menu)},Ue.setting&&Kt.map(function(an,_n){var vn,Ft,Nt,pn,qn;return d.a.createElement("li",{key:_n,className:!(an!=null&&(vn=an.subitem)!==null&&vn!==void 0&&vn.length)&&Ve===(an==null?void 0:an.link)||an!=null&&(Ft=an.subitem)!==null&&Ft!==void 0&&Ft.some(function(Qt){return Ve===(Qt==null?void 0:Qt.link)})?x.a.actived:""},d.a.createElement("div",{onClick:function(){return Rn(an,_n)},className:pt.actionTabs.type===4?"".concat(x.a.name," ").concat(x.a.classromediv):x.a.name},d.a.createElement("span",null,function(){var Qt=an==null?void 0:an.name;{var Vn;an==null||((Vn=an.subitem)===null||Vn===void 0)||Vn.map(function(Gn,xr){return Gn.link===$e.pathname&&(Qt=Gn.name),Gn})}return Qt}()),(an==null||((Nt=an.subitem)===null||Nt===void 0)?void 0:Nt.length)>0&&d.a.createElement("i",{className:"iconfont icon-zhankai4"})),(an==null||((pn=an.subitem)===null||pn===void 0)?void 0:pn.length)>0&&d.a.createElement("div",{className:x.a.dropDown},an==null||((qn=an.subitem)===null||qn===void 0)?void 0:qn.map(function(Qt,Vn){return d.a.createElement("div",{className:x.a.subName,key:_n+"-"+Vn,onClick:function(){return Rn(Qt,_n)}},!!Vn&&d.a.createElement("div",{className:x.a.line}),d.a.createElement("aside",{className:"font16 c-black",style:{whiteSpace:"nowrap"}}," ",Qt.name," "),d.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}}," ",Qt.content," "))})))})),d.a.createElement("div",{className:"search-bar",style:{flex:Ue.isIlearning?"initial":"1 0 auto"}},d.a.createElement(d.a.Fragment,null,d.a.createElement(sn,null),Object(xe.p)()&&d.a.createElement(_e,null)),d.a.createElement(re,{payload:Bt})))),d.a.createElement(E.a,{centered:!0,destroyOnClose:!0,visible:Ot,title:"\u63D0\u793A",width:"500px",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Ct(!1)},onCancel:function(){return Ct(!1)}},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},d.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"),d.a.createElement("img",{src:K.a.IMG_SERVER+(Ue==null||((Ne=Ue.setting)===null||Ne===void 0)?void 0:Ne.authority_qrcode_url),width:200,height:200})))),d.a.createElement(Qe,null))},Mt=Y.a=Object(u.a)(function(Ce){var he=Ce.homePage,be=Ce.loading,Ee=Ce.user,Ne=Ce.globalSetting,we=Ce.shixunHomeworks;return{homePage:he,user:Ee,globalSetting:Ne,loading:be.models.index,shixunHomeworks:we}})(lt)},sLOW:function(N,Y,i){"use strict";var M=i("iQDF"),E=i("+eQT"),T=i("Awhp"),v=i("KrTs"),m=i("O3gP"),y=i("lrIw"),O=i("7Kak"),g=i("9yH6"),e=i("sRBo"),f=i("kaz8"),r=i("+L6B"),c=i("2/Rp"),n=i("oBTY"),a=i("miYZ"),o=i("tsqr"),l=i("2qtc"),d=i("kLXV"),h=i("9og8"),s=i("tJVT"),u=i("PpiC"),w=i("WmNS"),x=i.n(w),b=i("q1tI"),P=i.n(b),R=i("9kvl"),C=i("Z0Lh"),S=i.n(C),_=i("9ZNV"),A=i("NLgs"),j=i("wd/R"),I=i.n(j),k=i("L+Ii"),J=i.n(k),G=function(L){if(!L)return L;var z=L.split(":");if(z[1]=="00"||z[1]=="30")return L;var ie=parseInt(z[1]);if(ie<30||ie==60)return[z[0],"30"].join(":");if(ie<60){var ce=[z[0],"00"].join(":"),ue="YYYY-MM-DD HH:mm",xe=I()(ce,ue);return xe.add(1,"hours"),xe.format(ue)}return L},D="YYYY-MM-DD HH:mm",H=function(L){var z,ie,ce,ue,xe,Te,de,ve,_e=L.shixunsDetail,le=L.globalSetting,ee=L.loading,U=L.user,K=L.dispatch,X=Object(u.a)(L,["shixunsDetail","globalSetting","loading","user","dispatch"]),Q=Object(b.useRef)(),te=Object(b.useState)(),ae=Object(s.a)(te,2),re=ae[0],$=ae[1],Z=Object(b.useState)(),fe=Object(s.a)(Z,2),me=fe[0],Oe=fe[1],He=Object(b.useState)([]),Qe=Object(s.a)(He,2),ot=Qe[0],st=Qe[1],ct=Object(b.useState)([]),dt=Object(s.a)(ct,2),Xe=dt[0],ke=dt[1],lt=Object(b.useState)(""),Mt=Object(s.a)(lt,2),Ce=Mt[0],he=Mt[1],be=Object(b.useState)(),Ee=Object(s.a)(be,2),Ne=Ee[0],we=Ee[1],Ae=Object(b.useState)(),Ue=Object(s.a)(Ae,2),We=Ue[0],Je=Ue[1],$e=(z=U.userInfo)===null||z===void 0||((ie=z.shixun)===null||ie===void 0)?void 0:ie.editable;Object(b.useEffect)(function(){var Be,at;Q.current=(Be=location.pathname)===null||Be===void 0||((at=Be.split("/"))===null||at===void 0)?void 0:at[2],pt()},[]),Object(b.useEffect)(function(){var Be,at,it,Me,Ve,xt,_t,At,Ot,Ct;if(!_e.setting)return;$((Be=_e.setting)===null||Be===void 0||((at=Be.shixun)===null||at===void 0)?void 0:at.can_copy),Oe((it=_e.setting)===null||it===void 0||((Me=it.shixun)===null||Me===void 0)?void 0:Me.use_scope),we(!!((Ve=_e.setting)!==null&&Ve!==void 0&&(xt=Ve.shixun)!==null&&xt!==void 0&&xt.opening_time)),Je((_t=_e.setting)===null||_t===void 0||((At=_t.shixun)===null||At===void 0)?void 0:At.opening_time),st((Ot=_e.setting)===null||Ot===void 0||((Ct=Ot.shixun)===null||Ct===void 0)?void 0:Ct.scope_partment)},[_e.setting]);var pt=function(){var Be=Object(h.a)(x.a.mark(function at(it){var Me;return x.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,K({type:"shixunsDetail/getDepartments",payload:{q:it}});case 2:Me=xt.sent,Me&&ke(Me.shools_name||[]);case 4:case"end":return xt.stop()}},at)}));return function(it){return Be.apply(this,arguments)}}(),Jt=function(){var Be=Object(h.a)(x.a.mark(function at(){var it,Me,Ve,xt,_t,At,Ot;return x.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,K({type:"shixunsDetail/getShixunQuote",payload:{id:Q.current}});case 2:if(Bt.t0=Bt.sent,Bt.t0){Bt.next=5;break}Bt.t0={};case 5:Ot=Bt.t0,d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:P.a.createElement("div",{className:"tc font14 ".concat(J.a.modal)},!!((it=Ot.subjects)!==null&&it!==void 0&&it.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Me=Ot.subjects)===null||Me===void 0||((Ve=Me.splice(0,2))===null||Ve===void 0)?void 0:Ve.map(function(It){return"\u300A".concat(It,"\u300B")}),"\u7B49",P.a.createElement("span",{className:J.a.colorOrange},Ot==null?void 0:Ot.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((xt=Ot.courses)!==null&&xt!==void 0&&xt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(_t=Ot.courses)===null||_t===void 0||((At=_t.splice(0,2))===null||At===void 0)?void 0:At.map(function(It){return"\u300A".concat(It,"\u300B")}),"\u7B49",P.a.createElement("span",{className:J.a.colorOrange},Ot==null?void 0:Ot.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),P.a.createElement("br",null)),P.a.createElement("span",{className:"".concat(J.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 It=Object(h.a)(x.a.mark(function zt(){var sn;return x.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,K({type:"shixunsDetail/deleteShixun",payload:{id:Q.current}});case 2:sn=un.sent,sn.status===1&&(o.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return un.stop()}},zt)}));function yt(){return It.apply(this,arguments)}return yt}()});case 7:case"end":return Bt.stop()}},at)}));return function(){return Be.apply(this,arguments)}}(),fn=function(){if(Object(A.b)(K,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},qt=function(at){if(ot.includes(at)){o.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}he(null),st([].concat(Object(n.a)(ot),[at]))},St=function(){var Be=Object(h.a)(x.a.mark(function at(){var it;return x.a.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!(Ne&&!We)){Ve.next=3;break}return o.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Ve.abrupt("return");case 3:if(!(me===1&&!ot.length)){Ve.next=6;break}return o.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Ve.abrupt("return");case 6:return Ve.next=8,K({type:"shixunsDetail/updatePermissionSetting",payload:{id:Q.current,scope_partment:me===0?null:ot,shixun:{can_copy:re,use_scope:me,opening_time:We}}});case 8:it=Ve.sent,it.status!==-1&&(o.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),K({type:"shixunsDetail/getSettingsData",payload:{id:Q.current}}),K({type:"shixunsDetail/getShixunsDetail",payload:{id:Q.current}}));case 10:case"end":return Ve.stop()}},at)}));return function(){return Be.apply(this,arguments)}}();return P.a.createElement("section",{className:J.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(_e==null||((ce=_e.detail)===null||ce===void 0)?void 0:ce.shixun_status)!==2?P.a.createElement(c.a,{danger:!0,onClick:Jt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(c.a,{danger:!0,onClick:fn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),P.a.createElement("div",{className:J.a.labelWrap},P.a.createElement("label",{className:J.a.label},"\u590D\u5236:"),P.a.createElement("div",{className:J.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:re,onChange:function(at){return $(at.target.checked)},disabled:!$e}),P.a.createElement("span",{className:"".concat(J.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((ue=_e.detail)===null||ue===void 0?void 0:ue.shixun_status)>1||((xe=_e.detail)===null||xe===void 0?void 0:xe.public)===2)&&((Te=_e.setting)===null||Te===void 0||((de=Te.shixun)===null||de===void 0)?void 0:de.use_scope)===0&&((ve=_e.detail)===null||ve===void 0?void 0:ve.identity)>2)&&P.a.createElement("div",{className:J.a.labelWrap},P.a.createElement("label",{className:J.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),P.a.createElement("div",{className:J.a.labelContent},P.a.createElement(g.a.Group,{value:me,onChange:function(at){return Oe(at.target.value)},disabled:!$e},P.a.createElement(g.a,{className:J.a.radio,value:0},P.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:J.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement(g.a,{className:J.a.radio,value:1},P.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:J.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),me===1&&P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt10"},P.a.createElement(y.a,{showSearch:!0,className:J.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Ce,onChange:function(at){he(at),pt(at)},disabled:!$e,onSelect:qt,options:Xe==null?void 0:Xe.map(function(Be){return{value:Be}})}),P.a.createElement("span",{className:J.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"},ot==null?void 0:ot.map(function(Be){return $e?P.a.createElement(v.a,{count:"x",className:"mr20 current",onClick:function(){return st(ot.filter(function(it){return it!==Be}))}},P.a.createElement(c.a,{type:"primary",ghost:!0},Be)):P.a.createElement(c.a,{type:"primary",ghost:!0,className:"mr20"},Be)}))))),P.a.createElement("div",{className:J.a.labelWrap},P.a.createElement("label",{className:J.a.label},"\u5F00\u542F\u65F6\u95F4:"),P.a.createElement("div",{className:J.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:Ne,onChange:function(at){return we(at.target.checked)},disabled:!$e}),P.a.createElement("span",{className:"".concat(J.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")),Ne&&P.a.createElement(E.a,{className:"".concat(J.a.dataPicker," mt10"),format:D,locale:S.a,disabled:!$e,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(at){return at&&at<I()().endOf("day").subtract(1,"days")},showTime:{minuteStep:30},value:We&&I()(We,D),onChange:function(at,it){return Je(G(it))}}))),P.a.createElement(_.a,{okText:"\u4FDD\u5B58",hasOkBtn:$e,loading:ee.effects["shixunsDetail/updatePermissionSetting"],onCancel:function(){return R.d.push("/shixuns/".concat(Q.current,"/challenges"))},onOk:St}))};Y.a=Object(R.a)(function(W){var L=W.shixunsDetail,z=W.loading,ie=W.globalSetting,ce=W.user;return{shixunsDetail:L,globalSetting:ie,user:ce,loading:z}})(H)},sR1s:function(N,Y,i){"use strict";i.d(Y,"b",function(){return v}),i.d(Y,"a",function(){return m}),i.d(Y,"c",function(){return y}),i.d(Y,"d",function(){return O});var M=i("U8pU"),E="RC_TABLE_KEY";function T(g){return g==null?[]:Array.isArray(g)?g:[g]}function v(g,e){if(!e&&typeof e!="number")return g;for(var f=T(e),r=g,c=0;c<f.length;c+=1){if(!r)return null;var n=f[c];r=r[n]}return r}function m(g){var e=[],f={};return g.forEach(function(r){for(var c=r||{},n=c.key,a=c.dataIndex,o=n||T(a).join("-")||E;f[o];)o="".concat(o,"_next");f[o]=!0,e.push(o)}),e}function y(){var g={};function e(n,a){a&&Object.keys(a).forEach(function(o){var l=a[o];l&&Object(M.a)(l)==="object"?(n[o]=n[o]||{},e(n[o],l)):n[o]=l})}for(var f=arguments.length,r=new Array(f),c=0;c<f;c++)r[c]=arguments[c];return r.forEach(function(n){e(g,n)}),g}function O(g){return g!=null}},sboe:function(N,Y,i){"use strict";i.d(Y,"a",function(){return T});var M=i("q1tI"),E=i.n(M),T=M.createContext(null)},sckv:function(N,Y,i){N.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},siWv:function(N,Y,i){N.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","mediacy-round":"mediacy-round___3vc8E","mediacy-default":"mediacy-default___2zIGi",default:"default___20Yio"}},t23M:function(N,Y,i){"use strict";var M=i("VTBJ"),E=i("1OyB"),T=i("vuIU"),v=i("Ji7U"),m=i("LK+K"),y=i("q1tI"),O=i.n(y),g=i("m+aA"),e=i("Zm9Q"),f=i("Kwbf"),r=i("c+Xe"),c=i("bdgK"),n="rc-observer-key",a=function(o){Object(v.a)(d,o);var l=Object(m.a)(d);function d(){var h;return Object(E.a)(this,d),h=l.apply(this,arguments),h.resizeObserver=null,h.childNode=null,h.currentElement=null,h.state={width:0,height:0,offsetHeight:0,offsetWidth:0},h.onResize=function(s){var u=h.props.onResize,w=s[0].target,x=w.getBoundingClientRect(),b=x.width,P=x.height,R=w.offsetWidth,C=w.offsetHeight,S=Math.floor(b),_=Math.floor(P);if(h.state.width!==S||h.state.height!==_||h.state.offsetWidth!==R||h.state.offsetHeight!==C){var A={width:S,height:_,offsetWidth:R,offsetHeight:C};h.setState(A),u&&Promise.resolve().then(function(){u(Object(M.a)(Object(M.a)({},A),{},{offsetWidth:R,offsetHeight:C}))})}},h.setChildNode=function(s){h.childNode=s},h}return Object(T.a)(d,[{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),w=u!==this.currentElement;w&&(this.destroyObserver(),this.currentElement=u),!this.resizeObserver&&u&&(this.resizeObserver=new c.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 w=u[0];if(y.isValidElement(w)&&Object(r.c)(w)){var x=w.ref;u[0]=y.cloneElement(w,{ref:Object(r.a)(x,this.setChildNode)})}return u.length===1?u[0]:u.map(function(b,P){return!y.isValidElement(b)||"key"in b&&b.key!==null?b:y.cloneElement(b,{key:"".concat(n,"-").concat(P)})})}}]),d}(y.Component);a.displayName="ResizeObserver",Y.a=a},t9D7:function(N,Y,i){"use strict";i.d(Y,"b",function(){return O}),i.d(Y,"g",function(){return e}),i.d(Y,"d",function(){return f}),i.d(Y,"e",function(){return r}),i.d(Y,"a",function(){return c}),i.d(Y,"f",function(){return o}),i.d(Y,"c",function(){return l});var M=i("Vhoy"),E=i("MI8n"),T=i("pmY6"),v=i("Cg/j"),m=i("ic2d"),y=i("nEHx");const O=Object(v.c)("themeService");var g;(function(d){function h(s){return s&&typeof s=="object"&&typeof s.id=="string"}d.isThemeColor=h})(g||(g={}));function e(d){return{id:d}}var f;(function(d){function h(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||g.isThemeColor(P.color))}d.isThemeIcon=h;const s=new RegExp(`^\\$\\((${M.a.iconNameExpression}(?:${M.a.iconModifierExpression})?)\\)$`);function u(P){const R=s.exec(P);if(!R)return;let[,C]=R;return{id:C}}d.fromString=u;function w(P,R){let C=P.id;const S=C.lastIndexOf("~");return S!==-1&&(C=C.substring(0,S)),R&&(C=`${C}~${R}`),{id:C}}d.modify=w;function x(P,R){var C,S;return P.id===R.id&&((C=P.color)===null||C===void 0?void 0:C.id)===((S=R.color)===null||S===void 0?void 0:S.id)}d.isEqual=x;function b(P,R){return{id:P.id,color:R?e(R):void 0}}d.asThemeIcon=b,d.asClassNameArray=M.a.asClassNameArray,d.asClassName=M.a.asClassName,d.asCSSSelector=M.a.asCSSSelector})(f||(f={}));function r(d){switch(d){case y.a.DARK:return"vs-dark";case y.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const c={ThemingContribution:"base.contributions.theming"};class n{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new E.b}onColorThemeChange(d){return this.themingParticipants.push(d),this.onThemingParticipantAddedEmitter.fire(d),Object(T.i)(()=>{const h=this.themingParticipants.indexOf(d);this.themingParticipants.splice(h,1)})}getThemingParticipants(){return this.themingParticipants}}let a=new n;m.a.add(c.ThemingContribution,a);function o(d){return a.onColorThemeChange(d)}class l extends T.a{constructor(d){super();this.themeService=d,this.theme=d.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(h=>this.onThemeChange(h)))}onThemeChange(d){this.theme=d,this.updateStyles()}updateStyles(){}}},tWlo:function(N,Y){N.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(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("MlIO"),i("1uat"))})(this,function(M){return function(){var E=M,T=E.x64,v=T.Word,m=T.WordArray,y=E.algo,O=y.SHA512,g=y.SHA384=O.extend({_doReset:function(){this._hash=new m.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var e=O._doFinalize.call(this);return e.sigBytes-=16,e}});E.SHA384=O._createHelper(g),E.HmacSHA384=O._createHmacHelper(g)}(),M.SHA384})},uGxW:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("OLod"))})(this,function(M){return M.pad.NoPadding={pad:function(){},unpad:function(){}},M.pad.NoPadding})},uK0f:function(N,Y,i){(function(M,E){N.exports=E()})(this,function(){"use strict";function M(E,T,v){v=v||{},v.childrenKeyName=v.childrenKeyName||"children";var m=E||[],y=[],O=0;do{var g=m.filter(function(e){return T(e,O)})[0];if(!g)break;y.push(g),m=g[v.childrenKeyName]||[],O+=1}while(m.length>0);return y}return M})},ulZh:function(N,Y,i){typeof window!="undefined"&&function(E,T){N.exports=T()}(this,function(){return function(M){var E={};function T(v){if(E[v])return E[v].exports;var m=E[v]={i:v,l:!1,exports:{}};return M[v].call(m.exports,m,m.exports,T),m.l=!0,m.exports}return T.m=M,T.c=E,T.d=function(v,m,y){T.o(v,m)||Object.defineProperty(v,m,{enumerable:!0,get:y})},T.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},T.t=function(v,m){if(m&1&&(v=T(v)),m&8)return v;if(m&4&&typeof v=="object"&&v&&v.__esModule)return v;var y=Object.create(null);if(T.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:v}),m&2&&typeof v!="string")for(var O in v)T.d(y,O,function(g){return v[g]}.bind(null,O));return y},T.n=function(v){var m=v&&v.__esModule?function(){return v.default}:function(){return v};return T.d(m,"a",m),m},T.o=function(v,m){return Object.prototype.hasOwnProperty.call(v,m)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(M,E,T){"use strict";var v=Object.prototype.hasOwnProperty,m="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(m=!1));function O(r,c,n){this.fn=r,this.context=c,this.once=n||!1}function g(r,c,n,a,o){if(typeof n!="function")throw new TypeError("The listener must be a function");var l=new O(n,a||r,o),d=m?m+c:c;return r._events[d]?r._events[d].fn?r._events[d]=[r._events[d],l]:r._events[d].push(l):(r._events[d]=l,r._eventsCount++),r}function e(r,c){--r._eventsCount===0?r._events=new y:delete r._events[c]}function f(){this._events=new y,this._eventsCount=0}f.prototype.eventNames=function(){var c=[],n,a;if(this._eventsCount===0)return c;for(a in n=this._events)v.call(n,a)&&c.push(m?a.slice(1):a);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(n)):c},f.prototype.listeners=function(c){var n=m?m+c:c,a=this._events[n];if(!a)return[];if(a.fn)return[a.fn];for(var o=0,l=a.length,d=new Array(l);o<l;o++)d[o]=a[o].fn;return d},f.prototype.listenerCount=function(c){var n=m?m+c:c,a=this._events[n];return a?a.fn?1:a.length:0},f.prototype.emit=function(c,n,a,o,l,d){var h=m?m+c:c;if(!this._events[h])return!1;var s=this._events[h],u=arguments.length,w,x;if(s.fn){s.once&&this.removeListener(c,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,a),!0;case 4:return s.fn.call(s.context,n,a,o),!0;case 5:return s.fn.call(s.context,n,a,o,l),!0;case 6:return s.fn.call(s.context,n,a,o,l,d),!0}for(x=1,w=new Array(u-1);x<u;x++)w[x-1]=arguments[x];s.fn.apply(s.context,w)}else{var b=s.length,P;for(x=0;x<b;x++){s[x].once&&this.removeListener(c,s[x].fn,void 0,!0);switch(u){case 1:s[x].fn.call(s[x].context);break;case 2:s[x].fn.call(s[x].context,n);break;case 3:s[x].fn.call(s[x].context,n,a);break;case 4:s[x].fn.call(s[x].context,n,a,o);break;default:if(!w)for(P=1,w=new Array(u-1);P<u;P++)w[P-1]=arguments[P];s[x].fn.apply(s[x].context,w)}}}return!0},f.prototype.on=function(c,n,a){return g(this,c,n,a,!1)},f.prototype.once=function(c,n,a){return g(this,c,n,a,!0)},f.prototype.removeListener=function(c,n,a,o){var l=m?m+c:c;if(!this._events[l])return this;if(!n)return e(this,l),this;var d=this._events[l];if(d.fn)d.fn===n&&(!o||d.once)&&(!a||d.context===a)&&e(this,l);else{for(var h=0,s=[],u=d.length;h<u;h++)(d[h].fn!==n||o&&!d[h].once||a&&d[h].context!==a)&&s.push(d[h]);s.length?this._events[l]=s.length===1?s[0]:s:e(this,l)}return this},f.prototype.removeAllListeners=function(c){var n;return c?(n=m?m+c:c,this._events[n]&&e(this,n)):(this._events=new y,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=m,f.EventEmitter=f,M.exports=f},"./node_modules/url-toolkit/src/url-toolkit.js":function(M,E,T){(function(v){var m=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,y=/^([^\/?#]*)([^]*)$/,O=/(?:\/|^)\.(?=\/)/g,g=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(f,r,c){if(c=c||{},f=f.trim(),r=r.trim(),!r){if(!c.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 a=e.parseURL(r);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return c.alwaysNormalize?(a.path=e.normalizePath(a.path),e.buildURLFromParts(a)):r;var o=e.parseURL(f);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&o.path[0]!=="/"){var l=y.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var d={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(d.netLoc=o.netLoc,a.path[0]!=="/"))if(!a.path)d.path=o.path,a.params||(d.params=o.params,a.query||(d.query=o.query));else{var h=o.path,s=h.substring(0,h.lastIndexOf("/")+1)+a.path;d.path=e.normalizePath(s)}return d.path===null&&(d.path=c.alwaysNormalize?e.normalizePath(a.path):a.path),e.buildURLFromParts(d)},parseURL:function(f){var r=m.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(O,"");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,E,T){function v(c){var n={};function a(l){if(n[l])return n[l].exports;var d=n[l]={i:l,l:!1,exports:{}};return c[l].call(d.exports,d,d.exports,a),d.l=!0,d.exports}a.m=c,a.c=n,a.i=function(l){return l},a.d=function(l,d,h){a.o(l,d)||Object.defineProperty(l,d,{configurable:!1,enumerable:!0,get:h})},a.r=function(l){Object.defineProperty(l,"__esModule",{value:!0})},a.n=function(l){var d=l&&l.__esModule?function(){return l.default}:function(){return l};return a.d(d,"a",d),d},a.o=function(l,d){return Object.prototype.hasOwnProperty.call(l,d)},a.p="/",a.oe=function(l){throw console.error(l),l};var o=a(a.s=ENTRY_MODULE);return o.default||o}var m="[\\.|\\-|\\+|\\w|/|@]+",y="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+m+").*?\\)";function O(c){return(c+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function g(c){return!isNaN(1*c)}function e(c,n,a){var o={};o[a]=[];var l=n.toString(),d=l.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!d)return o;for(var h=d[1],s=new RegExp("(\\\\n|\\W)"+O(h)+y,"g"),u;u=s.exec(l);){if(u[3]==="dll-reference")continue;o[a].push(u[3])}for(s=new RegExp("\\("+O(h)+'\\("(dll-reference\\s('+m+'))"\\)\\)'+y,"g");u=s.exec(l);)c[u[2]]||(o[a].push(u[1]),c[u[2]]=T(u[1]).m),o[u[2]]=o[u[2]]||[],o[u[2]].push(u[4]);for(var w=Object.keys(o),x=0;x<w.length;x++)for(var b=0;b<o[w[x]].length;b++)g(o[w[x]][b])&&(o[w[x]][b]=1*o[w[x]][b]);return o}function f(c){var n=Object.keys(c);return n.reduce(function(a,o){return a||c[o].length>0},!1)}function r(c,n){for(var a={main:[n]},o={main:[]},l={main:{}};f(a);)for(var d=Object.keys(a),h=0;h<d.length;h++){var s=d[h],u=a[s],w=u.pop();if(l[s]=l[s]||{},l[s][w]||!c[s][w])continue;l[s][w]=!0,o[s]=o[s]||[],o[s].push(w);for(var x=e(c,c[s][w],s),b=Object.keys(x),P=0;P<b.length;P++)a[b[P]]=a[b[P]]||[],a[b[P]]=a[b[P]].concat(x[b[P]])}return o}M.exports=function(c,n){n=n||{};var a={main:T.m},o=n.all?{main:Object.keys(a.main)}:r(a,c),l="";Object.keys(o).filter(function(w){return w!=="main"}).forEach(function(w){for(var x=0;o[w][x];)x++;o[w].push(x),a[w][x]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",l=l+"var "+w+" = ("+v.toString().replace("ENTRY_MODULE",JSON.stringify(x))+")({"+o[w].map(function(b){return""+JSON.stringify(b)+": "+a[w][b].toString()}).join(",")+`});
`}),l=l+"new (("+v.toString().replace("ENTRY_MODULE",JSON.stringify(c))+")({"+o.main.map(function(w){return""+JSON.stringify(w)+": "+a.main[w].toString()}).join(",")+"}))(self);";var d=new window.Blob([l],{type:"text/javascript"});if(n.bare)return d;var h=window.URL||window.webkitURL||window.mozURL||window.msURL,s=h.createObjectURL(d),u=new window.Worker(s);return u.objectURL=s,u}},"./src/config.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"hlsDefaultConfig",function(){return P}),T.d(E,"mergeConfig",function(){return C}),T.d(E,"enableStreamingMode",function(){return S});var v=T("./src/controller/abr-controller.ts"),m=T("./src/controller/audio-stream-controller.ts"),y=T("./src/controller/audio-track-controller.ts"),O=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"),c=T("./src/controller/fps-controller.ts"),n=T("./src/controller/eme-controller.ts"),a=T("./src/controller/cmcd-controller.ts"),o=T("./src/utils/xhr-loader.ts"),l=T("./src/utils/fetch-loader.ts"),d=T("./src/utils/cues.ts"),h=T("./src/utils/mediakeys-helper.ts"),s=T("./src/utils/logger.ts");function u(){return u=Object.assign||function(_){for(var A=1;A<arguments.length;A++){var j=arguments[A];for(var I in j)Object.prototype.hasOwnProperty.call(j,I)&&(_[I]=j[I])}return _},u.apply(this,arguments)}function w(_,A){var j=Object.keys(_);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(_);A&&(I=I.filter(function(k){return Object.getOwnPropertyDescriptor(_,k).enumerable})),j.push.apply(j,I)}return j}function x(_){for(var A=1;A<arguments.length;A++){var j=arguments[A]!=null?arguments[A]:{};A%2?w(Object(j),!0).forEach(function(I){b(_,I,j[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(j)):w(Object(j)).forEach(function(I){Object.defineProperty(_,I,Object.getOwnPropertyDescriptor(j,I))})}return _}function b(_,A,j){return A in _?Object.defineProperty(_,A,{value:j,enumerable:!0,configurable:!0,writable:!0}):_[A]=j,_}var P=x(x({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:o.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:v.default,bufferController:e.default,capLevelController:r.default,fpsController:c.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:h.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},R()),{},{subtitleStreamController:O.SubtitleStreamController,subtitleTrackController:g.default,timelineController:f.TimelineController,audioStreamController:m.default,audioTrackController:y.default,emeController:n.default,cmcdController:a.default});function R(){return{cueHandler:d.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 C(_,A){if((A.liveSyncDurationCount||A.liveMaxLatencyDurationCount)&&(A.liveSyncDuration||A.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(A.liveMaxLatencyDurationCount!==void 0&&(A.liveSyncDurationCount===void 0||A.liveMaxLatencyDurationCount<=A.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(A.liveMaxLatencyDuration!==void 0&&(A.liveSyncDuration===void 0||A.liveMaxLatencyDuration<=A.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return u({},_,A)}function S(_){var A=_.loader;if(A!==l.default&&A!==o.default)s.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),_.progressive=!1;else{var j=Object(l.fetchSupported)();j&&(_.loader=l.default,_.progressive=!0,_.enableSoftwareAES=!0,s.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/polyfills/number.ts"),m=T("./src/utils/ewma-bandwidth-estimator.ts"),y=T("./src/events.ts"),O=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(a,o){for(var l=0;l<o.length;l++){var d=o[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function c(a,o,l){return o&&r(a.prototype,o),l&&r(a,l),a}var n=function(){function a(l){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=l;var d=l.config;this.bwEstimator=new m.default(d.abrEwmaSlowVoD,d.abrEwmaFastVoD,d.abrEwmaDefaultEstimate),this.registerListeners()}var o=a.prototype;return o.registerListeners=function(){var d=this.hls;d.on(y.Events.FRAG_LOADING,this.onFragLoading,this),d.on(y.Events.FRAG_LOADED,this.onFragLoaded,this),d.on(y.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.on(y.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var d=this.hls;d.off(y.Events.FRAG_LOADING,this.onFragLoading,this),d.off(y.Events.FRAG_LOADED,this.onFragLoaded,this),d.off(y.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.off(y.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},o.onFragLoading=function(d,h){var s=h.frag;if(s.type===e.PlaylistLevelType.MAIN&&!this.timer){var u;this.fragCurrent=s,this.partCurrent=(u=h.part)!=null?u:null,this.timer=self.setInterval(this.onCheck,100)}},o.onLevelLoaded=function(d,h){var s=this.hls.config;h.details.live?this.bwEstimator.update(s.abrEwmaSlowLive,s.abrEwmaFastLive):this.bwEstimator.update(s.abrEwmaSlowVoD,s.abrEwmaFastVoD)},o._abandonRulesCheck=function(){var d=this.fragCurrent,h=this.partCurrent,s=this.hls,u=s.autoLevelEnabled,w=s.config,x=s.media;if(!d||!x)return;var b=h?h.stats:d.stats,P=h?h.duration:d.duration;if(b.aborted){f.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!u||x.paused||!x.playbackRate||!x.readyState)return;var R=performance.now()-b.loading.start,C=Math.abs(x.playbackRate);if(R<=500*P/C)return;var S=s.levels,_=s.minAutoLevel,A=S[d.level],j=b.total||Math.max(b.loaded,Math.round(P*A.maxBitrate/8)),I=Math.max(1,b.bwEstimate?b.bwEstimate/8:b.loaded*1e3/R),k=(j-b.loaded)/I,J=x.currentTime,G=(O.BufferHelper.bufferInfo(x,J,w.maxBufferHole).end-J)/C;if(G>=2*P/C||k<=G)return;var D=Number.POSITIVE_INFINITY,H;for(H=d.level-1;H>_;H--){var W=S[H].maxBitrate;if(D=P*W/(8*.8*I),D<G)break}if(D>=k)return;var L=this.bwEstimator.getEstimate();f.logger.warn("Fragment "+d.sn+(h?" part "+h.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+H+`
Current BW estimate: `+(Object(v.isFiniteNumber)(L)?(L/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+k.toFixed(3)+` s
Estimated load time for the next fragment: `+D.toFixed(3)+` s
Time to underbuffer: `+G.toFixed(3)+" s"),s.nextLoadLevel=H,this.bwEstimator.sample(R,b.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),s.trigger(y.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:h,stats:b})},o.onFragLoaded=function(d,h){var s=h.frag,u=h.part;if(s.type===e.PlaylistLevelType.MAIN&&Object(v.isFiniteNumber)(s.sn)){var w=u?u.stats:s.stats,x=u?u.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var b=this.hls.levels[s.level],P=(b.loaded?b.loaded.bytes:0)+w.loaded,R=(b.loaded?b.loaded.duration:0)+x;b.loaded={bytes:P,duration:R},b.realBitrate=Math.round(8*P/R)}if(s.bitrateTest){var C={stats:w,frag:s,part:u,id:s.type};this.onFragBuffered(y.Events.FRAG_BUFFERED,C),s.bitrateTest=!1}}},o.onFragBuffered=function(d,h){var s=h.frag,u=h.part,w=u?u.stats:s.stats;if(w.aborted)return;if(s.type!==e.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var x=w.parsing.end-w.loading.start;this.bwEstimator.sample(x,w.loaded),w.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=x/1e3:this.bitrateTestDelay=0},o.onError=function(d,h){switch(h.details){case g.ErrorDetails.FRAG_LOAD_ERROR:case g.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},o.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},o.getNextABRAutoLevel=function(){var d=this.fragCurrent,h=this.partCurrent,s=this.hls,u=s.maxAutoLevel,w=s.config,x=s.minAutoLevel,b=s.media,P=h?h.duration:d?d.duration:0,R=b?b.currentTime:0,C=b&&b.playbackRate!==0?Math.abs(b.playbackRate):1,S=this.bwEstimator?this.bwEstimator.getEstimate():w.abrEwmaDefaultEstimate,_=(O.BufferHelper.bufferInfo(b,R,w.maxBufferHole).end-R)/C,A=this.findBestLevel(S,x,u,_,w.abrBandWidthFactor,w.abrBandWidthUpFactor);if(A>=0)return A;f.logger.trace((_?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var j=P?Math.min(P,w.maxStarvationDelay):w.maxStarvationDelay,I=w.abrBandWidthFactor,k=w.abrBandWidthUpFactor;if(!_){var J=this.bitrateTestDelay;if(J){var G=P?Math.min(P,w.maxLoadingDelay):w.maxLoadingDelay;j=G-J,f.logger.trace("bitrate test took "+Math.round(1e3*J)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*j)+" ms"),I=k=1}}return A=this.findBestLevel(S,x,u,_+j,I,k),Math.max(A,0)},o.findBestLevel=function(d,h,s,u,w,x){for(var b,P=this.fragCurrent,R=this.partCurrent,C=this.lastLoadedFragLevel,S=this.hls.levels,_=S[C],A=!!(_!=null&&(b=_.details)!==null&&b!==void 0&&b.live),j=_==null?void 0:_.codecSet,I=R?R.duration:P?P.duration:0,k=s;k>=h;k--){var J=S[k];if(!J||j&&J.codecSet!==j)continue;var G=J.details,D=(R?G==null?void 0:G.partTarget:G==null?void 0:G.averagetargetduration)||I,H=void 0;k<=C?H=w*d:H=x*d;var W=S[k].maxBitrate,L=W*D/H;if(f.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+k+"/"+Math.round(H)+"/"+W+"/"+D+"/"+u+"/"+L),H>W&&(!L||A&&!this.bitrateTestDelay||L<u))return k}return-1},c(a,[{key:"nextAutoLevel",get:function(){var d=this._nextAutoLevel,h=this.bwEstimator;if(d!==-1&&(!h||!h.canEstimate()))return d;var s=this.getNextABRAutoLevel();return d!==-1&&(s=Math.min(d,s)),s},set:function(d){this._nextAutoLevel=d}}]),a}();E.default=n},"./src/controller/audio-stream-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/polyfills/number.ts"),m=T("./src/controller/base-stream-controller.ts"),y=T("./src/events.ts"),O=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"),c=T("./src/demux/chunk-cache.ts"),n=T("./src/demux/transmuxer-interface.ts"),a=T("./src/types/transmuxer.ts"),o=T("./src/controller/fragment-finders.ts"),l=T("./src/utils/discontinuities.ts"),d=T("./src/errors.ts"),h=T("./src/utils/logger.ts");function s(){return s=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var C=arguments[R];for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&(P[S]=C[S])}return P},s.apply(this,arguments)}function u(P,R){P.prototype=Object.create(R.prototype),P.prototype.constructor=P,w(P,R)}function w(P,R){return w=Object.setPrototypeOf||function(S,_){return S.__proto__=_,S},w(P,R)}var x=100,b=function(P){u(R,P);function R(S,_){var A;return A=P.call(this,S,_,"[audio-stream-controller]")||this,A.videoBuffer=null,A.videoTrackCC=-1,A.waitingVideoCC=-1,A.audioSwitch=!1,A.trackId=-1,A.waitingData=null,A.mainDetails=null,A.bufferFlushed=!1,A._registerListeners(),A}var C=R.prototype;return C.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},C._registerListeners=function(){var _=this.hls;_.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(y.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.on(y.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.on(y.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.on(y.Events.ERROR,this.onError,this),_.on(y.Events.BUFFER_RESET,this.onBufferReset,this),_.on(y.Events.BUFFER_CREATED,this.onBufferCreated,this),_.on(y.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.on(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.on(y.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C._unregisterListeners=function(){var _=this.hls;_.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(y.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.off(y.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.off(y.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.off(y.Events.ERROR,this.onError,this),_.off(y.Events.BUFFER_RESET,this.onBufferReset,this),_.off(y.Events.BUFFER_CREATED,this.onBufferCreated,this),_.off(y.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.off(y.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.off(y.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C.onInitPtsFound=function(_,A){var j=A.frag,I=A.id,k=A.initPTS;if(I==="main"){var J=j.cc;this.initPTS[j.cc]=k,this.log("InitPTS for cc: "+J+" found from main: "+k),this.videoTrackCC=J,this.state===m.State.WAITING_INIT_PTS&&this.tick()}},C.startLoad=function(_){if(!this.levels){this.startPosition=_,this.state=m.State.STOPPED;return}var A=this.lastCurrentTime;this.stopLoad(),this.setInterval(x),this.fragLoadError=0,A>0&&_===-1?(this.log("Override startPosition with lastCurrentTime @"+A.toFixed(3)),this.state=m.State.IDLE):(this.loadedmetadata=!1,this.state=m.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()},C.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_TRACK:{var _,A=this.levels,j=this.trackId,I=A==null||((_=A[j])===null||_===void 0)?void 0:_.details;if(I){if(this.waitForCdnTuneIn(I))break;this.state=m.State.WAITING_INIT_PTS}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var k,J=performance.now(),G=this.retryDate;(!G||J>=G||(k=this.media)!==null&&k!==void 0&&k.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=m.State.IDLE);break}case m.State.WAITING_INIT_PTS:{var D=this.waitingData;if(D){var H=D.frag,W=D.part,L=D.cache,z=D.complete;if(this.initPTS[H.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.FRAG_LOADING;var ie=L.flush(),ce={frag:H,part:W,payload:ie,networkDetails:null};this._handleFragmentLoadProgress(ce),z&&P.prototype._handleFragmentLoadComplete.call(this,ce)}else if(this.videoTrackCC!==this.waitingVideoCC)h.logger.log("Waiting fragment cc ("+H.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ue=this.getLoadPosition(),xe=O.BufferHelper.bufferInfo(this.mediaBuffer,ue,this.config.maxBufferHole),Te=Object(o.fragmentWithinToleranceTest)(xe.end,this.config.maxFragLookUpTolerance,H);Te<0&&(h.logger.log("Waiting fragment cc ("+H.cc+") @ "+H.start+" cancelled because another fragment at "+xe.end+" is needed"),this.clearWaitingFragment())}}else this.state=m.State.IDLE}}this.onTickEnd()},C.clearWaitingFragment=function(){var _=this.waitingData;_&&(this.fragmentTracker.removeFragment(_.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.IDLE)},C.onTickEnd=function(){var _=this.media;if(!_||!_.readyState)return;var A=this.mediaBuffer?this.mediaBuffer:_,j=A.buffered;!this.loadedmetadata&&j.length&&(this.loadedmetadata=!0),this.lastCurrentTime=_.currentTime},C.doTickIdle=function(){var _,A,j=this.hls,I=this.levels,k=this.media,J=this.trackId,G=j.config;if(!I||!I[J])return;if(!k&&(this.startFragRequested||!G.startFragPrefetch))return;var D=I[J],H=D.details;if(!H||H.live&&this.levelLastLoaded!==J||this.waitForCdnTuneIn(H)){this.state=m.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,r.ElementaryStreamTypes.AUDIO,f.PlaylistLevelType.AUDIO));var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,f.PlaylistLevelType.AUDIO);if(W===null)return;var L=W.len,z=this.getMaxBufferLength(),ie=this.audioSwitch;if(L>=z&&!ie)return;if(!ie&&this._streamEnded(W,H)){j.trigger(y.Events.BUFFER_EOS,{type:"audio"}),this.state=m.State.ENDED;return}var ce=H.fragments,ue=ce[0].start,xe=W.end;if(ie){var Te=this.getLoadPosition();xe=Te,H.PTSKnown&&Te<ue&&((W.end>ue||W.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),k.currentTime=ue+.05))}var de=this.getNextFragment(xe,H);if(!de){this.bufferFlushed=!0;return}((_=de.decryptdata)===null||_===void 0?void 0:_.keyFormat)==="identity"&&!((A=de.decryptdata)!==null&&A!==void 0&&A.key)?this.loadKey(de,H):this.loadFragment(de,H,xe)},C.getMaxBufferLength=function(){var _=P.prototype.getMaxBufferLength.call(this),A=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,f.PlaylistLevelType.MAIN);return A===null?_:Math.max(_,A.len)},C.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},C.onAudioTracksUpdated=function(_,A){var j=A.audioTracks;this.resetTransmuxer(),this.levels=j.map(function(I){return new e.Level(I)})},C.onAudioTrackSwitching=function(_,A){var j=!!A.url;this.trackId=A.id;var I=this.fragCurrent;I!=null&&I.loader&&I.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),j?this.setInterval(x):this.resetTransmuxer(),j?(this.audioSwitch=!0,this.state=m.State.IDLE):this.state=m.State.STOPPED,this.tick()},C.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},C.onLevelLoaded=function(_,A){this.mainDetails=A.details},C.onAudioTrackLoaded=function(_,A){var j,I=this.levels,k=A.details,J=A.id;if(!I){this.warn("Audio tracks were reset while loading level "+J);return}this.log("Track "+J+" loaded ["+k.startSN+","+k.endSN+"],duration:"+k.totalduration);var G=I[J],D=0;if(k.live||(j=G.details)!==null&&j!==void 0&&j.live){var H=this.mainDetails;if(k.fragments[0]||(k.deltaUpdateFailed=!0),k.deltaUpdateFailed||!H)return;!G.details&&k.hasProgramDateTime&&H.hasProgramDateTime?(Object(l.alignMediaPlaylistByPDT)(k,H),D=k.fragments[0].start):D=this.alignPlaylists(k,G.details)}G.details=k,this.levelLastLoaded=J,!this.startFragRequested&&(this.mainDetails||!k.live)&&this.setStartPosition(G.details,D),this.state===m.State.WAITING_TRACK&&!this.waitForCdnTuneIn(k)&&(this.state=m.State.IDLE),this.tick()},C._handleFragmentLoadProgress=function(_){var A,j=_.frag,I=_.part,k=_.payload,J=this.config,G=this.trackId,D=this.levels;if(!D){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+j.sn+" of level "+j.level+" will not be buffered");return}var H=D[G];console.assert(H,"Audio track is defined on fragment load progress");var W=H.details;console.assert(W,"Audio track details are defined on fragment load progress");var L=J.defaultAudioCodec||H.audioCodec||"mp4a.40.2",z=this.transmuxer;z||(z=this.transmuxer=new n.default(this.hls,f.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ie=this.initPTS[j.cc],ce=(A=j.initSegment)===null||A===void 0?void 0:A.data;if(ie!==void 0){var ue=!1,xe=I?I.index:-1,Te=xe!==-1,de=new a.ChunkMetadata(j.level,j.sn,j.stats.chunkCount,k.byteLength,xe,Te);z.push(k,ce,L,"",j,I,W.totalduration,ue,de,ie)}else{h.logger.log("Unknown video PTS for cc "+j.cc+", waiting for video PTS before demuxing audio frag "+j.sn+" of ["+W.startSN+" ,"+W.endSN+"],track "+G);var ve=this.waitingData=this.waitingData||{frag:j,part:I,cache:new c.default,complete:!1},_e=ve.cache;_e.push(new Uint8Array(k)),this.waitingVideoCC=this.videoTrackCC,this.state=m.State.WAITING_INIT_PTS}},C._handleFragmentLoadComplete=function(_){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,_)},C.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},C.onBufferCreated=function(_,A){var j=A.tracks.audio;j&&(this.mediaBuffer=j.buffer),A.tracks.video&&(this.videoBuffer=A.tracks.video.buffer)},C.onFragBuffered=function(_,A){var j=A.frag,I=A.part;if(j.type!==f.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(j)){this.warn("Fragment "+j.sn+(I?" p: "+I.index:"")+" of level "+j.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}j.sn!=="initSegment"&&(this.fragPrevious=j,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(y.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(j,I)},C.onError=function(_,A){switch(A.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.PlaylistLevelType.AUDIO,A);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==m.State.ERROR&&this.state!==m.State.STOPPED&&(this.state=A.fatal?m.State.ERROR:m.State.IDLE,this.warn(A.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(A.parent==="audio"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var j=!0,I=this.getFwdBufferInfo(this.mediaBuffer,f.PlaylistLevelType.AUDIO);I&&I.len>.5&&(j=!this.reduceMaxBufferLength(I.len)),j&&(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}},C.onBufferFlushed=function(_,A){var j=A.type;j===r.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},C._handleTransmuxComplete=function(_){var A,j="audio",I=this.hls,k=_.remuxResult,J=_.chunkMeta,G=this.getCurrentContext(J);if(!G){this.warn("The loading context changed while buffering fragment "+J.sn+" of level "+J.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(J.level);return}var D=G.frag,H=G.part,W=k.audio,L=k.text,z=k.id3,ie=k.initSegment;if(this.fragContextChanged(D))return;if(this.state=m.State.PARSING,this.audioSwitch&&W&&this.completeAudioSwitch(),ie!=null&&ie.tracks&&(this._bufferInitSegment(ie.tracks,D,J),I.trigger(y.Events.FRAG_PARSING_INIT_SEGMENT,{frag:D,id:j,tracks:ie.tracks})),W){var ce=W.startPTS,ue=W.endPTS,xe=W.startDTS,Te=W.endDTS;H&&(H.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:ce,endPTS:ue,startDTS:xe,endDTS:Te}),D.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,ce,ue,xe,Te),this.bufferFragmentData(W,D,H,J)}if(z!=null&&(A=z.samples)!==null&&A!==void 0&&A.length){var de=s({frag:D,id:j},z);I.trigger(y.Events.FRAG_PARSING_METADATA,de)}if(L){var ve=s({frag:D,id:j},L);I.trigger(y.Events.FRAG_PARSING_USERDATA,ve)}},C._bufferInitSegment=function(_,A,j){if(this.state!==m.State.PARSING)return;_.video&&delete _.video;var I=_.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(y.Events.BUFFER_CODECS,_);var k=I.initSegment;if(k!=null&&k.byteLength){var J={type:"audio",frag:A,part:null,chunkMeta:j,parent:A.type,data:k};this.hls.trigger(y.Events.BUFFER_APPENDING,J)}this.tick()},C.loadFragment=function(_,A,j){var I=this.fragmentTracker.getState(_);this.fragCurrent=_,(this.audioSwitch||I===g.FragmentState.NOT_LOADED||I===g.FragmentState.PARTIAL)&&(_.sn==="initSegment"?this._loadInitSegment(_):A.live&&!Object(v.isFiniteNumber)(this.initPTS[_.cc])?(this.log("Waiting for video PTS in continuity counter "+_.cc+" of live stream before loading audio fragment "+_.sn+" of level "+this.trackId),this.state=m.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,_,A,j)))},C.completeAudioSwitch=function(){var _=this.hls,A=this.media,j=this.trackId;A&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,_.trigger(y.Events.AUDIO_TRACK_SWITCHED,{id:j})},R}(m.default);E.default=b},"./src/controller/audio-track-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/events.ts"),m=T("./src/errors.ts"),y=T("./src/controller/base-playlist-controller.ts"),O=T("./src/types/loader.ts");function g(n,a){for(var o=0;o<a.length;o++){var l=a[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}function e(n,a,o){return a&&g(n.prototype,a),o&&g(n,o),n}function f(n,a){n.prototype=Object.create(a.prototype),n.prototype.constructor=n,r(n,a)}function r(n,a){return r=Object.setPrototypeOf||function(l,d){return l.__proto__=d,l},r(n,a)}var c=function(n){f(a,n);function a(l){var d;return d=n.call(this,l,"[audio-track-controller]")||this,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.trackName="",d.selectDefaultTrack=!0,d.registerListeners(),d}var o=a.prototype;return o.registerListeners=function(){var d=this.hls;d.on(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(v.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(v.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.on(v.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var d=this.hls;d.off(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(v.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(v.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.off(v.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,n.prototype.destroy.call(this)},o.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},o.onManifestParsed=function(d,h){this.tracks=h.audioTracks||[]},o.onAudioTrackLoaded=function(d,h){var s=h.id,u=h.details,w=this.tracksInGroup[s];if(!w){this.warn("Invalid audio track id "+s);return}var x=w.details;w.details=h.details,this.log("audioTrack "+s+" loaded ["+u.startSN+"-"+u.endSN+"]"),s===this.trackId&&(this.retryCount=0,this.playlistLoaded(s,h,x))},o.onLevelLoading=function(d,h){this.switchLevel(h.level)},o.onLevelSwitching=function(d,h){this.switchLevel(h.level)},o.switchLevel=function(d){var h=this.hls.levels[d];if(!(h!=null&&h.audioGroupIds))return;var s=h.audioGroupIds[h.urlId];if(this.groupId!==s){this.groupId=s;var u=this.tracks.filter(function(x){return!s||x.groupId===s});this.selectDefaultTrack&&!u.some(function(x){return x.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=u;var w={audioTracks:u};this.log("Updating audio tracks, "+u.length+' track(s) found in "'+s+'" group-id'),this.hls.trigger(v.Events.AUDIO_TRACKS_UPDATED,w),this.selectInitialTrack()}},o.onError=function(d,h){if(n.prototype.onError.call(this,d,h),h.fatal||!h.context)return;h.context.type===O.PlaylistContextType.AUDIO_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},o.setAudioTrack=function(d){var h=this.tracksInGroup;if(d<0||d>=h.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=h[this.trackId];this.log("Now switching to audio-track index "+d);var u=h[d],w=u.id,x=u.groupId,b=x===void 0?"":x,P=u.name,R=u.type,C=u.url;if(this.trackId=d,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(v.Events.AUDIO_TRACK_SWITCHING,{id:w,groupId:b,name:P,type:R,url:C}),u.details&&!u.details.live)return;var S=this.switchParams(u.url,s==null?void 0:s.details);this.loadPlaylist(S)},o.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var h=this.trackName,s=this.findTrackId(h)||this.findTrackId();s!==-1?this.setAudioTrack(s):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},o.findTrackId=function(d){for(var h=this.tracksInGroup,s=0;s<h.length;s++){var u=h[s];if((!this.selectDefaultTrack||u.default)&&(!d||d===u.name))return u.id}return-1},o.loadPlaylist=function(d){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var s=h.id,u=h.groupId,w=h.url;if(d)try{w=d.addDirectives(w)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("loading audio-track playlist for id: "+s),this.clearTimer(),this.hls.trigger(v.Events.AUDIO_TRACK_LOADING,{url:w,id:s,groupId:u,deliveryDirectives:d||null})}},e(a,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1,this.setAudioTrack(d)}}]),a}(y.default);E.default=c},"./src/controller/base-playlist-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return e});var v=T("./src/polyfills/number.ts"),m=T("./src/types/level.ts"),y=T("./src/controller/level-helper.ts"),O=T("./src/utils/logger.ts"),g=T("./src/errors.ts"),e=function(){function f(c,n){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=O.logger.log.bind(O.logger,n+":"),this.warn=O.logger.warn.bind(O.logger,n+":"),this.hls=c}var r=f.prototype;return r.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},r.onError=function(n,a){a.fatal&&a.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,a){var o=a==null?void 0:a.renditionReports;if(o)for(var l=0;l<o.length;l++){var d=o[l],h=""+d.URI;if(h===n.substr(-h.length)){var s=parseInt(d["LAST-MSN"]),u=parseInt(d["LAST-PART"]);if(a&&this.hls.config.lowLatencyMode){var w=Math.min(a.age-a.partTarget,a.targetduration);u!==void 0&&w>a.partTarget&&(u+=1)}if(Object(v.isFiniteNumber)(s))return new m.HlsUrlParameters(s,Object(v.isFiniteNumber)(u)?u:void 0,m.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,a,o){var l=this,d=a.details,h=a.stats,s=h.loading.end?Math.max(0,self.performance.now()-h.loading.end):0;if(d.advancedDateTime=Date.now()-s,d.live||o!=null&&o.live){if(d.reloaded(o),o&&this.log("live playlist "+n+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),o&&d.fragments.length>0&&Object(y.mergeDetails)(o,d),!this.canLoad||!d.live)return;var u,w=void 0,x=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var b=this.hls.config.lowLatencyMode,P=d.lastPartSn,R=d.endSN,C=d.lastPartIndex,S=C!==-1,_=P===R,A=b?0:C;S?(w=_?R+1:P,x=_?A:C+1):w=R+1;var j=d.age,I=j+d.ageHeader,k=Math.min(I-d.partTarget,d.targetduration*1.5);if(k>0){if(o&&k>o.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+o.tuneInGoal+" to: "+k+" with playlist age: "+d.age),k=0;else{var J=Math.floor(k/d.targetduration);if(w+=J,x!==void 0){var G=Math.round(k%d.targetduration/d.partTarget);x+=G}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+j.toFixed(2)+"s goal: "+k+" skip sn "+J+" to part "+x)}d.tuneInGoal=k}if(u=this.getDeliveryDirectives(d,a.deliveryDirectives,w,x),b||!_){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(d,a.deliveryDirectives,w,x);var D=Object(y.computeReloadInterval)(d,h);w!==void 0&&d.canBlockReload&&(D-=d.partTarget||1),this.log("reload live playlist "+n+" in "+Math.round(D)+" ms"),this.timer=self.setTimeout(function(){return l.loadPlaylist(u)},D)}else this.clearTimer()},r.getDeliveryDirectives=function(n,a,o,l){var d=Object(m.getSkipValue)(n,o);return a!=null&&a.skip&&n.deltaUpdateFailed&&(o=a.msn,l=a.part,d=m.HlsSkip.No),new m.HlsUrlParameters(o,l,d)},r.retryLoadingOrFail=function(n){var a=this,o=this.hls.config,l=this.retryCount<o.levelLoadingMaxRetry;if(l){var d;if(this.retryCount++,n.details.indexOf("LoadTimeOut")>-1&&(d=n.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+n.details+'"'),this.loadPlaylist();else{var h=Math.min(Math.pow(2,this.retryCount)*o.levelLoadingRetryDelay,o.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return a.loadPlaylist()},h),this.warn("retry playlist loading #"+this.retryCount+" in "+h+' ms after "'+n.details+'"')}}else this.warn('cannot recover from error "'+n.details+'"'),this.clearTimer(),n.fatal=!0;return l},f}()},"./src/controller/base-stream-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"State",function(){return R}),T.d(E,"default",function(){return C});var v=T("./src/polyfills/number.ts"),m=T("./src/task-loop.ts"),y=T("./src/controller/fragment-tracker.ts"),O=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"),c=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/discontinuities.ts"),a=T("./src/controller/fragment-finders.ts"),o=T("./src/controller/level-helper.ts"),l=T("./src/loader/fragment-loader.ts"),d=T("./src/crypt/decrypter.ts"),h=T("./src/utils/time-ranges.ts"),s=T("./src/types/loader.ts");function u(S,_){for(var A=0;A<_.length;A++){var j=_[A];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(S,j.key,j)}}function w(S,_,A){return _&&u(S.prototype,_),A&&u(S,A),S}function x(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function b(S,_){S.prototype=Object.create(_.prototype),S.prototype.constructor=S,P(S,_)}function P(S,_){return P=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},P(S,_)}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"},C=function(S){b(_,S);function _(j,I,k){var J;return J=S.call(this)||this,J.hls=void 0,J.fragPrevious=null,J.fragCurrent=null,J.fragmentTracker=void 0,J.transmuxer=null,J._state=R.STOPPED,J.media=void 0,J.mediaBuffer=void 0,J.config=void 0,J.bitrateTest=!1,J.lastCurrentTime=0,J.nextLoadPosition=0,J.startPosition=0,J.loadedmetadata=!1,J.fragLoadError=0,J.retryDate=0,J.levels=null,J.fragmentLoader=void 0,J.levelLastLoaded=null,J.startFragRequested=!1,J.decrypter=void 0,J.initPTS=[],J.onvseeking=null,J.onvended=null,J.logPrefix="",J.log=void 0,J.warn=void 0,J.logPrefix=k,J.log=g.logger.log.bind(g.logger,k+":"),J.warn=g.logger.warn.bind(g.logger,k+":"),J.hls=j,J.fragmentLoader=new l.default(j.config),J.fragmentTracker=I,J.config=j.config,J.decrypter=new d.default(j,j.config),j.on(e.Events.KEY_LOADED,J.onKeyLoaded,x(J)),J}var A=_.prototype;return A.doTick=function(){this.onTickEnd()},A.onTickEnd=function(){},A.startLoad=function(I){},A.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},A._streamEnded=function(I,k){var J=this.fragCurrent,G=this.fragmentTracker;if(!k.live&&J&&J.sn===k.endSN&&!I.nextStart){var D=G.getState(J);return D===y.FragmentState.PARTIAL||D===y.FragmentState.OK}return!1},A.onMediaAttached=function(I,k){var J=this.media=this.mediaBuffer=k.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),J.addEventListener("seeking",this.onvseeking),J.addEventListener("ended",this.onvended);var G=this.config;this.levels&&G.autoStartLoad&&this.state===R.STOPPED&&this.startLoad(G.startPosition)},A.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()},A.onMediaSeeking=function(){var I=this.config,k=this.fragCurrent,J=this.media,G=this.mediaBuffer,D=this.state,H=J?J.currentTime:0,W=O.BufferHelper.bufferInfo(G||J,H,I.maxBufferHole);if(this.log("media seeking to "+(Object(v.isFiniteNumber)(H)?H.toFixed(3):H)+", state: "+D),D===R.ENDED)this.resetLoadingState();else if(k&&!W.len){var L=I.maxFragLookUpTolerance,z=k.start-L,ie=k.start+k.duration+L,ce=H>ie;(H<z||ce)&&(ce&&k.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),k.loader.abort()),this.resetLoadingState())}J&&(this.lastCurrentTime=H),!this.loadedmetadata&&!W.len&&(this.nextLoadPosition=this.startPosition=H),this.tickImmediate()},A.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},A.onKeyLoaded=function(I,k){if(this.state!==R.KEY_LOADING||k.frag!==this.fragCurrent||!this.levels)return;this.state=R.IDLE;var J=this.levels[k.frag.level].details;J&&this.loadFragment(k.frag,J,k.frag.start)},A.onHandlerDestroying=function(){this.stopLoad(),S.prototype.onHandlerDestroying.call(this)},A.onHandlerDestroyed=function(){this.state=R.STOPPED,this.hls.off(e.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,S.prototype.onHandlerDestroyed.call(this)},A.loadKey=function(I,k){this.log("Loading key for "+I.sn+" of ["+k.startSN+"-"+k.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})},A.loadFragment=function(I,k,J){this._loadFragForPlayback(I,k,J)},A._loadFragForPlayback=function(I,k,J){var G=this,D=function(W){if(G.fragContextChanged(I)){G.warn("Fragment "+I.sn+(W.part?" p: "+W.part.index:"")+" of level "+I.level+" was dropped during download."),G.fragmentTracker.removeFragment(I);return}I.stats.chunkCount++,G._handleFragmentLoadProgress(W)};this._doFragLoad(I,k,J,D).then(function(H){if(!H)return;G.fragLoadError=0;var W=G.state;if(G.fragContextChanged(I)){(W===R.FRAG_LOADING||W===R.BACKTRACKING||!G.fragCurrent&&W===R.PARSING)&&(G.fragmentTracker.removeFragment(I),G.state=R.IDLE);return}if("payload"in H&&(G.log("Loaded fragment "+I.sn+" of level "+I.level),G.hls.trigger(e.Events.FRAG_LOADED,H),G.state===R.BACKTRACKING)){G.fragmentTracker.backtrack(I,H),G.resetFragmentLoading(I);return}G._handleFragmentLoadComplete(H)}).catch(function(H){G.warn(H),G.resetFragmentLoading(I)})},A.flushMainBuffer=function(I,k,J){if(J===void 0&&(J=null),!(I-k))return;var G={startOffset:I,endOffset:k,type:J};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,G)},A._loadInitSegment=function(I){var k=this;this._doFragLoad(I).then(function(J){if(!J||k.fragContextChanged(I)||!k.levels)throw new Error("init load aborted");return J}).then(function(J){var G=k.hls,D=J.payload,H=I.decryptdata;if(D&&D.byteLength>0&&H&&H.key&&H.iv&&H.method==="AES-128"){var W=self.performance.now();return k.decrypter.webCryptoDecrypt(new Uint8Array(D),H.key.buffer,H.iv.buffer).then(function(L){var z=self.performance.now();return G.trigger(e.Events.FRAG_DECRYPTED,{frag:I,payload:L,stats:{tstart:W,tdecrypt:z}}),J.payload=L,J})}return J}).then(function(J){var G=k.fragCurrent,D=k.hls,H=k.levels;if(!H)throw new Error("init load aborted, missing levels");var W=H[I.level].details;console.assert(W,"Level details are defined when init segment is loaded");var L=I.stats;k.state=R.IDLE,k.fragLoadError=0,I.data=new Uint8Array(J.payload),L.parsing.start=L.buffering.start=self.performance.now(),L.parsing.end=L.buffering.end=self.performance.now(),J.frag===G&&D.trigger(e.Events.FRAG_BUFFERED,{stats:L,frag:G,part:null,id:I.type}),k.tick()}).catch(function(J){k.warn(J),k.resetFragmentLoading(I)})},A.fragContextChanged=function(I){var k=this.fragCurrent;return!I||!k||I.level!==k.level||I.sn!==k.sn||I.urlId!==k.urlId},A.fragBufferedComplete=function(I,k){var J=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+I.type+" sn: "+I.sn+(k?" part: "+k.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+I.level+" "+h.default.toString(O.BufferHelper.getBuffered(J))),this.state=R.IDLE,this.tick()},A._handleFragmentLoadComplete=function(I){var k=this.transmuxer;if(!k)return;var J=I.frag,G=I.part,D=I.partsLoaded,H=!D||D.length===0||D.some(function(L){return!L}),W=new r.ChunkMetadata(J.level,J.sn,J.stats.chunkCount+1,0,G?G.index:-1,!H);k.flush(W)},A._handleFragmentLoadProgress=function(I){},A._doFragLoad=function(I,k,J,G){var D=this;if(J===void 0&&(J=null),!this.levels)throw new Error("frag load aborted, missing levels");if(J=Math.max(I.start,J||0),this.config.lowLatencyMode&&k){var H=k.partList;if(H&&G){J>I.end&&k.fragmentHint&&(I=k.fragmentHint);var W=this.getNextPart(H,I,J);if(W>-1){var L=H[W];return this.log("Loading part sn: "+I.sn+" p: "+L.index+" cc: "+I.cc+" of playlist ["+k.startSN+"-"+k.endSN+"] parts [0-"+W+"-"+(H.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(J.toFixed(3))),this.nextLoadPosition=L.start+L.duration,this.state=R.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:I,part:H[W],targetBufferTime:J}),this.doFragPartsLoad(I,H,W,G).catch(function(z){return D.handleFragLoadError(z)})}else if(!I.url||this.loadedEndOfParts(H,J))return Promise.resolve(null)}}return this.log("Loading fragment "+I.sn+" cc: "+I.cc+" "+(k?"of ["+k.startSN+"-"+k.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+I.level+", target: "+parseFloat(J.toFixed(3))),Object(v.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:J}),this.fragmentLoader.load(I,G).catch(function(z){return D.handleFragLoadError(z)})},A.doFragPartsLoad=function(I,k,J,G){var D=this;return new Promise(function(H,W){var L=[],z=function ie(ce){var ue=k[ce];D.fragmentLoader.loadPart(I,ue,G).then(function(xe){L[ue.index]=xe;var Te=xe.part;D.hls.trigger(e.Events.FRAG_LOADED,xe);var de=k[ce+1];if(de&&de.fragment===I)ie(ce+1);else return H({frag:I,part:Te,partsLoaded:L})}).catch(W)};z(J)})},A.handleFragLoadError=function(I){var k=I.data;return k&&k.details===f.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(k.frag,k.part):this.hls.trigger(e.Events.ERROR,k),null},A._handleTransmuxerFlush=function(I){var k=this.getCurrentContext(I);if(!k||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var J=k.frag,G=k.part,D=k.level,H=self.performance.now();J.stats.parsing.end=H,G&&(G.stats.parsing.end=H),this.updateLevelTiming(J,G,D,I.partial)},A.getCurrentContext=function(I){var k=this.levels,J=I.level,G=I.sn,D=I.part;if(!k||!k[J])return this.warn("Levels object was unset while buffering fragment "+G+" of level "+J+". The current chunk will not be buffered."),null;var H=k[J],W=D>-1?Object(o.getPartWith)(H,G,D):null,L=W?W.fragment:Object(o.getFragmentWithSN)(H,G,this.fragCurrent);return L?{frag:L,part:W,level:H}:null},A.bufferFragmentData=function(I,k,J,G){if(!I||this.state!==R.PARSING)return;var D=I.data1,H=I.data2,W=D;if(D&&H&&(W=Object(c.appendUint8Array)(D,H)),!W||!W.length)return;var L={type:I.type,frag:k,part:J,chunkMeta:G,parent:k.type,data:W};this.hls.trigger(e.Events.BUFFER_APPENDING,L),I.dropped&&I.independent&&!J&&this.flushBufferGap(k)},A.flushBufferGap=function(I){var k=this.media;if(!k)return;if(!O.BufferHelper.isBuffered(k,k.currentTime)){this.flushMainBuffer(0,I.start);return}var J=k.currentTime,G=O.BufferHelper.bufferInfo(k,J,0),D=I.duration,H=Math.min(this.config.maxFragLookUpTolerance*2,D*.25),W=Math.max(Math.min(I.start-H,G.end-H),J+H);I.start-W>H&&this.flushMainBuffer(W,I.start)},A.getFwdBufferInfo=function(I,k){var J=this.config,G=this.getLoadPosition();if(!Object(v.isFiniteNumber)(G))return null;var D=O.BufferHelper.bufferInfo(I,G,J.maxBufferHole);if(D.len===0&&D.nextStart!==void 0){var H=this.fragmentTracker.getBufferedFrag(G,k);if(H&&D.nextStart<H.end)return O.BufferHelper.bufferInfo(I,G,Math.max(D.nextStart,J.maxBufferHole))}return D},A.getMaxBufferLength=function(I){var k=this.config,J;return I?J=Math.max(8*k.maxBufferSize/I,k.maxBufferLength):J=k.maxBufferLength,Math.min(J,k.maxMaxBufferLength)},A.reduceMaxBufferLength=function(I){var k=this.config,J=I||k.maxBufferLength;return k.maxMaxBufferLength>=J?(k.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+k.maxMaxBufferLength+"s"),!0):!1},A.getNextFragment=function(I,k){var J,G,D=k.fragments,H=D.length;if(!H)return null;var W=this.config,L=D[0].start,z;if(k.live){var ie=W.initialLiveManifestSize;if(H<ie)return this.warn("Not enough fragments to start playback (have: "+H+", need: "+ie+")"),null;!k.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(z=this.getInitialLiveFragment(k,D),this.startPosition=z?this.hls.liveSyncPosition||z.start:I)}else I<=L&&(z=D[0]);if(!z){var ce=W.lowLatencyMode?k.partEnd:k.fragmentEnd;z=this.getFragmentAtPosition(I,ce,k)}return(J=z)!==null&&J!==void 0&&J.initSegment&&!((G=z)!==null&&G!==void 0&&G.initSegment.data)&&!this.bitrateTest&&(z=z.initSegment),z},A.getNextPart=function(I,k,J){for(var G=-1,D=!1,H=!0,W=0,L=I.length;W<L;W++){var z=I[W];if(H=H&&!z.independent,G>-1&&J<z.start)break;var ie=z.loaded;!ie&&(D||z.independent||H)&&z.fragment===k&&(G=W),D=ie}return G},A.loadedEndOfParts=function(I,k){var J=I[I.length-1];return J&&k>J.start&&J.loaded},A.getInitialLiveFragment=function(I,k){var J=this.fragPrevious,G=null;if(J){if(I.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+J.programDateTime),G=Object(a.findFragmentByPDT)(k,J.endProgramDateTime,this.config.maxFragLookUpTolerance)),!G){var D=J.sn+1;if(D>=I.startSN&&D<=I.endSN){var H=k[D-I.startSN];J.cc===H.cc&&(G=H,this.log("Live playlist, switching playlist, load frag with next SN: "+G.sn))}G||(G=Object(a.findFragWithCC)(k,J.cc),G&&this.log("Live playlist, switching playlist, load frag with same CC: "+G.sn))}}else{var W=this.hls.liveSyncPosition;W!==null&&(G=this.getFragmentAtPosition(W,this.bitrateTest?I.fragmentEnd:I.edge,I))}return G},A.getFragmentAtPosition=function(I,k,J){var G=this.config,D=this.fragPrevious,H=J.fragments,W=J.endSN,L=J.fragmentHint,z=G.maxFragLookUpTolerance,ie=!!(G.lowLatencyMode&&J.partList&&L);ie&&L&&!this.bitrateTest&&(H=H.concat(L),W=L.sn);var ce;if(I<k){var ue=I>k-z?0:z;ce=Object(a.findFragmentByPTS)(D,H,I,ue)}else ce=H[H.length-1];if(ce){var xe=ce.sn-J.startSN,Te=D&&ce.level===D.level,de=H[xe+1],ve=this.fragmentTracker.getState(ce);if(ve===y.FragmentState.BACKTRACKED){ce=null;for(var _e=xe;H[_e]&&this.fragmentTracker.getState(H[_e])===y.FragmentState.BACKTRACKED;)D?ce=H[_e--]:ce=H[--_e];ce||(ce=de)}else D&&ce.sn===D.sn&&!ie&&(Te&&(ce.sn<W&&this.fragmentTracker.getState(de)!==y.FragmentState.OK?(this.log("SN "+ce.sn+" just loaded, load next one: "+de.sn),ce=de):ce=null))}return ce},A.synchronizeToLiveEdge=function(I){var k=this.config,J=this.media;if(!J)return;var G=this.hls.liveSyncPosition,D=J.currentTime,H=I.fragments[0].start,W=I.edge,L=D>=H-k.maxFragLookUpTolerance&&D<=W;if(G!==null&&J.duration>G&&(D<G||!L)){var z=k.liveMaxLatencyDuration!==void 0?k.liveMaxLatencyDuration:k.liveMaxLatencyDurationCount*I.targetduration;(!L&&J.readyState<4||D<W-z)&&(this.loadedmetadata||(this.nextLoadPosition=G),J.readyState&&(this.warn("Playback: "+D.toFixed(3)+" is located too far from the end of live sliding playlist: "+W+", reset currentTime to : "+G.toFixed(3)),J.currentTime=G))}},A.alignPlaylists=function(I,k){var J=this.levels,G=this.levelLastLoaded,D=this.fragPrevious,H=G!==null?J[G]:null,W=I.fragments.length;if(!W)return this.warn("No fragments in live playlist"),0;var L=I.fragments[0].start,z=!k,ie=I.alignedSliding&&Object(v.isFiniteNumber)(L);if(z||!ie&&!L){Object(n.alignStream)(D,H,I);var ce=I.fragments[0].start;return this.log("Live playlist sliding: "+ce.toFixed(2)+" start-sn: "+(k?k.startSN:"na")+"->"+I.startSN+" prev-sn: "+(D?D.sn:"na")+" fragments: "+W),ce}return L},A.waitForCdnTuneIn=function(I){var k=3;return I.live&&I.canBlockReload&&I.tuneInGoal>Math.max(I.partHoldBack,I.partTarget*k)},A.setStartPosition=function(I,k){var J=this.startPosition;if(J<k&&(J=-1),J===-1||this.lastCurrentTime===-1){var G=I.startTimeOffset;Object(v.isFiniteNumber)(G)?(J=k+G,G<0&&(J+=I.totalduration),J=Math.min(Math.max(k,J),k+I.totalduration),this.log("Start time offset "+G+" found in playlist, adjust startPosition to "+J),this.startPosition=J):I.live?J=this.hls.liveSyncPosition||k:this.startPosition=J=0,this.lastCurrentTime=J}this.nextLoadPosition=J},A.getLoadPosition=function(){var I=this.media,k=0;return this.loadedmetadata&&I?k=I.currentTime:this.nextLoadPosition&&(k=this.nextLoadPosition),k},A.handleFragLoadAborted=function(I,k){this.transmuxer&&I.sn!=="initSegment"&&I.stats.aborted&&(this.warn("Fragment "+I.sn+(k?" part"+k.index:"")+" of level "+I.level+" was aborted"),this.resetFragmentLoading(I))},A.resetFragmentLoading=function(I){(!this.fragCurrent||!this.fragContextChanged(I))&&(this.state=R.IDLE)},A.onFragmentOrKeyLoadError=function(I,k){if(k.fatal)return;var J=k.frag;if(!J||J.type!==I)return;var G=this.fragCurrent;console.assert(G&&J.sn===G.sn&&J.level===G.level&&J.urlId===G.urlId,"Frag load error must match current frag to retry");var D=this.config;if(this.fragLoadError+1<=D.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(J.level))return;var H=Math.min(Math.pow(2,this.fragLoadError)*D.fragLoadingRetryDelay,D.fragLoadingMaxRetryTimeout);this.warn("Fragment "+J.sn+" of "+I+" "+J.level+" failed to load, retrying in "+H+"ms"),this.retryDate=self.performance.now()+H,this.fragLoadError++,this.state=R.FRAG_LOADING_WAITING_RETRY}else k.levelRetry?(I===s.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=R.IDLE):(g.logger.error(k.details+" reaches max retry, redispatch as fatal ..."),k.fatal=!0,this.hls.stopLoad(),this.state=R.ERROR)},A.afterBufferFlushed=function(I,k,J){if(!I)return;var G=O.BufferHelper.getBuffered(I);this.fragmentTracker.detectEvictedFragments(k,G,J),this.state===R.ENDED&&this.resetLoadingState()},A.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=R.IDLE},A.resetLiveStartWhenNotLoaded=function(I){if(!this.loadedmetadata){this.startFragRequested=!1;var k=this.levels?this.levels[I].details:null;if(k!=null&&k.live)return this.startPosition=-1,this.setStartPosition(k,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},A.updateLevelTiming=function(I,k,J,G){var D=this,H=J.details;console.assert(!!H,"level.details must be defined");var W=Object.keys(I.elementaryStreams).reduce(function(L,z){var ie=I.elementaryStreams[z];if(ie){var ce=ie.endPTS-ie.startPTS;if(ce<=0)return D.warn("Could not parse fragment "+I.sn+" "+z+" duration reliably ("+ce+") resetting transmuxer to fallback to playlist timing"),D.resetTransmuxer(),L||!1;var ue=G?0:Object(o.updateFragPTSDTS)(H,I,ie.startPTS,ie.endPTS,ie.startDTS,ie.endDTS);return D.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:H,level:J,drift:ue,type:z,frag:I,start:ie.startPTS,end:ie.endPTS}),!0}return L},!1);W?(this.state=R.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:I,part:k})):this.resetLoadingState()},A.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},w(_,[{key:"state",get:function(){return this._state},set:function(I){var k=this._state;k!==I&&(this._state=I,this.log(k+"->"+I))}}]),_}(m.default)},"./src/controller/buffer-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return a});var v=T("./src/polyfills/number.ts"),m=T("./src/events.ts"),y=T("./src/utils/logger.ts"),O=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"),c=Object(e.getMediaSource)(),n=/([ha]vc.)(?:\.[^.,]+)+/,a=function(){function o(d){var h=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=h.hls,u=h.media,w=h.mediaSource;y.logger.log("[buffer-controller]: Media source opened"),u&&(h.updateMediaElementDuration(),s.trigger(m.Events.MEDIA_ATTACHED,{media:u})),w&&w.removeEventListener("sourceopen",h._onMediaSourceOpen),h.checkPendingTracks()},this._onMediaSourceClose=function(){y.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){y.logger.log("[buffer-controller]: Media source ended")},this.hls=d,this._initSourceBuffer(),this.registerListeners()}var l=o.prototype;return l.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},l.destroy=function(){this.unregisterListeners(),this.details=null},l.registerListeners=function(){var h=this.hls;h.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(m.Events.BUFFER_RESET,this.onBufferReset,this),h.on(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.on(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.on(m.Events.BUFFER_EOS,this.onBufferEos,this),h.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.on(m.Events.FRAG_PARSED,this.onFragParsed,this),h.on(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l.unregisterListeners=function(){var h=this.hls;h.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(m.Events.BUFFER_RESET,this.onBufferReset,this),h.off(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.off(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.off(m.Events.BUFFER_EOS,this.onBufferEos,this),h.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.off(m.Events.FRAG_PARSED,this.onFragParsed,this),h.off(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new r.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},l.onManifestParsed=function(h,s){var u=2;(s.audio&&!s.video||!s.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,y.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},l.onMediaAttaching=function(h,s){var u=this.media=s.media;if(u&&c){var w=this.mediaSource=new c;w.addEventListener("sourceopen",this._onMediaSourceOpen),w.addEventListener("sourceended",this._onMediaSourceEnded),w.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(w),this._objectUrl=u.src}},l.onMediaDetaching=function(){var h=this.media,s=this.mediaSource,u=this._objectUrl;if(s){if(y.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(w){y.logger.warn("[buffer-controller]: onMediaDetaching: "+w.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),h&&(u&&self.URL.revokeObjectURL(u),h.src===u?(h.removeAttribute("src"),h.load()):y.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(m.Events.MEDIA_DETACHED,void 0)},l.onBufferReset=function(){var h=this;this.getSourceBufferTypes().forEach(function(s){var u=h.sourceBuffer[s];try{u&&(h.removeBufferListeners(s),h.mediaSource&&h.mediaSource.removeSourceBuffer(u),h.sourceBuffer[s]=void 0)}catch(w){y.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",w)}}),this._initSourceBuffer()},l.onBufferCodecs=function(h,s){var u=this,w=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(x){if(w){var b=u.tracks[x];if(b&&typeof b.buffer.changeType=="function"){var P=s[x],R=P.codec,C=P.levelCodec,S=P.container,_=(b.levelCodec||b.codec).replace(n,"$1"),A=(C||R).replace(n,"$1");if(_!==A){var j=S+";codecs="+(C||R);u.appendChangeType(x,j)}}}else u.pendingTracks[x]=s[x]}),w)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},l.appendChangeType=function(h,s){var u=this,w=this.operationQueue,x={execute:function(){var P=u.sourceBuffer[h];P&&(y.logger.log("[buffer-controller]: changing "+h+" sourceBuffer type to "+s),P.changeType(s)),w.shiftAndExecuteNext(h)},onStart:function(){},onComplete:function(){},onError:function(P){y.logger.warn("[buffer-controller]: Failed to change "+h+" SourceBuffer type",P)}};w.append(x,h)},l.onBufferAppending=function(h,s){var u=this,w=this.hls,x=this.operationQueue,b=this.tracks,P=s.data,R=s.type,C=s.frag,S=s.part,_=s.chunkMeta,A=_.buffering[R],j=self.performance.now();A.start=j;var I=C.stats.buffering,k=S?S.stats.buffering:null;I.start===0&&(I.start=j),k&&k.start===0&&(k.start=j);var J=b.audio,G=R==="audio"&&_.id===1&&(J==null?void 0:J.container)==="audio/mpeg",D={execute:function(){if(A.executeStart=self.performance.now(),G){var W=u.sourceBuffer[R];if(W){var L=C.start-W.timestampOffset;Math.abs(L)>=.1&&(y.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+C.start+" (delta: "+L+") sn: "+C.sn+")"),W.timestampOffset=C.start)}}u.appendExecutor(P,R)},onStart:function(){},onComplete:function(){var W=self.performance.now();A.executeEnd=A.end=W,I.first===0&&(I.first=W),k&&k.first===0&&(k.first=W);var L=u.sourceBuffer,z={};for(var ie in L)z[ie]=g.BufferHelper.getBuffered(L[ie]);u.appendError=0,u.hls.trigger(m.Events.BUFFER_APPENDED,{type:R,frag:C,part:S,chunkMeta:_,parent:C.type,timeRanges:z})},onError:function(W){y.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",W);var L={type:O.ErrorTypes.MEDIA_ERROR,parent:C.type,details:O.ErrorDetails.BUFFER_APPEND_ERROR,err:W,fatal:!1};W.code===DOMException.QUOTA_EXCEEDED_ERR?L.details=O.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,L.details=O.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>w.config.appendErrorMaxRetry&&(y.logger.error("[buffer-controller]: Failed "+w.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),L.fatal=!0)),w.trigger(m.Events.ERROR,L)}};x.append(D,R)},l.onBufferFlushing=function(h,s){var u=this,w=this.operationQueue,x=function(P){return{execute:u.removeExecutor.bind(u,P,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(m.Events.BUFFER_FLUSHED,{type:P})},onError:function(C){y.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",C)}}};s.type?w.append(x(s.type),s.type):this.getSourceBufferTypes().forEach(function(b){w.append(x(b),b)})},l.onFragParsed=function(h,s){var u=this,w=s.frag,x=s.part,b=[],P=x?x.elementaryStreams:w.elementaryStreams;P[f.ElementaryStreamTypes.AUDIOVIDEO]?b.push("audiovideo"):(P[f.ElementaryStreamTypes.AUDIO]&&b.push("audio"),P[f.ElementaryStreamTypes.VIDEO]&&b.push("video"));var R=function(){var S=self.performance.now();w.stats.buffering.end=S,x&&(x.stats.buffering.end=S);var _=x?x.stats:w.stats;u.hls.trigger(m.Events.FRAG_BUFFERED,{frag:w,part:x,stats:_,id:w.type})};b.length===0&&y.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+w.type+" level: "+w.level+" sn: "+w.sn),this.blockBuffers(R,b)},l.onFragChanged=function(h,s){this.flushBackBuffer()},l.onBufferEos=function(h,s){var u=this,w=this.getSourceBufferTypes().reduce(function(x,b){var P=u.sourceBuffer[b];return(!s.type||s.type===b)&&(P&&!P.ended&&(P.ended=!0,y.logger.log("[buffer-controller]: "+b+" sourceBuffer now EOS"))),x&&!!(!P||P.ended)},!0);w&&this.blockBuffers(function(){var x=u.mediaSource;if(!x||x.readyState!=="open")return;x.endOfStream()})},l.onLevelUpdated=function(h,s){var u=s.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},l.flushBackBuffer=function(){var h=this.hls,s=this.details,u=this.media,w=this.sourceBuffer;if(!u||s===null)return;var x=this.getSourceBufferTypes();if(!x.length)return;var b=s.live&&h.config.liveBackBufferLength!==null?h.config.liveBackBufferLength:h.config.backBufferLength;if(!Object(v.isFiniteNumber)(b)||b<0)return;var P=u.currentTime,R=s.levelTargetDuration,C=Math.max(b,R),S=Math.floor(P/R)*R-C;x.forEach(function(_){var A=w[_];if(A){var j=g.BufferHelper.getBuffered(A);j.length>0&&S>j.start(0)&&(h.trigger(m.Events.BACK_BUFFER_REACHED,{bufferEnd:S}),s.live&&h.trigger(m.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:S}),h.trigger(m.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:S,type:_}))}})},l.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var h=this.details,s=this.hls,u=this.media,w=this.mediaSource,x=h.fragments[0].start+h.totalduration,b=u.duration,P=Object(v.isFiniteNumber)(w.duration)?w.duration:0;h.live&&s.config.liveDurationInfinity?(y.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),w.duration=Infinity,this.updateSeekableRange(h)):(x>P&&x>b||!Object(v.isFiniteNumber)(b))&&(y.logger.log("[buffer-controller]: Updating Media Source duration to "+x.toFixed(3)),w.duration=x)},l.updateSeekableRange=function(h){var s=this.mediaSource,u=h.fragments,w=u.length;if(w&&h.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var x=Math.max(0,u[0].start),b=Math.max(x,x+h.totalduration);s.setLiveSeekableRange(x,b)}},l.checkPendingTracks=function(){var h=this.bufferCodecEventsExpected,s=this.operationQueue,u=this.pendingTracks,w=Object.keys(u).length;if(w&&!h||w===2){this.createSourceBuffers(u),this.pendingTracks={};var x=this.getSourceBufferTypes();if(x.length===0){this.hls.trigger(m.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}x.forEach(function(b){s.executeNext(b)})}},l.createSourceBuffers=function(h){var s=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var w=0;for(var x in h)if(!s[x]){var b=h[x];if(!b)throw Error("source buffer exists for track "+x+", however track does not");var P=b.levelCodec||b.codec,R=b.container+";codecs="+P;y.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var C=s[x]=u.addSourceBuffer(R),S=x;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.tracks[x]={buffer:C,codec:P,container:b.container,levelCodec:b.levelCodec,id:b.id},w++}catch(_){y.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+_.message),this.hls.trigger(m.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:_,mimeType:R})}}w&&this.hls.trigger(m.Events.BUFFER_CREATED,{tracks:this.tracks})},l._onSBUpdateStart=function(h){var s=this.operationQueue,u=s.current(h);u.onStart()},l._onSBUpdateEnd=function(h){var s=this.operationQueue,u=s.current(h);u.onComplete(),s.shiftAndExecuteNext(h)},l._onSBUpdateError=function(h,s){y.logger.error("[buffer-controller]: "+h+" SourceBuffer error",s),this.hls.trigger(m.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(h);u&&u.onError(s)},l.removeExecutor=function(h,s,u){var w=this.media,x=this.mediaSource,b=this.operationQueue,P=this.sourceBuffer,R=P[h];if(!w||!x||!R){y.logger.warn("[buffer-controller]: Attempting to remove from the "+h+" SourceBuffer, but it does not exist"),b.shiftAndExecuteNext(h);return}var C=Object(v.isFiniteNumber)(w.duration)?w.duration:Infinity,S=Object(v.isFiniteNumber)(x.duration)?x.duration:Infinity,_=Math.max(0,s),A=Math.min(u,C,S);A>_?(y.logger.log("[buffer-controller]: Removing ["+_+","+A+"] from the "+h+" SourceBuffer"),console.assert(!R.updating,h+" sourceBuffer must not be updating"),R.remove(_,A)):b.shiftAndExecuteNext(h)},l.appendExecutor=function(h,s){var u=this.operationQueue,w=this.sourceBuffer,x=w[s];if(!x){y.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(s);return}x.ended=!1,console.assert(!x.updating,s+" sourceBuffer must not be updating"),x.appendBuffer(h)},l.blockBuffers=function(h,s){var u=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){y.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(h);return}var w=this.operationQueue,x=s.map(function(b){return w.appendBlocker(b)});Promise.all(x).then(function(){h(),s.forEach(function(b){var P=u.sourceBuffer[b];(!P||!P.updating)&&w.shiftAndExecuteNext(b)})})},l.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},l.addBufferListener=function(h,s,u){var w=this.sourceBuffer[h];if(!w)return;var x=u.bind(this,h);this.listeners[h].push({event:s,listener:x}),w.addEventListener(s,x)},l.removeBufferListeners=function(h){var s=this.sourceBuffer[h];if(!s)return;this.listeners[h].forEach(function(u){s.removeEventListener(u.event,u.listener)})},o}()},"./src/controller/buffer-operation-queue.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return m});var v=T("./src/utils/logger.ts"),m=function(){function y(g){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=g}var O=y.prototype;return O.append=function(e,f){var r=this.queues[f];r.push(e),r.length===1&&this.buffers[f]&&this.executeNext(f)},O.insertAbort=function(e,f){var r=this.queues[f];r.unshift(e),this.executeNext(f)},O.appendBlocker=function(e){var f,r=new Promise(function(n){f=n}),c={execute:f,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(c,e),r},O.executeNext=function(e){var f=this.buffers,r=this.queues,c=f[e],n=r[e];if(n.length){var a=n[0];try{a.execute()}catch(o){v.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(o),(!c||!c.updating)&&(n.shift(),this.executeNext(e))}}},O.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},O.current=function(e){return this.queues[e][0]},y}()},"./src/controller/cap-level-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/events.ts");function m(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 y(g,e,f){return e&&m(g.prototype,e),f&&m(g,f),g}var O=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(v.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(v.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.on(v.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var r=this.hls;r.off(v.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(v.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),r.off(v.Events.BUFFER_CODECS,this.onBufferCodecs,this),r.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(r,c){g.isLevelAllowed(c.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(c.droppedLevel)},e.onMediaAttaching=function(r,c){this.media=c.media instanceof HTMLVideoElement?c.media:null},e.onManifestParsed=function(r,c){var n=this.hls;this.restrictedLevels=[],this.firstLevel=c.firstLevel,n.config.capLevelToPlayerSize&&c.video&&this.startCapping()},e.onBufferCodecs=function(r,c){var n=this.hls;n.config.capLevelToPlayerSize&&c.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 c=this.hls;c.autoLevelCapping=this.getMaxLevel(r.length-1),c.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=c.autoLevelCapping}}},e.getMaxLevel=function(r){var c=this,n=this.hls.levels;if(!n.length)return-1;var a=n.filter(function(o,l){return g.isLevelAllowed(l,c.restrictedLevels)&&l<=r});return this.clientRect=null,g.getMaxLevelByMediaSize(a,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,c={width:0,height:0};if(r){var n=r.getBoundingClientRect();c.width=n.width,c.height=n.height,!c.width&&!c.height&&(c.width=n.right-n.left||r.width||0,c.height=n.bottom-n.top||r.height||0)}return this.clientRect=c,c},g.isLevelAllowed=function(r,c){return c===void 0&&(c=[]),c.indexOf(r)===-1},g.getMaxLevelByMediaSize=function(r,c,n){if(!r||!r.length)return-1;for(var a=function(s,u){return u?s.width!==u.width||s.height!==u.height:!0},o=r.length-1,l=0;l<r.length;l+=1){var d=r[l];if((d.width>=c||d.height>=n)&&a(d,r[l+1])){o=l;break}}return o},y(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(c){}return r}}]),g}();E.default=O},"./src/controller/cmcd-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return a});var v=T("./src/events.ts"),m=T("./src/types/cmcd.ts"),y=T("./src/utils/buffer-helper.ts"),O=T("./src/utils/logger.ts");function g(o,l){for(var d=0;d<l.length;d++){var h=l[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(o,h.key,h)}}function e(o,l,d){return l&&g(o.prototype,l),d&&g(o,d),o}function f(o,l){var d=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(d)return(d=d.call(o)).next.bind(d);if(Array.isArray(o)||(d=r(o))||l&&o&&typeof o.length=="number"){d&&(o=d);var h=0;return function(){return h>=o.length?{done:!0}:{done:!1,value:o[h++]}}}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(o,l){if(!o)return;if(typeof o=="string")return c(o,l);var d=Object.prototype.toString.call(o).slice(8,-1);if(d==="Object"&&o.constructor&&(d=o.constructor.name),d==="Map"||d==="Set")return Array.from(o);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return c(o,l)}function c(o,l){(l==null||l>o.length)&&(l=o.length);for(var d=0,h=new Array(l);d<l;d++)h[d]=o[d];return h}function n(){return n=Object.assign||function(o){for(var l=1;l<arguments.length;l++){var d=arguments[l];for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(o[h]=d[h])}return o},n.apply(this,arguments)}var a=function(){function o(d){var h=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(){h.initialized&&(h.starved=!0),h.buffering=!0},this.onPlaying=function(){h.initialized||(h.initialized=!0),h.buffering=!1},this.applyPlaylistData=function(w){try{h.apply(w,{ot:m.CMCDObjectType.MANIFEST,su:!h.initialized})}catch(x){O.logger.warn("Could not generate manifest CMCD data.",x)}},this.applyFragmentData=function(w){try{var x=w.frag,b=h.hls.levels[x.level],P=h.getObjectType(x),R={d:x.duration*1e3,ot:P};(P===m.CMCDObjectType.VIDEO||P===m.CMCDObjectType.AUDIO||P==m.CMCDObjectType.MUXED)&&(R.br=b.bitrate/1e3,R.tb=h.getTopBandwidth(P),R.bl=h.getBufferLength(P)),h.apply(w,R)}catch(C){O.logger.warn("Could not generate segment CMCD data.",C)}},this.hls=d;var s=this.config=d.config,u=s.cmcd;u!=null&&(s.pLoader=this.createPlaylistLoader(),s.fLoader=this.createFragmentLoader(),this.sid=u.sessionId||o.uuid(),this.cid=u.contentId,this.useHeaders=u.useHeaders===!0,this.registerListeners())}var l=o.prototype;return l.registerListeners=function(){var h=this.hls;h.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.on(v.Events.BUFFER_CREATED,this.onBufferCreated,this)},l.unregisterListeners=function(){var h=this.hls;h.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.off(v.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},l.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},l.onMediaAttached=function(h,s){this.media=s.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},l.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},l.onBufferCreated=function(h,s){var u,w;this.audioBuffer=(u=s.tracks.audio)===null||u===void 0?void 0:u.buffer,this.videoBuffer=(w=s.tracks.video)===null||w===void 0?void 0:w.buffer},l.createData=function(){var h;return{v:m.CMCDVersion,sf:m.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(h=this.media)===null||h===void 0?void 0:h.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},l.apply=function(h,s){s===void 0&&(s={}),n(s,this.createData());var u=s.ot===m.CMCDObjectType.INIT||s.ot===m.CMCDObjectType.VIDEO||s.ot===m.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 w=o.toHeaders(s);if(!Object.keys(w).length)return;h.headers||(h.headers={}),n(h.headers,w)}else{var x=o.toQuery(s);if(!x)return;h.url=o.appendQueryToUri(h.url,x)}},l.getObjectType=function(h){var s=h.type;return s==="subtitle"?m.CMCDObjectType.TIMED_TEXT:h.sn==="initSegment"?m.CMCDObjectType.INIT:s==="audio"?m.CMCDObjectType.AUDIO:s==="main"?this.hls.audioTracks.length?m.CMCDObjectType.VIDEO:m.CMCDObjectType.MUXED:void 0},l.getTopBandwidth=function(h){for(var s=0,u=h===m.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,w=f(u),x;!(x=w()).done;){var b=x.value;b.bitrate>s&&(s=b.bitrate)}return s>0?s:NaN},l.getBufferLength=function(h){var s=this.hls.media,u=h===m.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!s)return NaN;var w=y.BufferHelper.bufferInfo(u,s.currentTime,this.config.maxBufferHole);return w.len*1e3},l.createPlaylistLoader=function(){var h=this.config.pLoader,s=this.applyPlaylistData,u=h||this.config.loader;return function(){function w(b){this.loader=void 0,this.loader=new u(b)}var x=w.prototype;return x.destroy=function(){this.loader.destroy()},x.abort=function(){this.loader.abort()},x.load=function(P,R,C){s(P),this.loader.load(P,R,C)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},l.createFragmentLoader=function(){var h=this.config.fLoader,s=this.applyFragmentData,u=h||this.config.loader;return function(){function w(b){this.loader=void 0,this.loader=new u(b)}var x=w.prototype;return x.destroy=function(){this.loader.destroy()},x.abort=function(){this.loader.abort()},x.load=function(P,R,C){s(P),this.loader.load(P,R,C)},e(w,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),w}()},o.uuid=function(){var h=URL.createObjectURL(new Blob),s=h.toString();return URL.revokeObjectURL(h),s.substr(s.lastIndexOf("/")+1)},o.serialize=function(h){for(var s=[],u=function(G){return!Number.isNaN(G)&&G!=null&&G!==""&&G!==!1},w=function(G){return Math.round(G)},x=function(G){return w(G/100)*100},b=function(G){return encodeURIComponent(G)},P={br:w,d:w,bl:x,dl:x,mtp:x,nor:b,rtp:x,tb:w},R=Object.keys(h||{}).sort(),C=f(R),S;!(S=C()).done;){var _=S.value,A=h[_];if(!u(A))continue;if(_==="v"&&A===1)continue;if(_=="pr"&&A===1)continue;var j=P[_];j&&(A=j(A));var I=typeof A,k=void 0;_==="ot"||_==="sf"||_==="st"?k=_+"="+A:I==="boolean"?k=_:I==="number"?k=_+"="+A:k=_+"="+JSON.stringify(A),s.push(k)}return s.join(",")},o.toHeaders=function(h){for(var s=Object.keys(h),u={},w=["Object","Request","Session","Status"],x=[{},{},{},{}],b={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 C=R[P],S=b[C]!=null?b[C]:1;x[S][C]=h[C]}for(var _=0;_<x.length;_++){var A=o.serialize(x[_]);A&&(u["CMCD-"+w[_]]=A)}return u},o.toQuery=function(h){return"CMCD="+encodeURIComponent(o.serialize(h))},o.appendQueryToUri=function(h,s){if(!s)return h;var u=h.includes("?")?"&":"?";return""+h+u+s},o}()},"./src/controller/eme-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/events.ts"),m=T("./src/errors.ts"),y=T("./src/utils/logger.ts"),O=T("./src/utils/mediakeys-helper.ts");function g(a,o){for(var l=0;l<o.length;l++){var d=o[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function e(a,o,l){return o&&g(a.prototype,o),l&&g(a,l),a}var f=3,r=function(o,l,d){var h={audioCapabilities:[],videoCapabilities:[]};return o.forEach(function(s){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+s+'"',robustness:d.audioRobustness||""})}),l.forEach(function(s){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+s+'"',robustness:d.videoRobustness||""})}),[h]},c=function(o,l,d,h){switch(o){case O.KeySystems.WIDEVINE:return r(l,d,h);default:throw new Error("Unknown key-system: "+o)}},n=function(){function a(l){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=l,this._config=l.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 o=a.prototype;return o.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},o._registerListeners=function(){this.hls.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o._unregisterListeners=function(){this.hls.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(v.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o.getLicenseServerUrl=function(d){switch(d){case O.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+d+'"')},o._attemptKeySystemAccess=function(d,h,s){var u=this,w=c(d,h,s,this._drmSystemOptions);y.logger.log("Requesting encrypted media key-system access");var x=this.requestMediaKeySystemAccess(d,w);this.mediaKeysPromise=x.then(function(b){return u._onMediaKeySystemAccessObtained(d,b)}),x.catch(function(b){y.logger.error('Failed to obtain key-system "'+d+'" access:',b)})},o._onMediaKeySystemAccessObtained=function(d,h){var s=this;y.logger.log('Access for key-system "'+d+'" obtained');var u={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:h,mediaKeySystemDomain:d};this._mediaKeysList.push(u);var w=Promise.resolve().then(function(){return h.createMediaKeys()}).then(function(x){return u.mediaKeys=x,y.logger.log('Media-keys created for key-system "'+d+'"'),s._onMediaKeysCreated(),x});return w.catch(function(x){y.logger.error("Failed to create media-keys:",x)}),w},o._onMediaKeysCreated=function(){var d=this;this._mediaKeysList.forEach(function(h){h.mediaKeysSession||(h.mediaKeysSession=h.mediaKeys.createSession(),d._onNewMediaKeySession(h.mediaKeysSession))})},o._onNewMediaKeySession=function(d){var h=this;y.logger.log("New key-system session "+d.sessionId),d.addEventListener("message",function(s){h._onKeySessionMessage(d,s.message)},!1)},o._onKeySessionMessage=function(d,h){y.logger.log("Got EME message event, creating license request"),this._requestLicense(h,function(s){y.logger.log("Received license data (length: "+(s&&s.byteLength)+"), updating key-session"),d.update(s)})},o.onMediaEncrypted=function(d){var h=this;if(y.logger.log('Media is encrypted using "'+d.initDataType+'" init data type'),!this.mediaKeysPromise){y.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var s=function(w){if(!h._media)return;h._attemptSetMediaKeys(w),h._generateRequestWithPreferredKeySession(d.initDataType,d.initData)};this.mediaKeysPromise.then(s).catch(s)},o._attemptSetMediaKeys=function(d){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var h=this._mediaKeysList[0];if(!h||!h.mediaKeys){y.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}y.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(h.mediaKeys),this._hasSetMediaKeys=!0}},o._generateRequestWithPreferredKeySession=function(d,h){var s=this,u=this._mediaKeysList[0];if(!u){y.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(u.mediaKeysSessionInitialized){y.logger.warn("Key-Session already initialized but requested again");return}var w=u.mediaKeysSession;if(!w){y.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!h){y.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}y.logger.log('Generating key-session request for "'+d+'" init data type'),u.mediaKeysSessionInitialized=!0,w.generateRequest(d,h).then(function(){y.logger.debug("Key-session generation succeeded")}).catch(function(x){y.logger.error("Error generating key-session request:",x),s.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},o._createLicenseXhr=function(d,h,s){var u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,u,d,h,s);var w=this._licenseXhrSetup;if(w)try{w.call(this.hls,u,d),w=void 0}catch(x){y.logger.error(x)}try{u.readyState||u.open("POST",d,!0),w&&w.call(this.hls,u,d)}catch(x){throw new Error("issue setting up KeySystem license XHR "+x)}return u},o._onLicenseRequestReadyStageChange=function(d,h,s,u){switch(d.readyState){case 4:if(d.status===200){this._requestLicenseFailureCount=0,y.logger.log("License request succeeded");var w=d.response,x=this._licenseResponseCallback;if(x)try{w=x.call(this.hls,d,h)}catch(P){y.logger.error(P)}u(w)}else{if(y.logger.error("License Request XHR failed ("+h+"). Status: "+d.status+" ("+d.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>f){this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var b=f-this._requestLicenseFailureCount+1;y.logger.warn("Retrying license request, "+b+" attempts left"),this._requestLicense(s,u)}break}},o._generateLicenseRequestChallenge=function(d,h){switch(d.mediaKeySystemDomain){case O.KeySystems.WIDEVINE:return h}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},o._requestLicense=function(d,h){y.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){y.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(s.mediaKeySystemDomain),w=this._createLicenseXhr(u,d,h);y.logger.log("Sending license request to URL: "+u);var x=this._generateLicenseRequestChallenge(s,d);w.send(x)}catch(b){y.logger.error("Failure requesting DRM license: "+b),this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},o.onMediaAttached=function(d,h){if(!this._emeEnabled)return;var s=h.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},o.onMediaDetached=function(){var d=this._media,h=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(h.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},o.onManifestParsed=function(d,h){if(!this._emeEnabled)return;var s=h.levels.map(function(w){return w.audioCodec}).filter(function(w){return!!w}),u=h.levels.map(function(w){return w.videoCodec}).filter(function(w){return!!w});this._attemptKeySystemAccess(O.KeySystems.WIDEVINE,s,u)},e(a,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),a}();E.default=n},"./src/controller/fps-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/events.ts"),m=T("./src/utils/logger.ts"),y=function(){function O(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var g=O.prototype;return g.setStreamController=function(f){this.streamController=f},g.registerListeners=function(){this.hls.on(v.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},g.unregisterListeners=function(){this.hls.off(v.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 c=this.hls.config;if(c.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),c.fpsDroppedMonitoringPeriod)}},g.checkFPS=function(f,r,c){var n=performance.now();if(r){if(this.lastTime){var a=n-this.lastTime,o=c-this.lastDroppedFrames,l=r-this.lastDecodedFrames,d=1e3*o/a,h=this.hls;if(h.trigger(v.Events.FPS_DROP,{currentDropped:o,currentDecoded:l,totalDroppedFrames:c}),d>0&&o>h.config.fpsDroppedMonitoringThreshold*l){var s=h.currentLevel;m.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(h.autoLevelCapping===-1||h.autoLevelCapping>=s)&&(s=s-1,h.trigger(v.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:h.currentLevel}),h.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=c,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)},O}();E.default=y},"./src/controller/fragment-finders.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"findFragmentByPDT",function(){return y}),T.d(E,"findFragmentByPTS",function(){return O}),T.d(E,"fragmentWithinToleranceTest",function(){return g}),T.d(E,"pdtWithinToleranceTest",function(){return e}),T.d(E,"findFragWithCC",function(){return f});var v=T("./src/polyfills/number.ts"),m=T("./src/utils/binary-search.ts");function y(r,c,n){if(c===null||!Array.isArray(r)||!r.length||!Object(v.isFiniteNumber)(c))return null;var a=r[0].programDateTime;if(c<(a||0))return null;var o=r[r.length-1].endProgramDateTime;if(c>=(o||0))return null;n=n||0;for(var l=0;l<r.length;++l){var d=r[l];if(e(c,n,d))return d}return null}function O(r,c,n,a){n===void 0&&(n=0),a===void 0&&(a=0);var o=null;if(r?o=c[r.sn-c[0].sn+1]||null:n===0&&c[0].start===0&&(o=c[0]),o&&g(n,a,o)===0)return o;var l=m.default.search(c,g.bind(null,n,a));return l||o}function g(r,c,n){r===void 0&&(r=0),c===void 0&&(c=0);var a=Math.min(c,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-a<=r?1:n.start-a>r&&n.start?-1:0}function e(r,c,n){var a=Math.min(c,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3,o=n.endProgramDateTime||0;return o-a>r}function f(r,c){return m.default.search(r,function(n){return n.cc<c?1:n.cc>c?-1:0})}},"./src/controller/fragment-tracker.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"FragmentState",function(){return y}),T.d(E,"FragmentTracker",function(){return O});var v=T("./src/events.ts"),m=T("./src/types/loader.ts"),y;(function(f){f.NOT_LOADED="NOT_LOADED",f.BACKTRACKED="BACKTRACKED",f.APPENDING="APPENDING",f.PARTIAL="PARTIAL",f.OK="OK"})(y||(y={}));var O=function(){function f(c){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=c,this._registerListeners()}var r=f.prototype;return r._registerListeners=function(){var n=this.hls;n.on(v.Events.BUFFER_APPENDED,this.onBufferAppended,this),n.on(v.Events.FRAG_BUFFERED,this.onFragBuffered,this),n.on(v.Events.FRAG_LOADED,this.onFragLoaded,this)},r._unregisterListeners=function(){var n=this.hls;n.off(v.Events.BUFFER_APPENDED,this.onBufferAppended,this),n.off(v.Events.FRAG_BUFFERED,this.onFragBuffered,this),n.off(v.Events.FRAG_LOADED,this.onFragLoaded,this)},r.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},r.getAppendedFrag=function(n,a){if(a===m.PlaylistLevelType.MAIN){var o=this.activeFragment,l=this.activeParts;if(!o)return null;if(l)for(var d=l.length;d--;){var h=l[d],s=h?h.end:o.appendedPTS;if(h.start<=n&&s!==void 0&&n<=s)return d>9&&(this.activeParts=l.slice(d-9)),h}else if(o.start<=n&&o.appendedPTS!==void 0&&n<=o.appendedPTS)return o}return this.getBufferedFrag(n,a)},r.getBufferedFrag=function(n,a){for(var o=this.fragments,l=Object.keys(o),d=l.length;d--;){var h=o[l[d]];if((h==null?void 0:h.body.type)===a&&h.buffered){var s=h.body;if(s.start<=n&&n<=s.end)return s}}return null},r.detectEvictedFragments=function(n,a,o){var l=this;Object.keys(this.fragments).forEach(function(d){var h=l.fragments[d];if(!h)return;if(!h.buffered){h.body.type===o&&l.removeFragment(h.body);return}var s=h.range[n];if(!s)return;s.time.some(function(u){var w=!l.isTimeBuffered(u.startPTS,u.endPTS,a);return w&&l.removeFragment(h.body),w})})},r.detectPartialFragments=function(n){var a=this,o=this.timeRanges,l=n.frag,d=n.part;if(!o||l.sn==="initSegment")return;var h=e(l),s=this.fragments[h];if(!s)return;Object.keys(o).forEach(function(u){var w=l.elementaryStreams[u];if(!w)return;var x=o[u],b=d!==null||w.partial===!0;s.range[u]=a.getBufferedTimes(l,d,b,x)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},r.fragBuffered=function(n){var a=e(n),o=this.fragments[a];o&&(o.backtrack=o.loaded=null,o.buffered=!0)},r.getBufferedTimes=function(n,a,o,l){for(var d={time:[],partial:o},h=a?a.start:n.start,s=a?a.end:n.end,u=n.minEndPTS||s,w=n.maxStartPTS||h,x=0;x<l.length;x++){var b=l.start(x)-this.bufferPadding,P=l.end(x)+this.bufferPadding;if(w>=b&&u<=P){d.time.push({startPTS:Math.max(h,l.start(x)),endPTS:Math.min(s,l.end(x))});break}else if(h<P&&s>b)d.partial=!0,d.time.push({startPTS:Math.max(h,l.start(x)),endPTS:Math.min(s,l.end(x))});else if(s<=b)break}return d},r.getPartialFragment=function(n){var a=null,o,l,d,h=0,s=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(w){var x=u[w];if(!x)return;g(x)&&(l=x.body.start-s,d=x.body.end+s,n>=l&&n<=d&&(o=Math.min(n-l,d-n),h<=o&&(a=x.body,h=o)))}),a},r.getState=function(n){var a=e(n),o=this.fragments[a];return o?o.buffered?g(o)?y.PARTIAL:y.OK:o.backtrack?y.BACKTRACKED:y.APPENDING:y.NOT_LOADED},r.backtrack=function(n,a){var o=e(n),l=this.fragments[o];if(!l||l.backtrack)return null;var d=l.backtrack=a||l.loaded;return l.loaded=null,d},r.getBacktrackData=function(n){var a=e(n),o=this.fragments[a];if(o){var l,d=o.backtrack;if(d!=null&&(l=d.payload)!==null&&l!==void 0&&l.byteLength)return d;this.removeFragment(n)}return null},r.isTimeBuffered=function(n,a,o){for(var l,d,h=0;h<o.length;h++){if(l=o.start(h)-this.bufferPadding,d=o.end(h)+this.bufferPadding,n>=l&&a<=d)return!0;if(a<=l)return!1}return!1},r.onFragLoaded=function(n,a){var o=a.frag,l=a.part;if(o.sn==="initSegment"||o.bitrateTest||l)return;var d=e(o);this.fragments[d]={body:o,loaded:a,backtrack:null,buffered:!1,range:Object.create(null)}},r.onBufferAppended=function(n,a){var o=this,l=a.frag,d=a.part,h=a.timeRanges;if(l.type===m.PlaylistLevelType.MAIN)if(this.activeFragment=l,d){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(d)}else this.activeParts=null;this.timeRanges=h,Object.keys(h).forEach(function(u){var w=h[u];if(o.detectEvictedFragments(u,w),!d)for(var x=0;x<w.length;x++)l.appendedPTS=Math.max(w.end(x),l.appendedPTS||0)})},r.onFragBuffered=function(n,a){this.detectPartialFragments(a)},r.hasFragment=function(n){var a=e(n);return!!this.fragments[a]},r.removeFragmentsInRange=function(n,a,o){var l=this;Object.keys(this.fragments).forEach(function(d){var h=l.fragments[d];if(!h)return;if(h.buffered){var s=h.body;s.type===o&&s.start<a&&s.end>n&&l.removeFragment(s)}})},r.removeFragment=function(n){var a=e(n);n.stats.loaded=0,n.clearElementaryStreamInfo(),delete this.fragments[a]},r.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},f}();function g(f){var r,c;return f.buffered&&(((r=f.range.video)===null||r===void 0?void 0:r.partial)||((c=f.range.audio)===null||c===void 0?void 0:c.partial))}function e(f){return f.type+"_"+f.level+"_"+f.urlId+"_"+f.sn}},"./src/controller/gap-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"STALL_MINIMUM_DURATION_MS",function(){return g}),T.d(E,"MAX_START_GAP_JUMP",function(){return e}),T.d(E,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return f}),T.d(E,"SKIP_BUFFER_RANGE_START",function(){return r}),T.d(E,"default",function(){return c});var v=T("./src/utils/buffer-helper.ts"),m=T("./src/errors.ts"),y=T("./src/events.ts"),O=T("./src/utils/logger.ts"),g=250,e=2,f=.1,r=.05,c=function(){function n(o,l,d,h){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=o,this.media=l,this.fragmentTracker=d,this.hls=h}var a=n.prototype;return a.destroy=function(){this.hls=this.fragmentTracker=this.media=null},a.poll=function(l){var d=this.config,h=this.media,s=this.stalled,u=h.currentTime,w=h.seeking,x=this.seeking&&!w,b=!this.seeking&&w;if(this.seeking=w,u!==l){if(this.moved=!0,s!==null){if(this.stallReported){var P=self.performance.now()-s;O.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((b||x)&&(this.stalled=null),h.paused||h.ended||h.playbackRate===0||!v.BufferHelper.getBuffered(h).length)return;var R=v.BufferHelper.bufferInfo(h,u,0),C=R.len>0,S=R.nextStart||0;if(!C&&!S)return;if(w){var _=R.len>e,A=!S||S-u>e&&!this.fragmentTracker.getPartialFragment(u);if(_||A)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var j,I=Math.max(S,R.start||0)-u,k=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,J=k==null||((j=k.details)===null||j===void 0)?void 0:j.live,G=J?k.details.targetduration*2:e;if(I>0&&I<=G){this._trySkipBufferHole(null);return}}var D=self.performance.now();if(s===null){this.stalled=D;return}var H=D-s;!w&&H>=g&&this._reportStall(R.len);var W=v.BufferHelper.bufferInfo(h,u,d.maxBufferHole);this._tryFixBufferStall(W,H)},a._tryFixBufferStall=function(l,d){var h=this.config,s=this.fragmentTracker,u=this.media,w=u.currentTime,x=s.getPartialFragment(w);if(x){var b=this._trySkipBufferHole(x);if(b)return}l.len>h.maxBufferHole&&d>h.highBufferWatchdogPeriod*1e3&&(O.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},a._reportStall=function(l){var d=this.hls,h=this.media,s=this.stallReported;s||(this.stallReported=!0,O.logger.warn("Playback stalling at @"+h.currentTime+" due to low buffer (buffer="+l+")"),d.trigger(y.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:l}))},a._trySkipBufferHole=function(l){for(var d=this.config,h=this.hls,s=this.media,u=s.currentTime,w=0,x=v.BufferHelper.getBuffered(s),b=0;b<x.length;b++){var P=x.start(b);if(u+d.maxBufferHole>=w&&u<P){var R=Math.max(P+r,s.currentTime+f);return O.logger.warn("skipping hole, adjusting currentTime from "+u+" to "+R),this.moved=!0,this.stalled=null,s.currentTime=R,l&&h.trigger(y.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+u+" to "+R,frag:l}),R}w=x.end(b)}return 0},a._tryNudgeBuffer=function(){var l=this.config,d=this.hls,h=this.media,s=h.currentTime,u=(this.nudgeRetry||0)+1;if(this.nudgeRetry=u,u<l.nudgeMaxRetry){var w=s+u*l.nudgeOffset;O.logger.warn("Nudging 'currentTime' from "+s+" to "+w),h.currentTime=w,d.trigger(y.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else O.logger.error("Playhead still not moving while enough data buffered @"+s+" after "+l.nudgeMaxRetry+" nudges"),d.trigger(y.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},n}()},"./src/controller/id3-track-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/events.ts"),m=T("./src/utils/texttrack-utils.ts"),y=T("./src/demux/id3.ts"),O=.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 c=this.hls;c.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),c.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.on(v.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),c.on(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f._unregisterListeners=function(){var c=this.hls;c.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),c.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.off(v.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),c.off(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},f.onMediaAttached=function(c,n){this.media=n.media},f.onMediaDetaching=function(){if(!this.id3Track)return;Object(m.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},f.getID3Track=function(c){if(!this.media)return;for(var n=0;n<c.length;n++){var a=c[n];if(a.kind==="metadata"&&a.label==="id3")return Object(m.sendAddTrackEvent)(a,this.media),a}return this.media.addTextTrack("metadata","id3")},f.onFragParsingMetadata=function(c,n){if(!this.media)return;var a=n.frag,o=n.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var l=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,d=0;d<o.length;d++){var h=y.getID3Frames(o[d].data);if(h){var s=o[d].pts,u=d<o.length-1?o[d+1].pts:a.end,w=u-s;w<=0&&(u=s+O);for(var x=0;x<h.length;x++){var b=h[x];if(!y.isTimeStampFrame(b)){var P=new l(s,u,"");P.value=b,this.id3Track.addCue(P)}}}}},f.onBufferFlushing=function(c,n){var a=n.startOffset,o=n.endOffset,l=n.type;if(!l||l==="audio"){var d=this.id3Track;d&&Object(m.removeCuesInRange)(d,a,o)}},e}();E.default=g},"./src/controller/latency-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return e});var v=T("./src/errors.ts"),m=T("./src/events.ts"),y=T("./src/utils/logger.ts");function O(f,r){for(var c=0;c<r.length;c++){var n=r[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function g(f,r,c){return r&&O(f.prototype,r),c&&O(f,c),f}var e=function(){function f(c){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=c,this.config=c.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(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(m.Events.ERROR,this.onError,this)},r.unregisterListeners=function(){this.hls.off(m.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(m.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(m.Events.ERROR,this.onError)},r.onMediaAttached=function(n,a){this.media=a.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},r.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},r.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},r.onLevelUpdated=function(n,a){var o=a.details;this.levelDetails=o,o.advanced&&this.timeupdate(),!o.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},r.onError=function(n,a){if(a.details!==v.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,y.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},r.timeupdate=function(){var n=this.media,a=this.levelDetails;if(!n||!a)return;this.currentTime=n.currentTime;var o=this.computeLatency();if(o===null)return;this._latency=o;var l=this.config,d=l.lowLatencyMode,h=l.maxLiveSyncPlaybackRate;if(!d||h===1)return;var s=this.targetLatency;if(s===null)return;var u=o-s,w=Math.min(this.maxLatency,s+a.targetduration),x=u<w;if(a.live&&x&&u>.05&&this.forwardBufferLength>1){var b=Math.min(2,Math.max(1,h)),P=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;n.playbackRate=Math.min(b,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,a=this.levelDetails;return n.liveMaxLatencyDuration!==void 0?n.liveMaxLatencyDuration:a?n.liveMaxLatencyDurationCount*a.targetduration:0}},{key:"targetLatency",get:function(){var n=this.levelDetails;if(n===null)return null;var a=n.holdBack,o=n.partHoldBack,l=n.targetduration,d=this.config,h=d.liveSyncDuration,s=d.liveSyncDurationCount,u=d.lowLatencyMode,w=this.hls.userConfig,x=u&&o||a;(w.liveSyncDuration||w.liveSyncDurationCount||x===0)&&(x=h!==void 0?h:s*l);var b=l,P=1;return x+Math.min(this.stallCount*P,b)}},{key:"liveSyncPosition",get:function(){var n=this.estimateLiveEdge(),a=this.targetLatency,o=this.levelDetails;if(n===null||a===null||o===null)return null;var l=o.edge,d=n-a-this.edgeStalled,h=l-o.totalduration,s=l-(this.config.lowLatencyMode&&o.partTarget||o.targetduration);return Math.min(Math.max(h,d),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 a=(this.config.lowLatencyMode&&n.partTarget||n.targetduration)*3;return Math.max(n.age-a,0)}},{key:"forwardBufferLength",get:function(){var n=this.media,a=this.levelDetails;if(!n||!a)return 0;var o=n.buffered.length;return o?n.buffered.end(o-1):a.edge-this.currentTime}}]),f}()},"./src/controller/level-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return d});var v=T("./src/types/level.ts"),m=T("./src/events.ts"),y=T("./src/errors.ts"),O=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(h){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var w in u)Object.prototype.hasOwnProperty.call(u,w)&&(h[w]=u[w])}return h},r.apply(this,arguments)}function c(h,s){for(var u=0;u<s.length;u++){var w=s[u];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(h,w.key,w)}}function n(h,s,u){return s&&c(h.prototype,s),u&&c(h,u),h}function a(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,o(h,s)}function o(h,s){return o=Object.setPrototypeOf||function(w,x){return w.__proto__=x,w},o(h,s)}var l=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),d=function(h){a(s,h);function s(w){var x;return x=h.call(this,w,"[level-controller]")||this,x._levels=[],x._firstLevel=-1,x._startLevel=void 0,x.currentLevelIndex=-1,x.manualLevelIndex=-1,x.onParsedComplete=void 0,x._registerListeners(),x}var u=s.prototype;return u._registerListeners=function(){var x=this.hls;x.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),x.on(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),x.on(m.Events.ERROR,this.onError,this)},u._unregisterListeners=function(){var x=this.hls;x.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),x.off(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),x.off(m.Events.ERROR,this.onError,this)},u.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,h.prototype.destroy.call(this)},u.startLoad=function(){var x=this._levels;x.forEach(function(b){b.loadError=0}),h.prototype.startLoad.call(this)},u.onManifestLoaded=function(x,b){var P=[],R=[],C=[],S,_={},A,j=!1,I=!1,k=!1;if(b.levels.forEach(function(H){var W=H.attrs;j=j||!!(H.width&&H.height),I=I||!!H.videoCodec,k=k||!!H.audioCodec,l&&H.audioCodec&&H.audioCodec.indexOf("mp4a.40.34")!==-1&&(H.audioCodec=void 0);var L=H.bitrate+"-"+H.attrs.RESOLUTION+"-"+H.attrs.CODECS;A=_[L],A?A.url.push(H.url):(A=new v.Level(H),_[L]=A,P.push(A)),W&&(W.AUDIO&&Object(g.addGroupId)(A,"audio",W.AUDIO),W.SUBTITLES&&Object(g.addGroupId)(A,"text",W.SUBTITLES))}),(j||I)&&k&&(P=P.filter(function(H){var W=H.videoCodec,L=H.width,z=H.height;return!!W||!!(L&&z)})),P=P.filter(function(H){var W=H.audioCodec,L=H.videoCodec;return(!W||Object(O.isCodecSupportedInMp4)(W,"audio"))&&(!L||Object(O.isCodecSupportedInMp4)(L,"video"))}),b.audioTracks&&(R=b.audioTracks.filter(function(H){return!H.audioCodec||Object(O.isCodecSupportedInMp4)(H.audioCodec,"audio")}),Object(g.assignTrackIdsByGroup)(R)),b.subtitles&&(C=b.subtitles,Object(g.assignTrackIdsByGroup)(C)),P.length>0){S=P[0].bitrate,P.sort(function(H,W){return H.bitrate-W.bitrate}),this._levels=P;for(var J=0;J<P.length;J++)if(P[J].bitrate===S){this._firstLevel=J,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+S);break}var G=k&&!I,D={levels:P,audioTracks:R,subtitleTracks:C,firstLevel:this._firstLevel,stats:b.stats,audio:k,video:I,altAudio:!G&&R.some(function(H){return!!H.url})};this.hls.trigger(m.Events.MANIFEST_PARSED,D),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(m.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:b.url,reason:"no level with compatible codecs found in manifest"})},u.onError=function(x,b){if(h.prototype.onError.call(this,x,b),b.fatal)return;var P=b.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 C=!1,S=!0,_;switch(b.details){case y.ErrorDetails.FRAG_LOAD_ERROR:case y.ErrorDetails.FRAG_LOAD_TIMEOUT:case y.ErrorDetails.KEY_LOAD_ERROR:case y.ErrorDetails.KEY_LOAD_TIMEOUT:if(b.frag){var A=this._levels[b.frag.level];A?(A.fragmentError++,A.fragmentError>this.hls.config.fragLoadingMaxRetry&&(_=b.frag.level)):_=b.frag.level}break;case y.ErrorDetails.LEVEL_LOAD_ERROR:case y.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(S=!1),_=P.level),C=!0;break;case y.ErrorDetails.REMUX_ALLOC_ERROR:_=b.level,C=!0;break}_!==void 0&&this.recoverLevel(b,_,C,S)},u.recoverLevel=function(x,b,P,R){var C=x.details,S=this._levels[b];if(S.loadError++,P){var _=this.retryLoadingOrFail(x);if(_)x.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var A=S.url.length;if(A>1&&S.loadError<A)x.levelRetry=!0,this.redundantFailover(b);else if(this.manualLevelIndex===-1){var j=b===0?this._levels.length-1:b-1;this.currentLevelIndex!==j&&this._levels[j].loadError===0&&(this.warn(C+": switch to "+j),x.levelRetry=!0,this.hls.nextAutoLevel=j)}}},u.redundantFailover=function(x){var b=this._levels[x],P=b.url.length;if(P>1){var R=(b.urlId+1)%P;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(C){C.urlId=R}),this.level=x}},u.onFragLoaded=function(x,b){var P=b.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(x,b){var P,R=b.level,C=b.details,S=this._levels[R];if(!S){var _;this.warn("Invalid level index "+R),(_=b.deliveryDirectives)!==null&&_!==void 0&&_.skip&&(C.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(S.fragmentError===0&&(S.loadError=0,this.retryCount=0),this.playlistLoaded(R,b,S.details)):(P=b.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(C.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(x,b){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var R=-1,C=this.hls.audioTracks[b.id].groupId,S=0;S<P.audioGroupIds.length;S++)if(P.audioGroupIds[S]===C){R=S;break}R!==P.urlId&&(P.urlId=R,this.startLoad())}},u.loadPlaylist=function(x){var b=this.currentLevelIndex,P=this._levels[b];if(this.canLoad&&P&&P.url.length>0){var R=P.urlId,C=P.url[R];if(x)try{C=x.addDirectives(C)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("Attempt loading level index "+b+(x?" at sn "+x.msn+" part "+x.part:"")+" with URL-id "+R+" "+C),this.clearTimer(),this.hls.trigger(m.Events.LEVEL_LOADING,{url:C,level:b,id:R,deliveryDirectives:x||null})}},u.removeLevel=function(x,b){var P=function(S,_){return _!==b},R=this._levels.filter(function(C,S){return S!==x?!0:C.url.length>1&&b!==void 0?(C.url=C.url.filter(P),C.audioGroupIds&&(C.audioGroupIds=C.audioGroupIds.filter(P)),C.textGroupIds&&(C.textGroupIds=C.textGroupIds.filter(P)),C.urlId=0,!0):!1}).map(function(C,S){var _=C.details;return _!=null&&_.fragments&&_.fragments.forEach(function(A){A.level=S}),C});this._levels=R,this.hls.trigger(m.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(x){var b,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===x&&(b=P[x])!==null&&b!==void 0&&b.details)return;if(x<0||x>=P.length){var R=x<0;if(this.hls.trigger(m.Events.ERROR,{type:y.ErrorTypes.OTHER_ERROR,details:y.ErrorDetails.LEVEL_SWITCH_ERROR,level:x,fatal:R,reason:"invalid level idx"}),R)return;x=Math.min(x,P.length-1)}this.clearTimer();var C=this.currentLevelIndex,S=P[C],_=P[x];this.log("switching to level "+x+" from "+C),this.currentLevelIndex=x;var A=r({},_,{level:x,maxBitrate:_.maxBitrate,uri:_.uri,urlId:_.urlId});delete A._urlId,this.hls.trigger(m.Events.LEVEL_SWITCHING,A);var j=_.details;if(!j||j.live){var I=this.switchParams(_.uri,S==null?void 0:S.details);this.loadPlaylist(I)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(x){this.manualLevelIndex=x,this._startLevel===void 0&&(this._startLevel=x),x!==-1&&(this.level=x)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(x){this._firstLevel=x}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var x=this.hls.config.startLevel;return x!==void 0?x:this._firstLevel}else return this._startLevel},set:function(x){this._startLevel=x}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(x){this.level=x,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=x)}}]),s}(e.default)},"./src/controller/level-helper.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"addGroupId",function(){return y}),T.d(E,"assignTrackIdsByGroup",function(){return O}),T.d(E,"updatePTS",function(){return g}),T.d(E,"updateFragPTSDTS",function(){return f}),T.d(E,"mergeDetails",function(){return r}),T.d(E,"mapPartIntersection",function(){return c}),T.d(E,"mapFragmentIntersection",function(){return n}),T.d(E,"adjustSliding",function(){return a}),T.d(E,"addSliding",function(){return o}),T.d(E,"computeReloadInterval",function(){return l}),T.d(E,"getFragmentWithSN",function(){return d}),T.d(E,"getPartWith",function(){return h});var v=T("./src/polyfills/number.ts"),m=T("./src/utils/logger.ts");function y(s,u,w){switch(u){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(w);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(w);break}}function O(s){var u={};s.forEach(function(w){var x=w.groupId||"";w.id=u[x]=u[x]||0,u[x]++})}function g(s,u,w){var x=s[u],b=s[w];e(x,b)}function e(s,u){var w=u.startPTS;if(Object(v.isFiniteNumber)(w)){var x=0,b;u.sn>s.sn?(x=w-s.start,b=s):(x=s.start-w,b=u),b.duration!==x&&(b.duration=x)}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,w,x,b,P){var R=x-w;R<=0&&(m.logger.warn("Fragment should have a positive duration",u),x=w+u.duration,P=b+u.duration);var C=w,S=x,_=u.startPTS,A=u.endPTS;if(Object(v.isFiniteNumber)(_)){var j=Math.abs(_-w);Object(v.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(j,u.deltaPTS):u.deltaPTS=j,C=Math.max(w,_),w=Math.min(w,_),b=Math.min(b,u.startDTS),S=Math.min(x,A),x=Math.max(x,A),P=Math.max(P,u.endDTS)}u.duration=x-w;var I=w-u.start;u.appendedPTS=x,u.start=u.startPTS=w,u.maxStartPTS=C,u.startDTS=b,u.endPTS=x,u.minEndPTS=S,u.endDTS=P;var k=u.sn;if(!s||k<s.startSN||k>s.endSN)return 0;var J,G=k-s.startSN,D=s.fragments;for(D[G]=u,J=G;J>0;J--)e(D[J],D[J-1]);for(J=G;J<D.length-1;J++)e(D[J],D[J+1]);return s.fragmentHint&&e(D[D.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,I}function r(s,u){for(var w=null,x=s.fragments,b=x.length-1;b>=0;b--){var P=x[b].initSegment;if(P){w=P;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,C;if(n(s,u,function(J,G){J.relurl&&(R=J.cc-G.cc),Object(v.isFiniteNumber)(J.startPTS)&&Object(v.isFiniteNumber)(J.endPTS)&&(G.start=G.startPTS=J.startPTS,G.startDTS=J.startDTS,G.appendedPTS=J.appendedPTS,G.maxStartPTS=J.maxStartPTS,G.endPTS=J.endPTS,G.endDTS=J.endDTS,G.minEndPTS=J.minEndPTS,G.duration=J.endPTS-J.startPTS,G.duration&&(C=G),u.PTSKnown=u.alignedSliding=!0),G.elementaryStreams=J.elementaryStreams,G.loader=J.loader,G.stats=J.stats,G.urlId=J.urlId,J.initSegment&&(G.initSegment=J.initSegment,w=J.initSegment)}),w){var S=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;S.forEach(function(J){var G;(!J.initSegment||J.initSegment.relurl===((G=w)===null||G===void 0?void 0:G.relurl))&&(J.initSegment=w)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(J){return!J}),u.deltaUpdateFailed)){m.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var _=u.skippedSegments;_--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var A=u.fragments;if(R){m.logger.warn("discontinuity sliding from playlist, take drift into account");for(var j=0;j<A.length;j++)A[j].cc+=R}u.skippedSegments&&(u.startCC=u.fragments[0].cc),c(s.partList,u.partList,function(J,G){G.elementaryStreams=J.elementaryStreams,G.stats=J.stats}),C?f(u,C,C.startPTS,C.endPTS,C.startDTS,C.endDTS):a(s,u),A.length&&(u.totalduration=u.edge-A[0].start),u.driftStartTime=s.driftStartTime,u.driftStart=s.driftStart;var I=u.advancedDateTime;if(u.advanced&&I){var k=u.edge;u.driftStart||(u.driftStartTime=I,u.driftStart=k),u.driftEndTime=I,u.driftEnd=k}else u.driftEndTime=s.driftEndTime,u.driftEnd=s.driftEnd,u.advancedDateTime=s.advancedDateTime}function c(s,u,w){if(s&&u)for(var x=0,b=0,P=s.length;b<=P;b++){var R=s[b],C=u[b+x];R&&C&&R.index===C.index&&R.fragment.sn===C.fragment.sn?w(R,C):x--}}function n(s,u,w){for(var x=u.skippedSegments,b=Math.max(s.startSN,u.startSN)-u.startSN,P=(s.fragmentHint?1:0)+(x?u.endSN:Math.min(s.endSN,u.endSN))-u.startSN,R=u.startSN-s.startSN,C=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments,S=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments,_=b;_<=P;_++){var A=S[R+_],j=C[_];x&&!j&&_<x&&(j=u.fragments[_]=A),A&&j&&w(A,j)}}function a(s,u){var w=u.startSN+u.skippedSegments-s.startSN,x=s.fragments;if(w<0||w>=x.length)return;o(u,x[w].start)}function o(s,u){if(u){for(var w=s.fragments,x=s.skippedSegments;x<w.length;x++)w[x].start+=u;s.fragmentHint&&(s.fragmentHint.start+=u)}}function l(s,u){var w=1e3*s.levelTargetDuration,x=w/2,b=s.age,P=b>0&&b<w*3,R=u.loading.end-u.loading.start,C,S=s.availabilityDelay;if(s.updated===!1)if(P){var _=333*s.misses;C=Math.max(Math.min(x,R*2),_),s.availabilityDelay=(s.availabilityDelay||0)+C}else C=x;else P?(S=Math.min(S||w/2,b),s.availabilityDelay=S,C=S+w-b):C=w-R;return Math.round(C)}function d(s,u,w){if(!s||!s.details)return null;var x=s.details,b=x.fragments[u-x.startSN];return b||(b=x.fragmentHint,b&&b.sn===u?b:u<x.startSN&&w&&w.sn===u?w:null)}function h(s,u,w){if(!s||!s.details)return null;var x=s.details.partList;if(x)for(var b=x.length;b--;){var P=x[b];if(P.index===w&&P.fragment.sn===u)return P}return null}},"./src/controller/stream-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return x});var v=T("./src/polyfills/number.ts"),m=T("./src/controller/base-stream-controller.ts"),y=T("./src/is-supported.ts"),O=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"),c=T("./src/demux/transmuxer-interface.ts"),n=T("./src/types/transmuxer.ts"),a=T("./src/controller/gap-controller.ts"),o=T("./src/errors.ts"),l=T("./src/utils/logger.ts");function d(b,P){for(var R=0;R<P.length;R++){var C=P[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(b,C.key,C)}}function h(b,P,R){return P&&d(b.prototype,P),R&&d(b,R),b}function s(b,P){b.prototype=Object.create(P.prototype),b.prototype.constructor=b,u(b,P)}function u(b,P){return u=Object.setPrototypeOf||function(C,S){return C.__proto__=S,C},u(b,P)}var w=100,x=function(b){s(P,b);function P(C,S){var _;return _=b.call(this,C,S,"[stream-controller]")||this,_.audioCodecSwap=!1,_.gapController=null,_.level=-1,_._forceStartLoad=!1,_.altAudio=!1,_.audioOnly=!1,_.fragPlaying=null,_.onvplaying=null,_.onvseeked=null,_.fragLastKbps=0,_.stalled=!1,_.couldBacktrack=!1,_.audioCodecSwitch=!1,_.videoBuffer=null,_._registerListeners(),_}var R=P.prototype;return R._registerListeners=function(){var S=this.hls;S.on(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.on(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.on(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),S.on(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.on(O.Events.ERROR,this.onError,this),S.on(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.on(O.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(O.Events.BUFFER_CREATED,this.onBufferCreated,this),S.on(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.on(O.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.on(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R._unregisterListeners=function(){var S=this.hls;S.off(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.off(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.off(O.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.off(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.off(O.Events.ERROR,this.onError,this),S.off(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.off(O.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(O.Events.BUFFER_CREATED,this.onBufferCreated,this),S.off(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.off(O.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.off(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},R.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},R.startLoad=function(S){if(this.levels){var _=this.lastCurrentTime,A=this.hls;if(this.stopLoad(),this.setInterval(w),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var j=A.startLevel;j===-1&&(A.config.testBandwidth?(j=0,this.bitrateTest=!0):j=A.nextAutoLevel),this.level=A.nextLoadLevel=j,this.loadedmetadata=!1}_>0&&S===-1&&(this.log("Override startPosition with lastCurrentTime @"+_.toFixed(3)),S=_),this.state=m.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=S,this.tick()}else this._forceStartLoad=!0,this.state=m.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,b.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_LEVEL:{var S,_=this.levels,A=this.level,j=_==null||((S=_[A])===null||S===void 0)?void 0:S.details;if(j&&(!j.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(j))break;this.state=m.State.IDLE;break}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var I,k=self.performance.now(),J=this.retryDate;(!J||k>=J||(I=this.media)!==null&&I!==void 0&&I.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=m.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){b.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var S,_,A=this.hls,j=this.levelLastLoaded,I=this.levels,k=this.media,J=A.config,G=A.nextLoadLevel;if(j===null||!k&&(this.startFragRequested||!J.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!I||!I[G])return;var D=I[G];this.level=A.nextLoadLevel=G;var H=D.details;if(!H||this.state===m.State.WAITING_LEVEL||H.live&&this.levelLastLoaded!==G){this.state=m.State.WAITING_LEVEL;return}var W=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:k,f.PlaylistLevelType.MAIN);if(W===null)return;var L=W.len,z=this.getMaxBufferLength(D.maxBitrate);if(L>=z)return;if(this._streamEnded(W,H)){var ie={};this.altAudio&&(ie.type="video"),this.hls.trigger(O.Events.BUFFER_EOS,ie),this.state=m.State.ENDED;return}var ce=W.end,ue=this.getNextFragment(ce,H);if(this.couldBacktrack&&!this.fragPrevious&&ue&&ue.sn!=="initSegment"){var xe=ue.sn-H.startSN;xe>1&&(ue=H.fragments[xe-1],this.fragmentTracker.removeFragment(ue))}if(ue&&this.fragmentTracker.getState(ue)===e.FragmentState.OK&&this.nextLoadPosition>ce){var Te=this.audioOnly&&!this.altAudio?r.ElementaryStreamTypes.AUDIO:r.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(k,Te,f.PlaylistLevelType.MAIN),ue=this.getNextFragment(this.nextLoadPosition,H)}if(!ue)return;ue.initSegment&&!ue.initSegment.data&&!this.bitrateTest&&(ue=ue.initSegment),((S=ue.decryptdata)===null||S===void 0?void 0:S.keyFormat)==="identity"&&!((_=ue.decryptdata)!==null&&_!==void 0&&_.key)?this.loadKey(ue,H):this.loadFragment(ue,H,ce)},R.loadFragment=function(S,_,A){var j,I=this.fragmentTracker.getState(S);if(this.fragCurrent=S,I===e.FragmentState.BACKTRACKED){var k=this.fragmentTracker.getBacktrackData(S);if(k){this._handleFragmentLoadProgress(k),this._handleFragmentLoadComplete(k);return}else I=e.FragmentState.NOT_LOADED}I===e.FragmentState.NOT_LOADED||I===e.FragmentState.PARTIAL?S.sn==="initSegment"?this._loadInitSegment(S):this.bitrateTest?(S.bitrateTest=!0,this.log("Fragment "+S.sn+" of level "+S.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(S)):(this.startFragRequested=!0,b.prototype.loadFragment.call(this,S,_,A)):I===e.FragmentState.APPENDING?this.reduceMaxBufferLength(S.duration)&&this.fragmentTracker.removeFragment(S):((j=this.media)===null||j===void 0?void 0:j.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(S){var _=this.fragmentTracker.getAppendedFrag(S,f.PlaylistLevelType.MAIN);return _&&"fragment"in _?_.fragment:_},R.getBufferedFrag=function(S){return this.fragmentTracker.getBufferedFrag(S,f.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(S){return S?this.getBufferedFrag(S.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var S=this.levels,_=this.media;if(_!=null&&_.readyState){var A,j=this.getAppendedFrag(_.currentTime);if(j&&j.start>1&&this.flushMainBuffer(0,j.start-1),!_.paused&&S){var I=this.hls.nextLoadLevel,k=S[I],J=this.fragLastKbps;J&&this.fragCurrent?A=this.fragCurrent.duration*k.maxBitrate/(1e3*J)+1:A=0}else A=0;var G=this.getBufferedFrag(_.currentTime+A);if(G){var D=this.followingBufferedFrag(G);if(D){this.abortCurrentFrag();var H=D.maxStartPTS?D.maxStartPTS:D.start,W=D.duration,L=Math.max(G.end,H+Math.min(Math.max(W-this.config.maxFragLookUpTolerance,W*.5),W*.75));this.flushMainBuffer(L,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var S=this.fragCurrent;this.fragCurrent=null,S!=null&&S.loader&&S.loader.abort(),this.state===m.State.KEY_LOADING&&(this.state=m.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(S,_){b.prototype.flushMainBuffer.call(this,S,_,this.altAudio?"video":null)},R.onMediaAttached=function(S,_){b.prototype.onMediaAttached.call(this,S,_);var A=_.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),A.addEventListener("playing",this.onvplaying),A.addEventListener("seeked",this.onvseeked),this.gapController=new a.default(this.config,A,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var S=this.media;S&&(S.removeEventListener("playing",this.onvplaying),S.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),b.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var S=this.media,_=S?S.currentTime:null;Object(v.isFiniteNumber)(_)&&this.log("Media seeked to "+_.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(O.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(S,_){var A=!1,j=!1,I;_.levels.forEach(function(k){I=k.audioCodec,I&&(I.indexOf("mp4a.40.2")!==-1&&(A=!0),I.indexOf("mp4a.40.5")!==-1&&(j=!0))}),this.audioCodecSwitch=A&&j&&!Object(y.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=_.levels,this.startFragRequested=!1},R.onLevelLoading=function(S,_){var A=this.levels;if(!A||this.state!==m.State.IDLE)return;var j=A[_.level];(!j.details||j.details.live&&this.levelLastLoaded!==_.level||this.waitForCdnTuneIn(j.details))&&(this.state=m.State.WAITING_LEVEL)},R.onLevelLoaded=function(S,_){var A,j=this.levels,I=_.level,k=_.details,J=k.totalduration;if(!j){this.warn("Levels were reset while loading level "+I);return}this.log("Level "+I+" loaded ["+k.startSN+","+k.endSN+"], cc ["+k.startCC+", "+k.endCC+"] duration:"+J);var G=this.fragCurrent;G&&(this.state===m.State.FRAG_LOADING||this.state===m.State.FRAG_LOADING_WAITING_RETRY)&&(G.level!==_.level&&G.loader&&(this.state=m.State.IDLE,G.loader.abort()));var D=j[I],H=0;if(k.live||(A=D.details)!==null&&A!==void 0&&A.live){if(k.fragments[0]||(k.deltaUpdateFailed=!0),k.deltaUpdateFailed)return;H=this.alignPlaylists(k,D.details)}if(D.details=k,this.levelLastLoaded=I,this.hls.trigger(O.Events.LEVEL_UPDATED,{details:k,level:I}),this.state===m.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(k))return;this.state=m.State.IDLE}this.startFragRequested?k.live&&this.synchronizeToLiveEdge(k):this.setStartPosition(k,H),this.tick()},R._handleFragmentLoadProgress=function(S){var _,A=S.frag,j=S.part,I=S.payload,k=this.levels;if(!k){this.warn("Levels were reset while fragment load was in progress. Fragment "+A.sn+" of level "+A.level+" will not be buffered");return}var J=k[A.level],G=J.details;if(!G){this.warn("Dropping fragment "+A.sn+" of level "+A.level+" after level details were reset");return}var D=J.videoCodec,H=G.PTSKnown||!G.live,W=(_=A.initSegment)===null||_===void 0?void 0:_.data,L=this._getAudioCodec(J),z=this.transmuxer=this.transmuxer||new c.default(this.hls,f.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ie=j?j.index:-1,ce=ie!==-1,ue=new n.ChunkMetadata(A.level,A.sn,A.stats.chunkCount,I.byteLength,ie,ce),xe=this.initPTS[A.cc];z.push(I,W,L,D,A,j,G.totalduration,H,ue,xe)},R.onAudioTrackSwitching=function(S,_){var A=this.altAudio,j=!!_.url,I=_.id;if(!j){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var k=this.fragCurrent;k!=null&&k.loader&&(this.log("Switching to main audio track, cancel main fragment load"),k.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var J=this.hls;A&&J.trigger(O.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),J.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:I})}},R.onAudioTrackSwitched=function(S,_){var A=_.id,j=!!this.hls.audioTracks[A].url;if(j){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=j,this.tick()},R.onBufferCreated=function(S,_){var A=_.tracks,j,I,k=!1;for(var J in A){var G=A[J];if(G.id==="main"){if(I=J,j=G,J==="video"){var D=A[J];D&&(this.videoBuffer=D.buffer)}}else k=!0}k&&j?(this.log("Alternate track found, use "+I+".buffered to schedule main fragment loading"),this.mediaBuffer=j.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(S,_){var A=_.frag,j=_.part;if(A&&A.type!==f.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(A)){this.warn("Fragment "+A.sn+(j?" p: "+j.index:"")+" of level "+A.level+" finished buffering, but was aborted. state: "+this.state),this.state===m.State.PARSED&&(this.state=m.State.IDLE);return}var I=j?j.stats:A.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),A.sn!=="initSegment"&&(this.fragPrevious=A),this.fragBufferedComplete(A,j)},R.onError=function(S,_){switch(_.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f.PlaylistLevelType.MAIN,_);break;case o.ErrorDetails.LEVEL_LOAD_ERROR:case o.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==m.State.ERROR&&(_.fatal?(this.warn(""+_.details),this.state=m.State.ERROR):!_.levelRetry&&this.state===m.State.WAITING_LEVEL&&(this.state=m.State.IDLE));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(_.parent==="main"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var A=!0,j=this.getFwdBufferInfo(this.media,f.PlaylistLevelType.MAIN);j&&j.len>.5&&(A=!this.reduceMaxBufferLength(j.len)),A&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var S=this.media,_=this.gapController;if(!S||!_||!S.readyState)return;var A=g.BufferHelper.getBuffered(S);!this.loadedmetadata&&A.length?(this.loadedmetadata=!0,this.seekToStartPos()):_.poll(this.lastCurrentTime),this.lastCurrentTime=S.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=m.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(S,_){var A=_.type;if(A!==r.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var j=(A===r.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(j,A,f.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(S,_){this.levels=_.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var S=this.media,_=S.currentTime,A=this.startPosition;if(A>=0&&_<A){if(S.seeking){l.logger.log("could not seek to "+A+", already seeking at "+_);return}var j=g.BufferHelper.getBuffered(S),I=j.length?j.start(0):0,k=I-A;k>0&&(k<this.config.maxBufferHole||k<this.config.maxFragLookUpTolerance)&&(l.logger.log("adjusting start position by "+k+" to match buffer start"),A+=k,this.startPosition=A),this.log("seek to target start position "+A+" from current time "+_),S.currentTime=A}},R._getAudioCodec=function(S){var _=this.config.defaultAudioCodec||S.audioCodec;return this.audioCodecSwap&&_&&(this.log("Swapping audio codec"),_.indexOf("mp4a.40.5")!==-1?_="mp4a.40.2":_="mp4a.40.5"),_},R._loadBitrateTestFrag=function(S){var _=this;this._doFragLoad(S).then(function(A){var j=_.hls;if(!A||j.nextLoadLevel||_.fragContextChanged(S))return;_.fragLoadError=0,_.state=m.State.IDLE,_.startFragRequested=!1,_.bitrateTest=!1;var I=S.stats;I.parsing.start=I.parsing.end=I.buffering.start=I.buffering.end=self.performance.now(),j.trigger(O.Events.FRAG_LOADED,A)})},R._handleTransmuxComplete=function(S){var _,A="main",j=this.hls,I=S.remuxResult,k=S.chunkMeta,J=this.getCurrentContext(k);if(!J){this.warn("The loading context changed while buffering fragment "+k.sn+" of level "+k.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(k.level);return}var G=J.frag,D=J.part,H=J.level,W=I.video,L=I.text,z=I.id3,ie=I.initSegment,ce=this.altAudio?void 0:I.audio;if(this.fragContextChanged(G))return;if(this.state=m.State.PARSING,ie){ie.tracks&&(this._bufferInitSegment(H,ie.tracks,G,k),j.trigger(O.Events.FRAG_PARSING_INIT_SEGMENT,{frag:G,id:A,tracks:ie.tracks}));var ue=ie.initPTS,xe=ie.timescale;Object(v.isFiniteNumber)(ue)&&(this.initPTS[G.cc]=ue,j.trigger(O.Events.INIT_PTS_FOUND,{frag:G,id:A,initPTS:ue,timescale:xe}))}if(W&&I.independent!==!1){if(H.details){var Te=W.startPTS,de=W.endPTS,ve=W.startDTS,_e=W.endDTS;if(D)D.elementaryStreams[W.type]={startPTS:Te,endPTS:de,startDTS:ve,endDTS:_e};else if(W.firstKeyFrame&&W.independent&&(this.couldBacktrack=!0),W.dropped&&W.independent){var le=this.getLoadPosition()+this.config.maxBufferHole;if(le<Te){this.backtrack(G);return}G.setElementaryStreamInfo(W.type,G.start,de,G.start,_e,!0)}G.setElementaryStreamInfo(W.type,Te,de,ve,_e),this.bufferFragmentData(W,G,D,k)}}else if(I.independent===!1){this.backtrack(G);return}if(ce){var ee=ce.startPTS,U=ce.endPTS,K=ce.startDTS,X=ce.endDTS;D&&(D.elementaryStreams[r.ElementaryStreamTypes.AUDIO]={startPTS:ee,endPTS:U,startDTS:K,endDTS:X}),G.setElementaryStreamInfo(r.ElementaryStreamTypes.AUDIO,ee,U,K,X),this.bufferFragmentData(ce,G,D,k)}if(z!=null&&(_=z.samples)!==null&&_!==void 0&&_.length){var Q={frag:G,id:A,samples:z.samples};j.trigger(O.Events.FRAG_PARSING_METADATA,Q)}if(L){var te={frag:G,id:A,samples:L.samples};j.trigger(O.Events.FRAG_PARSING_USERDATA,te)}},R._bufferInitSegment=function(S,_,A,j){var I=this;if(this.state!==m.State.PARSING)return;this.audioOnly=!!_.audio&&!_.video,this.altAudio&&!this.audioOnly&&delete _.audio;var k=_.audio,J=_.video,G=_.audiovideo;if(k){var D=S.audioCodec,H=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(D&&(D.indexOf("mp4a.40.5")!==-1?D="mp4a.40.2":D="mp4a.40.5"),k.metadata.channelCount!==1&&H.indexOf("firefox")===-1&&(D="mp4a.40.5")),H.indexOf("android")!==-1&&k.container!=="audio/mpeg"&&(D="mp4a.40.2",this.log("Android: force audio codec to "+D)),S.audioCodec&&S.audioCodec!==D&&this.log('Swapping manifest audio codec "'+S.audioCodec+'" for "'+D+'"'),k.levelCodec=D,k.id="main",this.log("Init audio buffer, container:"+k.container+", codecs[selected/level/parsed]=["+(D||"")+"/"+(S.audioCodec||"")+"/"+k.codec+"]")}J&&(J.levelCodec=S.videoCodec,J.id="main",this.log("Init video buffer, container:"+J.container+", codecs[level/parsed]=["+(S.videoCodec||"")+"/"+J.codec+"]")),G&&this.log("Init audiovideo buffer, container:"+G.container+", codecs[level/parsed]=["+(S.attrs.CODECS||"")+"/"+G.codec+"]"),this.hls.trigger(O.Events.BUFFER_CODECS,_),Object.keys(_).forEach(function(W){var L=_[W],z=L.initSegment;z!=null&&z.byteLength&&I.hls.trigger(O.Events.BUFFER_APPENDING,{type:W,data:z,frag:A,part:null,chunkMeta:j,parent:A.type})}),this.tick()},R.backtrack=function(S){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(S);var _=this.fragmentTracker.backtrack(S);this.fragPrevious=null,this.nextLoadPosition=S.start,_?this.resetFragmentLoading(S):this.state=m.State.BACKTRACKING},R.checkFragmentChanged=function(){var S=this.media,_=null;if(S&&S.readyState>1&&S.seeking===!1){var A=S.currentTime;if(g.BufferHelper.isBuffered(S,A)?_=this.getAppendedFrag(A):g.BufferHelper.isBuffered(S,A+.1)&&(_=this.getAppendedFrag(A+.1)),_){var j=this.fragPlaying,I=_.level;(!j||_.sn!==j.sn||j.level!==I||_.urlId!==j.urlId)&&(this.hls.trigger(O.Events.FRAG_CHANGED,{frag:_}),(!j||j.level!==I)&&this.hls.trigger(O.Events.LEVEL_SWITCHED,{level:I}),this.fragPlaying=_)}}},h(P,[{key:"nextLevel",get:function(){var S=this.nextBufferedFrag;return S?S.level:-1}},{key:"currentLevel",get:function(){var S=this.media;if(S){var _=this.getAppendedFrag(S.currentTime);if(_)return _.level}return-1}},{key:"nextBufferedFrag",get:function(){var S=this.media;if(S){var _=this.getAppendedFrag(S.currentTime);return this.followingBufferedFrag(_)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(m.default)},"./src/controller/subtitle-stream-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"SubtitleStreamController",function(){return s});var v=T("./src/events.ts"),m=T("./src/utils/logger.ts"),y=T("./src/utils/buffer-helper.ts"),O=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"),c=T("./src/types/loader.ts"),n=T("./src/types/level.ts");function a(u,w){for(var x=0;x<w.length;x++){var b=w[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}function o(u,w,x){return w&&a(u.prototype,w),x&&a(u,x),u}function l(u,w){u.prototype=Object.create(w.prototype),u.prototype.constructor=u,d(u,w)}function d(u,w){return d=Object.setPrototypeOf||function(b,P){return b.__proto__=P,b},d(u,w)}var h=500,s=function(u){l(w,u);function w(b,P){var R;return R=u.call(this,b,P,"[subtitle-stream-controller]")||this,R.levels=[],R.currentTrackId=-1,R.tracksBuffered=[],R.mainDetails=null,R._registerListeners(),R}var x=w.prototype;return x.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},x._registerListeners=function(){var P=this.hls;P.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.on(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.on(v.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.on(v.Events.ERROR,this.onError,this),P.on(v.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.on(v.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.on(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.on(v.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.on(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},x._unregisterListeners=function(){var P=this.hls;P.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.off(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.off(v.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.off(v.Events.ERROR,this.onError,this),P.off(v.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.off(v.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.off(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.off(v.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.off(v.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},x.startLoad=function(){this.stopLoad(),this.state=r.State.IDLE,this.setInterval(h),this.tick()},x.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},x.onLevelLoaded=function(P,R){this.mainDetails=R.details},x.onSubtitleFragProcessed=function(P,R){var C=R.frag,S=R.success;if(this.fragPrevious=C,this.state=r.State.IDLE,!S)return;var _=this.tracksBuffered[this.currentTrackId];if(!_)return;for(var A,j=C.start,I=0;I<_.length;I++)if(j>=_[I].start&&j<=_[I].end){A=_[I];break}var k=C.start+C.duration;A?A.end=k:(A={start:j,end:k},_.push(A)),this.fragmentTracker.fragBuffered(C)},x.onBufferFlushing=function(P,R){var C=R.startOffset,S=R.endOffset;if(C===0&&S!==Number.POSITIVE_INFINITY){var _=this.currentTrackId,A=this.levels;if(!A.length||!A[_]||!A[_].details)return;var j=A[_].details,I=j.targetduration,k=S-I;if(k<=0)return;R.endOffsetSubtitles=Math.max(0,k),this.tracksBuffered.forEach(function(J){for(var G=0;G<J.length;){if(J[G].end<=k){J.shift();continue}else if(J[G].start<k)J[G].start=k;else break;G++}}),this.fragmentTracker.removeFragmentsInRange(C,k,c.PlaylistLevelType.SUBTITLE)}},x.onError=function(P,R){var C,S=R.frag;if(!S||S.type!==c.PlaylistLevelType.SUBTITLE)return;(C=this.fragCurrent)!==null&&C!==void 0&&C.loader&&this.fragCurrent.loader.abort(),this.state=r.State.IDLE},x.onSubtitleTracksUpdated=function(P,R){var C=this,S=R.subtitleTracks;this.tracksBuffered=[],this.levels=S.map(function(_){return new n.Level(_)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(_){C.tracksBuffered[_.id]=[]}),this.mediaBuffer=null},x.onSubtitleTrackSwitch=function(P,R){if(this.currentTrackId=R.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var C=this.levels[this.currentTrackId];C!=null&&C.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,C&&this.setInterval(h)},x.onSubtitleTrackLoaded=function(P,R){var C,S=R.details,_=R.id,A=this.currentTrackId,j=this.levels;if(!j.length)return;var I=j[A];if(_>=j.length||_!==A||!I)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(C=I.details)!==null&&C!==void 0&&C.live){var k=this.mainDetails;if(S.deltaUpdateFailed||!k)return;var J=k.fragments[0];if(!I.details)S.hasProgramDateTime&&k.hasProgramDateTime?Object(g.alignMediaPlaylistByPDT)(S,k):J&&Object(e.addSliding)(S,J.start);else{var G=this.alignPlaylists(S,I.details);G===0&&J&&Object(e.addSliding)(S,J.start)}}if(I.details=S,this.levelLastLoaded=_,this.tick(),S.live&&!this.fragCurrent&&this.media&&this.state===r.State.IDLE){var D=Object(O.findFragmentByPTS)(null,S.fragments,this.media.currentTime,0);D||(this.warn("Subtitle playlist not aligned with playback"),I.details=void 0)}},x._handleFragmentLoadComplete=function(P){var R=P.frag,C=P.payload,S=R.decryptdata,_=this.hls;if(this.fragContextChanged(R))return;if(C&&C.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var A=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(C),S.key.buffer,S.iv.buffer).then(function(j){var I=performance.now();_.trigger(v.Events.FRAG_DECRYPTED,{frag:R,payload:j,stats:{tstart:A,tdecrypt:I}})})}},x.doTick=function(){if(!this.media){this.state=r.State.IDLE;return}if(this.state===r.State.IDLE){var P,R=this.currentTrackId,C=this.levels;if(!C.length||!C[R]||!C[R].details)return;var S=C[R].details,_=S.targetduration,A=this.config,j=this.media,I=y.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,j.currentTime-_,A.maxBufferHole),k=I.end,J=I.len,G=this.getMaxBufferLength()+_;if(J>G)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var D=S.fragments,H=D.length,W=S.edge,L,z=this.fragPrevious;if(k<W){var ie=A.maxFragLookUpTolerance;z&&S.hasProgramDateTime&&(L=Object(O.findFragmentByPDT)(D,z.endProgramDateTime,ie)),L||(L=Object(O.findFragmentByPTS)(z,D,k,ie),!L&&z&&z.start<D[0].start&&(L=D[0]))}else L=D[H-1];(P=L)!==null&&P!==void 0&&P.encrypted?(m.logger.log("Loading key for "+L.sn),this.state=r.State.KEY_LOADING,this.hls.trigger(v.Events.KEY_LOADING,{frag:L})):L&&this.fragmentTracker.getState(L)===f.FragmentState.NOT_LOADED&&this.loadFragment(L,S,k)}},x.loadFragment=function(P,R,C){this.fragCurrent=P,u.prototype.loadFragment.call(this,P,R,C)},o(w,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),w}(r.default)},"./src/controller/subtitle-track-controller.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/events.ts"),m=T("./src/utils/texttrack-utils.ts"),y=T("./src/controller/base-playlist-controller.ts"),O=T("./src/types/loader.ts");function g(a,o){for(var l=0;l<o.length;l++){var d=o[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function e(a,o,l){return o&&g(a.prototype,o),l&&g(a,l),a}function f(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,r(a,o)}function r(a,o){return r=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},r(a,o)}var c=function(a){f(o,a);function o(d){var h;return h=a.call(this,d,"[subtitle-track-controller]")||this,h.media=null,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.selectDefaultTrack=!0,h.queuedDefaultTrack=-1,h.trackChangeListener=function(){return h.onTextTracksChanged()},h.asyncPollTrackChange=function(){return h.pollTrackChange(0)},h.useTextTrackPolling=!1,h.subtitlePollingInterval=-1,h.subtitleDisplay=!0,h.registerListeners(),h}var l=o.prototype;return l.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,a.prototype.destroy.call(this)},l.registerListeners=function(){var h=this.hls;h.on(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(v.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.on(v.Events.ERROR,this.onError,this)},l.unregisterListeners=function(){var h=this.hls;h.off(v.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(v.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(v.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(v.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(v.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(v.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(v.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.off(v.Events.ERROR,this.onError,this)},l.onMediaAttached=function(h,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)},l.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},l.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 h=n(this.media.textTracks);h.forEach(function(s){Object(m.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},l.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},l.onManifestParsed=function(h,s){this.tracks=s.subtitleTracks},l.onSubtitleTrackLoaded=function(h,s){var u=s.id,w=s.details,x=this.trackId,b=this.tracksInGroup[x];if(!b){this.warn("Invalid subtitle track id "+u);return}var P=b.details;b.details=s.details,this.log("subtitle track "+u+" loaded ["+w.startSN+"-"+w.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,s,P))},l.onLevelLoading=function(h,s){this.switchLevel(s.level)},l.onLevelSwitching=function(h,s){this.switchLevel(s.level)},l.switchLevel=function(h){var s=this.hls.levels[h];if(!(s!=null&&s.textGroupIds))return;var u=s.textGroupIds[s.urlId];if(this.groupId!==u){var w=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,x=this.tracks.filter(function(R){return!u||R.groupId===u});this.tracksInGroup=x;var b=this.findTrackId(w==null?void 0:w.name)||this.findTrackId();this.groupId=u;var P={subtitleTracks:x};this.log("Updating subtitle tracks, "+x.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(v.Events.SUBTITLE_TRACKS_UPDATED,P),b!==-1&&this.setSubtitleTrack(b,w)}},l.findTrackId=function(h){for(var s=this.tracksInGroup,u=0;u<s.length;u++){var w=s[u];if((!this.selectDefaultTrack||w.default)&&(!h||h===w.name))return w.id}return-1},l.onError=function(h,s){if(a.prototype.onError.call(this,h,s),s.fatal||!s.context)return;s.context.type===O.PlaylistContextType.SUBTITLE_TRACK&&s.context.id===this.trackId&&s.context.groupId===this.groupId&&this.retryLoadingOrFail(s)},l.loadPlaylist=function(h){var s=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(s)){var u=s.id,w=s.groupId,x=s.url;if(h)try{x=h.addDirectives(x)}catch(b){this.warn("Could not construct new URL with HLS Delivery Directives: "+b)}this.log("Loading subtitle playlist for id "+u),this.hls.trigger(v.Events.SUBTITLE_TRACK_LOADING,{url:x,id:u,groupId:w,deliveryDirectives:h||null})}},l.toggleTrackModes=function(h){var s=this,u=this.media,w=this.subtitleDisplay,x=this.trackId;if(!u)return;var b=n(u.textTracks),P=b.filter(function(S){return S.groupId===s.groupId});if(h===-1)[].slice.call(b).forEach(function(S){S.mode="disabled"});else{var R=P[x];R&&(R.mode="disabled")}var C=P[h];C&&(C.mode=w?"showing":"hidden")},l.setSubtitleTrack=function(h,s){var u,w=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=h;return}if(this.trackId!==h&&this.toggleTrackModes(h),this.trackId===h&&(h===-1||(u=w[h])!==null&&u!==void 0&&u.details)||h<-1||h>=w.length)return;this.clearTimer();var x=w[h];if(this.log("Switching to subtitle track "+h),this.trackId=h,x){var b=x.id,P=x.groupId,R=P===void 0?"":P,C=x.name,S=x.type,_=x.url;this.hls.trigger(v.Events.SUBTITLE_TRACK_SWITCH,{id:b,groupId:R,name:C,type:S,url:_});var A=this.switchParams(x.url,s==null?void 0:s.details);this.loadPlaylist(A)}else this.hls.trigger(v.Events.SUBTITLE_TRACK_SWITCH,{id:h})},l.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,s=n(this.media.textTracks),u=0;u<s.length;u++)if(s[u].mode==="hidden")h=u;else if(s[u].mode==="showing"){h=u;break}this.subtitleTrack!==h&&(this.subtitleTrack=h)},e(o,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1;var s=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(h,s)}}]),o}(y.default);function n(a){for(var o=[],l=0;l<a.length;l++){var d=a[l];d.kind==="subtitles"&&d.label&&o.push(a[l])}return o}E.default=c},"./src/controller/timeline-controller.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"TimelineController",function(){return n});var v=T("./src/polyfills/number.ts"),m=T("./src/events.ts"),y=T("./src/utils/cea-608-parser.ts"),O=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"),c=T("./src/utils/logger.ts"),n=function(){function d(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=l(),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 O.default(this,"textTrack1"),w=new O.default(this,"textTrack2"),x=new O.default(this,"textTrack3"),b=new O.default(this,"textTrack4");this.cea608Parser1=new y.default(1,u,w),this.cea608Parser2=new y.default(3,x,b)}s.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),s.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),s.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),s.on(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),s.on(m.Events.FRAG_LOADING,this.onFragLoading,this),s.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),s.on(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),s.on(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),s.on(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),s.on(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),s.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var h=d.prototype;return h.destroy=function(){var u=this.hls;u.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),u.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),u.off(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),u.off(m.Events.FRAG_LOADING,this.onFragLoading,this),u.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),u.off(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),u.off(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),u.off(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),u.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},h.addCues=function(u,w,x,b,P){for(var R=!1,C=P.length;C--;){var S=P[C],_=o(S[0],S[1],w,x);if(_>=0&&(S[0]=Math.min(S[0],w),S[1]=Math.max(S[1],x),R=!0,_/(x-w)>.5))return}if(R||P.push([w,x]),this.config.renderTextTracksNatively){var A=this.captionsTracks[u];this.Cues.newCue(A,w,x,b)}else{var j=this.Cues.newCue(null,w,x,b);this.hls.trigger(m.Events.CUES_PARSED,{type:"captions",cues:j,track:u})}},h.onInitPtsFound=function(u,w){var x=this,b=w.frag,P=w.id,R=w.initPTS,C=w.timescale,S=this.unparsedVttFrags;P==="main"&&(this.initPTS[b.cc]=R,this.timescale[b.cc]=C),S.length&&(this.unparsedVttFrags=[],S.forEach(function(_){x.onFragLoaded(m.Events.FRAG_LOADED,_)}))},h.getExistingTrack=function(u){var w=this.media;if(w)for(var x=0;x<w.textTracks.length;x++){var b=w.textTracks[x];if(b[u])return b}return null},h.createCaptionsTrack=function(u){this.config.renderTextTracksNatively?this.createNativeTrack(u):this.createNonNativeTrack(u)},h.createNativeTrack=function(u){if(this.captionsTracks[u])return;var w=this.captionsProperties,x=this.captionsTracks,b=this.media,P=w[u],R=P.label,C=P.languageCode,S=this.getExistingTrack(u);if(S)x[u]=S,Object(e.clearCurrentCues)(x[u]),Object(e.sendAddTrackEvent)(x[u],b);else{var _=this.createTextTrack("captions",R,C);_&&(_[u]=!0,x[u]=_)}},h.createNonNativeTrack=function(u){if(this.nonNativeCaptionsTracks[u])return;var w=this.captionsProperties[u];if(!w)return;var x=w.label,b={_id:u,label:x,kind:"captions",default:w.media?!!w.media.default:!1,closedCaptions:w.media};this.nonNativeCaptionsTracks[u]=b,this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[b]})},h.createTextTrack=function(u,w,x){var b=this.media;return b?b.addTextTrack(u,w,x):void 0},h.onMediaAttaching=function(u,w){this.media=w.media,this._cleanTracks()},h.onMediaDetaching=function(){var u=this.captionsTracks;Object.keys(u).forEach(function(w){Object(e.clearCurrentCues)(u[w]),delete u[w]}),this.nonNativeCaptionsTracks={}},h.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=l(),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())},h._cleanTracks=function(){var u=this.media;if(!u)return;var w=u.textTracks;if(w)for(var x=0;x<w.length;x++)Object(e.clearCurrentCues)(w[x])},h.onSubtitleTracksUpdated=function(u,w){var x=this;this.textTracks=[];var b=w.subtitleTracks||[],P=b.some(function(_){return _.textCodec===f.IMSC1_CODEC});if(this.config.enableWebVTT||P&&this.config.enableIMSC1){var R=this.tracks&&b&&this.tracks.length===b.length;if(this.tracks=b||[],this.config.renderTextTracksNatively){var C=this.media?this.media.textTracks:[];this.tracks.forEach(function(_,A){var j;if(A<C.length){for(var I=null,k=0;k<C.length;k++)if(a(C[k],_)){I=C[k];break}I&&(j=I)}j?Object(e.clearCurrentCues)(j):(j=x.createTextTrack("subtitles",_.name,_.lang),j&&(j.mode="disabled")),j&&(j.groupId=_.groupId,x.textTracks.push(j))})}else if(!R&&this.tracks&&this.tracks.length){var S=this.tracks.map(function(_){return{label:_.name,kind:_.type.toLowerCase(),default:_.default,subtitleTrack:_}});this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:S})}}},h.onManifestLoaded=function(u,w){var x=this;this.config.enableCEA708Captions&&w.captions&&w.captions.forEach(function(b){var P=/(?:CC|SERVICE)([1-4])/.exec(b.instreamId);if(!P)return;var R="textTrack"+P[1],C=x.captionsProperties[R];if(!C)return;C.label=b.name,b.lang&&(C.languageCode=b.lang),C.media=b})},h.onFragLoading=function(u,w){var x=this.cea608Parser1,b=this.cea608Parser2,P=this.lastSn,R=this.lastPartIndex;if(!this.enabled||!(x&&b))return;if(w.frag.type===r.PlaylistLevelType.MAIN){var C,S,_=w.frag.sn,A=(C=w==null||((S=w.part)===null||S===void 0)?void 0:S.index)!=null?C:-1;_===P+1||_===P&&A===R+1||(x.reset(),b.reset()),this.lastSn=_,this.lastPartIndex=A}},h.onFragLoaded=function(u,w){var x=w.frag,b=w.payload,P=this.initPTS,R=this.unparsedVttFrags;if(x.type===r.PlaylistLevelType.SUBTITLE)if(b.byteLength){if(!Object(v.isFiniteNumber)(P[x.cc])){R.push(w),P.length&&this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Missing initial subtitle PTS")});return}var C=x.decryptdata;if(C==null||C.key==null||C.method!=="AES-128"){var S=this.tracks[x.level],_=this.vttCCs;_[x.cc]||(_[x.cc]={start:x.start,prevCC:this.prevCC,new:!0},this.prevCC=x.cc),S&&S.textCodec===f.IMSC1_CODEC?this._parseIMSC1(x,b):this._parseVTTs(x,b,_)}}else this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Empty subtitle payload")})},h._parseIMSC1=function(u,w){var x=this,b=this.hls;Object(f.parseIMSC1)(w,this.initPTS[u.cc],this.timescale[u.cc],function(P){x._appendCues(P,u.level),b.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(P){c.logger.log("Failed to parse IMSC1: "+P),b.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:P})})},h._parseVTTs=function(u,w,x){var b=this,P=this.hls;Object(g.parseWebVTT)(w,this.initPTS[u.cc],this.timescale[u.cc],x,u.cc,u.start,function(R){b._appendCues(R,u.level),P.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(R){b._fallbackToIMSC1(u,w),c.logger.log("Failed to parse VTT cue: "+R),P.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:R})})},h._fallbackToIMSC1=function(u,w){var x=this,b=this.tracks[u.level];b.textCodec||Object(f.parseIMSC1)(w,this.initPTS[u.cc],this.timescale[u.cc],function(){b.textCodec=f.IMSC1_CODEC,x._parseIMSC1(u,w)},function(){b.textCodec="wvtt"})},h._appendCues=function(u,w){var x=this.hls;if(this.config.renderTextTracksNatively){var b=this.textTracks[w];if(b.mode==="disabled")return;u.forEach(function(C){return Object(e.addCueToTrack)(b,C)})}else{var P=this.tracks[w],R=P.default?"default":"subtitles"+w;x.trigger(m.Events.CUES_PARSED,{type:"subtitles",cues:u,track:R})}},h.onFragDecrypted=function(u,w){var x=w.frag;if(x.type===r.PlaylistLevelType.SUBTITLE){if(!Object(v.isFiniteNumber)(this.initPTS[x.cc])){this.unparsedVttFrags.push(w);return}this.onFragLoaded(m.Events.FRAG_LOADED,w)}},h.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},h.onFragParsingUserdata=function(u,w){var x=this.cea608Parser1,b=this.cea608Parser2;if(!this.enabled||!(x&&b))return;for(var P=0;P<w.samples.length;P++){var R=w.samples[P].bytes;if(R){var C=this.extractCea608Data(R);x.addData(w.samples[P].pts,C[0]),b.addData(w.samples[P].pts,C[1])}}},h.onBufferFlushing=function(u,w){var x=w.startOffset,b=w.endOffset,P=w.endOffsetSubtitles,R=w.type,C=this.media;if(!C||C.currentTime<b)return;if(!R||R==="video"){var S=this.captionsTracks;Object.keys(S).forEach(function(A){return Object(e.removeCuesInRange)(S[A],x,b)})}if(this.config.renderTextTracksNatively&&(x===0&&P!==void 0)){var _=this.textTracks;Object.keys(_).forEach(function(A){return Object(e.removeCuesInRange)(_[A],x,P)})}},h.extractCea608Data=function(u){for(var w=u[0]&31,x=2,b=[[],[]],P=0;P<w;P++){var R=u[x++],C=127&u[x++],S=127&u[x++],_=(4&R)!==0,A=3&R;if(C===0&&S===0)continue;_&&((A===0||A===1)&&(b[A].push(C),b[A].push(S)))}return b},d}();function a(d,h){return d&&d.label===h.name&&!(d.textTrack1||d.textTrack2)}function o(d,h,s,u){return Math.min(h,u)-Math.max(d,s)}function l(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return v});var v=function(){function m(O,g){this.subtle=void 0,this.aesIV=void 0,this.subtle=O,this.aesIV=g}var y=m.prototype;return y.decrypt=function(g,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,g)},m}()},"./src/crypt/aes-decryptor.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"removePadding",function(){return m}),T.d(E,"default",function(){return y});var v=T("./src/utils/typed-array.ts");function m(O){var g=O.byteLength,e=g&&new DataView(O.buffer).getUint8(g-1);return e?Object(v.sliceUint8)(O,0,g-e):O}var y=function(){function O(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var g=O.prototype;return g.uint8ArrayToUint32Array_=function(f){for(var r=new DataView(f),c=new Uint32Array(4),n=0;n<4;n++)c[n]=r.getUint32(n*4);return c},g.initTable=function(){var f=this.sBox,r=this.invSBox,c=this.subMix,n=c[0],a=c[1],o=c[2],l=c[3],d=this.invSubMix,h=d[0],s=d[1],u=d[2],w=d[3],x=new Uint32Array(256),b=0,P=0,R=0;for(R=0;R<256;R++)R<128?x[R]=R<<1:x[R]=R<<1^283;for(R=0;R<256;R++){var C=P^P<<1^P<<2^P<<3^P<<4;C=C>>>8^C&255^99,f[b]=C,r[C]=b;var S=x[b],_=x[S],A=x[_],j=x[C]*257^C*16843008;n[b]=j<<24|j>>>8,a[b]=j<<16|j>>>16,o[b]=j<<8|j>>>24,l[b]=j,j=A*16843009^_*65537^S*257^b*16843008,h[C]=j<<24|j>>>8,s[C]=j<<16|j>>>16,u[C]=j<<8|j>>>24,w[C]=j,b?(b=S^x[x[x[A^S]]],P^=x[x[P]]):b=P=1}},g.expandKey=function(f){for(var r=this.uint8ArrayToUint32Array_(f),c=!0,n=0;n<r.length&&c;)c=r[n]===this.key[n],n++;if(c)return;this.key=r;var a=this.keySize=r.length;if(a!==4&&a!==6&&a!==8)throw new Error("Invalid aes key size="+a);var o=this.ksRows=(a+6+1)*4,l,d,h=this.keySchedule=new Uint32Array(o),s=this.invKeySchedule=new Uint32Array(o),u=this.sBox,w=this.rcon,x=this.invSubMix,b=x[0],P=x[1],R=x[2],C=x[3],S,_;for(l=0;l<o;l++){if(l<a){S=h[l]=r[l];continue}_=S,l%a===0?(_=_<<8|_>>>24,_=u[_>>>24]<<24|u[_>>>16&255]<<16|u[_>>>8&255]<<8|u[_&255],_^=w[l/a|0]<<24):a>6&&l%a===4&&(_=u[_>>>24]<<24|u[_>>>16&255]<<16|u[_>>>8&255]<<8|u[_&255]),h[l]=S=(h[l-a]^_)>>>0}for(d=0;d<o;d++)l=o-d,d&3?_=h[l]:_=h[l-4],d<4||l<=4?s[d]=_:s[d]=b[u[_>>>24]]^P[u[_>>>16&255]]^R[u[_>>>8&255]]^C[u[_&255]],s[d]=s[d]>>>0},g.networkToHostOrderSwap=function(f){return f<<24|(f&65280)<<8|(f&16711680)>>8|f>>>24},g.decrypt=function(f,r,c){for(var n=this.keySize+6,a=this.invKeySchedule,o=this.invSBox,l=this.invSubMix,d=l[0],h=l[1],s=l[2],u=l[3],w=this.uint8ArrayToUint32Array_(c),x=w[0],b=w[1],P=w[2],R=w[3],C=new Int32Array(f),S=new Int32Array(C.length),_,A,j,I,k,J,G,D,H,W,L,z,ie,ce,ue=this.networkToHostOrderSwap;r<C.length;){for(H=ue(C[r]),W=ue(C[r+1]),L=ue(C[r+2]),z=ue(C[r+3]),k=H^a[0],J=z^a[1],G=L^a[2],D=W^a[3],ie=4,ce=1;ce<n;ce++)_=d[k>>>24]^h[J>>16&255]^s[G>>8&255]^u[D&255]^a[ie],A=d[J>>>24]^h[G>>16&255]^s[D>>8&255]^u[k&255]^a[ie+1],j=d[G>>>24]^h[D>>16&255]^s[k>>8&255]^u[J&255]^a[ie+2],I=d[D>>>24]^h[k>>16&255]^s[J>>8&255]^u[G&255]^a[ie+3],k=_,J=A,G=j,D=I,ie=ie+4;_=o[k>>>24]<<24^o[J>>16&255]<<16^o[G>>8&255]<<8^o[D&255]^a[ie],A=o[J>>>24]<<24^o[G>>16&255]<<16^o[D>>8&255]<<8^o[k&255]^a[ie+1],j=o[G>>>24]<<24^o[D>>16&255]<<16^o[k>>8&255]<<8^o[J&255]^a[ie+2],I=o[D>>>24]<<24^o[k>>16&255]<<16^o[J>>8&255]<<8^o[G&255]^a[ie+3],S[r]=ue(_^x),S[r+1]=ue(I^b),S[r+2]=ue(j^P),S[r+3]=ue(A^R),x=H,b=W,P=L,R=z,r=r+4}return S.buffer},O}()},"./src/crypt/decrypter.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return r});var v=T("./src/crypt/aes-crypto.ts"),m=T("./src/crypt/fast-aes-key.ts"),y=T("./src/crypt/aes-decryptor.ts"),O=T("./src/utils/logger.ts"),g=T("./src/utils/mp4-tools.ts"),e=T("./src/utils/typed-array.ts"),f=16,r=function(){function c(a,o,l){var d=l===void 0?{}:l,h=d.removePKCS7Padding,s=h===void 0?!0:h;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=a,this.config=o,this.removePKCS7Padding=s,s)try{var u=self.crypto;u&&(this.subtle=u.subtle||u.webkitSubtle)}catch(w){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var n=c.prototype;return n.destroy=function(){this.observer=null},n.isSync=function(){return this.config.enableSoftwareAES},n.flush=function(){var o=this.currentResult;if(!o){this.reset();return}var l=new Uint8Array(o);return this.reset(),this.removePKCS7Padding?Object(y.removePadding)(l):l},n.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},n.decrypt=function(o,l,d,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(o),l,d);var s=this.flush();s&&h(s.buffer)}else this.webCryptoDecrypt(new Uint8Array(o),l,d).then(h)},n.softwareDecrypt=function(o,l,d){var h=this.currentIV,s=this.currentResult,u=this.remainderData;this.logOnce("JS AES decrypt"),u&&(o=Object(g.appendUint8Array)(u,o),this.remainderData=null);var w=this.getValidChunk(o);if(!w.length)return null;h&&(d=h);var x=this.softwareDecrypter;x||(x=this.softwareDecrypter=new y.default),x.expandKey(l);var b=s;return this.currentResult=x.decrypt(w.buffer,0,d),this.currentIV=Object(e.sliceUint8)(w,-16).buffer,b||null},n.webCryptoDecrypt=function(o,l,d){var h=this,s=this.subtle;return(this.key!==l||!this.fastAesKey)&&(this.key=l,this.fastAesKey=new m.default(s,l)),this.fastAesKey.expandKey().then(function(u){if(!s)return Promise.reject(new Error("web crypto not initialized"));var w=new v.default(s,d);return w.decrypt(o.buffer,u)}).catch(function(u){return h.onWebCryptoError(u,o,l,d)})},n.onWebCryptoError=function(o,l,d,h){return O.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",o),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(l,d,h)},n.getValidChunk=function(o){var l=o,d=o.length-o.length%f;return d!==o.length&&(l=Object(e.sliceUint8)(o,0,d),this.remainderData=Object(e.sliceUint8)(o,d)),l},n.logOnce=function(o){if(!this.logEnabled)return;O.logger.log("[decrypter.ts]: "+o),this.logEnabled=!1},c}()},"./src/crypt/fast-aes-key.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return v});var v=function(){function m(O,g){this.subtle=void 0,this.key=void 0,this.subtle=O,this.key=g}var y=m.prototype;return y.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},m}()},"./src/demux/aacdemuxer.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/demux/base-audio-demuxer.ts"),m=T("./src/demux/adts.ts"),y=T("./src/utils/logger.ts"),O=T("./src/demux/id3.ts");function g(r,c){r.prototype=Object.create(c.prototype),r.prototype.constructor=r,e(r,c)}function e(r,c){return e=Object.setPrototypeOf||function(a,o){return a.__proto__=o,a},e(r,c)}var f=function(r){g(c,r);function c(a,o){var l;return l=r.call(this)||this,l.observer=void 0,l.config=void 0,l.observer=a,l.config=o,l}var n=c.prototype;return n.resetInitSegment=function(o,l,d){r.prototype.resetInitSegment.call(this,o,l,d),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:o,duration:d,inputTimeScale:9e4,dropped:0}},c.probe=function(o){if(!o)return!1;for(var l=O.getID3Data(o,0)||[],d=l.length,h=o.length;d<h;d++)if(m.probe(o,d))return y.logger.log("ADTS sync word found !"),!0;return!1},n.canParse=function(o,l){return m.canParse(o,l)},n.appendFrame=function(o,l,d){m.initTrackConfig(o,this.observer,l,d,o.manifestCodec);var h=m.appendFrame(o,l,d,this.initPTS,this.frameIndex);if(h&&h.missing===0)return h},c}(v.default);f.minProbeByteLength=9,E.default=f},"./src/demux/adts.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"getAudioConfig",function(){return O}),T.d(E,"isHeaderPattern",function(){return g}),T.d(E,"getHeaderLength",function(){return e}),T.d(E,"getFullFrameLength",function(){return f}),T.d(E,"canGetFrameLength",function(){return r}),T.d(E,"isHeader",function(){return c}),T.d(E,"canParse",function(){return n}),T.d(E,"probe",function(){return a}),T.d(E,"initTrackConfig",function(){return o}),T.d(E,"getFrameDuration",function(){return l}),T.d(E,"parseFrameHeader",function(){return d}),T.d(E,"appendFrame",function(){return h});var v=T("./src/utils/logger.ts"),m=T("./src/errors.ts"),y=T("./src/events.ts");function O(s,u,w,x){var b,P,R,C,S=navigator.userAgent.toLowerCase(),_=x,A=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];b=((u[w+2]&192)>>>6)+1;var j=(u[w+2]&60)>>>2;if(j>A.length-1){s.trigger(y.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+j});return}return R=(u[w+2]&1)<<2,R|=(u[w+3]&192)>>>6,v.logger.log("manifest codec:"+x+", ADTS type:"+b+", samplingIndex:"+j),/firefox/i.test(S)?j>=6?(b=5,C=new Array(4),P=j-3):(b=2,C=new Array(2),P=j):S.indexOf("android")!==-1?(b=2,C=new Array(2),P=j):(b=5,C=new Array(4),x&&(x.indexOf("mp4a.40.29")!==-1||x.indexOf("mp4a.40.5")!==-1)||!x&&j>=6?P=j-3:((x&&x.indexOf("mp4a.40.2")!==-1&&(j>=6&&R===1||/vivaldi/i.test(S))||!x&&R===1)&&(b=2,C=new Array(2)),P=j)),C[0]=b<<3,C[0]|=(j&14)>>1,C[1]|=(j&1)<<7,C[1]|=R<<3,b===5&&(C[1]|=(P&14)>>1,C[2]=(P&1)<<7,C[2]|=2<<2,C[3]=0),{config:C,samplerate:A[j],channelCount:R,codec:"mp4a.40."+b,manifestCodec:_}}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 c(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 a(s,u){if(c(s,u)){var w=e(s,u);if(u+w>=s.length)return!1;var x=f(s,u);if(x<=w)return!1;var b=u+x;return b===s.length||c(s,b)}return!1}function o(s,u,w,x,b){if(!s.samplerate){var P=O(u,w,x,b);if(!P)return;s.config=P.config,s.samplerate=P.samplerate,s.channelCount=P.channelCount,s.codec=P.codec,s.manifestCodec=P.manifestCodec,v.logger.log("parsed codec:"+s.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function l(s){return 1024*9e4/s}function d(s,u,w,x,b){var P=e(s,u),R=f(s,u);if(R-=P,R>0){var C=w+x*b;return{headerLength:P,frameLength:R,stamp:C}}}function h(s,u,w,x,b){var P=l(s.samplerate),R=d(u,w,x,b,P);if(R){var C=R.frameLength,S=R.headerLength,_=R.stamp,A=S+C,j=Math.max(0,w+A-u.length),I;j?(I=new Uint8Array(A-S),I.set(u.subarray(w+S,u.length),0)):I=u.subarray(w+S,w+A);var k={unit:I,pts:_};return j||s.samples.push(k),{sample:k,length:A,missing:j}}}},"./src/demux/base-audio-demuxer.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"initPTSFn",function(){return f});var v=T("./src/polyfills/number.ts"),m=T("./src/demux/id3.ts"),y=T("./src/demux/dummy-demuxed-track.ts"),O=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 c=r.prototype;return c.resetInitSegment=function(a,o,l){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},c.resetTimeStamp=function(){},c.resetContiguity=function(){},c.canParse=function(a,o){return!1},c.appendFrame=function(a,o,l){},c.demux=function(a,o){this.cachedData&&(a=Object(O.appendUint8Array)(this.cachedData,a),this.cachedData=null);var l=m.getID3Data(a,0),d=l?l.length:0,h,s,u=this._audioTrack,w=this._id3Track,x=l?m.getTimeStamp(l):void 0,b=a.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=f(x,o)),l&&l.length>0&&w.samples.push({pts:this.initPTS,dts:this.initPTS,data:l}),s=this.initPTS;d<b;){if(this.canParse(a,d)){var P=this.appendFrame(u,a,d);P?(this.frameIndex++,s=P.sample.pts,d+=P.length,h=d):d=b}else m.canParse(a,d)?(l=m.getID3Data(a,d),w.samples.push({pts:s,dts:s,data:l}),d+=l.length,h=d):d++;if(d===b&&h!==b){var R=Object(g.sliceUint8)(a,h);this.cachedData?this.cachedData=Object(O.appendUint8Array)(this.cachedData,R):this.cachedData=R}}return{audioTrack:u,avcTrack:Object(y.dummyTrack)(),id3Track:w,textTrack:Object(y.dummyTrack)()}},c.demuxSampleAes=function(a,o,l){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},c.flush=function(a){var o=this.cachedData;return o&&(this.cachedData=null,this.demux(o,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(y.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(y.dummyTrack)()}},c.destroy=function(){},r}(),f=function(c,n){return Object(v.isFiniteNumber)(c)?c*90:n*9e4};E.default=e},"./src/demux/chunk-cache.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return v});var v=function(){function y(){this.chunks=[],this.dataLength=0}var O=y.prototype;return O.push=function(e){this.chunks.push(e),this.dataLength+=e.length},O.flush=function(){var e=this.chunks,f=this.dataLength,r;if(e.length)e.length===1?r=e[0]:r=m(e,f);else return new Uint8Array(0);return this.reset(),r},O.reset=function(){this.chunks.length=0,this.dataLength=0},y}();function m(y,O){for(var g=new Uint8Array(O),e=0,f=0;f<y.length;f++){var r=y[f];g.set(r,e),e+=r.length}return g}},"./src/demux/dummy-demuxed-track.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"dummyTrack",function(){return v});function v(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/utils/logger.ts"),m=function(){function y(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 O=y.prototype;return O.loadWord=function(){var e=this.data,f=this.bytesAvailable,r=e.byteLength-f,c=new Uint8Array(4),n=Math.min(4,f);if(n===0)throw new Error("no bytes available");c.set(e.subarray(r,r+n)),this.word=new DataView(c.buffer).getUint32(0),this.bitsAvailable=n*8,this.bytesAvailable-=n},O.skipBits=function(e){var f;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,f=e>>3,e-=f>>3,this.bytesAvailable-=f,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},O.readBits=function(e){var f=Math.min(this.bitsAvailable,e),r=this.word>>>32-f;return e>32&&v.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},O.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},O.skipUEG=function(){this.skipBits(1+this.skipLZ())},O.skipEG=function(){this.skipBits(1+this.skipLZ())},O.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},O.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},O.readBoolean=function(){return this.readBits(1)===1},O.readUByte=function(){return this.readBits(8)},O.readUShort=function(){return this.readBits(16)},O.readUInt=function(){return this.readBits(32)},O.skipScalingList=function(e){for(var f=8,r=8,c,n=0;n<e;n++)r!==0&&(c=this.readEG(),r=(f+c+256)%256),f=r===0?f:r},O.readSPS=function(){var e=0,f=0,r=0,c=0,n,a,o,l=this.readUByte.bind(this),d=this.readBits.bind(this),h=this.readUEG.bind(this),s=this.readBoolean.bind(this),u=this.skipBits.bind(this),w=this.skipEG.bind(this),x=this.skipUEG.bind(this),b=this.skipScalingList.bind(this);l();var P=l();if(d(5),u(3),l(),x(),P===100||P===110||P===122||P===244||P===44||P===83||P===86||P===118||P===128){var R=h();if(R===3&&u(1),x(),x(),u(1),s())for(a=R!==3?8:12,o=0;o<a;o++)s()&&(o<6?b(16):b(64))}x();var C=h();if(C===0)h();else if(C===1)for(u(1),w(),w(),n=h(),o=0;o<n;o++)w();x(),u(1);var S=h(),_=h(),A=d(1);A===0&&u(1),u(1),s()&&(e=h(),f=h(),r=h(),c=h());var j=[1,1];if(s()&&s()){var I=l();switch(I){case 1:j=[1,1];break;case 2:j=[12,11];break;case 3:j=[10,11];break;case 4:j=[16,11];break;case 5:j=[40,33];break;case 6:j=[24,11];break;case 7:j=[20,11];break;case 8:j=[32,11];break;case 9:j=[80,33];break;case 10:j=[18,11];break;case 11:j=[15,11];break;case 12:j=[64,33];break;case 13:j=[160,99];break;case 14:j=[4,3];break;case 15:j=[3,2];break;case 16:j=[2,1];break;case 255:{j=[l()<<8|l(),l()<<8|l()];break}}}return{width:Math.ceil((S+1)*16-e*2-f*2),height:(2-A)*(_+1)*16-(A?2:4)*(r+c),pixelRatio:j}},O.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},y}();E.default=m},"./src/demux/id3.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"isHeader",function(){return v}),T.d(E,"isFooter",function(){return m}),T.d(E,"getID3Data",function(){return y}),T.d(E,"canParse",function(){return g}),T.d(E,"getTimeStamp",function(){return e}),T.d(E,"isTimeStampFrame",function(){return f}),T.d(E,"getID3Frames",function(){return c}),T.d(E,"decodeFrame",function(){return n}),T.d(E,"utf8ArrayToStr",function(){return h}),T.d(E,"testables",function(){return s});var v=function(b,P){return P+10<=b.length&&(b[P]===73&&b[P+1]===68&&b[P+2]===51&&(b[P+3]<255&&b[P+4]<255&&(b[P+6]<128&&b[P+7]<128&&b[P+8]<128&&b[P+9]<128)))},m=function(b,P){return P+10<=b.length&&(b[P]===51&&b[P+1]===68&&b[P+2]===73&&(b[P+3]<255&&b[P+4]<255&&(b[P+6]<128&&b[P+7]<128&&b[P+8]<128&&b[P+9]<128)))},y=function(b,P){for(var R=P,C=0;v(b,P);){C+=10;var S=O(b,P+6);C+=S,m(b,P+10)&&(C+=10),P+=C}return C>0?b.subarray(R,R+C):void 0},O=function(b,P){var R=0;return R=(b[P]&127)<<21,R|=(b[P+1]&127)<<14,R|=(b[P+2]&127)<<7,R|=b[P+3]&127,R},g=function(b,P){return v(b,P)&&O(b,P+6)+10<=b.length-P},e=function(b){for(var P=c(b),R=0;R<P.length;R++){var C=P[R];if(f(C))return d(C)}return},f=function(b){return b&&b.key==="PRIV"&&b.info==="com.apple.streaming.transportStreamTimestamp"},r=function(b){var P=String.fromCharCode(b[0],b[1],b[2],b[3]),R=O(b,4),C=10;return{type:P,size:R,data:b.subarray(C,C+R)}},c=function(b){for(var P=0,R=[];v(b,P);){var C=O(b,P+6);P+=10;for(var S=P+C;P+8<S;){var _=r(b.subarray(P)),A=n(_);A&&R.push(A),P+=_.size+10}m(b,P)&&(P+=10)}return R},n=function(b){return b.type==="PRIV"?a(b):b.type[0]==="W"?l(b):o(b)},a=function(b){if(b.size<2)return;var P=h(b.data,!0),R=new Uint8Array(b.data.subarray(P.length+1));return{key:b.type,info:P,data:R.buffer}},o=function(b){if(b.size<2)return;if(b.type==="TXXX"){var P=1,R=h(b.data.subarray(P),!0);P+=R.length+1;var C=h(b.data.subarray(P));return{key:b.type,info:R,data:C}}var S=h(b.data.subarray(1));return{key:b.type,data:S}},l=function(b){if(b.type==="WXXX"){if(b.size<2)return;var P=1,R=h(b.data.subarray(P),!0);P+=R.length+1;var C=h(b.data.subarray(P));return{key:b.type,info:R,data:C}}var S=h(b.data);return{key:b.type,data:S}},d=function(b){if(b.data.byteLength===8){var P=new Uint8Array(b.data),R=P[3]&1,C=(P[4]<<23)+(P[5]<<15)+(P[6]<<7)+P[7];return C/=45,R&&(C+=4772185884e-2),Math.round(C)}return},h=function(b,P){P===void 0&&(P=!1);var R=w();if(R){var C=R.decode(b);if(P){var S=C.indexOf("\0");return S!==-1?C.substring(0,S):C}return C.replace(/\0/g,"")}for(var _=b.length,A,j,I,k="",J=0;J<_;){if(A=b[J++],A===0&&P)return k;if(A===0||A===3)continue;switch(A>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:k+=String.fromCharCode(A);break;case 12:case 13:j=b[J++],k+=String.fromCharCode((A&31)<<6|j&63);break;case 14:j=b[J++],I=b[J++],k+=String.fromCharCode((A&15)<<12|(j&63)<<6|(I&63)<<0);break;default:}}return k},s={decodeTextFrame:o},u;function w(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/demux/base-audio-demuxer.ts"),m=T("./src/demux/id3.ts"),y=T("./src/utils/logger.ts"),O=T("./src/demux/mpegaudio.ts");function g(r,c){r.prototype=Object.create(c.prototype),r.prototype.constructor=r,e(r,c)}function e(r,c){return e=Object.setPrototypeOf||function(a,o){return a.__proto__=o,a},e(r,c)}var f=function(r){g(c,r);function c(){return r.apply(this,arguments)||this}var n=c.prototype;return n.resetInitSegment=function(o,l,d){r.prototype.resetInitSegment.call(this,o,l,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:o,duration:d,inputTimeScale:9e4,dropped:0}},c.probe=function(o){if(!o)return!1;for(var l=m.getID3Data(o,0)||[],d=l.length,h=o.length;d<h;d++)if(O.probe(o,d))return y.logger.log("MPEG Audio sync word found !"),!0;return!1},n.canParse=function(o,l){return O.canParse(o,l)},n.appendFrame=function(o,l,d){return this.initPTS===null?void 0:O.appendFrame(o,l,d,this.initPTS,this.frameIndex)},c}(v.default);f.minProbeByteLength=4,E.default=f},"./src/demux/mp4demuxer.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/utils/mp4-tools.ts"),m=T("./src/demux/dummy-demuxed-track.ts"),y=function(){function O(e,f){this.remainderData=null,this.config=void 0,this.config=f}var g=O.prototype;return g.resetTimeStamp=function(){},g.resetInitSegment=function(){},g.resetContiguity=function(){},O.probe=function(f){return Object(v.findBox)({data:f,start:0,end:Math.min(f.length,16384)},["moof"]).length>0},g.demux=function(f){var r=f,c=Object(m.dummyTrack)();if(this.config.progressive){this.remainderData&&(r=Object(v.appendUint8Array)(this.remainderData,f));var n=Object(v.segmentValidRange)(r);this.remainderData=n.remainder,c.samples=n.valid||new Uint8Array}else c.samples=r;return{audioTrack:Object(m.dummyTrack)(),avcTrack:c,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},g.flush=function(){var f=Object(m.dummyTrack)();return f.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(m.dummyTrack)(),avcTrack:f,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},g.demuxSampleAes=function(f,r,c){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},g.destroy=function(){},O}();y.minProbeByteLength=1024,E.default=y},"./src/demux/mpegaudio.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"appendFrame",function(){return e}),T.d(E,"parseHeader",function(){return f}),T.d(E,"isHeaderPattern",function(){return r}),T.d(E,"isHeader",function(){return c}),T.d(E,"canParse",function(){return n}),T.d(E,"probe",function(){return a});var v=null,m=[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],y=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],O=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],g=[0,1,1,4];function e(o,l,d,h,s){if(d+24>l.length)return;var u=f(l,d);if(u&&d+u.frameLength<=l.length){var w=u.samplesPerFrame*9e4/u.sampleRate,x=h+s*w,b={unit:l.subarray(d,d+u.frameLength),pts:x,dts:x};return o.config=[],o.channelCount=u.channelCount,o.samplerate=u.sampleRate,o.samples.push(b),{sample:b,length:u.frameLength,missing:0}}}function f(o,l){var d=o[l+1]>>3&3,h=o[l+1]>>1&3,s=o[l+2]>>4&15,u=o[l+2]>>2&3;if(d!==1&&s!==0&&s!==15&&u!==3){var w=o[l+2]>>1&1,x=o[l+3]>>6,b=d===3?3-h:h===3?3:4,P=m[b*14+s-1]*1e3,R=d===3?0:d===2?1:2,C=y[R*3+u],S=x===3?1:2,_=O[d][h],A=g[h],j=_*8*A,I=Math.floor(_*P/C+w)*A;if(v===null){var k=navigator.userAgent||"",J=k.match(/Chrome\/(\d+)/i);v=J?parseInt(J[1]):0}var G=!!v&&v<=87;return G&&h===2&&P>=224e3&&x===0&&(o[l+3]=o[l+3]|128),{sampleRate:C,channelCount:S,frameLength:I,samplesPerFrame:j}}}function r(o,l){return o[l]===255&&(o[l+1]&224)===224&&(o[l+1]&6)!==0}function c(o,l){return l+1<o.length&&r(o,l)}function n(o,l){var d=4;return r(o,l)&&d<=o.length-l}function a(o,l){if(l+1<o.length&&r(o,l)){var d=4,h=f(o,l),s=d;h!=null&&h.frameLength&&(s=h.frameLength);var u=l+s;return u===o.length||c(o,u)}return!1}},"./src/demux/sample-aes.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/crypt/decrypter.ts"),m=T("./src/demux/tsdemuxer.ts"),y=function(){function O(e,f,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new v.default(e,f,{removePKCS7Padding:!1})}var g=O.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,c,n){var a=f[r].unit,o=a.subarray(16,a.length-a.length%16),l=o.buffer.slice(o.byteOffset,o.byteOffset+o.length),d=this;this.decryptBuffer(l,function(h){var s=new Uint8Array(h);a.set(s,16),n||d.decryptAacSamples(f,r+1,c)})},g.decryptAacSamples=function(f,r,c){for(;;r++){if(r>=f.length){c();return}if(f[r].unit.length<32)continue;var n=this.decrypter.isSync();if(this.decryptAacSample(f,r,c,n),!n)return}},g.getAvcEncryptedData=function(f){for(var r=Math.floor((f.length-48)/160)*16+16,c=new Int8Array(r),n=0,a=32;a<=f.length-16;a+=160,n+=16)c.set(f.subarray(a,a+16),n);return c},g.getAvcDecryptedUnit=function(f,r){for(var c=new Uint8Array(r),n=0,a=32;a<=f.length-16;a+=160,n+=16)f.set(c.subarray(n,n+16),a);return f},g.decryptAvcSample=function(f,r,c,n,a,o){var l=Object(m.discardEPB)(a.data),d=this.getAvcEncryptedData(l),h=this;this.decryptBuffer(d.buffer,function(s){a.data=h.getAvcDecryptedUnit(l,s),o||h.decryptAvcSamples(f,r,c+1,n)})},g.decryptAvcSamples=function(f,r,c,n){if(f instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;r++,c=0){if(r>=f.length){n();return}for(var a=f[r].units;!(c>=a.length);c++){var o=a[c];if(o.data.length<=48||o.type!==1&&o.type!==5)continue;var l=this.decrypter.isSync();if(this.decryptAvcSample(f,r,c,n,o,l),!l)return}}},O}();E.default=y},"./src/demux/transmuxer-interface.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return a});var v=T("./node_modules/webworkify-webpack/index.js"),m=T.n(v),y=T("./src/events.ts"),O=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"),c=T.n(r),n=Object(f.getMediaSource)()||{isTypeSupported:function(){return!1}},a=function(){function o(d,h,s,u){var w=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=d,this.id=h,this.onTransmuxComplete=s,this.onFlush=u;var x=d.config,b=function(_,A){A=A||{},A.frag=w.frag,A.id=w.id,d.trigger(_,A)};this.observer=new r.EventEmitter,this.observer.on(y.Events.FRAG_DECRYPTED,b),this.observer.on(y.Events.ERROR,b);var P={mp4:n.isTypeSupported("video/mp4"),mpeg:n.isTypeSupported("audio/mpeg"),mp3:n.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(x.enableWorker&&typeof Worker!="undefined"){g.logger.log("demuxing in webworker");var C;try{C=this.worker=v("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),C.addEventListener("message",this.onwmsg),C.onerror=function(S){d.trigger(y.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(S.message+" ("+S.filename+":"+S.lineno+")")})},C.postMessage({cmd:"init",typeSupported:P,vendor:R,id:h,config:JSON.stringify(x)})}catch(S){g.logger.warn("Error in worker:",S),g.logger.error("Error while initializing DemuxerWorker, fallback to inline"),C&&self.URL.revokeObjectURL(C.objectURL),this.transmuxer=new O.default(this.observer,P,x,R,h),this.worker=null}}else this.transmuxer=new O.default(this.observer,P,x,R,h)}var l=o.prototype;return l.destroy=function(){var h=this.worker;if(h)h.removeEventListener("message",this.onwmsg),h.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},l.push=function(h,s,u,w,x,b,P,R,C,S){var _=this;C.transmuxing.start=self.performance.now();var A=this.transmuxer,j=this.worker,I=b?b.start:x.start,k=x.decryptdata,J=this.frag,G=!(J&&x.cc===J.cc),D=!(J&&C.level===J.level),H=J?C.sn-J.sn:-1,W=this.part?C.part-this.part.index:1,L=!D&&(H===1||H===0&&W===1),z=self.performance.now();(D||H||x.stats.parsing.start===0)&&(x.stats.parsing.start=z),b&&(W||!L)&&(b.stats.parsing.start=z);var ie=new O.TransmuxState(G,L,R,D,I);if(!L||G){g.logger.log("[transmuxer-interface, "+x.type+"]: Starting new transmux session for sn: "+C.sn+" p: "+C.part+" level: "+C.level+" id: "+C.id+`
discontinuity: `+G+`
trackSwitch: `+D+`
contiguous: `+L+`
accurateTimeOffset: `+R+`
timeOffset: `+I);var ce=new O.TransmuxConfig(u,w,s,P,S);this.configureTransmuxer(ce)}if(this.frag=x,this.part=b,j)j.postMessage({cmd:"demux",data:h,decryptdata:k,chunkMeta:C,state:ie},h instanceof ArrayBuffer?[h]:[]);else if(A){var ue=A.push(h,k,C,ie);Object(O.isPromise)(ue)?ue.then(function(xe){_.handleTransmuxComplete(xe)}):this.handleTransmuxComplete(ue)}},l.flush=function(h){var s=this;h.transmuxing.start=self.performance.now();var u=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:h});else if(u){var x=u.flush(h);Object(O.isPromise)(x)?x.then(function(b){s.handleFlushResult(b,h)}):this.handleFlushResult(x,h)}},l.handleFlushResult=function(h,s){var u=this;h.forEach(function(w){u.handleTransmuxComplete(w)}),this.onFlush(s)},l.onWorkerMessage=function(h){var s=h.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}}},l.configureTransmuxer=function(h){var s=this.worker,u=this.transmuxer;s?s.postMessage({cmd:"configure",config:h}):u&&u.configure(h)},l.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},o}()},"./src/demux/transmuxer-worker.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return e});var v=T("./src/demux/transmuxer.ts"),m=T("./src/events.ts"),y=T("./src/utils/logger.ts"),O=T("./node_modules/eventemitter3/index.js"),g=T.n(O);function e(a){var o=new O.EventEmitter,l=function(h,s){a.postMessage({event:h,data:s})};o.on(m.Events.FRAG_DECRYPTED,l),o.on(m.Events.ERROR,l),a.addEventListener("message",function(d){var h=d.data;switch(h.cmd){case"init":{var s=JSON.parse(h.config);a.transmuxer=new v.default(o,h.typeSupported,s,h.vendor,h.id),Object(y.enableLogs)(s.debug),l("init",null);break}case"configure":{a.transmuxer.configure(h.config);break}case"demux":{var u=a.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(v.isPromise)(u)?u.then(function(b){f(a,b)}):f(a,u);break}case"flush":{var w=h.chunkMeta,x=a.transmuxer.flush(w);Object(v.isPromise)(x)?x.then(function(b){c(a,b,w)}):c(a,x,w);break}default:break}})}function f(a,o){if(n(o.remuxResult))return;var l=[],d=o.remuxResult,h=d.audio,s=d.video;h&&r(l,h),s&&r(l,s),a.postMessage({event:"transmuxComplete",data:o},l)}function r(a,o){o.data1&&a.push(o.data1.buffer),o.data2&&a.push(o.data2.buffer)}function c(a,o,l){o.forEach(function(d){f(a,d)}),a.postMessage({event:"flush",data:l})}function n(a){return!a.audio&&!a.video&&!a.text&&!a.id3&&!a.initSegment}},"./src/demux/transmuxer.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return s}),T.d(E,"isPromise",function(){return x}),T.d(E,"TransmuxConfig",function(){return b}),T.d(E,"TransmuxState",function(){return P});var v=T("./src/events.ts"),m=T("./src/errors.ts"),y=T("./src/crypt/decrypter.ts"),O=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"),c=T("./src/remux/passthrough-remuxer.ts"),n=T("./src/demux/chunk-cache.ts"),a=T("./src/utils/mp4-tools.ts"),o=T("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(R){o.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var d=[{demux:e.default,remux:r.default},{demux:g.default,remux:c.default},{demux:O.default,remux:r.default},{demux:f.default,remux:r.default}],h=1024;d.forEach(function(R){var C=R.demux;h=Math.max(h,C.minProbeByteLength)});var s=function(){function R(S,_,A,j,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=S,this.typeSupported=_,this.config=A,this.vendor=j,this.id=I}var C=R.prototype;return C.configure=function(_){this.transmuxConfig=_,this.decrypter&&this.decrypter.reset()},C.push=function(_,A,j,I){var k=this,J=j.transmuxing;J.executeStart=l();var G=new Uint8Array(_),D=this.cache,H=this.config,W=this.currentTransmuxState,L=this.transmuxConfig;I&&(this.currentTransmuxState=I);var z=u(G,A);if(z&&z.method==="AES-128"){var ie=this.getDecrypter();if(H.enableSoftwareAES){var ce=ie.softwareDecrypt(G,z.key.buffer,z.iv.buffer);if(!ce)return J.executeEnd=l(),w(j);G=new Uint8Array(ce)}else return this.decryptionPromise=ie.webCryptoDecrypt(G,z.key.buffer,z.iv.buffer).then(function(re){var $=k.push(re,null,j);return k.decryptionPromise=null,$}),this.decryptionPromise}var ue=I||W,xe=ue.contiguous,Te=ue.discontinuity,de=ue.trackSwitch,ve=ue.accurateTimeOffset,_e=ue.timeOffset,le=L.audioCodec,ee=L.videoCodec,U=L.defaultInitPts,K=L.duration,X=L.initSegmentData;if((Te||de)&&this.resetInitSegment(X,le,ee,K),Te&&this.resetInitialTimestamp(U),xe||this.resetContiguity(),this.needsProbing(G,Te,de)){if(D.dataLength){var Q=D.flush();G=Object(a.appendUint8Array)(Q,G)}this.configureTransmuxer(G,L)}var te=this.transmux(G,z,_e,ve,j),ae=this.currentTransmuxState;return ae.contiguous=!0,ae.discontinuity=!1,ae.trackSwitch=!1,J.executeEnd=l(),te},C.flush=function(_){var A=this,j=_.transmuxing;j.executeStart=l();var I=this.decrypter,k=this.cache,J=this.currentTransmuxState,G=this.decryptionPromise;if(G)return G.then(function(){return A.flush(_)});var D=[],H=J.timeOffset;if(I){var W=I.flush();W&&D.push(this.push(W,null,_))}var L=k.dataLength;k.reset();var z=this.demuxer,ie=this.remuxer;if(!z||!ie)return L>=h&&this.observer.emit(v.Events.ERROR,v.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),j.executeEnd=l(),[w(_)];var ce=z.flush(H);return x(ce)?ce.then(function(ue){return A.flushRemux(D,ue,_),D}):(this.flushRemux(D,ce,_),D)},C.flushRemux=function(_,A,j){var I=A.audioTrack,k=A.avcTrack,J=A.id3Track,G=A.textTrack,D=this.currentTransmuxState,H=D.accurateTimeOffset,W=D.timeOffset;o.logger.log("[transmuxer.ts]: Flushed fragment "+j.sn+(j.part>-1?" p: "+j.part:"")+" of level "+j.level);var L=this.remuxer.remux(I,k,J,G,W,H,!0,this.id);_.push({remuxResult:L,chunkMeta:j}),j.transmuxing.executeEnd=l()},C.resetInitialTimestamp=function(_){var A=this.demuxer,j=this.remuxer;if(!A||!j)return;A.resetTimeStamp(_),j.resetTimeStamp(_)},C.resetContiguity=function(){var _=this.demuxer,A=this.remuxer;if(!_||!A)return;_.resetContiguity(),A.resetNextTimestamp()},C.resetInitSegment=function(_,A,j,I){var k=this.demuxer,J=this.remuxer;if(!k||!J)return;k.resetInitSegment(A,j,I),J.resetInitSegment(_,A,j)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(_,A,j,I,k){var J;return A&&A.method==="SAMPLE-AES"?J=this.transmuxSampleAes(_,A,j,I,k):J=this.transmuxUnencrypted(_,j,I,k),J},C.transmuxUnencrypted=function(_,A,j,I){var k=this.demuxer.demux(_,A,!1,!this.config.progressive),J=k.audioTrack,G=k.avcTrack,D=k.id3Track,H=k.textTrack,W=this.remuxer.remux(J,G,D,H,A,j,!1,this.id);return{remuxResult:W,chunkMeta:I}},C.transmuxSampleAes=function(_,A,j,I,k){var J=this;return this.demuxer.demuxSampleAes(_,A,j).then(function(G){var D=J.remuxer.remux(G.audioTrack,G.avcTrack,G.id3Track,G.textTrack,j,I,!1,J.id);return{remuxResult:D,chunkMeta:k}})},C.configureTransmuxer=function(_,A){for(var j=this.config,I=this.observer,k=this.typeSupported,J=this.vendor,G=A.audioCodec,D=A.defaultInitPts,H=A.duration,W=A.initSegmentData,L=A.videoCodec,z,ie=0,ce=d.length;ie<ce;ie++)if(d[ie].demux.probe(_)){z=d[ie];break}z||(o.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),z={demux:g.default,remux:c.default});var ue=this.demuxer,xe=this.remuxer,Te=z.remux,de=z.demux;(!xe||!(xe instanceof Te))&&(this.remuxer=new Te(I,j,k,J)),(!ue||!(ue instanceof de))&&(this.demuxer=new de(I,j,k),this.probe=de.probe),this.resetInitSegment(W,G,L,H),this.resetInitialTimestamp(D)},C.needsProbing=function(_,A,j){return!this.demuxer||!this.remuxer||A||j},C.getDecrypter=function(){var _=this.decrypter;return _||(_=this.decrypter=new y.default(this.observer,this.config)),_},R}();function u(R,C){var S=null;return R.byteLength>0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(S=C),S}var w=function(C){return{remuxResult:{},chunkMeta:C}};function x(R){return"then"in R&&R.then instanceof Function}var b=function(C,S,_,A,j){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=S,this.initSegmentData=_,this.duration=A,this.defaultInitPts=j},P=function(C,S,_,A,j){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=S,this.accurateTimeOffset=_,this.trackSwitch=A,this.timeOffset=j}},"./src/demux/tsdemuxer.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"discardEPB",function(){return w});var v=T("./src/demux/adts.ts"),m=T("./src/demux/mpegaudio.ts"),y=T("./src/demux/exp-golomb.ts"),O=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"),c=T("./src/errors.ts"),n={video:1,audio:2,id3:3,text:4},a=function(){function x(P,R,C){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=C}x.probe=function(R){var C=x.syncOffset(R);return C<0?!1:(C&&r.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},x.syncOffset=function(R){for(var C=Math.min(1e3,R.length-3*188),S=0;S<C;){if(R[S]===71&&R[S+188]===71&&R[S+2*188]===71)return S;S++}return-1},x.createTrack=function(R,C){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"?C:void 0}};var b=x.prototype;return b.resetInitSegment=function(R,C,S){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=x.createTrack("video",S),this._audioTrack=x.createTrack("audio",S),this._id3Track=x.createTrack("id3",S),this._txtTrack=x.createTrack("text",S),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=R,this.videoCodec=C,this._duration=S},b.resetTimeStamp=function(){},b.resetContiguity=function(){var R=this._audioTrack,C=this._avcTrack,S=this._id3Track;R&&(R.pesData=null),C&&(C.pesData=null),S&&(S.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},b.demux=function(R,C,S,_){S===void 0&&(S=!1),_===void 0&&(_=!1),S||(this.sampleAes=null);var A,j=this._avcTrack,I=this._audioTrack,k=this._id3Track,J=j.pid,G=j.pesData,D=I.pid,H=k.pid,W=I.pesData,L=k.pesData,z=!1,ie=this.pmtParsed,ce=this._pmtId,ue=R.length;if(this.remainderData&&(R=Object(f.appendUint8Array)(this.remainderData,R),ue=R.length,this.remainderData=null),ue<188&&!_)return this.remainderData=R,{audioTrack:I,avcTrack:j,id3Track:k,textTrack:this._txtTrack};var xe=Math.max(0,x.syncOffset(R));ue-=(ue+xe)%188,ue<R.byteLength&&!_&&(this.remainderData=new Uint8Array(R.buffer,ue,R.buffer.byteLength-ue));for(var Te=xe;Te<ue;Te+=188)if(R[Te]===71){var de=!!(R[Te+1]&64),ve=((R[Te+1]&31)<<8)+R[Te+2],_e=(R[Te+3]&48)>>4,le=void 0;if(_e>1){if(le=Te+5+R[Te+4],le===Te+188)continue}else le=Te+4;switch(ve){case J:de&&(G&&(A=h(G))&&this.parseAVCPES(A,!1),G={data:[],size:0}),G&&(G.data.push(R.subarray(le,Te+188)),G.size+=Te+188-le);break;case D:de&&(W&&(A=h(W))&&(I.isAAC?this.parseAACPES(A):this.parseMPEGPES(A)),W={data:[],size:0}),W&&(W.data.push(R.subarray(le,Te+188)),W.size+=Te+188-le);break;case H:de&&(L&&(A=h(L))&&this.parseID3PES(A),L={data:[],size:0}),L&&(L.data.push(R.subarray(le,Te+188)),L.size+=Te+188-le);break;case 0:de&&(le+=R[le]+1),ce=this._pmtId=l(R,le);break;case ce:{de&&(le+=R[le]+1);var ee=d(R,le,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);J=ee.avc,J>0&&(j.pid=J),D=ee.audio,D>0&&(I.pid=D,I.isAAC=ee.isAAC),H=ee.id3,H>0&&(k.pid=H),z&&!ie&&(r.logger.log("reparse from beginning"),z=!1,Te=xe-188),ie=this.pmtParsed=!0;break}case 17:case 8191:break;default:z=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});j.pesData=G,I.pesData=W,k.pesData=L;var U={audioTrack:I,avcTrack:j,id3Track:k,textTrack:this._txtTrack};return _&&this.extractRemainingSamples(U),U},b.flush=function(){var R=this.remainderData;this.remainderData=null;var C;return R?C=this.demux(R,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},b.extractRemainingSamples=function(R){var C=R.audioTrack,S=R.avcTrack,_=R.id3Track,A=S.pesData,j=C.pesData,I=_.pesData,k;A&&(k=h(A))?(this.parseAVCPES(k,!0),S.pesData=null):S.pesData=A,j&&(k=h(j))?(C.isAAC?this.parseAACPES(k):this.parseMPEGPES(k),C.pesData=null):(j!=null&&j.size&&r.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=j),I&&(k=h(I))?(this.parseID3PES(k),_.pesData=null):_.pesData=I},b.demuxSampleAes=function(R,C,S){var _=this.demux(R,S,!0,!this.config.progressive),A=this.sampleAes=new g.default(this.observer,this.config,C);return this.decrypt(_,A)},b.decrypt=function(R,C){return new Promise(function(S){var _=R.audioTrack,A=R.avcTrack;_.samples&&_.isAAC?C.decryptAacSamples(_.samples,0,function(){A.samples?C.decryptAvcSamples(A.samples,0,0,function(){S(R)}):S(R)}):A.samples&&C.decryptAvcSamples(A.samples,0,0,function(){S(R)})})},b.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},b.parseAVCPES=function(R,C){var S=this,_=this._avcTrack,A=this.parseAVCNALu(R.data),j=!1,I=this.avcSample,k,J=!1;R.data=null,I&&A.length&&!_.audFound&&(s(I,_),I=this.avcSample=o(!1,R.pts,R.dts,"")),A.forEach(function(G){switch(G.type){case 1:{k=!0,I||(I=S.avcSample=o(!0,R.pts,R.dts,"")),j&&(I.debug+="NDR "),I.frame=!0;var D=G.data;if(J&&D.length>4){var H=new y.default(D).readSliceType();(H===2||H===4||H===7||H===9)&&(I.key=!0)}break}case 5:k=!0,I||(I=S.avcSample=o(!0,R.pts,R.dts,"")),j&&(I.debug+="IDR "),I.key=!0,I.frame=!0;break;case 6:{k=!0,j&&I&&(I.debug+="SEI ");var W=new y.default(w(G.data));W.readUByte();for(var L=0,z=0,ie=!1,ce=0;!ie&&W.bytesAvailable>1;){L=0;do ce=W.readUByte(),L+=ce;while(ce===255);z=0;do ce=W.readUByte(),z+=ce;while(ce===255);if(L===4&&W.bytesAvailable!==0){ie=!0;var ue=W.readUByte();if(ue===181){var xe=W.readUShort();if(xe===49){var Te=W.readUInt();if(Te===1195456820){var de=W.readUByte();if(de===3){for(var ve=W.readUByte(),_e=W.readUByte(),le=31&ve,ee=[ve,_e],U=0;U<le;U++)ee.push(W.readUByte()),ee.push(W.readUByte()),ee.push(W.readUByte());u(S._txtTrack.samples,{type:3,pts:R.pts,bytes:ee})}}}}}else if(L===5&&W.bytesAvailable!==0){if(ie=!0,z>16){for(var K=[],X=0;X<16;X++)K.push(W.readUByte().toString(16)),(X===3||X===5||X===7||X===9)&&K.push("-");for(var Q=z-16,te=new Uint8Array(Q),ae=0;ae<Q;ae++)te[ae]=W.readUByte();u(S._txtTrack.samples,{pts:R.pts,payloadType:L,uuid:K.join(""),userData:Object(O.utf8ArrayToStr)(te),userDataBytes:te})}}else if(z<W.bytesAvailable)for(var re=0;re<z;re++)W.readUByte()}break}case 7:if(k=!0,J=!0,j&&I&&(I.debug+="SPS "),!_.sps){var $=new y.default(G.data),Z=$.readSPS();_.width=Z.width,_.height=Z.height,_.pixelRatio=Z.pixelRatio,_.sps=[G.data],_.duration=S._duration;for(var fe=G.data.subarray(1,4),me="avc1.",Oe=0;Oe<3;Oe++){var He=fe[Oe].toString(16);He.length<2&&(He="0"+He),me+=He}_.codec=me}break;case 8:k=!0,j&&I&&(I.debug+="PPS "),_.pps||(_.pps=[G.data]);break;case 9:k=!1,_.audFound=!0,I&&s(I,_),I=S.avcSample=o(!1,R.pts,R.dts,j?"AUD ":"");break;case 12:k=!1;break;default:k=!1,I&&(I.debug+="unknown NAL "+G.type+" ");break}if(I&&k){var Qe=I.units;Qe.push(G)}}),C&&I&&(s(I,_),this.avcSample=null)},b.getLastNalUnit=function(){var R,C=this.avcSample,S;if(!C||C.units.length===0){var _=this._avcTrack.samples;C=_[_.length-1]}if((R=C)!==null&&R!==void 0&&R.units){var A=C.units;S=A[A.length-1]}return S},b.parseAVCNALu=function(R){var C=R.byteLength,S=this._avcTrack,_=S.naluState||0,A=_,j=[],I=0,k,J,G,D=-1,H=0;for(_===-1&&(D=0,H=R[0]&31,_=0,I=1);I<C;){if(k=R[I++],!_){_=k?0:1;continue}if(_===1){_=k?0:2;continue}if(!k)_=3;else if(k===1){if(D>=0){var W={data:R.subarray(D,I-_-1),type:H};j.push(W)}else{var L=this.getLastNalUnit();if(L&&(A&&I<=4-A&&(L.state&&(L.data=L.data.subarray(0,L.data.byteLength-A))),J=I-_-1,J>0)){var z=new Uint8Array(L.data.byteLength+J);z.set(L.data,0),z.set(R.subarray(0,J),L.data.byteLength),L.data=z,L.state=0}}I<C?(G=R[I]&31,D=I,H=G,_=0):_=-1}else _=0}if(D>=0&&_>=0){var ie={data:R.subarray(D,C),type:H,state:_};j.push(ie)}if(j.length===0){var ce=this.getLastNalUnit();if(ce){var ue=new Uint8Array(ce.data.byteLength+R.byteLength);ue.set(ce.data,0),ue.set(R,ce.data.byteLength),ce.data=ue}}return S.naluState=_,j},b.parseAACPES=function(R){var C=0,S=this._audioTrack,_=this.aacOverFlow,A=R.data;if(_){this.aacOverFlow=null;var j=_.sample.unit.byteLength,I=Math.min(_.missing,j),k=j-I;_.sample.unit.set(A.subarray(0,I),k),S.samples.push(_.sample),C=_.missing}var J,G;for(J=C,G=A.length;J<G-1&&!v.isHeader(A,J);J++);if(J!==C){var D,H;if(J<G-1?(D="AAC PES did not start with ADTS header,offset:"+J,H=!1):(D="no ADTS header found in AAC PES",H=!0),r.logger.warn("parsing error:"+D),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:H,reason:D}),H)return}v.initTrackConfig(S,this.observer,A,J,this.audioCodec);var W;if(R.pts!==void 0)W=R.pts;else if(_){var L=v.getFrameDuration(S.samplerate);W=_.sample.pts+L}else{r.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var z=0;J<G;)if(v.isHeader(A,J)){if(J+5<G){var ie=v.appendFrame(S,A,J,W,z);if(ie)if(ie.missing)this.aacOverFlow=ie;else{J+=ie.length,z++;continue}}break}else J++},b.parseMPEGPES=function(R){var C=R.data,S=C.length,_=0,A=0,j=R.pts;if(j===void 0){r.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;A<S;)if(m.isHeader(C,A)){var I=m.appendFrame(this._audioTrack,C,A,j,_);if(I)A+=I.length,_++;else break}else A++},b.parseID3PES=function(R){if(R.pts===void 0){r.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(R)},x}();a.minProbeByteLength=188;function o(x,b,P,R){return{key:x,frame:!1,pts:b,dts:P,units:[],debug:R,length:0}}function l(x,b){return(x[b+10]&31)<<8|x[b+11]}function d(x,b,P,R){var C={audio:-1,avc:-1,id3:-1,isAAC:!0},S=(x[b+1]&15)<<8|x[b+2],_=b+3+S-4,A=(x[b+10]&15)<<8|x[b+11];for(b+=12+A;b<_;){var j=(x[b+1]&31)<<8|x[b+2];switch(x[b]){case 207:if(!R){r.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:C.audio===-1&&(C.audio=j);break;case 21:C.id3===-1&&(C.id3=j);break;case 219:if(!R){r.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:C.avc===-1&&(C.avc=j);break;case 3:case 4:P?C.audio===-1&&(C.audio=j,C.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}b+=((x[b+3]&15)<<8|x[b+4])+5}return C}function h(x){var b=0,P,R,C,S,_,A=x.data;if(!x||x.size===0)return null;for(;A[0].length<19&&A.length>1;){var j=new Uint8Array(A[0].length+A[1].length);j.set(A[0]),j.set(A[1],A[0].length),A[0]=j,A.splice(1,1)}P=A[0];var I=(P[0]<<16)+(P[1]<<8)+P[2];if(I===1){if(R=(P[4]<<8)+P[5],R&&R>x.size-6)return null;var k=P[7];k&192&&(S=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,k&64?(_=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,S-_>60*9e4&&(r.logger.warn(Math.round((S-_)/9e4)+"s delta between PTS and DTS, align them"),S=_)):_=S),C=P[8];var J=C+9;if(x.size<=J)return null;x.size-=J;for(var G=new Uint8Array(x.size),D=0,H=A.length;D<H;D++){P=A[D];var W=P.byteLength;if(J)if(J>W){J-=W;continue}else P=P.subarray(J),W-=J,J=0;G.set(P,b),b+=W}return R&&(R-=C+3),{data:G,pts:S,dts:_,len:R}}return null}function s(x,b){if(x.units.length&&x.frame){if(x.pts===void 0){var P=b.samples,R=P.length;if(R){var C=P[R-1];x.pts=C.pts,x.dts=C.dts}else{b.dropped++;return}}b.samples.push(x)}x.debug.length&&r.logger.log(x.pts+"/"+x.dts+":"+x.debug)}function u(x,b){var P=x.length;if(P>0){if(b.pts>=x[P-1].pts)x.push(b);else for(var R=P-1;R>=0;R--)if(b.pts<x[R].pts){x.splice(R,0,b);break}}else x.push(b)}function w(x){for(var b=x.byteLength,P=[],R=1;R<b-2;)x[R]===0&&x[R+1]===0&&x[R+2]===3?(P.push(R+2),R+=2):R++;if(P.length===0)return x;var C=b-P.length,S=new Uint8Array(C),_=0;for(R=0;R<C;_++,R++)_===P[0]&&(_++,P.shift()),S[R]=x[_];return S}E.default=a},"./src/errors.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"ErrorTypes",function(){return v}),T.d(E,"ErrorDetails",function(){return m});var v;(function(y){y.NETWORK_ERROR="networkError",y.MEDIA_ERROR="mediaError",y.KEY_SYSTEM_ERROR="keySystemError",y.MUX_ERROR="muxError",y.OTHER_ERROR="otherError"})(v||(v={}));var m;(function(y){y.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",y.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",y.KEY_SYSTEM_NO_SESSION="keySystemNoSession",y.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",y.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",y.MANIFEST_LOAD_ERROR="manifestLoadError",y.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",y.MANIFEST_PARSING_ERROR="manifestParsingError",y.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",y.LEVEL_EMPTY_ERROR="levelEmptyError",y.LEVEL_LOAD_ERROR="levelLoadError",y.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",y.LEVEL_SWITCH_ERROR="levelSwitchError",y.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",y.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",y.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",y.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",y.FRAG_LOAD_ERROR="fragLoadError",y.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",y.FRAG_DECRYPT_ERROR="fragDecryptError",y.FRAG_PARSING_ERROR="fragParsingError",y.REMUX_ALLOC_ERROR="remuxAllocError",y.KEY_LOAD_ERROR="keyLoadError",y.KEY_LOAD_TIMEOUT="keyLoadTimeOut",y.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",y.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",y.BUFFER_APPEND_ERROR="bufferAppendError",y.BUFFER_APPENDING_ERROR="bufferAppendingError",y.BUFFER_STALLED_ERROR="bufferStalledError",y.BUFFER_FULL_ERROR="bufferFullError",y.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",y.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",y.INTERNAL_EXCEPTION="internalException",y.INTERNAL_ABORTED="aborted",y.UNKNOWN="unknown"})(m||(m={}))},"./src/events.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"Events",function(){return v});var v;(function(m){m.MEDIA_ATTACHING="hlsMediaAttaching",m.MEDIA_ATTACHED="hlsMediaAttached",m.MEDIA_DETACHING="hlsMediaDetaching",m.MEDIA_DETACHED="hlsMediaDetached",m.BUFFER_RESET="hlsBufferReset",m.BUFFER_CODECS="hlsBufferCodecs",m.BUFFER_CREATED="hlsBufferCreated",m.BUFFER_APPENDING="hlsBufferAppending",m.BUFFER_APPENDED="hlsBufferAppended",m.BUFFER_EOS="hlsBufferEos",m.BUFFER_FLUSHING="hlsBufferFlushing",m.BUFFER_FLUSHED="hlsBufferFlushed",m.MANIFEST_LOADING="hlsManifestLoading",m.MANIFEST_LOADED="hlsManifestLoaded",m.MANIFEST_PARSED="hlsManifestParsed",m.LEVEL_SWITCHING="hlsLevelSwitching",m.LEVEL_SWITCHED="hlsLevelSwitched",m.LEVEL_LOADING="hlsLevelLoading",m.LEVEL_LOADED="hlsLevelLoaded",m.LEVEL_UPDATED="hlsLevelUpdated",m.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",m.LEVELS_UPDATED="hlsLevelsUpdated",m.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",m.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",m.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",m.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",m.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",m.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",m.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",m.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",m.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",m.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",m.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",m.CUES_PARSED="hlsCuesParsed",m.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",m.INIT_PTS_FOUND="hlsInitPtsFound",m.FRAG_LOADING="hlsFragLoading",m.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",m.FRAG_LOADED="hlsFragLoaded",m.FRAG_DECRYPTED="hlsFragDecrypted",m.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",m.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",m.FRAG_PARSING_METADATA="hlsFragParsingMetadata",m.FRAG_PARSED="hlsFragParsed",m.FRAG_BUFFERED="hlsFragBuffered",m.FRAG_CHANGED="hlsFragChanged",m.FPS_DROP="hlsFpsDrop",m.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",m.ERROR="hlsError",m.DESTROYING="hlsDestroying",m.KEY_LOADING="hlsKeyLoading",m.KEY_LOADED="hlsKeyLoaded",m.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",m.BACK_BUFFER_REACHED="hlsBackBufferReached"})(v||(v={}))},"./src/hls.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return x});var v=T("./node_modules/url-toolkit/src/url-toolkit.js"),m=T.n(v),y=T("./src/loader/playlist-loader.ts"),O=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"),c=T("./src/controller/stream-controller.ts"),n=T("./src/is-supported.ts"),a=T("./src/utils/logger.ts"),o=T("./src/config.ts"),l=T("./node_modules/eventemitter3/index.js"),d=T.n(l),h=T("./src/events.ts"),s=T("./src/errors.ts");function u(b,P){for(var R=0;R<P.length;R++){var C=P[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(b,C.key,C)}}function w(b,P,R){return P&&u(b.prototype,P),R&&u(b,R),b}var x=function(){b.isSupported=function(){return Object(n.isSupported)()};function b(R){R===void 0&&(R={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new l.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 C=this.config=Object(o.mergeConfig)(b.DefaultConfig,R);this.userConfig=R,Object(a.enableLogs)(C.debug),this._autoLevelCapping=-1,C.progressive&&Object(o.enableStreamingMode)(C);var S=C.abrController,_=C.bufferController,A=C.capLevelController,j=C.fpsController,I=this.abrController=new S(this),k=this.bufferController=new _(this),J=this.capLevelController=new A(this),G=new j(this),D=new y.default(this),H=new O.default(this),W=new g.default(this),L=this.levelController=new f.default(this),z=new r.FragmentTracker(this),ie=this.streamController=new c.default(this,z);J.setStreamController(ie),G.setStreamController(ie);var ce=[L,ie];this.networkControllers=ce;var ue=[D,H,I,k,J,G,W,z];this.audioTrackController=this.createController(C.audioTrackController,null,ce),this.createController(C.audioStreamController,z,ce),this.subtitleTrackController=this.createController(C.subtitleTrackController,null,ce),this.createController(C.subtitleStreamController,z,ce),this.createController(C.timelineController,null,ue),this.emeController=this.createController(C.emeController,null,ue),this.cmcdController=this.createController(C.cmcdController,null,ue),this.latencyController=this.createController(e.default,null,ue),this.coreComponents=ue}var P=b.prototype;return P.createController=function(C,S,_){if(C){var A=S?new C(this,S):new C(this);return _&&_.push(A),A}return null},P.on=function(C,S,_){_===void 0&&(_=this),this._emitter.on(C,S,_)},P.once=function(C,S,_){_===void 0&&(_=this),this._emitter.once(C,S,_)},P.removeAllListeners=function(C){this._emitter.removeAllListeners(C)},P.off=function(C,S,_,A){_===void 0&&(_=this),this._emitter.off(C,S,_,A)},P.listeners=function(C){return this._emitter.listeners(C)},P.emit=function(C,S,_){return this._emitter.emit(C,S,_)},P.trigger=function(C,S){if(this.config.debug)return this.emit(C,C,S);try{return this.emit(C,C,S)}catch(_){a.logger.error("An internal error happened while handling event "+C+'. Error message: "'+_.message+'". Here is a stacktrace:',_),this.trigger(h.Events.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:C,error:_})}return!1},P.listenerCount=function(C){return this._emitter.listenerCount(C)},P.destroy=function(){a.logger.log("destroy"),this.trigger(h.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(C){return C.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(C){return C.destroy()}),this.coreComponents.length=0},P.attachMedia=function(C){a.logger.log("attachMedia"),this._media=C,this.trigger(h.Events.MEDIA_ATTACHING,{media:C})},P.detachMedia=function(){a.logger.log("detachMedia"),this.trigger(h.Events.MEDIA_DETACHING,void 0),this._media=null},P.loadSource=function(C){this.stopLoad();var S=this.media,_=this.url,A=this.url=v.buildAbsoluteURL(self.location.href,C,{alwaysNormalize:!0});a.logger.log("loadSource:"+A),S&&_&&_!==A&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(S)),this.trigger(h.Events.MANIFEST_LOADING,{url:C})},P.startLoad=function(C){C===void 0&&(C=-1),a.logger.log("startLoad("+C+")"),this.networkControllers.forEach(function(S){S.startLoad(C)})},P.stopLoad=function(){a.logger.log("stopLoad"),this.networkControllers.forEach(function(C){C.stopLoad()})},P.swapAudioCodec=function(){a.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},P.recoverMediaError=function(){a.logger.log("recoverMediaError");var C=this._media;this.detachMedia(),C&&this.attachMedia(C)},P.removeLevel=function(C,S){S===void 0&&(S=0),this.levelController.removeLevel(C,S)},w(b,[{key:"levels",get:function(){var C=this.levelController.levels;return C||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(C){a.logger.log("set currentLevel:"+C),this.loadLevel=C,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(C){a.logger.log("set nextLevel:"+C),this.levelController.manualLevel=C,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(C){a.logger.log("set loadLevel:"+C),this.levelController.manualLevel=C}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(C){this.levelController.nextLoadLevel=C}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(C){a.logger.log("set firstLevel:"+C),this.levelController.firstLevel=C}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(C){a.logger.log("set startLevel:"+C),C!==-1&&(C=Math.max(C,this.minAutoLevel)),this.levelController.startLevel=C}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(C){var S=!!C;S!==this.config.capLevelToPlayerSize&&(S?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=S)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(C){this._autoLevelCapping!==C&&(a.logger.log("set autoLevelCapping:"+C),this._autoLevelCapping=C)}},{key:"bandwidthEstimate",get:function(){var C=this.abrController.bwEstimator;return C?C.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var C=this.levels,S=this.config.minAutoBitrate;if(!C)return 0;for(var _=C.length,A=0;A<_;A++)if(C[A].maxBitrate>S)return A;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,S=this.autoLevelCapping,_;return S===-1&&C&&C.length?_=C.length-1:_=S,_}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var S=this.audioTrackController;S&&(S.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{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 h.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return b.defaultConfig?b.defaultConfig:o.hlsDefaultConfig},set:function(C){b.defaultConfig=C}}]),b}();x.defaultConfig=void 0},"./src/is-supported.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"isSupported",function(){return y}),T.d(E,"changeTypeSupported",function(){return O});var v=T("./src/utils/mediasource-helper.ts");function m(){return self.SourceBuffer||self.WebKitSourceBuffer}function y(){var g=Object(v.getMediaSource)();if(!g)return!1;var e=m(),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 O(){var g,e=m();return typeof(e==null||((g=e.prototype)===null||g===void 0)?void 0:g.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return a}),T.d(E,"LoadError",function(){return l});var v=T("./src/polyfills/number.ts"),m=T("./src/errors.ts");function y(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,r(d,h)}function O(d){var h=typeof Map=="function"?new Map:void 0;return O=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 h!="undefined"){if(h.has(u))return h.get(u);h.set(u,w)}function w(){return g(u,arguments,c(this).constructor)}return w.prototype=Object.create(u.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),r(w,u)},O(d)}function g(d,h,s){return e()?g=Reflect.construct:g=function(w,x,b){var P=[null];P.push.apply(P,x);var R=Function.bind.apply(w,P),C=new R;return b&&r(C,b.prototype),C},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(d){return!1}}function f(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function r(d,h){return r=Object.setPrototypeOf||function(u,w){return u.__proto__=w,u},r(d,h)}function c(d){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},c(d)}var n=Math.pow(2,17),a=function(){function d(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var h=d.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(u,w){var x=this,b=u.url;if(!b)return Promise.reject(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(b?"part list":"url")));this.abort();var P=this.config,R=P.fLoader,C=P.loader;return new Promise(function(S,_){x.loader&&x.loader.destroy();var A=x.loader=u.loader=R?new R(P):new C(P),j=o(u),I={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};u.stats=A.stats,A.load(j,I,{onSuccess:function(J,G,D,H){x.resetLoader(u,A),S({frag:u,part:null,payload:J.data,networkDetails:H})},onError:function(J,G,D){x.resetLoader(u,A),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:J,networkDetails:D}))},onAbort:function(J,G,D){x.resetLoader(u,A),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:D}))},onTimeout:function(J,G,D){x.resetLoader(u,A),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:D}))},onProgress:function(J,G,D,H){w&&w({frag:u,part:null,payload:D,networkDetails:H})}})})},h.loadPart=function(u,w,x){var b=this;this.abort();var P=this.config,R=P.fLoader,C=P.loader;return new Promise(function(S,_){b.loader&&b.loader.destroy();var A=b.loader=u.loader=R?new R(P):new C(P),j=o(u,w),I={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:n};w.stats=A.stats,A.load(j,I,{onSuccess:function(J,G,D,H){b.resetLoader(u,A),b.updateStatsFromPart(u,w);var W={frag:u,part:w,payload:J.data,networkDetails:H};x(W),S(W)},onError:function(J,G,D){b.resetLoader(u,A),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:w,response:J,networkDetails:D}))},onAbort:function(J,G,D){u.stats.aborted=w.stats.aborted,b.resetLoader(u,A),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:w,networkDetails:D}))},onTimeout:function(J,G,D){b.resetLoader(u,A),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:w,networkDetails:D}))}})})},h.updateStatsFromPart=function(u,w){var x=u.stats,b=w.stats,P=b.total;if(x.loaded+=b.loaded,P){var R=Math.round(u.duration/w.duration),C=Math.min(Math.round(x.loaded/P),R),S=R-C,_=S*Math.round(x.loaded/C);x.total=x.loaded+_}else x.total=Math.max(x.loaded,x.total);var A=x.loading,j=b.loading;A.start?A.first+=j.first-j.start:(A.start=j.start,A.first=j.first),A.end=j.end},h.resetLoader=function(u,w){u.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},d}();function o(d,h){h===void 0&&(h=null);var s=h||d,u={frag:d,part:h,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},w=s.byteRangeStartOffset,x=s.byteRangeEndOffset;return Object(v.isFiniteNumber)(w)&&Object(v.isFiniteNumber)(x)&&(u.rangeStart=w,u.rangeEnd=x),u}var l=function(d){y(h,d);function h(s){for(var u,w=arguments.length,x=new Array(w>1?w-1:0),b=1;b<w;b++)x[b-1]=arguments[b];return u=d.call.apply(d,[this].concat(x))||this,u.data=void 0,u.data=s,u}return h}(O(Error))},"./src/loader/fragment.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"ElementaryStreamTypes",function(){return a}),T.d(E,"BaseSegment",function(){return o}),T.d(E,"Fragment",function(){return l}),T.d(E,"Part",function(){return d});var v=T("./src/polyfills/number.ts"),m=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(m),O=T("./src/utils/logger.ts"),g=T("./src/loader/level-key.ts"),e=T("./src/loader/load-stats.ts");function f(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,r(h,s)}function r(h,s){return r=Object.setPrototypeOf||function(w,x){return w.__proto__=x,w},r(h,s)}function c(h,s){for(var u=0;u<s.length;u++){var w=s[u];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(h,w.key,w)}}function n(h,s,u){return s&&c(h.prototype,s),u&&c(h,u),h}var a;(function(h){h.AUDIO="audio",h.VIDEO="video",h.AUDIOVIDEO="audiovideo"})(a||(a={}));var o=function(){function h(u){var w;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(w={},w[a.AUDIO]=null,w[a.VIDEO]=null,w[a.AUDIOVIDEO]=null,w),this.baseurl=u}var s=h.prototype;return s.setByteRange=function(w,x){var b=w.split("@",2),P=[];b.length===1?P[0]=x?x.byteRangeEndOffset:0:P[0]=parseInt(b[1]),P[1]=parseInt(b[0])+P[0],this._byteRange=P},n(h,[{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(m.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(w){this._url=w}}]),h}(),l=function(h){f(s,h);function s(w,x){var b;return b=h.call(this,x)||this,b._decryptdata=null,b.rawProgramDateTime=null,b.programDateTime=null,b.tagList=[],b.duration=0,b.sn=0,b.levelkey=void 0,b.type=void 0,b.loader=null,b.level=-1,b.cc=0,b.startPTS=void 0,b.endPTS=void 0,b.appendedPTS=void 0,b.startDTS=void 0,b.endDTS=void 0,b.start=0,b.deltaPTS=void 0,b.maxStartPTS=void 0,b.minEndPTS=void 0,b.stats=new e.LoadStats,b.urlId=0,b.data=void 0,b.bitrateTest=!1,b.title=null,b.initSegment=null,b.type=w,b}var u=s.prototype;return u.createInitializationVector=function(x){for(var b=new Uint8Array(16),P=12;P<16;P++)b[P]=x>>8*(15-P)&255;return b},u.setDecryptDataFromLevelKey=function(x,b){var P=x;return(x==null?void 0:x.method)==="AES-128"&&x.uri&&!x.iv&&(P=g.LevelKey.fromURI(x.uri),P.method=x.method,P.iv=this.createInitializationVector(b),P.keyFormat="identity"),P},u.setElementaryStreamInfo=function(x,b,P,R,C,S){S===void 0&&(S=!1);var _=this.elementaryStreams,A=_[x];if(!A){_[x]={startPTS:b,endPTS:P,startDTS:R,endDTS:C,partial:S};return}A.startPTS=Math.min(A.startPTS,b),A.endPTS=Math.max(A.endPTS,P),A.startDTS=Math.min(A.startDTS,R),A.endDTS=Math.max(A.endDTS,C)},u.clearElementaryStreamInfo=function(){var x=this.elementaryStreams;x[a.AUDIO]=null,x[a.VIDEO]=null,x[a.AUDIOVIDEO]=null},n(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var x=this.sn;typeof x!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&O.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),x=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,x)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(v.isFiniteNumber)(this.programDateTime))return null;var x=Object(v.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+x*1e3}},{key:"encrypted",get:function(){var x;return!!((x=this.decryptdata)!==null&&x!==void 0&&x.keyFormat&&this.decryptdata.uri)}}]),s}(o),d=function(h){f(s,h);function s(u,w,x,b,P){var R;R=h.call(this,x)||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=w,R.index=b;var C=u.enumeratedString("BYTERANGE");return C&&R.setByteRange(C,P),P&&(R.fragOffset=P.fragOffset+P.duration),R}return n(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),s}(o)},"./src/loader/key-loader.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return O});var v=T("./src/events.ts"),m=T("./src/errors.ts"),y=T("./src/utils/logger.ts"),O=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(v.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(v.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var r in this.loaders){var c=this.loaders[r];c&&c.destroy()}this.loaders={}},e.onKeyLoading=function(r,c){var n=c.frag,a=n.type,o=this.loaders[a];if(!n.decryptdata){y.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var l=n.decryptdata.uri;if(l!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(o&&(y.logger.warn("abort previous key loader for type:"+a),o.abort()),!l){y.logger.warn("key uri is falsy");return}var h=d.loader,s=n.loader=this.loaders[a]=new h(d);this.decrypturl=l,this.decryptkey=null;var u={url:l,frag:n,responseType:"arraybuffer"},w={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},x={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(u,w,x)}else this.decryptkey&&(n.decryptdata.key=this.decryptkey,this.hls.trigger(v.Events.KEY_LOADED,{frag:n}))},e.loadsuccess=function(r,c,n){var a=n.frag;if(!a.decryptdata){y.logger.error("after key load, decryptdata unset");return}this.decryptkey=a.decryptdata.key=new Uint8Array(r.data),a.loader=null,delete this.loaders[a.type],this.hls.trigger(v.Events.KEY_LOADED,{frag:a})},e.loaderror=function(r,c){var n=c.frag,a=n.loader;a&&a.abort(),delete this.loaders[n.type],this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:n,response:r})},e.loadtimeout=function(r,c){var n=c.frag,a=n.loader;a&&a.abort(),delete this.loaders[n.type],this.hls.trigger(v.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:n})},g}()},"./src/loader/level-details.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"LevelDetails",function(){return g});var v=T("./src/polyfills/number.ts");function m(e,f){for(var r=0;r<f.length;r++){var c=f[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function y(e,f,r){return f&&m(e.prototype,f),r&&m(e,r),e}var O=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(c){if(!c){this.advanced=!0,this.updated=!0;return}var n=this.lastPartSn-c.lastPartSn,a=this.lastPartIndex-c.lastPartIndex;this.updated=this.endSN!==c.endSN||!!a||!!n,this.advanced=this.endSN>c.endSN||n>0||n===0&&a>0,this.updated||this.advanced?this.misses=Math.floor(c.misses*.6):this.misses=c.misses+1,this.availabilityDelay=c.availabilityDelay},y(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(v.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||O}},{key:"drift",get:function(){var c=this.driftEndTime-this.driftStartTime;if(c>0){var n=this.driftEnd-this.driftStart;return n*1e3/c}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var c;return(c=this.fragments)!==null&&c!==void 0&&c.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var c;return(c=this.partList)!==null&&c!==void 0&&c.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"LevelKey",function(){return g});var v=T("./node_modules/url-toolkit/src/url-toolkit.js"),m=T.n(v);function y(e,f){for(var r=0;r<f.length;r++){var c=f[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function O(e,f,r){return f&&y(e.prototype,f),r&&y(e,r),e}var g=function(){e.fromURL=function(r,c){return new e(r,c)},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(v.buildAbsoluteURL)(f,r,{alwaysNormalize:!0}):this._uri=f}return O(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"LoadStats",function(){return v});var v=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,E,T){"use strict";T.r(E),T.d(E,"default",function(){return s});var v=T("./src/polyfills/number.ts"),m=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(m),O=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"),c=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,a=/#EXT-X-MEDIA:(.*)/g,o=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),l=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("|")),d=/\.(mp4|m4s|m4v|m4a)$/i;function h(P){var R,C;return d.test((R=(C=m.parseURL(P))===null||C===void 0?void 0:C.path)!=null?R:"")}var s=function(){function P(){}return P.findGroup=function(C,S){for(var _=0;_<C.length;_++){var A=C[_];if(A.id===S)return A}},P.convertAVC1ToAVCOTI=function(C){var S=C.split(".");if(S.length>2){var _=S.shift()+".";return _+=parseInt(S.shift()).toString(16),_+=("000"+parseInt(S.shift()).toString(16)).substr(-4),_}return C},P.resolve=function(C,S){return m.buildAbsoluteURL(S,C,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(C,S){var _=[],A={},j=!1;n.lastIndex=0;for(var I;(I=n.exec(C))!=null;)if(I[1]){var k=new f.AttrList(I[1]),J={attrs:k,bitrate:k.decimalInteger("AVERAGE-BANDWIDTH")||k.decimalInteger("BANDWIDTH"),name:k.NAME,url:P.resolve(I[2],S)},G=k.decimalResolution("RESOLUTION");G&&(J.width=G.width,J.height=G.height),u((k.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),J),J.videoCodec&&J.videoCodec.indexOf("avc1")!==-1&&(J.videoCodec=P.convertAVC1ToAVCOTI(J.videoCodec)),_.push(J)}else if(I[3]){var D=new f.AttrList(I[3]);D["DATA-ID"]&&(j=!0,A[D["DATA-ID"]]=D)}return{levels:_,sessionData:j?A:null}},P.parseMasterPlaylistMedia=function(C,S,_,A){A===void 0&&(A=[]);var j,I=[],k=0;for(a.lastIndex=0;(j=a.exec(C))!==null;){var J=new f.AttrList(j[1]);if(J.TYPE===_){var G={attrs:J,bitrate:0,id:k++,groupId:J["GROUP-ID"],instreamId:J["INSTREAM-ID"],name:J.NAME||J.LANGUAGE||"",type:_,default:J.bool("DEFAULT"),autoselect:J.bool("AUTOSELECT"),forced:J.bool("FORCED"),lang:J.LANGUAGE,url:J.URI?P.resolve(J.URI,S):""};if(A.length){var D=P.findGroup(A,G.groupId)||A[0];w(G,D,"audioCodec"),w(G,D,"textCodec")}I.push(G)}}return I},P.parseLevelPlaylist=function(C,S,_,A,j){var I=new g.LevelDetails(S),k=I.fragments,J=null,G=0,D=0,H=0,W=0,L=null,z=new O.Fragment(A,S),ie,ce,ue,xe=-1,Te=!1;for(o.lastIndex=0,I.m3u8=C;(ie=o.exec(C))!==null;){Te&&(Te=!1,z=new O.Fragment(A,S),z.start=H,z.sn=G,z.cc=W,z.level=_,J&&(z.initSegment=J,z.rawProgramDateTime=J.rawProgramDateTime));var de=ie[1];if(de){z.duration=parseFloat(de);var ve=(" "+ie[2]).slice(1);z.title=ve||null,z.tagList.push(ve?["INF",de,ve]:["INF",de])}else if(ie[3])Object(v.isFiniteNumber)(z.duration)&&(z.start=H,ue&&(z.levelkey=ue),z.sn=G,z.level=_,z.cc=W,z.urlId=j,k.push(z),z.relurl=(" "+ie[3]).slice(1),b(z,L),L=z,H+=z.duration,G++,D=0,Te=!0);else if(ie[4]){var _e=(" "+ie[4]).slice(1);L?z.setByteRange(_e,L):z.setByteRange(_e)}else if(ie[5])z.rawProgramDateTime=(" "+ie[5]).slice(1),z.tagList.push(["PROGRAM-DATE-TIME",z.rawProgramDateTime]),xe===-1&&(xe=k.length);else{if(ie=ie[0].match(l),!ie){r.logger.warn("No matches on slow regex match for level playlist!");continue}for(ce=1;ce<ie.length&&!(typeof ie[ce]!="undefined");ce++);var le=(" "+ie[ce]).slice(1),ee=(" "+ie[ce+1]).slice(1),U=ie[ce+2]?(" "+ie[ce+2]).slice(1):"";switch(le){case"PLAYLIST-TYPE":I.type=ee.toUpperCase();break;case"MEDIA-SEQUENCE":G=I.startSN=parseInt(ee);break;case"SKIP":{var K=new f.AttrList(ee),X=K.decimalInteger("SKIPPED-SEGMENTS");if(Object(v.isFiniteNumber)(X)){I.skippedSegments=X;for(var Q=X;Q--;)k.unshift(null);G+=X}var te=K.enumeratedString("RECENTLY-REMOVED-DATERANGES");te&&(I.recentlyRemovedDateranges=te.split(" "));break}case"TARGETDURATION":I.targetduration=parseFloat(ee);break;case"VERSION":I.version=parseInt(ee);break;case"EXTM3U":break;case"ENDLIST":I.live=!1;break;case"#":(ee||U)&&z.tagList.push(U?[ee,U]:[ee]);break;case"DIS":W++;case"GAP":z.tagList.push([le]);break;case"BITRATE":z.tagList.push([le,ee]);break;case"DISCONTINUITY-SEQ":W=parseInt(ee);break;case"KEY":{var ae,re=new f.AttrList(ee),$=re.enumeratedString("METHOD"),Z=re.URI,fe=re.hexadecimalInteger("IV"),me=re.enumeratedString("KEYFORMATVERSIONS"),Oe=re.enumeratedString("KEYID"),He=(ae=re.enumeratedString("KEYFORMAT"))!=null?ae:"identity",Qe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Qe.indexOf(He)>-1){r.logger.warn("Keyformat "+He+" is not supported from the manifest");continue}else if(He!=="identity")continue;$&&(ue=e.LevelKey.fromURL(S,Z),Z&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf($)>=0&&(ue.method=$,ue.keyFormat=He,Oe&&(ue.keyID=Oe),me&&(ue.keyFormatVersions=me),ue.iv=fe));break}case"START":{var ot=new f.AttrList(ee),st=ot.decimalFloatingPoint("TIME-OFFSET");Object(v.isFiniteNumber)(st)&&(I.startTimeOffset=st);break}case"MAP":{var ct=new f.AttrList(ee);z.relurl=ct.URI,ct.BYTERANGE&&z.setByteRange(ct.BYTERANGE),z.level=_,z.sn="initSegment",ue&&(z.levelkey=ue),z.initSegment=null,J=z,Te=!0;break}case"SERVER-CONTROL":{var dt=new f.AttrList(ee);I.canBlockReload=dt.bool("CAN-BLOCK-RELOAD"),I.canSkipUntil=dt.optionalFloat("CAN-SKIP-UNTIL",0),I.canSkipDateRanges=I.canSkipUntil>0&&dt.bool("CAN-SKIP-DATERANGES"),I.partHoldBack=dt.optionalFloat("PART-HOLD-BACK",0),I.holdBack=dt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Xe=new f.AttrList(ee);I.partTarget=Xe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var ke=I.partList;ke||(ke=I.partList=[]);var lt=D>0?ke[ke.length-1]:void 0,Mt=D++,Ce=new O.Part(new f.AttrList(ee),z,S,Mt,lt);ke.push(Ce),z.duration+=Ce.duration;break}case"PRELOAD-HINT":{var he=new f.AttrList(ee);I.preloadHint=he;break}case"RENDITION-REPORT":{var be=new f.AttrList(ee);I.renditionReports=I.renditionReports||[],I.renditionReports.push(be);break}default:r.logger.warn("line parsed but not handled: "+ie);break}}}L&&!L.relurl?(k.pop(),H-=L.duration,I.partList&&(I.fragmentHint=L)):I.partList&&(b(z,L),z.cc=W,I.fragmentHint=z);var Ee=k.length,Ne=k[0],we=k[Ee-1];if(H+=I.skippedSegments*I.targetduration,H>0&&Ee&&we){I.averagetargetduration=H/Ee;var Ae=we.sn;I.endSN=Ae!=="initSegment"?Ae:0,Ne&&(I.startCC=Ne.cc,Ne.initSegment||I.fragments.every(function(Ue){return Ue.relurl&&h(Ue.relurl)})&&(r.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),z=new O.Fragment(A,S),z.relurl=we.relurl,z.level=_,z.sn="initSegment",Ne.initSegment=z,I.needSidxRanges=!0))}else I.endSN=0,I.startCC=0;return I.fragmentHint&&(H+=I.fragmentHint.duration),I.totalduration=H,I.endCC=W,xe>0&&x(k,xe),I},P}();function u(P,R){["video","audio","text"].forEach(function(C){var S=P.filter(function(A){return Object(c.isCodecType)(A,C)});if(S.length){var _=S.filter(function(A){return A.lastIndexOf("avc1",0)===0||A.lastIndexOf("mp4a",0)===0});R[C+"Codec"]=_.length>0?_[0]:S[0],P=P.filter(function(A){return S.indexOf(A)===-1})}}),R.unknownCodecs=P}function w(P,R,C){var S=R[C];S&&(P[C]=S)}function x(P,R){for(var C=P[R],S=R;S--;){var _=P[S];if(!_)return;_.programDateTime=C.programDateTime-_.duration*1e3,C=_}}function b(P,R){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):R!=null&&R.programDateTime&&(P.programDateTime=R.endProgramDateTime),Object(v.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/polyfills/number.ts"),m=T("./src/events.ts"),y=T("./src/errors.ts"),O=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 c(o){var l=o.type;switch(l){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(o,l){var d=o.url;return(d===void 0||d.indexOf("data:")===0)&&(d=l.url),d}var a=function(){function o(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var l=o.prototype;return l.registerListeners=function(){var h=this.hls;h.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(m.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.unregisterListeners=function(){var h=this.hls;h.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(m.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.createInternalLoader=function(h){var s=this.hls.config,u=s.pLoader,w=s.loader,x=u||w,b=new x(s);return h.loader=b,this.loaders[h.type]=b,b},l.getInternalLoader=function(h){return this.loaders[h.type]},l.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},l.destroyInternalLoaders=function(){for(var h in this.loaders){var s=this.loaders[h];s&&s.destroy(),this.resetInternalLoader(h)}},l.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},l.onManifestLoading=function(h,s){var u=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:f.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},l.onLevelLoading=function(h,s){var u=s.id,w=s.level,x=s.url,b=s.deliveryDirectives;this.load({id:u,groupId:null,level:w,responseType:"text",type:f.PlaylistContextType.LEVEL,url:x,deliveryDirectives:b})},l.onAudioTrackLoading=function(h,s){var u=s.id,w=s.groupId,x=s.url,b=s.deliveryDirectives;this.load({id:u,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.AUDIO_TRACK,url:x,deliveryDirectives:b})},l.onSubtitleTrackLoading=function(h,s){var u=s.id,w=s.groupId,x=s.url,b=s.deliveryDirectives;this.load({id:u,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.SUBTITLE_TRACK,url:x,deliveryDirectives:b})},l.load=function(h){var s,u=this.hls.config,w=this.getInternalLoader(h);if(w){var x=w.context;if(x&&x.url===h.url){O.logger.trace("[playlist-loader]: playlist request ongoing");return}O.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),w.abort()}var b,P,R,C;switch(h.type){case f.PlaylistContextType.MANIFEST:b=u.manifestLoadingMaxRetry,P=u.manifestLoadingTimeOut,R=u.manifestLoadingRetryDelay,C=u.manifestLoadingMaxRetryTimeout;break;case f.PlaylistContextType.LEVEL:case f.PlaylistContextType.AUDIO_TRACK:case f.PlaylistContextType.SUBTITLE_TRACK:b=0,P=u.levelLoadingTimeOut;break;default:b=u.levelLoadingMaxRetry,P=u.levelLoadingTimeOut,R=u.levelLoadingRetryDelay,C=u.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(h),(s=h.deliveryDirectives)!==null&&s!==void 0&&s.part){var S;if(h.type===f.PlaylistContextType.LEVEL&&h.level!==null?S=this.hls.levels[h.level].details:h.type===f.PlaylistContextType.AUDIO_TRACK&&h.id!==null?S=this.hls.audioTracks[h.id].details:h.type===f.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(S=this.hls.subtitleTracks[h.id].details),S){var _=S.partTarget,A=S.targetduration;_&&A&&(P=Math.min(Math.max(_*3,A*.8)*1e3,P))}}var j={timeout:P,maxRetry:b,retryDelay:R,maxRetryDelay:C,highWaterMark:0},I={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(h,j,I)},l.loadsuccess=function(h,s,u,w){if(w===void 0&&(w=null),u.isSidxRequest){this.handleSidxRequest(h,u),this.handlePlaylistLoaded(h,s,u,w);return}this.resetInternalLoader(u.type);var x=h.data;if(x.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,u,"no EXTM3U delimiter",w);return}s.parsing.start=performance.now(),x.indexOf("#EXTINF:")>0||x.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,s,u,w):this.handleMasterPlaylist(h,s,u,w)},l.loaderror=function(h,s,u){u===void 0&&(u=null),this.handleNetworkError(s,u,!1,h)},l.loadtimeout=function(h,s,u){u===void 0&&(u=null),this.handleNetworkError(s,u,!0)},l.handleMasterPlaylist=function(h,s,u,w){var x=this.hls,b=h.data,P=n(h,u),R=e.default.parseMasterPlaylist(b,P),C=R.levels,S=R.sessionData;if(!C.length){this.handleManifestParsingError(h,u,"no level found in manifest",w);return}var _=C.map(function(G){return{id:G.attrs.AUDIO,audioCodec:G.audioCodec}}),A=C.map(function(G){return{id:G.attrs.SUBTITLES,textCodec:G.textCodec}}),j=e.default.parseMasterPlaylistMedia(b,P,"AUDIO",_),I=e.default.parseMasterPlaylistMedia(b,P,"SUBTITLES",A),k=e.default.parseMasterPlaylistMedia(b,P,"CLOSED-CAPTIONS");if(j.length){var J=j.some(function(G){return!G.url});!J&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(O.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),j.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new r.AttrList({}),bitrate:0,url:""}))}x.trigger(m.Events.MANIFEST_LOADED,{levels:C,audioTracks:j,subtitles:I,captions:k,url:P,stats:s,networkDetails:w,sessionData:S})},l.handleTrackOrLevelPlaylist=function(h,s,u,w){var x=this.hls,b=u.id,P=u.level,R=u.type,C=n(h,u),S=Object(v.isFiniteNumber)(b)?b:0,_=Object(v.isFiniteNumber)(P)?P:S,A=c(u),j=e.default.parseLevelPlaylist(h.data,C,_,A,S);if(!j.fragments.length){x.trigger(m.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,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:j,name:"",url:C};x.trigger(m.Events.MANIFEST_LOADED,{levels:[I],audioTracks:[],url:C,stats:s,networkDetails:w,sessionData:null})}if(s.parsing.end=performance.now(),j.needSidxRanges){var k,J=(k=j.fragments[0].initSegment)===null||k===void 0?void 0:k.url;this.load({url:J,isSidxRequest:!0,type:R,level:P,levelDetails:j,id:b,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=j,this.handlePlaylistLoaded(h,s,u,w)},l.handleSidxRequest=function(h,s){var u=Object(g.parseSegmentIndex)(new Uint8Array(h.data));if(!u)return;var w=u.references,x=s.levelDetails;w.forEach(function(b,P){var R=b.info,C=x.fragments[P];C.byteRange.length===0&&C.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),C.initSegment&&C.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},l.handleManifestParsingError=function(h,s,u,w){this.hls.trigger(m.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===f.PlaylistContextType.MANIFEST,url:h.url,reason:u,response:h,context:s,networkDetails:w})},l.handleNetworkError=function(h,s,u,w){u===void 0&&(u=!1),O.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var x=y.ErrorDetails.UNKNOWN,b=!1,P=this.getInternalLoader(h);switch(h.type){case f.PlaylistContextType.MANIFEST:x=u?y.ErrorDetails.MANIFEST_LOAD_TIMEOUT:y.ErrorDetails.MANIFEST_LOAD_ERROR,b=!0;break;case f.PlaylistContextType.LEVEL:x=u?y.ErrorDetails.LEVEL_LOAD_TIMEOUT:y.ErrorDetails.LEVEL_LOAD_ERROR,b=!1;break;case f.PlaylistContextType.AUDIO_TRACK:x=u?y.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:y.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,b=!1;break;case f.PlaylistContextType.SUBTITLE_TRACK:x=u?y.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:y.ErrorDetails.SUBTITLE_LOAD_ERROR,b=!1;break}P&&this.resetInternalLoader(h.type);var R={type:y.ErrorTypes.NETWORK_ERROR,details:x,fatal:b,url:h.url,loader:P,context:h,networkDetails:s};w&&(R.response=w),this.hls.trigger(m.Events.ERROR,R)},l.handlePlaylistLoaded=function(h,s,u,w){var x=u.type,b=u.level,P=u.id,R=u.groupId,C=u.loader,S=u.levelDetails,_=u.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(h,u,"invalid target duration",w);return}if(!C)return;S.live&&(C.getCacheAge&&(S.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(x){case f.PlaylistContextType.MANIFEST:case f.PlaylistContextType.LEVEL:this.hls.trigger(m.Events.LEVEL_LOADED,{details:S,level:b||0,id:P||0,stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(m.Events.AUDIO_TRACK_LOADED,{details:S,id:P||0,groupId:R||"",stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(m.Events.SUBTITLE_TRACK_LOADED,{details:S,id:P||0,groupId:R||"",stats:s,networkDetails:w,deliveryDirectives:_});break}},o}();E.default=a},"./src/polyfills/number.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"isFiniteNumber",function(){return v}),T.d(E,"MAX_SAFE_INTEGER",function(){return m});var v=Number.isFinite||function(y){return typeof y=="number"&&isFinite(y)},m=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(M,E,T){"use strict";T.r(E);var v=function(){function m(){}return m.getSilentFrame=function(O,g){switch(O){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},m}();E.default=v},"./src/remux/mp4-generator.ts":function(M,E,T){"use strict";T.r(E);var v=Math.pow(2,32)-1,m=function(){function y(){}return y.init=function(){y.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 y.types)y.types.hasOwnProperty(g)&&(y.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]);y.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]),c=new Uint8Array([0,0,0,0,0,0,0,0]);y.STTS=y.STSC=y.STCO=c,y.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),y.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),y.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),y.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var n=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);y.FTYP=y.box(y.types.ftyp,n,o,n,a),y.DINF=y.box(y.types.dinf,y.box(y.types.dref,r))},y.box=function(g){for(var e=8,f=arguments.length,r=new Array(f>1?f-1:0),c=1;c<f;c++)r[c-1]=arguments[c];for(var n=r.length,a=n;n--;)e+=r[n].byteLength;var o=new Uint8Array(e);for(o[0]=e>>24&255,o[1]=e>>16&255,o[2]=e>>8&255,o[3]=e&255,o.set(g,4),n=0,e=8;n<a;n++)o.set(r[n],e),e+=r[n].byteLength;return o},y.hdlr=function(g){return y.box(y.types.hdlr,y.HDLR_TYPES[g])},y.mdat=function(g){return y.box(y.types.mdat,g)},y.mdhd=function(g,e){e*=g;var f=Math.floor(e/(v+1)),r=Math.floor(e%(v+1));return y.box(y.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]))},y.mdia=function(g){return y.box(y.types.mdia,y.mdhd(g.timescale,g.duration),y.hdlr(g.type),y.minf(g))},y.mfhd=function(g){return y.box(y.types.mfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255]))},y.minf=function(g){return g.type==="audio"?y.box(y.types.minf,y.box(y.types.smhd,y.SMHD),y.DINF,y.stbl(g)):y.box(y.types.minf,y.box(y.types.vmhd,y.VMHD),y.DINF,y.stbl(g))},y.moof=function(g,e,f){return y.box(y.types.moof,y.mfhd(g),y.traf(f,e))},y.moov=function(g){for(var e=g.length,f=[];e--;)f[e]=y.trak(g[e]);return y.box.apply(null,[y.types.moov,y.mvhd(g[0].timescale,g[0].duration)].concat(f).concat(y.mvex(g)))},y.mvex=function(g){for(var e=g.length,f=[];e--;)f[e]=y.trex(g[e]);return y.box.apply(null,[y.types.mvex].concat(f))},y.mvhd=function(g,e){e*=g;var f=Math.floor(e/(v+1)),r=Math.floor(e%(v+1)),c=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 y.box(y.types.mvhd,c)},y.sdtp=function(g){var e=g.samples||[],f=new Uint8Array(4+e.length),r,c;for(r=0;r<e.length;r++)c=e[r].flags,f[r+4]=c.dependsOn<<4|c.isDependedOn<<2|c.hasRedundancy;return y.box(y.types.sdtp,f)},y.stbl=function(g){return y.box(y.types.stbl,y.stsd(g),y.box(y.types.stts,y.STTS),y.box(y.types.stsc,y.STSC),y.box(y.types.stsz,y.STSZ),y.box(y.types.stco,y.STCO))},y.avc1=function(g){var e=[],f=[],r,c,n;for(r=0;r<g.sps.length;r++)c=g.sps[r],n=c.byteLength,e.push(n>>>8&255),e.push(n&255),e=e.concat(Array.prototype.slice.call(c));for(r=0;r<g.pps.length;r++)c=g.pps[r],n=c.byteLength,f.push(n>>>8&255),f.push(n&255),f=f.concat(Array.prototype.slice.call(c));var a=y.box(y.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))),o=g.width,l=g.height,d=g.pixelRatio[0],h=g.pixelRatio[1];return y.box(y.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,o>>8&255,o&255,l>>8&255,l&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,y.box(y.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),y.box(y.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,d&255,h>>24,h>>16&255,h>>8&255,h&255])))},y.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]))},y.mp4a=function(g){var e=g.samplerate;return y.box(y.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]),y.box(y.types.esds,y.esds(g)))},y.mp3=function(g){var e=g.samplerate;return y.box(y.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]))},y.stsd=function(g){return g.type==="audio"?!g.isAAC&&g.codec==="mp3"?y.box(y.types.stsd,y.STSD,y.mp3(g)):y.box(y.types.stsd,y.STSD,y.mp4a(g)):y.box(y.types.stsd,y.STSD,y.avc1(g))},y.tkhd=function(g){var e=g.id,f=g.duration*g.timescale,r=g.width,c=g.height,n=Math.floor(f/(v+1)),a=Math.floor(f%(v+1));return y.box(y.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,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,c>>8&255,c&255,0,0]))},y.traf=function(g,e){var f=y.sdtp(g),r=g.id,c=Math.floor(e/(v+1)),n=Math.floor(e%(v+1));return y.box(y.types.traf,y.box(y.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),y.box(y.types.tfdt,new Uint8Array([1,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,n>>24,n>>16&255,n>>8&255,n&255])),y.trun(g,f.length+16+20+8+16+8+8),f)},y.trak=function(g){return g.duration=g.duration||4294967295,y.box(y.types.trak,y.tkhd(g),y.mdia(g))},y.trex=function(g){var e=g.id;return y.box(y.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]))},y.trun=function(g,e){var f=g.samples||[],r=f.length,c=12+16*r,n=new Uint8Array(c),a,o,l,d,h,s;for(e+=8+c,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),a=0;a<r;a++)o=f[a],l=o.duration,d=o.size,h=o.flags,s=o.cts,n.set([l>>>24&255,l>>>16&255,l>>>8&255,l&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*a);return y.box(y.types.trun,n)},y.initSegment=function(g){y.types||y.init();var e=y.moov(g),f=new Uint8Array(y.FTYP.byteLength+e.byteLength);return f.set(y.FTYP),f.set(e,y.FTYP.byteLength),f},y}();m.types=void 0,m.HDLR_TYPES=void 0,m.STTS=void 0,m.STSC=void 0,m.STCO=void 0,m.STSZ=void 0,m.VMHD=void 0,m.SMHD=void 0,m.STSD=void 0,m.FTYP=void 0,m.DINF=void 0,E.default=m},"./src/remux/mp4-remuxer.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return s}),T.d(E,"normalizePts",function(){return u});var v=T("./src/polyfills/number.ts"),m=T("./src/remux/aac-helper.ts"),y=T("./src/remux/mp4-generator.ts"),O=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 c(){return c=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var C=arguments[R];for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&(P[S]=C[S])}return P},c.apply(this,arguments)}var n=10*1e3,a=1024,o=1152,l=null,d=null,h=!1,s=function(){function P(C,S,_,A){if(A===void 0&&(A=""),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=C,this.config=S,this.typeSupported=_,this.ISGenerated=!1,l===null){var j=navigator.userAgent||"",I=j.match(/Chrome\/(\d+)/i);l=I?parseInt(I[1]):0}if(d===null){var k=navigator.userAgent.match(/Safari\/(\d+)/i);d=k?parseInt(k[1]):0}h=!!l&&l<75||!!d&&d<600}var R=P.prototype;return R.destroy=function(){},R.resetTimeStamp=function(S){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=S},R.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},R.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},R.getVideoStartPts=function(S){var _=!1,A=S.reduce(function(j,I){var k=I.pts-j;return k<-4294967296?(_=!0,u(j,I.pts)):k>0?j:I.pts},S[0].pts);return _&&e.logger.debug("PTS rollover detected"),A},R.remux=function(S,_,A,j,I,k,J,G){var D,H,W,L,z,ie,ce=I,ue=I,xe=S.pid>-1,Te=_.pid>-1,de=_.samples.length,ve=S.samples.length>0,_e=de>1,le=(!xe||ve)&&(!Te||_e)||this.ISGenerated||J;if(le){this.ISGenerated||(W=this.generateIS(S,_,I));var ee=this.isVideoContiguous,U=-1;if(_e&&(U=w(_.samples),!ee&&this.config.forceKeyFrameOnDiscontinuity))if(ie=!0,U>0){e.logger.warn("[mp4-remuxer]: Dropped "+U+" out of "+de+" video samples due to a missing keyframe");var K=this.getVideoStartPts(_.samples);_.samples=_.samples.slice(U),_.dropped+=U,ue+=(_.samples[0].pts-K)/(_.timescale||9e4)}else U===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+de+" video samples"),ie=!1);if(this.ISGenerated){if(ve&&_e){var X=this.getVideoStartPts(_.samples),Q=u(S.samples[0].pts,X)-X,te=Q/_.inputTimeScale;ce+=Math.max(0,te),ue+=Math.max(0,-te)}if(ve){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),W=this.generateIS(S,_,I)),H=this.remuxAudio(S,ce,this.isAudioContiguous,k,Te||_e||G===f.PlaylistLevelType.AUDIO?ue:void 0),_e){var ae=H?H.endPTS-H.startPTS:0;_.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),W=this.generateIS(S,_,I)),D=this.remuxVideo(_,ue,ee,ae)}}else _e&&(D=this.remuxVideo(_,ue,ee,0));D&&(D.firstKeyFrame=U,D.independent=U!==-1)}}return this.ISGenerated&&(A.samples.length&&(z=this.remuxID3(A,I)),j.samples.length&&(L=this.remuxText(j,I))),{audio:H,video:D,initSegment:W,independent:ie,text:L,id3:z}},R.generateIS=function(S,_,A){var j=S.samples,I=_.samples,k=this.typeSupported,J={},G=!Object(v.isFiniteNumber)(this._initPTS),D="audio/mp4",H,W,L;if(G&&(H=W=Infinity),S.config&&j.length&&(S.timescale=S.samplerate,S.isAAC||(k.mpeg?(D="audio/mpeg",S.codec=""):k.mp3&&(S.codec="mp3")),J.audio={id:"audio",container:D,codec:S.codec,initSegment:!S.isAAC&&k.mpeg?new Uint8Array(0):y.default.initSegment([S]),metadata:{channelCount:S.channelCount}},G&&(L=S.inputTimeScale,H=W=j[0].pts-Math.round(L*A))),_.sps&&_.pps&&I.length&&(_.timescale=_.inputTimeScale,J.video={id:"main",container:"video/mp4",codec:_.codec,initSegment:y.default.initSegment([_]),metadata:{width:_.width,height:_.height}},G)){L=_.inputTimeScale;var z=this.getVideoStartPts(I),ie=Math.round(L*A);W=Math.min(W,u(I[0].dts,z)-ie),H=Math.min(H,z-ie)}if(Object.keys(J).length)return this.ISGenerated=!0,G&&(this._initPTS=H,this._initDTS=W),{tracks:J,initPTS:H,timescale:L}},R.remuxVideo=function(S,_,A,j){var I=S.inputTimeScale,k=S.samples,J=[],G=k.length,D=this._initPTS,H=this.nextAvcDts,W=8,L,z,ie,ce=Number.POSITIVE_INFINITY,ue=Number.NEGATIVE_INFINITY,xe=0,Te=!1;if(!A||H===null){var de=_*I,ve=k[0].pts-u(k[0].dts,k[0].pts);H=de-ve}for(var _e=0;_e<G;_e++){var le=k[_e];if(le.pts=u(le.pts-D,H),le.dts=u(le.dts-D,H),le.dts>le.pts){var ee=9e4*.2;xe=Math.max(Math.min(xe,le.pts-le.dts),-1*ee)}le.dts<k[_e>0?_e-1:_e].dts&&(Te=!0)}Te&&k.sort(function(St,Be){var at=St.dts-Be.dts,it=St.pts-Be.pts;return at||it}),z=k[0].dts,ie=k[k.length-1].dts;var U=Math.round((ie-z)/(G-1));if(xe<0){if(xe<U*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(r.toMsFromMpegTsClock)(-U,!0)+" ms");for(var K=xe,X=0;X<G;X++)k[X].dts=K=Math.max(K,k[X].pts-U),k[X].pts=Math.max(K,k[X].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(r.toMsFromMpegTsClock)(xe,!0)+" ms to overcome this issue");for(var Q=0;Q<G;Q++)k[Q].dts=k[Q].dts+xe}z=k[0].dts}if(A){var te=z-H,ae=te>U,re=te<-1;if(ae||re){ae?e.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(te,!0)+" ms ("+te+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(r.toMsFromMpegTsClock)(-te,!0)+" ms ("+te+"dts) overlapping between fragments detected"),z=H;var $=k[0].pts-te;k[0].dts=z,k[0].pts=$,e.logger.log("Video: First PTS/DTS adjusted: "+Object(r.toMsFromMpegTsClock)($,!0)+"/"+Object(r.toMsFromMpegTsClock)(z,!0)+", delta: "+Object(r.toMsFromMpegTsClock)(te,!0)+" ms")}}h&&(z=Math.max(0,z));for(var Z=0,fe=0,me=0;me<G;me++){for(var Oe=k[me],He=Oe.units,Qe=He.length,ot=0,st=0;st<Qe;st++)ot+=He[st].data.length;fe+=ot,Z+=Qe,Oe.length=ot,Oe.dts=Math.max(Oe.dts,z),Oe.pts=Math.max(Oe.pts,Oe.dts,0),ce=Math.min(Oe.pts,ce),ue=Math.max(Oe.pts,ue)}ie=k[G-1].dts;var ct=fe+4*Z+8,dt;try{dt=new Uint8Array(ct)}catch(St){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ct,reason:"fail allocating video mdat "+ct});return}var Xe=new DataView(dt.buffer);Xe.setUint32(0,ct),dt.set(y.default.types.mdat,4);for(var ke=0;ke<G;ke++){for(var lt=k[ke],Mt=lt.units,Ce=0,he=0,be=Mt.length;he<be;he++){var Ee=Mt[he],Ne=Ee.data,we=Ee.data.byteLength;Xe.setUint32(W,we),W+=4,dt.set(Ne,W),W+=we,Ce+=4+we}if(ke<G-1)L=k[ke+1].dts-lt.dts;else{var Ae=this.config,Ue=lt.dts-k[ke>0?ke-1:ke].dts;if(Ae.stretchShortVideoTrack&&this.nextAudioPts!==null){var We=Math.floor(Ae.maxBufferHole*I),Je=(j?ce+j*I:this.nextAudioPts)-lt.pts;Je>We?(L=Je-Ue,L<0&&(L=Ue),e.logger.log("[mp4-remuxer]: It is approximately "+Je/90+" ms to the next segment; using duration "+L/90+" ms for the last video frame.")):L=Ue}else L=Ue}var $e=Math.round(lt.pts-lt.dts);J.push(new x(lt.key,L,Ce,$e))}if(J.length&&l&&l<70){var pt=J[0].flags;pt.dependsOn=2,pt.isNonSync=0}console.assert(L!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=ie+L,this.isVideoContiguous=!0;var Jt=y.default.moof(S.sequenceNumber++,z,c({},S,{samples:J})),fn="video",qt={data1:Jt,data2:dt,startPTS:ce/I,endPTS:(ue+L)/I,startDTS:z/I,endDTS:H/I,type:fn,hasAudio:!1,hasVideo:!0,nb:J.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert(dt.length,"MDAT length must not be zero"),qt},R.remuxAudio=function(S,_,A,j,I){var k=S.inputTimeScale,J=S.samplerate?S.samplerate:k,G=k/J,D=S.isAAC?a:o,H=D*G,W=this._initPTS,L=!S.isAAC&&this.typeSupported.mpeg,z=[],ie=S.samples,ce=L?0:8,ue=this.nextAudioPts||-1,xe=_*k;if(this.isAudioContiguous=A=A||ie.length&&ue>0&&(j&&Math.abs(xe-ue)<9e3||Math.abs(u(ie[0].pts-W,xe)-ue)<20*H),ie.forEach(function(Ne){Ne.pts=u(Ne.pts-W,xe)}),!A||ue<0){if(ie=ie.filter(function(Ne){return Ne.pts>=0}),!ie.length)return;I===0?ue=0:j?ue=Math.max(0,xe):ue=ie[0].pts}if(S.isAAC)for(var Te=I!==void 0,de=this.config.maxAudioFramesDrift,ve=0,_e=ue;ve<ie.length;ve++){var le=ie[ve],ee=le.pts,U=ee-_e,K=Math.abs(1e3*U/k);if(U<=-de*H&&Te)ve===0&&(e.logger.warn("Audio frame @ "+(ee/k).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*U/k)+" ms."),this.nextAudioPts=ue=_e=ee);else if(U>=de*H&&K<n&&Te){var X=Math.round(U/H);_e=ee-X*H,_e<0&&(X--,_e+=H),ve===0&&(this.nextAudioPts=ue=_e),e.logger.warn("[mp4-remuxer]: Injecting "+X+" audio frame @ "+(_e/k).toFixed(3)+"s due to "+Math.round(1e3*U/k)+" ms gap.");for(var Q=0;Q<X;Q++){var te=Math.max(_e,0),ae=m.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);ae||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ae=le.unit.subarray()),ie.splice(ve,0,{unit:ae,pts:te}),_e+=H,ve++}}le.pts=_e,_e+=H}for(var re=null,$=null,Z,fe=0,me=ie.length;me--;)fe+=ie[me].unit.byteLength;for(var Oe=0,He=ie.length;Oe<He;Oe++){var Qe=ie[Oe],ot=Qe.unit,st=Qe.pts;if($!==null){var ct=z[Oe-1];ct.duration=Math.round((st-$)/G)}else if(A&&S.isAAC&&(st=ue),re=st,fe>0){fe+=ce;try{Z=new Uint8Array(fe)}catch(Ne){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:g.ErrorTypes.MUX_ERROR,details:g.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:fe,reason:"fail allocating audio mdat "+fe});return}if(!L){var dt=new DataView(Z.buffer);dt.setUint32(0,fe),Z.set(y.default.types.mdat,4)}}else return;Z.set(ot,ce);var Xe=ot.byteLength;ce+=Xe,z.push(new x(!0,D,Xe,0)),$=st}var ke=z.length;if(!ke)return;var lt=z[z.length-1];this.nextAudioPts=ue=$+G*lt.duration;var Mt=L?new Uint8Array(0):y.default.moof(S.sequenceNumber++,re/G,c({},S,{samples:z}));S.samples=[];var Ce=re/k,he=ue/k,be="audio",Ee={data1:Mt,data2:Z,startPTS:Ce,endPTS:he,startDTS:Ce,endDTS:he,type:be,hasAudio:!0,hasVideo:!1,nb:ke};return this.isAudioContiguous=!0,console.assert(Z.length,"MDAT length must not be zero"),Ee},R.remuxEmptyAudio=function(S,_,A,j){var I=S.inputTimeScale,k=S.samplerate?S.samplerate:I,J=I/k,G=this.nextAudioPts,D=(G!==null?G:j.startDTS*I)+this._initDTS,H=j.endDTS*I+this._initDTS,W=J*a,L=Math.ceil((H-D)/W),z=m.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!z){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ie=[],ce=0;ce<L;ce++){var ue=D+ce*W;ie.push({unit:z,pts:ue,dts:ue})}return S.samples=ie,this.remuxAudio(S,_,A,!1)},R.remuxID3=function(S,_){var A=S.samples.length;if(!A)return;for(var j=S.inputTimeScale,I=this._initPTS,k=this._initDTS,J=0;J<A;J++){var G=S.samples[J];G.pts=u(G.pts-I,_*j)/j,G.dts=u(G.dts-k,_*j)/j}var D=S.samples;return S.samples=[],{samples:D}},R.remuxText=function(S,_){var A=S.samples.length;if(!A)return;for(var j=S.inputTimeScale,I=this._initPTS,k=0;k<A;k++){var J=S.samples[k];J.pts=u(J.pts-I,_*j)/j}S.samples.sort(function(D,H){return D.pts-H.pts});var G=S.samples;return S.samples=[],{samples:G}},P}();function u(P,R){var C;if(R===null)return P;for(R<P?C=-8589934592:C=8589934592;Math.abs(P-R)>4294967296;)P+=C;return P}function w(P){for(var R=0;R<P.length;R++)if(P[R].key)return R;return-1}var x=function(R,C,S,_){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=C,this.size=S,this.cts=_,this.flags=new b(R)},b=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,E,T){"use strict";T.r(E);var v=T("./src/polyfills/number.ts"),m=T("./src/utils/mp4-tools.ts"),y=T("./src/loader/fragment.ts"),O=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 c=r.prototype;return c.destroy=function(){},c.resetTimeStamp=function(a){this.initPTS=a,this.lastEndDTS=null},c.resetNextTimestamp=function(){this.lastEndDTS=null},c.resetInitSegment=function(a,o,l){this.audioCodec=o,this.videoCodec=l,this.generateInitSegment(a),this.emitInitSegment=!0},c.generateInitSegment=function(a){var o=this.audioCodec,l=this.videoCodec;if(!a||!a.byteLength){this.initTracks=void 0,this.initData=void 0;return}var d=this.initData=Object(m.parseInitSegment)(a);o||(o=f(d.audio,y.ElementaryStreamTypes.AUDIO)),l||(l=f(d.video,y.ElementaryStreamTypes.VIDEO));var h={};d.audio&&d.video?h.audiovideo={container:"video/mp4",codec:o+","+l,initSegment:a,id:"main"}:d.audio?h.audio={container:"audio/mp4",codec:o,initSegment:a,id:"audio"}:d.video?h.video={container:"video/mp4",codec:l,initSegment:a,id:"main"}:O.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=h},c.remux=function(a,o,l,d,h){var s=this.initPTS,u=this.lastEndDTS,w={audio:void 0,video:void 0,text:d,id3:l,initSegment:void 0};Object(v.isFiniteNumber)(u)||(u=this.lastEndDTS=h||0);var x=o.samples;if(!x||!x.length)return w;var b={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(x),P=this.initData),!P||!P.length)return O.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),w;this.emitInitSegment&&(b.tracks=this.initTracks,this.emitInitSegment=!1),Object(v.isFiniteNumber)(s)||(this.initPTS=b.initPTS=s=e(P,x,u));var R=Object(m.getDuration)(x,P),C=u,S=R+C;Object(m.offsetStartDTS)(P,x,s),R>0?this.lastEndDTS=S:(O.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var _=!!P.audio,A=!!P.video,j="";_&&(j+="audio"),A&&(j+="video");var I={data1:x,startPTS:C,startDTS:C,endPTS:S,endDTS:S,type:j,hasAudio:_,hasVideo:A,nb:1,dropped:0};return w.audio=I.type==="audio"?I:void 0,w.video=I.type!=="audio"?I:void 0,w.text=d,w.id3=l,w.initSegment=b,w},r}(),e=function(c,n,a){return Object(m.getStartDTS)(c,n)-a};function f(r,c){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"||c===y.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}E.default=g},"./src/task-loop.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return v});var v=function(){function m(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var y=m.prototype;return y.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},y.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},y.onHandlerDestroyed=function(){},y.hasInterval=function(){return!!this._tickInterval},y.hasNextTick=function(){return!!this._tickTimer},y.setInterval=function(g){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,g),!0)},y.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},y.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},y.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},y.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},y.doTick=function(){},m}()},"./src/types/cmcd.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"CMCDVersion",function(){return v}),T.d(E,"CMCDObjectType",function(){return m}),T.d(E,"CMCDStreamingFormat",function(){return y}),T.d(E,"CMCDStreamType",function(){return O});var v=1,m;(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"})(m||(m={}));var y;(function(g){g.DASH="d",g.HLS="h",g.SMOOTH="s",g.OTHER="o"})(y||(y={}));var O;(function(g){g.VOD="v",g.LIVE="l"})(O||(O={}))},"./src/types/level.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"HlsSkip",function(){return y}),T.d(E,"getSkipValue",function(){return O}),T.d(E,"HlsUrlParameters",function(){return g}),T.d(E,"Level",function(){return e});function v(f,r){for(var c=0;c<r.length;c++){var n=r[c];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function m(f,r,c){return r&&v(f.prototype,r),c&&v(f,c),f}var y;(function(f){f.No="",f.Yes="YES",f.v2="v2"})(y||(y={}));function O(f,r){var c=f.canSkipUntil,n=f.canSkipDateRanges,a=f.endSN,o=r!==void 0?r-a:0;return c&&o<c?n?y.v2:y.Yes:y.No}var g=function(){function f(c,n,a){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=c,this.part=n,this.skip=a}var r=f.prototype;return r.addDirectives=function(n){var a=new self.URL(n);return this.msn!==void 0&&a.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&a.searchParams.set("_HLS_part",this.part.toString()),this.skip&&a.searchParams.set("_HLS_skip",this.skip),a.toString()},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(c){return c}).join(",").replace(/\.[^.,]+/g,"")}return m(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(c){var n=c%this.url.length;this._urlId!==n&&(this.details=void 0,this._urlId=n)}}]),f}()},"./src/types/loader.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"PlaylistContextType",function(){return v}),T.d(E,"PlaylistLevelType",function(){return m});var v;(function(y){y.MANIFEST="manifest",y.LEVEL="level",y.AUDIO_TRACK="audioTrack",y.SUBTITLE_TRACK="subtitleTrack"})(v||(v={}));var m;(function(y){y.MAIN="main",y.AUDIO="audio",y.SUBTITLE="subtitle"})(m||(m={}))},"./src/types/transmuxer.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"ChunkMetadata",function(){return v});var v=function(O,g,e,f,r,c){f===void 0&&(f=0),r===void 0&&(r=-1),c===void 0&&(c=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=m(),this.buffering={audio:m(),video:m(),audiovideo:m()},this.level=O,this.sn=g,this.id=e,this.size=f,this.part=r,this.partial=c};function m(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"AttrList",function(){return y});var v=/^(\d+)x(\d+)$/,m=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,y=function(){function O(e){typeof e=="string"&&(e=O.parseAttrList(e));for(var f in e)e.hasOwnProperty(f)&&(this[f]=e[f])}var g=O.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 c=new Uint8Array(r.length/2),n=0;n<r.length/2;n++)c[n]=parseInt(r.slice(n*2,n*2+2),16);return c}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 c=this[f];return c?parseFloat(c):r},g.enumeratedString=function(f){return this[f]},g.bool=function(f){return this[f]==="YES"},g.decimalResolution=function(f){var r=v.exec(this[f]);return r===null?void 0:{width:parseInt(r[1],10),height:parseInt(r[2],10)}},O.parseAttrList=function(f){var r,c={},n='"';for(m.lastIndex=0;(r=m.exec(f))!==null;){var a=r[2];a.indexOf(n)===0&&a.lastIndexOf(n)===a.length-1&&(a=a.slice(1,-1)),c[r[1]]=a}return c},O}()},"./src/utils/binary-search.ts":function(M,E,T){"use strict";T.r(E);var v={search:function(y,O){for(var g=0,e=y.length-1,f=null,r=null;g<=e;){f=(g+e)/2|0,r=y[f];var c=O(r);if(c>0)g=f+1;else if(c<0)e=f-1;else return r}return null}};E.default=v},"./src/utils/buffer-helper.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"BufferHelper",function(){return y});var v=T("./src/utils/logger.ts"),m={length:0,start:function(){return 0},end:function(){return 0}},y=function(){function O(){}return O.isBuffered=function(e,f){try{if(e){for(var r=O.getBuffered(e),c=0;c<r.length;c++)if(f>=r.start(c)&&f<=r.end(c))return!0}}catch(n){}return!1},O.bufferInfo=function(e,f,r){try{if(e){var c=O.getBuffered(e),n=[],a;for(a=0;a<c.length;a++)n.push({start:c.start(a),end:c.end(a)});return this.bufferedInfo(n,f,r)}}catch(o){}return{len:0,start:f,end:f,nextStart:void 0}},O.bufferedInfo=function(e,f,r){f=Math.max(0,f),e.sort(function(b,P){var R=b.start-P.start;return R||P.end-b.end});var c=[];if(r)for(var n=0;n<e.length;n++){var a=c.length;if(a){var o=c[a-1].end;e[n].start-o<r?e[n].end>o&&(c[a-1].end=e[n].end):c.push(e[n])}else c.push(e[n])}else c=e;for(var l=0,d,h=f,s=f,u=0;u<c.length;u++){var w=c[u].start,x=c[u].end;if(f+r>=w&&f<x)h=w,s=x,l=s-f;else if(f+r<w){d=w;break}}return{len:l,start:h||0,end:s||0,nextStart:d}},O.getBuffered=function(e){try{return e.buffered}catch(f){return v.logger.log("failed to get media.buffered",f),m}},O}()},"./src/utils/cea-608-parser.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"Row",function(){return s}),T.d(E,"CaptionScreen",function(){return u});var v=T("./src/utils/logger.ts"),m={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},y=function(S){var _=S;return m.hasOwnProperty(S)&&(_=m[S]),String.fromCharCode(_)},O=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},c={25:2,26:4,29:6,30:8,31:10,27:13,28:15},n=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],a;(function(C){C[C.ERROR=0]="ERROR",C[C.TEXT=1]="TEXT",C[C.WARNING=2]="WARNING",C[C.INFO=2]="INFO",C[C.DEBUG=3]="DEBUG",C[C.DATA=3]="DATA"})(a||(a={}));var o=function(){function C(){this.time=null,this.verboseLevel=a.ERROR}var S=C.prototype;return S.log=function(A,j){this.verboseLevel>=A&&v.logger.log(this.time+" ["+A+"] "+j)},C}(),l=function(S){for(var _=[],A=0;A<S.length;A++)_.push(S[A].toString(16));return _},d=function(){function C(_,A,j,I,k){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=_||"white",this.underline=A||!1,this.italics=j||!1,this.background=I||"black",this.flash=k||!1}var S=C.prototype;return S.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},S.setStyles=function(A){for(var j=["foreground","underline","italics","background","flash"],I=0;I<j.length;I++){var k=j[I];A.hasOwnProperty(k)&&(this[k]=A[k])}},S.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},S.equals=function(A){return this.foreground===A.foreground&&this.underline===A.underline&&this.italics===A.italics&&this.background===A.background&&this.flash===A.flash},S.copy=function(A){this.foreground=A.foreground,this.underline=A.underline,this.italics=A.italics,this.background=A.background,this.flash=A.flash},S.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},C}(),h=function(){function C(_,A,j,I,k,J){this.uchar=void 0,this.penState=void 0,this.uchar=_||" ",this.penState=new d(A,j,I,k,J)}var S=C.prototype;return S.reset=function(){this.uchar=" ",this.penState.reset()},S.setChar=function(A,j){this.uchar=A,this.penState.copy(j)},S.setPenState=function(A){this.penState.copy(A)},S.equals=function(A){return this.uchar===A.uchar&&this.penState.equals(A.penState)},S.copy=function(A){this.uchar=A.uchar,this.penState.copy(A.penState)},S.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},C}(),s=function(){function C(_){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var A=0;A<g;A++)this.chars.push(new h);this.logger=_,this.pos=0,this.currPenState=new d}var S=C.prototype;return S.equals=function(A){for(var j=!0,I=0;I<g;I++)if(!this.chars[I].equals(A.chars[I])){j=!1;break}return j},S.copy=function(A){for(var j=0;j<g;j++)this.chars[j].copy(A.chars[j])},S.isEmpty=function(){for(var A=!0,j=0;j<g;j++)if(!this.chars[j].isEmpty()){A=!1;break}return A},S.setCursor=function(A){this.pos!==A&&(this.pos=A),this.pos<0?(this.logger.log(a.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>g&&(this.logger.log(a.DEBUG,"Too large cursor position "+this.pos),this.pos=g)},S.moveCursor=function(A){var j=this.pos+A;if(A>1)for(var I=this.pos+1;I<j+1;I++)this.chars[I].setPenState(this.currPenState);this.setCursor(j)},S.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},S.insertChar=function(A){A>=144&&this.backSpace();var j=y(A);if(this.pos>=g){this.logger.log(a.ERROR,"Cannot insert "+A.toString(16)+" ("+j+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(j,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(A){var j;for(j=A;j<g;j++)this.chars[j].reset()},S.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},S.clearToEndOfRow=function(){this.clearFromPos(this.pos)},S.getTextString=function(){for(var A=[],j=!0,I=0;I<g;I++){var k=this.chars[I].uchar;k!==" "&&(j=!1),A.push(k)}return j?"":A.join("")},S.setPenStyles=function(A){this.currPenState.setStyles(A);var j=this.chars[this.pos];j.setPenState(this.currPenState)},C}(),u=function(){function C(_){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var A=0;A<O;A++)this.rows.push(new s(_));this.logger=_,this.currRow=O-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var S=C.prototype;return S.reset=function(){for(var A=0;A<O;A++)this.rows[A].clear();this.currRow=O-1},S.equals=function(A){for(var j=!0,I=0;I<O;I++)if(!this.rows[I].equals(A.rows[I])){j=!1;break}return j},S.copy=function(A){for(var j=0;j<O;j++)this.rows[j].copy(A.rows[j])},S.isEmpty=function(){for(var A=!0,j=0;j<O;j++)if(!this.rows[j].isEmpty()){A=!1;break}return A},S.backSpace=function(){var A=this.rows[this.currRow];A.backSpace()},S.clearToEndOfRow=function(){var A=this.rows[this.currRow];A.clearToEndOfRow()},S.insertChar=function(A){var j=this.rows[this.currRow];j.insertChar(A)},S.setPen=function(A){var j=this.rows[this.currRow];j.setPenStyles(A)},S.moveCursor=function(A){var j=this.rows[this.currRow];j.moveCursor(A)},S.setCursor=function(A){this.logger.log(a.INFO,"setCursor: "+A);var j=this.rows[this.currRow];j.setCursor(A)},S.setPAC=function(A){this.logger.log(a.INFO,"pacData = "+JSON.stringify(A));var j=A.row-1;if(this.nrRollUpRows&&j<this.nrRollUpRows-1&&(j=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==j){for(var I=0;I<O;I++)this.rows[I].clear();var k=this.currRow+1-this.nrRollUpRows,J=this.lastOutputScreen;if(J){var G=J.rows[k].cueStartTime,D=this.logger.time;if(G&&D!==null&&G<D)for(var H=0;H<this.nrRollUpRows;H++)this.rows[j-this.nrRollUpRows+H+1].copy(J.rows[k+H])}}this.currRow=j;var W=this.rows[this.currRow];if(A.indent!==null){var L=A.indent,z=Math.max(L-1,0);W.setCursor(A.indent),A.color=W.chars[z].penState.foreground}var ie={foreground:A.color,underline:A.underline,italics:A.italics,background:"black",flash:!1};this.setPen(ie)},S.setBkgData=function(A){this.logger.log(a.INFO,"bkgData = "+JSON.stringify(A)),this.backSpace(),this.setPen(A),this.insertChar(32)},S.setRollUpRows=function(A){this.nrRollUpRows=A},S.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(a.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(a.TEXT,this.getDisplayText());var A=this.currRow+1-this.nrRollUpRows,j=this.rows.splice(A,1)[0];j.clear(),this.rows.splice(this.currRow,0,j),this.logger.log(a.INFO,"Rolling up")},S.getDisplayText=function(A){A=A||!1;for(var j=[],I="",k=-1,J=0;J<O;J++){var G=this.rows[J].getTextString();G&&(k=J+1,A?j.push("Row "+k+": '"+G+"'"):j.push(G.trim()))}return j.length>0&&(A?I="["+j.join(" | ")+"]":I=j.join(`
`)),I},S.getTextAndFormat=function(){return this.rows},C}(),w=function(){function C(_,A,j){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=_,this.outputFilter=A,this.mode=null,this.verbose=0,this.displayedMemory=new u(j),this.nonDisplayedMemory=new u(j),this.lastOutputScreen=new u(j),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=j}var S=C.prototype;return S.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},S.getHandler=function(){return this.outputFilter},S.setHandler=function(A){this.outputFilter=A},S.setPAC=function(A){this.writeScreen.setPAC(A)},S.setBkgData=function(A){this.writeScreen.setBkgData(A)},S.setMode=function(A){if(A===this.mode)return;this.mode=A,this.logger.log(a.INFO,"MODE="+A),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=A},S.insertChars=function(A){for(var j=0;j<A.length;j++)this.writeScreen.insertChar(A[j]);var I=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(a.INFO,I+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(a.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},S.ccRCL=function(){this.logger.log(a.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},S.ccBS=function(){if(this.logger.log(a.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},S.ccAOF=function(){},S.ccAON=function(){},S.ccDER=function(){this.logger.log(a.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},S.ccRU=function(A){this.logger.log(a.INFO,"RU("+A+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(A)},S.ccFON=function(){this.logger.log(a.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},S.ccRDC=function(){this.logger.log(a.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},S.ccTR=function(){this.logger.log(a.INFO,"TR"),this.setMode("MODE_TEXT")},S.ccRTD=function(){this.logger.log(a.INFO,"RTD"),this.setMode("MODE_TEXT")},S.ccEDM=function(){this.logger.log(a.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},S.ccCR=function(){this.logger.log(a.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},S.ccENM=function(){this.logger.log(a.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},S.ccEOC=function(){if(this.logger.log(a.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var A=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=A,this.writeScreen=this.nonDisplayedMemory,this.logger.log(a.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},S.ccTO=function(A){this.logger.log(a.INFO,"TO("+A+") - Tab Offset"),this.writeScreen.moveCursor(A)},S.ccMIDROW=function(A){var j={flash:!1};if(j.underline=A%2===1,j.italics=A>=46,j.italics)j.foreground="white";else{var I=Math.floor(A/2)-16,k=["white","green","blue","cyan","red","yellow","magenta"];j.foreground=k[I]}this.logger.log(a.INFO,"MIDROW: "+JSON.stringify(j)),this.writeScreen.setPen(j)},S.outputDataUpdate=function(A){A===void 0&&(A=!1);var j=this.logger.time;if(j===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=j:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,j,this.lastOutputScreen),A&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:j),this.lastOutputScreen.copy(this.displayedMemory))},S.cueSplitAtTime=function(A){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,A,this.displayedMemory),this.cueStartTime=A))},C}(),x=function(){function C(_,A,j){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var I=new o;this.channels=[null,new w(_,A,I),new w(_+1,j,I)],this.cmdHistory=R(),this.logger=I}var S=C.prototype;return S.getHandler=function(A){return this.channels[A].getHandler()},S.setHandler=function(A,j){this.channels[A].setHandler(j)},S.addData=function(A,j){var I,k,J,G=!1;this.logger.time=A;for(var D=0;D<j.length;D+=2){if(k=j[D]&127,J=j[D+1]&127,k===0&&J===0)continue;if(this.logger.log(a.DATA,"["+l([j[D],j[D+1]])+"] -> ("+l([k,J])+")"),I=this.parseCmd(k,J),I||(I=this.parseMidrow(k,J)),I||(I=this.parsePAC(k,J)),I||(I=this.parseBackgroundAttributes(k,J)),!I&&(G=this.parseChars(k,J),G)){var H=this.currentChannel;if(H&&H>0){var W=this.channels[H];W.insertChars(G)}else this.logger.log(a.WARNING,"No channel found yet. TEXT-MODE?")}!I&&!G&&this.logger.log(a.WARNING,"Couldn't parse cleaned data "+l([k,J])+" orig: "+l([j[D],j[D+1]]))}},S.parseCmd=function(A,j){var I=this.cmdHistory,k=(A===20||A===28||A===21||A===29)&&j>=32&&j<=47,J=(A===23||A===31)&&j>=33&&j<=35;if(!(k||J))return!1;if(P(A,j,I))return b(null,null,I),this.logger.log(a.DEBUG,"Repeated command ("+l([A,j])+") is dropped"),!0;var G=A===20||A===21||A===23?1:2,D=this.channels[G];return A===20||A===21||A===28||A===29?j===32?D.ccRCL():j===33?D.ccBS():j===34?D.ccAOF():j===35?D.ccAON():j===36?D.ccDER():j===37?D.ccRU(2):j===38?D.ccRU(3):j===39?D.ccRU(4):j===40?D.ccFON():j===41?D.ccRDC():j===42?D.ccTR():j===43?D.ccRTD():j===44?D.ccEDM():j===45?D.ccCR():j===46?D.ccENM():j===47&&D.ccEOC():D.ccTO(j-32),b(A,j,I),this.currentChannel=G,!0},S.parseMidrow=function(A,j){var I=0;if((A===17||A===25)&&j>=32&&j<=47){if(A===17?I=1:I=2,I!==this.currentChannel)return this.logger.log(a.ERROR,"Mismatch channel in midrow parsing"),!1;var k=this.channels[I];return k?(k.ccMIDROW(j),this.logger.log(a.DEBUG,"MIDROW ("+l([A,j])+")"),!0):!1}return!1},S.parsePAC=function(A,j){var I,k=this.cmdHistory,J=(A>=17&&A<=23||A>=25&&A<=31)&&j>=64&&j<=127,G=(A===16||A===24)&&j>=64&&j<=95;if(!(J||G))return!1;if(P(A,j,k))return b(null,null,k),!0;var D=A<=23?1:2;j>=64&&j<=95?I=D===1?e[A]:r[A]:I=D===1?f[A]:c[A];var H=this.channels[D];return H?(H.setPAC(this.interpretPAC(I,j)),b(A,j,k),this.currentChannel=D,!0):!1},S.interpretPAC=function(A,j){var I,k={color:null,italics:!1,indent:null,underline:!1,row:A};return j>95?I=j-96:I=j-64,k.underline=(I&1)===1,I<=13?k.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(I/2)]:I<=15?(k.italics=!0,k.color="white"):k.indent=Math.floor((I-16)/2)*4,k},S.parseChars=function(A,j){var I,k=null,J=null;if(A>=25?(I=2,J=A-8):(I=1,J=A),J>=17&&J<=19){var G;J===17?G=j+80:J===18?G=j+112:G=j+144,this.logger.log(a.INFO,"Special char '"+y(G)+"' in channel "+I),k=[G]}else A>=32&&A<=127&&(k=j===0?[A]:[A,j]);if(k){var D=l(k);this.logger.log(a.DEBUG,"Char codes = "+D.join(",")),b(A,j,this.cmdHistory)}return k},S.parseBackgroundAttributes=function(A,j){var I=(A===16||A===24)&&j>=32&&j<=47,k=(A===23||A===31)&&j>=45&&j<=47;if(!(I||k))return!1;var J,G={};A===16||A===24?(J=Math.floor((j-32)/2),G.background=n[J],j%2===1&&(G.background=G.background+"_semi")):j===45?G.background="transparent":(G.foreground="black",j===47&&(G.underline=!0));var D=A<=23?1:2,H=this.channels[D];return H.setBkgData(G),b(A,j,this.cmdHistory),!0},S.reset=function(){for(var A=0;A<Object.keys(this.channels).length;A++){var j=this.channels[A];j&&j.reset()}this.cmdHistory=R()},S.cueSplitAtTime=function(A){for(var j=0;j<this.channels.length;j++){var I=this.channels[j];I&&I.cueSplitAtTime(A)}},C}();function b(C,S,_){_.a=C,_.b=S}function P(C,S,_){return _.a===C&&_.b===S}function R(){return{a:null,b:null}}E.default=x},"./src/utils/codecs.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"isCodecType",function(){return m}),T.d(E,"isCodecSupportedInMp4",function(){return y});var v={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 m(O,g){var e=v[g];return!!e&&e[O.slice(0,4)]===!0}function y(O,g){return MediaSource.isTypeSupported((g||"video")+'/mp4;codecs="'+O+'"')}},"./src/utils/cues.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/utils/vttparser.ts"),m=T("./src/utils/webvtt-parser.ts"),y=T("./src/utils/texttrack-utils.ts"),O=/\s/,g={newCue:function(f,r,c,n){for(var a=[],o,l,d,h,s,u=self.VTTCue||self.TextTrackCue,w=0;w<n.rows.length;w++)if(o=n.rows[w],d=!0,h=0,s="",!o.isEmpty()){for(var x=0;x<o.chars.length;x++)O.test(o.chars[x].uchar)&&d?h++:(s+=o.chars[x].uchar,d=!1);o.cueStartTime=r,r===c&&(c+=1e-4),h>=16?h--:h++;var b=Object(v.fixLineBreaks)(s.trim()),P=Object(m.generateCueId)(r,c,b);(!f||!f.cues||!f.cues.getCueById(P))&&(l=new u(r,c,b),l.id=P,l.line=w+1,l.align="left",l.position=10+Math.min(80,Math.floor(h*8/32)*10),a.push(l))}return f&&a.length&&(a.sort(function(R,C){return R.line==="auto"||C.line==="auto"?0:R.line>8&&C.line>8?C.line-R.line:R.line-C.line}),a.forEach(function(R){return Object(y.addCueToTrack)(f,R)})),a}};E.default=g},"./src/utils/discontinuities.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"findFirstFragWithCC",function(){return O}),T.d(E,"shouldAlignOnDiscontinuities",function(){return g}),T.d(E,"findDiscontinuousReferenceFrag",function(){return e}),T.d(E,"adjustSlidingStart",function(){return r}),T.d(E,"alignStream",function(){return c}),T.d(E,"alignPDT",function(){return a}),T.d(E,"alignFragmentByPDTDelta",function(){return o}),T.d(E,"alignMediaPlaylistByPDT",function(){return l});var v=T("./src/polyfills/number.ts"),m=T("./src/utils/logger.ts"),y=T("./src/controller/level-helper.ts");function O(d,h){for(var s=null,u=0,w=d.length;u<w;u++){var x=d[u];if(x&&x.cc===h){s=x;break}}return s}function g(d,h,s){return!!(h.details&&(s.endCC>s.startCC||d&&d.cc<s.startCC))}function e(d,h){var s=d.fragments,u=h.fragments;if(!u.length||!s.length){m.logger.log("No fragments to align");return}var w=O(s,u[0].cc);if(!w||w&&!w.startPTS){m.logger.log("No frag in previous level to align on");return}return w}function f(d,h){if(d){var s=d.start+h;d.start=d.startPTS=s,d.endPTS=s+d.duration}}function r(d,h){for(var s=h.fragments,u=0,w=s.length;u<w;u++)f(s[u],d);h.fragmentHint&&f(h.fragmentHint,d),h.alignedSliding=!0}function c(d,h,s){if(!h)return;n(d,s,h),!s.alignedSliding&&h.details&&a(s,h.details),!s.alignedSliding&&h.details&&!s.skippedSegments&&Object(y.adjustSliding)(h.details,s)}function n(d,h,s){if(g(d,s,h)){var u=e(s.details,h);u&&Object(v.isFiniteNumber)(u.start)&&(m.logger.log("Adjusting PTS using last level due to CC increase within current level "+h.url),r(u.start,h))}}function a(d,h){if(!h.fragments.length||!d.hasProgramDateTime||!h.hasProgramDateTime)return;var s=h.fragments[0].programDateTime,u=d.fragments[0].programDateTime,w=(u-s)/1e3+h.fragments[0].start;w&&Object(v.isFiniteNumber)(w)&&(m.logger.log("Adjusting PTS using programDateTime delta "+(u-s)+"ms, sliding:"+w.toFixed(3)+" "+d.url+" "),r(w,d))}function o(d,h){var s=d.programDateTime;if(!s)return;var u=(s-h)/1e3;d.start=d.startPTS=u,d.endPTS=u+d.duration}function l(d,h){if(!h.fragments.length||!d.hasProgramDateTime||!h.hasProgramDateTime)return;var s=h.fragments[0].programDateTime,u=h.fragments[0].start,w=s-u*1e3;d.fragments.forEach(function(x){o(x,w)}),d.fragmentHint&&o(d.fragmentHint,w),d.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/utils/ewma.ts"),m=function(){function y(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 v.default(g),this.fast_=new v.default(e)}var O=y.prototype;return O.update=function(e,f){var r=this.slow_,c=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new v.default(e,r.getEstimate(),r.getTotalWeight())),this.fast_.halfLife!==f&&(this.fast_=new v.default(f,c.getEstimate(),c.getTotalWeight()))},O.sample=function(e,f){e=Math.max(e,this.minDelayMs_);var r=8*f,c=e/1e3,n=r/c;this.fast_.sample(c,n),this.slow_.sample(c,n)},O.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},O.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},O.destroy=function(){},y}();E.default=m},"./src/utils/ewma.ts":function(M,E,T){"use strict";T.r(E);var v=function(){function m(O,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=O,this.alpha_=O?Math.exp(Math.log(.5)/O):0,this.estimate_=g,this.totalWeight_=e}var y=m.prototype;return y.sample=function(g,e){var f=Math.pow(this.alpha_,g);this.estimate_=e*(1-f)+f*this.estimate_,this.totalWeight_+=g},y.getTotalWeight=function(){return this.totalWeight_},y.getEstimate=function(){if(this.alpha_){var g=1-Math.pow(this.alpha_,this.totalWeight_);if(g)return this.estimate_/g}return this.estimate_},m}();E.default=v},"./src/utils/fetch-loader.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"fetchSupported",function(){return o});var v=T("./src/polyfills/number.ts"),m=T("./src/loader/load-stats.ts"),y=T("./src/demux/chunk-cache.ts");function O(u,w){u.prototype=Object.create(w.prototype),u.prototype.constructor=u,c(u,w)}function g(u){var w=typeof Map=="function"?new Map:void 0;return g=function(b){if(b===null||!r(b))return b;if(typeof b!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(b))return w.get(b);w.set(b,P)}function P(){return e(b,arguments,n(this).constructor)}return P.prototype=Object.create(b.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),c(P,b)},g(u)}function e(u,w,x){return f()?e=Reflect.construct:e=function(P,R,C){var S=[null];S.push.apply(S,R);var _=Function.bind.apply(P,S),A=new _;return C&&c(A,C.prototype),A},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 c(u,w){return c=Object.setPrototypeOf||function(b,P){return b.__proto__=P,b},c(u,w)}function n(u){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},n(u)}function a(){return a=Object.assign||function(u){for(var w=1;w<arguments.length;w++){var x=arguments[w];for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(u[b]=x[b])}return u},a.apply(this,arguments)}function o(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(u){}return!1}var l=function(){function u(x){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=x.fetchSetup||h,this.controller=new self.AbortController,this.stats=new m.LoadStats}var w=u.prototype;return w.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},w.abortInternal=function(){var b=this.response;(!b||!b.ok)&&(this.stats.aborted=!0,this.controller.abort())},w.abort=function(){var b;this.abortInternal(),(b=this.callbacks)!==null&&b!==void 0&&b.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},w.load=function(b,P,R){var C=this,S=this.stats;if(S.loading.start)throw new Error("Loader can only be used once.");S.loading.start=self.performance.now();var _=d(b,this.controller.signal),A=R.onProgress,j=b.responseType==="arraybuffer",I=j?"byteLength":"length";this.context=b,this.config=P,this.callbacks=R,this.request=this.fetchSetup(b,_),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){C.abortInternal(),R.onTimeout(S,b,C.response)},P.timeout),self.fetch(this.request).then(function(k){if(C.response=C.loader=k,!k.ok){var J=k.status,G=k.statusText;throw new s(G||"fetch, bad network response",J,k)}return S.loading.first=Math.max(self.performance.now(),S.loading.start),S.total=parseInt(k.headers.get("Content-Length")||"0"),A&&Object(v.isFiniteNumber)(P.highWaterMark)?C.loadProgressively(k,S,b,P.highWaterMark,A):j?k.arrayBuffer():k.text()}).then(function(k){var J=C.response;self.clearTimeout(C.requestTimeout),S.loading.end=Math.max(self.performance.now(),S.loading.first),S.loaded=S.total=k[I];var G={url:J.url,data:k};A&&!Object(v.isFiniteNumber)(P.highWaterMark)&&A(S,b,k,J),R.onSuccess(G,S,b,J)}).catch(function(k){if(self.clearTimeout(C.requestTimeout),S.aborted)return;var J=k.code||0;R.onError({code:J,text:k.message},b,k.details)})},w.getCacheAge=function(){var b=null;if(this.response){var P=this.response.headers.get("age");b=P?parseFloat(P):null}return b},w.loadProgressively=function(b,P,R,C,S){C===void 0&&(C=0);var _=new y.default,A=b.body.getReader(),j=function I(){return A.read().then(function(k){if(k.done)return _.dataLength&&S(P,R,_.flush(),b),Promise.resolve(new ArrayBuffer(0));var J=k.value,G=J.length;return P.loaded+=G,G<C||_.dataLength?(_.push(J),_.dataLength>=C&&S(P,R,_.flush(),b)):S(P,R,J,b),I()}).catch(function(){return Promise.reject()})};return j()},u}();function d(u,w){var x={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(a({},u.headers))};return u.rangeEnd&&x.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),x}function h(u,w){return new self.Request(u.url,w)}var s=function(u){O(w,u);function w(x,b,P){var R;return R=u.call(this,x)||this,R.code=void 0,R.details=void 0,R.code=b,R.details=P,R}return w}(g(Error));E.default=l},"./src/utils/imsc1-ttml-parser.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"IMSC1_CODEC",function(){return r}),T.d(E,"parseIMSC1",function(){return o});var v=T("./src/utils/mp4-tools.ts"),m=T("./src/utils/vttparser.ts"),y=T("./src/utils/vttcue.ts"),O=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(C){for(var S=1;S<arguments.length;S++){var _=arguments[S];for(var A in _)Object.prototype.hasOwnProperty.call(_,A)&&(C[A]=_[A])}return C},f.apply(this,arguments)}var r="stpp.ttml.im1t",c=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,n=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,a={left:"start",center:"center",right:"end",start:"start",end:"end"};function o(C,S,_,A,j){var I=Object(v.findBox)(new Uint8Array(C),["mdat"]);if(I.length===0){j(new Error("Could not parse IMSC1 mdat"));return}var k=I[0],J=Object(O.utf8ArrayToStr)(new Uint8Array(C,k.start,k.end-k.start)),G=Object(g.toTimescaleFromScale)(S,1,_);try{A(l(J,G))}catch(D){j(D)}}function l(C,S){var _=new DOMParser,A=_.parseFromString(C,"text/xml"),j=A.getElementsByTagName("tt")[0];if(!j)throw new Error("Invalid ttml");var I={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},k=Object.keys(I).reduce(function(W,L){return W[L]=j.getAttribute("ttp:"+L)||I[L],W},{}),J=j.getAttribute("xml:space")!=="preserve",G=h(d(j,"styling","style")),D=h(d(j,"layout","region")),H=d(j,"body","[begin]");return[].map.call(H,function(W){var L=s(W,J);if(!L||!W.hasAttribute("begin"))return null;var z=b(W.getAttribute("begin"),k),ie=b(W.getAttribute("dur"),k),ce=b(W.getAttribute("end"),k);if(z===null)throw x(W);if(ce===null){if(ie===null)throw x(W);ce=z+ie}var ue=new y.default(z-S,ce-S,L);ue.id=Object(e.generateCueId)(ue.startTime,ue.endTime,ue.text);var xe=D[W.getAttribute("region")],Te=G[W.getAttribute("style")];ue.position=10,ue.size=80;var de=u(xe,Te),ve=de.textAlign;if(ve){var _e=a[ve];_e&&(ue.lineAlign=_e),ue.align=ve}return f(ue,de),ue}).filter(function(W){return W!==null})}function d(C,S,_){var A=C.getElementsByTagName(S)[0];return A?[].slice.call(A.querySelectorAll(_)):[]}function h(C){return C.reduce(function(S,_){var A=_.getAttribute("xml:id");return A&&(S[A]=_),S},{})}function s(C,S){return[].slice.call(C.childNodes).reduce(function(_,A,j){var I;return A.nodeName==="br"&&j?_+`
`:(I=A.childNodes)!==null&&I!==void 0&&I.length?s(A,S):S?_+A.textContent.trim().replace(/\s+/g," "):_+A.textContent},"")}function u(C,S){var _="http://www.w3.org/ns/ttml#styling",A=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return A.reduce(function(j,I){var k=w(S,_,I)||w(C,_,I);return k&&(j[I]=k),j},{})}function w(C,S,_){return C.hasAttributeNS(S,_)?C.getAttributeNS(S,_):null}function x(C){return new Error("Could not parse ttml timestamp "+C)}function b(C,S){if(!C)return null;var _=Object(m.parseTimeStamp)(C);return _===null&&(c.test(C)?_=P(C,S):n.test(C)&&(_=R(C,S))),_}function P(C,S){var _=c.exec(C),A=(_[4]|0)+(_[5]|0)/S.subFrameRate;return(_[1]|0)*3600+(_[2]|0)*60+(_[3]|0)+A/S.frameRate}function R(C,S){var _=n.exec(C),A=Number(_[1]),j=_[2];switch(j){case"h":return A*3600;case"m":return A*60;case"ms":return A*1e3;case"f":return A/S.frameRate;case"t":return A/S.tickRate}return A}},"./src/utils/logger.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"enableLogs",function(){return e}),T.d(E,"logger",function(){return f});var v=function(){},m={trace:v,debug:v,log:v,warn:v,info:v,error:v},y=m;function O(r){var c=self.console[r];return c?c.bind(self.console,"["+r+"] >"):v}function g(r){for(var c=arguments.length,n=new Array(c>1?c-1:0),a=1;a<c;a++)n[a-1]=arguments[a];n.forEach(function(o){y[o]=r[o]?r[o].bind(r):O(o)})}function e(r){if(self.console&&r===!0||typeof r=="object"){g(r,"debug","log","info","warn","error");try{y.log()}catch(c){y=m}}else y=m}var f=y},"./src/utils/mediakeys-helper.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"KeySystems",function(){return v}),T.d(E,"requestMediaKeySystemAccess",function(){return m});var v;(function(y){y.WIDEVINE="com.widevine.alpha",y.PLAYREADY="com.microsoft.playready"})(v||(v={}));var m=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"getMediaSource",function(){return v});function v(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"bin2str",function(){return g}),T.d(E,"readUint16",function(){return e}),T.d(E,"readUint32",function(){return f}),T.d(E,"writeUint32",function(){return r}),T.d(E,"findBox",function(){return c}),T.d(E,"parseSegmentIndex",function(){return n}),T.d(E,"parseInitSegment",function(){return a}),T.d(E,"getStartDTS",function(){return o}),T.d(E,"getDuration",function(){return l}),T.d(E,"computeRawDurationFromSamples",function(){return d}),T.d(E,"offsetStartDTS",function(){return h}),T.d(E,"segmentValidRange",function(){return s}),T.d(E,"appendUint8Array",function(){return u});var v=T("./src/utils/typed-array.ts"),m=T("./src/loader/fragment.ts"),y=Math.pow(2,32)-1,O=[].push;function g(w){return String.fromCharCode.apply(null,w)}function e(w,x){"data"in w&&(x+=w.start,w=w.data);var b=w[x]<<8|w[x+1];return b<0?65536+b:b}function f(w,x){"data"in w&&(x+=w.start,w=w.data);var b=w[x]<<24|w[x+1]<<16|w[x+2]<<8|w[x+3];return b<0?4294967296+b:b}function r(w,x,b){"data"in w&&(x+=w.start,w=w.data),w[x]=b>>24,w[x+1]=b>>16&255,w[x+2]=b>>8&255,w[x+3]=b&255}function c(w,x){var b=[];if(!x.length)return b;var P,R,C;"data"in w?(P=w.data,R=w.start,C=w.end):(P=w,R=0,C=P.byteLength);for(var S=R;S<C;){var _=f(P,S),A=g(P.subarray(S+4,S+8)),j=_>1?S+_:C;if(A===x[0])if(x.length===1)b.push({data:P,start:S+8,end:j});else{var I=c({data:P,start:S+8,end:j},x.slice(1));I.length&&O.apply(b,I)}S=j}return b}function n(w){var x=c(w,["moov"]),b=x[0],P=b?b.end:null,R=c(w,["sidx"]);if(!R||!R[0])return null;var C=[],S=R[0],_=S.data[0],A=_===0?8:16,j=f(S,A);A+=4;var I=0,k=0;_===0?A+=8:A+=16,A+=2;var J=S.end+k,G=e(S,A);A+=2;for(var D=0;D<G;D++){var H=A,W=f(S,H);H+=4;var L=W&2147483647,z=(W&2147483648)>>>31;if(z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ie=f(S,H);H+=4,C.push({referenceSize:L,subsegmentDuration:ie,info:{duration:ie/j,start:J,end:J+L-1}}),J+=L,H+=4,A=H}return{earliestPresentationTime:I,timescale:j,version:_,referencesCount:G,references:C,moovEndOffset:P}}function a(w){for(var x=[],b=c(w,["moov","trak"]),P=0;P<b.length;P++){var R=b[P],C=c(R,["tkhd"])[0];if(C){var S=C.data[C.start],_=S===0?12:20,A=f(C,_),j=c(R,["mdia","mdhd"])[0];if(j){S=j.data[j.start],_=S===0?12:20;var I=f(j,_),k=c(R,["mdia","hdlr"])[0];if(k){var J=g(k.data.subarray(k.start+8,k.start+12)),G={soun:m.ElementaryStreamTypes.AUDIO,vide:m.ElementaryStreamTypes.VIDEO}[J];if(G){var D=c(R,["mdia","minf","stbl","stsd"])[0],H=void 0;D&&(H=g(D.data.subarray(D.start+12,D.start+16))),x[A]={timescale:I,type:G},x[G]={timescale:I,id:A,codec:H}}}}}}var W=c(w,["moov","mvex","trex"]);return W.forEach(function(L){var z=f(L,4),ie=x[z];ie&&(ie.default={duration:f(L,12),flags:f(L,20)})}),x}function o(w,x){return c(x,["moof","traf"]).reduce(function(b,P){var R=c(P,["tfdt"])[0],C=R.data[R.start],S=c(P,["tfhd"]).reduce(function(_,A){var j=f(A,4),I=w[j];if(I){var k=f(R,4);C===1&&(k*=Math.pow(2,32),k+=f(R,8));var J=I.timescale||9e4,G=k/J;if(isFinite(G)&&(_===null||G<_))return G}return _},null);return S!==null&&isFinite(S)&&(b===null||S<b)?S:b},null)||0}function l(w,x){for(var b=0,P=0,R=0,C=c(w,["moof","traf"]),S=0;S<C.length;S++){var _=C[S],A=c(_,["tfhd"])[0],j=f(A,4),I=x[j];if(!I)continue;var k=I.default,J=f(A,0)|(k==null?void 0:k.flags),G=k==null?void 0:k.duration;J&8&&(J&2?G=f(A,12):G=f(A,8));for(var D=I.timescale||9e4,H=c(_,["trun"]),W=0;W<H.length;W++){if(G){var L=f(H[W],4);b=G*L}else b=d(H[W]);I.type===m.ElementaryStreamTypes.VIDEO?P+=b/D:I.type===m.ElementaryStreamTypes.AUDIO&&(R+=b/D)}}if(P===0&&R===0){var z=n(w);if(z!=null&&z.references)return z.references.reduce(function(ie,ce){return ie+ce.info.duration||0},0)}return P||R}function d(w){var x=f(w,0),b=8;x&1&&(b+=4),x&4&&(b+=4);for(var P=0,R=f(w,4),C=0;C<R;C++){if(x&256){var S=f(w,b);P+=S,b+=4}x&512&&(b+=4),x&1024&&(b+=4),x&2048&&(b+=4)}return P}function h(w,x,b){c(x,["moof","traf"]).forEach(function(P){c(P,["tfhd"]).forEach(function(R){var C=f(R,4),S=w[C];if(!S)return;var _=S.timescale||9e4;c(P,["tfdt"]).forEach(function(A){var j=A.data[A.start],I=f(A,4);if(j===0)r(A,4,I-b*_);else{I*=Math.pow(2,32),I+=f(A,8),I-=b*_,I=Math.max(I,0);var k=Math.floor(I/(y+1)),J=Math.floor(I%(y+1));r(A,4,k),r(A,8,J)}})})})}function s(w){var x={valid:null,remainder:null},b=c(w,["moof"]);if(b){if(b.length<2)return x.remainder=w,x}else return x;var P=b[b.length-1];return x.valid=Object(v.sliceUint8)(w,0,P.start-8),x.remainder=Object(v.sliceUint8)(w,P.start-8),x}function u(w,x){var b=new Uint8Array(w.length+x.length);return b.set(w),b.set(x,w.length),b}},"./src/utils/output-filter.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"default",function(){return v});var v=function(){function m(O,g){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=O,this.trackName=g}var y=m.prototype;return y.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},y.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)},y.reset=function(){this.cueRanges=[]},m}()},"./src/utils/texttrack-utils.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"sendAddTrackEvent",function(){return m}),T.d(E,"addCueToTrack",function(){return y}),T.d(E,"clearCurrentCues",function(){return O}),T.d(E,"removeCuesInRange",function(){return g}),T.d(E,"getCuesInRange",function(){return f});var v=T("./src/utils/logger.ts");function m(r,c){var n;try{n=new Event("addtrack")}catch(a){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=r,c.dispatchEvent(n)}function y(r,c){var n=r.mode;if(n==="disabled"&&(r.mode="hidden"),r.cues&&!r.cues.getCueById(c.id))try{if(r.addCue(c),!r.cues.getCueById(c.id))throw new Error("addCue is failed for: "+c)}catch(o){v.logger.debug("[texttrack-utils]: "+o);var a=new self.TextTrackCue(c.startTime,c.endTime,c.text);a.id=c.id,r.addCue(a)}n==="disabled"&&(r.mode=n)}function O(r){var c=r.mode;if(c==="disabled"&&(r.mode="hidden"),r.cues)for(var n=r.cues.length;n--;)r.removeCue(r.cues[n]);c==="disabled"&&(r.mode=c)}function g(r,c,n){var a=r.mode;if(a==="disabled"&&(r.mode="hidden"),r.cues&&r.cues.length>0)for(var o=f(r.cues,c,n),l=0;l<o.length;l++)r.removeCue(o[l]);a==="disabled"&&(r.mode=a)}function e(r,c){if(c<r[0].startTime)return 0;var n=r.length-1;if(c>r[n].endTime)return-1;for(var a=0,o=n;a<=o;){var l=Math.floor((o+a)/2);if(c<r[l].startTime)o=l-1;else if(c>r[l].startTime&&a<n)a=l+1;else return l}return r[a].startTime-c<c-r[o].startTime?a:o}function f(r,c,n){var a=[],o=e(r,c);if(o>-1)for(var l=o,d=r.length;l<d;l++){var h=r[l];if(h.startTime>=c&&h.endTime<=n)a.push(h);else if(h.startTime>n)return a}return a}},"./src/utils/time-ranges.ts":function(M,E,T){"use strict";T.r(E);var v={toString:function(y){for(var O="",g=y.length,e=0;e<g;e++)O+="["+y.start(e).toFixed(3)+","+y.end(e).toFixed(3)+"]";return O}};E.default=v},"./src/utils/timescale-conversion.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"toTimescaleFromBase",function(){return m}),T.d(E,"toTimescaleFromScale",function(){return y}),T.d(E,"toMsFromMpegTsClock",function(){return O}),T.d(E,"toMpegTsClockFromTimescale",function(){return g});var v=9e4;function m(e,f,r,c){r===void 0&&(r=1),c===void 0&&(c=!1);var n=e*f*r;return c?Math.round(n):n}function y(e,f,r,c){return r===void 0&&(r=1),c===void 0&&(c=!1),m(e,f,1/r,c)}function O(e,f){return f===void 0&&(f=!1),m(e,1e3,1/v,f)}function g(e,f){return f===void 0&&(f=1),m(e,v,1/f)}},"./src/utils/typed-array.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"sliceUint8",function(){return v});function v(m,y,O){return Uint8Array.prototype.slice?m.slice(y,O):new Uint8Array(Array.prototype.slice.call(m,y,O))}},"./src/utils/vttcue.ts":function(M,E,T){"use strict";T.r(E),E.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var v=["","lr","rl"],m=["start","middle","end","left","right"];function y(r,c){if(typeof c!="string")return!1;if(!Array.isArray(r))return!1;var n=c.toLowerCase();return~r.indexOf(n)?n:!1}function O(r){return y(v,r)}function g(r){return y(m,r)}function e(r){for(var c=arguments.length,n=new Array(c>1?c-1:0),a=1;a<c;a++)n[a-1]=arguments[a];for(var o=1;o<arguments.length;o++){var l=arguments[o];for(var d in l)r[d]=l[d]}return r}function f(r,c,n){var a=this,o={enumerable:!0};a.hasBeenReset=!1;var l="",d=!1,h=r,s=c,u=n,w=null,x="",b=!0,P="auto",R="start",C=50,S="middle",_=50,A="middle";Object.defineProperty(a,"id",e({},o,{get:function(){return l},set:function(I){l=""+I}})),Object.defineProperty(a,"pauseOnExit",e({},o,{get:function(){return d},set:function(I){d=!!I}})),Object.defineProperty(a,"startTime",e({},o,{get:function(){return h},set:function(I){if(typeof I!="number")throw new TypeError("Start time must be set to a number.");h=I,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",e({},o,{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(a,"text",e({},o,{get:function(){return u},set:function(I){u=""+I,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",e({},o,{get:function(){return w},set:function(I){w=I,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",e({},o,{get:function(){return x},set:function(I){var k=O(I);if(k===!1)throw new SyntaxError("An invalid or illegal string was specified.");x=k,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",e({},o,{get:function(){return b},set:function(I){b=!!I,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",e({},o,{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(a,"lineAlign",e({},o,{get:function(){return R},set:function(I){var k=g(I);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");R=k,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",e({},o,{get:function(){return C},set:function(I){if(I<0||I>100)throw new Error("Position must be between 0 and 100.");C=I,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",e({},o,{get:function(){return S},set:function(I){var k=g(I);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");S=k,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",e({},o,{get:function(){return _},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");_=I,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",e({},o,{get:function(){return A},set:function(I){var k=g(I);if(!k)throw new SyntaxError("An invalid or illegal string was specified.");A=k,this.hasBeenReset=!0}})),a.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,E,T){"use strict";T.r(E),T.d(E,"parseTimeStamp",function(){return y}),T.d(E,"fixLineBreaks",function(){return c}),T.d(E,"VTTParser",function(){return n});var v=T("./src/utils/vttcue.ts"),m=function(){function a(){}var o=a.prototype;return o.decode=function(d,h){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},a}();function y(a){function o(d,h,s,u){return(d|0)*3600+(h|0)*60+(s|0)+parseFloat(u||0)}var l=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return l?parseFloat(l[2])>59?o(l[2],l[3],0,l[4]):o(l[1],l[2],l[3],l[4]):null}var O=function(){function a(){this.values=Object.create(null)}var o=a.prototype;return o.set=function(d,h){!this.get(d)&&h!==""&&(this.values[d]=h)},o.get=function(d,h,s){return s?this.has(d)?this.values[d]:h[s]:this.has(d)?this.values[d]:h},o.has=function(d){return d in this.values},o.alt=function(d,h,s){for(var u=0;u<s.length;++u)if(h===s[u]){this.set(d,h);break}},o.integer=function(d,h){/^-?\d+$/.test(h)&&this.set(d,parseInt(h,10))},o.percent=function(d,h){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(h)){var s=parseFloat(h);if(s>=0&&s<=100)return this.set(d,s),!0}return!1},a}();function g(a,o,l,d){var h=d?a.split(d):[a];for(var s in h){if(typeof h[s]!="string")continue;var u=h[s].split(l);if(u.length!==2)continue;var w=u[0],x=u[1];o(w,x)}}var e=new v.default(0,0,""),f=e.align==="middle"?"middle":"center";function r(a,o,l){var d=a;function h(){var w=y(a);if(w===null)throw new Error("Malformed timestamp: "+d);return a=a.replace(/^[^\sa-zA-Z-]+/,""),w}function s(w,x){var b=new O;g(w,function(C,S){var _;switch(C){case"region":for(var A=l.length-1;A>=0;A--)if(l[A].id===S){b.set(C,l[A].region);break}break;case"vertical":b.alt(C,S,["rl","lr"]);break;case"line":_=S.split(","),b.integer(C,_[0]),b.percent(C,_[0])&&b.set("snapToLines",!1),b.alt(C,_[0],["auto"]),_.length===2&&b.alt("lineAlign",_[1],["start",f,"end"]);break;case"position":_=S.split(","),b.percent(C,_[0]),_.length===2&&b.alt("positionAlign",_[1],["start",f,"end","line-left","line-right","auto"]);break;case"size":b.percent(C,S);break;case"align":b.alt(C,S,["start",f,"end","left","right"]);break}},/:/,/\s/),x.region=b.get("region",null),x.vertical=b.get("vertical","");var P=b.get("line","auto");P==="auto"&&e.line===-1&&(P=-1),x.line=P,x.lineAlign=b.get("lineAlign","start"),x.snapToLines=b.get("snapToLines",!0),x.size=b.get("size",100),x.align=b.get("align",f);var R=b.get("position","auto");R==="auto"&&e.position===50&&(R=x.align==="start"||x.align==="left"?0:x.align==="end"||x.align==="right"?100:50),x.position=R}function u(){a=a.replace(/^\s+/,"")}if(u(),o.startTime=h(),u(),a.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);a=a.substr(3),u(),o.endTime=h(),u(),s(a,o)}function c(a){return a.replace(/<br(?: \/)?>/gi,`
`)}var n=function(){function a(){this.state="INITIAL",this.buffer="",this.decoder=new m,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var o=a.prototype;return o.parse=function(d){var h=this;d&&(h.buffer+=h.decoder.decode(d,{stream:!0}));function s(){var R=h.buffer,C=0;for(R=c(R);C<R.length&&R[C]!=="\r"&&R[C]!==`
`;)++C;var S=R.substr(0,C);return R[C]==="\r"&&++C,R[C]===`
`&&++C,h.buffer=R.substr(C),S}function u(R){g(R,function(C,S){},/:/)}try{var w="";if(h.state==="INITIAL"){if(!/\r\n|\n/.test(h.buffer))return this;w=s();var x=w.match(/^()?WEBVTT([ \t].*)?$/);if(!x||!x[0])throw new Error("Malformed WebVTT signature.");h.state="HEADER"}for(var b=!1;h.buffer;){if(!/\r\n|\n/.test(h.buffer))return this;b?b=!1:w=s();switch(h.state){case"HEADER":/:/.test(w)?u(w):w||(h.state="ID");continue;case"NOTE":w||(h.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(w)){h.state="NOTE";break}if(!w)continue;if(h.cue=new v.default(0,0,""),h.state="CUE",w.indexOf("-->")===-1){h.cue.id=w;continue}case"CUE":if(!h.cue){h.state="BADCUE";continue}try{r(w,h.cue,h.regionList)}catch(R){h.cue=null,h.state="BADCUE";continue}h.state="CUETEXT";continue;case"CUETEXT":{var P=w.indexOf("-->")!==-1;if(!w||P&&(b=!0)){h.oncue&&h.cue&&h.oncue(h.cue),h.cue=null,h.state="ID";continue}if(h.cue===null)continue;h.cue.text&&(h.cue.text+=`
`),h.cue.text+=w}continue;case"BADCUE":w||(h.state="ID")}}}catch(R){h.state==="CUETEXT"&&h.cue&&h.oncue&&h.oncue(h.cue),h.cue=null,h.state=h.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},o.flush=function(){var d=this;try{if((d.cue||d.state==="HEADER")&&(d.buffer+=`
`,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(h){d.onparsingerror&&d.onparsingerror(h)}return d.onflush&&d.onflush(),this},a}()},"./src/utils/webvtt-parser.ts":function(M,E,T){"use strict";T.r(E),T.d(E,"generateCueId",function(){return n}),T.d(E,"parseWebVTT",function(){return o});var v=T("./src/polyfills/number.ts"),m=T("./src/utils/vttparser.ts"),y=T("./src/demux/id3.ts"),O=T("./src/utils/timescale-conversion.ts"),g=T("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,f=function(d,h,s){return s===void 0&&(s=0),d.substr(s,h.length)===h},r=function(d){var h=parseInt(d.substr(-3)),s=parseInt(d.substr(-6,2)),u=parseInt(d.substr(-9,2)),w=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(v.isFiniteNumber)(h)||!Object(v.isFiniteNumber)(s)||!Object(v.isFiniteNumber)(u)||!Object(v.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return h+=1e3*s,h+=60*1e3*u,h+=60*60*1e3*w,h},c=function(d){for(var h=5381,s=d.length;s;)h=h*33^d.charCodeAt(--s);return(h>>>0).toString()};function n(l,d,h){return c(l.toString())+c(d.toString())+c(h)}var a=function(d,h,s){var u=d[h],w=d[u.prevCC];if(!w||!w.new&&u.new){d.ccOffset=d.presentationOffset=u.start,u.new=!1;return}for(;(x=w)!==null&&x!==void 0&&x.new;){var x;d.ccOffset+=u.start-w.start,u.new=!1,u=w,w=d[u.prevCC]}d.presentationOffset=s};function o(l,d,h,s,u,w,x,b){var P=new m.VTTParser,R=Object(y.utf8ArrayToStr)(new Uint8Array(l)).trim().replace(e,`
`).split(`
`),C=[],S=Object(O.toMpegTsClockFromTimescale)(d,h),_="00:00.000",A=0,j=0,I,k=!0,J=!1;P.oncue=function(G){var D=s[u],H=s.ccOffset,W=(A-S)/9e4;if(D!=null&&D.new&&(j!==void 0?H=s.ccOffset=D.start:a(s,u,W)),W&&(H=W-s.presentationOffset),J){var L=G.endTime-G.startTime,z=Object(g.normalizePts)((G.startTime+H-j)*9e4,w*9e4)/9e4;G.startTime=z,G.endTime=z+L}var ie=G.text.trim();G.text=decodeURIComponent(encodeURIComponent(ie)),G.id||(G.id=n(G.startTime,G.endTime,ie)),G.endTime>0&&C.push(G)},P.onparsingerror=function(G){I=G},P.onflush=function(){if(I){b(I);return}x(C)},R.forEach(function(G){if(k)if(f(G,"X-TIMESTAMP-MAP=")){k=!1,J=!0,G.substr(16).split(",").forEach(function(D){f(D,"LOCAL:")?_=D.substr(6):f(D,"MPEGTS:")&&(A=parseInt(D.substr(7)))});try{j=r(_)/1e3}catch(D){J=!1,I=D}return}else G===""&&(k=!1);P.parse(G+`
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(M,E,T){"use strict";T.r(E);var v=T("./src/utils/logger.ts"),m=T("./src/loader/load-stats.ts"),y=/^age:\s*[\d.]+\s*$/m,O=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 m.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,c,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=c,this.callbacks=n,this.retryDelay=c.retryDelay,this.loadInternal()},e.loadInternal=function(){var r=this.config,c=this.context;if(!r)return;var n=this.loader=new self.XMLHttpRequest,a=this.stats;a.loading.first=0,a.loaded=0;var o=this.xhrSetup;try{if(o)try{o(n,c.url)}catch(h){n.open("GET",c.url,!0),o(n,c.url)}n.readyState||n.open("GET",c.url,!0);var l=this.context.headers;if(l)for(var d in l)n.setRequestHeader(d,l[d])}catch(h){this.callbacks.onError({code:n.status,text:h.message},c,n);return}c.rangeEnd&&n.setRequestHeader("Range","bytes="+c.rangeStart+"-"+(c.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=c.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),n.send()},e.readystatechange=function(){var r=this.context,c=this.loader,n=this.stats;if(!r||!c)return;var a=c.readyState,o=this.config;if(n.aborted)return;if(a>=2)if(self.clearTimeout(this.requestTimeout),n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),a===4){c.onreadystatechange=null,c.onprogress=null;var l=c.status;if(l>=200&&l<300){n.loading.end=Math.max(self.performance.now(),n.loading.first);var d,h;if(r.responseType==="arraybuffer"?(d=c.response,h=d.byteLength):(d=c.responseText,h=d.length),n.loaded=n.total=h,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(n,r,d,c),!this.callbacks)return;var u={url:c.responseURL,data:d};this.callbacks.onSuccess(u,n,r,c)}else n.retry>=o.maxRetry||l>=400&&l<499?(v.logger.error(l+" while loading "+r.url),this.callbacks.onError({code:l,text:c.statusText},r,c)):(v.logger.warn(l+" 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,o.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout)},e.loadtimeout=function(){v.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 c=this.stats;c.loaded=r.loaded,r.lengthComputable&&(c.total=r.total)},e.getCacheAge=function(){var r=null;if(this.loader&&y.test(this.loader.getAllResponseHeaders())){var c=this.loader.getResponseHeader("age");r=c?parseFloat(c):null}return r},g}();E.default=O}}).default})},vHTk:function(N,Y,i){N.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(N,Y,i){N.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"}},vix7:function(N,Y,i){N.exports=i.p+"static/101logo.30046b37.svg"},w7YG:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.StreamCipher,m=E.algo,y=m.RC4=v.extend({_doReset:function(){for(var e=this._key,f=e.words,r=e.sigBytes,c=this._S=[],n=0;n<256;n++)c[n]=n;for(var n=0,a=0;n<256;n++){var o=n%r,l=f[o>>>2]>>>24-o%4*8&255;a=(a+c[n]+l)%256;var d=c[n];c[n]=c[a],c[a]=d}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=O.call(this)},keySize:256/32,ivSize:0});function O(){for(var e=this._S,f=this._i,r=this._j,c=0,n=0;n<4;n++){f=(f+1)%256,r=(r+e[f])%256;var a=e[f];e[f]=e[r],e[r]=a,c|=e[(e[f]+e[r])%256]<<24-n*8}return this._i=f,this._j=r,c}E.RC4=v._createHelper(y);var g=m.RC4Drop=y.extend({cfg:y.cfg.extend({drop:192}),_doReset:function(){y._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)O.call(this)}});E.RC4Drop=v._createHelper(g)}(),M.RC4})},wCXF:function(N,Y,i){"use strict";i.d(Y,"a",function(){return ot});var M=i("rePB"),E=i("VTBJ"),T=i("KQm4"),v=i("U8pU"),m=i("ODXe"),y=i("q1tI"),O=i("TSYQ"),g=i.n(O),e=i("Gytx"),f=i.n(e),r=i("Kwbf"),c=i("t23M"),n=i("qx4F"),a=i("6eGT"),o=i("IBYe"),l=i("Ff2n"),d=i("c+Xe"),h=i("fyJ8"),s=i("biw7");function u(Xe,ke,lt,Mt,Ce){var he=lt[Xe]||{},be=lt[ke]||{},Ee,Ne;he.fixed==="left"?Ee=Mt.left[Xe]:be.fixed==="right"&&(Ne=Mt.right[ke]);var we=!1,Ae=!1,Ue=!1,We=!1,Je=lt[ke+1],$e=lt[Xe-1];if(Ce==="rtl"){if(Ee!==void 0){var pt=$e&&$e.fixed==="left";We=!pt}else if(Ne!==void 0){var Jt=Je&&Je.fixed==="right";Ue=!Jt}}else if(Ee!==void 0){var fn=Je&&Je.fixed==="left";we=!fn}else if(Ne!==void 0){var qt=$e&&$e.fixed==="right";Ae=!qt}return{fixLeft:Ee,fixRight:Ne,lastFixLeft:we,firstFixRight:Ae,lastFixRight:Ue,firstFixLeft:We,isSticky:Mt.isSticky}}var w=i("sR1s");function x(Xe){var ke=Xe.cells,lt=Xe.stickyOffsets,Mt=Xe.flattenColumns,Ce=Xe.rowComponent,he=Xe.cellComponent,be=Xe.onHeaderRow,Ee=Xe.index,Ne=y.useContext(s.a),we=Ne.prefixCls,Ae=Ne.direction,Ue;be&&(Ue=be(ke.map(function(Je){return Je.column}),Ee));var We=Object(w.a)(ke.map(function(Je){return Je.column}));return y.createElement(Ce,Object.assign({},Ue),ke.map(function(Je,$e){var pt=Je.column,Jt=u(Je.colStart,Je.colEnd,Mt,lt,Ae),fn;return pt&&pt.onHeaderCell&&(fn=Je.column.onHeaderCell(pt)),y.createElement(h.a,Object.assign({},Je,{ellipsis:pt.ellipsis,align:pt.align,component:he,prefixCls:we,key:We[$e]},Jt,{additionalProps:fn,rowType:"header"}))}))}x.displayName="HeaderRow";var b=x;function P(Xe){var ke=[];function lt(be,Ee){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ke[Ne]=ke[Ne]||[];var we=Ee,Ae=be.filter(Boolean).map(function(Ue){var We={key:Ue.key,className:Ue.className||"",children:Ue.title,column:Ue,colStart:we},Je=1,$e=Ue.children;return $e&&$e.length>0&&(Je=lt($e,we,Ne+1).reduce(function(pt,Jt){return pt+Jt},0),We.hasSubColumns=!0),"colSpan"in Ue&&(Je=Ue.colSpan),"rowSpan"in Ue&&(We.rowSpan=Ue.rowSpan),We.colSpan=Je,We.colEnd=We.colStart+Je-1,ke[Ne].push(We),we+=Je,Je});return Ae}lt(Xe,0);for(var Mt=ke.length,Ce=function(Ee){ke[Ee].forEach(function(Ne){!("rowSpan"in Ne)&&!Ne.hasSubColumns&&(Ne.rowSpan=Mt-Ee)})},he=0;he<Mt;he+=1)Ce(he);return ke}function R(Xe){var ke=Xe.stickyOffsets,lt=Xe.columns,Mt=Xe.flattenColumns,Ce=Xe.onHeaderRow,he=y.useContext(s.a),be=he.prefixCls,Ee=he.getComponent,Ne=y.useMemo(function(){return P(lt)},[lt]),we=Ee(["header","wrapper"],"thead"),Ae=Ee(["header","row"],"tr"),Ue=Ee(["header","cell"],"th");return y.createElement(we,{className:"".concat(be,"-thead")},Ne.map(function(We,Je){var $e=y.createElement(b,{key:Je,flattenColumns:Mt,cells:We,stickyOffsets:ke,rowComponent:Ae,cellComponent:Ue,onHeaderRow:Ce,index:Je});return $e}))}var C=R,S=i("hW8S");function _(Xe){for(var ke=Xe.colWidths,lt=Xe.columns,Mt=Xe.columCount,Ce=[],he=Mt||lt.length,be=!1,Ee=he-1;Ee>=0;Ee-=1){var Ne=ke[Ee],we=lt&&lt[Ee],Ae=we&&we[S.a];(Ne||Ae||be)&&(Ce.unshift(y.createElement("col",Object.assign({key:Ee,style:{width:Ne,minWidth:Ne}},Ae))),be=!0)}return y.createElement("colgroup",null,Ce)}var A=_;function j(Xe,ke){return Object(y.useMemo)(function(){for(var lt=[],Mt=0;Mt<ke;Mt+=1){var Ce=Xe[Mt];if(Ce!==void 0)lt[Mt]=Ce;else return null}return lt},[Xe.join("_"),ke])}var I=y.forwardRef(function(Xe,ke){var lt=Xe.noData,Mt=Xe.columns,Ce=Xe.flattenColumns,he=Xe.colWidths,be=Xe.columCount,Ee=Xe.stickyOffsets,Ne=Xe.direction,we=Xe.fixHeader,Ae=Xe.offsetHeader,Ue=Xe.stickyClassName,We=Xe.onScroll,Je=Object(l.a)(Xe,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),$e=y.useContext(s.a),pt=$e.prefixCls,Jt=$e.scrollbarSize,fn=$e.isSticky,qt=fn&&!we?0:Jt,St=y.useRef(null),Be=y.useCallback(function(At){Object(d.b)(ke,At),Object(d.b)(St,At)},[]);y.useEffect(function(){var At;function Ot(Ct){var Bt=Ct.currentTarget,It=Ct.deltaX;It&&(We({currentTarget:Bt,scrollLeft:Bt.scrollLeft+It}),Ct.preventDefault())}return(At=St.current)===null||At===void 0||At.addEventListener("wheel",Ot),function(){var Ct;(Ct=St.current)===null||Ct===void 0||Ct.removeEventListener("wheel",Ot)}},[]);var at=Ce[Ce.length-1],it={fixed:at?at.fixed:null,onHeaderCell:function(){return{className:"".concat(pt,"-cell-scrollbar")}}},Me=Object(y.useMemo)(function(){return qt?[].concat(Object(T.a)(Mt),[it]):Mt},[qt,Mt]),Ve=Object(y.useMemo)(function(){return qt?[].concat(Object(T.a)(Ce),[it]):Ce},[qt,Ce]),xt=Object(y.useMemo)(function(){var At=Ee.right,Ot=Ee.left;return Object(E.a)(Object(E.a)({},Ee),{},{left:Ne==="rtl"?[].concat(Object(T.a)(Ot.map(function(Ct){return Ct+qt})),[0]):Ot,right:Ne==="rtl"?At:[].concat(Object(T.a)(At.map(function(Ct){return Ct+qt})),[0]),isSticky:fn})},[qt,Ee,fn]),_t=j(he,be);return y.createElement("div",{style:Object(E.a)({overflow:"hidden"},fn?{top:Ae}:{}),ref:Be,className:g()("".concat(pt,"-header"),Object(M.a)({},Ue,!!Ue))},y.createElement("table",{style:{tableLayout:"fixed",visibility:lt||_t?null:"hidden"}},y.createElement(A,{colWidths:_t?[].concat(Object(T.a)(_t),[qt]):[],columCount:be+1,columns:Ve}),y.createElement(C,Object.assign({},Je,{stickyOffsets:xt,columns:Me,flattenColumns:Ve}))))});I.displayName="FixedHeader";var k=I,J=y.createContext(null),G=J;function D(Xe){var ke=Xe.prefixCls,lt=Xe.children,Mt=Xe.component,Ce=Xe.cellComponent,he=Xe.fixHeader,be=Xe.fixColumn,Ee=Xe.horizonScroll,Ne=Xe.className,we=Xe.expanded,Ae=Xe.componentWidth,Ue=Xe.colSpan,We=y.useContext(s.a),Je=We.scrollbarSize;return y.useMemo(function(){var $e=lt;return be&&($e=y.createElement("div",{style:{width:Ae-(he?Je:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ke,"-expanded-row-fixed")},$e)),y.createElement(Mt,{className:Ne,style:{display:we?null:"none"}},y.createElement(h.a,{component:Ce,prefixCls:ke,colSpan:Ue},$e))},[lt,Mt,he,Ee,Ne,we,Ae,Ue,Je])}var H=D;function W(Xe){var ke=Xe.className,lt=Xe.style,Mt=Xe.record,Ce=Xe.index,he=Xe.rowKey,be=Xe.getRowKey,Ee=Xe.rowExpandable,Ne=Xe.expandedKeys,we=Xe.onRow,Ae=Xe.indent,Ue=Ae===void 0?0:Ae,We=Xe.rowComponent,Je=Xe.cellComponent,$e=Xe.childrenColumnName,pt=y.useContext(s.a),Jt=pt.prefixCls,fn=pt.fixedInfoList,qt=y.useContext(G),St=qt.fixHeader,Be=qt.fixColumn,at=qt.horizonScroll,it=qt.componentWidth,Me=qt.flattenColumns,Ve=qt.expandableType,xt=qt.expandRowByClick,_t=qt.onTriggerExpand,At=qt.rowClassName,Ot=qt.expandedRowClassName,Ct=qt.indentSize,Bt=qt.expandIcon,It=qt.expandedRowRender,yt=qt.expandIconColumnIndex,zt=y.useState(!1),sn=Object(m.a)(zt,2),hn=sn[0],un=sn[1],Kt=Ne&&Ne.has(Xe.recordKey);y.useEffect(function(){Kt&&un(!0)},[Kt]);var gn=Ve==="row"&&(!Ee||Ee(Mt)),Rn=Ve==="nest",Cn=$e&&Mt&&Mt[$e],an=gn||Rn,_n;we&&(_n=we(Mt,Ce));var vn=function(Sn){if(xt&&an&&_t(Mt,Sn),_n&&_n.onClick){for(var Pn,Yt=arguments.length,Hr=new Array(Yt>1?Yt-1:0),ar=1;ar<Yt;ar++)Hr[ar-1]=arguments[ar];(Pn=_n).onClick.apply(Pn,[Sn].concat(Hr))}},Ft;typeof At=="string"?Ft=At:typeof At=="function"&&(Ft=At(Mt,Ce,Ue));var Nt=Object(w.a)(Me),pn=y.createElement(We,Object.assign({},_n,{"data-row-key":he,className:g()(ke,"".concat(Jt,"-row"),"".concat(Jt,"-row-level-").concat(Ue),Ft,_n&&_n.className),style:Object(E.a)(Object(E.a)({},lt),_n?_n.style:null),onClick:vn}),Me.map(function(xr,Sn){var Pn=xr.render,Yt=xr.dataIndex,Hr=xr.className,ar=Nt[Sn],ma=fn[Sn],Br;Sn===(yt||0)&&Rn&&(Br=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(Ct*Ue,"px")},className:"".concat(Jt,"-row-indent indent-level-").concat(Ue)}),Bt({prefixCls:Jt,expanded:Kt,expandable:Cn,record:Mt,onExpand:_t})));var Na;return xr.onCell&&(Na=xr.onCell(Mt,Ce)),y.createElement(h.a,Object.assign({className:Hr,ellipsis:xr.ellipsis,align:xr.align,component:Je,prefixCls:Jt,key:ar,record:Mt,index:Ce,dataIndex:Yt,render:Pn,shouldCellUpdate:xr.shouldCellUpdate},ma,{appendNode:Br,additionalProps:Na}))})),qn;if(gn&&(hn||Kt)){var Qt=It(Mt,Ce,Ue+1,Kt),Vn=Ot&&Ot(Mt,Ce,Ue);qn=y.createElement(H,{expanded:Kt,className:g()("".concat(Jt,"-expanded-row"),"".concat(Jt,"-expanded-row-level-").concat(Ue+1),Vn),prefixCls:Jt,fixHeader:St,fixColumn:Be,horizonScroll:at,component:We,componentWidth:it,cellComponent:Je,colSpan:Me.length},Qt)}var Gn;return Cn&&Kt&&(Gn=(Mt[$e]||[]).map(function(xr,Sn){var Pn=be(xr,Sn);return y.createElement(W,Object.assign({},Xe,{key:Pn,rowKey:Pn,record:xr,recordKey:Pn,index:Sn,indent:Ue+1}))})),y.createElement(y.Fragment,null,pn,qn,Gn)}W.displayName="BodyRow";var L=W,z=y.createContext(null),ie=z;function ce(Xe){var ke=Xe.columnKey,lt=Xe.onColumnResize,Mt=y.useRef();return y.useEffect(function(){Mt.current&&lt(ke,Mt.current.offsetWidth)},[]),y.createElement(c.a,{onResize:function(he){var be=he.offsetWidth;lt(ke,be)}},y.createElement("td",{ref:Mt,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ue(Xe){var ke=Xe.data,lt=Xe.getRowKey,Mt=Xe.measureColumnWidth,Ce=Xe.expandedKeys,he=Xe.onRow,be=Xe.rowExpandable,Ee=Xe.emptyNode,Ne=Xe.childrenColumnName,we=y.useContext(ie),Ae=we.onColumnResize,Ue=y.useContext(s.a),We=Ue.prefixCls,Je=Ue.getComponent,$e=y.useContext(G),pt=$e.fixHeader,Jt=$e.horizonScroll,fn=$e.flattenColumns,qt=$e.componentWidth;return y.useMemo(function(){var St=Je(["body","wrapper"],"tbody"),Be=Je(["body","row"],"tr"),at=Je(["body","cell"],"td"),it;ke.length?it=ke.map(function(Ve,xt){var _t=lt(Ve,xt);return y.createElement(L,{key:_t,rowKey:_t,record:Ve,recordKey:_t,index:xt,rowComponent:Be,cellComponent:at,expandedKeys:Ce,onRow:he,getRowKey:lt,rowExpandable:be,childrenColumnName:Ne})}):it=y.createElement(H,{expanded:!0,className:"".concat(We,"-placeholder"),prefixCls:We,fixHeader:pt,fixColumn:Jt,horizonScroll:Jt,component:Be,componentWidth:qt,cellComponent:at,colSpan:fn.length},Ee);var Me=Object(w.a)(fn);return y.createElement(St,{className:"".concat(We,"-tbody")},Mt&&y.createElement("tr",{"aria-hidden":"true",className:"".concat(We,"-measure-row"),style:{height:0}},Me.map(function(Ve){return y.createElement(ce,{key:Ve,columnKey:Ve,onColumnResize:Ae})})),it)},[ke,We,he,Mt,Ce,lt,Je,qt,Ee,fn])}var xe=y.memo(ue);xe.displayName="Body";var Te=xe,de=i("wRmb"),ve=i("xEkU"),_e=i.n(ve);function le(Xe){var ke=Object(y.useRef)(Xe),lt=Object(y.useState)({}),Mt=Object(m.a)(lt,2),Ce=Mt[1],he=Object(y.useRef)(null),be=Object(y.useRef)([]);function Ee(Ne){he.current===null&&(be.current=[],he.current=_e()(function(){be.current.forEach(function(we){ke.current=we(ke.current)}),he.current=null,Ce({})})),be.current.push(Ne)}return Object(y.useEffect)(function(){return function(){_e.a.cancel(he.current)}},[]),[ke.current,Ee]}function ee(Xe){var ke=Object(y.useRef)(Xe),lt=Object(y.useRef)(null);function Mt(){window.clearTimeout(lt.current)}function Ce(be){ke.current=be,Mt(),lt.current=window.setTimeout(function(){ke.current=null,lt.current=null},100)}function he(){return ke.current}return Object(y.useEffect)(function(){return Mt},[]),[Ce,he]}function U(Xe,ke,lt){var Mt=Object(y.useMemo)(function(){for(var Ce=[],he=[],be=0,Ee=0,Ne=0;Ne<ke;Ne+=1)if(lt==="rtl"){he[Ne]=Ee,Ee+=Xe[Ne]||0;var we=ke-Ne-1;Ce[we]=be,be+=Xe[we]||0}else{Ce[Ne]=be,be+=Xe[Ne]||0;var Ae=ke-Ne-1;he[Ae]=Ee,Ee+=Xe[Ae]||0}return{left:Ce,right:he}},[Xe,ke,lt]);return Mt}var K=U;function X(Xe){var ke=Xe.className,lt=Xe.children;return y.createElement("div",{className:ke},lt)}var Q=X,te=i("n6Qo");function ae(Xe){var ke,lt=Xe.prefixCls,Mt=Xe.record,Ce=Xe.onExpand,he=Xe.expanded,be=Xe.expandable,Ee="".concat(lt,"-row-expand-icon");if(!be)return y.createElement("span",{className:g()(Ee,"".concat(lt,"-row-spaced"))});var Ne=function(Ae){Ce(Mt,Ae),Ae.stopPropagation()};return y.createElement("span",{className:g()(Ee,(ke={},Object(M.a)(ke,"".concat(lt,"-row-expanded"),he),Object(M.a)(ke,"".concat(lt,"-row-collapsed"),!he),ke)),onClick:Ne})}function re(Xe,ke,lt){var Mt=[];function Ce(he){(he||[]).forEach(function(be,Ee){Mt.push(ke(be,Ee)),Ce(be[lt])})}return Ce(Xe),Mt}var $=i("zT1h"),Z=i("y0+3"),fe=function(ke,lt){var Mt,Ce,he=ke.scrollBodyRef,be=ke.onScroll,Ee=ke.offsetScroll,Ne=y.useContext(s.a),we=Ne.prefixCls,Ae=((Mt=he.current)===null||Mt===void 0?void 0:Mt.scrollWidth)||0,Ue=((Ce=he.current)===null||Ce===void 0?void 0:Ce.clientWidth)||0,We=Ae&&Ue*(Ue/Ae),Je=y.useRef(),$e=le({scrollLeft:0,isHiddenScrollBar:!1}),pt=Object(m.a)($e,2),Jt=pt[0],fn=pt[1],qt=y.useRef({delta:0,x:0}),St=y.useState(!1),Be=Object(m.a)(St,2),at=Be[0],it=Be[1],Me=function(){it(!1)},Ve=function(Ct){Ct.persist(),qt.current.delta=Ct.pageX-Jt.scrollLeft,qt.current.x=0,it(!0),Ct.preventDefault()},xt=function(Ct){var Bt,It=Ct||((Bt=window)===null||Bt===void 0?void 0:Bt.event),yt=It.buttons;if(!at||yt===0){at&&it(!1);return}var zt=qt.current.x+Ct.pageX-qt.current.x-qt.current.delta;zt<=0&&(zt=0),zt+We>=Ue&&(zt=Ue-We),be({scrollLeft:zt/Ue*(Ae+2)}),qt.current.x=Ct.pageX},_t=function(){var Ct=Object(Z.b)(he.current).top,Bt=Ct+he.current.offsetHeight,It=document.documentElement.scrollTop+window.innerHeight;Bt-Object(n.a)()<=It||Ct>=It-Ee?fn(function(yt){return Object(E.a)(Object(E.a)({},yt),{},{isHiddenScrollBar:!0})}):fn(function(yt){return Object(E.a)(Object(E.a)({},yt),{},{isHiddenScrollBar:!1})})},At=function(Ct){fn(function(Bt){return Object(E.a)(Object(E.a)({},Bt),{},{scrollLeft:Ct/Ae*Ue||0})})};return y.useImperativeHandle(lt,function(){return{setScrollLeft:At}}),y.useEffect(function(){var Ot=Object($.a)(document.body,"mouseup",Me,!1),Ct=Object($.a)(document.body,"mousemove",xt,!1);return _t(),function(){Ot.remove(),Ct.remove()}},[We,at]),y.useEffect(function(){var Ot=Object($.a)(window,"scroll",_t,!1),Ct=Object($.a)(window,"resize",_t,!1);return function(){Ot.remove(),Ct.remove()}},[]),y.useEffect(function(){Jt.isHiddenScrollBar||fn(function(Ot){var Ct,Bt;return Object(E.a)(Object(E.a)({},Ot),{},{scrollLeft:he.current.scrollLeft/((Ct=he.current)===null||Ct===void 0?void 0:Ct.scrollWidth)*((Bt=he.current)===null||Bt===void 0?void 0:Bt.clientWidth)})})},[Jt.isHiddenScrollBar]),Ae<=Ue||!We||Jt.isHiddenScrollBar?null:y.createElement("div",{style:{height:Object(n.a)(),width:Ue,bottom:Ee},className:"".concat(we,"-sticky-scroll")},y.createElement("div",{onMouseDown:Ve,ref:Je,className:g()("".concat(we,"-sticky-scroll-bar"),Object(M.a)({},"".concat(we,"-sticky-scroll-bar-active"),at)),style:{width:"".concat(We,"px"),transform:"translate3d(".concat(Jt.scrollLeft,"px, 0, 0)")}}))},me=y.forwardRef(fe);function Oe(Xe,ke){return y.useMemo(function(){var lt=!!Xe;return{isSticky:lt,stickyClassName:lt?"".concat(ke,"-sticky-header"):"",offsetHeader:Object(v.a)(Xe)==="object"&&Xe.offsetHeader||0,offsetScroll:Object(v.a)(Xe)==="object"&&Xe.offsetScroll||0}},[Xe,ke])}var He=[],Qe={},ot="rc-table-internal-hook",st=y.memo(function(Xe){var ke=Xe.children;return ke},function(Xe,ke){return f()(Xe.props,ke.props)?Xe.pingLeft!==ke.pingLeft||Xe.pingRight!==ke.pingRight:!1});function ct(Xe){var ke,lt=Xe.prefixCls,Mt=Xe.className,Ce=Xe.rowClassName,he=Xe.style,be=Xe.data,Ee=Xe.rowKey,Ne=Xe.scroll,we=Xe.tableLayout,Ae=Xe.direction,Ue=Xe.title,We=Xe.footer,Je=Xe.summary,$e=Xe.id,pt=Xe.showHeader,Jt=Xe.components,fn=Xe.emptyText,qt=Xe.onRow,St=Xe.onHeaderRow,Be=Xe.internalHooks,at=Xe.transformColumns,it=Xe.internalRefs,Me=Xe.sticky,Ve=be||He,xt=!!Ve.length,_t=y.useState(0),At=Object(m.a)(_t,2),Ot=At[0],Ct=At[1];y.useEffect(function(){Ct(Object(n.a)())});var Bt=y.useMemo(function(){return Object(w.c)(Jt,{})},[Jt]),It=y.useCallback(function(Ut,en){return Object(w.b)(Bt,Ut)||en},[Bt]),yt=y.useMemo(function(){return typeof Ee=="function"?Ee:function(Ut){var en=Ut&&Ut[Ee];return en}},[Ee]),zt=Object(S.c)(Xe),sn=zt.expandIcon,hn=zt.expandedRowKeys,un=zt.defaultExpandedRowKeys,Kt=zt.defaultExpandAllRows,gn=zt.expandedRowRender,Rn=zt.onExpand,Cn=zt.onExpandedRowsChange,an=zt.expandRowByClick,_n=zt.rowExpandable,vn=zt.expandIconColumnIndex,Ft=zt.expandedRowClassName,Nt=zt.childrenColumnName,pn=zt.indentSize,qn=sn||ae,Qt=Nt||"children",Vn=y.useMemo(function(){return gn?"row":Xe.expandable&&Be===ot&&Xe.expandable.__PARENT_RENDER_ICON__||Ve.some(function(Ut){return Ut&&Object(v.a)(Ut)==="object"&&Ut[Qt]})?"nest":!1},[!!gn,Ve]),Gn=y.useState(function(){return un||(Kt?re(Ve,yt,Qt):[])}),xr=Object(m.a)(Gn,2),Sn=xr[0],Pn=xr[1],Yt=y.useMemo(function(){return new Set(hn||Sn||[])},[hn,Sn]),Hr=y.useCallback(function(Ut){var en=yt(Ut,Ve.indexOf(Ut)),Vt,Un=Yt.has(en);Un?(Yt.delete(en),Vt=Object(T.a)(Yt)):Vt=[].concat(Object(T.a)(Yt),[en]),Pn(Vt),Rn&&Rn(!Un,Ut),Cn&&Cn(Vt)},[yt,Yt,Ve,Rn,Cn]),ar=y.useState(0),ma=Object(m.a)(ar,2),Br=ma[0],Na=ma[1],Xa=Object(de.b)(Object(E.a)(Object(E.a)(Object(E.a)({},Xe),zt),{},{expandable:!!gn,expandedKeys:Yt,getRowKey:yt,onTriggerExpand:Hr,expandIcon:qn,expandIconColumnIndex:vn,direction:Ae}),Be===ot?at:null),ua=Object(m.a)(Xa,2),Zr=ua[0],Sr=ua[1],Oa=y.useMemo(function(){return{columns:Zr,flattenColumns:Sr}},[Zr,Sr]),Ma=y.useRef(),Sa=y.useRef(),ca=y.useRef(),ka=y.useState(!1),Ga=Object(m.a)(ka,2),La=Ga[0],Za=Ga[1],Ia=y.useState(!1),xa=Object(m.a)(Ia,2),Fa=xa[0],li=xa[1],yi=le(new Map),ga=Object(m.a)(yi,2),va=ga[0],ya=ga[1],ye=Object(w.a)(Sr),rt=ye.map(function(Ut){return va.get(Ut)}),Et=y.useMemo(function(){return rt},[rt.join("_")]),vt=K(Et,Sr.length,Ae),Wt=Ne&&Object(w.d)(Ne.y),Lt=Ne&&Object(w.d)(Ne.x),Zt=Lt&&Sr.some(function(Ut){var en=Ut.fixed;return en}),dn=y.useRef(),En=Oe(Me,lt),wn=En.isSticky,Hn=En.offsetHeader,jn=En.offsetScroll,nn=En.stickyClassName,Mn,mn,Wn;Wt&&(mn={overflowY:"scroll",maxHeight:Ne.y}),Lt&&(Mn={overflowX:"auto"},Wt||(mn={overflowY:"hidden"}),Wn={width:Ne.x===!0?"auto":Ne.x,minWidth:"100%"});var Dn=y.useCallback(function(Ut,en){ya(function(Vt){var Un=new Map(Vt);return Un.set(Ut,en),Un})},[]),tr=ee(null),sr=Object(m.a)(tr,2),Ir=sr[0],oa=sr[1];function Cr(Ut,en){if(!en)return;typeof en=="function"?en(Ut):en.scrollLeft!==Ut&&(en.scrollLeft=Ut)}var Or=function(en){var Vt=en.currentTarget,Un=en.scrollLeft,$n=typeof Un=="number"?Un:Vt.scrollLeft,ir=Vt||Qe;if(!oa()||oa()===ir){var Kn;Ir(ir),Cr($n,Sa.current),Cr($n,ca.current),Cr($n,(Kn=dn.current)===null||Kn===void 0?void 0:Kn.setScrollLeft)}if(Vt){var rr=Vt.scrollWidth,or=Vt.clientWidth;Za($n>0),li($n<rr-or)}},ea=function(){ca.current&&Or({currentTarget:ca.current})},Nn=function(en){var Vt=en.width;ea(),Na(Ma.current?Ma.current.offsetWidth:Vt)};y.useEffect(function(){return ea},[]),y.useEffect(function(){Lt&&ea()},[Lt]),y.useEffect(function(){Be===ot&&it&&(it.body.current=ca.current)});var br=It(["table"],"table"),$t=y.useMemo(function(){return we||(Zt?Ne.x==="max-content"?"auto":"fixed":Wt||Sr.some(function(Ut){var en=Ut.ellipsis;return en})?"fixed":"auto")},[Wt,Zt,Sr,we]),jt,on={colWidths:Et,columCount:Sr.length,stickyOffsets:vt,onHeaderRow:St,fixHeader:Wt},An=y.useMemo(function(){return xt?null:typeof fn=="function"?fn():fn},[xt,fn]),Tn=y.createElement(Te,{data:Ve,measureColumnWidth:Wt||Lt||wn,expandedKeys:Yt,rowExpandable:_n,getRowKey:yt,onRow:qt,emptyNode:An,childrenColumnName:Qt}),Yn=y.createElement(A,{colWidths:Sr.map(function(Ut){var en=Ut.width;return en}),columns:Sr}),Jn=Je&&y.createElement(te.b,null,Je(Ve)),kn=It(["body"]);if(Wt||wn){var Ar;typeof kn=="function"?(Ar=kn(Ve,{scrollbarSize:Ot,ref:ca,onScroll:Or}),on.colWidths=Sr.map(function(Ut,en){var Vt=Ut.width,Un=en===Zr.length-1?Vt-Ot:Vt;return typeof Un=="number"&&!Number.isNaN(Un)?Un:(Object(r.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Ar=y.createElement("div",{style:Object(E.a)(Object(E.a)({},Mn),mn),onScroll:Or,ref:ca,className:g()("".concat(lt,"-body"))},y.createElement(br,{style:Object(E.a)(Object(E.a)({},Wn),{},{tableLayout:$t})},Yn,Tn,Jn),wn&&y.createElement(me,{ref:dn,offsetScroll:jn,scrollBodyRef:ca,onScroll:Or})),jt=y.createElement(y.Fragment,null,pt!==!1&&y.createElement(k,Object.assign({noData:!Ve.length},on,Oa,{direction:Ae,offsetHeader:Hn,stickyClassName:nn,ref:Sa,onScroll:Or})),Ar)}else jt=y.createElement("div",{style:Object(E.a)(Object(E.a)({},Mn),mn),className:g()("".concat(lt,"-content")),onScroll:Or,ref:ca},y.createElement(br,{style:Object(E.a)(Object(E.a)({},Wn),{},{tableLayout:$t})},Yn,pt!==!1&&y.createElement(C,Object.assign({},on,Oa)),Tn,Jn));var ur=Object(S.b)(Xe),yr=y.createElement("div",Object.assign({className:g()(lt,Mt,(ke={},Object(M.a)(ke,"".concat(lt,"-rtl"),Ae==="rtl"),Object(M.a)(ke,"".concat(lt,"-ping-left"),La),Object(M.a)(ke,"".concat(lt,"-ping-right"),Fa),Object(M.a)(ke,"".concat(lt,"-layout-fixed"),we==="fixed"),Object(M.a)(ke,"".concat(lt,"-fixed-header"),Wt),Object(M.a)(ke,"".concat(lt,"-fixed-column"),Zt),Object(M.a)(ke,"".concat(lt,"-scroll-horizontal"),Lt),Object(M.a)(ke,"".concat(lt,"-has-fix-left"),Sr[0]&&Sr[0].fixed),Object(M.a)(ke,"".concat(lt,"-has-fix-right"),Sr[Sr.length-1]&&Sr[Sr.length-1].fixed==="right"),ke)),style:he,id:$e,ref:Ma},ur),y.createElement(st,{pingLeft:La,pingRight:Fa,props:Object(E.a)(Object(E.a)({},Xe),{},{stickyOffsets:vt,mergedExpandedKeys:Yt})},Ue&&y.createElement(Q,{className:"".concat(lt,"-title")},Ue(Ve)),y.createElement("div",{className:"".concat(lt,"-container")},jt),We&&y.createElement(Q,{className:"".concat(lt,"-footer")},We(Ve))));Lt&&(yr=y.createElement(c.a,{onResize:Nn},yr));var vr=y.useMemo(function(){return{prefixCls:lt,getComponent:It,scrollbarSize:Ot,direction:Ae,fixedInfoList:Sr.map(function(Ut,en){return u(en,en,Sr,vt,Ae)}),isSticky:wn}},[lt,It,Ot,Ae,Sr,vt,Ae,wn]),Dr=y.useMemo(function(){return Object(E.a)(Object(E.a)({},Oa),{},{tableLayout:$t,rowClassName:Ce,expandedRowClassName:Ft,componentWidth:Br,fixHeader:Wt,fixColumn:Zt,horizonScroll:Lt,expandIcon:qn,expandableType:Vn,expandRowByClick:an,expandedRowRender:gn,onTriggerExpand:Hr,expandIconColumnIndex:vn,indentSize:pn})},[Oa,$t,Ce,Ft,Br,Wt,Zt,Lt,qn,Vn,an,gn,Hr,vn,pn]),Xn=y.useMemo(function(){return{onColumnResize:Dn}},[Dn]);return y.createElement(s.a.Provider,{value:vr},y.createElement(G.Provider,{value:Dr},y.createElement(ie.Provider,{value:Xn},yr)))}ct.Column=o.a,ct.ColumnGroup=a.a,ct.Summary=te.a,ct.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var dt=Y.b=ct},wRmb:function(N,Y,i){"use strict";i.d(Y,"a",function(){return f});var M=i("rePB"),E=i("KQm4"),T=i("VTBJ"),v=i("Ff2n"),m=i("q1tI"),y=i.n(m),O=i("Kwbf"),g=i("Zm9Q"),e=i("hW8S");function f(o){return Object(g.a)(o).filter(function(l){return m.isValidElement(l)}).map(function(l){var d=l.key,h=l.props,s=h.children,u=Object(v.a)(h,["children"]),w=Object(T.a)({key:d},u);return s&&(w.children=f(s)),w})}function r(o){return o.reduce(function(l,d){var h=d.fixed,s=h===!0?"left":h,u=d.children;return u&&u.length>0?[].concat(Object(E.a)(l),Object(E.a)(r(u).map(function(w){return Object(T.a)({fixed:s},w)}))):[].concat(Object(E.a)(l),[Object(T.a)(Object(T.a)({},d),{},{fixed:s})])},[])}function c(o){for(var l=!0,d=0;d<o.length;d+=1){var h=o[d];if(l&&h.fixed!=="left")l=!1;else if(!l&&h.fixed==="left"){Object(O.a)(!1,"Index ".concat(d-1," of `columns` missing `fixed='left'` prop."));break}}for(var s=!0,u=o.length-1;u>=0;u-=1){var w=o[u];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(O.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function n(o){return o.map(function(l){var d=l.fixed,h=Object(v.a)(l,["fixed"]),s=d;return d==="left"?s="right":d==="right"&&(s="left"),Object(T.a)({fixed:s},h)})}function a(o,l){var d=o.prefixCls,h=o.columns,s=o.children,u=o.expandable,w=o.expandedKeys,x=o.getRowKey,b=o.onTriggerExpand,P=o.expandIcon,R=o.rowExpandable,C=o.expandIconColumnIndex,S=o.direction,_=o.expandRowByClick,A=m.useMemo(function(){return h||f(s)},[h,s]),j=m.useMemo(function(){if(u){var J,G=C||0,D=A[G],H=(J={},Object(M.a)(J,e.a,{className:"".concat(d,"-expand-icon-col")}),Object(M.a)(J,"title",""),Object(M.a)(J,"fixed",D?D.fixed:null),Object(M.a)(J,"className","".concat(d,"-row-expand-icon-cell")),Object(M.a)(J,"render",function(z,ie,ce){var ue=x(ie,ce),xe=w.has(ue),Te=R?R(ie):!0,de=P({prefixCls:d,expanded:xe,expandable:Te,record:ie,onExpand:b});return _?m.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},de):de}),J),W=A.slice();return G>=0&&W.splice(G,0,H),W}return A},[u,A,x,w,P,S]),I=m.useMemo(function(){var J=j;return l&&(J=l(J)),J.length||(J=[{render:function(){return null}}]),J},[l,j,S]),k=m.useMemo(function(){return S==="rtl"?n(r(I)):r(I)},[I,S]);return[I,k]}Y.b=a},wZgz:function(N,Y,i){(function(M,E,T){N.exports=Y=E(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.BlockCipher,m=E.algo,y=[],O=[],g=[],e=[],f=[],r=[],c=[],n=[],a=[],o=[];(function(){for(var h=[],s=0;s<256;s++)s<128?h[s]=s<<1:h[s]=s<<1^283;for(var u=0,w=0,s=0;s<256;s++){var x=w^w<<1^w<<2^w<<3^w<<4;x=x>>>8^x&255^99,y[u]=x,O[x]=u;var b=h[u],P=h[b],R=h[P],C=h[x]*257^x*16843008;g[u]=C<<24|C>>>8,e[u]=C<<16|C>>>16,f[u]=C<<8|C>>>24,r[u]=C;var C=R*16843009^P*65537^b*257^u*16843008;c[x]=C<<24|C>>>8,n[x]=C<<16|C>>>16,a[x]=C<<8|C>>>24,o[x]=C,u?(u=b^h[h[h[R^b]]],w^=h[h[w]]):u=w=1}})();var l=[0,1,2,4,8,16,32,64,128,27,54],d=m.AES=v.extend({_doReset:function(){var h;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var s=this._keyPriorReset=this._key,u=s.words,w=s.sigBytes/4,x=this._nRounds=w+6,b=(x+1)*4,P=this._keySchedule=[],R=0;R<b;R++)R<w?P[R]=u[R]:(h=P[R-1],R%w?w>6&&R%w==4&&(h=y[h>>>24]<<24|y[h>>>16&255]<<16|y[h>>>8&255]<<8|y[h&255]):(h=h<<8|h>>>24,h=y[h>>>24]<<24|y[h>>>16&255]<<16|y[h>>>8&255]<<8|y[h&255],h^=l[R/w|0]<<24),P[R]=P[R-w]^h);for(var C=this._invKeySchedule=[],S=0;S<b;S++){var R=b-S;if(S%4)var h=P[R];else var h=P[R-4];S<4||R<=4?C[S]=h:C[S]=c[y[h>>>24]]^n[y[h>>>16&255]]^a[y[h>>>8&255]]^o[y[h&255]]}},encryptBlock:function(h,s){this._doCryptBlock(h,s,this._keySchedule,g,e,f,r,y)},decryptBlock:function(h,s){var u=h[s+1];h[s+1]=h[s+3],h[s+3]=u,this._doCryptBlock(h,s,this._invKeySchedule,c,n,a,o,O);var u=h[s+1];h[s+1]=h[s+3],h[s+3]=u},_doCryptBlock:function(h,s,u,w,x,b,P,R){for(var C=this._nRounds,S=h[s]^u[0],_=h[s+1]^u[1],A=h[s+2]^u[2],j=h[s+3]^u[3],I=4,k=1;k<C;k++){var J=w[S>>>24]^x[_>>>16&255]^b[A>>>8&255]^P[j&255]^u[I++],G=w[_>>>24]^x[A>>>16&255]^b[j>>>8&255]^P[S&255]^u[I++],D=w[A>>>24]^x[j>>>16&255]^b[S>>>8&255]^P[_&255]^u[I++],H=w[j>>>24]^x[S>>>16&255]^b[_>>>8&255]^P[A&255]^u[I++];S=J,_=G,A=D,j=H}var J=(R[S>>>24]<<24|R[_>>>16&255]<<16|R[A>>>8&255]<<8|R[j&255])^u[I++],G=(R[_>>>24]<<24|R[A>>>16&255]<<16|R[j>>>8&255]<<8|R[S&255])^u[I++],D=(R[A>>>24]<<24|R[j>>>16&255]<<16|R[S>>>8&255]<<8|R[_&255])^u[I++],H=(R[j>>>24]<<24|R[S>>>16&255]<<16|R[_>>>8&255]<<8|R[A&255])^u[I++];h[s]=J,h[s+1]=G,h[s+2]=D,h[s+3]=H},keySize:256/32});E.AES=v._createHelper(d)}(),M.AES})},wbyO:function(N,Y,i){(function(M,E){N.exports=Y=E(i("Ib8C"))})(this,function(M){return function(){var E=M,T=E.lib,v=T.WordArray,m=E.enc,y=m.Base64url={stringify:function(g,e=!0){var f=g.words,r=g.sigBytes,c=e?this._safe_map:this._map;g.clamp();for(var n=[],a=0;a<r;a+=3)for(var o=f[a>>>2]>>>24-a%4*8&255,l=f[a+1>>>2]>>>24-(a+1)%4*8&255,d=f[a+2>>>2]>>>24-(a+2)%4*8&255,h=o<<16|l<<8|d,s=0;s<4&&a+s*.75<r;s++)n.push(c.charAt(h>>>6*(3-s)&63));var u=c.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,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var n=0;n<r.length;n++)c[r.charCodeAt(n)]=n}var a=r.charAt(64);if(a){var o=g.indexOf(a);o!==-1&&(f=o)}return O(g,f,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function O(g,e,f){for(var r=[],c=0,n=0;n<e;n++)if(n%4){var a=f[g.charCodeAt(n-1)]<<n%4*2,o=f[g.charCodeAt(n)]>>>6-n%4*2,l=a|o;r[c>>>2]|=l<<24-c%4*8,c++}return v.create(r,c)}}(),M.enc.Base64url})},xiVL:function(N,Y){N.exports="data:image/png;base64,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"},xrsn:function(N,Y,i){N.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",dropDown:"dropDown___3Phxo",line:"line___3lQ2g",subName:"subName___3sqtP",name:"name___1Odvx",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(N,Y,i){"use strict";i.d(Y,"a",function(){return r}),i.d(Y,"b",function(){return n});var M=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function v(a){return a.nodeType===1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}}function m(a,o,l){if(o=o.toLowerCase(),l==="auto"){if(o==="height")return a.offsetHeight;if(o==="width")return a.offsetWidth}return o in E||(E[o]=M.test(o)),E[o]?parseFloat(l)||0:l}function y(a,o){var l=arguments.length,d=v(a);return o=T[o]?"cssFloat"in a.style?"cssFloat":"styleFloat":o,l===1?d:m(a,o,d[o]||a.style[o])}function O(a,o,l){var d=arguments.length;if(o=T[o]?"cssFloat"in a.style?"cssFloat":"styleFloat":o,d===3)return typeof l=="number"&&M.test(o)&&(l="".concat(l,"px")),a.style[o]=l,l;for(var h in o)o.hasOwnProperty(h)&&O(a,h,o[h]);return v(a)}function g(a){return a===document.body?document.documentElement.clientWidth:a.offsetWidth}function e(a){return a===document.body?window.innerHeight||document.documentElement.clientHeight:a.offsetHeight}function f(){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),o=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:a,height:o}}function r(){var a=document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight;return{width:a,height:o}}function c(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function n(a){var o=a.getBoundingClientRect(),l=document.documentElement;return{left:o.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:o.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}},yDYP:function(N,Y,i){N.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(N,Y,i){N.exports=i.p+"static/AssistantCode3.fdd8db3c.jpeg"},yslc:function(N,Y){N.exports="data:image/png;base64,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"},z4EP:function(N,Y){N.exports="data:image/png;base64,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"}}]);