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__Question__OjProblem__ind...

313 lines
1.3 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.

(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},28575:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},18699:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},81893:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},55304:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},73148:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},56747:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},53555:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},50881:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},22751:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},34182:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},74664:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},32693:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},91034:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ve=be,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},71736:function(ot,Ge){"use strict";Ge.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77969:function(ot,Ge){"use strict";Ge.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},12867:function(){"use strict"},22707:function(ot,Ge,ee){"use strict";var te=ee(67294),ue=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(le,fe,se)=>fe in le?ue(le,fe,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[fe]=se,ae=(le,fe)=>{for(var se in fe||(fe={}))ve.call(fe,se)&&pe(le,se,fe[se]);if(be)for(var se of be(fe))de.call(fe,se)&&pe(le,se,fe[se]);return le};const he=le=>React.createElement("svg",ae({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));Ge.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},8861:function(ot,Ge,ee){"use strict";var te=ee(67294),ue=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(le,fe,se)=>fe in le?ue(le,fe,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[fe]=se,ae=(le,fe)=>{for(var se in fe||(fe={}))ve.call(fe,se)&&pe(le,se,fe[se]);if(be)for(var se of be(fe))de.call(fe,se)&&pe(le,se,fe[se]);return le};const he=le=>React.createElement("svg",ae({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));Ge.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},18023:function(){"use strict";function ot(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ot.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(ot.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(ot.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(ot.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof ot))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var Ge=[];function ee(ne,a){var y=Ge.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function te(){var ne=Ge.pop();return ne===void 0?new go.Point:ne}function ue(ne){Ge.push(ne)}function be(ne,a,y,E,b,x,z,oe,ie){ie||(ie=new go.Point);var ce=ne-y,ye=b-z,_e=NaN,xe=NaN;if(ce===0)if(ye===0)ne===y&&(_e=ne,xe=a);else{var Ce=(x-oe)/ye,Te=x-Ce*b;_e=ne,xe=Ce*_e+Te}else if(ye===0){var Me=(a-E)/ce,pt=a-Me*ne;_e=b,xe=Me*_e+pt}else{var Me=(a-E)/ce,Ce=(x-oe)/ye,pt=a-Me*ne,Te=x-Ce*b;_e=(Te-pt)/(Me-Ce),xe=Me*_e+pt}return ie.x=_e,ie.y=xe,ie}function ve(ne,a,y,E,b,x,z,oe,ie,ce,ye,_e,xe,Ce){var Te=1-ie,Me=ie,pt=ne*Te+y*Me,Ve=a*Te+E*Me,gt=y*Te+b*Me,Ae=E*Te+x*Me,De=b*Te+z*Me,Ie=x*Te+oe*Me,tt=pt*Te+gt*Me,Ze=Ve*Te+Ae*Me,bt=gt*Te+De*Me,wt=Ae*Te+Ie*Me,Kt=tt*Te+bt*Me,Qt=Ze*Te+wt*Me;ce.x=pt,ce.y=Ve,ye.x=tt,ye.y=Ze,_e.x=Kt,_e.y=Qt,xe.x=bt,xe.y=wt,Ce.x=De,Ce.y=Ie}var de=new go.Spot(.156,.156),pe=new go.Spot(.844,.844),ae=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ot("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ae,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=de,b.spot2=pe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ae*a,0,a,(1-ae)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ae*y,(1-ae)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ae*y,ae*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ae)*a,0,0,(1-ae)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ot("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ot("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ot("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ot("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ot("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var he=[];function le(){var ne=he.pop();return ne===void 0?[]:ne}function fe(ne){ne.length=0,he.push(ne)}function se(ne){for(var a=le(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function me(ne){var a=re(ne),y=le();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return fe(a),y}function re(ne){for(var a=se(ne),y=le(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var oe=a[z],ie=a[z+1],ce=a[(E+z-1)%b],ye=a[(E+z+x)%b];y[z*2]=oe,y[z*2+1]=be(oe.x,oe.y,ce.x,ce.y,ie.x,ie.y,ye.x,ye.y,new go.Point)}return y[y.length]=y[0],fe(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=se(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=se(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=se(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=se(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=se(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=se(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=se(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),fe(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=me(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),fe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=me(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),fe(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=me(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=me(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=me(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=me(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ot("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ot("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ot("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var oe=Math.max(b-E,0);return oe>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+oe,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,oe,oe).close())),x.spot1=de,x.spot2=pe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ot("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ot("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,oe=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,x,z,oe,oe,oe,oe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ae/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ot("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,oe=Math.atan2(y,a),ie=E-Math.min(Math.cos(oe)*E/2,x),ce=E-Math.min(Math.sin(oe)*E/2,z),b=new go.Geometry,ye=new go.PathFigure(ie,0,!0);return b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ye.add(new go.PathSegment(go.PathSegment.Line,a-ie,0)),ye.add(new go.PathSegment(go.PathSegment.Line,a,ce)),ye.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,a,y-ce)),ye.add(new go.PathSegment(go.PathSegment.Line,a-ie,y)),ye.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,ie,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,y-ce)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ot("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ot("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ot("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ae*a,0,a,(.5-ae/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ae/2)*y,ae*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,oe=0,ie=x*ae;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+oe)*y,(.5-x+z)*a,(.5+ie+oe)*y,(.5-ie+z)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+oe)*y,(.5+ie+z)*a,(.5+x+oe)*y,(.5+x+z)*a,(.5+ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+oe)*y,(1-.5+x+z)*a,(.5-ie+oe)*y,(.5+ie+z)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ie+z)*a,(.5-x+oe)*y,(.5-x+z+.05)*a,(.5-ie+oe-.02)*y)),x=.2,z=0,oe=-.3,ie=x*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+oe)*y,(.5+ie+z)*a,(.5+x+oe)*y,(.5+x+z)*a,(.5+ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+oe)*y,(1-.5+x+z)*a,(.5-ie+oe)*y,(.5+ie+z)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+oe)*y,(.5-ie+z)*a,(.5-x+oe)*y,(.5-x+z)*a,(.5-ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+z)*a,(.5+x+oe)*y,(.5-x+z)*a,(.5+ie+oe)*y,(.5-ie+z)*a,(.5+x+oe)*y)),x=.2,z=-.3,oe=0,ie=x*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+oe)*y,(1-.5+x+z-.05)*a,(.5-ie+oe-.02)*y,(.5+ie+z)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+oe)*y,(.5-ie+z)*a,(.5-x+oe)*y,(.5-x+z)*a,(.5-ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+oe)*y,(.5-x+z)*a,(.5+ie+oe)*y,(.5-ie+z)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ie+z)*a,(.5+x+oe)*y,(.5+x+z)*a,(.5+ie+oe)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,oe=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,oe*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*oe,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),oe=.75,b=new go.PathFigure((z+x)*a,oe*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*oe,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=.5,z=.5,oe=.5,ie=new go.PathFigure(z*a,(oe-x)*y);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),x=.4,b=ae*.4;var ce=te(),ye=te(),_e=te(),xe=te();ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.42,ce,ye,_e,xe,xe);var Ce=te(),Te=te(),Me=te();ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.58,xe,xe,Me,Ce,Te);var pt=te(),Ve=te(),gt=te();ve(z,oe+x,z-b,oe+x,z-x,oe+b,z-x,oe,.42,pt,Ve,gt,xe,xe);var Ae=te(),De=te(),Ie=te();return ve(z,oe+x,z-b,oe+x,z-x,oe+b,z-x,oe,.58,xe,xe,Ie,Ae,De),ie.add(new go.PathSegment(go.PathSegment.Move,Ie.x*a,Ie.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,Ae.x*a,Ae.y*y,De.x*a,De.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,_e.x*a,_e.y*y,ce.x*a,ce.y*y,ye.x*a,ye.y*y)),ie.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y).close()),ie.add(new go.PathSegment(go.PathSegment.Move,gt.x*a,gt.y*y)),ie.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,Ce.x*a,Ce.y*y,Te.x*a,Te.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,gt.x*a,gt.y*y,pt.x*a,pt.y*y,Ve.x*a,Ve.y*y).close()),ue(ce),ue(ye),ue(_e),ue(xe),ue(Ce),ue(Te),ue(Me),ue(pt),ue(Ve),ue(gt),ue(Ae),ue(De),ue(Ie),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ot("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=ae*.4,x=.4,z=.5,oe=.5,ie=te(),ce=te(),ye=te(),_e=te(),xe=new go.PathFigure((z-x)*a,oe*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.44,ye,_e,ce,ie,ie),xe.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y));var Ce=ee(ce.x,ce.y);ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.56,ie,ie,ce,ye,_e);var Te=ee(ce.x,ce.y);xe.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.95*.9)*a,Ce.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ce.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Te.x*.1+.9)*a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Te.x*.1+.9)*a,(Te.y*.1+.05*.9)*y)),xe.add(new go.PathSegment(go.PathSegment.Line,Te.x*a,Te.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),x=.35,b=ae*.35;var Me=new go.PathFigure(z*a,(oe-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y));var pt=new go.PathFigure((z-x)*a,oe*y,!1);return E.add(pt),ue(ie),ue(ce),ue(ye),ue(_e),ue(Ce),ue(Te),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,oe=b*ae,ie=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+oe+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-oe+z)*y,(.5+oe+x)*a,(.5-b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-oe+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+oe+z)*y,(.5-oe+x)*a,(.5+b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,oe=b*ae;var ie=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+oe+z)*y,(.5+oe+x)*a,(.5+b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-oe+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-oe+z)*y,(.5-oe+x)*a,(.5-b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+oe+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-oe+z)*y));var ie=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ie),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ot("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ot("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,oe=(.5+b/2)*y,ie=new go.Geometry,ce=new go.PathFigure(0,z,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ie.spot1=new go.Spot(0,z/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,te());return ie.spot2=new go.Spot(ye.x,ye.y),ue(ye),ie}),go.Shape.setFigureParameter("Arrow2",0,new ot("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ot("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,oe=z+b,ie=new go.Geometry,ce=new go.PathFigure(0,z,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ie.spot1=new go.Spot(0,z/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,te());return ie.spot2=new go.Spot(ye.x,ye.y),ue(ye),ie}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ot("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ie=be(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ie.x,ie.y),ie=be(.7,1,1,.5,0,x/y,1,x/y,ie),z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ot("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ot("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,oe=(y-b)/2,ie=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,oe=0,ie=y):(x=0,z=y,oe=0,ie=y));var ce=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ce.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close());var _e=be(0,.5,.3,oe/y,0,x/y,1,x/y,te());return ce.spot1=new go.Spot(_e.x,_e.y),_e=be(.7,ie/y,1,.5,0,z/y,1,z/y,_e),ce.spot2=new go.Spot(_e.x,_e.y),ue(_e),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new ot("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ie=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ot("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ot("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,oe=(y-b)/2,ie=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,oe=0,ie=y):(x=0,z=y,oe=0,ie=y));var ce=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ce.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,0,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close()),ce.spot1=new go.Spot(0,x/y);var _e=be(.7,ie/y,1,.5,0,z/y,1,z/y,te());return ce.spot2=new go.Spot(_e.x,_e.y),ue(_e),ce}),go.Shape.setFigureParameter("Pointer",0,new ot("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=be(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ot("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=be(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ot("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ie=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ot("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ie=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("SquareArrow",0,new ot("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=ae*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ae*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ae*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var oe=new go.PathFigure(a,E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ae*E,(.5+x)*a,2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ae*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ae*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ae*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ae*E));var oe=new go.PathFigure(0,y-E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ae*E,(.5-x)*a,y-2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ae*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ae*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ae*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ae*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ae*E,0));var oe=new go.PathFigure(E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ae*E,0,2*E,(.5-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ae*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ae*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ae*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ae*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ae*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var oe=new go.PathFigure(a-E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ae*E,0,a-2*E,(.5-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ae*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=ae*b,oe=ae*x,ie=.5,ce=.1,ye=new go.PathFigure(ie*a,(ce+x)*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-b)*a,ce*y,(ie-z)*a,(ce+x)*y,(ie-b)*a,(ce+oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-x)*y,(ie-b)*a,(ce-oe)*y,(ie-z)*a,(ce-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie+b)*a,ce*y,(ie+z)*a,(ce-x)*y,(ie+b)*a,(ce-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+x)*y,(ie+b)*a,(ce+oe)*y,(ie+z)*a,(ce+x)*y));var _e=.05,xe=ae*_e;ie=.05,ce=.25;var Ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ie=.95,ce=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+_e)*a,ce*y,(ie+xe)*a,(ce-_e)*y,(ie+_e)*a,(ce-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),_e=.025,xe=ae*_e,ie=.825,ce=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie+_e)*a,(ce-xe)*y,(ie+xe)*a,(ce-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-_e)*a,ce*y,(ie-xe)*a,(ce-_e)*y,(ie-_e)*a,(ce-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),_e=.05,xe=ae*_e,ie=.5,ce=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie+_e)*a,(ce-xe)*y,(ie+xe)*a,(ce-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-_e)*a,ce*y,(ie-xe)*a,(ce-_e)*y,(ie-_e)*a,(ce-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),_e=.025,xe=ae*_e,ie=.175,ce=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie+_e)*a,(ce-xe)*y,(ie+xe)*a,(ce-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-_e)*a,ce*y,(ie-xe)*a,(ce-_e)*y,(ie-_e)*a,(ce-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),_e=.05,xe=ae*_e,ie=.05,ce=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie-_e)*a,(ce-xe)*y,(ie-xe)*a,(ce-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ot("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=ae*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=ae*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ae*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var oe=new go.PathFigure(0,b*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ae*.5,oe=.5,ie=new go.PathFigure(a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,y,a,(oe+z)*y,(oe+z)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*y,(oe-z)*a,y,0,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,0,0,(oe-z)*y,(oe-z)*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,oe*y,(oe+z)*a,0,a,(oe-z)*y));var ce=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ce.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var oe=new go.PathFigure(.5*b*a,b*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,x*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ie=new go.PathFigure(.8*a,.75*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=ae*.1,x=.1,z=.9,oe=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ce=new go.PathFigure((z+x)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe-x)*y,(z+x)*a,(oe-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=ae*.4,z=ae*.1,oe=.1,ie=.9,ce=.5,ye=new go.PathFigure(.8*a,.5*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var _e=new go.PathFigure((ie+oe)*a,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+oe)*y,(ie+oe)*a,(ce+z)*y,(ie+z)*a,(ce+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a,ce*y,(ie-z)*a,(ce+oe)*y,(ie-oe)*a,(ce+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-oe)*y,(ie-oe)*a,(ce-z)*y,(ie-z)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a,ce*y,(ie+z)*a,(ce-oe)*y,(ie+oe)*a,(ce-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*b,z=0,oe=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ae*.1,z=.9,oe=.5;var ce=new go.PathFigure((z-b)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*b,z=0,oe=.5,ie=new go.PathFigure(0,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(oe-b)*y,.8*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(oe+x)*y,(z+x+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*b,z=.2,oe=.5,ie=new go.PathFigure(.1*a,0,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.8*a,.5*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ae*.1,z=.9,oe=.5;var ye=new go.PathFigure((z-b)*a,oe*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*b,z=.2,oe=.5,ie=new go.PathFigure(.1*a,0,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.2*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(oe-b)*y,.9*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ae*.1,x=.1,z=.1,oe=.5,ie=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=.5,z=.5,oe=.5,ie=new go.PathFigure((z-x)*a,oe*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe-x)*y,(z+x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,oe*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,oe*y,z*a,(oe-x)*y,z*a,(oe+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ae*.8,oe=.8,ie=0,ce=.5,ye=(b-a)/2,_e=(x-y)/2,xe=new go.PathFigure(ie*a+ye,(ce+oe)*y+_e,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a+ye,ce*y+_e,(ie-z)*a+ye,(ce+oe)*y+_e,(ie-oe)*a+ye,(ce+z)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie-oe)*a+ye,(ce-z)*y+_e,(ie-z)*a+ye,(ce-oe)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe+z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce-oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce-z)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce+z)*y+_e,ie*a+ye,(ce+oe)*y+_e).close()),z=ae*.4,oe=.4,ie=.2,ce=.5;var Ce=new go.PathFigure(ie*a+ye,(ce+oe)*y+_e,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a+ye,ce*y+_e,(ie-z)*a+ye,(ce+oe)*y+_e,(ie-oe)*a+ye,(ce+z)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie-oe)*a+ye,(ce-z)*y+_e,(ie-z)*a+ye,(ce-oe)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe+z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce-oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce-z)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce+z)*y+_e,ie*a+ye,(ce+oe)*y+_e).close()),z=ae*.2,oe=.2,ie=.5,ce=.5;var Te=new go.PathFigure((ie-oe)*a+ye,ce*y+_e,!0);E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie-oe)*a+ye,(ce-z)*y+_e,(ie-z)*a+ye,(ce-oe)*y+_e)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a+ye,ce*y+_e,(ie+z)*a+ye,(ce-oe)*y+_e,(ie+oe)*a+ye,(ce-z)*y+_e)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie+oe)*a+ye,(ce+z)*y+_e,(ie+z)*a+ye,(ce+oe)*y+_e)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a+ye,ce*y+_e,(ie-z)*a+ye,(ce+oe)*y+_e,(ie-oe)*a+ye,(ce+z)*y+_e)),z=ae*.4,oe=.4,ie=.8,ce=.5;var Me=new go.PathFigure(ie*a+ye,(ce-oe)*y+_e,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a+ye,ce*y+_e,(ie+z)*a+ye,(ce-oe)*y+_e,(ie+oe)*a+ye,(ce-z)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie+oe)*a+ye,(ce+z)*y+_e,(ie+z)*a+ye,(ce+oe)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe-z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce+oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce+z)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce-z)*y+_e,ie*a+ye,(ce-oe)*y+_e).close()),z=ae*.8,oe=.8,ie=1,ce=.5;var pt=new go.PathFigure(ie*a+ye,(ce-oe)*y+_e,!0);return E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a+ye,ce*y+_e,(ie+z)*a+ye,(ce-oe)*y+_e,(ie+oe)*a+ye,(ce-z)*y+_e)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie+oe)*a+ye,(ce+z)*y+_e,(ie+z)*a+ye,(ce+oe)*y+_e)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe-z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce+oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce+z)*y+_e)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce-z)*y+_e,ie*a+ye,(ce-oe)*y+_e).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var oe=new go.PathFigure(0,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=ae*.4,x=.4,z=.5,oe=.5,ie=te(),ce=te(),ye=te(),_e=te();ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.5,ie,ie,ce,ye,_e);var xe=ee(ce.x,ce.y),Ce=new go.PathFigure(ce.x*a,ce.y*y,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),ve(z-x,oe,z-x,oe-b,z-b,oe-x,z,oe-x,.5,ye,_e,ce,ie,ie),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),b=ae*.3,x=.3,ve(z-x,oe,z-x,oe-b,z-b,oe-x,z,oe-x,.5,ye,_e,ce,ie,ie),Ce.add(new go.PathSegment(go.PathSegment.Line,ce.x*a,ce.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.5,ie,ie,ce,ye,_e),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y).close());var Ce=new go.PathFigure(.45*a,0,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ue(ie),ue(ce),ue(ye),ue(_e),ue(xe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,oe,ie){z.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*a,(.8+ie)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*a,(.5+ie)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*a,(.5+ie)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*a,(.8+ie)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,oe=b*ae,ie=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,ye=1,_e=.5,xe=.5,Ce=0,Te=new go.PathFigure(ie*a,(1-ce)*y,!1);return E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,_e*y,ye*a,.7*y,ye*a,_e*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(xe+x)*a,(Ce+x)*y,(.5+b+x)*a,(.5-oe+x)*y,(.5+oe+x)*a,(.5-b+x)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-oe+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-oe+z)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+oe+z)*y,(.5-oe+x)*a,.9*y)),Te.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Te.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Te.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,oe=.5,ie=z,ce=Math.PI/4,ye=4*(1-Math.cos(ce))/(3*Math.sin(ce)),_e=ye*.5,xe=z,Ce=z,Te=ye*xe,Me=ye*Ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(oe-xe)*a,ie*y,(oe-(Te+xe)/2)*a,(ie+(Ce+Me)/2)*y,(oe-xe)*a,(ie+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie-Ce)*y,(oe-xe)*a,(ie-Me)*y,(oe-Te)*a,(ie-Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(oe+xe)*a,ie*y,(oe+Te)*a,(ie-Ce)*y,(oe+xe)*a,(ie-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(oe+xe)*a,(ie+Me)*y,(oe+(Te+xe)/2)*a,(ie+(Ce+Me)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var pt=new go.PathFigure(.2*a,y,!1);E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ve=new go.PathFigure(.8*a,y,!1);return E.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,oe=ae*.1,ie=.2,ce=.9,ye=new go.PathFigure((ie-z)*a,ce*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-z)*y,(ie-z)*a,(ce-oe)*y,(ie-oe)*a,(ce-z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie+z)*a,ce*y,(ie+oe)*a,(ce-z)*y,(ie+z)*a,(ce-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+z)*y,(ie+z)*a,(ce+oe)*y,(ie+oe)*a,(ce+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-z)*a,ce*y,(ie-oe)*a,(ce+z)*y,(ie-z)*a,(ce+oe)*y).close()),z=.1,oe=ae*.1,ie=.8,ce=.9;var _e=new go.PathFigure((ie-z)*a,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-z)*y,(ie-z)*a,(ce-oe)*y,(ie-oe)*a,(ce-z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie+z)*a,ce*y,(ie+oe)*a,(ce-z)*y,(ie+z)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+z)*y,(ie+z)*a,(ce+oe)*y,(ie+oe)*a,(ce+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie-z)*a,ce*y,(ie-oe)*a,(ce+z)*y,(ie-z)*a,(ce+oe)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var oe=new go.PathFigure(.5*a,.7*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ie=.1,ce=ae*.1,ye=.1,_e=.9,xe=new go.PathFigure((ye-ie)*a,_e*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ie)*y,(ye-ie)*a,(_e-ce)*y,(ye-ce)*a,(_e-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ie)*a,_e*y,(ye+ce)*a,(_e-ie)*y,(ye+ie)*a,(_e-ce)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ie)*y,(ye+ie)*a,(_e+ce)*y,(ye+ce)*a,(_e+ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ie)*a,_e*y,(ye-ce)*a,(_e+ie)*y,(ye-ie)*a,(_e+ce)*y)),ie=.1,ce=ae*.1,ye=.4,_e=.9;var Ce=new go.PathFigure((ye-ie)*a,_e*y,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ie)*y,(ye-ie)*a,(_e-ce)*y,(ye-ce)*a,(_e-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ie)*a,_e*y,(ye+ce)*a,(_e-ie)*y,(ye+ie)*a,(_e-ce)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ie)*y,(ye+ie)*a,(_e+ce)*y,(ye+ce)*a,(_e+ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ie)*a,_e*y,(ye-ce)*a,(_e+ie)*y,(ye-ie)*a,(_e+ce)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ye=.05,_e=ae*.05,xe=.175,Ce=.95,oe=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ae*.05,xe=.375,Ce=.95,ie=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ae*.05,xe=.625,Ce=.95,ce=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ae*.05,xe=.825,Ce=.95,Te=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var oe=.05,ie=ae*.05,ce=.35,ye=.775,_e=new go.PathFigure((ce-oe)*a,ye*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(ye-oe)*y,(ce-oe)*a,(ye-ie)*y,(ce-ie)*a,(ye-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce+oe)*a,ye*y,(ce+ie)*a,(ye-oe)*y,(ce+oe)*a,(ye-ie)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(ye+oe)*y,(ce+oe)*a,(ye+ie)*y,(ce+ie)*a,(ye+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce-oe)*a,ye*y,(ce-ie)*a,(ye+oe)*y,(ce-oe)*a,(ye+ie)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=ae*.3,z=.5,oe=.7,ie=new go.PathFigure((z-b)*a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y));var ce=new go.PathFigure(0,.7*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*.5,z=.5,oe=.5,ie=new go.PathFigure((z-b)*a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y));var ce=new go.PathFigure(.15*a,.5*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*.5,z=.5,oe=.5,ie=new go.PathFigure((z-b)*a,oe*y,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y).close()),b=.05,x=ae*.05,z=.5,oe=.8;var ce=new go.PathFigure((z-b)*a,oe*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y).close()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var oe=new go.PathFigure(.678*a,.85*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ie=new go.PathFigure(.5*a,.1*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var oe=new go.PathFigure(a*.612,y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ie=new go.PathFigure(a*.816,y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var oe=new go.PathFigure(a*.055,.18*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ie=new go.PathFigure(a*1,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var oe=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ie=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*ae,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var oe=new go.PathFigure(a*.83,0,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ie=new go.PathFigure(a*.83,y*1,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ce=new go.PathFigure(a*.78,y*.05,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ae,x=y*.8,z=new go.Geometry,oe=new go.PathFigure(E,0,!0);return z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),oe.add(new go.PathSegment(go.PathSegment.Line,E,x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*ae,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ot={},Ge="5.0",ee={},te=null,ue=!1,be=!1,ve=null,de=!1,pe=null,ae=null,he=0;he<arguments.length;he++){var le=arguments[he];if(le!==null)switch(typeof le){case"number":Ge=le.toFixed(1);break;case"string":le.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ge=le:ve=le;break;case"object":typeof le.is3D!="undefined"?te=le:ee=le;break;case"boolean":ue=le,be=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!be&&(ue=!0)),ve!==null&&ee.id===void 0&&(ee.id=ve);var fe="",se="",me=!1,re=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,oe=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var ie=function(rt){return parseFloat(rt)>4?parseFloat(rt):5};ot.setHTML5Codebase=function(rt,st){ae=rt,wt(rt,st)},ot.setJavaCodebase=ot.setJavaCodebaseVersion=ot.isCompiledInstalled=ot.setPreCompiledScriptPath=ot.setPreCompiledResourcePath=function(){},ot.setHTML5CodebaseVersion=function(rt,st){var Ct=parseFloat(rt);if(Ct!==NaN&&Ct<5){console.log("The GeoGebra HTML5 codebase version "+Ct+" is deprecated. Using version latest instead.");return}pe=rt,bt(rt,st)},ot.getHTML5CodebaseVersion=function(){return ne},ot.getParameters=function(){return ee},ot.setFontsCSSURL=function(rt){z=rt},ot.setGiacJSURL=function(rt){},ot.setJNLPFile=function(rt){fe=rt},ot.setJNLPBaseDir=function(rt){},ot.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var st="auto",Ct=ee.id,Gt,Ht=!1,Bt=0;Bt<arguments.length;Bt++){var Ke=arguments[Bt];typeof Ke=="string"?(Ke=Ke.toLowerCase(),Ke.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?st=Ke:Ct=arguments[Bt]):typeof Ke=="boolean"?Ht=Ke:Ke instanceof HTMLElement&&(Gt=Ke)}Jt();function Jt(){if(!de){setTimeout(Jt,200);return}st=tt(st);var Mn=Gt||document.getElementById(Ct);if(!Mn){console.log("possibly bug on ajax loading? ");return}if(ot.removeExistingApplet(Mn,!1),ee.width===void 0&&Mn.clientWidth&&(ee.width=Mn.clientWidth),ee.height===void 0&&Mn.clientHeight&&(ee.height=Mn.clientHeight),!(ee.width&&ee.height)&&st==="html5"&&(delete ee.width,delete ee.height),re=st,st==="screenshot")Ve(Mn,ee);else{var Hn=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?Hn=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(Hn=(!ce()||rt())&&ye()),Hn?(re="screenshot",Ae(Mn,ee,Ht,st)):pt(Mn,ee,Ht)}}};function ce(){try{return window.self!==window.top}catch(rt){return!0}}function ye(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ot.getViews=function(){return te},ot.isJavaInstalled=function(){return!1};var _e=function(rt){var st=function(Bt){var Ke=JSON.parse(Bt),Jt=function(pn){return pn.type=="G"||pn.type=="E"},Mn=Ke.elements?Ke.elements.filter(Jt)[0]:Ke;if(!Mn||!Mn.url){Ct();return}ee.fileName=Mn.url,xe(Mn.settings||{}),te.is3D=!0;var Hn="https://www.geogebra.org/images/";ot.setPreviewImage(E||Mn.previewUrl,Hn+"GeoGebra_loading.png",Hn+"applet_play.png"),rt()},Ct=function(){ee.onError&&ee.onError(),Kt("Error: Fetching material (id "+ee.material_id+") failed.",ee)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ht="/materials/"+ee.material_id+"?scope=basic";Ce("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(Ht),st,Ct)};function xe(rt){var st=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ct){rt[Ct]=!!rt[Ct]}),st.forEach(function(Ct){ee[Ct]===void 0&&rt[Ct]!==void 0&&(ee[Ct]=rt[Ct])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function Ce(rt,st,Ct){var Gt=new XMLHttpRequest;Gt.open("GET",rt),Gt.onload=function(){st(Gt.responseText)},Gt.onerror=Ct,Gt.send()}ot.isHTML5Installed=function(){return!0},ot.getLoadedAppletType=function(){return re},ot.setPreviewImage=function(rt,st,Ct){E=rt,b=st,x=Ct},ot.removeExistingApplet=function(rt,st){var Ct;typeof rt=="string"&&(rt=document.getElementById(rt)),re=null;var Gt=null;for(Ct=0;Ct<rt.childNodes.length;Ct++){var Ht=rt.childNodes[Ct],Bt=Ht.className;Bt==="applet_screenshot"?st?(Ht.style.display="block",re="screenshot"):Ht.style.display="none":Bt!=="applet_scaler prerender"&&(rt.removeChild(Ht),Gt=Bt&&Bt.indexOf("appletParameters")!=-1?Ht.id:null,Ct--)}var Ke=ee.id!==void 0?ee.id:Gt,Jt=window[Ke];Jt&&typeof Jt.getBase64=="function"&&(Jt.remove(),window[Ke]=null)},ot.refreshHitPoints=function(){if(ie(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rt=ot.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},ot.startAnimation=function(){var rt=ot.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},ot.stopAnimation=function(){var rt=ot.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},ot.getAppletObject=function(){var rt=ee.id!==void 0?ee.id:"ggbApplet";return window[rt]},ot.resize=function(){};var Te=function(rt,st,Ct){var Gt=document.createElement("param");Gt.setAttribute("name",st),Gt.setAttribute("value",Ct),rt.appendChild(Gt)},Me=function(rt){return rt&&rt!=="false"},pt=function(rt,st,Ct){ie(ne)<=4.2&&(Ct=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ht=document.createElement("div");Ht.classList.add("appletParameters","notranslate");var Bt=st.width,Ke=st.height;if(st.disableAutoScale=st.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():st.disableAutoScale,st.width!==void 0)if(ie(ne)<=4.4)Me(st.showToolBar)&&(st.height-=7),Me(st.showAlgebraInput)&&(st.height-=37),st.width<605&&Me(st.showToolBar)&&(st.width=605,Bt=605);else{var Jt=100;(Me(st.showToolBar)||Me(st.showMenuBar))&&(st.hasOwnProperty("customToolBar")&&(st.customToolbar=st.customToolBar),Jt=Me(st.showMenuBar)?245:155),Bt<Jt&&(st.width=Jt,Bt=Jt)}Ht.style.border="none",Ht.style.display="inline-block";for(var Mn in st)st.hasOwnProperty(Mn)&&Mn!=="appletOnLoad"&&Ht.setAttribute("data-param-"+Mn,st[Mn]);z&&Ht.setAttribute("data-param-fontscssurl",z),ot.resize=function(){GGBAppletUtils.responsiveResize(rt,st)},window.addEventListener("resize",function(Zt){ot.resize()});var Hn=typeof st.appletOnLoad=="function"?st.appletOnLoad:function(){};if(!Ct&&st.width!==void 0){st.hasOwnProperty("showSplash")||Ht.setAttribute("data-param-showSplash","false");var pn=rt.querySelector(".applet_scaler.prerender"),kt=pn!==null;if(kt)var Qe=pn.querySelector(".ggb_preview");else{var Qe=Ie(Bt,Ke,st.borderColor,!1);pn=document.createElement("div"),pn.className="applet_scaler",pn.style.position="relative",pn.style.display="block",pn.style.width=Bt+"px",pn.style.height=Ke+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pn,"66%"),ie(ne)>=5?(st.appletOnLoad=function(Zt){var He=rt.querySelector(".ggb_preview");He&&He.parentNode.removeChild(He),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pn),window.GGBT_wsf_view&&$(window).trigger("resize"),Hn(Zt)},kt||pn.appendChild(Qe)):Ht.appendChild(Qe),pn.appendChild(Ht),kt||rt.appendChild(pn),setTimeout(function(){ot.resize()},1)}else{var Ye=document.createElement("div");Ye.className="applet_scaler",Ye.style.position="relative",Ye.style.display="block",Ye.appendChild(Ht),rt.appendChild(Ye),st.appletOnLoad=function(Zt){ot.resize(),Hn(Zt)}}function Je(Zt,He){He&&typeof He.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Zt,He.appletOnLoad):renderGGBElement(Zt),Kt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",He)}function ft(Zt,He){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Zt,params:He}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ut){Je(ut.article,ut.params)}),html5AppletsToProcess=null)},ie(ne)<5&&(Zt.className+=" geogebraweb")):Je(Zt,He)}if(Gt){scriptLoadStarted=!0;for(var At=0;At<Ht.childNodes.length;At++){var et=Ht.childNodes[At].tagName;et==="TABLE"&&(Ht.removeChild(Ht.childNodes[At]),At--)}if(ggbHTML5LoadedScript!==null){var vt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');vt!=null&&vt.parentNode.removeChild(vt)}var Pt=document.createElement("script"),Xe=function(){ft(Ht,st)};Pt.src=se+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Pt.src,Kt("GeoGebra HTML5 codebase loaded: '"+se+"'.",st),!ae&&(!pe||pe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Xe()):se.requirejs?__webpack_require__.e(12).then(function(){var Zt=[__webpack_require__(12)];Xe.apply(null,Zt)}.bind(this)).catch(__webpack_require__.oe):(Pt.onload=Xe,rt.appendChild(Pt))}else ft(Ht,st);st.height=Ke,st.width=Bt},Ve=function(rt,st,Ct){var Gt=Ie(st.width,st.height,st.borderColor,Ct),Ht=document.createElement("div");Ht.style.position="relative",Ht.style.display="block",Ht.style.width=st.width+"px",Ht.style.height=st.height+"px",Ht.className="applet_screenshot applet_scaler"+(Ct?" applet_screenshot_play":""),Ht.appendChild(Gt);var Bt=GGBAppletUtils.getScale(st,rt,Ct);Ct?(rt.appendChild(De()),window.GGBT_wsf_view||(rt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ht,"66%"),rt.appendChild(Ht),Bt!==1&&!isNaN(Bt)&&(GGBAppletUtils.scaleElement(Ht,Bt),Ht.style.width=st.width+"px",Ht.style.height=st.height+"px",Ht.parentNode.style.width=st.width*Bt+"px",Ht.parentNode.style.height=st.height*Bt+"px"),ot.resize=function(){gt(rt,Gt,Ht,Ct)},window.addEventListener("resize",function(Ke){ot.resize()}),ot.resize()};function gt(rt,st,Ct,Gt){if(rt.contains(st)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(rt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(rt)}var Ht=GGBAppletUtils.getScale(ee,rt,Gt);Ct.parentNode!==null&&(!isNaN(Ht)&&Ht!==1?(GGBAppletUtils.scaleElement(Ct,Ht),Ct.parentNode.style.width=ee.width*Ht+"px",Ct.parentNode.style.height=ee.height*Ht+"px"):(GGBAppletUtils.scaleElement(Ct,1),Ct.parentNode.style.width=ee.width+"px",Ct.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(rt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ot.onExitFullscreen=function(rt,st){st.appendChild(rt)};var Ae=function(rt,st,Ct,Gt){Ve(rt,st,!0);for(var Ht=function(){var Jt=[];for(Ke=0;Ke<rt.childNodes.length;Ke++)Jt.push(rt.childNodes[Ke]);if(window.GGBT_wsf_view){var Mn=window.GGBT_wsf_view.renderFullScreen(rt,st.id),Hn=document.getElementById("fullscreencontainer"),pn=jQuery(rt).find(".fullscreencontent");pn.length>0?(Mn.remove(),pn.attr("id","fullscreencontent").show(),jQuery(Hn).append(pn),window.dispatchEvent(new Event("resize"))):pt(Mn,st,!1),window.GGBT_wsf_view.launchFullScreen(Hn)}else re=Gt,pt(rt,st,!1);if(!window.GGBT_wsf_view)for(Ke=0;Ke<Jt.length;Ke++)rt.removeChild(Jt[Ke])},Bt=rt.getElementsByClassName("ggb_preview_play"),Ke=0;Ke<Bt.length;Ke++)Bt[Ke].addEventListener("click",Ht,!1),Bt[Ke].addEventListener("ontouchstart",Ht,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rt),ye()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},De=function(){var rt=document.createElement("div");if(rt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var st='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ct=document.createElement("style");Ct.styleSheet?Ct.styleSheet.cssText=st:Ct.appendChild(document.createTextNode(st)),document.getElementsByTagName("head")[0].appendChild(Ct)}return rt},Ie=function(rt,st,Ct,Gt){var Ht=document.createElement("div");Ht.className="ggb_preview",Ht.style.position="absolute",Ht.style.zIndex="90",Ht.style.width=rt-2+"px",Ht.style.height=st-2+"px",Ht.style.top="0px",Ht.style.left="0px",Ht.style.overflow="hidden",Ht.style.backgroundColor="white";var Bt="lightgrey";Ct!==void 0&&(Ct==="none"?Bt="transparent":Bt=Ct),Ht.style.border="1px solid "+Bt;var Ke=document.createElement("img");if(Ke.style.position="relative",Ke.style.zIndex="1000",Ke.style.top="-1px",Ke.style.left="-1px",E!==null&&Ke.setAttribute("src",E),Ke.style.opacity=.7,b!==null){var Jt,Mn,Hn;if(!Gt){Jt=document.createElement("img"),Jt.style.position="absolute",Jt.style.zIndex="1001",Jt.style.opacity=1,Ke.style.opacity=.3,Mn=360,Mn>rt/4*3&&(Mn=rt/4*3),Hn=Mn/5.8,Jt.setAttribute("src",b),Jt.setAttribute("width",Mn),Jt.setAttribute("height",Hn);var pn=(rt-Mn)/2,kt=(st-Hn)/2;Jt.style.left=pn+"px",Jt.style.top=kt+"px",Ht.appendChild(Jt)}}return Ht.appendChild(Ke),Ht},tt=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},Ze=["web","webSimple","web3d","tablet","tablet3d","phone"],bt=function(rt,st){if(ne=rt,st){wt(ne,!0);return}var Ct=!ue;if(Ct){var Gt=ie(ne);!isNaN(Gt)&&Gt<4.4&&(Ct=!1)}var Ht,Bt;window.location.protocol.substr(0,4)==="http"?Ht=window.location.protocol:Ht="http:";var Ke=ne.indexOf("//");Ke>0?Bt=ne:Ke===0?Bt=Ht+ne:Bt="https://www.geogebra.org/apps/5.2.814.0/";for(var Jt in Ze)if(ne.slice(Ze[Jt].length*-1)===Ze[Jt]||ne.slice((Ze[Jt].length+1)*-1)===Ze[Jt]+"/"){wt(Bt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ct&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Me(ee.showToolBar)&&!Me(ee.showMenuBar)&&!Me(ee.showAlgebraInput)&&!Me(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Bt+="webSimple/":Bt+="web3d/",wt(Bt,!1)},wt=function(rt,st){if(rt.requirejs){se=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),se=rt,st===null&&(st=rt.indexOf("http")===-1),me=st,a="web.nocache.js",y=!1;var Ct=se.split("/");Ct.length>1&&(!st&&Ct[Ct.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ze.indexOf(Ct[Ct.length-2])>=0&&(a=Ct[Ct.length-2]+".nocache.js")),Ct=rt.split("/"),ne=Ct[Ct.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Gt=parseFloat(ne);Gt!==NaN&&Gt<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),bt("5.0",st))},Kt=function(rt,st){window.console&&window.console.log&&(!st||typeof st.showLogging=="undefined"||st.showLogging&&st.showLogging!=="false")&&console.log(rt)};ee.material_id!==void 0?_e(Qt):Qt();function Qt(){var rt=Ge;pe!==null?rt=pe:parseFloat(rt)<5&&(rt="5.0"),bt(rt,!1),ae!==null&&wt(ae,me),de=!0}return ot},GGBAppletUtils=function(){"use strict";function ot(){return window.GGBT_wsf_edit!==void 0}function Ge(de,pe){pe!=1?(de.style.transformOrigin="0% 0% 0px",de.style.webkitTransformOrigin="0% 0% 0px",de.style.transform="scale("+pe+","+pe+")",de.style.webkitTransform="scale("+pe+","+pe+")",de.style.maxWidth="initial",de.querySelector(".ggb_preview")!==null&&(de.querySelector(".ggb_preview").style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[0]!==void 0&&(de.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[1]!==void 0&&(de.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(de.style.transform="none",de.style.webkitTransform="none")}function ee(de,pe,ae,he,le,fe){var se=null;if(fe!=null&&fe!="")for(var me=de.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+fe+" ")>-1){se=me;break}else me=me.parentNode;var re=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(se)re=se.offsetWidth,ne=Math.max(he?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=re):(re=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),de){var z=de.getBoundingClientRect();z.left>0&&z.left<=re&&(le===void 0||!le)&&(document.dir==="rtl"?(E=re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(de&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=de.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return de&&((ae===void 0||!ae)&&pe>0&&pe+y<re?re=pe:re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ae===void 0||!ae)&&(ne-=x)),{width:re,height:ne}}function te(de,pe,ae,he,le){if(de.isScreenshoGenerator)return 1;var fe=he!==void 0&&he,se=de.noScaleMargin!=null&&de.noScaleMargin,me=function(oe){return oe&&oe!=="false"},re=me(de.autoHeight),ne=ee(pe,de.width,ae,re,fe&&window.GGBT_wsf_view||se,le),a=parseInt(ne.width),y=de.width,E=de.height;if(y===void 0){var b=pe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=fe?1:ne.height/E;return ae!==void 0&&!ae&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ue(de,pe,ae){var he=1,le,fe=!1;if(de.hasOwnProperty("allowUpscale")&&(fe=de.allowUpscale),de.hasOwnProperty("scale")&&(he=parseFloat(de.scale),(isNaN(he)||he===null||he===0)&&(he=1),he>1&&(fe=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(de.hasOwnProperty("disableAutoScale")&&de.disableAutoScale))le=te(de,pe,fe,ae,de.scaleContainerClass);else return he;return fe&&(!de.hasOwnProperty("scale")||he===1)?le:Math.min(he,le)}function be(de){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),he=de.getBoundingClientRect(),le=(pe-he.width)/2,fe=(ae-he.height)/2;fe<0&&(fe=0),de.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?de.style.left="40px":de.style.left=le+"px",de.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?de.style.top="40px":de.style.top=fe+"px",de.style.left=le+"px")}function ve(de,pe){var ae=de.querySelector(".appletParameters");if(ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!==ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(de)}if(ae.parentElement&&/fullscreen/.test(ae.parentElement.className))return;var he=ue(pe,de);ot()&&ae.setAttribute("data-param-scale",he);for(var le=null,fe=0;fe<de.childNodes.length;fe++)if(de.childNodes[fe].className!==void 0&&de.childNodes[fe].className.match(/^applet_scaler/)){le=de.childNodes[fe];break}if(le!==null&&le.querySelector(".noscale")!==null)return;var se=pe.id!==void 0?pe.id:"ggbApplet",me=window[se];(me==null||!me.recalculateEnvironments)&&le!==null&&!le.className.match(/fullscreen/)&&(le.parentNode.style.transform="",!isNaN(he)&&he!==1?(le.parentNode.style.width=pe.width*he+"px",le.parentNode.style.height=pe.height*he+"px",Ge(le,he)):(Ge(le,1),le.parentNode.style.width=pe.width+"px",le.parentNode.style.height=pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(de),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ae).parents(".content-added-content"))}}return{responsiveResize:ve,isFlexibleWorksheetEditor:ot,positionCenter:be,getScale:ue,scaleElement:Ge}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ot=n.location.search;return ot.indexOf(J)!=-1||ot.indexOf(K)!=-1}function q(ot,Ge){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ot){var Ge=s[L].bindings;s[L].bindings=function(){for(var ee=Ge?Ge():{},te=ot[webModule.__softPermutationId],ue=O;ue<te.length;ue++){var be=te[ue];ee[be[O]]=be[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var ot=o.createElement(Q);if(ot.id=L,ot.style.cssText=R+S,ot.tabIndex=-1,o.body.appendChild(ot),t=ot.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ge=document.compatMode==U?V:W;t.write(Ge+X),t.close()}}}function w(ot){function Ge(te){function ue(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=ue();if(be){te();return}function ve(){if(!be){if(!ue())return;be=!0,te(),o.removeEventListener&&o.removeEventListener(Z,ve,!1),de&&clearInterval(de)}}o.addEventListener&&o.addEventListener(Z,ve,!1);var de=setInterval(function(){ve()},$)}function ee(te){var ue=u(),be=ue.body,ve=ue.createElement(_);ve.language=ab,ve.crossOrigin=W,ve.src=te,webModule.__errFn&&(ve.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),be.appendChild(ve)}Ge(function(){ee(ot)})}webModule.__startLoadingFragment=function(ot){return C(ot)},webModule.__installRunAsyncCode=function(ot){var Ge=u(),ee=Ge.body,te=Ge.createElement(_);te.language=ab,te.text=ot,ee.appendChild(te),ee.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ot){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ot){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ot){var Ge=c[ot];return Ge==null?null:Ge},r=d,webModule.__errFn=e}function B(){function ot(de){var pe=de.lastIndexOf(rb);pe==-1&&(pe=de.length);var ae=de.indexOf(sb);ae==-1&&(ae=de.length);var he=de.lastIndexOf(tb,Math.min(ae,pe));return he>=O?de.substring(O,he+P):W}function Ge(de){if(!de.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=de+vb,de=ot(pe.src)}return de}function ee(){var de=__gwt_getMetaProperty(wb);return de!=null?de:W}function te(){for(var de=o.getElementsByTagName(_),pe=O;pe<de.length;++pe)if(de[pe].src.indexOf(xb)!=-1)return ot(de[pe].src);return W}function ue(){var de=o.getElementsByTagName(yb);return de.length>O?de[de.length-P].href:W}function be(){var de=o.location;return de.href==de.protocol+zb+de.host+de.pathname+de.search+de.hash}var ve=ee();return ve==W&&(ve=te()),ve==W&&(ve=ue()),ve==W&&be()&&(ve=ot(o.location.href)),ve=Ge(ve),ve}function C(ot){return ot.match(/^\//)||ot.match(/^[a-zA-Z]+:\/\//)?ot:webModule.__moduleBase+ot}function D(){var ot=[],Ge=O,ee=[],te=[];function ue(de){var pe=te[de](),ae=ee[de];if(pe in ae)return pe;var he=[];for(var le in ae)he[ae[le]]=le;throw r&&r(de,he,pe),null}if(__gwt_isKnownPropertyValue=function(de,pe){return pe in ee[de]},webModule.__getPropMap=function(){var de={};for(var pe in ee)ee.hasOwnProperty(pe)&&(de[pe]=ue(pe));return de},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var ve=be.indexOf(Db);ve!=-1&&(Ge=parseInt(be.substring(ve+P),$),be=be.substring(O,ve))}catch(de){}return webModule.__softPermutationId=Ge,C(be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(ot,Ge,ee){"use strict";ee.d(Ge,{Ax:function(){return ve},Ds:function(){return de},KI:function(){return ae},SI:function(){return be},f1:function(){return ue}});var te=ee(11320);function ue(he){let le=!0;if(he.length>0){for(let fe=0;fe<he.length;fe++)if(he[fe].compile_success==0||!he[fe].compile_success){le=!1;break}}else le=!1;return le}function be(he,le=""){let fe=[];for(let se=0;se<he.length;se++){let me=he[se],re=le?`${le}/${me.name}`:`${me.name}`;fe.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:re})}return fe}function ve(he,le,fe){for(let se=0;se<he.length;se++){let me=he[se];if(me.key===le){me.children=fe;break}me.children&&ve(me.children,le,fe)}return he}function de(he,le,fe){let se;return function(){let me=this,re=arguments,ne=function(){se=null,fe||he.apply(me,re)},a=fe&&!se;clearTimeout(se),se=setTimeout(ne,le),a&&he.apply(me,re)}}const pe=!0,ae=te.Z.API_SERVER},95235:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return b}});var te=ee(67294),ue=ee(33170),be=ee(25934),ve=ee(94184),de=ee.n(ve),pe={upload:"upload___jpwPD"},ae=Object.defineProperty,he=Object.defineProperties,le=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,re=(x,z,oe)=>z in x?ae(x,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):x[z]=oe,ne=(x,z)=>{for(var oe in z||(z={}))se.call(z,oe)&&re(x,oe,z[oe]);if(fe)for(var oe of fe(z))me.call(z,oe)&&re(x,oe,z[oe]);return x},a=(x,z)=>he(x,le(z)),y=(x,z,oe)=>new Promise((ie,ce)=>{var ye=Ce=>{try{xe(oe.next(Ce))}catch(Te){ce(Te)}},_e=Ce=>{try{xe(oe.throw(Ce))}catch(Te){ce(Te)}},xe=Ce=>Ce.done?ie(Ce.value):Promise.resolve(Ce.value).then(ye,_e);xe((oe=oe.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:oe,onComplete:ie,onError:ce,onProgress:ye,onBefore:_e,onBeginInitFile:xe,children:Ce,accept:Te,className:Me,style:pt={},concurrency:Ve=4},gt)=>{let[Ae,De]=(0,te.useState)("ready");const[Ie,tt]=(0,te.useState)(0),[Ze,bt]=(0,te.useState)(""),[wt,Kt]=(0,te.useState)(null),Qt=(0,te.useRef)(null),rt=(0,te.useRef)((0,be.Z)()),st=(0,te.useRef)(!1);(0,te.useImperativeHandle)(gt,()=>({cancel:Ht,file:wt,uploadStatus:Ae}));const Ct=()=>{const Ke=document.getElementById(rt.current);Ke&&(Ke.value="")},Gt=Ke=>y(void 0,null,function*(){var Jt;if(Ae==="uploading")return;xe&&xe(Ke);const Mn=Ke.size,Hn=Math.ceil(Mn/x);st.current=!1,De("uploading"),tt(0),bt("");try{const pn=yield(0,ue.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:Ke.name,chunkCount:Hn},z)});if(st.current||(pn==null?void 0:pn.status)!==0)throw new Error;const{upload_id:kt}=pn;Qt.current=new AbortController;const Qe=[];let Ye=0;for(let et=0;et<Hn;et++){const vt=et*x,Pt=Math.min(vt+x,Mn),Xe=Ke.slice(vt,Pt),Zt=new FormData;Zt.append("chunk",Xe),Zt.append("fileName",Ke.name),Zt.append("chunkIndex",(et+1).toString()),Zt.append("uploadId",kt);for(const He in z)Object.prototype.hasOwnProperty.call(z,He)&&Zt.append(He,z[He]);Qe.push(()=>(0,ue.ZP)("/api/attachments/multipart_upload",{method:"POST",body:Zt,signal:Qt.current.signal},!0).then(He=>{console.log(He,444),Ye++;const ut=Math.round(Ye/Hn*100);tt(ut),ye&&ye(a(ne({},He),{file:Ke,percent:ut}))}))}let Je=0,ft=Ve;for(console.log(Qe,"promises");Je<Qe.length;){const et=(Jt=Qe.slice(Je,Je+ft))==null?void 0:Jt.map(vt=>vt());if(et.length>0){const vt=yield Promise.all(et);Je+=ft}}const At=yield(0,ue.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:Ke.name,chunkCount:Hn,uploadId:kt},z)});At.object?(De("success"),Ct(),ie&&ie(a(ne({},At),{file:Ke,percent:100}))):(De("error"),bt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce(Ke.name))}catch(pn){De("error"),bt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce(Ke.name)}}),Ht=(0,te.useCallback)(()=>{st.current=!0,Qt.current&&(Qt.current.abort(),oe&&oe())},[oe]),Bt=Ke=>{var Jt,Mn;const Hn=(Mn=(Jt=Ke==null?void 0:Ke.target)==null?void 0:Jt.files)==null?void 0:Mn[0];if(Kt(Hn),Ae="ready",!!Hn){if(_e){_e(Hn)||Gt(Hn),Ct();return}Gt(Hn)}};return te.createElement(te.Fragment,null,te.createElement("input",{type:"file",id:rt.current,style:{display:"none"},onChange:Bt,accept:Te}),te.createElement("label",{className:de()(pe.upload,Me),htmlFor:rt.current,style:pt},Ce))};var b=(0,te.forwardRef)(E)},63205:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return se}});var te=ee(67294),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ee(94184),ve=ee.n(be),de=ee(57953),pe=ee(15979),ae=ee(33170),he=ee(28706),le=(me,re,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(oe){y(oe)}},b=z=>{try{x(ne.throw(z))}catch(oe){y(oe)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(me,re)).next())}),se=({data:me,className:re,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),oe=(0,te.useRef)(null),ie=(0,te.useRef)(null),ce=(0,te.useRef)(null),[ye,_e]=(0,te.useState)(!1),[xe,Ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),me!=null&&me.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",me!=null&&me.src&&Te()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[me==null?void 0:me.visible]);const Te=()=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ae=yield(0,he.ZJ)(me==null?void 0:me.src);z.current.src="",z.current.src=Ae,z.current.onload=function(){gt()},_e(!1),Ce("")}),Me=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",y()},pt=Ae=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:me.title,file:Ae.dataUrl}});De!=null&&De.id&&!x?(yield(0,ae.ZP)(`/api/attachments/${me.id}/add_subitem.json`,{method:"post",body:{subitem_id:De==null?void 0:De.id,settings:JSON.stringify(Ae.state)}})).status===0&&E():De!=null&&De.id&&E(De),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",_e(!1),Ce("")}),Ve=()=>{const Ae=document.querySelector('a[href="https://markerjs.com/"]');Ae&&Ae.parentNode&&(Ae.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ie=>{const tt=document.querySelector(Ie.name);tt&&tt.setAttribute("title",Ie.title)})},gt=()=>{oe.current=new pe.hP(z.current),oe.current.targetRoot=ce.current,oe.current.addEventListener("render",pt),oe.current.addEventListener("beforeclose",Me),b&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),me!=null&&me.snapshotData&&oe.current.restoreState(me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ve()},300)};return te.createElement(te.Fragment,null,(me==null?void 0:me.visible)&&te.createElement(de.Z,{spinning:ye,tip:xe,style:{position:"absolute"}},te.createElement("div",{ref:ce,className:ve()(ue.imageDimensions,re,ne?ue.fullWidth:""),style:a},te.createElement("img",{className:ue.img,ref:z}))))}},36527:function(ot,Ge,ee){"use strict";var te=ee(67294),ue=ee(71230),be=ee(15746),ve=ee(66368),de=ee(71577),pe=ee(85725),ae=ee(71736),he=ee(84279),le=ee(67294);const fe=(0,te.forwardRef)(({callback:se,showSaveButton:me,value:re=""},ne)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=oe=>{a.current.setValue(a.current.getValue()+" "+oe.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(ue.Z,{className:ae.Z.lists,gutter:[10,10]},y.map((oe,ie)=>le.createElement(be.Z,{flex:"110px",className:ae.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:`$$${oe.value}$$`}),oe.name),le.createElement("div",{className:ae.Z.children},oe.children.map((ce,ye)=>le.createElement("div",{key:ye},le.createElement("h1",null,ce.name),le.createElement(ue.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ae.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ue.Z,{className:ae.Z.lists,gutter:[10,10]},E.map((oe,ie)=>le.createElement(be.Z,{flex:"110px",className:ae.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),le.createElement("div",{className:ae.Z.children},oe.children.map((ce,ye)=>le.createElement("div",{key:ye},ce.name&&le.createElement("h1",null,ce.name),le.createElement(ue.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ae.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],z=()=>{var oe=document.createElement("div");oe.innerHTML=a.current.getValue();var ie=oe.innerText;return se&&se(ie),ie};return(0,te.useImperativeHandle)(ne,()=>({getData:z})),le.createElement("div",{className:ae.Z.mathWrap},le.createElement(ve.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},re||""),me&&le.createElement("div",{className:ae.Z.button},le.createElement(de.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ge.Z=fe},7621:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(35973),ue={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=ee(67294),ve=({message:de,className:pe,children:ae,style:he={}})=>be.createElement("div",{className:`custom-spinner ${ue.idsRingWrapper} ${pe}`},be.createElement("div",{className:ue.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),de?be.createElement("p",{style:he},de):null,ae,be.createElement(te.Outlet,null))},60076:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(67294),ue=ee(33054),be=ee(67294),ve=({defaultX:de="40%",leftChild:pe,rightChild:ae,className:he,hideResize:le=!1})=>{const[fe,se]=(0,te.useState)(de),me=(0,te.useRef)();function re(){me.current=!0}(0,te.useEffect)(()=>{function y(b){me.current&&(ue.Z.publish("resize-move-bar",b),se(b.pageX))}function E(){me.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",E)}},[]);const ne=typeof fe=="number"&&fe!==.01?`${fe}px`:de,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${he}`},be.createElement("section",{style:{width:ne,display:fe===.01?"none":""}},pe),be.createElement("section",{className:"resize-x-bar",onMouseDown:re},be.createElement("a",{className:"btn-resize"},be.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},be.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),be.createElement("section",{style:{width:a}},ae))}},38658:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return pe}});var te=ee(67294),ue={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},be=ee(94184),ve=ee.n(be),pe=({className:ae,style:he={},leftNode:le,leftTitle:fe="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:me="\u8FD0\u884C\u7ED3\u679C"})=>te.createElement("div",{className:ve()(ue.result,ae),style:he},te.createElement("div",{className:ue.left},te.createElement("div",{className:ue.title},te.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),te.createElement("span",null,fe)),te.createElement("div",{className:ue.leftNode},le)),te.createElement("div",{className:ue.right},te.createElement("div",{className:ue.title},te.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),te.createElement("span",null,me)),te.createElement("div",{className:ue.rightNode},se)))},88508:function(ot,Ge,ee){"use strict";var te=ee(67294);const ue=ve=>String(ve).length===1?`0${ve}`:ve,be=({className:ve="",onChange:de,defaultValue:pe=0})=>{const[ae,he]=(0,te.useState)(pe);(0,te.useEffect)(()=>{const me=setTimeout(()=>{he(ae+1e3)},1e3);return de(ae+1e3),()=>{clearInterval(me)}},[ae]);const le=parseInt(ae/(60*6e4))||"00",fe=parseInt(ae%(60*6e4)/6e4)||"00",se=parseInt(ae%6e4/1e3)||"00";return te.createElement("div",{className:ve},ue(le),":",ue(fe),":",ue(se))};Ge.Z=be},6104:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return y}});var te=ee(67294),ue=ee(2453),be=ee(85418),ve=ee(24577),de=ee(67631),pe=ee.n(de),ae=ee(52262),he=ee(74855),le=ee(51959),fe={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},se=(E,b,x)=>new Promise((z,oe)=>{var ie=_e=>{try{ye(x.next(_e))}catch(xe){oe(xe)}},ce=_e=>{try{ye(x.throw(_e))}catch(xe){oe(xe)}},ye=_e=>_e.done?z(_e.value):Promise.resolve(_e.value).then(ie,ce);ye((x=x.apply(E,b)).next())});function me(E){if(isNaN(E))return{minutes:"00",seconds:"00"};const b=new Date(E*1e3).toISOString().substr(11,8);return{hour:b.substr(0,2),minutes:b.substr(3,2),seconds:b.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function re(E,b){return E-b}function ne(E){E.sort(re);let b=0;for(let x=0;x<E.length-1;x++){let z=Math.abs(E[x+1]-E[x]);z<21&&(b+=z)}return b}const a=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var y=(0,te.forwardRef)(({allow_skip:E,src:b,toLog:x,videoId:z,logWatchHistory:oe,courseId:ie=null,startTime:ce,handlePause:ye=()=>{},handlePlay:_e=()=>{},handlePlayEnded:xe=()=>{},autoPlay:Ce=!1,onPlayEnded:Te=()=>{},isShowWaterMark:Me=!0},pt)=>{var Ve;const Ae=((Ve=b==null?void 0:b.split("."))==null?void 0:Ve.pop())==="flv",De=(0,te.useRef)(),Ie=(0,te.useRef)(),tt=(0,te.useRef)(),Ze=(0,te.useRef)(),bt=(0,te.useRef)(),wt=(0,te.useRef)(),Kt=(0,te.useRef)(),Qt=(0,te.useRef)(),rt=(0,te.useRef)(),st=(0,te.useRef)(),Ct=(0,te.useRef)(),Gt=(0,te.useRef)(),Ht=(0,te.useRef)(),Bt=(0,te.useRef)(),Ke=navigator.userAgent.toLowerCase().match(a),Jt=Ke?Ke[0]:"pc",Mn=(0,te.useRef)(!1),Hn=(0,ae.eY)();let pn=0,kt=0,Qe=0,Ye=null,Je=!1,ft=20,At=1,et=!1,vt=!1,Pt=[];(0,te.useImperativeHandle)(pt,()=>({getLastUpdatedTime:()=>De.current.currentTime,getDuration:()=>De.current.duration})),ue.ZP.config({maxCount:1,getContainer:()=>tt.current});const Xe=(0,te.useCallback)(($t,on=!1)=>{let bn={point:De.current.currentTime};Ye?(bn.log_id=Ye,bn.watch_duration=ne(Pt),bn.total_duration=kt):(ie?(bn.video_id=parseInt(z,10),bn.course_id=ie):bn.video_id=z,bn.duration=pn,bn.device=Jt),on&&(bn.ed="1");function Kn(){return se(this,null,function*(){et=!0,Ye=yield oe==null?void 0:oe(bn),et=!1,$t&&$t()})}Kn()},[z,ie]);(0,te.useEffect)(()=>{De.current&&(Ze.current.style.display="none",bt.current.style.display="block"),ue.ZP.destroy();let $t=null;return ve.Z.isSupported&&Ae&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?($t=ve.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),De.current&&($t.attachMediaElement(De.current),$t.load())):De.current.setAttribute("src",b),He(),()=>{$t&&($t.unload(),$t.pause(),$t.destroy(),$t=null)}},[De,Ae,b]);function Zt(){De.current.paused?(Ze.current.style.display="none",bt.current.style.display="block"):(Ze.current.style.display="block",bt.current.style.display="none")}function He(){Ct.current.style.display="none",Ht.current.style.display="none",Gt.current.style.display="none",De.current.muted||De.current.volume===0?Ct.current.style.display="block":De.current.volume>0&&De.current.volume<=.5?Ht.current.style.display="block":Gt.current.style.display="block"}(0,te.useEffect)(()=>{const $t=document.getElementById("play"),on=document.querySelectorAll(".playback-icons use");function bn(){_e(),ce&&!Mn.current&&(De.current.currentTime=ce),Mn.current=!0,Pt.push(De.current.currentTime),Je||(Je=!0,x&&Xe())}function Kn(){return se(this,null,function*(){Zt(),Pt.push(De.current.currentTime),x&&Xe(()=>{Ye=null,Qe=0,Je=!1,et=!1,vt=!1,Pt=[],kt=0,At=1},!0),Te()})}function Dt(){wt.current.value=Math.round(De.current.currentTime),Kt.current.value=Math.round(De.current.currentTime)}function Rn(){const pr=me(Math.round(De.current.currentTime));rt.current.innerText=`${pr.hour>0?pr.hour+":":""}${pr.minutes}:${pr.seconds}`,rt.current.setAttribute("datetime",`${pr.hour>0?" "+pr.hour+" ":""}${pr.minutes}m ${pr.seconds}s`)}function Gn(){var pr,Xr,to,mo,Kr,Vo,Do;const io=Math.round((pr=De.current)==null?void 0:pr.duration);(to=(Xr=wt.current)==null?void 0:Xr.setAttribute)==null||to.call(Xr,"max",io),(Kr=(mo=Kt.current)==null?void 0:mo.setAttribute)==null||Kr.call(mo,"max",io);const Cr=me(io);Qt.current&&(Qt.current.innerText=`${Cr.hour>0?Cr.hour+":":""}${Cr.minutes}:${Cr.seconds}`,(Do=(Vo=Qt.current).setAttribute)==null||Do.call(Vo,"datetime",`${Cr.hour>0?" "+Cr.hour+" ":""}${Cr.minutes}m ${Cr.seconds}s`))}function jr(){try{const pr=Math.round(De.current.duration);wt.current.setAttribute("max",pr),Kt.current.setAttribute("max",pr);const Xr=me(pr);Qt.current.innerText=`${Xr.hour>0?Xr.hour+":":""}${Xr.minutes}:${Xr.seconds}`,Qt.current.setAttribute("datetime",`${Xr.hour>0?" "+Xr.hour+" ":""}${Xr.minutes}m ${Xr.seconds}s`),Dt(),Rn();const{width:to,height:mo,x:Kr,y:Vo}=Ie.current.getBoundingClientRect();if(Kr<0||Vo<0||!to)return;if(!vt){let Do=De.current.currentTime,io=Do-Qe;Math.abs(io)<10?(kt+=Math.abs(io),Qe=Do,et||kt-At*ft>=0&&(At++,Pt.push(Qe),x&&Xe())):(Qe=Do,x&&Xe())}}catch(pr){console.log(pr)}}function mr(){vt=!0}function ur(){De.current.playing&&Pt.push(De.current.currentTime,Qe),Qe=De.current.currentTime,vt=!1}function Tn(){pn=De.current.duration,pn<=20&&(ft=pn/3),De.current.addEventListener("play",bn)}function Or(pr){pr.preventDefault(),(0,le.vp)()?(De.current.style.width="100%",De.current.style.height="100%"):De.current.style.cssText=""}function zr(){ye()}function lo(pr){if(!E){ue.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Xr=pr.target.dataset.seek?pr.target.dataset.seek:pr.target.value;De.current.currentTime=Xr,Kt.current.value=Xr,wt.current.value=Xr}function di(pr){const Xr=Math.round(pr.offsetX/pr.target.clientWidth*parseInt(pr.target.getAttribute("max"),10));wt.current.setAttribute("data-seek",Xr);const to=me(Xr);st.current.textContent=`${to.hour>0?to.hour+":":""}${to.minutes}:${to.seconds}`;const mo=De.current.getBoundingClientRect();st.current.style.left=`${pr.pageX-mo.left}px`}function Ko(pr){switch(pr.code){case"Space":pr.preventDefault(),sn();break;case"ArrowRight":if(pr.preventDefault(),!E){ue.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime>=De.current.duration)break;De.current.currentTime=parseInt(De.current.currentTime)+5,Dt();break;case"ArrowLeft":if(pr.preventDefault(),!E){ue.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime===0)break;De.current.currentTime=parseInt(De.current.currentTime)-5,Dt();break;case"ArrowUp":pr.preventDefault(),De.current.volume<1&&(De.current.volume=(parseInt(De.current.volume*10)+1)/10);break;case"ArrowDown":pr.preventDefault(),De.current.volume>0&&(De.current.volume=(parseInt(De.current.volume*10)-1)/10);break}}return tt.current.addEventListener((0,le.gH)(),Or),De.current.addEventListener("canplay",Tn),De.current.addEventListener("ended",Kn),De.current.addEventListener("seeking",mr),De.current.addEventListener("seeked",ur),De.current.addEventListener("loadedmetadata",Gn),wt.current.addEventListener("mousemove",di),wt.current.addEventListener("input",lo),De.current.addEventListener("timeupdate",jr),De.current.addEventListener("pause",zr),De.current.addEventListener("volumechange",He),document.addEventListener("keydown",Ko),()=>{var pr,Xr,to,mo,Kr,Vo,Do,io,Cr,Ei,cn,ge;(pr=De.current)==null||pr.removeEventListener("canplay",Tn),(Xr=De.current)==null||Xr.removeEventListener("play",bn),(to=De.current)==null||to.removeEventListener("ended",Kn),(mo=De.current)==null||mo.removeEventListener("seeking",mr),(Kr=De.current)==null||Kr.removeEventListener("seeked",ur),(Vo=wt.current)==null||Vo.removeEventListener("mousemove",di),(Do=wt.current)==null||Do.removeEventListener("input",lo),(io=De.current)==null||io.removeEventListener("timeupdate",jr),(Cr=De.current)==null||Cr.removeEventListener("pause",zr),(Ei=De.current)==null||Ei.removeEventListener("loadedmetadata",Gn),(cn=De.current)==null||cn.removeEventListener("volumechange",He),document.removeEventListener("keydown",Ko),(ge=De.current)!=null&&ge.playing&&(Pt.push(Qe,De.current.currentTime),x&&Xe())}},[De,b]),(0,te.useEffect)(()=>{if(De.current.onended=()=>{xe(De)},De.current.oncontextmenu=()=>!1,(b==null?void 0:b.indexOf(".m3u8"))>-1){if(De.current.canPlayType("application/vnd.apple.mpegurl"))De.current.src=b;else if(pe().isSupported()){var $t=new(pe());$t.loadSource(b),$t.attachMedia(De.current)}}},[b]);const[ut,wn]=(0,te.useState)(1),sn=()=>{De.current.paused||De.current.ended?De.current.play():De.current.pause(),Zt()};function ht(){De.current.muted=!De.current.muted,De.current.muted?(Bt.current.setAttribute("data-volume",volume.value),Bt.current.value=0):Bt.current.value=Bt.current.dataset.volume}return te.createElement("div",{style:{position:"relative"},ref:tt},te.createElement("div",{ref:Ie,className:`${fe.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${fe.animate__loop}`},Me&&Hn?Hn.login:" "),te.createElement("div",{className:fe.container},te.createElement("div",{className:fe["video-container"],id:"video-container"},te.createElement("div",{className:fe["playback-animation"],id:"playback-animation"},te.createElement("svg",{className:fe["playback-icons"]},te.createElement("use",{className:"hidden",href:"#play-icon"}),te.createElement("use",{href:"#pause"}))),te.createElement("video",{className:fe.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:De,autoPlay:Ce}),te.createElement("div",{className:`${fe["video-controls"]} `,id:"video-controls"},te.createElement("div",{className:fe["bottom-controls"]},te.createElement("div",{className:fe["left-controls"]},te.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:sn},te.createElement("svg",{className:fe["playback-icons"]},te.createElement("use",{ref:bt,href:"#play-icon"}),te.createElement("use",{ref:Ze,style:{display:"none"},href:"#pause"}))),te.createElement("div",{className:fe.time},te.createElement("time",{id:"time-elapsed",ref:rt},"00:00"),te.createElement("span",null," / "),te.createElement("time",{id:"duration",ref:Qt},"00:00"))),te.createElement("div",{className:fe["right-controls"]},E&&te.createElement(be.Z,{placement:"top",overlayClassName:fe.rateOverlay,getPopupContainer:$t=>$t.parentNode,menu:{items:[{key:"1",label:te.createElement("span",{onClick:()=>{wn(1),De.current.playbackRate=1}},"1.0x")},{key:"2",label:te.createElement("span",{onClick:()=>{wn(1.5),De.current.playbackRate=1.5}},"1.5x")},{key:"3",label:te.createElement("span",{onClick:()=>{wn(2),De.current.playbackRate=2}},"2.0x")}]}},te.createElement("div",{className:`${fe.controlText} mr5`},"\u500D\u901F")),te.createElement(he.CopyToClipboard,{text:b,onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},te.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),te.createElement("div",{className:fe["volume-controls"]},te.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:fe["volume-button"],id:"volume-button",onClick:ht},te.createElement("i",{ref:Ct,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Ht,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Gt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),te.createElement("input",{className:fe.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Bt,style:{display:"none"},onClick:He})),te.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:fe["fullscreen-button"],onClick:()=>{(0,le.vp)()?(0,le.BU)():(0,le.Dj)(tt.current)}},te.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),te.createElement("div",{className:fe["video-progress"]},te.createElement("progress",{ref:Kt,value:"0",min:"0"}),te.createElement("input",{className:fe.seek,ref:wt,value:"0",min:"0",type:"range",step:"1"}),te.createElement("div",{className:fe["seek-tooltip"],ref:st,id:"seek-tooltip"},"00:00"))))),te.createElement("svg",{style:{display:"none"}},te.createElement("defs",null,te.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),te.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},te.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),te.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),te.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},te.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),te.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},te.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),te.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),te.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},te.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),te.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},te.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},71865:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(67294),ue=ee(33054),be=ee(99398),ve=()=>{const[de,pe]=(0,te.useState)(""),[ae,he]=(0,te.useState)(0);let[le,fe]=(0,te.useState)(),[se,me]=(0,te.useState)();const[re,ne]=(0,te.useState)(!1),a=(0,te.useRef)("");(0,te.useEffect)(()=>ue.Z.subscribe("preview-image",xe=>{pe(xe),console.log(ce.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,te.useEffect)(()=>{a.current=de},[de]);function y(_e){_e.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",fe(void 0),me(void 0),he(0),pe("")}function b(){he(ae+90)}function x(){le=ce.current.width*1.1,se=ce.current.height*1.1,me(se),fe(le)}function z(){le=ce.current.width/1.1,se=ce.current.height/1.1,me(se),fe(le)}const oe=(0,te.useRef)(),ie=(0,te.useRef)(),ce=(0,te.useRef)(),ye=_e=>{(_e.nativeEvent.target===oe.current||_e.nativeEvent.target===ie.current)&&E()};return te.createElement(te.Fragment,null,de?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:ie},te.createElement(be.Z,{className:"image-preview",src:de,style:{display:"none"},preview:{visible:!0,src:de,movable:!1,onVisibleChange:_e=>{pe("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(ot,Ge,ee){"use strict";ee.d(Ge,{h:function(){return oe}});var te=ee(67294),ue=ee(11713),be=ee(22150),ve=ee(71577),de=ee(4631),pe=ee.n(de),ae=ee(71749),he=ee(30483),le=Object.defineProperty,fe=Object.defineProperties,se=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ie,ce,ye)=>ce in ie?le(ie,ce,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ie[ce]=ye,y=(ie,ce)=>{for(var ye in ce||(ce={}))re.call(ce,ye)&&a(ie,ye,ce[ye]);if(me)for(var ye of me(ce))ne.call(ce,ye)&&a(ie,ye,ce[ye]);return ie},E=(ie,ce)=>fe(ie,se(ce));const b=ue.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={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"]};Ge.Z=({callback:ie,onCancel:ce})=>{const[ye,_e]=(0,te.useState)("python");function xe(Te){_e(z[Te][1])}function Ce(Te){ie(Te)}return te.createElement(be.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ce,style:{width:500}}),te.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(ue.default,{getPopupContainer:Te=>Te.parentNode,onChange:xe},Object.keys(z).map(Te=>te.createElement(b,{key:Te,value:Te},z[Te][0])))),te.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(oe,{mode:ye})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(ve.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function oe({value:ie,onChange:ce,mode:ye,options:_e={}}){const xe=(0,te.useRef)(),[Ce,Te]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ce){let Me=function(pt){const Ve=pt.getValue();ce&&ce(Ve)};return Ce.on("change",Me),()=>{Ce.off("change",Me)}}},[Ce,ce]),(0,te.useEffect)(()=>{Ce&&Ce.setOption("mode",ye)},[Ce,ye]),(0,te.useEffect)(()=>{Ce&&(ie!==Ce.getValue()||ie==="")&&setTimeout(()=>{Ce.setValue(ie||"")},300)},[Ce,ie]),(0,te.useEffect)(()=>{if(xe.current&&!Ce){const Me=pe().fromTextArea(xe.current,y({mode:ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_e));Te(Me)}},[xe.current,Ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:xe}))}},35567:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ge}});var te=ee(67294),ue=ee(4631),be=ee.n(ue),ve=ee(91033),de=ee(71749),pe=ee(57341),ae=ee(82801),he=ee(88386),le=ee(49047),fe=ee(80785),se=ee(85725),me=({value:Se="",className:Pe,showTextOnly:Le,showLines:Ne,style:qe={}})=>{const it=(0,te.useMemo)(()=>"",[Se]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:it}}))},re=ee(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Se,Pe,Le)=>Pe in Se?ne(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[Pe]=Le,oe=(Se,Pe)=>{for(var Le in Pe||(Pe={}))b.call(Pe,Le)&&z(Se,Le,Pe[Le]);if(E)for(var Le of E(Pe))x.call(Pe,Le)&&z(Se,Le,Pe[Le]);return Se},ie=(Se,Pe)=>a(Se,y(Pe));let ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ye({onActionCallback:Se,title:Pe,icon:Le,actionName:Ne,className:qe="",children:it}){function un(){Se(Ne)}return re.createElement("a",{title:Pe,className:qe,onClick:un},re.createElement("i",{className:`${Le}`}),it)}var _e=({watch:Se,showNullButton:Pe,showNullProgramButton:Le,onActionCallback:Ne,fullScreen:qe,insertTemp:it,hidetoolBar:un,extraUse:Vt})=>{const En=[...ce,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!un&&En.map((Vn,Pr)=>re.createElement("li",{key:Pr},Vn.actionName?re.createElement(ye,ie(oe({},Vn),{onActionCallback:Ne})):re.createElement("span",{className:"v-line"}))),Pe?re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Le?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,it&&re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${it}`,onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&re.createElement("li",null,Vt),re.createElement("li",{className:"btn-full-screen"},re.createElement(ye,{icon:`${qe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ne})))},xe=ee(76621),Ce=ee(22150),Te=ee(69677),Me=ee(71577),pt=Object.defineProperty,Ve=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,tt=(Se,Pe,Le)=>Pe in Se?pt(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[Pe]=Le,Ze=(Se,Pe)=>{for(var Le in Pe||(Pe={}))De.call(Pe,Le)&&tt(Se,Le,Pe[Le]);if(Ae)for(var Le of Ae(Pe))Ie.call(Pe,Le)&&tt(Se,Le,Pe[Le]);return Se},bt=(Se,Pe)=>Ve(Se,gt(Pe));const wt={labelCol:{span:4},wrapperCol:{span:20}};var Kt=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return te.createElement(Ce.default,bt(Ze({},wt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),te.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Te.default,null)),te.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Te.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Qt=ee(57444),rt=ee(70859),st=ee(14446),Ct=ee(71230),Gt=ee(63205),Ht=ee(67294),Bt=({callback:Se,onCancel:Pe})=>{const Le=document.createElement("canvas"),Ne=Le.getContext("2d");Le.width=1e3,Le.height=800,Ne.fillStyle="#ffffff",Ne.fillRect(0,0,Le.width,Le.height);const qe=Le.toDataURL("image/png");return Ht.createElement(st.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ht.createElement(Ct.Z,{style:{height:"100vh"}},Ht.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qe,visible:!0,title:String(Date.now())},onOk:it=>{Se({src:it.url})},onClose:Pe})))},Ke=ee(23495);function Jt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Jt,go.CommandHandler),Jt.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},Jt.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var Pe=1/0;Se.selection.each(function(Le){Le instanceof go.Link||(Pe=Math.min(Le.position.x,Pe))}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Pe,Le.position.y))}),Se.commitTransaction("aligning left")},Jt.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var Pe=-1/0;Se.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.x+Le.actualBounds.width;Pe=Math.max(Ne,Pe)}}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Pe-Le.actualBounds.width,Le.position.y))}),Se.commitTransaction("aligning right")},Jt.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var Pe=1/0;Se.selection.each(function(Le){Le instanceof go.Link||(Pe=Math.min(Le.position.y,Pe))}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.position.x,Pe))}),Se.commitTransaction("alignTop")},Jt.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var Pe=-1/0;Se.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.y+Le.actualBounds.height;Pe=Math.max(Ne,Pe)}}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.actualBounds.x,Pe-Le.actualBounds.height))}),Se.commitTransaction("aligning bottom")},Jt.prototype.alignCenterX=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center X");var Le=Pe.actualBounds.x+Pe.actualBounds.width/2;Se.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Le-Ne.actualBounds.width/2,Ne.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},Jt.prototype.alignCenterY=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center Y");var Le=Pe.actualBounds.y+Pe.actualBounds.height/2;Se.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Ne.actualBounds.x,Le-Ne.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},Jt.prototype.alignColumn=function(Se){var Pe=this.diagram;Pe.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var Le=new Array;Pe.selection.each(function(Vt){Vt instanceof go.Link||Le.push(Vt)});for(var Ne=0;Ne<Le.length-1;Ne++){var qe=Le[Ne],it=qe.actualBounds.y+qe.actualBounds.height+Se,un=Le[Ne+1];un.move(new go.Point(qe.actualBounds.x,it))}Pe.commitTransaction("align Column")},Jt.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var Pe=this.diagram;Pe.startTransaction("align Row");var Le=new Array;Pe.selection.each(function(Vt){Vt instanceof go.Link||Le.push(Vt)});for(var Ne=0;Ne<Le.length-1;Ne++){var qe=Le[Ne],it=qe.actualBounds.x+qe.actualBounds.width+Se,un=Le[Ne+1];un.move(new go.Point(it,qe.actualBounds.y))}Pe.commitTransaction("align Row")},Jt.prototype.canRotate=function(Se){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Jt.prototype.rotate=function(Se){Se===void 0&&(Se=90);var Pe=this.diagram;Pe.startTransaction("rotate "+Se.toString());var Pe=this.diagram;Pe.selection.each(function(Le){Le instanceof go.Link||Le instanceof go.Group||(Le.angle+=Se)}),Pe.commitTransaction("rotate "+Se.toString())},Jt.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var Pe=new go.Map;Se.selection.each(function(Le){Pe.set(Le.layer,0)}),Pe.iteratorKeys.each(function(Le){var Ne=0;Le.parts.each(function(qe){if(!qe.isSelected){var it=qe.zOrder;isNaN(it)?qe.zOrder=0:Ne=Math.max(Ne,it)}}),Pe.set(Le,Ne)}),Se.selection.each(function(Le){Jt._assignZOrder(Le,Pe.get(Le.layer)+1)}),Se.commitTransaction("pullToFront")},Jt.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var Pe=new go.Map;Se.selection.each(function(Le){Pe.set(Le.layer,0)}),Pe.iteratorKeys.each(function(Le){var Ne=0;Le.parts.each(function(qe){if(!qe.isSelected){var it=qe.zOrder;isNaN(it)?qe.zOrder=0:Ne=Math.min(Ne,it)}}),Pe.set(Le,Ne)}),Se.selection.each(function(Le){Jt._assignZOrder(Le,Pe.get(Le.layer)-1-Jt._findGroupDepth(Le))}),Se.commitTransaction("pushToBack")},Jt._assignZOrder=function(Se,Pe,Le){Le===void 0&&(Le=Se),Se.layer===Le.layer&&(Se.zOrder=Pe),Se instanceof go.Group&&Se.memberParts.each(function(Ne){Jt._assignZOrder(Ne,Pe+1,Le)})},Jt._findGroupDepth=function(Se){if(Se instanceof go.Group){var Pe=0;return Se.memberParts.each(function(Le){Pe=Math.max(Pe,Jt._findGroupDepth(Le))}),Pe+1}else return 0},Jt.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var Pe=Se.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var Le=this.arrowKeyBehavior;if(Le==="none")return;if(Le==="select"){this._arrowKeySelect();return}else if(Le==="move"){this._arrowKeyMove();return}else if(Le==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Jt.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(Pe){Se.push(Pe)}),this.diagram.parts.each(function(Pe){Se.push(Pe)}),Se},Jt.prototype._arrowKeyMove=function(){var Se=this.diagram,Pe=Se.lastInput,Le=0,Ne=0;if(Pe.control||Pe.meta)Le=1,Ne=1;else if(Se.grid!==null){var qe=Se.grid.gridCellSize;Ne=qe.width,Le=qe.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(it){Pe.key==="Up"?it.move(new go.Point(it.actualBounds.x,it.actualBounds.y-Le)):Pe.key==="Down"?it.move(new go.Point(it.actualBounds.x,it.actualBounds.y+Le)):Pe.key==="Left"?it.move(new go.Point(it.actualBounds.x-Ne,it.actualBounds.y)):Pe.key==="Right"&&it.move(new go.Point(it.actualBounds.x+Ne,it.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},Jt.prototype._arrowKeySelect=function(){var Se=this.diagram,Pe=Se.lastInput,Le=null;Pe.key==="Up"?Le=this._findNearestPartTowards(270):Pe.key==="Down"?Le=this._findNearestPartTowards(90):Pe.key==="Left"?Le=this._findNearestPartTowards(180):Pe.key==="Right"&&(Le=this._findNearestPartTowards(0)),Le!==null&&(Pe.shift?Le.isSelected=!0:Pe.control||Pe.meta?Le.isSelected=!Le.isSelected:Se.select(Le))},Jt.prototype._findNearestPartTowards=function(Se){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var Le=Pe.actualBounds.center,Ne=this._getAllParts(),qe=1/0,it=Pe,un=0;un<Ne.length;un++){var Vt=Ne[un];if(Vt!==Pe&&Vt.canSelect()){var En=Vt.actualBounds.center,Vn=Le.directionPoint(En),Pr=this._angleCloseness(Vn,Se);if(Pr<=45){var Ot=Le.distanceSquaredPoint(En);Ot*=1+Math.sin(Pr*Math.PI/180),Ot<qe&&(qe=Ot,it=Vt)}}}return it},Jt.prototype._angleCloseness=function(Se,Pe){return Math.min(Math.abs(Pe-Se),Math.min(Math.abs(Pe+360-Se),Math.abs(Pe-360-Se)))},Jt.prototype._arrowKeyTree=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe instanceof go.Node){var Le=Se.lastInput;if(Le.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)Se.commandHandler.canExpandTree(Pe)&&Se.commandHandler.expandTree(Pe);else{var Ne=this._sortTreeChildrenByY(Pe).first();Ne!==null&&Se.select(Ne)}}else if(Le.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)Se.commandHandler.canCollapseTree(Pe)&&Se.commandHandler.collapseTree(Pe);else{var qe=Pe.findTreeParentNode();qe!==null&&Se.select(qe)}else if(Le.key==="Up"){var qe=Pe.findTreeParentNode();if(qe!==null){var it=this._sortTreeChildrenByY(qe),un=it.indexOf(Pe);if(un>0){for(var Vt=it.elt(un-1);Vt!==null&&Vt.isTreeExpanded&&!Vt.isTreeLeaf;){var En=this._sortTreeChildrenByY(Vt);Vt=En.last()}Vt!==null&&Se.select(Vt)}else Se.select(qe)}}else if(Le.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Ne=this._sortTreeChildrenByY(Pe).first();Ne!==null&&Se.select(Ne)}else for(;Pe!==null;){var qe=Pe.findTreeParentNode();if(qe===null)break;var it=this._sortTreeChildrenByY(qe),un=it.indexOf(Pe);if(un<it.length-1){Se.select(it.elt(un+1));break}else Pe=qe}var Vn=Se.selection.first();Vn!==null&&Se.scrollToRect(Vn.actualBounds)}},Jt.prototype._sortTreeChildrenByY=function(Se){var Pe=new go.List().addAll(Se.findTreeChildrenNodes());return Pe.sort(function(Le,Ne){var qe=Le.location,it=Ne.location;return qe.y<it.y?-1:qe.y>it.y?1:qe.x<it.x?-1:qe.x>it.x?1:0}),Pe},Jt.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},Jt.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(Jt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(Jt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var Mn=Jt,Hn=ee(18023),pn=ee(15746),kt=ee(33170),Qe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ye=ee(67294),Je=(Se,Pe,Le)=>new Promise((Ne,qe)=>{var it=En=>{try{Vt(Le.next(En))}catch(Vn){qe(Vn)}},un=En=>{try{Vt(Le.throw(En))}catch(Vn){qe(Vn)}},Vt=En=>En.done?Ne(En.value):Promise.resolve(En.value).then(it,un);Vt((Le=Le.apply(Se,Pe)).next())});function ft({onCancel:Se,callback:Pe}){let Le=(0,te.useRef)(),Ne=(0,te.useRef)(),qe=(0,te.useRef)(),it=(0,te.useRef)(!1);const un=(0,te.useRef)(!1),[Vt,En]=(0,te.useState)(0);function Vn(){const Ot=Ke.bx.make,qn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Le.current=new Ke.S0(Ne.current,{padding:20,grid:Ot(Ke.s_,"Grid",Ot(Ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(Ke.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Cn=>{var nr=Cn.diagram.commandHandler.addTopLevelParts(Cn.diagram.selection,!0);nr||Cn.diagram.currentTool.doCancel()},commandHandler:Ot(Mn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Cn=>{var nr=Cn.subject;nr.location=nr.location.copy().snapToGridPoint(Cn.diagram.grid.gridOrigin,Cn.diagram.grid.gridCellSize),setTimeout(()=>{Cn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Cn=>{var nr=Cn.subject;setTimeout(()=>{Cn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Cn=>{var nr=Cn.parameter.part;nr.invalidateConnectedLinks();var wr=Cn.subject;Cn.diagram.toolManager.linkingTool.isForwards?wr.toNode.invalidateConnectedLinks():wr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=Ot(Ke.NB,"Auto",{locationSpot:Ke.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ke.$u(120,60),minSize:new Ke.$u(40,40),resizable:!0,resizeCellSize:new Ke.$u(10,10),rotatable:!0},new Ke.KX("location","loc",Ke.E9.parse).makeTwoWay(Ke.E9.stringify),new Ke.KX("desiredSize","size",Ke.$u.parse).makeTwoWay(Ke.$u.stringify),Ot(Ke.bn,{name:"SHAPE",fill:qn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ke.z6.AllSides,toSpot:Ke.z6.AllSides},new Ke.KX("figure"),new Ke.KX("fill"),new Ke.KX("stroke","borderColor"),new Ke.KX("strokeWidth","thickness"),new Ke.KX("strokeDashArray","dash")),Ot(Ke.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ot(Ke.al,{margin:1,textAlign:"center",overflow:Ke.al.OverflowEllipsis,editable:!0},new Ke.KX("text").makeTwoWay(),new Ke.KX("stroke","color"))),Le.current.nodeTemplate.toolTip=Ot("ToolTip",Ot(Ke.s_,"Vertical",{maxSize:new Ke.$u(200,NaN)},Ot(Ke.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ke.KX("text")),Ot(Ke.al,{font:"10pt sans-serif",textAlign:"center"},new Ke.KX("text","details"))));function er(Cn,nr){var wr=(rr,ei)=>{rr.handled=!0,rr.diagram.model.commit(po=>{var ri=ei.part.adornedPart,xi=new Ke.E9().setRectSpot(ri.actualBounds,Cn);xi.subtract(ri.location),xi.scale(2,2),xi.x+=Math.sign(xi.x)*130,xi.y+=Math.sign(xi.y)*130,xi.add(ri.location),xi.snapToGridPoint(rr.diagram.grid.gridOrigin,rr.diagram.grid.gridCellSize);var Xi=po.copyNodeData(ri.data);po.setGroupKeyForNodeData(Xi,po.getGroupKeyForNodeData(ri.data)),po.addNodeData(Xi);var dt={from:ri.key,to:po.getKeyForNodeData(Xi)};po.addLinkData(dt);var ct=rr.diagram.findNodeForData(Xi);ct.location=xi,rr.diagram.select(ct),setTimeout(()=>{rr.diagram.commandHandler.editTextBlock()},20)})};return Ot(Ke.bn,{figure:nr,alignment:Cn,alignmentFocus:Cn.opposite(),width:Cn.equals(Ke.z6.Top)||Cn.equals(Ke.z6.Bottom)?25:18,height:Cn.equals(Ke.z6.Top)||Cn.equals(Ke.z6.Bottom)?18:25,fill:"orange",stroke:qn.white,strokeWidth:4,mouseEnter:(rr,ei)=>ei.fill="dodgerblue",mouseLeave:(rr,ei)=>ei.fill="orange",isActionable:!0,click:wr,contextClick:wr})}function Pn(Cn){return Ot(Ke.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(nr,wr)=>wr.fill="dodgerblue",mouseLeave:(nr,wr)=>wr.fill="orange",click:(nr,wr)=>{nr.diagram.commandHandler.showContextMenu(wr.part.adornedPart)}},Cn||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=Ot(Ke.uz,"Spot",Ot(Ke.Vm,{padding:10}),er(Ke.z6.Top,"TriangleUp"),er(Ke.z6.Left,"TriangleLeft"),er(Ke.z6.Right,"TriangleRight"),er(Ke.z6.Bottom,"TriangleDown"),Pn({alignment:new Ke.z6(.75,0)}));function An(Cn,nr){return(wr,rr)=>{wr.handled=!0,wr.diagram.model.commit(ei=>{ei.set(rr.part.adornedPart.data,Cn,nr)})}}function Yn(Cn,nr){return nr||(nr="color"),Ot(Ke.bn,{width:16,height:16,stroke:"lightgray",fill:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.stroke="dodgerblue",mouseLeave:(wr,rr)=>rr.stroke="lightgray",click:An(nr,Cn),contextClick:An(nr,Cn)})}function yr(){return[Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.white,"fill"),Yn(qn.beige,"fill"),Yn(qn.extralightblue,"fill"),Yn(qn.extralightred,"fill"))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.lightgray,"fill"),Yn(qn.lightgreen,"fill"),Yn(qn.lightblue,"fill"),Yn(qn.lightred,"fill")))]}function lr(){return[Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.black),Yn(qn.green),Yn(qn.blue),Yn(qn.red))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.white),Yn(qn.magenta),Yn(qn.purple),Yn(qn.orange)))]}function ci(Cn,nr){return nr||(nr="thickness"),Ot(Ke.bn,"LineH",{width:16,height:16,strokeWidth:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:An(nr,Cn),contextClick:An(nr,Cn)})}function Po(Cn,nr){return nr||(nr="dash"),Ot(Ke.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:An(nr,Cn),contextClick:An(nr,Cn)})}function fr(){return[Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",ci(1),ci(2),ci(3),ci(4))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Po(null),Po([2,4]),Po([4,4])))]}function Vr(Cn,nr){return nr||(nr="figure"),Ot(Ke.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.fill="dodgerblue",mouseLeave:(wr,rr)=>rr.fill="lightgray",click:An(nr,Cn),contextClick:An(nr,Cn)})}Le.current.nodeTemplate.contextMenu=Ot("ContextMenu",Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Vr("Rectangle"),Vr("RoundedRectangle"),Vr("Ellipse"),Vr("Diamond"))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Vr("Parallelogram2"),Vr("ManualOperation"),Vr("Procedure"),Vr("Cylinder1"))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Vr("Terminator"),Vr("CreateRequest"),Vr("Document"),Vr("TriangleDown"))),yr(),lr(),fr()),Le.current.groupTemplate=Ot(Ke.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ke.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Cn,nr)=>{var wr=nr.addMembers(nr.diagram.selection,!0);wr||nr.diagram.currentTool.doCancel()},avoidable:!1},new Ke.KX("location","loc",Ke.E9.parse).makeTwoWay(Ke.E9.stringify),Ot(Ke.s_,"Auto",{name:"BODY"},Ot(Ke.bn,{parameter1:10,fill:qn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ke.z6.AllSides,toSpot:Ke.z6.AllSides},new Ke.KX("fill"),new Ke.KX("stroke","color"),new Ke.KX("strokeWidth","thickness"),new Ke.KX("strokeDashArray","dash")),Ot(Ke.Vm,{background:"transparent",margin:20})),Ot(Ke.al,{alignment:Ke.z6.Top,alignmentFocus:Ke.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ke.KX("text"),new Ke.KX("stroke","color"))),Le.current.groupTemplate.selectionAdornmentTemplate=Ot(Ke.uz,"Spot",Ot(Ke.s_,"Auto",Ot(Ke.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ot(Ke.Vm,{margin:1.5})),Pn({alignment:Ke.z6.TopRight,alignmentFocus:Ke.z6.BottomRight})),Le.current.groupTemplate.contextMenu=Ot("ContextMenu",yr(),lr(),fr()),Le.current.linkTemplate=Ot(Ke.rU,{layerName:"Foreground",routing:Ke.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ke.KX("fromSpot","fromSpot",Ke.z6.parse),new Ke.KX("toSpot","toSpot",Ke.z6.parse),new Ke.KX("fromShortLength","dir",Cn=>Cn>=1?10:0),new Ke.KX("toShortLength","dir",Cn=>Cn>=1?10:0),new Ke.KX("points").makeTwoWay(),Ot(Ke.bn,{strokeWidth:2},new Ke.KX("stroke","color"),new Ke.KX("strokeWidth","thickness"),new Ke.KX("strokeDashArray","dash")),Ot(Ke.bn,{segmentIndex:0,segmentOffset:new Ke.E9(15,0),segmentOrientation:Ke.rU.OrientAlong,alignmentFocus:Ke.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ke.KX("fill","color"),new Ke.KX("visible","dir",Cn=>Cn===1)),Ot(Ke.bn,{segmentIndex:-1,segmentOffset:new Ke.E9(-10,6),segmentOrientation:Ke.rU.OrientPlus90,alignmentFocus:Ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ke.KX("fill","color"),new Ke.KX("visible","dir",Cn=>Cn>=1),new Ke.KX("width","thickness",Cn=>7+3*Cn),new Ke.KX("height","thickness",Cn=>7+3*Cn),new Ke.KX("segmentOffset","thickness",Cn=>new Ke.E9(-15,4+1.5*Cn))),Ot(Ke.bn,{segmentIndex:0,segmentOffset:new Ke.E9(15,-6),segmentOrientation:Ke.rU.OrientMinus90,alignmentFocus:Ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ke.KX("fill","color"),new Ke.KX("visible","dir",Cn=>Cn===2),new Ke.KX("width","thickness",Cn=>7+3*Cn),new Ke.KX("height","thickness",Cn=>7+3*Cn),new Ke.KX("segmentOffset","thickness",Cn=>new Ke.E9(-15,4+1.5*Cn))),Ot(Ke.al,{alignmentFocus:new Ke.z6(0,1,-4,0),editable:!0},new Ke.KX("text").makeTwoWay(),new Ke.KX("stroke","color"))),Le.current.linkTemplate.selectionAdornmentTemplate=Ot(Ke.uz,Ot(Ke.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Yo(2)},new Ke.KX("pathPattern","thickness",Yo)),Pn({alignmentFocus:new Ke.z6(0,0,-6,-4)}));function Yo(Cn){return Ot(Ke.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Cn+4).toString()+" H3"})}function Io(Cn){var nr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Cn===0?nr="M0 0 M16 16 M0 8 L16 8":Cn===2&&(nr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ot(Ke.bn,{geometryString:nr,margin:2,background:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:An("dir",Cn),contextClick:An("dir",Cn)})}function ni(Cn){var nr=(wr,rr)=>{wr.handled=!0,wr.diagram.model.commit(ei=>{var po=rr.part.adornedPart;ei.set(po.data,Cn?"toSpot":"fromSpot",Ke.z6.stringify(Ke.z6.AllSides)),(Cn?po.toNode:po.fromNode).invalidateConnectedLinks()})};return Ot(Ke.bn,{width:12,height:12,fill:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:nr,contextClick:nr})}function gi(Cn,nr){var wr=0,rr=Ke.z6.RightSide;Cn.equals(Ke.z6.Top)?(wr=270,rr=Ke.z6.TopSide):Cn.equals(Ke.z6.Left)?(wr=180,rr=Ke.z6.LeftSide):Cn.equals(Ke.z6.Bottom)&&(wr=90,rr=Ke.z6.BottomSide),nr||(wr-=180);var ei=(po,ri)=>{po.handled=!0,po.diagram.model.commit(xi=>{var Xi=ri.part.adornedPart;xi.set(Xi.data,nr?"toSpot":"fromSpot",Ke.z6.stringify(rr)),(nr?Xi.toNode:Xi.fromNode).invalidateConnectedLinks()})};return Ot(Ke.bn,{alignment:Cn,alignmentFocus:Cn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:wr,background:"transparent",mouseEnter:(po,ri)=>ri.background="dodgerblue",mouseLeave:(po,ri)=>ri.background="transparent",click:ei,contextClick:ei})}Le.current.linkTemplate.contextMenu=Ot("ContextMenu",lr(),fr(),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Io(0),Io(1),Io(2))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Ot(Ke.s_,"Spot",ni(!1),gi(Ke.z6.Top,!1),gi(Ke.z6.Left,!1),gi(Ke.z6.Right,!1),gi(Ke.z6.Bottom,!1)),Ot(Ke.s_,"Spot",{margin:new Ke.Zt(0,0,0,2)},ni(!0),gi(Ke.z6.Top,!0),gi(Ke.z6.Left,!0),gi(Ke.z6.Right,!0),gi(Ke.z6.Bottom,!0)))));const Vi=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var fn=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function xo(Cn){return console.log("shapeName:",Cn),fn.indexOf(Cn)>=0}var Yi=new Ke.YI(qe.current,{maxSelectionCount:1,linkTemplate:Ot(Ke.rU,{locationSpot:Ke.z6.Center,selectionAdornmentTemplate:Ot(Ke.uz,"Link",{locationSpot:Ke.z6.Center},Ot(Ke.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ot(Ke.bn,{toArrow:"Standard",stroke:null}))},{routing:Ke.rU.AvoidsNodes,curve:Ke.rU.JumpOver,corner:5,toShortLength:4},new Ke.KX("points"),Ot(Ke.bn,{isPanelMain:!0,strokeWidth:2}),Ot(Ke.bn,{toArrow:"Standard",stroke:null})),model:new Ke.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ke.bn.getFigureGenerators().toArray().map(Cn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Cn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Le.current.addDiagramListener("TextEdited",function(Cn){var nr;const wr=Cn.subject.part;var rr=(nr=document.activeElement)==null?void 0:nr.value;typeof rr=="string"&&rr.trim()===""&&Le.current.model.commit(function(ei){ei.set(wr.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Yi.nodeTemplate=Ot(Ke.NB,"Auto",{locationSpot:Ke.z6.Center},new Ke.KX("location","location",Ke.E9.parse).makeTwoWay(Ke.E9.stringify),Ot(Ke.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ke.KX("stroke").makeTwoWay(),new Ke.KX("fill").makeTwoWay(),new Ke.KX("figure")),Ot(Ke.al,{margin:new Ke.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ke.$u(16,16),maxSize:new Ke.$u(10,NaN),textAlign:"center",editable:!0},new Ke.KX("key").makeTwoWay())),setTimeout(()=>{Le.current.grid=Ot(Ke.s_,"Grid",Ot(Ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(Ke.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Le.current.grid.visible=!0,Le.current.grid.gridCellStroke="darkgray",Le.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Le.current,Le.current}const Pr=()=>Je(this,null,function*(){var Ot=Le.current.makeImage();const qn=yield(0,kt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ot.src}});Pe({src:qn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{Vn()},500),En(Vt+1),()=>{Le.current=null}),[]),Ye.createElement("div",{ref:un,className:it.current?`${Qe.maxH60} body-overflow-initial`:"body-overflow-initial"},Ye.createElement(st.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Vt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ye.createElement(Ct.Z,null,Ye.createElement(pn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ye.createElement(pn.Z,{onClick:()=>{var Ot,qn,er=Le.current.selection.first();if(it.current=!it.current,document.activeElement&&er){let Pn=(qn=(Ot=document.activeElement)==null?void 0:Ot.value)==null?void 0:qn.trim();typeof Pn=="string"&&Le.current.model.commit(function(An){An.set(er.data,"text",Pn||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}En(Vt+1)}},Ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},Ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Qe.flowChartWrp},Ye.createElement("div",{style:{display:"flex",height:"100%"}},Ye.createElement("div",{style:{width:"300px",height:"100%"}},Ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:Qe.myPaletteDiv,ref:qe})),Ye.createElement("div",{style:{flex:1,position:"relative"}},Ye.createElement("div",{ref:Ne,style:{height:"80vh"}}))),Ye.createElement("div",{className:"tr"},Ye.createElement(Me.ZP,{size:"large",onClick:Pr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var At=ft,et=ee(78045),vt=ee(31795);const Pt=et.ZP.Group,Xe={margin:"0 8px"};var Zt=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return te.createElement(Ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Xe},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Xe},"\u884C\u6570"),te.createElement(Ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(vt.Z,null)),te.createElement("span",{style:Xe},"\u5217\u6570"),te.createElement(Ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(vt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Xe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(Ce.default.Item,{name:"align"},te.createElement(Pt,null,te.createElement(et.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(et.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(et.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(et.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},He=ee(47897),ut=ee(61016),wn=ee.n(ut),ht=(0,te.forwardRef)(({use3d:Se,width:Pe,height:Le,callback:Ne,showSaveButton:qe},it)=>{const un=(0,te.useRef)(),Vt=(0,te.useRef)(),[En,Vn]=(0,te.useState)(!1),Pr=(0,te.useRef)({id:un,appName:"graphing",width:Pe||1e3,height:Le||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Vt.current=new(wn())(Pr.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const Ot=()=>{var qn=window.ggbApplet.getPNGBase64(1,!0,72);return Ne&&Ne(qn),qn};return(0,te.useEffect)(()=>{Pr.current.appName=En?"3D":"graphing",Vt.current.inject("applet_container")},[En]),(0,te.useEffect)(()=>{Vn(Se)},[Se]),(0,te.useImperativeHandle)(it,()=>({getImgData:Ot})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:un}),te.createElement(Ct.Z,{align:"middle"},te.createElement(pn.Z,{flex:1},te.createElement(He.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:En,onChange:qn=>Vn(qn)})),te.createElement(pn.Z,null,te.createElement(Me.ZP,{size:"large",onClick:Ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),$t=ee(36527),on=ee(25934),bn=ee(2453);const Kn="link",Dt="upload-image",Rn="add-flowchart",Gn="draw-image",jr="add-flowchart",mr="code-block",ur="add-table",Tn="------------",Or={default:Tn,left:`:${Tn}`,center:`:${Tn}:`,right:`${Tn}:`};var zr=ee(99914),lo=(Se,Pe,Le)=>new Promise((Ne,qe)=>{var it=En=>{try{Vt(Le.next(En))}catch(Vn){qe(Vn)}},un=En=>{try{Vt(Le.throw(En))}catch(Vn){qe(Vn)}},Vt=En=>En.done?Ne(En.value):Promise.resolve(En.value).then(it,un);Vt((Le=Le.apply(Se,Pe)).next())});function di(){}let Ko=0;const pr=1e4,Xr="\u2581",to="@\u2581\u2581@",mo="@\u2581@",Kr=`
**\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`,Vo=["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"];function Do(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const Cr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ei={[Cr+"-B"]:"bold",[Cr+"-I"]:"italic"},cn={[Kn]:"\u6DFB\u52A0\u94FE\u63A5",[mr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Dt]:"\u6DFB\u52A0\u56FE\u7247",[Gn]:"\u6DFB\u52A0\u753B\u56FE",[Rn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ur]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ge=({defaultValue:Se="",onChange:Pe,width:Le="100%",height:Ne=400,miniToolbar:qe=!1,isFocus:it=!1,watch:un,insertTemp:Vt,mode:En="markdown",id:Vn="markdown-editor-id",showResizeBar:Pr=!1,noStorage:Ot=!1,showNullButton:qn=!1,showNullProgramButton:er=!1,hidetoolBar:Pn=!1,fullScreen:An=!1,onBlur:Yn,onCMBeforeChange:yr,onFullScreen:lr,className:ci="",disablePaste:Po=!1,disabled:fr=!1,disabledFill:Vr=!1,placeholder:Yo="",values:Io="",extraUse:ni,isShowTool:gi=!0,disableImageUpload:Vi=!1})=>{const[fn,xo]=(0,te.useState)(null),[Yi,Cn]=(0,te.useState)(Se),[nr,wr]=(0,te.useState)(un),[rr,ei]=(0,te.useState)(An),[po,ri]=(0,te.useState)(""),[xi,Xi]=(0,te.useState)(0),[dt,ct]=(0,te.useState)(Ne),[It,Ut]=(0,te.useState)(!1),yn=(0,te.useRef)((0,on.Z)()),gr=(0,te.useRef)(!1),_r=(0,te.useRef)(),[Fr,Qr]=(0,te.useState)(0),[Yr,Bo]=(0,te.useState)(0),No=(0,te.useRef)(),ti=(0,te.useRef)(),yt=(0,te.useRef)(),_t=(0,te.useRef)(),jt=()=>lo(void 0,null,function*(){var nn;const Wt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:yn.current}});(nn=Wt==null?void 0:Wt.attachments)!=null&&nn.length&&(console.log("cm:",fn,No),Wt.attachments.map(qt=>{qt.content_type.indexOf("image")>-1?fn.replaceSelection(`![,](/api/attachments/${qt.id}?type=${qt.content_type})`):qt.content_type.indexOf("video")>-1?fn.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):qt.content_type.indexOf("pdf")>-1?fn.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${qt.id}?type=${qt.content_type}&disposition=inline" target="_blank">${qt.name}</a>`):fn.replaceSelection(`[${qt.name}](${ENV.API_SERVER}/api/attachments/${qt.id}?type=${qt.content_type})`)}))});(0,te.useEffect)(()=>{const nn=window.scrollY||window.pageYOffset;Cn(Io),fn==null||fn.setValue(Io),window.scrollTo(0,nn)},[Io]),(0,te.useEffect)(()=>{lr==null||lr(rr)},[rr]),(0,te.useEffect)(()=>{if(No.current){let nn=function(qt,hn){var Qn,Ue;if(Po){hn.preventDefault();return}const Fe=hn.clipboardData;if(Fe){const nt=Fe.types.toString(),St=Fe.items;if(nt==="Files"||Fe.types.indexOf("Files")>-1){if(hn.preventDefault(),En=="stex")return;try{let Mt=St[1];((Qn=St[0])==null?void 0:Qn.kind)==="file"&&(Mt=St[0]);const Ft=Mt.getAsFile(),ln=Ft.name.split(".").pop();if(Vi&&((Ue=Ft==null?void 0:Ft.type)==null?void 0:Ue.indexOf("image"))>-1)return!0;(0,rt.I)(Ft,gn=>{var Nn,Bn,Fn;gn.id?((Nn=Ft==null?void 0:Ft.type)==null?void 0:Nn.indexOf("image"))>-1?Wt.replaceSelection(`<img width="100%" src="/api/attachments/${gn.id}?type=${gn.content_type})" alt="" />`):((Bn=Ft==null?void 0:Ft.type)==null?void 0:Bn.indexOf("video"))>-1?Wt.replaceSelection(`<video width="100%" controls src="/api/attachments/${gn.id}"></video>`):((Fn=Ft==null?void 0:Ft.type)==null?void 0:Fn.indexOf("pdf"))>-1?Wt.replaceSelection(`<a href="/api/attachments/${gn.id}?type=${Ft.type}&disposition=inline" target="_blank">${Ft.name}</a>`):Vo.includes(ln)?Wt.replaceSelection(`<a href="/api/attachments/${gn.id}?type=office&disposition=inline" target="_blank">${Ft.name}</a>`):Wt.replaceSelection(`[${Ft.name}](/api/attachments/${gn.id}?type=${gn.content_type})`):(gn==null?void 0:gn.status)===401&&(bn.ZP.warning((gn==null?void 0:gn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Mt){bn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Wt=be().fromTextArea(No.current,{mode:En,lineNumbers:!qe,lineWrapping:!0,value:Se,autoCloseTags:!er,autoCloseBrackets:!0});return Wt.on("keyup",function(qt,hn){hn.keyCode===8&&(qt.getValue()==""?Wt.setOption("placeholder",Yo):Wt.setOption("placeholder",null))}),Wt.on("keydown",function(qt,hn){if(hn.keyCode===8){var Qn=zt(qt);Qn&&hn.preventDefault()}}),it&&Wt.focus(),Wt.on("paste",nn),Wt.on("dragleave",function(qt,hn){ti.current.classList.remove("mouse-hover-md")}),fr&&Wt.on("beforeChange",function(qt,hn){(hn.origin==="paste"||hn.origin==="+input")&&hn.cancel()}),xo(Wt),()=>{Wt.off("paste",nn)}}},[]);const ze=(0,te.useCallback)(()=>{if(ti.current)try{}catch(nn){console.log(nn,"---- to set md editor body height")}},[dt,ti,rr]);(0,te.useEffect)(()=>{function nn(){let Wt=new ve.Z(qt=>{for(let hn of qt)(hn.target.offsetHeight>0||hn.target.offsetWidth>0)&&(ze(),fn.setSize("100%","100%"),fn.refresh())});return Wt.observe(No.current.parentElement),Wt}if(fn){const Wt=nn();return()=>{var qt,hn;(qt=No.current)!=null&&qt.parentElement&&Wt.unobserve((hn=No.current)==null?void 0:hn.parentElement)}}},[fn,ze]),(0,te.useEffect)(()=>{if(fn){let nn=[];for(const[Wt,qt]of Object.entries(Ei)){let hn={[Wt]:()=>{tn(qt)}};nn.push(hn),fn.addKeyMap(hn)}return _r.current=setInterval(()=>{gr.current&&jt()},4e3),()=>{clearInterval(_r.current);for(let Wt of nn)fn.removeKeyMap(Wt)}}},[fn]),(0,te.useEffect)(()=>{An!==rr&&ei(An)},[An]),(0,zr.Z)(()=>{if(!Ot&&xi>0){let nn=new Date().getTime(),Wt=window.sessionStorage.getItem(Vn);nn>=xi+pr&&(!Wt||Wt!==Yi)&&(window.sessionStorage.setItem(Vn,Yi),Ut(!0))}},pr),(0,te.useEffect)(()=>{wr(un)},[fn,un]),(0,te.useEffect)(()=>{fn&&it&&fn.focus()},[fn,it]),(0,te.useEffect)(()=>{if(nr&&fn){let nn=function(qt){let hn=qt.target;if(_t.current){let Qn=hn.scrollTop/hn.scrollHeight;_t.current.scrollTop=_t.current.scrollHeight*Qn}};const Wt=fn.getScrollerElement();return Wt.addEventListener("scroll",nn),()=>{Wt.removeEventListener("scroll",nn)}}},[fn,nr]),(0,te.useEffect)(()=>{if(fn&&yr){let nn=function(Wt,qt){yr(Wt,qt)};return fn.on("beforeChange",nn),()=>{fn.off("beforeChange",nn)}}},[fn,yr]),(0,te.useEffect)(()=>{if(fn&&Yn){let nn=function(){Yn(fn.getValue())};return fn.on("blur",nn),()=>{fn.off("blur",nn)}}},[fn,Yn]);function zt(nn,Wt){var qt=nn.getDoc(),hn=qt.getCursor(),Qn=qt.getLine(hn.line),Ue=Qn.charAt(hn.ch-1),Fe=Qn.lastIndexOf("@\u2581@",hn.ch),nt=Qn.lastIndexOf("@\u2581\u2581@",hn.ch),St=Fe>nt?Fe:nt,Mt=Fe>nt?3:4;if(to.indexOf(Ue)===-1)return null;if(console.log("change1:",Wt,nn,Qn,hn,St,Fe,nt,Ue),St>=0&&hn.ch-St<5){var Ft=St+Mt;return qt.replaceRange("",{line:hn.line,ch:St},{line:hn.line,ch:Ft}),{line:hn.line,ch:Ft}}return null}(0,te.useEffect)(()=>{if(fn){let nn=function(Wt,qt){const hn=Wt.getValue();Cn(hn),Xi(new Date().getTime()),Wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(er?Pe(hn,Un(hn)):Pe(hn))};return fn.on("change",nn),()=>{fn.off("change",nn)}}},[fn,Pe]),(0,te.useEffect)(()=>{if(fn)if(Se==null)fn.setValue(""),Cn("");else{const nn=window.scrollY||window.pageYOffset;Se!==fn.getValue()&&(fn.setValue(Se),Cn(Se),fn.setCursor(fr?1:fn.lineCount(),0),window.scrollTo(0,nn))}},[fn,Se]);const tn=(0,te.useCallback)(nn=>{const Wt=fn.getCursor(),qt=fn.getSelection();let hn=qt.split(`
`);switch(nn){case"bold":return fn.replaceSelection("**"+qt+"**"),qt===""&&fn.setCursor(Wt.line,Wt.ch+2),fn.focus();case"italic":return fn.replaceSelection("*"+qt+"*"),qt===""&&fn.setCursor(Wt.line,Wt.ch+1),fn.focus();case"code":return fn.replaceSelection("`"+qt+"`"),qt===""&&fn.setCursor(Wt.line,Wt.ch+1),fn.focus();case"inline-latex":return ri("inline-latex"),fn.focus();case"latex":return fn.replaceSelection("```latex\n"+qt+"\n```"),fn.setCursor(Wt.line+1,qt.length+1),fn.focus();case"line-break":return fn.replaceSelection(`<br/>
`),fn.focus();case"list-ul":return qt===""?fn.replaceSelection("- "+qt):fn.replaceSelection(hn.map(Qn=>Qn===""?"":`- ${Qn}`).join(`
`)),fn.focus();case"list-ol":return qt===""?fn.replaceSelection("1. "+qt):fn.replaceSelection(hn.map((Qn,Ue)=>Qn===""?"":`${Ue+1}. ${Qn}`).join(`
`)),fn.focus();case"add-null-ch":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(Xr),fn.focus();case"add-signal":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(mo),fn.focus();case"add-multiple":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(to),fn.focus();case"inster-template-1":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(Kr),fn.focus();case"eraser":return fn.setValue(""),fn.focus();case"trigger-watch":return wr(!nr),fn.focus();case"trigger-full-screen":return ei(!rr),fn.focus();case Kn:ri(Kn);return;case mr:ri(mr);return;case Dt:ri(Dt);return;case Gn:ri(Gn);return;case"maths-latex":ri("maths-latex");return;case Rn:ri(Rn);return;case ur:ri(ur);return;default:throw new Error}},[fn,nr,rr]),dn=(0,te.useCallback)((nn,Wt)=>{var qt,hn,Qn,Ue,Fe,nt;if(ri(""),!(Vi&&po==Dt))switch(po){case Kn:const{title:gn,link:Nn}=nn;return fn.replaceSelection(`[${gn}](${Nn})`),fn.focus();case mr:const{language:Bn,content:Fn}=nn;return fn.replaceSelection(["```"+Bn,Fn,"```"].join(`
`)),fn.focus();case"maths-latex":for(var St=atob(nn),Mt=new Uint8Array(St.length),Ft=0;Ft<St.length;Ft++)Mt[Ft]=St.charCodeAt(Ft);var ln=new Blob([Mt],{type:"image/png"});(0,rt.I)(ln,vo=>{vo.id?fn.replaceSelection(`![,](/api/attachments/${vo.id}?type=${vo.content_type})`):(vo==null?void 0:vo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fn.replaceSelection("`$$"+nn+"$$`");break;case Dt:case Gn:case jr:const{src:jn,alt:Jn}=nn,or=Wt,Jr=(Qn=(hn=(qt=or==null?void 0:or.name)==null?void 0:qt.split("."))==null?void 0:hn.pop)==null?void 0:Qn.call(hn);return((Ue=or==null?void 0:or.type)==null?void 0:Ue.indexOf("image"))>-1||!(or!=null&&or.type)?or.align||or.width?fn.replaceSelection(`<p style="text-align:${or.align||"initial"}"><img width="${or.width?or.width+"%":"initial"}" src="${jn}" alt="${Jn||""}" /></p>`):fn.replaceSelection(`<img width="100%" src="${jn}" alt="${Jn||""}" />`):((Fe=or==null?void 0:or.type)==null?void 0:Fe.indexOf("video"))>-1?fn.replaceSelection(`<video width="100%" controls src="${jn}"></video>`):((nt=or==null?void 0:or.type)==null?void 0:nt.indexOf("pdf"))>-1?fn.replaceSelection(`<a href="${jn}?type=${or.type}&disposition=inline" target="_blank">${or.name}</a>`):Vo.includes(Jr)?fn.replaceSelection(`<a href="${jn}?type=office&disposition=inline" target="_blank">${or.name}</a>`):fn.replaceSelection(`[${or.name}](${jn})`),fn.focus();case ur:const{row:bo,col:Zr,align:ao}=nn;let co=`
`;for(let vo=0;vo<bo;vo++){let Rr=[],qr=[];for(let Eo=0;Eo<Zr;Eo++)vo===1&&qr.push(Or[ao]),Rr.push(" ");vo===1&&(co+=`| ${qr.join(" | ")} |
`),co+=`| ${Rr.join(Zr===1?"":" | ")} |
`}return fn.replaceSelection(co+`
`),fn.focus();default:throw new Error}},[fn,po,Vi]),Lt=(0,te.useMemo)(()=>{switch(po){case Kn:return te.createElement(Kt,{callback:dn,onCancel:Rt});case mr:return te.createElement(Qt.Z,{callback:dn,onCancel:Rt});case Dt:return te.createElement(rt.Z,{callback:dn,onCancel:Rt});case Rn:return te.createElement(At,{callback:dn,onCancel:Rt});case ur:return te.createElement(Zt,{callback:dn,onCancel:Rt});case"maths-latex":return te.createElement(ht,{showSaveButton:!0,callback:dn});case"inline-latex":return te.createElement($t.Z,{showSaveButton:!0,callback:dn});default:return null}},[po]);function Rt(){ri("")}(0,te.useEffect)(()=>{if(yt.current){let nn=function(Fe){Qn=!0,Ue=Fe.pageY},Wt=function(){Qn=!1},qt=function(Fe){if(Qn){let nt=Fe.pageY-Ue;nt<0&&(nt=0),nt>300&&(nt=300);let St=Ne+nt+"px";ct(St)}},hn=yt.current,Qn=!1,Ue=0;return hn.addEventListener("mousedown",nn),document.addEventListener("mousemove",qt),document.addEventListener("mouseup",Wt),()=>{hn.removeEventListener("mousedown",nn),document.removeEventListener("mousemove",qt),document.removeEventListener("mouseup",Wt)}}},[fn,yt]),(0,te.useEffect)(()=>{ct(Ne)},[Ne]);const Nt=Do(Le),vn=Do(dt),In={width:Nt,height:vn},Xn=(0,te.useMemo)(()=>{if(xi){let nn=new Date(xi),Wt=nn.getHours(),qt=nn.getMinutes(),hn=nn.getSeconds();return Wt=Wt<10?"0"+Wt:Wt,qt=qt<10?"0"+qt:qt,hn=hn<10?"0"+hn:hn,`${Wt}:${qt}:${hn}`}return 0},[xi]),Un=nn=>{const Wt=[];if(er){let qt=-1;nn=nn.replace(/(@▁▁@|@▁@)/g,function(hn,Qn,Ue){Wt.push({multiLine:hn!==mo})})}return Wt};function tr(){window.sessionStorage.removeItem(Vn),Ut(!1),Xi(0)}function cr(){Ut(!1),Xi(0),fn.setValue(window.sessionStorage.getItem(Vn))}(0,te.useEffect)(()=>{cn[po]&&po!==Gn&&po!==Rn&&setTimeout(()=>{const nn=document.getElementsByClassName("markdown-popup-form")[0],Wt=window.innerWidth/2-nn.offsetWidth/2,qt=window.innerHeight/2-nn.offsetHeight/2;Qr(Wt),Bo(qt)},0)},[po]);const Ar=nn=>{nn.preventDefault();const Wt=nn.clientX-Fr,qt=nn.clientY-Yr;document.body.onmousemove=hn=>{let Qn=hn.clientX-Wt,Ue=hn.clientY-qt;const Fe=document.getElementsByClassName("markdown-popup-form")[0],nt=window.innerWidth-Fe.offsetWidth,St=window.innerHeight-Fe.offsetHeight;Qn=Math.max(0,Math.min(Qn,nt)),Ue=Math.max(0,Math.min(Ue,St)),Ln(hn.clientX,hn.clientY,Wt,qt)&&(Qr(Qn),Bo(Ue))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ln=(nn,Wt,qt,hn)=>{const Qn=document.body.clientHeight,Ue=document.body.clientWidth;return nn<20&&qt>nn||nn>Ue-20&&qt<nn||Wt<20&&hn>Wt||Wt>Qn-20&&hn<Wt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:ti},te.createElement("div",{className:`markdown-editor-container ${ci} ${nr?"on-preview":""} ${qe?"mini":""} ${rr?"full-screen":""}`,style:In},gi&&te.createElement(_e,{insertTemp:Vt,watch:nr,fullScreen:rr,showNullButton:qn,showNullProgramButton:er,onActionCallback:tn,hidetoolBar:Pn,extraUse:ni}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:No,placeholder:Yo})),nr?te.createElement("div",{ref:_t,className:"preview-container"},En==="stex"&&te.createElement(me,{value:Yi}),En!=="stex"&&te.createElement(se.Z,{disabledFill:Vr,showProgramFill:er,value:Yi})):null))),Pr?te.createElement("a",{ref:yt,className:"editor-resize"}):null,po===Gn&&te.createElement(Bt,{callback:dn,onCancel:Rt}),po===Rn&&te.createElement(At,{callback:dn,onCancel:Rt}),te.createElement(xe.Z,null,cn[po]&&po!==Gn&&po!==Rn?te.createElement(st.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Fr,top:Yr},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Ar},cn[po]),open:!0,onCancel:Rt,footer:null,destroyOnClose:!0,width:po===Rn?"1200px":null,height:po===Rn?"80vh":null,className:"markdown-popup-form"},Lt):null))}},70859:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ye},I:function(){return xe}});var te=ee(22150),ue=ee(2453),be=ee(69677),ve=ee(93421),de=ee(31795),pe=ee(78045),ae=ee(71577),he=ee(15476),le=ee(67294),fe=ee(52262),se=ee(67294),me=Object.defineProperty,re=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(Ce,Te,Me)=>Te in Ce?me(Ce,Te,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ce[Te]=Me,x=(Ce,Te)=>{for(var Me in Te||(Te={}))y.call(Te,Me)&&b(Ce,Me,Te[Me]);if(a)for(var Me of a(Te))E.call(Te,Me)&&b(Ce,Me,Te[Me]);return Ce},z=(Ce,Te)=>re(Ce,ne(Te));const{useForm:oe}=te.default,ie={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var ye=({callback:Ce,onCancel:Te})=>{const[Me]=oe();let pt=(0,le.useRef)();function Ve(De){pt.current.width=Me.getFieldValue("width"),pt.current.align=Me.getFieldValue("align"),Ce(De,pt.current)}function gt(De,Ie){if(De.status===-1){ue.ZP.error(De.message);return}Me.setFieldsValue({src:`/api/attachments/${De.id}`,type:Ie.type})}function Ae(De){let Ie=De.target.files[0];pt.current=Ie,xe(Ie,gt)}return se.createElement(te.default,z(x({form:Me},ce),{className:"upload-image-panel",onFinish:Ve,style:{width:470,overflow:"hidden"}}),se.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},se.createElement("div",{className:"flex-container"},se.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},se.createElement(be.default,{style:ie})),se.createElement(_e,{onFileChange:Ae}))),se.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(be.default,{style:{width:264}})),se.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},se.createElement(ve.Z,null,se.createElement(te.default.Item,{name:"width",style:{margin:0}},se.createElement(de.Z,{style:{width:264}})),se.createElement("span",{className:"ml8"},"%"))),se.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},se.createElement(pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),se.createElement("aside",null,se.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},se.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(ae.ZP,{type:"default",onClick:Te},"\u53D6\u6D88"))))};function _e({onFileChange:Ce}){return se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",se.createElement("input",{type:"file",onChange:Ce}))}function xe(Ce,Te){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,fe.bg)())throw ue.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",Ce),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function(Ve){Te(JSON.parse(Ve.target.responseText),Ce)},!1),pt.addEventListener("error",function(Ve){console.error(Ve)},!1),pt.open("POST",`${he.KI}/api/attachments.json`),pt.send(Me)}},76621:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return be}});var te=ee(67294),ue=ee(73935);class be extends te.Component{constructor(de){super(de);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:de}=this.props;return(0,ue.createPortal)(de,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(ot,Ge,ee){"use strict";var te=ee(12867),ue=ee(11713),be=ee(47897),ve=ee(67294);const de=ue.default.Option;Ge.Z=({isTheoretical:pe,onFontSizeChange:ae,cmFontSize:he,cmCodeMode:le,autoFormat:fe,onCodeModeChange:se,onTabToSpace:me,onAutoFormat:re,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x,shixun_environment_id:z,shixun_environments:oe})=>{var ie;const ce={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},ye=(ie=oe==null?void 0:oe.find(_e=>_e.shixun_environment_id===z))==null?void 0:ie.program_language;return ve.createElement("div",{className:`tpi-code-setting ${a}`},ve.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ve.createElement(ue.default,{bordered:!1,size:"small",value:le,onChange:se},ve.createElement(de,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ve.createElement(de,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ve.createElement(ue.default,{bordered:!1,size:"small",value:he,onChange:ae},ve.createElement(de,{value:12},"12px"),ve.createElement(de,{value:14},"14px"),ve.createElement(de,{value:16},"16px"),ve.createElement(de,{value:18},"18px"),ve.createElement(de,{value:20},"20px"),ve.createElement(de,{value:22},"22px"))),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"Tab\u8F6C\u6362"),ve.createElement(be.Z,{checked:y,onChange:me})),ve.createElement("div",{className:"file-item",onClick:ne},ve.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ve.createElement("span",null,"Ctrl + S")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ve.createElement("span",null,"F1 / Alt + F1")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ve.createElement("span",null,"Ctrl + ]/[")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ve.createElement("span",null,"Ctrl + Shift + \\")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ve.createElement("span",null,"Home")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ve.createElement("span",null,"End"))),E),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ye&&ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),ve.createElement("span",null,ye)),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ve.createElement("span",null,ce[x==null?void 0:x.difficulty])),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ve.createElement("span",null,b==null?void 0:b.name)),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ve.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},99914:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ue}});var te=ee(67294);function ue(be,ve){const de=(0,te.useRef)();(0,te.useEffect)(()=>{de.current=be}),(0,te.useEffect)(()=>{function pe(){de.current()}if(ve!==null){let ae=setInterval(pe,ve);return()=>clearInterval(ae)}},[ve])}},72971:function(ot,Ge,ee){"use strict";ee.d(Ge,{Im:function(){return Ce},ZP:function(){return Ae},gZ:function(){return Ve}});var te=ee(67294),ue=ee(69677),be=ee(71577),ve=ee(42922),de=ee(53978),pe=ee(94189),ae=ee(19575),he=ee(7621),le=ee(85725),fe=ee(28706),se=ee(38658),me=ee(12320),re=ee(94184),ne=ee.n(re),a=ee(67294),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ie=(De,Ie,tt)=>Ie in De?y(De,Ie,{enumerable:!0,configurable:!0,writable:!0,value:tt}):De[Ie]=tt,ce=(De,Ie)=>{for(var tt in Ie||(Ie={}))z.call(Ie,tt)&&ie(De,tt,Ie[tt]);if(x)for(var tt of x(Ie))oe.call(Ie,tt)&&ie(De,tt,Ie[tt]);return De},ye=(De,Ie)=>E(De,b(Ie));const{TextArea:_e}=ue.default,xe={visible:!1,tabIndex:"0"},Ce={[pe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[pe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[pe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Te=(De=>(De[De.SET_VISIBLE=0]="SET_VISIBLE",De[De.SET_TABINDEX=1]="SET_TABINDEX",De))(Te||{});function Me(De,Ie){switch(Ie.type){case 0:return ye(ce({},De),{visible:Ie.payload});case 1:return ye(ce({},De),{tabIndex:Ie.payload});default:throw new Error}}function pt({value:De,className:Ie}){const[tt,Ze]=(0,te.useState)(!1),bt=(0,te.useRef)(),wt=(0,te.useRef)();return(0,te.useEffect)(()=>{tt&&(wt.current.reset(),wt.current.write((0,fe.pp)(De||"")))},[De,tt]),(0,te.useEffect)(()=>{var Kt,Qt,rt,st;if(bt.current){wt.current=new me.Terminal({fontSize:14,disableStdin:!0}),wt.current.open(bt.current);const Ct=bt.current.offsetWidth-14,Gt=((st=(rt=(Qt=(Kt=wt.current)==null?void 0:Kt._core)==null?void 0:Qt._renderService)==null?void 0:rt.dimensions)==null?void 0:st.actualCellWidth)||9.5,Ht=Math.ceil(Ct/Gt);wt.current.resize(Ht,8),Ze(!0)}},[]),a.createElement("div",{ref:bt,className:ne()("XtermText-valueRef",Ie)})}function Ve(De){const{status:Ie,error_msg:tt,output:Ze,input:bt,expected_output:wt,is_file:Kt,input_file_url:Qt,output_file_url:rt,expected_output_file_url:st}=De;let Ct=null;const Gt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Ie){case pe.h.NOMATCH:Ct=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!Kt&&a.createElement(pt,{className:"mb10",value:bt}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(Qt,bt)},bt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!Kt&&a.createElement(pt,{className:"mb10",value:Ze&&ae.Base64.decode(Ze)||""}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(rt,Ze)},Ze)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!Kt&&a.createElement(pt,{className:"mb10",value:wt&&ae.Base64.decode(wt)||""}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(st,wt)},wt)));break;case pe.h.EXECUTEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Kt&&a.createElement(le.Z,{value:bt,style:Gt}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(Qt,bt)},bt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Kt&&a.createElement(le.Z,{value:bt,style:Gt}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(Qt,bt)},bt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.PODFAILURE:Ct=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Ct=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Ct," ")}function gt(De){const{status:Ie,error_msg:tt,execute_time:Ze,output:bt,input:wt,expected_output:Kt,is_file:Qt,input_file_url:rt,output_file_url:st,expected_output_file_url:Ct}=De;let Gt=null;switch(Ie){case pe.h.OK:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ze,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ae.Base64.decode(bt)));break;case pe.h.NOMATCH:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,wt)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",bt&&ae.Base64.decode(bt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",Kt&&ae.Base64.decode(Kt)));break;case pe.h.EXECUTEFAILURE:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,wt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,wt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.PODFAILURE:Gt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Gt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Gt," ")}var Ae=({id:De,is_file:Ie,input:tt,debuging:Ze,submitting:bt,executingMessage:wt,debugResult:Kt,onChangeInput:Qt,onDebugCode:rt,onSubmitCode:st})=>{const[Ct,Gt]=(0,te.useReducer)(Me,xe),{visible:Ht,tabIndex:Bt}=Ct;(0,te.useEffect)(()=>{Gt({type:0,payload:!1})},[De]);function Ke(pn){let kt=pn.target.id;Gt({type:1,payload:kt})}function Jt(){Gt({type:0,payload:!Ht})}const Mn=(0,te.useMemo)(()=>{if(Kt){const{status:pn}=Kt;return a.createElement(a.Fragment,null,gt(Kt))}return null},[Kt]);function Hn(){Gt({type:0,payload:!0}),Gt({type:1,payload:"1"}),rt()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Ht?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(se.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(_e,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:Ie?"":tt,onChange:Qt}),rightNode:Ze?a.createElement(he.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):Kt?Mn:a.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),a.createElement("a",{className:`btn-collapse ${Ht?"up":""}`,onClick:Jt},Ht?a.createElement(ve.Z,null):a.createElement(de.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(be.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(be.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(be.ZP,{className:"btn-green",type:"ghost",loading:Ze,onClick:Hn},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:bt,disabled:bt,onClick:()=>{Gt({type:0,payload:!1}),st()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},10903:function(ot,Ge,ee){"use strict";ee.r(Ge),ee.d(Ge,{default:function(){return el}});var te=ee(67294),ue=ee(53555),be=ee(32693),ve=ee(35973),de=ee(55054),pe=ee(2453),ae=ee(14446),he=ee(57953),le=ee(11713),fe=ee(33227),se=ee(60076),me=ee(11320),re=ee(55304),ne=ee(72565),a=ee(36295),y=ee(76621),E=ee(40471),b=ee(21434),x=ee(67294),z=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=(Re,je,We)=>je in Re?z(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Ce=(Re,je)=>{for(var We in je||(je={}))ye.call(je,We)&&xe(Re,We,je[We]);if(ce)for(var We of ce(je))_e.call(je,We)&&xe(Re,We,je[We]);return Re},Te=(Re,je)=>oe(Re,ie(je));const Me={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var pt=(Re=>(Re[Re.set_font_size=0]="set_font_size",Re[Re.set_theme=1]="set_theme",Re[Re.on_tab_to_space=2]="on_tab_to_space",Re[Re.set_show_editor_setting=3]="set_show_editor_setting",Re))(pt||{});function Ve(Re,je){switch(je.type){case 3:return Te(Ce({},Re),{showEditorSetting:je.payload});case 1:return Te(Ce({},Re),{theme:je.payload});case 0:return Te(Ce({},Re),{fontSize:je.payload});case 2:return Te(Ce({},Re),{tabToSpace:je.payload});default:throw new Error}}var gt=({isLoading:Re,value:je,onChange:We,language:ir,onUpdateCode:_n,ActionBarRender:rn=Sn=>x.createElement(Ae,{onShowCodeSetting:Sn})})=>{const[Sn,Xt]=(0,te.useReducer)(Ve,Me),{theme:mn,fontSize:kn,showEditorSetting:wo,tabToSpace:Dr}=Sn,To=(0,te.useRef)(),br=(0,te.useRef)(),yo={onFontSizeChange:Fo=>{Xt({type:0,payload:Fo}),(0,E.t)("cmFontSize",Fo)},tabToSpace:Dr,cmFontSize:kn,className:"oj",cmCodeMode:mn,onTabToSpace:Fo=>{Xt({type:2,payload:Fo}),(0,E.t)("cmTabToSpace",Fo)},onCodeModeChange:Fo=>{Xt({type:1,payload:Fo}),(0,E.t)("cmCodeMode",Fo)}};function kr(){Xt({type:3,payload:!1})}function bi(){Xt({type:3,payload:!0})}const fo={value:je,language:ir,theme:mn,height:"calc(100% - 56px)",options:{fontSize:kn,insertSpaces:Dr},onChange:Fo=>{We(Fo),br.current=Fo,clearTimeout(To.current),To.current=setTimeout(()=>{_n(br.current)},1e4)},onEditBlur:Fo=>{br.current&&_n(br.current)}};return x.createElement(te.Fragment,null,x.createElement("div",{className:"code-panel-container"},rn(bi),!Re&&x.createElement(a.ZP,Ce({},fo))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:wo,onClose:kr},x.createElement(b.Z,Ce({},yo)))))};function Ae({onShowCodeSetting:Re}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Re},x.createElement("i",{className:"iconfont icon-shezhi"})))}var De=ee(19575),Ie=ee(77969),tt=ee(72971),Ze=ee(69677),bt=ee(22150),wt=ee(71577);const{TextArea:Kt}=Ze.default,Qt=5e3;var rt=({callback:Re,onCancel:je,notes:We})=>{function ir(_n){Re(_n)}return te.createElement(bt.default,{className:"note-form-panel",onFinish:ir,initialValues:{notes:We}},te.createElement(bt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Qt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Qt}`}]},te.createElement(Kt,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),te.createElement(bt.default.Item,{style:{textAlign:"right"}},te.createElement(wt.ZP,{type:"ghost",onClick:je,style:{marginRight:10}}," \u53D6\u6D88 "),te.createElement(wt.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},st={"left-panel":"left-panel___fP6Y3","tab-panel-body":"tab-panel-body___aLOJQ",b1:"b1___ELpwD","oj-mr":"oj-mr___SIQSw","oj-width-input":"oj-width-input___tR_Si","s-navs":"s-navs___iVrSH","bg-white":"bg-white___S0kiU",active:"active___D332c"},Ct={pagination:"pagination___npPu7",info:"info___aRH6C"},Gt=ee(9430),Ht=ee(28452),Bt=ee(3407),Ke=ee(18699),Jt=ee(94189),Mn=ee(28706),Hn=ee(27484),pn=ee.n(Hn);const{Column:kt}=Gt.default;var Qe=({submitResult:Re,submitting:je,submitRecords:We,page:ir,onPageChange:_n,topicId:rn})=>{const{status:Sn,id:Xt,input:mn,output:kn,expected_output:wo,is_file:Dr,input_file_url:To,output_file_url:br,expected_output_file_url:yo,error_msg:kr}=Re||{},{records:bi,records_count:fo}=We||{},Fo=(0,ve.useParams)();function Di(){Dr?(0,Mn.vQ)(De.Base64.decode(kr)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Mn.vQ)(De.Base64.decode(kn)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return te.createElement(he.Z,{spinning:je,tip:"\u8BC4\u6D4B\u4E2D...",indicator:te.createElement(Bt.Z,{style:{fontSize:24},spin:!0})},Xt?te.createElement(te.Fragment,null,te.createElement("ul",{className:Ct.info},te.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",te.createElement("span",{className:Sn===Jt.h.OK?"c-green":"c-red"},tt.Im[Sn])),te.createElement("li",{className:Ct.error},te.createElement("a",{onClick:Di},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",te.createElement(Ke.Z,null)," ")),te.createElement("li",null,te.createElement(ve.Link,{to:`/problems/${rn}/record-detail/${Xt}?backId=${Fo==null?void 0:Fo.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),Sn!==Jt.h.OK?te.createElement(te.Fragment,null,te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),te.createElement("pre",null,!Dr&&mn,Dr&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Mn.LR)(To,mn)},mn)),te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),te.createElement("pre",null,(Sn===4||Sn===5)&&De.Base64.decode(kr),Sn!=4&&Sn!=5&&(Dr?te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Mn.LR)(br,kn)},kn):De.Base64.decode(kn))),te.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),te.createElement("pre",null,!Dr&&De.Base64.decode(wo),Dr&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Mn.LR)(yo,wo)},wo))):null):null,(bi==null?void 0:bi.length)>0?te.createElement(Gt.default,{dataSource:bi,rowKey:"id",pagination:!1},te.createElement(kt,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(so,fi)=>te.createElement("span",null," ",pn()(so).format("YYYY-MM-DD HH:mm:ss"))}),te.createElement(kt,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(so,fi)=>{var $n;return te.createElement(ve.Link,{className:so===0?"c-green":"c-red",to:`/problems/${rn}/record-detail/${fi.id}?backId=${Fo==null?void 0:Fo.save_identifier}`},($n=tt.Im[so])==null?void 0:$n.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),te.createElement(kt,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),te.createElement(kt,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),te.createElement(kt,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,fo>15?te.createElement(Ht.Z,{className:Ct.pagination,current:ir,pageSize:15,total:fo,onChange:_n}):null)},Ye=ee(26194),Je=ee(66309),ft=ee(93421),At={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},et=ee(85725),vt=ee(67294);const Pt={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Xe=({hack:Re,onTriggerPraise:je,toDiscuss:We})=>{const{language:ir,difficulty:_n,time_limit:rn,username:Sn,user_path:Xt,user_praise:mn,comments_count:kn,praises_count:wo,description:Dr,pass_count:To,submit_count:br}=Re,yo=(0,ve.useLocation)();console.log(Re.language,"language");const kr=Pt[_n];return vt.createElement(vt.Fragment,null,vt.createElement("ul",{className:At.info},vt.createElement("li",null,"\u96BE\u5EA6\uFF1A",vt.createElement(Je.default,{color:kr==null?void 0:kr.color},kr==null?void 0:kr.name)),vt.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",vt.createElement("b",null,rn,"\u79D2"))),vt.createElement(et.Z,{value:Dr,className:At.desc}),vt.createElement("ul",{className:At["commit-info"]},vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",vt.createElement("b",null,To))),vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",vt.createElement("b",null,br))," "),vt.createElement("li",{style:{flex:"1 0 0"}}),vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("i",{className:"iconfont icon-huifu1",onClick:We})," ",vt.createElement("b",null,kn))," ")))},Zt=ee(33054),He=Object.defineProperty,ut=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,ht=(Re,je,We)=>je in Re?He(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,$t=(Re,je)=>{for(var We in je||(je={}))wn.call(je,We)&&ht(Re,We,je[We]);if(ut)for(var We of ut(je))sn.call(je,We)&&ht(Re,We,je[We]);return Re};const on=Re=>React.createElement("svg",$t({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u5C55\u5F00\u9898\u76EE"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"show_svg__a"},React.createElement("stop",{stopColor:"#EEF7FF",offset:"0%"}),React.createElement("stop",{stopColor:"#C1E2FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#show_svg__a)",width:40,height:40,rx:8}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M16.057 20.784H8.238A1.22 1.22 0 0 0 7 21.974v6.811a1.22 1.22 0 0 0 1.238 1.19h7.819a1.213 1.213 0 0 0 1.238-1.19v-6.811a1.213 1.213 0 0 0-.376-.847 1.203 1.203 0 0 0-.862-.332v-.01Zm-1.25 6.769H9.423V23.12h5.384v4.433Z",fill:"#4CACFF"}),React.createElement("path",{d:"M16.057 10.005a1.22 1.22 0 0 1 1.238 1.189v6.812a1.213 1.213 0 0 1-.376.846c-.232.222-.542.34-.862.332H8.238A1.213 1.213 0 0 1 7 18.005v-6.811a1.22 1.22 0 0 1 1.238-1.19Zm-1.239 2.41H9.434v4.401h5.384v-4.4Z",fill:"#94CDFF"}),React.createElement("path",{d:"M20.418 12.632h11.189a1.213 1.213 0 0 0 1.238-1.179 1.224 1.224 0 0 0-.371-.857 1.214 1.214 0 0 0-.867-.343H20.418a1.203 1.203 0 0 0-.866.336c-.233.223-.367.53-.372.854.005.323.14.63.372.854.232.223.544.344.866.335ZM31.575 16.027h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 21.595h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 27.163h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557Z",fill:"#1890FF"}))));var bn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",Kn=ee(33170);function Dt(Re){return(0,Kn.U2)("comments.json",Re)}function Rn(Re){return(0,Kn.v_)(`/discusses/${Re}/plus.json`,{container_type:"Discuss",type:1})}function Gn(Re){return(0,Kn.v_)("comments/reply.json",Re)}function jr(Re){return(0,Kn.v_)("comments.json",Re)}function mr(Re){return(0,Kn.v_)(`comments/${Re==null?void 0:Re.id}/hidden.json`,Re)}function ur(Re){return(0,Kn.IV)(`comments/${Re==null?void 0:Re.id}.json`)}var Tn=ee(93989),Or=ee(52262);function zr({author:Re}){return te.createElement("a",{href:`/users/${Re.login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${Re.image_url}`,width:"50"}))}function lo({data:Re,index:je,parentDiscussIndex:We,user:ir,onSetActionType:_n}){const{author:rn,can_delete:Sn,content:Xt,id:mn,time:kn}=Re;function wo(){_n({id:mn,index:je,type:"delete-discuss",parentDiscussIndex:We,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Dr=ir.admin||Sn||rn.user_id===ir.user_id;return te.createElement("div",{className:"discuss-item-container second-discuss "},te.createElement(zr,{author:rn}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${rn.login}`,target:"_blank"},rn.name),te.createElement("span",{className:"grey"},kn),te.createElement("div",{className:"btn-group",style:{marginBottom:0}},Dr?te.createElement("a",{onClick:wo,title:"\u5220\u9664"},te.createElement("i",{className:"iconfont icon-shanchu"})):null)),te.createElement(et.Z,{className:"discuss-content",value:Xt})))}var di=({user:Re,data:je,index:We,onPlusDiscuss:ir,onSetActionType:_n,activeDiscussIndex:rn,onReplyDiscuss:Sn,onSetActiveDiscussIndex:Xt})=>{const{content:mn,children:kn,hidden:wo,id:Dr,praise_count:To,time:br,user_praise:yo,can_delete:kr,author:bi}=je;console.log(kr&&(!kn||kn.length==0),"children22");function fo(){Xt(Dr)}function Fo(){ir(Dr,!yo,We)}function Di(){_n({id:Dr,index:We,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function so(){_n({id:Dr,index:We,params:{hidden:wo?"0":"1"},type:"hidden-discuss",message:wo?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const fi=Re.admin||Re.user_id===bi.user_id;return te.createElement("div",{className:"discuss-item-container",key:Dr},te.createElement(zr,{author:bi}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${bi.login}`,target:"_blank"}," ",bi.name," "),te.createElement("span",{className:"grey"},br)),te.createElement(et.Z,{className:"discuss-content",value:mn}),kn&&kn.length>0?te.createElement("div",{className:"reply-discuss-container"},kn.map(($n,hi)=>te.createElement(lo,{key:$n.id,data:$n,index:hi,user:Re,onSetActionType:_n,parentDiscussIndex:We}))):null,te.createElement("div",{className:"btn-group"},(0,Or.Ny)()?te.createElement("a",{onClick:so,title:wo?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},te.createElement("i",{className:wo?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,kr&&(!kn||kn.length==0)?te.createElement("a",{onClick:Di,title:"\u5220\u9664"},te.createElement("i",{className:"iconfont icon-shanchu"})):null,te.createElement("a",{onClick:fo,title:"\u56DE\u590D"}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," "),te.createElement("a",{onClick:Fo,className:yo?"c-orange":""},te.createElement("i",{className:yo?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),te.createElement("span",null,To||""))),te.createElement(Tn.Z,{id:Dr,activeDiscussIndex:rn,onReplyDiscuss:Sn})))},Ko=ee(71865),pr=ee(35567),Xr=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),to=({user_praise:Re,praise_count:je,praisePlus:We,onCreateDiscuss:ir,discuss_count:_n})=>{const[rn,Sn]=(0,te.useState)(!1),[Xt,mn]=(0,te.useState)("");function kn(br){mn(br)}function wo(){Sn(!0)}function Dr(){Sn(!1)}function To(){return Xr(this,null,function*(){ir(Xt),mn(""),Sn(!1)})}return te.createElement("div",{className:`dis-input-editor-container ${rn?"active":""} `},te.createElement("div",{className:rn?"text-area hide":"text-area"},te.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:wo}),te.createElement("a",{style:{alignItems:"center"}}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",_n," "),te.createElement("a",{className:"c-light-black",onClick:We,style:{alignItems:"center"},title:Re?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("i",{className:`mr3 ${Re?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),je?te.createElement("span",null,je):"")),rn?te.createElement("div",{className:"input-mask",onClick:Dr}):null,te.createElement("div",{className:rn?"md-container":"md-container hide"},te.createElement(pr.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Xt,height:240,onChange:kn}),te.createElement("div",{className:"tip-container",onClick:Dr},te.createElement("a",{className:"btn-send",onClick:To}," \u53D1\u9001 "))))},mo=Object.defineProperty,Kr=Object.defineProperties,Vo=Object.getOwnPropertyDescriptors,Do=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Ei=(Re,je,We)=>je in Re?mo(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,cn=(Re,je)=>{for(var We in je||(je={}))io.call(je,We)&&Ei(Re,We,je[We]);if(Do)for(var We of Do(je))Cr.call(je,We)&&Ei(Re,We,je[We]);return Re},ge=(Re,je)=>Kr(Re,Vo(je)),Se=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Le=(Re=>(Re[Re.GET_DISCUSSES=0]="GET_DISCUSSES",Re[Re.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Re[Re.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Re[Re.PLUS_DISCUSS=3]="PLUS_DISCUSS",Re[Re.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Re[Re.SET_PAGE=5]="SET_PAGE",Re[Re.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Re))(Le||{});function Ne(Re,je){switch(je.type){case 6:return ge(cn({},Re),{loading:!0});case 0:return cn(cn({},Re),je.payload);case 1:return cn(cn({},Re),je.payload);case 4:return cn(cn({},Re),je.payload);case 3:return cn(cn({},Re),je.payload);case 5:return cn(cn({},Re),je.payload);case 2:return cn(cn({},Re),je.payload);default:throw new Error}}var qe=({user:Re,identifier:je,hack:We,onTriggerPraise:ir,setDiscussTotal:_n})=>{const[rn,Sn]=(0,te.useReducer)(Ne,Pe),{loading:Xt,page:mn,data:kn,count:wo,actionType:Dr,activeDiscussIndex:To}=rn;console.log("---",rn);const br=(0,te.useCallback)(()=>Se(void 0,null,function*(){Sn({type:6});const $n=yield Dt({container_type:"Practice",container_identifier:je,limit:10,page:mn}),{comments:hi,disscuss_count:ko}=$n;Sn({type:0,payload:{data:hi,count:ko,loading:!1}}),_n(ko)}),[mn,je]);(0,te.useEffect)(()=>{br()},[je,mn]);function yo($n){Sn({type:5,payload:{page:$n}})}function kr($n){Sn({type:4,payload:{actionType:$n}})}function bi($n){Sn(To===$n?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:$n}})}function fo($n,hi,ko){return Se(this,null,function*(){try{const Gi=yield Rn($n);kn[ko].user_praise=hi,kn[ko].praise_count=Gi.praise_count,Sn({type:3,payload:{data:[...kn]}})}catch(Gi){console.log(Gi)}})}function Fo(){return Se(this,null,function*(){const{id:$n,params:hi,type:ko,index:Gi,parentDiscussIndex:fa}=Dr;ko==="hidden-discuss"&&(console.log(hi,"params"),yield mr(cn({id:$n,container_type:"Practice",container_identifier:je},hi)),fa?kn[fa].children[Gi].hidden=hi.hidden==1:kn[Gi].hidden=hi.hidden==1,Sn({type:4,payload:{actionType:null,data:[...kn]}})),ko==="delete-discuss"&&(yield ur({id:$n,container_type:"Practice",container_identifier:je}),Sn({type:4,payload:{actionType:null}}),yield br())})}function Di(){Sn({type:4,payload:{actionType:null}})}function so($n,hi){return Se(this,null,function*(){try{yield Gn({container_type:"Practice",container_identifier:je,comments:{content:hi,parent_id:$n}}),br()}catch(ko){console.log(ko)}})}function fi($n){return Se(this,null,function*(){Sn({type:6}),yield jr({comments:{content:$n},container_type:"Practice",container_identifier:je}),br()})}return te.createElement(te.Fragment,null,te.createElement("div",{className:"discuss-panel"},kn.length===0?te.createElement(Ye.Z,null):te.createElement(he.Z,{spinning:Xt},kn.map(($n,hi)=>te.createElement(di,{onReplyDiscuss:so,onPlusDiscuss:fo,onSetActiveDiscussIndex:bi,onSetActionType:kr,data:$n,index:hi,user:Re,activeDiscussIndex:To}))),wo>10?te.createElement("div",{className:"pagination-container mt10 mb10"},te.createElement(Ht.Z,{showQuickJumper:!0,onChange:yo,current:mn,total:wo,showTotal:$n=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},$n),"\u6761\u6570\u636E")})):null),te.createElement(to,{user_praise:We.user_praise,praise_count:We.praises_count,praisePlus:ir,discuss_count:We.comments_count,onCreateDiscuss:fi}),te.createElement(y.Z,null,te.createElement(ae.default,{centered:!0,title:"\u63D0\u793A",open:!!Dr,onOk:Fo,onCancel:Di},te.createElement("p",null,Dr?Dr.message:"")),te.createElement(Ko.Z,null)))},it={flex_box_center:"flex_box_center___tosr6",flex_space_between:"flex_space_between___cQaTP",flex_box_vertical_center:"flex_box_vertical_center___uovxL",flex_box_center_end:"flex_box_center_end___b4gLY",flex_box_column:"flex_box_column___Umjm_",wrap:"wrap___sgoJE",head:"head___b9a9v",sort:"sort___L2Zw8",btn:"btn___khuE4",listWarp:"listWarp___zZj6C",pagination:"pagination___XlROP",fixedRight:"fixedRight___MuAXo","oj-width-input":"oj-width-input___RsZb6"},un={flex_box_center:"flex_box_center___EahWI",flex_space_between:"flex_space_between___zopS4",flex_box_vertical_center:"flex_box_vertical_center___w03mz",flex_box_center_end:"flex_box_center_end___lr0Fp",flex_box_column:"flex_box_column___KFHVi",active:"active___BczOO",line:"line___VC_Ry",list:"list___n9ABd",left:"left___LVHqw",mask:"mask___fP13z",right:"right___iLe52",name:"name___Oz_7h",title:"title___2Sess",a:"a___t7rIW",b:"b___Kb_45",des:"des___CjMBM",tag:"tag___V0PVb"},Vt=Object.defineProperty,En=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Ot=(Re,je,We)=>je in Re?Vt(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,qn=(Re,je)=>{for(var We in je||(je={}))Vn.call(je,We)&&Ot(Re,We,je[We]);if(En)for(var We of En(je))Pr.call(je,We)&&Ot(Re,We,je[We]);return Re};const er=Re=>React.createElement("svg",qn({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u89C2\u770B"),React.createElement("path",{d:"M11 0a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h10ZM4.4 2.4a.4.4 0 0 0-.4.4v4.4a.4.4 0 0 0 .64.32l2.72-2.04a.6.6 0 0 0 0-.96L4.64 2.48a.4.4 0 0 0-.24-.08Z",fill:"#FFF",fillRule:"evenodd"}));var Pn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",An=Object.defineProperty,Yn=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,ci=(Re,je,We)=>je in Re?An(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Po=(Re,je)=>{for(var We in je||(je={}))yr.call(je,We)&&ci(Re,We,je[We]);if(Yn)for(var We of Yn(je))lr.call(je,We)&&ci(Re,We,je[We]);return Re};const fr=Re=>React.createElement("svg",Po({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u70B9\u8D5E1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#999"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#CCC"})));var Vr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Yo=Object.defineProperty,Io=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Vi=(Re,je,We)=>je in Re?Yo(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,fn=(Re,je)=>{for(var We in je||(je={}))ni.call(je,We)&&Vi(Re,We,je[We]);if(Io)for(var We of Io(je))gi.call(je,We)&&Vi(Re,We,je[We]);return Re};const xo=Re=>React.createElement("svg",fn({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u70B9\u8D5E2"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#0152d9"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#B6D0FC"})));var Yi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",Cn=Object.defineProperty,nr=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,ei=(Re,je,We)=>je in Re?Cn(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,po=(Re,je)=>{for(var We in je||(je={}))wr.call(je,We)&&ei(Re,We,je[We]);if(nr)for(var We of nr(je))rr.call(je,We)&&ei(Re,We,je[We]);return Re};const ri=Re=>React.createElement("svg",po({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u8BC4\u8BBA1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M4.717.01h8.84c1.571 0 2.357.777 2.357 2.332v5.25c0 1.556-.786 2.334-2.357 2.334h-8.84c-1.572 0-2.357-.778-2.357-2.334v-5.25C2.36.787 3.145.01 4.717.01Z",fill:"#999"}),React.createElement("path",{d:"M2.36 2.342h8.84a2.37 2.37 0 0 1 1.666.684c.442.437.69 1.03.69 1.65v5.25c0 1.288-1.055 2.333-2.357 2.333H7.94l-1.16 1.153-1.167-1.153H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65v-5.25c0-.62.248-1.213.69-1.65a2.37 2.37 0 0 1 1.667-.684Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M2.36 2.926h8.84c1.301 0 2.357 1.044 2.357 2.333v5.25c0 .619-.249 1.212-.69 1.65a2.37 2.37 0 0 1-1.668.683H7.94l-1.16 1.154-1.167-1.154H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65V5.26c0-.619.248-1.212.69-1.65a2.37 2.37 0 0 1 1.667-.683Z",fill:"#CCC"}),React.createElement("path",{d:"M3.538 5.842h6.483c.393 0 .589.195.589.584 0 .389-.196.583-.59.583H3.539c-.393 0-.59-.194-.59-.583 0-.39.197-.584.59-.584ZM3.538 8.76h4.715c.393 0 .59.194.59.582 0 .39-.197.584-.59.584H3.538c-.393 0-.59-.195-.59-.584 0-.388.197-.583.59-.583Z",fill:"#FFF"})));var xi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Xi=Object.defineProperty,dt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Ut=(Re,je,We)=>je in Re?Xi(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,yn=(Re,je)=>{for(var We in je||(je={}))ct.call(je,We)&&Ut(Re,We,je[We]);if(dt)for(var We of dt(je))It.call(je,We)&&Ut(Re,We,je[We]);return Re};const gr=Re=>React.createElement("svg",yn({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u67E5\u770B1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M7.965 11.961C2.593 11.961 0 6.926 0 5.981 0 5.035 2.623 0 7.965 0s7.965 4.984 7.965 5.98c0 .997-2.593 5.981-7.965 5.981Zm0-2.208c1.296 0 2.494-.72 3.142-1.886a3.902 3.902 0 0 0 0-3.773c-.648-1.167-1.846-1.886-3.142-1.886-2.004 0-3.629 1.69-3.629 3.773s1.625 3.772 3.629 3.772Z",fill:"#CCC"}),React.createElement("path",{d:"M7.965 8.28c-1.222 0-2.213-1.029-2.213-2.3 0-1.27.991-2.3 2.213-2.3s2.212 1.03 2.212 2.3c0 1.271-.99 2.3-2.212 2.3Z",fill:"#999"})));var _r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Qr=({style:Re={},onClick:je,onAssist:We,onHide:ir,data:_n,active:rn,showLine:Sn})=>te.createElement(te.Fragment,null,te.createElement("div",{className:rn===(_n==null?void 0:_n.id)?`${un.list} ${un.active}`:un.list,style:Re,onClick:()=>je(_n)},(_n==null?void 0:_n.video)&&te.createElement("div",{className:un.left},te.createElement("img",{src:_n==null?void 0:_n.video_cover}),te.createElement("div",null,te.createElement("img",{src:Pn}),te.createElement("span",null,_n==null?void 0:_n.video_duration)),te.createElement("div",{className:un.mask})),te.createElement("div",{className:un.right},te.createElement("div",{className:un.name},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(_n==null?void 0:_n.image_url),width:30,height:30}),te.createElement("div",{title:_n==null?void 0:_n.name,className:un.title},_n==null?void 0:_n.name),(_n==null?void 0:_n.is_authority)&&te.createElement("div",{className:un.b},"\u5B98\u65B9"),(_n==null?void 0:_n.is_excellent)&&te.createElement("div",{className:un.a},"\u7CBE\u9009")),te.createElement("div",{className:un.des},te.createElement(et.Z,{showLines:2,showTextOnly:!0,value:(_n==null?void 0:_n.content)||"\u6682\u65E0\u5185\u5BB9"})),te.createElement("div",{className:un.tag},te.createElement("span",{className:"current",onClick:Xt=>{Xt.stopPropagation(),We(_n)}},te.createElement("img",{src:_n!=null&&_n.user_liker?Yi:Vr}),te.createElement("span",{style:{color:_n!=null&&_n.user_liker?"#0152d9":"#656f87"}},_n==null?void 0:_n.praises_count)),te.createElement("span",null,te.createElement("img",{src:xi}),te.createElement("span",null,_n==null?void 0:_n.discusses_count)),te.createElement("span",null,te.createElement("img",{src:_r}),te.createElement("span",null,_n==null?void 0:_n.viewed_count)),(0,Or.Ny)()&&te.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:Xt=>{Xt.stopPropagation(),ir(_n)}},_n!=null&&_n.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),Sn&&te.createElement("div",{className:un.line})),Yr={flex_box_center:"flex_box_center___C6sVF",flex_space_between:"flex_space_between___VEt8l",flex_box_vertical_center:"flex_box_vertical_center___qeD5F",flex_box_center_end:"flex_box_center_end___iYJd9",flex_box_column:"flex_box_column___iAKJf",listForm:"listForm___leDJL",scroll:"scroll___wtFaF",formWrap:"formWrap___p3W41",btns:"btns___Izl4q",main:"main___xTqlG",mainLoading:"mainLoading___QLa9s",tip:"tip___a0tbY",proWarp:"proWarp___BZhOt",pro:"pro___Yp1Rx",mainSucceed:"mainSucceed___HfaTf",del:"del___TXGhB"},Bo=ee(83062),No=Object.defineProperty,ti=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,jt=(Re,je,We)=>je in Re?No(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,ze=(Re,je)=>{for(var We in je||(je={}))yt.call(je,We)&&jt(Re,We,je[We]);if(ti)for(var We of ti(je))_t.call(je,We)&&jt(Re,We,je[We]);return Re};const zt=Re=>React.createElement("svg",ze({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u4E0A\u4F20\u89C6\u9891"),React.createElement("path",{d:"M1.6 0C1.175 0 .768.17.468.474A1.63 1.63 0 0 0 0 1.622v3.243h3.237L7.378 0H1.6Zm7.876 0L5.338 4.865h5.9L15.371 0H9.476Zm7.998 0-4.137 4.865h5.896L23.372 0h-5.898Zm8 0-4.138 4.865h6.66V1.622a1.629 1.629 0 0 0-.467-1.148A1.585 1.585 0 0 0 26.397 0h-.924ZM0 6.487v17.837c0 .43.167.844.468 1.148.3.305.707.475 1.132.474h18.61a6.515 6.515 0 0 1 1.652-6.218 6.31 6.31 0 0 1 6.134-1.675V6.487H0Zm11.998 5.675 6.4 4.056-6.4 4.055v-8.11Zm14.399 6.487c-3.092.002-5.597 2.544-5.595 5.678.001 3.134 2.508 5.674 5.6 5.673C29.494 30 32 27.458 32 24.324c0-1.506-.59-2.95-1.641-4.014a5.561 5.561 0 0 0-3.962-1.661Zm0 2.027c.22.003.428.1.574.266.663.6 1.327 1.352 1.99 2.002a.8.8 0 0 1 0 1.14.788.788 0 0 1-1.125 0l-.638-.646v3.724a.814.814 0 0 1-.392.724.79.79 0 0 1-.815 0 .814.814 0 0 1-.392-.724v-3.724l-.637.646a.79.79 0 0 1-.773.215.803.803 0 0 1-.567-.575.816.816 0 0 1 .212-.783c.651-.664 1.333-1.388 1.99-2.002a.778.778 0 0 1 .575-.266l-.002.003Z",fill:"#0152d9",fillRule:"nonzero"}));var tn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",dn=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,vn=(Re,je,We)=>je in Re?dn(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,In=(Re,je)=>{for(var We in je||(je={}))Rt.call(je,We)&&vn(Re,We,je[We]);if(Lt)for(var We of Lt(je))Nt.call(je,We)&&vn(Re,We,je[We]);return Re};const Xn=Re=>React.createElement("svg",In({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u4E0A\u4F20\u6210\u529F"),React.createElement("path",{d:"M15 0c8.285 0 15 6.717 15 15 0 8.285-6.715 15-15 15-8.283 0-15-6.715-15-15C0 6.717 6.717 0 15 0Zm10.041 7.5v.01a47.934 47.934 0 0 0-11.232 9.386l-4.372-3.3v-.002L7.5 15.08l7.553 7.42A44.625 44.625 0 0 1 25.5 8.55l-.459-1.05Z",fill:"#44D7B6",fillRule:"nonzero"}));var Un="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",tr=Object.defineProperty,cr=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,nn=(Re,je,We)=>je in Re?tr(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Wt=(Re,je)=>{for(var We in je||(je={}))Ar.call(je,We)&&nn(Re,We,je[We]);if(cr)for(var We of cr(je))Ln.call(je,We)&&nn(Re,We,je[We]);return Re};const qt=Re=>React.createElement("svg",Wt({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Re),React.createElement("path",{fill:"#AFBACB",d:"M9.99.02C4.482.02.02 4.482.02 9.99c0 5.506 4.463 9.97 9.97 9.97 5.506 0 9.97-4.464 9.97-9.97 0-5.507-4.464-9.97-9.97-9.97Zm1.636 13.69c-.744 1.19-1.488 2.083-2.827 2.083-.893-.149-1.19-.744-1.042-1.488l1.637-5.506c0-.149 0-.298-.149-.298-.148 0-.446 0-.595.298l-1.042 1.19v-.744c.745-1.19 1.935-2.083 2.828-2.083.744.149 1.19.744 1.042 1.488L9.84 14.305c0 .149 0 .298.148.298.15 0 .447-.15.596-.298l1.041-1.34v.745Zm-.297-7.292c-.596 0-1.19-.446-1.19-1.19 0-.745.446-1.191 1.19-1.191.595 0 1.19.446 1.19 1.19 0 .745-.595 1.191-1.19 1.191Z"}));var hn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Qn=ee(95235),Ue=Object.defineProperty,Fe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,ln=(Re,je,We)=>je in Re?Ue(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,gn=(Re,je)=>{for(var We in je||(je={}))Mt.call(je,We)&&ln(Re,We,je[We]);if(St)for(var We of St(je))Ft.call(je,We)&&ln(Re,We,je[We]);return Re},Nn=(Re,je)=>Fe(Re,nt(je)),Bn=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),jn=({onClose:Re,onOk:je,identifier:We,active:ir})=>{var _n,rn;const[Sn]=bt.default.useForm(),[Xt,mn]=(0,te.useState)({}),[kn,wo]=(0,te.useState)(!1),[Dr,To]=(0,te.useState)(!1),[br,yo]=(0,te.useState)([]),kr=(0,Or.eY)(),bi=(0,ve.useParams)(),fo=(0,te.useRef)();(0,te.useEffect)(()=>{ir&&Fo()},[ir]);const Fo=()=>Bn(void 0,null,function*(){var Lr,ho,$o,Zo,Ls,hs,ts,xs,ja,ms;const Hr=yield(0,fe.M3)(We,{active:ir});if((Hr==null?void 0:Hr.status)===0){const Ni={name:(Lr=Hr==null?void 0:Hr.data)==null?void 0:Lr.name,content:(ho=Hr==null?void 0:Hr.data)==null?void 0:ho.content};Sn.setFieldsValue(Ni),mn(Ni),(Zo=($o=Hr==null?void 0:Hr.data)==null?void 0:$o.videos)!=null&&Zo[0]&&yo([{video_id:(ts=(hs=(Ls=Hr==null?void 0:Hr.data)==null?void 0:Ls.videos)==null?void 0:hs[0])==null?void 0:ts.video_id,name:(ms=(ja=(xs=Hr==null?void 0:Hr.data)==null?void 0:xs.videos)==null?void 0:ja[0])==null?void 0:ms.title,loaded:100}])}}),Di=(Lr,ho)=>{mn(gn({},ho))},so=Lr=>Bn(void 0,null,function*(){const ho={videos:br,articles:Lr};To(!0);let $o;ir?(ho.active=ir,$o=yield(0,fe.gu)(We,ho)):$o=yield(0,fe.bx)(We,ho),($o==null?void 0:$o.status)===0&&(console.log(ir||($o==null?void 0:$o.id),44),je(ir||($o==null?void 0:$o.id))),To(!1)}),fi=(Lr,ho)=>{ae.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:te.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ho?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{ho?yo([]):(fo.current.cancel(),yo([]))}})},$n=()=>te.createElement(Qn.Z,Nn(gn({},wi),{ref:fo}),te.createElement("div",{className:Yr.main},te.createElement("img",{src:tn,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),hi=Lr=>te.createElement("div",{className:Yr.mainLoading},te.createElement("div",{className:Yr.proWarp},te.createElement("div",{className:Yr.pro},te.createElement("div",{style:{width:Lr}})),te.createElement("span",null,Lr||0,"%")),te.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),te.createElement("div",{className:Yr.tip},te.createElement(Bo.Z,{getPopupContainer:ho=>ho.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:hn,alt:""})))),ko=Lr=>te.createElement("div",{className:Yr.mainSucceed},te.createElement("img",{src:Un,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),te.createElement("div",{className:Yr.tip},te.createElement(Bo.Z,{getPopupContainer:ho=>ho.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:hn,alt:""}))),te.createElement("div",{className:Yr.del,onClick:()=>fi(Lr.name,Lr.loaded==100)},te.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Gi=()=>te.createElement(te.Fragment,null,br==null?void 0:br.map((Lr,ho)=>te.createElement(te.Fragment,{key:ho},Lr.loaded==100?ko(Lr):hi(Lr.loaded)))),fa=()=>{ae.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:Re})},wi={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:Lr=>{const $o=Lr.name.toLowerCase();return $o&&$o.indexOf(".avi")==-1&&$o.indexOf(".flv")==-1&&$o.indexOf(".f4v")==-1&&$o.indexOf(".m4v")==-1&&$o.indexOf(".mov")==-1&&$o.indexOf(".mp4")==-1&&$o.indexOf(".rmvb")==-1&&$o.indexOf(".swf")==-1&&$o.indexOf(".webm")==-1&&$o.indexOf(".wmv")==-1?(pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):Lr.size>1024*1024*1024?(pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):br!=null&&br.find(Zo=>Zo.name===Lr.name)?(pe.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},onBeginInitFile:Lr=>{yo([{name:Lr.filename,loaded:0}])},onComplete:Lr=>{yo([{name:Lr.filename,loaded:Lr.percent,video_id:Lr.id}])},onError:()=>{yo([])},onProgress:Lr=>{yo([{name:Lr.filename,loaded:Lr.percent}])},chunkSize:1024*1024*2,options:{user_id:(_n=kr==null?void 0:kr.userInfo)==null?void 0:_n.user_id}},Go=br==null?void 0:br.length;return te.createElement("div",{className:Yr.listForm},te.createElement("header",null,ir?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),te.createElement("section",{className:Yr.scroll,id:"sss"},te.createElement("div",{className:Yr.formWrap}," ",te.createElement(bt.default,{form:Sn,scrollToFirstError:!0,layout:"vertical",onValuesChange:Di,onFinish:so},te.createElement(bt.default.Item,{name:"name",label:"\u6807\u9898:",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"}]},te.createElement(Ze.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((rn=Xt.name)==null?void 0:rn.length)||0}/60`})),te.createElement(bt.default.Item,{name:"content",label:"\u5185\u5BB9:"},te.createElement(pr.Z,{defaultValue:Xt.content||"",watch:!0})))),te.createElement("div",{className:Yr.upload},Go?Gi():$n())),te.createElement("div",{className:Yr.btns},te.createElement(wt.ZP,{onClick:fa,type:"primary",ghost:!0},"\u5173\u95ED"),te.createElement(wt.ZP,{loading:Dr,disabled:kn,onClick:()=>Sn.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Jn={flex_box_center:"flex_box_center___Udvu8",flex_space_between:"flex_space_between___WNLp1",flex_box_vertical_center:"flex_box_vertical_center___ecch5",flex_box_center_end:"flex_box_center_end___cu_DJ",flex_box_column:"flex_box_column___zF2CU",listDetails:"listDetails___HpDwH",head:"head___wipEz",name:"name___qdH8S",title:"title___B0yUa",a:"a___LB6ZS",b:"b___yvOON",tag:"tag___bRCso",btn:"btn___akBxg",scroll:"scroll___JKC_q",video:"video___nEr4F",html:"html___GDNSx",g:"g___LSOhO",btns:"btns___Ci727"},or=ee(46303),Jr=Object.defineProperty,bo=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,co=(Re,je,We)=>je in Re?Jr(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,vo=(Re,je)=>{for(var We in je||(je={}))Zr.call(je,We)&&co(Re,We,je[We]);if(bo)for(var We of bo(je))ao.call(je,We)&&co(Re,We,je[We]);return Re};const Rr=Re=>React.createElement("svg",vo({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Re),React.createElement("defs",null,React.createElement("path",{id:"jx_svg__a",d:"M6.385.257c.616-.343 1.616-.342 2.23 0l5.27 2.94C14.501 3.538 15 4.38 15 5.071v5.856c0 .692-.501 1.533-1.115 1.876l-5.27 2.939c-.616.343-1.616.342-2.23 0l-5.27-2.94C.499 12.462 0 11.622 0 10.929V5.072C0 4.38.501 3.54 1.115 3.196Zm1.423 3.817c-.169-.341-.446-.341-.615 0L6.38 5.717c-.169.341-.616.665-.994.72l-1.82.264c-.378.055-.464.317-.19.583l1.317 1.278c.273.266.444.79.38 1.165l-.31 1.806c-.066.376.158.538.496.36l1.628-.853c.338-.177.89-.177 1.23 0l1.627.853c.337.177.561.015.497-.36l-.31-1.806c-.065-.375.105-.899.379-1.165l1.316-1.278c.274-.266.188-.529-.19-.583l-1.819-.264c-.377-.054-.825-.378-.994-.72Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"jx_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#jx_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#jx_svg__a"}),React.createElement("circle",{cx:-1.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"}),React.createElement("circle",{cx:-2.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"})));var qr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",Eo=Object.defineProperty,ii=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,zo=(Re,je,We)=>je in Re?Eo(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,zi=(Re,je)=>{for(var We in je||(je={}))uo.call(je,We)&&zo(Re,We,je[We]);if(ii)for(var We of ii(je))ui.call(je,We)&&zo(Re,We,je[We]);return Re};const Mi=Re=>React.createElement("svg",zi({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Re),React.createElement("defs",null,React.createElement("path",{id:"gf_svg__a",d:"m8 0 1.857 1.073h2.146l1.071 1.854L14.931 4v2.144L16 8l-1.069 1.857V12l-1.858 1.072-1.071 1.856H9.857L8 16l-1.855-1.073H4l-1.072-1.856L1.072 12V9.857L0 8l1.072-1.856V4l1.857-1.073 1.072-1.854h2.145L8 0Zm2.91 6.385H4.796V12h1.246v-.451h4.026v.435h1.247V9.196H6.043v-.515h4.866V6.385Zm-.84 3.681v.613H6.042v-.613h4.026ZM9.705 7.24v.588H6.043v-.588h3.663ZM8.615 4l-1.48.137c.055.133.12.284.192.453l.076.175H4v1.426h1.195v-.483h5.61v.483H12V4.765H8.883c-.078-.23-.148-.43-.21-.602L8.616 4Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"gf_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#gf_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#gf_svg__a"}),React.createElement("circle",{cx:.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"}),React.createElement("circle",{cx:-.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"})));var mi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",So=Object.defineProperty,Co=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,Ai=(Re,je,We)=>je in Re?So(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Oo=(Re,je)=>{for(var We in je||(je={}))Xo.call(je,We)&&Ai(Re,We,je[We]);if(Co)for(var We of Co(je))vi.call(je,We)&&Ai(Re,We,je[We]);return Re};const Bi=Re=>React.createElement("svg",Oo({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Re),React.createElement("title",null,"\u5927\u70B9\u8D5E"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M3.566 19.08V8.134c0-.443-.318-.802-.71-.802H1.34c-.73 0-1.322.67-1.322 1.496v9.558c0 .827.593 1.496 1.322 1.496h1.515c.392 0 .71-.36.71-.802Z",fill:"#A3D3FF"}),React.createElement("path",{d:"M4.585 19.303V7.9c0-.263.188-.495.459-.559.955-.229 3.147-1.049 4.08-3.848.567-2.451 1.182-3.607 3.008-3.469 1.826.139 1.948 1.804 1.948 2.312v3.93s-.148.602.468.649c.617.046 5.426 0 5.426 0s2.639-.042 1.8 3.031c-.73 2.673-2.173 6.974-2.537 8.05a2.324 2.324 0 0 1-.324.626c-.353.483-1.094 1.258-2.228 1.258H5.201c-.341.002-.616-.257-.616-.577Z",fill:"#FFF"})));var Ri="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Hi={flex_box_center:"flex_box_center___Fl60v",flex_space_between:"flex_space_between___bECvI",flex_box_vertical_center:"flex_box_vertical_center___NasnL",flex_box_center_end:"flex_box_center_end___llsAF",flex_box_column:"flex_box_column___KaTPF",discuss:"discuss___fk6PE",reply:"reply___pOmly",pagination:"pagination___qEsHX"},Wi=ee(71230),Qo=ee(15746),Si={flex_box_center:"flex_box_center___qGmgZ",flex_space_between:"flex_space_between___PeDhE",flex_box_vertical_center:"flex_box_vertical_center___avs2o",flex_box_center_end:"flex_box_center_end___bpXQB",flex_box_column:"flex_box_column___bc5wd",discussItem:"discussItem___zcesj",wrap:"wrap___ezVW4",list:"list___EEOWp",btns:"btns___Niwl7",secondLevelDiscuss:"secondLevelDiscuss___TXG1b",line:"line___ejh2a",thirdlyLevelDiscuss:"thirdlyLevelDiscuss___HRI5Q"},ai=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())});const yi=({id:Re,cb:je})=>{const[We,ir]=(0,te.useState)("");return te.createElement("aside",{className:"mt10"},te.createElement(pr.Z,{defaultValue:We,id:"writeForumsReviewId",onChange:_n=>{ir(_n)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Wi.Z,null,te.createElement(Qo.Z,{flex:"1"}),te.createElement(Qo.Z,null,te.createElement(wt.ZP,{type:"primary",size:"middle",onClick:()=>ai(void 0,null,function*(){We===""?pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):je(Re,We)})},"\u53D1\u9001"))))},aa=({data:Re})=>{var je;return te.createElement("div",{className:Si.thirdlyLevelDiscuss},te.createElement("span",{className:"c-grey-333"},te.createElement("span",{className:"font 14 c-light-primary"},(je=Re==null?void 0:Re.author)==null?void 0:je.name),"@",te.createElement("span",{className:"font 14 c-light-primary"},Re==null?void 0:Re.parent_name),":"),te.createElement(et.Z,{value:Re==null?void 0:Re.content}))},ca=({data:Re,onReplyDiscuss:je,thirdlyReply:We,setThirdlyReply:ir})=>{var _n,rn,Sn,Xt;const mn=(0,Or.eY)();return console.log(mn,"user"),te.createElement("div",{className:Si.list},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((_n=Re==null?void 0:Re.author)==null?void 0:_n.image_url)}),te.createElement("div",{className:Si.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333"},(rn=Re==null?void 0:Re.author)==null?void 0:rn.name),(mn==null?void 0:mn.login)!==((Sn=Re==null?void 0:Re.author)==null?void 0:Sn.login)&&te.createElement("span",{onClick:()=>ir(Re==null?void 0:Re.id),className:"c-grey-999 current",style:{float:"right"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),te.createElement("span",null,"\u56DE\u590D"))),te.createElement(et.Z,{value:Re==null?void 0:Re.content}),(Xt=Re==null?void 0:Re.children)==null?void 0:Xt.map(kn=>te.createElement(aa,{key:kn.id,data:kn})),We===(Re==null?void 0:Re.id)&&te.createElement("div",null,te.createElement(yi,{id:Re==null?void 0:Re.id,cb:je}),te.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>ir(null),className:"c-light-primary current"},te.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),te.createElement("div",{className:Si.line})))};var _i=({data:Re,onReplyDiscuss:je,secondReply:We,setSecondReply:ir,thirdlyReply:_n,setThirdlyReply:rn,onPlusDiscuss:Sn})=>{var Xt,mn,kn,wo;const[Dr,To]=(0,te.useState)(!1);return console.log(Re,"data"),te.createElement("div",{className:Si.discussItem},te.createElement("div",{className:Si.list},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((Xt=Re==null?void 0:Re.author)==null?void 0:Xt.image_url)}),te.createElement("div",{className:Si.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333 mr30"},(mn=Re==null?void 0:Re.author)==null?void 0:mn.name),te.createElement("span",{className:"c-grey-999"},Re==null?void 0:Re.time)),te.createElement(et.Z,{value:Re==null?void 0:Re.content}),te.createElement("div",{className:Si.btns},te.createElement("div",{onClick:()=>Sn(Re==null?void 0:Re.id),className:Re!=null&&Re.user_praise?"c-light-primary":"c-grey-999"},te.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),te.createElement("span",null,Re==null?void 0:Re.praise_count)),te.createElement("div",{onClick:()=>{var br;((br=Re==null?void 0:Re.children)==null?void 0:br.length)!==0&&(ir(null),To(!Dr))},style:{color:Dr?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),te.createElement("span",null,Dr?"\u6536\u8D77\u8BC4\u8BBA":(kn=Re==null?void 0:Re.children)==null?void 0:kn.length)),te.createElement("div",{onClick:()=>{To(!1),ir(We===(Re==null?void 0:Re.id)?null:Re==null?void 0:Re.id)},style:{color:We===(Re==null?void 0:Re.id)?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3"}),te.createElement("span",null,We===(Re==null?void 0:Re.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),We===(Re==null?void 0:Re.id)&&te.createElement(yi,{id:Re==null?void 0:Re.id,cb:(br,yo)=>{je(br,yo),To(!0)}}),Dr&&te.createElement("div",{className:Si.secondLevelDiscuss},(wo=Re==null?void 0:Re.children)==null?void 0:wo.map(br=>te.createElement(ca,{thirdlyReply:_n,setThirdlyReply:rn,key:br.id,data:br,onReplyDiscuss:je}))))))},Ki=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),Ea=({identifier:Re,active:je,onOk:We})=>{const[ir,_n]=(0,te.useState)(""),[rn,Sn]=(0,te.useState)(1),[Xt,mn]=(0,te.useState)([]),[kn,wo]=(0,te.useState)(0),[Dr,To]=(0,te.useState)(null),[br,yo]=(0,te.useState)(null);(0,te.useEffect)(()=>{kr(1),Sn(1)},[je]);const kr=so=>Ki(void 0,null,function*(){const fi=yield Dt({container_type:"QuestionSolutionArticle",container_identifier:je,limit:5,page:so});fi!=null&&fi.comments&&(mn((fi==null?void 0:fi.comments)||[]),Sn(so),wo(fi==null?void 0:fi.disscuss_count))}),bi=()=>Ki(void 0,null,function*(){if(ir===""){pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const so=yield jr({comments:{content:ir},container_type:"QuestionSolutionArticle",container_identifier:je});so!=null&&so.discuss&&(_n(""),kr(rn),We())}),fo=(so,fi,$n)=>Ki(void 0,null,function*(){const hi=yield Gn({container_type:"QuestionSolutionArticle",container_identifier:je,comments:{content:fi,parent_id:so}});To(null),yo(null),kr(rn)}),Fo=so=>Ki(void 0,null,function*(){const fi=yield Rn(so);kr(rn)}),Di=so=>{Sn(so),kr(so)};return te.createElement("div",{className:Hi.discuss},te.createElement("aside",{className:Hi.reply,style:{borderWidth:kn?1:0}},te.createElement(pr.Z,{defaultValue:ir,id:"writeForumsReviewId",onChange:so=>{_n(so)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Wi.Z,null,te.createElement(Qo.Z,{flex:"1"}),te.createElement(Qo.Z,null,te.createElement(wt.ZP,{type:"primary",size:"middle",onClick:()=>bi()},"\u53D1\u9001")))),Xt==null?void 0:Xt.map(so=>te.createElement(_i,{secondReply:Dr,setSecondReply:To,thirdlyReply:br,setThirdlyReply:yo,key:so.id,data:so,onReplyDiscuss:fo,onPlusDiscuss:Fo})),te.createElement(Ht.Z,{className:Hi.pagination,showTotal:so=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},so),"\u6761\u6570\u636E"),current:rn,onChange:Di,total:kn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Ca=ee(6104),Na=Object.defineProperty,va=Object.getOwnPropertySymbols,ua=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,Oa=(Re,je,We)=>je in Re?Na(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Ba=(Re,je)=>{for(var We in je||(je={}))ua.call(je,We)&&Oa(Re,We,je[We]);if(va)for(var We of va(je))sa.call(je,We)&&Oa(Re,We,je[We]);return Re},is=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),Ka=({active:Re,identifier:je,onAssist:We,onEdit:ir,onArticlesSkip:_n,onClose:rn,onOk:Sn,onDelete:Xt,detailsIndex:mn,btnShowStatus:kn})=>{var wo,Dr,To,br,yo,kr,bi,fo,Fo,Di;const[so,fi]=(0,te.useState)(!0),[$n,hi]=(0,te.useState)({});(0,te.useEffect)(()=>{Re&&ko()},[Re,mn]);const ko=(Go=!0)=>is(void 0,null,function*(){Go&&fi(!0);const Lr=yield(0,fe.wO)(je,{active:Re});(Lr==null?void 0:Lr.status)===0&&hi((Lr==null?void 0:Lr.data)||{}),fi(!1)}),Gi=Go=>is(void 0,null,function*(){const Lr=yield(0,fe.qe)(je,Ba({active:Re},Go));(Lr==null?void 0:Lr.status)===0&&(ko(!1),Sn())}),fa=Go=>is(void 0,null,function*(){(yield(0,fe.Rg)(je,{active:Go==null?void 0:Go.id})).status===0&&(ko(!1),Sn())}),Sr=Go=>{ae.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>Xt(Go)})},wi=()=>{ko(!1),Sn()};return te.createElement("div",{className:Jn.listDetails},te.createElement(or.Z,{className:"pt20 pl20 pr20",loading:so,active:!0,paragraph:{rows:5}},te.createElement("div",{className:Jn.head},te.createElement("div",{className:Jn.name},te.createElement("div",{title:$n==null?void 0:$n.name,className:Jn.title},$n==null?void 0:$n.name),($n==null?void 0:$n.is_authority)&&te.createElement("div",{className:Jn.b},"\u5B98\u65B9"),($n==null?void 0:$n.is_excellent)&&te.createElement("div",{className:Jn.a},"\u7CBE\u9009")),te.createElement("div",{className:Jn.tag},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+($n==null?void 0:$n.image_url)}),te.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},$n==null?void 0:$n.username),te.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",pn()($n==null?void 0:$n.created_at).format("YYYY-MM-DD")),te.createElement("span",null,te.createElement("img",{src:Vr}),te.createElement("span",null,$n==null?void 0:$n.praises_count)),te.createElement("span",null,te.createElement("img",{src:xi}),te.createElement("span",null,$n==null?void 0:$n.discusses_count)),te.createElement("span",null,te.createElement("img",{src:_r}),te.createElement("span",null,$n==null?void 0:$n.viewed_count)),te.createElement("div",{className:Jn.btn},((0,Or.Ny)()||($n==null?void 0:$n.is_self))&&te.createElement(te.Fragment,null,te.createElement(wt.ZP,{onClick:()=>Sr($n),type:"primary",ghost:!0},"\u5220\u9664"),te.createElement(wt.ZP,{onClick:()=>ir($n),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Or.Ny)()&&te.createElement(wt.ZP,{onClick:()=>Gi({is_authority:!($n!=null&&$n.is_authority)}),type:"primary"},te.createElement("img",{src:mi}),$n!=null&&$n.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Or.Ny)()&&te.createElement(wt.ZP,{onClick:()=>Gi({is_excellent:!($n!=null&&$n.is_excellent)}),type:"primary"},te.createElement("img",{src:qr}),$n!=null&&$n.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),te.createElement("div",{className:Jn.scroll},((Dr=(wo=$n==null?void 0:$n.videos)==null?void 0:wo[0])==null?void 0:Dr.id)&&te.createElement("div",{className:Jn.video},te.createElement(he.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((br=(To=$n==null?void 0:$n.videos)==null?void 0:To[0])!=null&&br.transcoded)},te.createElement(Ca.Z,{poster:(kr=(yo=$n==null?void 0:$n.videos)==null?void 0:yo[0])==null?void 0:kr.cover_url,src:((fo=(bi=$n==null?void 0:$n.videos)==null?void 0:bi[0])==null?void 0:fo.play_url)||"",videoId:(Di=(Fo=$n==null?void 0:$n.videos)==null?void 0:Fo[0])==null?void 0:Di.id,logWatchHistory:()=>{}}))),te.createElement(et.Z,{className:Jn.html,value:($n==null?void 0:$n.content)||""}),te.createElement("div",{onClick:()=>fa($n),className:Jn.g},te.createElement("img",{className:"mr10",src:($n!=null&&$n.user_liker,Ri)}),te.createElement("span",null,$n==null?void 0:$n.praises_count)),te.createElement(Ea,{onOk:wi,active:Re,identifier:je})),te.createElement("div",{className:Jn.btns},te.createElement(wt.ZP,{onClick:()=>rn(),type:"primary",ghost:!0},"\u5173\u95ED"),kn[0]&&te.createElement(wt.ZP,{onClick:Go=>_n(Go,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),kn[1]&&te.createElement(wt.ZP,{onClick:Go=>_n(Go,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},_s=Object.defineProperty,as=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable,Ra=(Re,je,We)=>je in Re?_s(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,ss=(Re,je)=>{for(var We in je||(je={}))Va.call(je,We)&&Ra(Re,We,je[We]);if(as)for(var We of as(je))Fa.call(je,We)&&Ra(Re,We,je[We]);return Re};const ds=Re=>React.createElement("svg",ss({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Re),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M13.727 0C14.983 0 16 .895 16 2v12c0 1.105-1.017 2-2.273 2H2.273C1.017 16 0 15.105 0 14V2C0 .895 1.017 0 2.273 0h11.454ZM7.464 11H2.955c-.266 0-.513.19-.646.5s-.133.69 0 1c.133.31.38.5.646.5h4.509c.411 0 .745-.448.745-1s-.334-1-.745-1Zm4-3.5H2.955c-.411 0-.745.448-.745 1s.334 1 .745 1h8.509c.412 0 .746-.448.746-1s-.334-1-.746-1ZM3.71 2.75a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#7DC1FF",fillRule:"nonzero",xlinkHref:"#a_svg__a"}),React.createElement("circle",{cx:1.5,cy:.5,r:16.5,fill:"#A3D3FF",fillRule:"nonzero",mask:"url(#a_svg__b)"}),React.createElement("ellipse",{cx:1.5,cy:-.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12}),React.createElement("ellipse",{cx:-2.5,cy:-4,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12})));var Ya="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Ts=ee(28575),Ds=ee(33463),Is=Object.defineProperty,Bs=Object.defineProperties,Ns=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,$a=(Re,je,We)=>je in Re?Is(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Ui=(Re,je)=>{for(var We in je||(je={}))Qi.call(je,We)&&$a(Re,We,je[We]);if(gs)for(var We of gs(je))Ro.call(je,We)&&$a(Re,We,je[We]);return Re},wa=(Re,je)=>Bs(Re,Ns(je)),Sa=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),Qa=({identifier:Re,tabStatus:je,setFilterListTotal:We,setListStatus:ir})=>{const _n={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[rn,Sn]=(0,te.useState)(Ui({},_n));const[Xt,mn]=(0,te.useState)(!1),[kn,wo]=(0,te.useState)(0),[Dr,To]=(0,te.useState)(1),[br,yo]=(0,te.useState)(null),[kr,bi]=(0,te.useState)([]),[fo,Fo]=(0,te.useState)([!0,!0]),[Di,so]=(0,te.useState)(0),fi=(0,te.useRef)(null);(0,te.useEffect)(()=>{ho()},[je]),(0,te.useEffect)(()=>{$n()},[br]),(0,te.useEffect)(()=>{ko(Ui({},_n)),ho()},[Re]),(0,te.useEffect)(()=>(window.addEventListener("resize",hi),ir(Di),()=>{window.removeEventListener("resize",hi)}),[Di]);const $n=()=>Sa(void 0,null,function*(){if(!br){Fo([!0,!0]);return}const Hr=[!0,!0],Ni=kr==null?void 0:kr.findIndex(ya=>ya.id===br);Ni===0&&rn.page===1&&(Hr[0]=!1),(rn.page-1)*rn.limit+(Ni+1)===rn.total&&(Hr[1]=!1),Fo(Hr)}),hi=()=>{var Hr;if(Di){const Ni=window.innerWidth-((Hr=fi.current)==null?void 0:Hr.clientWidth);wo(Ni)}},ko=Hr=>Sa(void 0,null,function*(){var Ni,ya,ls;mn(!0);const _a=yield(0,fe.WH)(Re,Hr);return(_a==null?void 0:_a.status)===0&&(bi(((Ni=_a==null?void 0:_a.data)==null?void 0:Ni.articles)||[]),Sn(wa(Ui({},Hr),{total:(ya=_a==null?void 0:_a.data)==null?void 0:ya.articles_count})),We((ls=_a==null?void 0:_a.data)==null?void 0:ls.articles_count)),mn(!1),_a}),Gi=()=>{(rn==null?void 0:rn.sort_direction)===null?rn.sort_direction="asc":(rn==null?void 0:rn.sort_direction)==="asc"?rn.sort_direction="desc":(rn==null?void 0:rn.sort_direction)==="desc"&&(rn.sort_direction=null),rn.page=1,ho(),Sn(Ui({},rn)),ko(rn)},fa=()=>{rn.page=1,rn.search=rn==null?void 0:rn.save_search,ho(),Sn(Ui({},rn)),ko(rn)},Sr=()=>{var Hr;const Ni=document.getElementsByClassName("btn-resize");Ni[0].style.visibility="hidden";const ya=window.innerWidth-((Hr=fi.current)==null?void 0:Hr.clientWidth);wo(ya)},wi=()=>{Sr(),so(1)},Go=Hr=>{Sr(),yo(Hr==null?void 0:Hr.id),so(3)},Lr=Hr=>{Sr(),yo(Hr==null?void 0:Hr.id),so(2)},ho=()=>{const Hr=document.getElementsByClassName("btn-resize");Hr[0].style.visibility="visible",wo(0),so(0),yo(null)},$o=Hr=>{so(3),yo(Hr),rn.page=1,Sn(Ui({},rn)),ko(rn)},Zo=Hr=>{so(3),yo(Hr),Sn(Ui({},rn)),ko(rn)},Ls=Hr=>{Sn(Ui({},rn)),ko(rn)},hs=Hr=>Sa(void 0,null,function*(){(yield(0,fe.Rg)(Re,{active:Hr==null?void 0:Hr.id})).status===0&&(ko(rn),To(Dr+1))}),ts=Hr=>Sa(void 0,null,function*(){(yield(0,fe.rL)(Re,{active:Hr==null?void 0:Hr.id})).status===0&&(ko(rn),To(Dr+1))}),xs=Hr=>Sa(void 0,null,function*(){(yield(0,fe.de)(Re,{active:Hr==null?void 0:Hr.id})).status===0&&(ho(),ko(rn))}),ja=Hr=>{rn.page=Hr,Sn(Ui({},rn)),ko(rn)},ms=(Hr,Ni)=>Sa(void 0,null,function*(){var ya,ls,_a,Ta;const za=kr==null?void 0:kr.findIndex(Ji=>Ji.id===br);if(console.log(za,Ni,22),Ni==="prev"){if(za===void 0){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(za===0){if(rn.page===1){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(rn.page!==1){rn.page=rn.page-1,Sn(Ui({},rn));const Ji=yield ko(rn);if((Ji==null?void 0:Ji.status)===0){const Ee=(_a=Ji==null?void 0:Ji.data)==null?void 0:_a.articles[((ls=(ya=Ji==null?void 0:Ji.data)==null?void 0:ya.articles)==null?void 0:ls.length)-1];yo(Ee==null?void 0:Ee.id),console.log(Hr.target,555)}}}else{const Ji=kr[za-1];yo(Ji==null?void 0:Ji.id)}}if(Ni==="next"){if(za===void 0){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((rn.page-1)*rn.limit+(za+1)===rn.total){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(za+1===rn.limit){rn.page=rn.page+1,Sn(Ui({},rn));const Ji=yield ko(rn);if((Ji==null?void 0:Ji.status)===0){const Ee=(Ta=Ji==null?void 0:Ji.data)==null?void 0:Ta.articles[0];yo(Ee==null?void 0:Ee.id)}}else{const Ji=kr[za+1];yo(Ji==null?void 0:Ji.id)}}});return te.createElement("div",{className:it.wrap,ref:fi},te.createElement("div",{className:it.head},te.createElement("div",{className:it.sort,onClick:Gi},te.createElement("span",null,"\u6700\u65B0"),te.createElement("aside",null,te.createElement(Ts.Z,{style:{color:(rn==null?void 0:rn.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),te.createElement(Ds.Z,{style:{color:(rn==null?void 0:rn.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),te.createElement(Ze.default.Search,{value:rn.save_search,className:it["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Hr=>{rn.save_search=Hr.target.value,Sn(Ui({},rn))},onSearch:fa}),te.createElement("div",{onClick:wi,className:it.btn},te.createElement("img",{src:Ya}),"\u5199\u9898\u89E3")),te.createElement("div",{className:it.listWarp},te.createElement(he.Z,{spinning:Xt,className:"mt20"},kr==null?void 0:kr.map((Hr,Ni)=>{let ya=!0;return Ni+1===kr.length&&Ni!==0&&(ya=!1),te.createElement(Qr,{active:br,key:Hr.id,data:Hr,showLine:ya,onClick:Go,onAssist:hs,onHide:ts})}),(kr==null?void 0:kr.length)===0&&te.createElement(Ye.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),te.createElement(Ht.Z,{className:it.pagination,showTotal:Hr=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},Hr),"\u6761\u6570\u636E"),total:rn.total,showSizeChanger:!1,current:rn==null?void 0:rn.page,onChange:ja,hideOnSinglePage:!0,showQuickJumper:!0}),Di>0&&te.createElement("div",{className:it.fixedRight,style:{width:kn}},Di===1&&te.createElement(jn,{identifier:Re,onClose:ho,onOk:$o}),Di===2&&te.createElement(jn,{active:br,identifier:Re,onClose:ho,onOk:Zo}),Di===3&&te.createElement(Ka,{btnShowStatus:fo,onArticlesSkip:ms,detailsIndex:Dr,active:br,identifier:Re,onClose:ho,onOk:Ls,onEdit:Lr,onAssist:hs,onDelete:xs})))},Ja={flex_box_center:"flex_box_center___BbEkt",flex_space_between:"flex_space_between___v3cDl",flex_box_vertical_center:"flex_box_vertical_center___wUFLn",flex_box_center_end:"flex_box_center_end___Tdr08",flex_box_column:"flex_box_column___fYHlj",wrap:"wrap___UAZFM",head:"head___Nl6hk",title:"title___Ir573",content:"content___xUewa",list:"list___oi2ig",footer:"footer___V3bwQ"},Ps=Object.defineProperty,bs=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Fs=Object.getOwnPropertySymbols,Zs=Object.prototype.hasOwnProperty,il=Object.prototype.propertyIsEnumerable,Ws=(Re,je,We)=>je in Re?Ps(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,qa=(Re,je)=>{for(var We in je||(je={}))Zs.call(je,We)&&Ws(Re,We,je[We]);if(Fs)for(var We of Fs(je))il.call(je,We)&&Ws(Re,We,je[We]);return Re},ks=(Re,je)=>bs(Re,Es(je)),Cs=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),sl=({visible:Re,onVisible:je,value:We,onChange:ir,setIndex:_n})=>{var rn;const Sn={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[Xt,mn]=(0,te.useState)(Sn);const[kn,wo]=(0,te.useState)([]),[Dr,To]=(0,te.useState)([]),[br,yo]=(0,te.useState)(!1),kr=(0,te.useRef)([]),bi=(0,te.useRef)(null),fo=(0,ve.useParams)();(0,te.useEffect)(()=>(fo!=null&&fo.id&&(bi.current=setInterval(()=>{Fo(30)},3e4)),()=>{clearInterval(bi.current)}),[]);const Fo=Sr=>Cs(void 0,null,function*(){const wi=yield(0,fe.uc)(fo==null?void 0:fo.id,{practice_time:Sr})});(0,te.useEffect)(()=>{ko(Xt),$n()},[]),(0,te.useEffect)(()=>(window.addEventListener("click",so),()=>{window.removeEventListener("click",so)}),[fo==null?void 0:fo.save_identifier,Re]),(0,te.useEffect)(()=>{const Sr=kr.current.findIndex($o=>$o.identifier===(fo==null?void 0:fo.save_identifier)),wi=kr.current[Sr-1],Go=kr.current[Sr+1],Lr=document.getElementById("oj-prev"),ho=document.getElementById("oj-next");wi?Lr.style.display="block":Lr.style.display="none",Go?ho.style.display="block":ho.style.display="none"},[fo==null?void 0:fo.save_identifier,kr.current]);const Di=(Sr,wi)=>{if(Sr.id===wi)return Sr;for(let Go=0,Lr=Sr;Lr=Lr.parentNode;Go++){if(Lr.id===wi)return Lr;if(Lr==document.documentElement)return!1}},so=Sr=>Cs(void 0,null,function*(){!Di(Sr.target,"oj-drawer")&&Re&&je(!1);const wi=kr.current.findIndex(ho=>ho.identifier===(fo==null?void 0:fo.save_identifier)),Go=kr.current[wi-1],Lr=kr.current[wi+1];if(Sr.target.id==="oj-prev"){if(!Go||wi===-1){pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}Sr.target.style.pointerEvents="none",Sr.target.style.cursor="not-allowed",yield Gi(Go==null?void 0:Go.identifier),_n("0"),setTimeout(()=>{Sr.target.style.pointerEvents="auto",Sr.target.style.cursor="pointer"},400)}if(Sr.target.id==="oj-next"||Sr.target.id==="oj-modal-next"){if(!Lr||wi===-1){pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}Sr.target.style.pointerEvents="none",Sr.target.style.cursor="not-allowed",yield Gi(Lr==null?void 0:Lr.identifier),_n("0"),setTimeout(()=>{Sr.target.style.pointerEvents="auto",Sr.target.style.cursor="pointer"},400)}});(0,te.useEffect)(()=>{ir(fo==null?void 0:fo.save_identifier);const Sr=Dr.findIndex(wi=>wi.some(Go=>Go.identifier===(fo==null?void 0:fo.save_identifier)));mn(Sr===-1?ks(qa({},Xt),{page:1}):ks(qa({},Xt),{page:Sr+1}))},[fo==null?void 0:fo.save_identifier,Dr]);const fi=Sr=>{Xt.page=1,Xt.tag_discipline_id=Sr,mn(qa({},Xt)),ko(Xt)},$n=()=>Cs(void 0,null,function*(){const Sr=yield(0,Kn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});wo(Sr.tag_disciplines||[])}),hi=Sr=>{Xt.page=1,Xt.difficulty=typeof Sr=="number"?Sr:null,mn(qa({},Xt)),ko(Xt)},ko=Sr=>Cs(void 0,null,function*(){var wi,Go;yo(!0);const Lr=yield(0,fe.KC)(Sr);if(Lr!=null&&Lr.practices_list){for(var ho=(wi=Lr==null?void 0:Lr.practices_list)==null?void 0:wi.length,$o=[],Zo=0;Zo<ho;Zo+=Xt==null?void 0:Xt.per_page)$o.push((Go=Lr==null?void 0:Lr.practices_list)==null?void 0:Go.slice(Zo,Zo+(Xt==null?void 0:Xt.per_page)));mn(ks(qa({},Xt),{total:Lr==null?void 0:Lr.practices_count})),kr.current=(Lr==null?void 0:Lr.practices_list)||[],To($o)}yo(!1)}),Gi=(Sr,wi)=>Cs(void 0,null,function*(){const Go=yield(0,Kn.ZP)(`/api/practices/${Sr}/start`,{method:"get"});(Go==null?void 0:Go.status)===0&&ve.history.push(`/problems/${Go==null?void 0:Go.identifier}/oj/${Sr}`)}),fa=Sr=>{Xt.page=Sr,mn(qa({},Xt))};return te.createElement("div",{className:Ja.wrap,id:"oj-drawer",style:{left:Re?0:-700}},te.createElement("div",{className:Ja.head},te.createElement("div",{className:Ja.title},"\u9898\u76EE\u5217\u8868"),te.createElement(Ze.default.Search,{value:Xt==null?void 0:Xt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:Sr=>{Xt.save_search=Sr.target.value,mn(qa({},Xt))},onSearch:()=>{Xt.page=1,Xt.search=Xt.save_search,mn(qa({},Xt)),ko(Xt)}}),te.createElement(le.default,{value:Xt==null?void 0:Xt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:Sr=>Sr.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:fi},kn.map(Sr=>te.createElement(le.default.Option,{key:Sr.id,value:Sr.id},Sr.name))),te.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:Sr=>Sr.parentNode,value:Xt==null?void 0:Xt.difficulty,onChange:hi},te.createElement(le.default.Option,{value:1},"\u7B80\u5355"),te.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),te.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),te.createElement("div",{className:Ja.content},te.createElement(he.Z,{spinning:br},(rn=Dr==null?void 0:Dr[Xt.page-1])==null?void 0:rn.map(Sr=>te.createElement("div",{key:Sr.identifier,className:Ja.list,onClick:wi=>Gi(Sr.identifier,wi)},te.createElement("i",{style:{visibility:We===Sr.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),te.createElement("span",{style:{fontWeight:We===Sr.identifier?"bold":400,color:We===Sr.identifier?"#ffffff":"#bac4cd"},title:Sr==null?void 0:Sr.name},Sr.name),(Sr==null?void 0:Sr.difficulty)===1&&te.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(Sr==null?void 0:Sr.difficulty)===2&&te.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(Sr==null?void 0:Sr.difficulty)===3&&te.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),te.createElement("div",{className:Ja.footer},te.createElement(Ht.Z,{showTotal:Sr=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},Sr),"\u6761\u6570\u636E"),total:Xt.total,pageSize:Xt==null?void 0:Xt.per_page,current:Xt==null?void 0:Xt.page,showSizeChanger:!1,onChange:fa,showQuickJumper:!0,hideOnSinglePage:!0})))},ll=({hack:Re,onTriggerPraise:je,topicId:We,page:ir,onPageChange:_n,user:rn,submitRecords:Sn,submitting:Xt,submitResult:mn})=>{const[kn]=(0,ve.useSearchParams)(),wo=(0,ve.useLocation)(),[Dr,To]=(0,te.useState)(kn.get("tab")||"0"),[br,yo]=(0,te.useState)(0),[kr,bi]=(0,te.useState)(0),[fo,Fo]=(0,te.useState)(0),[Di,so]=(0,te.useState)(),[fi,$n]=(0,te.useState)(!1);function hi(Gi){const fa=Gi.target.id;if(Dr==="3"&&fa!==Dr&&(kr===1||kr===2)){ae.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:()=>{To(fa)}});return}To(fa)}(0,te.useEffect)(()=>Zt.Z.subscribe("to-commit-info",()=>{To("1")}),[]);function ko(){To("2")}return te.createElement("div",{className:st["left-panel"]},te.createElement("ul",{className:`${st["s-navs"]} ${st["bg-white"]} ${st.b1}`},te.createElement("li",{className:"mr40 current"},te.createElement("img",{onClick:()=>$n(!0),src:bn})),te.createElement("li",{className:st["oj-mr"]},te.createElement("a",{className:Dr==="0"?st.active:"",id:"0",onClick:hi},"\u4EFB\u52A1\u63CF\u8FF0")),te.createElement("li",{className:st["oj-mr"]},te.createElement("a",{className:Dr==="3"?st.active:"",id:"3",onClick:hi},"\u9898\u89E3",fo?`(${fo})`:"")),te.createElement("li",{className:st["oj-mr"]},te.createElement("a",{className:Dr==="2"?st.active:"",id:"2",onClick:hi},"\u8BC4\u8BBA",br?`(${br})`:"")),te.createElement("li",null,te.createElement("a",{className:Dr==="1"?st.active:"",id:"1",onClick:hi},"\u63D0\u4EA4\u8BB0\u5F55"))),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},te.createElement(Xe,{hack:Re,onTriggerPraise:je,toDiscuss:ko})),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="1"?"":"hide"}`},Sn!=null&&Sn.records_count?te.createElement(Qe,{page:ir,onPageChange:_n,topicId:We,submitting:Xt,submitRecords:Sn,submitResult:mn}):te.createElement(Ye.Z,null)),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="2"?"":"hide"}`,style:{padding:0}},te.createElement(qe,{setDiscussTotal:yo,user:rn,identifier:Re.identifier,hack:Re,onTriggerPraise:je})),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="3"?"":"hide"}`,style:{padding:0}},te.createElement(Qa,{setListStatus:bi,setFilterListTotal:Fo,tabStatus:Dr,identifier:Re.identifier})),te.createElement(sl,{visible:fi,setIndex:To,onVisible:Gi=>$n(Gi),value:Di,onChange:Gi=>so(Gi)}))},cl=ee(88508),ul=ee(62522),Ks=ee(22707),js=ee(8861),dl=ee(96486),gl=ee.n(dl),es=ee(74855),Gr=ee(67294),zs=Object.defineProperty,Hs=Object.defineProperties,Vs=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,fl=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,Xs=(Re,je,We)=>je in Re?zs(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Pi=(Re,je)=>{for(var We in je||(je={}))fl.call(je,We)&&Xs(Re,We,je[We]);if(ws)for(var We of ws(je))Ys.call(je,We)&&Xs(Re,We,je[We]);return Re},na=(Re,je)=>Hs(Re,Vs(je)),Os=(Re,je)=>{var We={};for(var ir in Re)fl.call(Re,ir)&&je.indexOf(ir)<0&&(We[ir]=Re[ir]);if(Re!=null&&ws)for(var ir of ws(Re))je.indexOf(ir)<0&&Ys.call(Re,ir)&&(We[ir]=Re[ir]);return We},ga=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())});const{Countdown:Us}=de.default,Qs={Java:"java",C:"c",Python:"py","C++":"c"};var hl=(Re=>(Re[Re.SET_LOADING=0]="SET_LOADING",Re[Re.GET_DATA=1]="GET_DATA",Re[Re.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Re[Re.SET_DATA=3]="SET_DATA",Re[Re.SET_DEBUGING=4]="SET_DEBUGING",Re[Re.SET_SUBMITING=5]="SET_SUBMITING",Re[Re.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Re[Re.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Re[Re.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Re[Re.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Re[Re.SET_PAGE=10]="SET_PAGE",Re[Re.GET_LANGUAGE=11]="GET_LANGUAGE",Re[Re.GET_DRAWER=12]="GET_DRAWER",Re))(hl||{});function fs(){return new Date().getTime()}const Js={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:"",languageValue:"",languageList:[],drawerData:[]};function qs(Re,je){switch(je.type){case 1:return Pi(Pi({},Re),je.payload);case 3:return na(Pi({},Re),{data:je.payload});case 0:return na(Pi({},Re),{loading:je.payload});case 11:return na(Pi({},Re),{languageList:je.payload});case 12:return na(Pi({},Re),{drawerData:je.payload});case 9:return na(Pi({},Re),{showNote:je.payload});case 4:return na(Pi({},Re),{debuging:je.payload});case 5:return na(Pi({},Re),{submitting:je.payload});case 2:return na(Pi({},Re),{submitRecords:je.payload});case 10:return na(Pi({},Re),{submitRecordPage:je.payload});case 6:return na(Pi({},Re),{executingMessage:je.payload});case 7:return Pi(Pi({},Re),je.payload);case 8:return Pi(Pi({},Re),je.payload);default:throw new Error}}var el=({children:Re})=>{var je,We,ir,_n;const[rn,Sn]=(0,te.useReducer)(qs,Js),{id:Xt}=(0,ve.useParams)(),mn=(0,ve.useLocation)(),[kn]=(0,ve.useSearchParams)(),{languageValue:wo,languageList:Dr,loading:To,data:br,debugResult:yo,submitResult:kr,submitRecords:bi,submitRecordPage:fo,showNote:Fo,debuging:Di,submitting:so,executingMessage:fi}=rn,[$n,hi]=(0,te.useState)("#FFF"),[ko,Gi]=(0,te.useState)(null),[fa,Sr]=(0,te.useState)({}),[wi,Go]=(0,te.useState)(!1),Lr=(0,te.useRef)(null),ho=(0,te.useRef)(null),$o=br==null?void 0:br.user,Zo=br==null?void 0:br.hack;(0,te.useEffect)(()=>((0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,te.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,te.useEffect)(()=>{var ke;if(wi){const $e=document.getElementById("oj-next"),at=document.getElementById("oj-modal-next");((ke=$e==null?void 0:$e.style)==null?void 0:ke.display)==="none"?at.style.display="none":at.style.display="block"}},[wi]),(0,te.useEffect)(()=>{function ke(){return ga(this,null,function*(){var $e,at,mt;const lt=yield(0,fe.fu)(Xt);if(lt.status===401)document.location.href="/user/login";else{lt.hack=lt.practice,lt.hack.code=De.Base64.decode(($e=lt==null?void 0:lt.hack)==null?void 0:$e.code);const Et=`${$o==null?void 0:$o.login}-language`;localStorage.getItem(Et)&&(lt.hack.language=localStorage.getItem(Et)),ho.current=gl().cloneDeep(lt),ho.current.language=(at=lt==null?void 0:lt.hack)==null?void 0:at.language,Sn({type:1,payload:{loading:!1,data:lt}}),Sn({type:8,payload:{languageValue:(mt=lt==null?void 0:lt.hack)==null?void 0:mt.language}})}})}Xt&&ke()},[Xt]),(0,te.useEffect)(()=>{Sn({type:8,payload:{debugResult:void 0}}),ts(),Go(!1)},[Xt]),(0,te.useEffect)(()=>{clearTimeout(Lr.current)},[Xt]),(0,te.useEffect)(()=>{hs()},[Xt,fo]);const Ls=()=>{window.parent.postMessage("backExercise","*")};function hs(){return ga(this,null,function*(){try{const ke=yield(0,fe.zO)(Xt,{limit:15,page:fo});Sn({type:2,payload:ke})}catch(ke){console.log(ke)}})}function ts(){return ga(this,null,function*(){try{const ke=yield(0,fe.dd)(Xt);Sn({type:11,payload:ke==null?void 0:ke.data})}catch(ke){console.log(ke)}})}function xs(ke){Sn({type:10,payload:ke})}function ja(ke){return ga(this,null,function*(){var $e,at,mt;const lt=((mt=(at=($e=window==null?void 0:window.location)==null?void 0:$e.pathname)==null?void 0:at.split("/"))==null?void 0:mt[2])||Xt;return yield(0,fe.n4)(lt,ke||{code:De.Base64.encode(Zo.code),language:wo})})}function ms(){return ga(this,null,function*(){var ke;if(!Zo.code||((ke=Zo.code)==null?void 0:ke.trim())===""){pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}if(!so){Sn({type:5,payload:!0});try{if(Zt.Z.publish("to-commit-info"),(yield ja()).status===0){let xt=function(){return ga(this,null,function*(){const{status:en,data:Yt}=yield(0,fe.rX)(Xt,"submit"),On=fs()-Tt>(lt*Et+3)*1e3;if(en!==0&&!On&&setTimeout(xt,1e3),On){ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),Sn({type:5,payload:!1});return}if(en===0){Yt.status===2&&ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const xn=yield(0,fe.zO)(Xt,{limit:15,page:fo});Sn({type:8,payload:na(Pi({},rn),{submitResult:Yt,submitting:!1,submitRecords:xn})}),(Yt==null?void 0:Yt.status)===0&&Go(!0)}})},at={};const mt=yield(0,fe.bM)(Xt,at);if(mt.status===-1&&kn.get("exercisesId")){window.parent.location.href=`/classrooms/${kn.get("coursesId")}/exercise/${kn.get("exercisesId")}/detail`;return}const{time_limit:lt,test_case_size:Et}=Zo,Tt=fs();(mt==null?void 0:mt.status)>-1?xt():Sn({type:4,payload:!1})}}catch($e){Sn({type:5,payload:!1})}}})}function Hr(){return ga(this,null,function*(){var ke;if(!Zo.code||((ke=Zo.code)==null?void 0:ke.trim())===""){pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}rn.debuging=!0,Sn({type:4,payload:!0});try{if((yield ja()).status===0){let Tt=function(){return ga(this,null,function*(){const{status:xt,message:en,data:Yt}=yield(0,fe.rX)(Xt,"debug"),On=fs()-Et>(at+3)*1e3;if(xt!==0&&!On&&(Sn({type:6,payload:en}),setTimeout(Tt,1e3)),On){ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Sn({type:4,payload:!1});return}xt===0&&(Sn({type:4,payload:!1}),Yt.status===2&&ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Sn({type:7,payload:na(Pi({},rn),{debugResult:Yt,debuging:!1})}))})};const{time_limit:at}=Zo;let mt={input:encodeURIComponent(br.test_case.input)};const lt=yield(0,fe.MU)(Xt,mt);if(lt.status===-1&&kn.get("exercisesId")){window.parent.location.href=`/classrooms/${kn.get("coursesId")}/exercise/${kn.get("exercisesId")}/detail`;return}const Et=fs();(lt==null?void 0:lt.status)>-1?Tt():Sn({type:4,payload:!1})}else Sn({type:4,payload:!1})}catch($e){console.log($e)}finally{}})}function Ni(ke){var $e;clearTimeout(Lr.current),Lr.current=setTimeout(()=>{var at;ja({code:De.Base64.encode(ke),language:(at=ho==null?void 0:ho.current)==null?void 0:at.language})},2e3),Sn({type:3,payload:na(Pi({},ho==null?void 0:ho.current),{hack:na(Pi({},($e=ho==null?void 0:ho.current)==null?void 0:$e.hack),{code:ke})})})}function ya(ke){let $e=ke.target.value;Sn({type:3,payload:na(Pi({},br),{test_case:{input:$e}})})}const ls=ke=>ga(void 0,null,function*(){var $e;if(Sn({type:0,payload:!0}),(yield ja()).status===0){Sn({type:8,payload:{languageValue:ke}}),ho.current.language=ke;const mt=`${$o==null?void 0:$o.login}-language`;localStorage.setItem(mt,ke);const lt=yield(0,fe.dd)(Xt);if(lt.status===0){const Et=($e=lt==null?void 0:lt.data)==null?void 0:$e.find(Tt=>Tt.language===ke);Ni(De.Base64.decode(Et.code))}setTimeout(()=>{Sn({type:0,payload:!1})},300)}});function _a(){return ga(this,null,function*(){try{const ke=yield(0,fe.H7)(Xt,{language:wo});ke.status===401?ve.history.replace("/login",{from:mn.pathname}):(Ni(De.Base64.decode(ke.code)),ts())}catch(ke){console.log(ke)}})}function Ta(){ae.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Gr.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Gr.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return ga(this,null,function*(){const ke=yield(0,fe.fi)(Xt,{language:wo});ke.status===401?ve.history.replace("/login",{from:mn.pathname}):Ni(De.Base64.decode(ke.code))})}})}function za(){Sn({type:9,payload:!0})}function Ji(){Sn({type:9,payload:!1})}function Ee(ke){return ga(this,null,function*(){yield(0,fe.MK)(Xt,ke),Sn({type:1,payload:{showNote:!1,data:na(Pi({},br),{hack:na(Pi({},Zo),{notes:ke.notes})})}})})}const we={input:(je=br==null?void 0:br.test_case)==null?void 0:je.input,is_file:(We=br==null?void 0:br.test_case)==null?void 0:We.is_file,language:((ir=ho.current)==null?void 0:ir.language)||(Zo==null?void 0:Zo.language),code:Zo==null?void 0:Zo.code,title:"main."+Qs[Zo==null?void 0:Zo.language],modify_code:Zo==null?void 0:Zo.modify_code,notes:Zo==null?void 0:Zo.notes,debugResult:yo,debuging:Di,submitting:so,executingMessage:fi,id:Xt,languageValue:wo,languageList:Dr,onChangeLanguage:ls,onCancelNote:Ji,onAddNote:Ee,showNote:Fo,onShowNote:za,onSubmitCode:ms,onChangeCode:Ni,onChangeInput:ya,onDebugCode:Hr,onResetCode:_a,onSyncCode:Ta,onUpdateCode:ja};function Oe(){return ga(this,null,function*(){const{praise_count:ke}=yield(0,fe.vl)(Zo.id,{container_type:"Hack",type:1});let $e=na(Pi({},br),{hack:na(Pi({},Zo),{praises_count:ke,user_praise:!Zo.user_praise})});Sn({type:3,payload:$e})})}const Be={topicId:Xt,submitResult:kr,submitRecords:bi,submitting:so,page:fo,onPageChange:xs,hack:Zo,user:br==null?void 0:br.user,onTriggerPraise:Oe};return console.log(br,ho==null?void 0:ho.current,"data--------"),Gr.createElement(Gr.Fragment,null,Gr.createElement(he.Z,{className:"oj-custom-large-spin",size:"large",spinning:To},br?Gr.createElement("div",{className:"oj-custom-warp"},Gr.createElement("header",{className:Ie.Z.header,style:{minWidth:1200}},Gr.createElement("div",null,Gr.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${$o.image_url}`,alt:"user",width:30}),Gr.createElement("span",null,$o.name)),Gr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Gr.createElement("div",null,Zo.name),Gr.createElement(cl.Z,{onChange:ke=>{},className:"font12 c-grey-999"})),Gr.createElement(es.CopyToClipboard,{text:`${(_n=window.location)==null?void 0:_n.origin}/problems/${Zo.identifier}/share`,onCopy:()=>pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Gr.createElement("span",{className:Ie.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Gr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Zo.edit_privilege?Gr.createElement(ve.Link,{className:Ie.Z.btn_back,to:`/problems/${Zo.identifier}/ojedit`,style:{marginRight:10}}," ",Gr.createElement(ue.Z,null)," \u7F16\u8F91"):null,Gr.createElement(ve.Link,{className:Ie.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Gr.createElement(be.Z,null),"\u9000\u51FA")),Gr.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Gr.createElement(ll,Pi({},Be)),rightChild:Gr.createElement(ml,Pi({},we))})):null),Gr.createElement(ae.default,{centered:!0,closable:!1,width:680,footer:null,open:wi,className:"oj-modal"},Gr.createElement("section",{className:"oj-modal-content"},Gr.createElement("div",{className:"oj-modal-head"},Gr.createElement("img",{src:ul,alt:""}),Gr.createElement("i",{onClick:()=>Go(!1),className:"iconfont icon-guanbi1"})),Gr.createElement("aside",null,Gr.createElement("img",{className:"mr30",src:js.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Gr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},kr==null?void 0:kr.execute_time,"s"),"\u4F18\u4E8E",Gr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(kr==null?void 0:kr.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Gr.createElement("aside",{className:"mb50"},Gr.createElement("img",{src:Ks.Z,className:"mr30"}),Gr.createElement("span",{className:"oj-modal-tt"},Gr.createElement("span",null,Gr.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Gr.createElement("span",{className:"c-light-primary"},kr==null?void 0:kr.execute_memory,"mb")),Gr.createElement("span",null,Gr.createElement("span",null))),"\u4F18\u4E8E",Gr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(kr==null?void 0:kr.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Gr.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Gs({languageValue:Re,languageList:je,onChangeLanguage:We,title:ir,modify_code:_n,onSyncCode:rn,onShowCodeSetting:Sn,onResetCode:Xt}){const mn=(0,ve.useLocation)(),kn=()=>{ae.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Gr.createElement(re.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Xt})};return Gr.createElement("div",{className:"action-bar"},Gr.createElement(le.default,{className:"oj-select",value:Re,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:We},je==null?void 0:je.map(wo=>Gr.createElement(le.default.Option,{key:wo.language,value:wo.language},wo.language))),Gr.createElement("span",null),Gr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:kn},Gr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Gr.createElement("a",{onClick:Sn},Gr.createElement("i",{className:"iconfont icon-shezhi"})))}function ml(Re){var je=Re,{id:We,input:ir,is_file:_n,showNote:rn,onShowNote:Sn,notes:Xt,onCancelNote:mn,onAddNote:kn,debugResult:wo,language:Dr,debuging:To,submitting:br,executingMessage:yo,code:kr,onSubmitCode:bi,onDebugCode:fo,onChangeCode:Fo,onChangeInput:Di,onUpdateCode:so}=je,fi=Os(je,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function $n(ko){return Gr.createElement(Gs,na(Pi({},fi),{onShowCodeSetting:ko}))}const hi={id:We,input:ir,debugResult:wo,debuging:To,is_file:_n,submitting:br,executingMessage:yo,onDebugCode:fo,onChangeCode:Fo,onSubmitCode:bi,onChangeInput:Di};return Gr.createElement("div",{className:"right-panel"},Gr.createElement(gt,{onUpdateCode:()=>{},language:Dr,value:kr,onChange:Fo,ActionBarRender:$n}),Gr.createElement("div",{className:`note-form-area ${rn?"active":""}`},Gr.createElement(rt,{onCancel:mn,notes:Xt,callback:kn})),Gr.createElement(tt.ZP,Pi({},hi)))}},94189:function(ot,Ge,ee){"use strict";ee.d(Ge,{h:function(){return te}});var te=(ue=>(ue[ue.NOMATCH=-1]="NOMATCH",ue[ue.OK=0]="OK",ue[ue.TIMEOUT=2]="TIMEOUT",ue[ue.PODFAILURE=3]="PODFAILURE",ue[ue.COMPILEFAILURE=4]="COMPILEFAILURE",ue[ue.EXECUTEFAILURE=5]="EXECUTEFAILURE",ue[ue.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ue))(te||{})},33227:function(ot,Ge,ee){"use strict";ee.d(Ge,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return he},MU:function(){return ve},Rg:function(){return oe},WH:function(){return a},X6:function(){return pe},bM:function(){return be},bx:function(){return y},dd:function(){return me},de:function(){return ce},fi:function(){return fe},fu:function(){return ue},gu:function(){return E},n4:function(){return se},qe:function(){return z},rL:function(){return ie},rX:function(){return ae},uc:function(){return ye},vl:function(){return re},wO:function(){return x},zO:function(){return de}});var te=ee(33170);function ue(_e){return(0,te.U2)(`mypractices/${_e}.json`,{hidePopLogin:!0})}function be(_e,xe){return(0,te.v_)(`mypractices/${_e}/code_submit.json`,xe)}function ve(_e,xe){return(0,te.v_)(`mypractices/${_e}/code_debug.json`,xe)}function de(_e,xe){return xe.language&&(xe.language=encodeURIComponent(xe.language)),(0,te.U2)(`mypractices/${_e}/submit_records.json`,xe)}function pe(_e){return(0,te.U2)("mypractices/record_detail.json",{id:_e})}function ae(_e,xe){return(0,te.U2)(`mypractices/${_e}/result.json`,{mode:xe})}function he(_e,xe){return(0,te.v_)(`mypractices/${_e}/add_notes.json`,xe)}function le(_e,xe){return(0,te.v_)(`mypractices/${_e}/restore_initial_code.json`,xe)}function fe(_e,xe){return(0,te.v_)(`mypractices/${_e}/sync_code.json`,xe)}function se(_e,xe){return(0,te.v_)(`mypractices/${_e}/update_code.json`,xe)}function me(_e){return(0,te.v_)(`mypractices/${_e}/initial_codes.json`)}function re(_e,xe){return(0,te.v_)(`discusses/${_e}/plus.json`,xe)}function ne(_e){return(0,te.U2)("practices/practices_list.json",_e)}function a(_e,xe){return(0,te.U2)(`practices/${_e}/question_solution_articles`,xe)}function y(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles`,xe)}function E(_e,xe){return(0,te.gz)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function b(_e,xe){return(0,te.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/edit`,xe)}function x(_e,xe){return(0,te.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function z(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/set_authority_or_excellent`,xe)}function oe(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/praise_or_treads`,xe)}function ie(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/hide`)}function ce(_e,xe){return(0,te.IV)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function ye(_e,xe){return(0,te.v_)(`mypractices/${_e}/update_practice_time_sum`,xe)}},93989:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return re}});var te=ee(67294),ue=ee(2453),be=ee(83062),ve=ee(57953),de=ee(71230),pe=ee(15746),ae=ee(28452),he=ee(71577),le=ee(35567),fe=ee(33170),se=ee(85725),me=(a,y,E)=>new Promise((b,x)=>{var z=ce=>{try{ie(E.next(ce))}catch(ye){x(ye)}},oe=ce=>{try{ie(E.throw(ce))}catch(ye){x(ye)}},ie=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(z,oe);ie((E=E.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,z]=(0,te.useState)(""),[oe,ie]=(0,te.useState)(!1);function ce(_e){z(_e)}function ye(){if(!x){ue.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),z("")}return(0,te.useEffect)(()=>{y!=a&&ie(!1)},[y]),te.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},te.createElement(le.Z,{miniToolbar:!0,startInit:y===a,defaultValue:x,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ce,extraUse:b&&te.createElement(be.Z,{color:"#fff",open:oe,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:oe,activeDiscussIndex:y,onChange:ce,setIsOpen:ie}),overlayStyle:{maxWidth:600}},te.createElement("a",{title:oe?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>ie(!oe)},te.createElement("i",{className:"iconfont icon-dianzan11"})))}),te.createElement("a",{onClick:ye,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,te.useState)(!1),[b,x]=(0,te.useState)([]),[z,oe]=(0,te.useState)(1);(0,te.useEffect)(()=>{a!=null&&a.isOpen?ie():(oe(1),x([]))},[a==null?void 0:a.isOpen]);const ie=()=>me(void 0,null,function*(){E(!0);const ce=yield(0,fe.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ce==null?void 0:ce.status)==0&&x(ce==null?void 0:ce.answer),E(!1)});return te.createElement(ve.Z,{spinning:y},te.createElement("div",{style:{color:"#000"}},te.createElement(se.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[z-1])||""}),te.createElement(de.Z,{justify:"end",align:"middle"},te.createElement(pe.Z,null,te.createElement(ae.Z,{simple:!0,current:z,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ce=>{oe(ce)}})),te.createElement(pe.Z,null,te.createElement(he.ZP,{onClick:()=>me(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[z-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},51959:function(ot,Ge,ee){"use strict";ee.d(Ge,{BU:function(){return ue},Dj:function(){return te},gH:function(){return be},vp:function(){return ve}});function te(de){try{de.mozRequestFullScreen?de.mozRequestFullScreen():de.webkitRequestFullScreen&&de.webkitRequestFullScreen()}catch(pe){console.log(pe,":e")}}function ue(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const be=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function ve(){var de=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",de),window.isFullScreen?window.isFullScreen:de!=null}},40471:function(ot,Ge,ee){"use strict";ee.d(Ge,{G:function(){return de},t:function(){return ve}});var te=ee(58971),ue=ee.n(te);const be=null;function ve(pe,ae){let he=ue().get("__ec");he||(he={}),he[pe]=ae,ue().set("__ec",he)}function de(pe,ae){let he=ue().get("__ec");return he?he[pe]===void 0?ae:he[pe]:ae}},24577:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Ei}});class te{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ge,Se){return ge.__proto__=Se,ge},Object.assign=Object.assign||function(ge){if(ge==null)throw new TypeError("Cannot convert undefined or null to object");let Se=Object(ge);for(let Pe=1;Pe<arguments.length;Pe++){let Le=arguments[Pe];if(Le!=null)for(let Ne in Le)Le.hasOwnProperty(Ne)&&(Se[Ne]=Le[Ne])}return Se},typeof self.Promise!="function"&&ee(82702).polyfill()}}te.install();var ue=te,be=ee(17187),ve=ee.n(be);class de{static e(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","error",Pe),de.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","info",Pe),de.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","warn",Pe),de.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","debug",Pe),de.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","verbose",Pe),de.ENABLE_VERBOSE&&console.log(Pe)}}de.GLOBAL_TAG="flv.js",de.FORCE_GLOBAL_TAG=!1,de.ENABLE_ERROR=!0,de.ENABLE_INFO=!0,de.ENABLE_WARN=!0,de.ENABLE_DEBUG=!0,de.ENABLE_VERBOSE=!0,de.ENABLE_CALLBACK=!1,de.emitter=new(ve());var pe=de;class ae{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(ge){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ge,this._totalBytes+=ge):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ge,this._totalBytes+=ge):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ge,this._totalBytes+=ge,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ge=(this._now()-this._lastCheckpoint)/1e3;return ge==0&&(ge=1),this._intervalBytes/ge/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ge=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ge/1024}}var he=ae;class le{constructor(ge){this._message=ge}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class fe extends le{constructor(ge){super(ge)}get name(){return"IllegalStateException"}}class se extends le{constructor(ge){super(ge)}get name(){return"InvalidArgumentException"}}class me extends le{constructor(ge){super(ge)}get name(){return"NotImplementedException"}}const re={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ne={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class a{constructor(ge){this._type=ge||"undefined",this._status=re.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=re.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===re.kConnecting||this._status===re.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(ge){this._onContentLengthKnown=ge}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ge){this._onURLRedirect=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}open(ge,Se){throw new me("Unimplemented abstract function!")}abort(){throw new me("Unimplemented abstract function!")}}let y={};function E(){let cn=self.navigator.userAgent.toLowerCase(),ge=/(edge)\/([\w.]+)/.exec(cn)||/(opr)[\/]([\w.]+)/.exec(cn)||/(chrome)[ \/]([\w.]+)/.exec(cn)||/(iemobile)[\/]([\w.]+)/.exec(cn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(cn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(cn)||/(webkit)[ \/]([\w.]+)/.exec(cn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(cn)||/(msie) ([\w.]+)/.exec(cn)||cn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(cn)||cn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(cn)||[],Se=/(ipad)/.exec(cn)||/(ipod)/.exec(cn)||/(windows phone)/.exec(cn)||/(iphone)/.exec(cn)||/(kindle)/.exec(cn)||/(android)/.exec(cn)||/(windows)/.exec(cn)||/(mac)/.exec(cn)||/(linux)/.exec(cn)||/(cros)/.exec(cn)||[],Pe={browser:ge[5]||ge[3]||ge[1]||"",version:ge[2]||ge[4]||"0",majorVersion:ge[4]||ge[2]||"0",platform:Se[0]||""},Le={};if(Pe.browser){Le[Pe.browser]=!0;let Ne=Pe.majorVersion.split(".");Le.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},Ne.length>1&&(Le.version.minor=parseInt(Ne[1],10)),Ne.length>2&&(Le.version.build=parseInt(Ne[2],10))}if(Pe.platform&&(Le[Pe.platform]=!0),(Le.chrome||Le.opr||Le.safari)&&(Le.webkit=!0),Le.rv||Le.iemobile){Le.rv&&delete Le.rv;let Ne="msie";Pe.browser=Ne,Le[Ne]=!0}if(Le.edge){delete Le.edge;let Ne="msedge";Pe.browser=Ne,Le[Ne]=!0}if(Le.opr){let Ne="opera";Pe.browser=Ne,Le[Ne]=!0}if(Le.safari&&Le.android){let Ne="android";Pe.browser=Ne,Le[Ne]=!0}Le.name=Pe.browser,Le.platform=Pe.platform;for(let Ne in y)y.hasOwnProperty(Ne)&&delete y[Ne];Object.assign(y,Le)}E();var b=y;class x extends a{static isSupported(){try{let ge=b.msedge&&b.version.minor>=15048,Se=b.msedge?ge:!0;return self.fetch&&self.ReadableStream&&Se}catch(ge){return!1}}constructor(ge,Se){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ge,this._config=Se,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ge,Se){this._dataSource=ge,this._range=Se;let Pe=ge.url;this._config.reuseRedirectedURL&&ge.redirectedURL!=null&&(Pe=ge.redirectedURL);let Le=this._seekHandler.getConfig(Pe,Se),Ne=new self.Headers;if(typeof Le.headers=="object"){let it=Le.headers;for(let un in it)it.hasOwnProperty(un)&&Ne.append(un,it[un])}let qe={method:"GET",headers:Ne,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let it in this._config.headers)Ne.append(it,this._config.headers[it]);ge.cors===!1&&(qe.mode="same-origin"),ge.withCredentials&&(qe.credentials="include"),ge.referrerPolicy&&(qe.referrerPolicy=ge.referrerPolicy),this._status=re.kConnecting,self.fetch(Le.url,qe).then(it=>{if(this._requestAbort){this._requestAbort=!1,this._status=re.kIdle;return}if(it.ok&&it.status>=200&&it.status<=299){if(it.url!==Le.url&&this._onURLRedirect){let Vt=this._seekHandler.removeURLParameters(it.url);this._onURLRedirect(Vt)}let un=it.headers.get("Content-Length");return un!=null&&(this._contentLength=parseInt(un),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,it.body.getReader())}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:it.status,msg:it.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+it.status+" "+it.statusText)}).catch(it=>{if(this._status=re.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:it.message});else throw it})}abort(){this._requestAbort=!0}_pump(ge){return ge.read().then(Se=>{if(Se.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=re.kError;let Pe=ne.EARLY_EOF,Le={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,Le);else throw new le(Le.msg)}else this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=re.kComplete,ge.cancel();this._status=re.kBuffering;let Pe=Se.value.buffer,Le=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,Le,this._receivedLength),this._pump(ge)}}).catch(Se=>{if(Se.code===11&&b.msedge)return;this._status=re.kError;let Pe=0,Le=null;if((Se.code===19||Se.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,Le={code:Se.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,Le={code:Se.code,msg:Se.message}),this._onError)this._onError(Pe,Le);else throw new le(Le.msg)})}}var z=x;class oe extends a{static isSupported(){try{let ge=new XMLHttpRequest;return ge.open("GET","https://example.com",!0),ge.responseType="moz-chunked-arraybuffer",ge.responseType==="moz-chunked-arraybuffer"}catch(ge){return pe.w("MozChunkedLoader",ge.message),!1}}constructor(ge,Se){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=ge,this._config=Se,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(ge,Se){this._dataSource=ge,this._range=Se;let Pe=ge.url;this._config.reuseRedirectedURL&&ge.redirectedURL!=null&&(Pe=ge.redirectedURL);let Le=this._seekHandler.getConfig(Pe,Se);this._requestURL=Le.url;let Ne=this._xhr=new XMLHttpRequest;if(Ne.open("GET",Le.url,!0),Ne.responseType="moz-chunked-arraybuffer",Ne.onreadystatechange=this._onReadyStateChange.bind(this),Ne.onprogress=this._onProgress.bind(this),Ne.onloadend=this._onLoadEnd.bind(this),Ne.onerror=this._onXhrError.bind(this),ge.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let qe=Le.headers;for(let it in qe)qe.hasOwnProperty(it)&&Ne.setRequestHeader(it,qe[it])}if(typeof this._config.headers=="object"){let qe=this._config.headers;for(let it in qe)qe.hasOwnProperty(it)&&Ne.setRequestHeader(it,qe[it])}this._status=re.kConnecting,Ne.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=re.kComplete}_onReadyStateChange(ge){let Se=ge.target;if(Se.readyState===2){if(Se.responseURL!=null&&Se.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(Se.responseURL);this._onURLRedirect(Pe)}if(Se.status!==0&&(Se.status<200||Se.status>299))if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+Se.status+" "+Se.statusText);else this._status=re.kBuffering}}_onProgress(ge){if(this._status===re.kError)return;this._contentLength===null&&ge.total!==null&&ge.total!==0&&(this._contentLength=ge.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let Se=ge.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onLoadEnd(ge){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===re.kError)return;this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(ge){this._status=re.kError;let Se=0,Pe=null;if(this._contentLength&&ge.loaded<this._contentLength?(Se=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Se=ne.EXCEPTION,Pe={code:-1,msg:ge.constructor.name+" "+ge.type}),this._onError)this._onError(Se,Pe);else throw new le(Pe.msg)}}var ie=oe;class ce extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let ge=new XMLHttpRequest;return ge.open("GET","https://example.com",!0),ge.responseType="ms-stream",ge.responseType==="ms-stream"}catch(ge){return Log.w("MSStreamLoader",ge.message),!1}}constructor(ge,Se){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=ge,this._config=Se,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(ge,Se){this._internalOpen(ge,Se,!1)}_internalOpen(ge,Se,Pe){this._dataSource=ge,Pe?this._currentRange=Se:this._totalRange=Se;let Le=ge.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Le=this._currentRedirectedURL:ge.redirectedURL!=null&&(Le=ge.redirectedURL));let Ne=this._seekHandler.getConfig(Le,Se);this._currentRequestURL=Ne.url;let qe=this._reader=new self.MSStreamReader;qe.onprogress=this._msrOnProgress.bind(this),qe.onload=this._msrOnLoad.bind(this),qe.onerror=this._msrOnError.bind(this);let it=this._xhr=new XMLHttpRequest;if(it.open("GET",Ne.url,!0),it.responseType="ms-stream",it.onreadystatechange=this._xhrOnReadyStateChange.bind(this),it.onerror=this._xhrOnError.bind(this),ge.withCredentials&&(it.withCredentials=!0),typeof Ne.headers=="object"){let un=Ne.headers;for(let Vt in un)un.hasOwnProperty(Vt)&&it.setRequestHeader(Vt,un[Vt])}if(typeof this._config.headers=="object"){let un=this._config.headers;for(let Vt in un)un.hasOwnProperty(Vt)&&it.setRequestHeader(Vt,un[Vt])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,it.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(ge){let Se=ge.target;if(Se.readyState===2)if(Se.status>=200&&Se.status<=299){if(this._status=LoaderStatus.kBuffering,Se.responseURL!=null){let Le=this._seekHandler.removeURLParameters(Se.responseURL);Se.responseURL!==this._currentRequestURL&&Le!==this._currentRedirectedURL&&(this._currentRedirectedURL=Le,this._onURLRedirect&&this._onURLRedirect(Le))}let Pe=Se.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let Le=parseInt(Pe);Le>0&&(this._contentLength=Le,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+Se.status+" "+Se.statusText);else if(Se.readyState===3&&Se.status>=200&&Se.status<=299){this._status=LoaderStatus.kBuffering;let Pe=Se.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(ge){this._status=LoaderStatus.kError;let Se=LoaderErrors.EXCEPTION,Pe={code:-1,msg:ge.constructor.name+" "+ge.type};if(this._onError)this._onError(Se,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(ge){let Pe=ge.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let Le=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let Ne=this._totalRange.from+this._receivedLength;this._receivedLength+=Le.byteLength,this._onDataArrival&&this._onDataArrival(Le,Ne,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Ne+Le.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let ge={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,ge,!0)}}_msrOnLoad(ge){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(ge){this._status=LoaderStatus.kError;let Se=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Se=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(Se=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:ge.constructor.name+" "+ge.type}),this._onError)this._onError(Se,Pe);else throw new RuntimeException(Pe.msg)}}var ye=null;class _e extends a{static isSupported(){try{let ge=new XMLHttpRequest;return ge.open("GET","https://example.com",!0),ge.responseType="arraybuffer",ge.responseType==="arraybuffer"}catch(ge){return pe.w("RangeLoader",ge.message),!1}}constructor(ge,Se){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=ge,this._config=Se,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new he,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(ge,Se){this._dataSource=ge,this._range=Se,this._status=re.kConnecting;let Pe=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(Pe=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!Pe?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let ge=this._currentChunkSizeKB*1024,Se=this._range.from+this._receivedLength,Pe=Se+ge;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:Se,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ge,Se){this._lastTimeLoaded=0;let Pe=ge.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:ge.redirectedURL!=null&&(Pe=ge.redirectedURL));let Le=this._seekHandler.getConfig(Pe,Se);this._currentRequestURL=Le.url;let Ne=this._xhr=new XMLHttpRequest;if(Ne.open("GET",Le.url,!0),Ne.responseType="arraybuffer",Ne.onreadystatechange=this._onReadyStateChange.bind(this),Ne.onprogress=this._onProgress.bind(this),Ne.onload=this._onLoad.bind(this),Ne.onerror=this._onXhrError.bind(this),ge.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let qe=Le.headers;for(let it in qe)qe.hasOwnProperty(it)&&Ne.setRequestHeader(it,qe[it])}if(typeof this._config.headers=="object"){let qe=this._config.headers;for(let it in qe)qe.hasOwnProperty(it)&&Ne.setRequestHeader(it,qe[it])}Ne.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=re.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(ge){let Se=ge.target;if(Se.readyState===2){if(Se.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(Se.responseURL);Se.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(Se.status>=200&&Se.status<=299){if(this._waitForTotalLength)return;this._status=re.kBuffering}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new le("RangeLoader: Http code invalid, "+Se.status+" "+Se.statusText)}}_onProgress(ge){if(this._status===re.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let Le=ge.total;this._internalAbort(),Le!=null&Le!==0&&(this._totalLength=Le)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Pe){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let Se=ge.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ge.loaded,this._speedSampler.addBytes(Se)}_normalizeSpeed(ge){let Se=this._chunkSizeKBList,Pe=Se.length-1,Le=0,Ne=0,qe=Pe;if(ge<Se[0])return Se[0];for(;Ne<=qe;){if(Le=Ne+Math.floor((qe-Ne)/2),Le===Pe||ge>=Se[Le]&&ge<Se[Le+1])return Se[Le];Se[Le]<ge?Ne=Le+1:qe=Le-1}}_onLoad(ge){if(this._status===re.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let Se=this._speedSampler.lastSecondKBps;if(Se===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Se=this._speedSampler.currentKBps)),Se!==0){let qe=this._normalizeSpeed(Se);this._currentSpeedNormalized!==qe&&(this._currentSpeedNormalized=qe,this._currentChunkSizeKB=qe)}let Pe=ge.target.response,Le=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Ne=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Ne=!0,this._onDataArrival&&this._onDataArrival(Pe,Le,this._receivedLength),Ne&&(this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(ge){this._status=re.kError;let Se=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Se=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(Se=ne.EXCEPTION,Pe={code:-1,msg:ge.constructor.name+" "+ge.type}),this._onError)this._onError(Se,Pe);else throw new le(Pe.msg)}}var xe=_e;class Ce extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(ge){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(ge){try{let Se=this._ws=new self.WebSocket(ge.url);Se.binaryType="arraybuffer",Se.onopen=this._onWebSocketOpen.bind(this),Se.onclose=this._onWebSocketClose.bind(this),Se.onmessage=this._onWebSocketMessage.bind(this),Se.onerror=this._onWebSocketError.bind(this),this._status=re.kConnecting}catch(Se){this._status=re.kError;let Pe={code:Se.code,msg:Se.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new le(Pe.msg)}}abort(){let ge=this._ws;ge&&(ge.readyState===0||ge.readyState===1)&&(this._requestAbort=!0,ge.close()),this._ws=null,this._status=re.kComplete}_onWebSocketOpen(ge){this._status=re.kBuffering}_onWebSocketClose(ge){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=re.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(ge){if(ge.data instanceof ArrayBuffer)this._dispatchArrayBuffer(ge.data);else if(ge.data instanceof Blob){let Se=new FileReader;Se.onload=()=>{this._dispatchArrayBuffer(Se.result)},Se.readAsArrayBuffer(ge.data)}else{this._status=re.kError;let Se={code:-1,msg:"Unsupported WebSocket message type: "+ge.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}_dispatchArrayBuffer(ge){let Se=ge,Pe=this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onWebSocketError(ge){this._status=re.kError;let Se={code:ge.code,msg:ge.message};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}var Te=Ce;class Me{constructor(ge){this._zeroStart=ge||!1}getConfig(ge,Se){let Pe={};if(Se.from!==0||Se.to!==-1){let Le;Se.to!==-1?Le=`bytes=${Se.from.toString()}-${Se.to.toString()}`:Le=`bytes=${Se.from.toString()}-`,Pe.Range=Le}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:ge,headers:Pe}}removeURLParameters(ge){return ge}}var pt=Me;class Ve{constructor(ge,Se){this._startName=ge,this._endName=Se}getConfig(ge,Se){let Pe=ge;if(Se.from!==0||Se.to!==-1){let Le=!0;Pe.indexOf("?")===-1&&(Pe+="?",Le=!1),Le&&(Pe+="&"),Pe+=`${this._startName}=${Se.from.toString()}`,Se.to!==-1&&(Pe+=`&${this._endName}=${Se.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(ge){let Se=ge.split("?")[0],Pe,Le=ge.indexOf("?");Le!==-1&&(Pe=ge.substring(Le+1));let Ne="";if(Pe!=null&&Pe.length>0){let qe=Pe.split("&");for(let it=0;it<qe.length;it++){let un=qe[it].split("="),Vt=it>0;un[0]!==this._startName&&un[0]!==this._endName&&(Vt&&(Ne+="&"),Ne+=qe[it])}}return Ne.length===0?Se:Se+"?"+Ne}}var gt=Ve;class Ae{constructor(ge,Se,Pe){this.TAG="IOController",this._config=Se,this._extraData=Pe,this._stashInitialSize=1024*384,Se.stashInitialSize!=null&&Se.stashInitialSize>0&&(this._stashInitialSize=Se.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,Se.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ge,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ge.url),this._refTotalLength=ge.filesize?ge.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new he,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(ge){this._extraData=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onSeeked(){return this._onSeeked}set onSeeked(ge){this._onSeeked=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}get onRedirect(){return this._onRedirect}set onRedirect(ge){this._onRedirect=ge}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ge){this._onRecoveredEarlyEof=ge}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===xe?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let ge=this._config;if(ge.seekType==="range")this._seekHandler=new pt(this._config.rangeLoadZeroStart);else if(ge.seekType==="param"){let Se=ge.seekParamStart||"bstart",Pe=ge.seekParamEnd||"bend";this._seekHandler=new gt(Se,Pe)}else if(ge.seekType==="custom"){if(typeof ge.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ge.customSeekHandler}else throw new se(`Invalid seekType in config: ${ge.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Te;else if(z.isSupported())this._loaderClass=z;else if(ie.isSupported())this._loaderClass=ie;else if(xe.isSupported())this._loaderClass=xe;else throw new le("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(ge){this._currentRange={from:0,to:-1},ge&&(this._currentRange.from=ge),this._speedSampler.reset(),ge||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let ge=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ge,!0)}}seek(ge){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ge,!0)}_internalSeek(ge,Se){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Se),this._loader.destroy(),this._loader=null;let Pe={from:ge,to:-1};this._currentRange={from:Pe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Pe),this._onSeeked&&this._onSeeked()}updateUrl(ge){if(!ge||typeof ge!="string"||ge.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=ge}_expandBuffer(ge){let Se=this._stashSize;for(;Se+1024*1024*1<ge;)Se*=2;if(Se+=1024*1024*1,Se===this._bufferSize)return;let Pe=new ArrayBuffer(Se);if(this._stashUsed>0){let Le=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,Se).set(Le,0)}this._stashBuffer=Pe,this._bufferSize=Se}_normalizeSpeed(ge){let Se=this._speedNormalizeList,Pe=Se.length-1,Le=0,Ne=0,qe=Pe;if(ge<Se[0])return Se[0];for(;Ne<=qe;){if(Le=Ne+Math.floor((qe-Ne)/2),Le===Pe||ge>=Se[Le]&&ge<Se[Le+1])return Se[Le];Se[Le]<ge?Ne=Le+1:qe=Le-1}}_adjustStashSize(ge){let Se=0;this._config.isLive||ge<512?Se=ge:ge>=512&&ge<=1024?Se=Math.floor(ge*1.5):Se=ge*2,Se>8192&&(Se=8192);let Pe=Se*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=Se*1024}_dispatchChunks(ge,Se){return this._currentRange.to=Se+ge.byteLength-1,this._onDataArrival(ge,Se)}_onURLRedirect(ge){this._redirectedURL=ge,this._onRedirect&&this._onRedirect(ge)}_onContentLengthKnown(ge){ge&&this._fullRequestFlag&&(this._totalLength=ge,this._fullRequestFlag=!1)}_onLoaderChunkArrival(ge,Se,Pe){if(!this._onDataArrival)throw new fe("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(ge.byteLength);let Le=this._speedSampler.lastSecondKBps;if(Le!==0){let Ne=this._normalizeSpeed(Le);this._speedNormalized!==Ne&&(this._speedNormalized=Ne,this._adjustStashSize(Ne))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Se),this._stashUsed+ge.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength;else{let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let qe=this._stashBuffer.slice(0,this._stashUsed),it=this._dispatchChunks(qe,this._stashByteStart);if(it<qe.byteLength){if(it>0){let un=new Uint8Array(qe,it);Ne.set(un,0),this._stashUsed=un.byteLength,this._stashByteStart+=it}}else this._stashUsed=0,this._stashByteStart+=it;this._stashUsed+ge.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ge.byteLength),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength}else{let qe=this._dispatchChunks(ge,Se);if(qe<ge.byteLength){let it=ge.byteLength-qe;it>this._bufferSize&&(this._expandBuffer(it),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge,qe),0),this._stashUsed+=it,this._stashByteStart=Se+qe}}}else if(this._stashUsed===0){let Ne=this._dispatchChunks(ge,Se);if(Ne<ge.byteLength){let qe=ge.byteLength-Ne;qe>this._bufferSize&&this._expandBuffer(qe),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ge,Ne),0),this._stashUsed+=qe,this._stashByteStart=Se+Ne}}else{this._stashUsed+ge.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ge.byteLength);let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength;let qe=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(qe<this._stashUsed&&qe>0){let it=new Uint8Array(this._stashBuffer,qe);Ne.set(it,0)}this._stashUsed-=qe,this._stashByteStart+=qe}}_flushStashBuffer(ge){if(this._stashUsed>0){let Se=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(Se,this._stashByteStart),Le=Se.byteLength-Pe;if(Pe<Se.byteLength)if(ge)pe.w(this.TAG,`${Le} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize),qe=new Uint8Array(Se,Pe);Ne.set(qe,0),this._stashUsed=qe.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,Le}return 0}_onLoaderComplete(ge,Se){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ge,Se){switch(pe.e(this.TAG,`Loader error, code = ${Se.code}, msg = ${Se.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ge=ne.UNRECOVERABLE_EARLY_EOF),ge){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(pe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}ge=ne.UNRECOVERABLE_EARLY_EOF;break}case ne.UNRECOVERABLE_EARLY_EOF:case ne.CONNECTING_TIMEOUT:case ne.HTTP_STATUS_CODE_INVALID:case ne.EXCEPTION:break}if(this._onError)this._onError(ge,Se);else throw new le("IOException: "+Se.msg)}}var De=Ae;const Ie={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function tt(){return Object.assign({},Ie)}class Ze{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let ge=new De({},tt()),Se=ge.loaderType;return ge.destroy(),Se=="fetch-stream-loader"||Se=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let ge=new De({},tt()),Se=ge.loaderType;return ge.destroy(),Se}static supportNativeMediaPlayback(ge){Ze.videoElement==null&&(Ze.videoElement=window.document.createElement("video"));let Se=Ze.videoElement.canPlayType(ge);return Se==="probably"||Se=="maybe"}static getFeatureList(){let ge={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ge.mseFlvPlayback=Ze.supportMSEH264Playback(),ge.networkStreamIO=Ze.supportNetworkStreamIO(),ge.networkLoaderName=Ze.getNetworkLoaderTypeName(),ge.mseLiveFlvPlayback=ge.mseFlvPlayback&&ge.networkStreamIO,ge.nativeMP4H264Playback=Ze.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ge.nativeWebmVP8Playback=Ze.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ge.nativeWebmVP9Playback=Ze.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ge}}var bt=Ze,Kt={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class Qt{static get forceGlobalTag(){return pe.FORCE_GLOBAL_TAG}static set forceGlobalTag(ge){pe.FORCE_GLOBAL_TAG=ge,Qt._notifyChange()}static get globalTag(){return pe.GLOBAL_TAG}static set globalTag(ge){pe.GLOBAL_TAG=ge,Qt._notifyChange()}static get enableAll(){return pe.ENABLE_VERBOSE&&pe.ENABLE_DEBUG&&pe.ENABLE_INFO&&pe.ENABLE_WARN&&pe.ENABLE_ERROR}static set enableAll(ge){pe.ENABLE_VERBOSE=ge,pe.ENABLE_DEBUG=ge,pe.ENABLE_INFO=ge,pe.ENABLE_WARN=ge,pe.ENABLE_ERROR=ge,Qt._notifyChange()}static get enableDebug(){return pe.ENABLE_DEBUG}static set enableDebug(ge){pe.ENABLE_DEBUG=ge,Qt._notifyChange()}static get enableVerbose(){return pe.ENABLE_VERBOSE}static set enableVerbose(ge){pe.ENABLE_VERBOSE=ge,Qt._notifyChange()}static get enableInfo(){return pe.ENABLE_INFO}static set enableInfo(ge){pe.ENABLE_INFO=ge,Qt._notifyChange()}static get enableWarn(){return pe.ENABLE_WARN}static set enableWarn(ge){pe.ENABLE_WARN=ge,Qt._notifyChange()}static get enableError(){return pe.ENABLE_ERROR}static set enableError(ge){pe.ENABLE_ERROR=ge,Qt._notifyChange()}static getConfig(){return{globalTag:pe.GLOBAL_TAG,forceGlobalTag:pe.FORCE_GLOBAL_TAG,enableVerbose:pe.ENABLE_VERBOSE,enableDebug:pe.ENABLE_DEBUG,enableInfo:pe.ENABLE_INFO,enableWarn:pe.ENABLE_WARN,enableError:pe.ENABLE_ERROR,enableCallback:pe.ENABLE_CALLBACK}}static applyConfig(ge){pe.GLOBAL_TAG=ge.globalTag,pe.FORCE_GLOBAL_TAG=ge.forceGlobalTag,pe.ENABLE_VERBOSE=ge.enableVerbose,pe.ENABLE_DEBUG=ge.enableDebug,pe.ENABLE_INFO=ge.enableInfo,pe.ENABLE_WARN=ge.enableWarn,pe.ENABLE_ERROR=ge.enableError,pe.ENABLE_CALLBACK=ge.enableCallback}static _notifyChange(){let ge=Qt.emitter;if(ge.listenerCount("change")>0){let Se=Qt.getConfig();ge.emit("change",Se)}}static registerListener(ge){Qt.emitter.addListener("change",ge)}static removeListener(ge){Qt.emitter.removeListener("change",ge)}static addLogListener(ge){pe.emitter.addListener("log",ge),pe.emitter.listenerCount("log")>0&&(pe.ENABLE_CALLBACK=!0,Qt._notifyChange())}static removeLogListener(ge){pe.emitter.removeListener("log",ge),pe.emitter.listenerCount("log")===0&&(pe.ENABLE_CALLBACK=!1,Qt._notifyChange())}}Qt.emitter=new(ve());var rt=Qt;class st{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let ge=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Se=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&ge&&Se}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ge){if(this.keyframesIndex==null)return null;let Se=this.keyframesIndex,Pe=this._search(Se.times,ge);return{index:Pe,milliseconds:Se.times[Pe],fileposition:Se.filepositions[Pe]}}_search(ge,Se){let Pe=0,Le=ge.length-1,Ne=0,qe=0,it=Le;for(Se<ge[0]&&(Pe=0,qe=it+1);qe<=it;)if(Ne=qe+Math.floor((it-qe)/2),Ne===Le||Se>=ge[Ne]&&Se<ge[Ne+1]){Pe=Ne;break}else ge[Ne]<Se?qe=Ne+1:it=Ne-1;return Pe}}var Ct=st;function Gt(cn,ge,Se){let Pe=cn;if(ge+Se<Pe.length){for(;Se--;)if((Pe[++ge]&192)!==128)return!1;return!0}else return!1}function Ht(cn){let ge=[],Se=cn,Pe=0,Le=cn.length;for(;Pe<Le;){if(Se[Pe]<128){ge.push(String.fromCharCode(Se[Pe])),++Pe;continue}else if(!(Se[Pe]<192)){if(Se[Pe]<224){if(Gt(Se,Pe,1)){let Ne=(Se[Pe]&31)<<6|Se[Pe+1]&63;if(Ne>=128){ge.push(String.fromCharCode(Ne&65535)),Pe+=2;continue}}}else if(Se[Pe]<240){if(Gt(Se,Pe,2)){let Ne=(Se[Pe]&15)<<12|(Se[Pe+1]&63)<<6|Se[Pe+2]&63;if(Ne>=2048&&(Ne&63488)!==55296){ge.push(String.fromCharCode(Ne&65535)),Pe+=3;continue}}}else if(Se[Pe]<248&&Gt(Se,Pe,3)){let Ne=(Se[Pe]&7)<<18|(Se[Pe+1]&63)<<12|(Se[Pe+2]&63)<<6|Se[Pe+3]&63;if(Ne>65536&&Ne<1114112){Ne-=65536,ge.push(String.fromCharCode(Ne>>>10|55296)),ge.push(String.fromCharCode(Ne&1023|56320)),Pe+=4;continue}}}ge.push("\uFFFD"),++Pe}return ge.join("")}var Bt=Ht;let Ke=function(){let cn=new ArrayBuffer(2);return new DataView(cn).setInt16(0,256,!0),new Int16Array(cn)[0]===256}();class Jt{static parseScriptData(ge,Se,Pe){let Le={};try{let Ne=Jt.parseValue(ge,Se,Pe),qe=Jt.parseValue(ge,Se+Ne.size,Pe-Ne.size);Le[Ne.data]=qe.data}catch(Ne){pe.e("AMF",Ne.toString())}return Le}static parseObject(ge,Se,Pe){if(Pe<3)throw new fe("Data not enough when parse ScriptDataObject");let Le=Jt.parseString(ge,Se,Pe),Ne=Jt.parseValue(ge,Se+Le.size,Pe-Le.size),qe=Ne.objectEnd;return{data:{name:Le.data,value:Ne.data},size:Le.size+Ne.size,objectEnd:qe}}static parseVariable(ge,Se,Pe){return Jt.parseObject(ge,Se,Pe)}static parseString(ge,Se,Pe){if(Pe<2)throw new fe("Data not enough when parse String");let Ne=new DataView(ge,Se,Pe).getUint16(0,!Ke),qe;return Ne>0?qe=Bt(new Uint8Array(ge,Se+2,Ne)):qe="",{data:qe,size:2+Ne}}static parseLongString(ge,Se,Pe){if(Pe<4)throw new fe("Data not enough when parse LongString");let Ne=new DataView(ge,Se,Pe).getUint32(0,!Ke),qe;return Ne>0?qe=Bt(new Uint8Array(ge,Se+4,Ne)):qe="",{data:qe,size:4+Ne}}static parseDate(ge,Se,Pe){if(Pe<10)throw new fe("Data size invalid when parse Date");let Le=new DataView(ge,Se,Pe),Ne=Le.getFloat64(0,!Ke),qe=Le.getInt16(8,!Ke);return Ne+=qe*60*1e3,{data:new Date(Ne),size:10}}static parseValue(ge,Se,Pe){if(Pe<1)throw new fe("Data not enough when parse Value");let Le=new DataView(ge,Se,Pe),Ne=1,qe=Le.getUint8(0),it,un=!1;try{switch(qe){case 0:it=Le.getFloat64(1,!Ke),Ne+=8;break;case 1:{it=!!Le.getUint8(1),Ne+=1;break}case 2:{let Vt=Jt.parseString(ge,Se+1,Pe-1);it=Vt.data,Ne+=Vt.size;break}case 3:{it={};let Vt=0;for((Le.getUint32(Pe-4,!Ke)&16777215)===9&&(Vt=3);Ne<Pe-4;){let En=Jt.parseObject(ge,Se+Ne,Pe-Ne-Vt);if(En.objectEnd)break;it[En.data.name]=En.data.value,Ne+=En.size}Ne<=Pe-3&&(Le.getUint32(Ne-1,!Ke)&16777215)===9&&(Ne+=3);break}case 8:{it={},Ne+=4;let Vt=0;for((Le.getUint32(Pe-4,!Ke)&16777215)===9&&(Vt=3);Ne<Pe-8;){let En=Jt.parseVariable(ge,Se+Ne,Pe-Ne-Vt);if(En.objectEnd)break;it[En.data.name]=En.data.value,Ne+=En.size}Ne<=Pe-3&&(Le.getUint32(Ne-1,!Ke)&16777215)===9&&(Ne+=3);break}case 9:it=void 0,Ne=1,un=!0;break;case 10:{it=[];let Vt=Le.getUint32(1,!Ke);Ne+=4;for(let En=0;En<Vt;En++){let Vn=Jt.parseValue(ge,Se+Ne,Pe-Ne);it.push(Vn.data),Ne+=Vn.size}break}case 11:{let Vt=Jt.parseDate(ge,Se+1,Pe-1);it=Vt.data,Ne+=Vt.size;break}case 12:{let Vt=Jt.parseString(ge,Se+1,Pe-1);it=Vt.data,Ne+=Vt.size;break}default:Ne=Pe,pe.w("AMF","Unsupported AMF value type "+qe)}}catch(Vt){pe.e("AMF",Vt.toString())}return{data:it,size:Ne,objectEnd:un}}}var Mn=Jt;class Hn{constructor(ge){this.TAG="ExpGolomb",this._buffer=ge,this._buffer_index=0,this._total_bytes=ge.byteLength,this._total_bits=ge.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let ge=this._total_bytes-this._buffer_index;if(ge<=0)throw new fe("ExpGolomb: _fillCurrentWord() but no bytes available");let Se=Math.min(4,ge),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Se)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=Se,this._current_word_bits_left=Se*8}readBits(ge){if(ge>32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(ge<=this._current_word_bits_left){let qe=this._current_word>>>32-ge;return this._current_word<<=ge,this._current_word_bits_left-=ge,qe}let Se=this._current_word_bits_left?this._current_word:0;Se=Se>>>32-this._current_word_bits_left;let Pe=ge-this._current_word_bits_left;this._fillCurrentWord();let Le=Math.min(Pe,this._current_word_bits_left),Ne=this._current_word>>>32-Le;return this._current_word<<=Le,this._current_word_bits_left-=Le,Se=Se<<Le|Ne,Se}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let ge;for(ge=0;ge<this._current_word_bits_left;ge++)if(this._current_word&2147483648>>>ge)return this._current_word<<=ge,this._current_word_bits_left-=ge,ge;return this._fillCurrentWord(),ge+this._skipLeadingZero()}readUEG(){let ge=this._skipLeadingZero();return this.readBits(ge+1)-1}readSEG(){let ge=this.readUEG();return ge&1?ge+1>>>1:-1*(ge>>>1)}}var pn=Hn;class kt{static _ebsp2rbsp(ge){let Se=ge,Pe=Se.byteLength,Le=new Uint8Array(Pe),Ne=0;for(let qe=0;qe<Pe;qe++)qe>=2&&Se[qe]===3&&Se[qe-1]===0&&Se[qe-2]===0||(Le[Ne]=Se[qe],Ne++);return new Uint8Array(Le.buffer,0,Ne)}static parseSPS(ge){let Se=kt._ebsp2rbsp(ge),Pe=new pn(Se);Pe.readByte();let Le=Pe.readByte();Pe.readByte();let Ne=Pe.readByte();Pe.readUEG();let qe=kt.getProfileString(Le),it=kt.getLevelString(Ne),un=1,Vt=420,En=[0,420,422,444],Vn=8;if((Le===100||Le===110||Le===122||Le===244||Le===44||Le===83||Le===86||Le===118||Le===128||Le===138||Le===144)&&(un=Pe.readUEG(),un===3&&Pe.readBits(1),un<=3&&(Vt=En[un]),Vn=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let wr=un!==3?8:12;for(let rr=0;rr<wr;rr++)Pe.readBool()&&(rr<6?kt._skipScalingList(Pe,16):kt._skipScalingList(Pe,64))}Pe.readUEG();let Pr=Pe.readUEG();if(Pr===0)Pe.readUEG();else if(Pr===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let wr=Pe.readUEG();for(let rr=0;rr<wr;rr++)Pe.readSEG()}let Ot=Pe.readUEG();Pe.readBits(1);let qn=Pe.readUEG(),er=Pe.readUEG(),Pn=Pe.readBits(1);Pn===0&&Pe.readBits(1),Pe.readBits(1);let An=0,Yn=0,yr=0,lr=0;Pe.readBool()&&(An=Pe.readUEG(),Yn=Pe.readUEG(),yr=Pe.readUEG(),lr=Pe.readUEG());let Po=1,fr=1,Vr=0,Yo=!0,Io=0,ni=0;if(Pe.readBool()){if(Pe.readBool()){let wr=Pe.readByte(),rr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ei=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];wr>0&&wr<16?(Po=rr[wr-1],fr=ei[wr-1]):wr===255&&(Po=Pe.readByte()<<8|Pe.readByte(),fr=Pe.readByte()<<8|Pe.readByte())}if(Pe.readBool()&&Pe.readBool(),Pe.readBool()&&(Pe.readBits(4),Pe.readBool()&&Pe.readBits(24)),Pe.readBool()&&(Pe.readUEG(),Pe.readUEG()),Pe.readBool()){let wr=Pe.readBits(32),rr=Pe.readBits(32);Yo=Pe.readBool(),Io=rr,ni=wr*2,Vr=Io/ni}}let Vi=1;(Po!==1||fr!==1)&&(Vi=Po/fr);let fn=0,xo=0;if(un===0)fn=1,xo=2-Pn;else{let wr=un===3?1:2,rr=un===1?2:1;fn=wr,xo=rr*(2-Pn)}let Yi=(qn+1)*16,Cn=(2-Pn)*((er+1)*16);Yi-=(An+Yn)*fn,Cn-=(yr+lr)*xo;let nr=Math.ceil(Yi*Vi);return Pe.destroy(),Pe=null,{profile_string:qe,level_string:it,bit_depth:Vn,ref_frames:Ot,chroma_format:Vt,chroma_format_string:kt.getChromaFormatString(Vt),frame_rate:{fixed:Yo,fps:Vr,fps_den:ni,fps_num:Io},sar_ratio:{width:Po,height:fr},codec_size:{width:Yi,height:Cn},present_size:{width:nr,height:Cn}}}static _skipScalingList(ge,Se){let Pe=8,Le=8,Ne=0;for(let qe=0;qe<Se;qe++)Le!==0&&(Ne=ge.readSEG(),Le=(Pe+Ne+256)%256),Pe=Le===0?Pe:Le}static getProfileString(ge){switch(ge){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(ge){return(ge/10).toFixed(1)}static getChromaFormatString(ge){switch(ge){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var Qe=kt,Je={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function ft(cn){return cn>>>8&255|(cn&255)<<8}function At(cn){return(cn&4278190080)>>>24|(cn&16711680)>>>8|(cn&65280)<<8|(cn&255)<<24}function et(cn,ge){return cn[ge]<<24|cn[ge+1]<<16|cn[ge+2]<<8|cn[ge+3]}class vt{constructor(ge,Se){this.TAG="FLVDemuxer",this._config=Se,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ge.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ge.hasAudioTrack,this._hasVideo=ge.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ct,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(ge){let Se=new Uint8Array(ge),Pe={match:!1};if(Se[0]!==70||Se[1]!==76||Se[2]!==86||Se[3]!==1)return Pe;let Le=(Se[4]&4)>>>2!==0,Ne=(Se[4]&1)!==0,qe=et(Se,5);return qe<9?Pe:{match:!0,consumed:qe,dataOffset:qe,hasAudioTrack:Le,hasVideoTrack:Ne}}bindDataSource(ge){return ge.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ge){this._onTrackMetadata=ge}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ge){this._onMediaInfo=ge}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ge){this._onMetaDataArrived=ge}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ge){this._onScriptDataArrived=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ge){this._onDataAvailable=ge}get timestampBase(){return this._timestampBase}set timestampBase(ge){this._timestampBase=ge}get overridedDuration(){return this._duration}set overridedDuration(ge){this._durationOverrided=!0,this._duration=ge,this._mediaInfo.duration=ge}set overridedHasAudio(ge){this._hasAudioFlagOverrided=!0,this._hasAudio=ge,this._mediaInfo.hasAudio=ge}set overridedHasVideo(ge){this._hasVideoFlagOverrided=!0,this._hasVideo=ge,this._mediaInfo.hasVideo=ge}resetMediaInfo(){this._mediaInfo=new Ct}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ge,Se){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new fe("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,Le=this._littleEndian;if(Se===0)if(ge.byteLength>13)Pe=vt.probe(ge).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,Se+Pe!==this._dataOffset&&pe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ge,Pe).getUint32(0,!Le)!==0&&pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<ge.byteLength;){this._dispatch=!0;let Ne=new DataView(ge,Pe);if(Pe+11+4>ge.byteLength)break;let qe=Ne.getUint8(0),it=Ne.getUint32(0,!Le)&16777215;if(Pe+11+it+4>ge.byteLength)break;if(qe!==8&&qe!==9&&qe!==18){pe.w(this.TAG,`Unsupported tag type ${qe}, skipped`),Pe+=11+it+4;continue}let un=Ne.getUint8(4),Vt=Ne.getUint8(5),En=Ne.getUint8(6),Vn=Ne.getUint8(7),Pr=En|Vt<<8|un<<16|Vn<<24;(Ne.getUint32(7,!Le)&16777215)!==0&&pe.w(this.TAG,"Meet tag which has StreamID != 0!");let qn=Pe+11;switch(qe){case 8:this._parseAudioData(ge,qn,it,Pr);break;case 9:this._parseVideoData(ge,qn,it,Pr,Se+Pe);break;case 18:this._parseScriptData(ge,qn,it);break}let er=Ne.getUint32(11+it,!Le);er!==11+it&&pe.w(this.TAG,`Invalid PrevTagSize ${er}`),Pe+=11+it+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(ge,Se,Pe){let Le=Mn.parseScriptData(ge,Se,Pe);if(Le.hasOwnProperty("onMetaData")){if(Le.onMetaData==null||typeof Le.onMetaData!="object"){pe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&pe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Le;let Ne=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Ne)),typeof Ne.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Ne.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Ne.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Ne.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Ne.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Ne.audiodatarate),typeof Ne.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Ne.videodatarate),typeof Ne.width=="number"&&(this._mediaInfo.width=Ne.width),typeof Ne.height=="number"&&(this._mediaInfo.height=Ne.height),typeof Ne.duration=="number"){if(!this._durationOverrided){let qe=Math.floor(Ne.duration*this._timescale);this._duration=qe,this._mediaInfo.duration=qe}}else this._mediaInfo.duration=0;if(typeof Ne.framerate=="number"){let qe=Math.floor(Ne.framerate*1e3);if(qe>0){let it=qe/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=it,this._referenceFrameRate.fps_num=qe,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=it}}if(typeof Ne.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let qe=Ne.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(qe),Ne.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Ne,pe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Le).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Le))}_parseKeyframesIndex(ge){let Se=[],Pe=[];for(let Le=1;Le<ge.times.length;Le++){let Ne=this._timestampBase+Math.floor(ge.times[Le]*1e3);Se.push(Ne),Pe.push(ge.filepositions[Le])}return{times:Se,filepositions:Pe}}_parseAudioData(ge,Se,Pe,Le){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Ne=this._littleEndian,it=new DataView(ge,Se,Pe).getUint8(0),un=it>>>4;if(un!==2&&un!==10){this._onError(Je.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+un);return}let Vt=0,En=(it&12)>>>2;if(En>=0&&En<=4)Vt=this._flvSoundRateTable[En];else{this._onError(Je.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+En);return}let Vn=(it&2)>>>1,Pr=it&1,Ot=this._audioMetadata,qn=this._audioTrack;if(Ot||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Ot=this._audioMetadata={},Ot.type="audio",Ot.id=qn.id,Ot.timescale=this._timescale,Ot.duration=this._duration,Ot.audioSampleRate=Vt,Ot.channelCount=Pr===0?1:2),un===10){let er=this._parseAACAudioData(ge,Se+1,Pe-1);if(er==null)return;if(er.packetType===0){Ot.config&&pe.w(this.TAG,"Found another AudioSpecificConfig!");let Pn=er.data;Ot.audioSampleRate=Pn.samplingRate,Ot.channelCount=Pn.channelCount,Ot.codec=Pn.codec,Ot.originalCodec=Pn.originalCodec,Ot.config=Pn.config,Ot.refSampleDuration=1024/Ot.audioSampleRate*Ot.timescale,pe.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Ot);let An=this._mediaInfo;An.audioCodec=Ot.originalCodec,An.audioSampleRate=Ot.audioSampleRate,An.audioChannelCount=Ot.channelCount,An.hasVideo?An.videoCodec!=null&&(An.mimeType='video/x-flv; codecs="'+An.videoCodec+","+An.audioCodec+'"'):An.mimeType='video/x-flv; codecs="'+An.audioCodec+'"',An.isComplete()&&this._onMediaInfo(An)}else if(er.packetType===1){let Pn=this._timestampBase+Le,An={unit:er.data,length:er.data.byteLength,dts:Pn,pts:Pn};qn.samples.push(An),qn.length+=er.data.length}else pe.e(this.TAG,`Flv: Unsupported AAC data type ${er.packetType}`)}else if(un===2){if(!Ot.codec){let Yn=this._parseMP3AudioData(ge,Se+1,Pe-1,!0);if(Yn==null)return;Ot.audioSampleRate=Yn.samplingRate,Ot.channelCount=Yn.channelCount,Ot.codec=Yn.codec,Ot.originalCodec=Yn.originalCodec,Ot.refSampleDuration=1152/Ot.audioSampleRate*Ot.timescale,pe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Ot);let yr=this._mediaInfo;yr.audioCodec=Ot.codec,yr.audioSampleRate=Ot.audioSampleRate,yr.audioChannelCount=Ot.channelCount,yr.audioDataRate=Yn.bitRate,yr.hasVideo?yr.videoCodec!=null&&(yr.mimeType='video/x-flv; codecs="'+yr.videoCodec+","+yr.audioCodec+'"'):yr.mimeType='video/x-flv; codecs="'+yr.audioCodec+'"',yr.isComplete()&&this._onMediaInfo(yr)}let er=this._parseMP3AudioData(ge,Se+1,Pe-1,!1);if(er==null)return;let Pn=this._timestampBase+Le,An={unit:er,length:er.byteLength,dts:Pn,pts:Pn};qn.samples.push(An),qn.length+=er.length}}_parseAACAudioData(ge,Se,Pe){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Le={},Ne=new Uint8Array(ge,Se,Pe);return Le.packetType=Ne[0],Ne[0]===0?Le.data=this._parseAACAudioSpecificConfig(ge,Se+1,Pe-1):Le.data=Ne.subarray(1),Le}_parseAACAudioSpecificConfig(ge,Se,Pe){let Le=new Uint8Array(ge,Se,Pe),Ne=null,qe=0,it=0,un=null,Vt=0,En=null;if(qe=it=Le[0]>>>3,Vt=(Le[0]&7)<<1|Le[1]>>>7,Vt<0||Vt>=this._mpegSamplingRates.length){this._onError(Je.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Vn=this._mpegSamplingRates[Vt],Pr=(Le[1]&120)>>>3;if(Pr<0||Pr>=8){this._onError(Je.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}qe===5&&(En=(Le[1]&7)<<1|Le[2]>>>7,un=(Le[2]&124)>>>2);let Ot=self.navigator.userAgent.toLowerCase();return Ot.indexOf("firefox")!==-1?Vt>=6?(qe=5,Ne=new Array(4),En=Vt-3):(qe=2,Ne=new Array(2),En=Vt):Ot.indexOf("android")!==-1?(qe=2,Ne=new Array(2),En=Vt):(qe=5,En=Vt,Ne=new Array(4),Vt>=6?En=Vt-3:Pr===1&&(qe=2,Ne=new Array(2),En=Vt)),Ne[0]=qe<<3,Ne[0]|=(Vt&15)>>>1,Ne[1]=(Vt&15)<<7,Ne[1]|=(Pr&15)<<3,qe===5&&(Ne[1]|=(En&15)>>>1,Ne[2]=(En&1)<<7,Ne[2]|=8,Ne[3]=0),{config:Ne,samplingRate:Vn,channelCount:Pr,codec:"mp4a.40."+qe,originalCodec:"mp4a.40."+it}}_parseMP3AudioData(ge,Se,Pe,Le){if(Pe<4){pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Ne=this._littleEndian,qe=new Uint8Array(ge,Se,Pe),it=null;if(Le){if(qe[0]!==255)return;let un=qe[1]>>>3&3,Vt=(qe[1]&6)>>1,En=(qe[2]&240)>>>4,Vn=(qe[2]&12)>>>2,Ot=(qe[3]>>>6&3)!==3?2:1,qn=0,er=0,Pn=34,An="mp3";switch(un){case 0:qn=this._mpegAudioV25SampleRateTable[Vn];break;case 2:qn=this._mpegAudioV20SampleRateTable[Vn];break;case 3:qn=this._mpegAudioV10SampleRateTable[Vn];break}switch(Vt){case 1:Pn=34,En<this._mpegAudioL3BitRateTable.length&&(er=this._mpegAudioL3BitRateTable[En]);break;case 2:Pn=33,En<this._mpegAudioL2BitRateTable.length&&(er=this._mpegAudioL2BitRateTable[En]);break;case 3:Pn=32,En<this._mpegAudioL1BitRateTable.length&&(er=this._mpegAudioL1BitRateTable[En]);break}it={bitRate:er,samplingRate:qn,channelCount:Ot,codec:An,originalCodec:An}}else it=qe;return it}_parseVideoData(ge,Se,Pe,Le,Ne){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let qe=new Uint8Array(ge,Se,Pe)[0],it=(qe&240)>>>4,un=qe&15;if(un!==7){this._onError(Je.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${un}`);return}this._parseAVCVideoPacket(ge,Se+1,Pe-1,Le,Ne,it)}_parseAVCVideoPacket(ge,Se,Pe,Le,Ne,qe){if(Pe<4){pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let it=this._littleEndian,un=new DataView(ge,Se,Pe),Vt=un.getUint8(0),Vn=(un.getUint32(0,!it)&16777215)<<8>>8;if(Vt===0)this._parseAVCDecoderConfigurationRecord(ge,Se+4,Pe-4);else if(Vt===1)this._parseAVCVideoData(ge,Se+4,Pe-4,Le,Ne,qe,Vn);else if(Vt!==2){this._onError(Je.FORMAT_ERROR,`Flv: Invalid video packet type ${Vt}`);return}}_parseAVCDecoderConfigurationRecord(ge,Se,Pe){if(Pe<7){pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Le=this._videoMetadata,Ne=this._videoTrack,qe=this._littleEndian,it=new DataView(ge,Se,Pe);Le?typeof Le.avcc!="undefined"&&pe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Le=this._videoMetadata={},Le.type="video",Le.id=Ne.id,Le.timescale=this._timescale,Le.duration=this._duration);let un=it.getUint8(0),Vt=it.getUint8(1),En=it.getUint8(2),Vn=it.getUint8(3);if(un!==1||Vt===0){this._onError(Je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(it.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Je.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Pr=it.getUint8(5)&31;if(Pr===0){this._onError(Je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Pr>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Pr}`);let Ot=6;for(let er=0;er<Pr;er++){let Pn=it.getUint16(Ot,!qe);if(Ot+=2,Pn===0)continue;let An=new Uint8Array(ge,Se+Ot,Pn);Ot+=Pn;let Yn=Qe.parseSPS(An);if(er!==0)continue;Le.codecWidth=Yn.codec_size.width,Le.codecHeight=Yn.codec_size.height,Le.presentWidth=Yn.present_size.width,Le.presentHeight=Yn.present_size.height,Le.profile=Yn.profile_string,Le.level=Yn.level_string,Le.bitDepth=Yn.bit_depth,Le.chromaFormat=Yn.chroma_format,Le.sarRatio=Yn.sar_ratio,Le.frameRate=Yn.frame_rate,(Yn.frame_rate.fixed===!1||Yn.frame_rate.fps_num===0||Yn.frame_rate.fps_den===0)&&(Le.frameRate=this._referenceFrameRate);let yr=Le.frameRate.fps_den,lr=Le.frameRate.fps_num;Le.refSampleDuration=Le.timescale*(yr/lr);let ci=An.subarray(1,4),Po="avc1.";for(let Vr=0;Vr<3;Vr++){let Yo=ci[Vr].toString(16);Yo.length<2&&(Yo="0"+Yo),Po+=Yo}Le.codec=Po;let fr=this._mediaInfo;fr.width=Le.codecWidth,fr.height=Le.codecHeight,fr.fps=Le.frameRate.fps,fr.profile=Le.profile,fr.level=Le.level,fr.refFrames=Yn.ref_frames,fr.chromaFormat=Yn.chroma_format_string,fr.sarNum=Le.sarRatio.width,fr.sarDen=Le.sarRatio.height,fr.videoCodec=Po,fr.hasAudio?fr.audioCodec!=null&&(fr.mimeType='video/x-flv; codecs="'+fr.videoCodec+","+fr.audioCodec+'"'):fr.mimeType='video/x-flv; codecs="'+fr.videoCodec+'"',fr.isComplete()&&this._onMediaInfo(fr)}let qn=it.getUint8(Ot);if(qn===0){this._onError(Je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else qn>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${qn}`);Ot++;for(let er=0;er<qn;er++){let Pn=it.getUint16(Ot,!qe);Ot+=2,Pn!==0&&(Ot+=Pn)}Le.avcc=new Uint8Array(Pe),Le.avcc.set(new Uint8Array(ge,Se,Pe),0),pe.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",Le)}_parseAVCVideoData(ge,Se,Pe,Le,Ne,qe,it){let un=this._littleEndian,Vt=new DataView(ge,Se,Pe),En=[],Vn=0,Pr=0;const Ot=this._naluLengthSize;let qn=this._timestampBase+Le,er=qe===1;for(;Pr<Pe;){if(Pr+4>=Pe){pe.w(this.TAG,`Malformed Nalu near timestamp ${qn}, offset = ${Pr}, dataSize = ${Pe}`);break}let Pn=Vt.getUint32(Pr,!un);if(Ot===3&&(Pn>>>=8),Pn>Pe-Ot){pe.w(this.TAG,`Malformed Nalus near timestamp ${qn}, NaluSize > DataSize!`);return}let An=Vt.getUint8(Pr+Ot)&31;An===5&&(er=!0);let Yn=new Uint8Array(ge,Se+Pr,Ot+Pn),yr={type:An,data:Yn};En.push(yr),Vn+=Yn.byteLength,Pr+=Ot+Pn}if(En.length){let Pn=this._videoTrack,An={units:En,length:Vn,isKeyframe:er,dts:qn,cts:it,pts:qn+it};er&&(An.fileposition=Ne),Pn.samples.push(An),Pn.length+=Vn}}}var Pt=vt;class Xe{static init(){Xe.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let Se in Xe.types)Xe.types.hasOwnProperty(Se)&&(Xe.types[Se]=[Se.charCodeAt(0),Se.charCodeAt(1),Se.charCodeAt(2),Se.charCodeAt(3)]);let ge=Xe.constants={};ge.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ge.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ge.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ge.STSC=ge.STCO=ge.STTS,ge.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ge.HDLR_VIDEO=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]),ge.HDLR_AUDIO=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]),ge.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ge.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ge.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ge){let Se=8,Pe=null,Le=Array.prototype.slice.call(arguments,1),Ne=Le.length;for(let it=0;it<Ne;it++)Se+=Le[it].byteLength;Pe=new Uint8Array(Se),Pe[0]=Se>>>24&255,Pe[1]=Se>>>16&255,Pe[2]=Se>>>8&255,Pe[3]=Se&255,Pe.set(ge,4);let qe=8;for(let it=0;it<Ne;it++)Pe.set(Le[it],qe),qe+=Le[it].byteLength;return Pe}static generateInitSegment(ge){let Se=Xe.box(Xe.types.ftyp,Xe.constants.FTYP),Pe=Xe.moov(ge),Le=new Uint8Array(Se.byteLength+Pe.byteLength);return Le.set(Se,0),Le.set(Pe,Se.byteLength),Le}static moov(ge){let Se=Xe.mvhd(ge.timescale,ge.duration),Pe=Xe.trak(ge),Le=Xe.mvex(ge);return Xe.box(Xe.types.moov,Se,Pe,Le)}static mvhd(ge,Se){return Xe.box(Xe.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&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]))}static trak(ge){return Xe.box(Xe.types.trak,Xe.tkhd(ge),Xe.mdia(ge))}static tkhd(ge){let Se=ge.id,Pe=ge.duration,Le=ge.presentWidth,Ne=ge.presentHeight;return Xe.box(Xe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&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,Le>>>8&255,Le&255,0,0,Ne>>>8&255,Ne&255,0,0]))}static mdia(ge){return Xe.box(Xe.types.mdia,Xe.mdhd(ge),Xe.hdlr(ge),Xe.minf(ge))}static mdhd(ge){let Se=ge.timescale,Pe=ge.duration;return Xe.box(Xe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(ge){let Se=null;return ge.type==="audio"?Se=Xe.constants.HDLR_AUDIO:Se=Xe.constants.HDLR_VIDEO,Xe.box(Xe.types.hdlr,Se)}static minf(ge){let Se=null;return ge.type==="audio"?Se=Xe.box(Xe.types.smhd,Xe.constants.SMHD):Se=Xe.box(Xe.types.vmhd,Xe.constants.VMHD),Xe.box(Xe.types.minf,Se,Xe.dinf(),Xe.stbl(ge))}static dinf(){return Xe.box(Xe.types.dinf,Xe.box(Xe.types.dref,Xe.constants.DREF))}static stbl(ge){return Xe.box(Xe.types.stbl,Xe.stsd(ge),Xe.box(Xe.types.stts,Xe.constants.STTS),Xe.box(Xe.types.stsc,Xe.constants.STSC),Xe.box(Xe.types.stsz,Xe.constants.STSZ),Xe.box(Xe.types.stco,Xe.constants.STCO))}static stsd(ge){return ge.type==="audio"?ge.codec==="mp3"?Xe.box(Xe.types.stsd,Xe.constants.STSD_PREFIX,Xe.mp3(ge)):Xe.box(Xe.types.stsd,Xe.constants.STSD_PREFIX,Xe.mp4a(ge)):Xe.box(Xe.types.stsd,Xe.constants.STSD_PREFIX,Xe.avc1(ge))}static mp3(ge){let Se=ge.channelCount,Pe=ge.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Se,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Xe.box(Xe.types[".mp3"],Le)}static mp4a(ge){let Se=ge.channelCount,Pe=ge.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Se,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Xe.box(Xe.types.mp4a,Le,Xe.esds(ge))}static esds(ge){let Se=ge.config||[],Pe=Se.length,Le=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(Se).concat([6,1,2]));return Xe.box(Xe.types.esds,Le)}static avc1(ge){let Se=ge.avcc,Pe=ge.codecWidth,Le=ge.codecHeight,Ne=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,Pe>>>8&255,Pe&255,Le>>>8&255,Le&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Xe.box(Xe.types.avc1,Ne,Xe.box(Xe.types.avcC,Se))}static mvex(ge){return Xe.box(Xe.types.mvex,Xe.trex(ge))}static trex(ge){let Se=ge.id,Pe=new Uint8Array([0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Xe.box(Xe.types.trex,Pe)}static moof(ge,Se){return Xe.box(Xe.types.moof,Xe.mfhd(ge.sequenceNumber),Xe.traf(ge,Se))}static mfhd(ge){let Se=new Uint8Array([0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255]);return Xe.box(Xe.types.mfhd,Se)}static traf(ge,Se){let Pe=ge.id,Le=Xe.box(Xe.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Ne=Xe.box(Xe.types.tfdt,new Uint8Array([0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255])),qe=Xe.sdtp(ge),it=Xe.trun(ge,qe.byteLength+16+16+8+16+8+8);return Xe.box(Xe.types.traf,Le,Ne,it,qe)}static sdtp(ge){let Se=ge.samples||[],Pe=Se.length,Le=new Uint8Array(4+Pe);for(let Ne=0;Ne<Pe;Ne++){let qe=Se[Ne].flags;Le[Ne+4]=qe.isLeading<<6|qe.dependsOn<<4|qe.isDependedOn<<2|qe.hasRedundancy}return Xe.box(Xe.types.sdtp,Le)}static trun(ge,Se){let Pe=ge.samples||[],Le=Pe.length,Ne=12+16*Le,qe=new Uint8Array(Ne);Se+=8+Ne,qe.set([0,0,15,1,Le>>>24&255,Le>>>16&255,Le>>>8&255,Le&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255],0);for(let it=0;it<Le;it++){let un=Pe[it].duration,Vt=Pe[it].size,En=Pe[it].flags,Vn=Pe[it].cts;qe.set([un>>>24&255,un>>>16&255,un>>>8&255,un&255,Vt>>>24&255,Vt>>>16&255,Vt>>>8&255,Vt&255,En.isLeading<<2|En.dependsOn,En.isDependedOn<<6|En.hasRedundancy<<4|En.isNonSync,0,0,Vn>>>24&255,Vn>>>16&255,Vn>>>8&255,Vn&255],12+16*it)}return Xe.box(Xe.types.trun,qe)}static mdat(ge){return Xe.box(Xe.types.mdat,ge)}}Xe.init();var Zt=Xe;class He{static getSilentFrame(ge,Se){if(ge==="mp4a.40.2"){if(Se===1)return new Uint8Array([0,200,0,128,35,128]);if(Se===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Se===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Se===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Se===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(Se===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])}else{if(Se===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(Se===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(Se===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])}return null}}var ut=He;class wn{constructor(ge,Se,Pe,Le,Ne){this.dts=ge,this.pts=Se,this.duration=Pe,this.originalDts=Le,this.isSyncPoint=Ne,this.fileposition=null}}class sn{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(ge){ge.isSyncPoint=!0,this.syncPoints.push(ge)}}class ht{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ge){let Se=this._list;ge.length!==0&&(Se.length>0&&ge[0].originalDts<Se[Se.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Se,ge))}getLastSyncPointBeforeDts(ge){if(this._list.length==0)return null;let Se=this._list,Pe=0,Le=Se.length-1,Ne=0,qe=0,it=Le;for(ge<Se[0].dts&&(Pe=0,qe=it+1);qe<=it;)if(Ne=qe+Math.floor((it-qe)/2),Ne===Le||ge>=Se[Ne].dts&&ge<Se[Ne+1].dts){Pe=Ne;break}else Se[Ne].dts<ge?qe=Ne+1:it=Ne-1;return this._list[Pe]}}class $t{constructor(ge){this._type=ge,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(ge){let Se=this._list;if(Se.length===0)return-2;let Pe=Se.length-1,Le=0,Ne=0,qe=Pe,it=0;if(ge<Se[0].originalBeginDts)return it=-1,it;for(;Ne<=qe;)if(Le=Ne+Math.floor((qe-Ne)/2),Le===Pe||ge>Se[Le].lastSample.originalDts&&ge<Se[Le+1].originalBeginDts){it=Le;break}else Se[Le].originalBeginDts<ge?Ne=Le+1:qe=Le-1;return it}_searchNearestSegmentAfter(ge){return this._searchNearestSegmentBefore(ge)+1}append(ge){let Se=this._list,Pe=ge,Le=this._lastAppendLocation,Ne=0;Le!==-1&&Le<Se.length&&Pe.originalBeginDts>=Se[Le].lastSample.originalDts&&(Le===Se.length-1||Le<Se.length-1&&Pe.originalBeginDts<Se[Le+1].originalBeginDts)?Ne=Le+1:Se.length>0&&(Ne=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Ne,this._list.splice(Ne,0,Pe)}getLastSegmentBefore(ge){let Se=this._searchNearestSegmentBefore(ge);return Se>=0?this._list[Se]:null}getLastSampleBefore(ge){let Se=this.getLastSegmentBefore(ge);return Se!=null?Se.lastSample:null}getLastSyncPointBefore(ge){let Se=this._searchNearestSegmentBefore(ge),Pe=this._list[Se].syncPoints;for(;Pe.length===0&&Se>0;)Se--,Pe=this._list[Se].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class on{constructor(ge){this.TAG="MP4Remuxer",this._config=ge,this._isLive=ge.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new $t("audio"),this._videoSegmentInfoList=new $t("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661)),this._fillSilentAfterSeek=b.msedge||b.msie,this._mp3UseMpegAudio=!b.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(ge){return ge.onDataAvailable=this.remux.bind(this),ge.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ge){this._onInitSegment=ge}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ge){this._onMediaSegment=ge}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ge){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ge,Se){if(!this._onMediaSegment)throw new fe("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ge,Se),this._remuxVideo(Se),this._remuxAudio(ge)}_onTrackMetadataReceived(ge,Se){let Pe=null,Le="mp4",Ne=Se.codec;if(ge==="audio")this._audioMeta=Se,Se.codec==="mp3"&&this._mp3UseMpegAudio?(Le="mpeg",Ne="",Pe=new Uint8Array):Pe=Zt.generateInitSegment(Se);else if(ge==="video")this._videoMeta=Se,Pe=Zt.generateInitSegment(Se);else return;if(!this._onInitSegment)throw new fe("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ge,{type:ge,data:Pe.buffer,codec:Ne,container:`${ge}/${Le}`,mediaDuration:Se.duration})}_calculateDtsBase(ge,Se){this._dtsBaseInited||(ge.samples&&ge.samples.length&&(this._audioDtsBase=ge.samples[0].dts),Se.samples&&Se.samples.length&&(this._videoDtsBase=Se.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ge=this._videoStashedLastSample,Se=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ge!=null&&(Pe.samples.push(ge),Pe.length=ge.length);let Le={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Se!=null&&(Le.samples.push(Se),Le.length=Se.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(Le,!0)}_remuxAudio(ge,Se){if(this._audioMeta==null)return;let Pe=ge,Le=Pe.samples,Ne,qe=-1,it=-1,un=-1,Vt=this._audioMeta.refSampleDuration,En=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Vn=this._dtsBaseInited&&this._audioNextDts===void 0,Pr=!1;if(!Le||Le.length===0||Le.length===1&&!Se)return;let Ot=0,qn=null,er=0;En?(Ot=0,er=Pe.length):(Ot=8,er=8+Pe.length);let Pn=null;if(Le.length>1&&(Pn=Le.pop(),er-=Pn.length),this._audioStashedLastSample!=null){let fr=this._audioStashedLastSample;this._audioStashedLastSample=null,Le.unshift(fr),er+=fr.length}Pn!=null&&(this._audioStashedLastSample=Pn);let An=Le[0].dts-this._dtsBase;if(this._audioNextDts)Ne=An-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ne=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Pr=!0);else{let fr=this._audioSegmentInfoList.getLastSampleBefore(An);if(fr!=null){let Vr=An-(fr.originalDts+fr.duration);Vr<=3&&(Vr=0);let Yo=fr.dts+fr.duration+Vr;Ne=An-Yo}else Ne=0}if(Pr){let fr=An-Ne,Vr=this._videoSegmentInfoList.getLastSegmentBefore(An);if(Vr!=null&&Vr.beginDts<fr){let Yo=ut.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Yo){let Io=Vr.beginDts,ni=fr-Vr.beginDts;pe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${Io}, duration: ${ni}`),Le.unshift({unit:Yo,dts:Io,pts:Io}),er+=Yo.byteLength}}else Pr=!1}let Yn=[];for(let fr=0;fr<Le.length;fr++){let Vr=Le[fr],Yo=Vr.unit,Io=Vr.dts-this._dtsBase,ni=Io-Ne;qe===-1&&(qe=ni);let gi=0;fr!==Le.length-1?gi=Le[fr+1].dts-this._dtsBase-Ne-ni:Pn!=null?gi=Pn.dts-this._dtsBase-Ne-ni:Yn.length>=1?gi=Yn[Yn.length-1].duration:gi=Math.floor(Vt);let Vi=!1,fn=null;if(gi>Vt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Vi=!0;let xo=Math.abs(gi-Vt),Yi=Math.ceil(xo/Vt),Cn=ni+Vt;pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${ni+gi} ms, expected: ${ni+Math.round(Vt)} ms, delta: ${Math.round(xo)} ms, generate: ${Yi} frames`);let nr=ut.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);nr==null&&(pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),nr=Yo),fn=[];for(let rr=0;rr<Yi;rr++){let ei=Math.round(Cn);if(fn.length>0){let ri=fn[fn.length-1];ri.duration=ei-ri.dts}let po={dts:ei,pts:ei,cts:0,unit:nr,size:nr.byteLength,duration:0,originalDts:Io,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};fn.push(po),er+=po.size,Cn+=Vt}let wr=fn[fn.length-1];wr.duration=ni+gi-wr.dts,gi=Math.round(Vt)}Yn.push({dts:ni,pts:ni,cts:0,unit:Vr.unit,size:Vr.unit.byteLength,duration:gi,originalDts:Io,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Vi&&Yn.push.apply(Yn,fn)}En?qn=new Uint8Array(er):(qn=new Uint8Array(er),qn[0]=er>>>24&255,qn[1]=er>>>16&255,qn[2]=er>>>8&255,qn[3]=er&255,qn.set(Zt.types.mdat,4));for(let fr=0;fr<Yn.length;fr++){let Vr=Yn[fr].unit;qn.set(Vr,Ot),Ot+=Vr.byteLength}let yr=Yn[Yn.length-1];it=yr.dts+yr.duration,this._audioNextDts=it;let lr=new sn;lr.beginDts=qe,lr.endDts=it,lr.beginPts=qe,lr.endPts=it,lr.originalBeginDts=Yn[0].originalDts,lr.originalEndDts=yr.originalDts+yr.duration,lr.firstSample=new wn(Yn[0].dts,Yn[0].pts,Yn[0].duration,Yn[0].originalDts,!1),lr.lastSample=new wn(yr.dts,yr.pts,yr.duration,yr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(lr),Pe.samples=Yn,Pe.sequenceNumber++;let ci=null;En?ci=new Uint8Array:ci=Zt.moof(Pe,qe),Pe.samples=[],Pe.length=0;let Po={type:"audio",data:this._mergeBoxes(ci,qn).buffer,sampleCount:Yn.length,info:lr};En&&Vn&&(Po.timestampOffset=qe),this._onMediaSegment("audio",Po)}_remuxVideo(ge,Se){if(this._videoMeta==null)return;let Pe=ge,Le=Pe.samples,Ne,qe=-1,it=-1,un=-1,Vt=-1;if(!Le||Le.length===0||Le.length===1&&!Se)return;let En=8,Vn=null,Pr=8+ge.length,Ot=null;if(Le.length>1&&(Ot=Le.pop(),Pr-=Ot.length),this._videoStashedLastSample!=null){let yr=this._videoStashedLastSample;this._videoStashedLastSample=null,Le.unshift(yr),Pr+=yr.length}Ot!=null&&(this._videoStashedLastSample=Ot);let qn=Le[0].dts-this._dtsBase;if(this._videoNextDts)Ne=qn-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ne=0;else{let yr=this._videoSegmentInfoList.getLastSampleBefore(qn);if(yr!=null){let lr=qn-(yr.originalDts+yr.duration);lr<=3&&(lr=0);let ci=yr.dts+yr.duration+lr;Ne=qn-ci}else Ne=0}let er=new sn,Pn=[];for(let yr=0;yr<Le.length;yr++){let lr=Le[yr],ci=lr.dts-this._dtsBase,Po=lr.isKeyframe,fr=ci-Ne,Vr=lr.cts,Yo=fr+Vr;qe===-1&&(qe=fr,un=Yo);let Io=0;if(yr!==Le.length-1?Io=Le[yr+1].dts-this._dtsBase-Ne-fr:Ot!=null?Io=Ot.dts-this._dtsBase-Ne-fr:Pn.length>=1?Io=Pn[Pn.length-1].duration:Io=Math.floor(this._videoMeta.refSampleDuration),Po){let ni=new wn(fr,Yo,Io,lr.dts,!0);ni.fileposition=lr.fileposition,er.appendSyncPoint(ni)}Pn.push({dts:fr,pts:Yo,cts:Vr,units:lr.units,size:lr.length,isKeyframe:Po,duration:Io,originalDts:ci,flags:{isLeading:0,dependsOn:Po?2:1,isDependedOn:Po?1:0,hasRedundancy:0,isNonSync:Po?0:1}})}Vn=new Uint8Array(Pr),Vn[0]=Pr>>>24&255,Vn[1]=Pr>>>16&255,Vn[2]=Pr>>>8&255,Vn[3]=Pr&255,Vn.set(Zt.types.mdat,4);for(let yr=0;yr<Pn.length;yr++){let lr=Pn[yr].units;for(;lr.length;){let Po=lr.shift().data;Vn.set(Po,En),En+=Po.byteLength}}let An=Pn[Pn.length-1];if(it=An.dts+An.duration,Vt=An.pts+An.duration,this._videoNextDts=it,er.beginDts=qe,er.endDts=it,er.beginPts=un,er.endPts=Vt,er.originalBeginDts=Pn[0].originalDts,er.originalEndDts=An.originalDts+An.duration,er.firstSample=new wn(Pn[0].dts,Pn[0].pts,Pn[0].duration,Pn[0].originalDts,Pn[0].isKeyframe),er.lastSample=new wn(An.dts,An.pts,An.duration,An.originalDts,An.isKeyframe),this._isLive||this._videoSegmentInfoList.append(er),Pe.samples=Pn,Pe.sequenceNumber++,this._forceFirstIDR){let yr=Pn[0].flags;yr.dependsOn=2,yr.isNonSync=0}let Yn=Zt.moof(Pe,qe);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Yn,Vn).buffer,sampleCount:Pn.length,info:er})}_mergeBoxes(ge,Se){let Pe=new Uint8Array(ge.byteLength+Se.byteLength);return Pe.set(ge,0),Pe.set(Se,ge.byteLength),Pe}}var bn=on,Dt={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class Rn{constructor(ge,Se){this.TAG="TransmuxingController",this._emitter=new(ve()),this._config=Se,ge.segments||(ge.segments=[{duration:ge.duration,filesize:ge.filesize,url:ge.url}]),typeof ge.cors!="boolean"&&(ge.cors=!0),typeof ge.withCredentials!="boolean"&&(ge.withCredentials=!1),this._mediaDataSource=ge,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(Le=>{Le.timestampBase=Pe,Pe+=Le.duration,Le.cors=ge.cors,Le.withCredentials=ge.withCredentials,Se.referrerPolicy&&(Le.referrerPolicy=Se.referrerPolicy)}),!isNaN(Pe)&&this._mediaDataSource.duration!==Pe&&(this._mediaDataSource.duration=Pe),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(ge,Se){this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ge,Se){this._currentSegmentIndex=ge;let Pe=this._mediaDataSource.segments[ge],Le=this._ioctl=new De(Pe,this._config,ge);Le.onError=this._onIOException.bind(this),Le.onSeeked=this._onIOSeeked.bind(this),Le.onComplete=this._onIOComplete.bind(this),Le.onRedirect=this._onIORedirect.bind(this),Le.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Se?this._demuxer.bindDataSource(this._ioctl):Le.onDataArrival=this._onInitChunkArrival.bind(this),Le.open(Se)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(ge){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let Se=this._searchSegmentIndexContains(ge);if(Se===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[Se];if(Pe==null)this._pendingSeekTime=ge;else{let Le=Pe.getNearestKeyframe(ge);this._remuxer.seek(Le.milliseconds),this._ioctl.seek(Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds}}else{let Pe=this._mediaInfo.segments[Se];if(Pe==null)this._pendingSeekTime=ge,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Se);else{let Le=Pe.getNearestKeyframe(ge);this._internalAbort(),this._remuxer.seek(ge),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Se].timestampBase,this._loadSegment(Se,Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds,this._reportSegmentMediaInfo(Se)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ge){let Se=this._mediaDataSource.segments,Pe=Se.length-1;for(let Le=0;Le<Se.length;Le++)if(ge<Se[Le].timestampBase){Pe=Le-1;break}return Pe}_onInitChunkArrival(ge,Se){let Pe=null,Le=0;if(Se>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Le=this._demuxer.parseChunks(ge,Se);else if((Pe=Pt.probe(ge)).match){this._demuxer=new Pt(Pe,this._config),this._remuxer||(this._remuxer=new bn(this._config));let Ne=this._mediaDataSource;Ne.duration!=null&&!isNaN(Ne.duration)&&(this._demuxer.overridedDuration=Ne.duration),typeof Ne.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ne.hasAudio),typeof Ne.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ne.hasVideo),this._demuxer.timestampBase=Ne.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),Le=this._demuxer.parseChunks(ge,Se)}else Pe=null,pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Dt.DEMUX_ERROR,Je.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Le=0;return Le}_onMediaInfo(ge){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ge),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ct.prototype));let Se=Object.assign({},ge);Object.setPrototypeOf(Se,Ct.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Se,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(ge){this._emitter.emit(Dt.METADATA_ARRIVED,ge)}_onScriptDataArrived(ge){this._emitter.emit(Dt.SCRIPTDATA_ARRIVED,ge)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ge){let Pe=ge+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Dt.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(ge){let Se=this._ioctl.extraData;this._mediaDataSource.segments[Se].redirectedURL=ge}_onIORecoveredEarlyEof(){this._emitter.emit(Dt.RECOVERED_EARLY_EOF)}_onIOException(ge,Se){pe.e(this.TAG,`IOException: type = ${ge}, code = ${Se.code}, msg = ${Se.msg}`),this._emitter.emit(Dt.IO_ERROR,ge,Se),this._disableStatisticsReporter()}_onDemuxException(ge,Se){pe.e(this.TAG,`DemuxException: type = ${ge}, info = ${Se}`),this._emitter.emit(Dt.DEMUX_ERROR,ge,Se)}_onRemuxerInitSegmentArrival(ge,Se){this._emitter.emit(Dt.INIT_SEGMENT,ge,Se)}_onRemuxerMediaSegmentArrival(ge,Se){if(this._pendingSeekTime==null&&(this._emitter.emit(Dt.MEDIA_SEGMENT,ge,Se),this._pendingResolveSeekPoint!=null&&ge==="video")){let Pe=Se.info.syncPoints,Le=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===Le&&(Le=Pe[0].pts),this._emitter.emit(Dt.RECOMMEND_SEEKPOINT,Le)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(ge){let Se=this._mediaInfo.segments[ge],Pe=Object.assign({},Se);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(Dt.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let ge={};ge.url=this._ioctl.currentURL,ge.hasRedirect=this._ioctl.hasRedirect,ge.hasRedirect&&(ge.redirectedURL=this._ioctl.currentRedirectedURL),ge.speed=this._ioctl.currentSpeed,ge.loaderType=this._ioctl.loaderType,ge.currentSegmentIndex=this._currentSegmentIndex,ge.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Dt.STATISTICS_INFO,ge)}}var Gn=Rn,mr=function(cn){let ge="TransmuxingWorker",Se=null,Pe=er.bind(this);ue.install(),cn.addEventListener("message",function(Pn){switch(Pn.data.cmd){case"init":Se=new Gn(Pn.data.param[0],Pn.data.param[1]),Se.on(Dt.IO_ERROR,Pr.bind(this)),Se.on(Dt.DEMUX_ERROR,Ot.bind(this)),Se.on(Dt.INIT_SEGMENT,Le.bind(this)),Se.on(Dt.MEDIA_SEGMENT,Ne.bind(this)),Se.on(Dt.LOADING_COMPLETE,qe.bind(this)),Se.on(Dt.RECOVERED_EARLY_EOF,it.bind(this)),Se.on(Dt.MEDIA_INFO,un.bind(this)),Se.on(Dt.METADATA_ARRIVED,Vt.bind(this)),Se.on(Dt.SCRIPTDATA_ARRIVED,En.bind(this)),Se.on(Dt.STATISTICS_INFO,Vn.bind(this)),Se.on(Dt.RECOMMEND_SEEKPOINT,qn.bind(this));break;case"destroy":Se&&(Se.destroy(),Se=null),cn.postMessage({msg:"destroyed"});break;case"start":Se.start();break;case"stop":Se.stop();break;case"seek":Se.seek(Pn.data.param);break;case"pause":Se.pause();break;case"resume":Se.resume();break;case"logging_config":{let An=Pn.data.param;rt.applyConfig(An),An.enableCallback===!0?rt.addLogListener(Pe):rt.removeLogListener(Pe);break}}});function Le(Pn,An){let Yn={msg:Dt.INIT_SEGMENT,data:{type:Pn,data:An}};cn.postMessage(Yn,[An.data])}function Ne(Pn,An){let Yn={msg:Dt.MEDIA_SEGMENT,data:{type:Pn,data:An}};cn.postMessage(Yn,[An.data])}function qe(){let Pn={msg:Dt.LOADING_COMPLETE};cn.postMessage(Pn)}function it(){let Pn={msg:Dt.RECOVERED_EARLY_EOF};cn.postMessage(Pn)}function un(Pn){let An={msg:Dt.MEDIA_INFO,data:Pn};cn.postMessage(An)}function Vt(Pn){let An={msg:Dt.METADATA_ARRIVED,data:Pn};cn.postMessage(An)}function En(Pn){let An={msg:Dt.SCRIPTDATA_ARRIVED,data:Pn};cn.postMessage(An)}function Vn(Pn){let An={msg:Dt.STATISTICS_INFO,data:Pn};cn.postMessage(An)}function Pr(Pn,An){cn.postMessage({msg:Dt.IO_ERROR,data:{type:Pn,info:An}})}function Ot(Pn,An){cn.postMessage({msg:Dt.DEMUX_ERROR,data:{type:Pn,info:An}})}function qn(Pn){cn.postMessage({msg:Dt.RECOMMEND_SEEKPOINT,data:Pn})}function er(Pn,An){cn.postMessage({msg:"logcat_callback",data:{type:Pn,logcat:An}})}};class ur{constructor(ge,Se){if(this.TAG="Transmuxer",this._emitter=new(ve()),Se.enableWorker&&typeof Worker!="undefined")try{let Pe=ee(18034);this._worker=Pe(mr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ge,Se]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},rt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:rt.getConfig()})}catch(Pe){pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Gn(ge,Se)}else this._controller=new Gn(ge,Se);if(this._controller){let Pe=this._controller;Pe.on(Dt.IO_ERROR,this._onIOError.bind(this)),Pe.on(Dt.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(Dt.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(Dt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(Dt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(Dt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(Dt.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(Dt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(Dt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(Dt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(Dt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),rt.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(ge,Se){this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(ge){this._worker?this._worker.postMessage({cmd:"seek",param:ge}):this._controller.seek(ge)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.INIT_SEGMENT,ge,Se)})}_onMediaSegment(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.MEDIA_SEGMENT,ge,Se)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Dt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Dt.RECOVERED_EARLY_EOF)})}_onMediaInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.MEDIA_INFO,ge)})}_onMetaDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.METADATA_ARRIVED,ge)})}_onScriptDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.SCRIPTDATA_ARRIVED,ge)})}_onStatisticsInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.STATISTICS_INFO,ge)})}_onIOError(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.IO_ERROR,ge,Se)})}_onDemuxError(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.DEMUX_ERROR,ge,Se)})}_onRecommendSeekpoint(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.RECOMMEND_SEEKPOINT,ge)})}_onLoggingConfigChanged(ge){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ge})}_onWorkerMessage(ge){let Se=ge.data,Pe=Se.data;if(Se.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Se.msg){case Dt.INIT_SEGMENT:case Dt.MEDIA_SEGMENT:this._emitter.emit(Se.msg,Pe.type,Pe.data);break;case Dt.LOADING_COMPLETE:case Dt.RECOVERED_EARLY_EOF:this._emitter.emit(Se.msg);break;case Dt.MEDIA_INFO:Object.setPrototypeOf(Pe,Ct.prototype),this._emitter.emit(Se.msg,Pe);break;case Dt.METADATA_ARRIVED:case Dt.SCRIPTDATA_ARRIVED:case Dt.STATISTICS_INFO:this._emitter.emit(Se.msg,Pe);break;case Dt.IO_ERROR:case Dt.DEMUX_ERROR:this._emitter.emit(Se.msg,Pe.type,Pe.info);break;case Dt.RECOMMEND_SEEKPOINT:this._emitter.emit(Se.msg,Pe);break;case"logcat_callback":pe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var Tn=ur,zr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class lo{constructor(ge){this.TAG="MSEController",this._config=ge,this._emitter=new(ve()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new ht}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,Se){this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}attachMediaElement(ge){if(this._mediaSource)throw new fe("MediaSource has been attached to an HTMLMediaElement!");let Se=this._mediaSource=new window.MediaSource;Se.addEventListener("sourceopen",this.e.onSourceOpen),Se.addEventListener("sourceended",this.e.onSourceEnded),Se.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ge,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ge.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ge=this._mediaSource;for(let Se in this._sourceBuffers){let Pe=this._pendingSegments[Se];Pe.splice(0,Pe.length),this._pendingSegments[Se]=null,this._pendingRemoveRanges[Se]=null,this._lastInitSegments[Se]=null;let Le=this._sourceBuffers[Se];if(Le){if(ge.readyState!=="closed"){try{ge.removeSourceBuffer(Le)}catch(Ne){pe.e(this.TAG,Ne.message)}Le.removeEventListener("error",this.e.onSourceBufferError),Le.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Se]=null,this._sourceBuffers[Se]=null}}if(ge.readyState==="open")try{ge.endOfStream()}catch(Se){pe.e(this.TAG,Se.message)}ge.removeEventListener("sourceopen",this.e.onSourceOpen),ge.removeEventListener("sourceended",this.e.onSourceEnded),ge.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(ge,Se){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ge),this._pendingSegments[ge.type].push(ge);return}let Pe=ge,Le=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(Le+=`;codecs=${Pe.codec}`);let Ne=!1;if(pe.v(this.TAG,"Received Initialization Segment, mimeType: "+Le),this._lastInitSegments[Pe.type]=Pe,Le!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])pe.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${Le}`);else{Ne=!0;try{let qe=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(Le);qe.addEventListener("error",this.e.onSourceBufferError),qe.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(qe){pe.e(this.TAG,qe.message),this._emitter.emit(zr.ERROR,{code:qe.code,msg:qe.message});return}}this._mimeTypes[Pe.type]=Le}Se||this._pendingSegments[Pe.type].push(Pe),Ne||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),b.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(ge){let Se=ge;this._pendingSegments[Se.type].push(Se),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[Se.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ge){for(let Se in this._sourceBuffers){if(!this._sourceBuffers[Se])continue;let Pe=this._sourceBuffers[Se];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Ne){pe.e(this.TAG,Ne.message)}this._idrList.clear();let Le=this._pendingSegments[Se];if(Le.splice(0,Le.length),this._mediaSource.readyState!=="closed"){for(let Ne=0;Ne<Pe.buffered.length;Ne++){let qe=Pe.buffered.start(Ne),it=Pe.buffered.end(Ne);this._pendingRemoveRanges[Se].push({start:qe,end:it})}if(Pe.updating||this._doRemoveRanges(),b.safari){let Ne=this._lastInitSegments[Se];Ne&&(this._pendingSegments[Se].push(Ne),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let ge=this._mediaSource,Se=this._sourceBuffers;if(!ge||ge.readyState!=="open"){ge&&ge.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Se.video&&Se.video.updating||Se.audio&&Se.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ge.endOfStream())}getNearestKeyframe(ge){return this._idrList.getLastSyncPointBeforeDts(ge)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let ge=this._mediaElement.currentTime;for(let Se in this._sourceBuffers){let Pe=this._sourceBuffers[Se];if(Pe){let Le=Pe.buffered;if(Le.length>=1&&ge-Le.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ge=this._mediaElement.currentTime;for(let Se in this._sourceBuffers){let Pe=this._sourceBuffers[Se];if(Pe){let Le=Pe.buffered,Ne=!1;for(let qe=0;qe<Le.length;qe++){let it=Le.start(qe),un=Le.end(qe);if(it<=ge&&ge<un+3){if(ge-it>=this._config.autoCleanupMaxBackwardDuration){Ne=!0;let Vt=ge-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Se].push({start:it,end:Vt})}}else un<ge&&(Ne=!0,this._pendingRemoveRanges[Se].push({start:it,end:un}))}Ne&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let ge=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||ge.video&&ge.video.updating||ge.audio&&ge.audio.updating)return;let Se=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(Se)||Pe>Se)&&(pe.v(this.TAG,`Update MediaSource duration from ${Se} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ge in this._pendingRemoveRanges){if(!this._sourceBuffers[ge]||this._sourceBuffers[ge].updating)continue;let Se=this._sourceBuffers[ge],Pe=this._pendingRemoveRanges[ge];for(;Pe.length&&!Se.updating;){let Le=Pe.shift();Se.remove(Le.start,Le.end)}}}_doAppendSegments(){let ge=this._pendingSegments;for(let Se in ge)if(!(!this._sourceBuffers[Se]||this._sourceBuffers[Se].updating)&&ge[Se].length>0){let Pe=ge[Se].shift();if(Pe.timestampOffset){let Le=this._sourceBuffers[Se].timestampOffset,Ne=Pe.timestampOffset/1e3;Math.abs(Le-Ne)>.1&&(pe.v(this.TAG,`Update MPEG audio timestampOffset from ${Le} to ${Ne}`),this._sourceBuffers[Se].timestampOffset=Ne),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[Se].appendBuffer(Pe.data),this._isBufferFull=!1,Se==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Le){this._pendingSegments[Se].unshift(Pe),Le.code===22?(this._isBufferFull||this._emitter.emit(zr.BUFFER_FULL),this._isBufferFull=!0):(pe.e(this.TAG,Le.message),this._emitter.emit(zr.ERROR,{code:Le.code,msg:Le.message}))}}}_onSourceOpen(){if(pe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let ge=this._pendingSourceBufferInit;for(;ge.length;){let Se=ge.shift();this.appendInitSegment(Se,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(zr.SOURCE_OPEN)}_onSourceEnded(){pe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){pe.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let ge=this._pendingSegments;return ge.video.length>0||ge.audio.length>0}_hasPendingRemoveRanges(){let ge=this._pendingRemoveRanges;return ge.video.length>0||ge.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(zr.UPDATE_END)}_onSourceBufferError(ge){pe.e(this.TAG,`SourceBuffer Error: ${ge}`)}}var di=lo;const Ko={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},pr={NETWORK_EXCEPTION:ne.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ne.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ne.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ne.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Je.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Je.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Je.CODEC_UNSUPPORTED};class Xr{constructor(ge,Se){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ve()),this._config=tt(),typeof Se=="object"&&Object.assign(this._config,Se),ge.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");ge.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ge,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let Pe=b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661);this._alwaysSeekKeyframe=!!(Pe||b.msedge||b.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,Se){ge===Kt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Kt.MEDIA_INFO,this.mediaInfo)}):ge===Kt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Kt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ge.addEventListener("seeking",this.e.onvSeeking),ge.addEventListener("canplay",this.e.onvCanPlay),ge.addEventListener("stalled",this.e.onvStalled),ge.addEventListener("progress",this.e.onvProgress),this._msectl=new di(this._config),this._msectl.on(zr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(zr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(zr.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(zr.ERROR,Se=>{this._emitter.emit(Kt.ERROR,Ko.MEDIA_ERROR,pr.MEDIA_MSE_ERROR,Se)}),this._msectl.attachMediaElement(ge),this._pendingSeekTime!=null)try{ge.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Se){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new fe("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new fe("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Tn(this._mediaDataSource,this._config),this._transmuxer.on(Dt.INIT_SEGMENT,(ge,Se)=>{this._msectl.appendInitSegment(Se)}),this._transmuxer.on(Dt.MEDIA_SEGMENT,(ge,Se)=>{if(this._msectl.appendMediaSegment(Se),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;Se.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Dt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Kt.LOADING_COMPLETE)}),this._transmuxer.on(Dt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Kt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Dt.IO_ERROR,(ge,Se)=>{this._emitter.emit(Kt.ERROR,Ko.NETWORK_ERROR,ge,Se)}),this._transmuxer.on(Dt.DEMUX_ERROR,(ge,Se)=>{this._emitter.emit(Kt.ERROR,Ko.MEDIA_ERROR,ge,{code:-1,msg:Se})}),this._transmuxer.on(Dt.MEDIA_INFO,ge=>{this._mediaInfo=ge,this._emitter.emit(Kt.MEDIA_INFO,Object.assign({},ge))}),this._transmuxer.on(Dt.METADATA_ARRIVED,ge=>{this._emitter.emit(Kt.METADATA_ARRIVED,ge)}),this._transmuxer.on(Dt.SCRIPTDATA_ARRIVED,ge=>{this._emitter.emit(Kt.SCRIPTDATA_ARRIVED,ge)}),this._transmuxer.on(Dt.STATISTICS_INFO,ge=>{this._statisticsInfo=this._fillStatisticsInfo(ge),this._emitter.emit(Kt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Dt.RECOMMEND_SEEKPOINT,ge=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._internalSeek(ge):this._pendingSeekTime=ge}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(ge){if(ge.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ge;let Se=!0,Pe=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();Pe=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):Se=!1;return Se&&(ge.decodedFrames=Pe,ge.droppedFrames=Le),ge}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ge=this._mediaElement.buffered,Se=this._mediaElement.currentTime,Pe=0,Le=0;for(let Ne=0;Ne<ge.length;Ne++){let qe=ge.start(Ne),it=ge.end(Ne);if(qe<=Se&&Se<it){Pe=qe,Le=it;break}}Le>=Se+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){pe.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let ge=this._mediaElement.currentTime,Se=this._mediaElement.buffered,Pe=!1;for(let Le=0;Le<Se.length;Le++){let Ne=Se.start(Le),qe=Se.end(Le);if(ge>=Ne&&ge<qe){ge>=qe-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(pe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(ge){let Se=this._mediaElement.buffered;for(let Pe=0;Pe<Se.length;Pe++){let Le=Se.start(Pe),Ne=Se.end(Pe);if(ge>=Le&&ge<Ne)return!0}return!1}_internalSeek(ge){let Se=this._isTimepointBuffered(ge),Pe=!1,Le=0;if(ge<1&&this._mediaElement.buffered.length>0){let Ne=this._mediaElement.buffered.start(0);(Ne<1&&ge<Ne||b.safari)&&(Pe=!0,Le=b.safari?.1:Ne)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=Le;else if(Se){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ge;else{let Ne=this._msectl.getNearestKeyframe(Math.floor(ge*1e3));this._requestSetTime=!0,Ne!=null?this._mediaElement.currentTime=Ne.dts/1e3:this._mediaElement.currentTime=ge}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ge),this._transmuxer.seek(Math.floor(ge*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let ge=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ge)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ge),this._transmuxer.seek(Math.floor(ge*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(ge){let Se=this._mediaElement;if(ge||!this._receivedCanPlay||Se.readyState<2){let Pe=Se.buffered;Pe.length>0&&Se.currentTime<Pe.start(0)&&(pe.w(this.TAG,`Playback seems stuck at ${Se.currentTime}, seek to ${Pe.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(ge){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(ge){let Se=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Se<1&&Pe.length>0){let Le=Pe.start(0);if(Le<1&&Se<Le||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:Le;return}}if(this._isTimepointBuffered(Se)){if(this._alwaysSeekKeyframe){let Le=this._msectl.getNearestKeyframe(Math.floor(Se*1e3));Le!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=Le.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Se,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(ge){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(ge){this._checkAndResumeStuckPlayback(!0)}_onvProgress(ge){this._checkAndResumeStuckPlayback()}}var to=Xr;class mo{constructor(ge,Se){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(ve()),this._config=tt(),typeof Se=="object"&&Object.assign(this._config,Se),ge.type.toLowerCase()==="flv")throw new se("NativePlayer does't support flv MediaDataSource input!");if(ge.hasOwnProperty("segments"))throw new se(`NativePlayer(${ge.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=ge,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,Se){ge===Kt.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Kt.MEDIA_INFO,this.mediaInfo)}):ge===Kt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Kt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ge.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Se){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new fe("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._mediaElement.currentTime=ge:this._pendingSeekTime=ge}get mediaInfo(){let Se={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(Se.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Se.width=this._mediaElement.videoWidth,Se.height=this._mediaElement.videoHeight)),Se}get statisticsInfo(){let ge={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ge;let Se=!0,Pe=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();Pe=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):Se=!1;return Se&&(ge.decodedFrames=Pe,ge.droppedFrames=Le),ge}_onvLoadedMetadata(ge){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Kt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Kt.STATISTICS_INFO,this.statisticsInfo)}}var Kr=mo;ue.install();function Vo(cn,ge){let Se=cn;if(Se==null||typeof Se!="object")throw new se("MediaDataSource must be an javascript object!");if(!Se.hasOwnProperty("type"))throw new se("MediaDataSource must has type field to indicate video file type!");switch(Se.type){case"flv":return new to(Se,ge);default:return new Kr(Se,ge)}}function Do(){return bt.supportMSEH264Playback()}function io(){return bt.getFeatureList()}let Cr={};Cr.createPlayer=Vo,Cr.isSupported=Do,Cr.getFeatureList=io,Cr.BaseLoader=a,Cr.LoaderStatus=re,Cr.LoaderErrors=ne,Cr.Events=Kt,Cr.ErrorTypes=Ko,Cr.ErrorDetails=pr,Cr.FlvPlayer=to,Cr.NativePlayer=Kr,Cr.LoggingControl=rt,Object.defineProperty(Cr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ei=Cr},38780:function(ot,Ge){"use strict";function ee(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ue=1;ue<arguments.length;ue++){const be=ue<0||arguments.length<=ue?void 0:arguments[ue];be&&Object.keys(be).forEach(ve=>{const de=be[ve];de!==void 0&&(te[ve]=de)})}return te}Ge.Z=ee},66367:function(ot,Ge,ee){"use strict";ee.d(Ge,{F:function(){return te},Z:function(){return ue}});function te(be){return be!=null&&be===be.window}function ue(be,ve){var de,pe;if(typeof window=="undefined")return 0;const ae=ve?"scrollTop":"scrollLeft";let he=0;return te(be)?he=be[ve?"pageYOffset":"pageXOffset"]:be instanceof Document?he=be.documentElement[ae]:(be instanceof HTMLElement||be)&&(he=be[ae]),be&&!te(be)&&typeof he!="number"&&(he=(pe=((de=be.ownerDocument)!==null&&de!==void 0?de:be).documentElement)===null||pe===void 0?void 0:pe[ae]),he}},57838:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ue}});var te=ee(67294);function ue(){const[,be]=te.useReducer(ve=>ve+1,0);return be}},58375:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(96523);function ue(de,pe,ae,he){const le=ae-pe;return de/=he/2,de<1?le/2*de*de*de+pe:le/2*((de-=2)*de*de+2)+pe}var be=ee(66367);function ve(de){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ae=()=>window,callback:he,duration:le=450}=pe,fe=ae(),se=(0,be.Z)(fe,!0),me=Date.now(),re=()=>{const a=Date.now()-me,y=ue(a>le?le:a,se,de,le);(0,be.F)(fe)?fe.scrollTo(window.pageXOffset,y):fe instanceof Document||fe.constructor.name==="HTMLDocument"?fe.documentElement.scrollTop=y:fe.scrollTop=y,a<le?(0,te.Z)(re):typeof he=="function"&&he()};(0,te.Z)(re)}},84567:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return ye}});var te=ee(94184),ue=ee.n(te),be=ee(95860),ve=ee(67294),de=ee(53124),pe=ee(98866),ae=ee(65223),le=ve.createContext(null),fe=ee(63185),se=ee(45353),me=ee(92429),re=function(_e,xe){var Ce={};for(var Te in _e)Object.prototype.hasOwnProperty.call(_e,Te)&&xe.indexOf(Te)<0&&(Ce[Te]=_e[Te]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Te=Object.getOwnPropertySymbols(_e);Me<Te.length;Me++)xe.indexOf(Te[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,Te[Me])&&(Ce[Te[Me]]=_e[Te[Me]]);return Ce};const ne=(_e,xe)=>{var Ce;const{prefixCls:Te,className:Me,rootClassName:pt,children:Ve,indeterminate:gt=!1,style:Ae,onMouseEnter:De,onMouseLeave:Ie,skipGroup:tt=!1,disabled:Ze}=_e,bt=re(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:Kt,checkbox:Qt}=ve.useContext(de.E_),rt=ve.useContext(le),{isFormItemInput:st}=ve.useContext(ae.aM),Ct=ve.useContext(pe.Z),Gt=(Ce=(rt==null?void 0:rt.disabled)||Ze)!==null&&Ce!==void 0?Ce:Ct,Ht=ve.useRef(bt.value);ve.useEffect(()=>{rt==null||rt.registerValue(bt.value)},[]),ve.useEffect(()=>{if(!tt)return bt.value!==Ht.current&&(rt==null||rt.cancelValue(Ht.current),rt==null||rt.registerValue(bt.value),Ht.current=bt.value),()=>rt==null?void 0:rt.cancelValue(bt.value)},[bt.value]);const Bt=wt("checkbox",Te),[Ke,Jt]=(0,fe.ZP)(Bt),Mn=Object.assign({},bt);rt&&!tt&&(Mn.onChange=function(){bt.onChange&&bt.onChange.apply(bt,arguments),rt.toggleOption&&rt.toggleOption({label:Ve,value:bt.value})},Mn.name=rt.name,Mn.checked=rt.value.includes(bt.value));const Hn=ue()(`${Bt}-wrapper`,{[`${Bt}-rtl`]:Kt==="rtl",[`${Bt}-wrapper-checked`]:Mn.checked,[`${Bt}-wrapper-disabled`]:Gt,[`${Bt}-wrapper-in-form-item`]:st},Qt==null?void 0:Qt.className,Me,pt,Jt),pn=ue()({[`${Bt}-indeterminate`]:gt},me.A,Jt),kt=gt?"mixed":void 0;return Ke(ve.createElement(se.Z,{component:"Checkbox",disabled:Gt},ve.createElement("label",{className:Hn,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),Ae),onMouseEnter:De,onMouseLeave:Ie},ve.createElement(be.Z,Object.assign({"aria-checked":kt},Mn,{prefixCls:Bt,className:pn,disabled:Gt,ref:xe})),Ve!==void 0&&ve.createElement("span",null,Ve))))};var y=ve.forwardRef(ne),E=ee(74902),b=ee(10366),x=function(_e,xe){var Ce={};for(var Te in _e)Object.prototype.hasOwnProperty.call(_e,Te)&&xe.indexOf(Te)<0&&(Ce[Te]=_e[Te]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Te=Object.getOwnPropertySymbols(_e);Me<Te.length;Me++)xe.indexOf(Te[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,Te[Me])&&(Ce[Te[Me]]=_e[Te[Me]]);return Ce};const z=(_e,xe)=>{const{defaultValue:Ce,children:Te,options:Me=[],prefixCls:pt,className:Ve,rootClassName:gt,style:Ae,onChange:De}=_e,Ie=x(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:tt,direction:Ze}=ve.useContext(de.E_),[bt,wt]=ve.useState(Ie.value||Ce||[]),[Kt,Qt]=ve.useState([]);ve.useEffect(()=>{"value"in Ie&&wt(Ie.value||[])},[Ie.value]);const rt=ve.useMemo(()=>Me.map(Qe=>typeof Qe=="string"||typeof Qe=="number"?{label:Qe,value:Qe}:Qe),[Me]),st=Qe=>{Qt(Ye=>Ye.filter(Je=>Je!==Qe))},Ct=Qe=>{Qt(Ye=>[].concat((0,E.Z)(Ye),[Qe]))},Gt=Qe=>{const Ye=bt.indexOf(Qe.value),Je=(0,E.Z)(bt);Ye===-1?Je.push(Qe.value):Je.splice(Ye,1),"value"in Ie||wt(Je),De==null||De(Je.filter(ft=>Kt.includes(ft)).sort((ft,At)=>{const et=rt.findIndex(Pt=>Pt.value===ft),vt=rt.findIndex(Pt=>Pt.value===At);return et-vt}))},Ht=tt("checkbox",pt),Bt=`${Ht}-group`,[Ke,Jt]=(0,fe.ZP)(Ht),Mn=(0,b.Z)(Ie,["value","disabled"]),Hn=Me.length?rt.map(Qe=>ve.createElement(y,{prefixCls:Ht,key:Qe.value.toString(),disabled:"disabled"in Qe?Qe.disabled:Ie.disabled,value:Qe.value,checked:bt.includes(Qe.value),onChange:Qe.onChange,className:`${Bt}-item`,style:Qe.style,title:Qe.title},Qe.label)):Te,pn={toggleOption:Gt,value:bt,disabled:Ie.disabled,name:Ie.name,registerValue:Ct,cancelValue:st},kt=ue()(Bt,{[`${Bt}-rtl`]:Ze==="rtl"},Ve,gt,Jt);return Ke(ve.createElement("div",Object.assign({className:kt,style:Ae},Mn,{ref:xe}),ve.createElement(le.Provider,{value:pn},Hn)))},oe=ve.forwardRef(z);var ie=ve.memo(oe);const ce=y;ce.Group=ie,ce.__ANT_CHECKBOX=!0;var ye=ce},63185:function(ot,Ge,ee){"use strict";ee.d(Ge,{C2:function(){return de}});var te=ee(14747),ue=ee(45503),be=ee(67968);const ve=pe=>{const{checkboxCls:ae}=pe,he=`${ae}-wrapper`;return[{[`${ae}-group`]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:pe.marginXS,[`> ${pe.antCls}-row`]:{flex:1}}),[he]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${he}`]:{marginInlineStart:0},[`&${he}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ae]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pe.borderRadiusSM,alignSelf:"center",[`${ae}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ae}-inner`]:Object.assign({},(0,te.oN)(pe))},[`${ae}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:pe.checkboxSize,height:pe.checkboxSize,direction:"ltr",backgroundColor:pe.colorBgContainer,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusSM,borderCollapse:"separate",transition:`all ${pe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:pe.checkboxSize/14*5,height:pe.checkboxSize/14*8,border:`${pe.lineWidthBold}px solid ${pe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${pe.motionDurationFast} ${pe.motionEaseInBack}, opacity ${pe.motionDurationFast}`}},"& + span":{paddingInlineStart:pe.paddingXS,paddingInlineEnd:pe.paddingXS}})},{[`
${he}:not(${he}-disabled),
${ae}:not(${ae}-disabled)
`]:{[`&:hover ${ae}-inner`]:{borderColor:pe.colorPrimary}},[`${he}:not(${he}-disabled)`]:{[`&:hover ${ae}-checked:not(${ae}-disabled) ${ae}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ae}-checked:not(${ae}-disabled):after`]:{borderColor:pe.colorPrimaryHover}}},{[`${ae}-checked`]:{[`${ae}-inner`]:{backgroundColor:pe.colorPrimary,borderColor:pe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${pe.motionDurationMid} ${pe.motionEaseOutBack} ${pe.motionDurationFast}`}}},[`
${he}-checked:not(${he}-disabled),
${ae}-checked:not(${ae}-disabled)
`]:{[`&:hover ${ae}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"}}},{[ae]:{"&-indeterminate":{[`${ae}-inner`]:{backgroundColor:pe.colorBgContainer,borderColor:pe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:pe.fontSizeLG/2,height:pe.fontSizeLG/2,backgroundColor:pe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${he}-disabled`]:{cursor:"not-allowed"},[`${ae}-disabled`]:{[`&, ${ae}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ae}-inner`]:{background:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,"&:after":{borderColor:pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pe.colorTextDisabled},[`&${ae}-indeterminate ${ae}-inner::after`]:{background:pe.colorTextDisabled}}}]};function de(pe,ae){const he=(0,ue.TS)(ae,{checkboxCls:`.${pe}`,checkboxSize:ae.controlInteractiveSize});return[ve(he)]}Ge.ZP=(0,be.Z)("Checkbox",(pe,ae)=>{let{prefixCls:he}=ae;return[de(he,pe)]})},72565:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Xi}});var te=ee(94184),ue=ee.n(te),be=ee(1413),ve=ee(97685),de=ee(67294),pe=ee(73935);function ae(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var he={};function le(dt,ct){}function fe(dt,ct){}function se(){he={}}function me(dt,ct,It){!ct&&!he[It]&&(dt(!1,It),he[It]=!0)}function re(dt,ct){me(le,dt,ct)}function ne(dt,ct){me(fe,dt,ct)}var a=null,y=ee(71002),E=ee(18459);function b(dt,ct,It){var Ut=de.useRef({});return(!("value"in Ut.current)||It(Ut.current.condition,ct))&&(Ut.current.value=dt(),Ut.current.condition=ct),Ut.current.value}function x(dt,ct){typeof dt=="function"?dt(ct):(0,y.Z)(dt)==="object"&&dt&&"current"in dt&&(dt.current=ct)}function z(){for(var dt=arguments.length,ct=new Array(dt),It=0;It<dt;It++)ct[It]=arguments[It];var Ut=ct.filter(function(yn){return yn});return Ut.length<=1?Ut[0]:function(yn){ct.forEach(function(gr){x(gr,yn)})}}function oe(){for(var dt=arguments.length,ct=new Array(dt),It=0;It<dt;It++)ct[It]=arguments[It];return b(function(){return z.apply(void 0,ct)},ct,function(Ut,yn){return Ut.length===yn.length&&Ut.every(function(gr,_r){return gr===yn[_r]})})}function ie(dt){var ct,It,Ut=(0,E.isMemo)(dt)?dt.type.type:dt.type;return!(typeof Ut=="function"&&!((ct=Ut.prototype)!==null&&ct!==void 0&&ct.render)||typeof dt=="function"&&!((It=dt.prototype)!==null&&It!==void 0&&It.render))}var ce=de.createContext(null),ye=ce,_e=ee(74902),xe=ae()?de.useLayoutEffect:de.useEffect,Ce=xe,Te=function(ct,It){var Ut=React.useRef(!0);xe(function(){if(!Ut.current)return ct()},It),xe(function(){return Ut.current=!1,function(){Ut.current=!0}},[])},Me=[];function pt(dt,ct){var It=de.useState(function(){if(!ae())return null;var _t=document.createElement("div");return _t}),Ut=(0,ve.Z)(It,1),yn=Ut[0],gr=de.useRef(!1),_r=de.useContext(ye),Fr=de.useState(Me),Qr=(0,ve.Z)(Fr,2),Yr=Qr[0],Bo=Qr[1],No=_r||(gr.current?void 0:function(_t){Bo(function(jt){var ze=[_t].concat((0,_e.Z)(jt));return ze})});function ti(){yn.parentElement||document.body.appendChild(yn),gr.current=!0}function yt(){var _t;(_t=yn.parentElement)===null||_t===void 0||_t.removeChild(yn),gr.current=!1}return Ce(function(){return dt?_r?_r(ti):ti():yt(),yt},[dt]),Ce(function(){Yr.length&&(Yr.forEach(function(_t){return _t()}),Bo(Me))},[Yr]),[yn,No]}function Ve(dt,ct){if(!dt)return!1;if(dt.contains)return dt.contains(ct);for(var It=ct;It;){if(It===dt)return!0;It=It.parentNode}return!1}var gt="data-rc-order",Ae="rc-util-key",De=new Map;function Ie(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ct=dt.mark;return ct?ct.startsWith("data-")?ct:"data-".concat(ct):Ae}function tt(dt){if(dt.attachTo)return dt.attachTo;var ct=document.querySelector("head");return ct||document.body}function Ze(dt){return dt==="queue"?"prependQueue":dt?"prepend":"append"}function bt(dt){return Array.from((De.get(dt)||dt).children).filter(function(ct){return ct.tagName==="STYLE"})}function wt(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ae())return null;var It=ct.csp,Ut=ct.prepend,yn=document.createElement("style");yn.setAttribute(gt,Ze(Ut)),It!=null&&It.nonce&&(yn.nonce=It==null?void 0:It.nonce),yn.innerHTML=dt;var gr=tt(ct),_r=gr.firstChild;if(Ut){if(Ut==="queue"){var Fr=bt(gr).filter(function(Qr){return["prepend","prependQueue"].includes(Qr.getAttribute(gt))});if(Fr.length)return gr.insertBefore(yn,Fr[Fr.length-1].nextSibling),yn}gr.insertBefore(yn,_r)}else gr.appendChild(yn);return yn}function Kt(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=tt(ct);return bt(It).find(function(Ut){return Ut.getAttribute(Ie(ct))===dt})}function Qt(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=Kt(dt,ct);if(It){var Ut=tt(ct);Ut.removeChild(It)}}function rt(dt,ct){var It=De.get(dt);if(!It||!Ve(document,It)){var Ut=wt("",ct),yn=Ut.parentNode;De.set(dt,yn),dt.removeChild(Ut)}}function st(){De.clear()}function Ct(dt,ct){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ut=tt(It);rt(Ut,It);var yn=Kt(ct,It);if(yn){var gr,_r;if((gr=It.csp)!==null&&gr!==void 0&&gr.nonce&&yn.nonce!==((_r=It.csp)===null||_r===void 0?void 0:_r.nonce)){var Fr;yn.nonce=(Fr=It.csp)===null||Fr===void 0?void 0:Fr.nonce}return yn.innerHTML!==dt&&(yn.innerHTML=dt),yn}var Qr=wt(dt,It);return Qr.setAttribute(Ie(It),ct),Qr}var Gt;function Ht(dt){if(typeof document=="undefined")return 0;if(dt||Gt===void 0){var ct=document.createElement("div");ct.style.width="100%",ct.style.height="200px";var It=document.createElement("div"),Ut=It.style;Ut.position="absolute",Ut.top="0",Ut.left="0",Ut.pointerEvents="none",Ut.visibility="hidden",Ut.width="200px",Ut.height="150px",Ut.overflow="hidden",It.appendChild(ct),document.body.appendChild(It);var yn=ct.offsetWidth;It.style.overflow="scroll";var gr=ct.offsetWidth;yn===gr&&(gr=It.clientWidth),document.body.removeChild(It),Gt=yn-gr}return Gt}function Bt(dt){var ct=dt.match(/^(.*)px$/),It=Number(ct==null?void 0:ct[1]);return Number.isNaN(It)?Ht():It}function Ke(dt){if(typeof document=="undefined"||!dt||!(dt instanceof Element))return{width:0,height:0};var ct=getComputedStyle(dt,"::-webkit-scrollbar"),It=ct.width,Ut=ct.height;return{width:Bt(It),height:Bt(Ut)}}function Jt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Mn="rc-util-locker-".concat(Date.now()),Hn=0;function pn(dt){var ct=!!dt,It=de.useState(function(){return Hn+=1,"".concat(Mn,"_").concat(Hn)}),Ut=(0,ve.Z)(It,1),yn=Ut[0];Ce(function(){if(ct){var gr=Ke(document.body).width,_r=Jt();Ct(`
html body {
overflow-y: hidden;
`.concat(_r?"width: calc(100% - ".concat(gr,"px);"):"",`
}`),yn)}else Qt(yn);return function(){Qt(yn)}},[ct,yn])}var kt=!1;function Qe(dt){return typeof dt=="boolean"&&(kt=dt),kt}var Ye=function(ct){return ct===!1?!1:!ae()||!ct?null:typeof ct=="string"?document.querySelector(ct):typeof ct=="function"?ct():ct},Je=de.forwardRef(function(dt,ct){var It=dt.open,Ut=dt.autoLock,yn=dt.getContainer,gr=dt.debug,_r=dt.autoDestroy,Fr=_r===void 0?!0:_r,Qr=dt.children,Yr=de.useState(It),Bo=(0,ve.Z)(Yr,2),No=Bo[0],ti=Bo[1],yt=No||It;de.useEffect(function(){(Fr||It)&&ti(It)},[It,Fr]);var _t=de.useState(function(){return Ye(yn)}),jt=(0,ve.Z)(_t,2),ze=jt[0],zt=jt[1];de.useEffect(function(){var cr=Ye(yn);zt(cr!=null?cr:null)});var tn=pt(yt&&!ze,gr),dn=(0,ve.Z)(tn,2),Lt=dn[0],Rt=dn[1],Nt=ze!=null?ze:Lt;pn(Ut&&It&&ae()&&(Nt===Lt||Nt===document.body));var vn=null;if(Qr&&ie(Qr)&&ct){var In=Qr;vn=In.ref}var Xn=oe(vn,ct);if(!yt||!ae()||ze===void 0)return null;var Un=Nt===!1||Qe(),tr=Qr;return ct&&(tr=de.cloneElement(Qr,{ref:Xn})),de.createElement(ye.Provider,{value:Rt},Un?tr:(0,pe.createPortal)(tr,Nt))}),ft=Je,At=ft;function et(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var vt=et()?de.useLayoutEffect:de.useEffect,Pt=function(ct,It){var Ut=de.useRef(!0);vt(function(){return ct(Ut.current)},It),vt(function(){return Ut.current=!1,function(){Ut.current=!0}},[])},Xe=function(ct,It){Pt(function(Ut){if(!Ut)return ct()},It)},Zt=Pt,He=de.createContext(null),ut=de.createContext({}),wn=He,sn=ee(4942),ht=ee(87462),$t=ee(62874),on={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ct){var It=ct.keyCode;if(ct.altKey&&!ct.ctrlKey||ct.metaKey||It>=on.F1&&It<=on.F12)return!1;switch(It){case on.ALT:case on.CAPS_LOCK:case on.CONTEXT_MENU:case on.CTRL:case on.DOWN:case on.END:case on.ESC:case on.HOME:case on.INSERT:case on.LEFT:case on.MAC_FF_META:case on.META:case on.NUMLOCK:case on.NUM_CENTER:case on.PAGE_DOWN:case on.PAGE_UP:case on.PAUSE:case on.PRINT_SCREEN:case on.RIGHT:case on.SHIFT:case on.UP:case on.WIN_KEY:case on.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ct){if(ct>=on.ZERO&&ct<=on.NINE||ct>=on.NUM_ZERO&&ct<=on.NUM_MULTIPLY||ct>=on.A&&ct<=on.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ct===0)return!0;switch(ct){case on.SPACE:case on.QUESTION_MARK:case on.NUM_PLUS:case on.NUM_MINUS:case on.NUM_PERIOD:case on.NUM_DIVISION:case on.SEMICOLON:case on.DASH:case on.EQUALS:case on.COMMA:case on.PERIOD:case on.SLASH:case on.APOSTROPHE:case on.SINGLE_QUOTE:case on.OPEN_SQUARE_BRACKET:case on.BACKSLASH:case on.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},bn=on,Kn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Dt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Rn="".concat(Kn," ").concat(Dt).split(/[\s\n]+/),Gn="aria-",jr="data-";function mr(dt,ct){return dt.indexOf(ct)===0}function ur(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It;ct===!1?It={aria:!0,data:!0,attr:!0}:ct===!0?It={aria:!0}:It=(0,be.Z)({},ct);var Ut={};return Object.keys(dt).forEach(function(yn){(It.aria&&(yn==="role"||mr(yn,Gn))||It.data&&mr(yn,jr)||It.attr&&Rn.includes(yn))&&(Ut[yn]=dt[yn])}),Ut}function Tn(dt){var ct=React.useRef();ct.current=dt;var It=React.useCallback(function(){for(var Ut,yn=arguments.length,gr=new Array(yn),_r=0;_r<yn;_r++)gr[_r]=arguments[_r];return(Ut=ct.current)===null||Ut===void 0?void 0:Ut.call.apply(Ut,[ct].concat(gr))},[]);return It}function Or(dt){var ct=React.useRef(!1),It=React.useState(dt),Ut=_slicedToArray(It,2),yn=Ut[0],gr=Ut[1];React.useEffect(function(){return ct.current=!1,function(){ct.current=!0}},[]);function _r(Fr,Qr){Qr&&ct.current||gr(Fr)}return[yn,_r]}function zr(dt){return dt!==void 0}function lo(dt,ct){var It=ct||{},Ut=It.defaultValue,yn=It.value,gr=It.onChange,_r=It.postState,Fr=useState(function(){return zr(yn)?yn:zr(Ut)?typeof Ut=="function"?Ut():Ut:typeof dt=="function"?dt():dt}),Qr=_slicedToArray(Fr,2),Yr=Qr[0],Bo=Qr[1],No=yn!==void 0?yn:Yr,ti=_r?_r(No):No,yt=useEvent(gr),_t=useState([No]),jt=_slicedToArray(_t,2),ze=jt[0],zt=jt[1];useLayoutUpdateEffect(function(){var dn=ze[0];Yr!==dn&&yt(Yr,dn)},[ze]),useLayoutUpdateEffect(function(){zr(yn)||Bo(yn)},[yn]);var tn=useEvent(function(dn,Lt){Bo(dn,Lt),zt([No],Lt)});return[ti,tn]}var di=ee(33993);function Ko(dt,ct,It){var Ut=de.useRef({});return(!("value"in Ut.current)||It(Ut.current.condition,ct))&&(Ut.current.value=dt(),Ut.current.condition=ct),Ut.current.value}function pr(dt,ct){typeof dt=="function"?dt(ct):(0,y.Z)(dt)==="object"&&dt&&"current"in dt&&(dt.current=ct)}function Xr(){for(var dt=arguments.length,ct=new Array(dt),It=0;It<dt;It++)ct[It]=arguments[It];var Ut=ct.filter(function(yn){return yn});return Ut.length<=1?Ut[0]:function(yn){ct.forEach(function(gr){pr(gr,yn)})}}function to(){for(var dt=arguments.length,ct=new Array(dt),It=0;It<dt;It++)ct[It]=arguments[It];return Ko(function(){return Xr.apply(void 0,ct)},ct,function(Ut,yn){return Ut.length!==yn.length||Ut.every(function(gr,_r){return gr!==yn[_r]})})}function mo(dt){var ct,It,Ut=isMemo(dt)?dt.type.type:dt.type;return!(typeof Ut=="function"&&!((ct=Ut.prototype)!==null&&ct!==void 0&&ct.render)||typeof dt=="function"&&!((It=dt.prototype)!==null&&It!==void 0&&It.render))}function Kr(dt){return!isValidElement(dt)||isFragment(dt)?!1:mo(dt)}function Vo(dt,ct,It,Ut){if(!ct.length)return It;var yn=_toArray(ct),gr=yn[0],_r=yn.slice(1),Fr;return!dt&&typeof gr=="number"?Fr=[]:Array.isArray(dt)?Fr=_toConsumableArray(dt):Fr=_objectSpread({},dt),Ut&&It===void 0&&_r.length===1?delete Fr[gr][_r[0]]:Fr[gr]=Vo(Fr[gr],_r,It,Ut),Fr}function Do(dt,ct,It){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ct.length&&Ut&&It===void 0&&!get(dt,ct.slice(0,-1))?dt:Vo(dt,ct,It,Ut)}function io(dt){return _typeof(dt)==="object"&&dt!==null&&Object.getPrototypeOf(dt)===Object.prototype}function Cr(dt){return Array.isArray(dt)?[]:{}}var Ei=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function cn(){for(var dt=arguments.length,ct=new Array(dt),It=0;It<dt;It++)ct[It]=arguments[It];var Ut=Cr(ct[0]);return ct.forEach(function(yn){function gr(_r,Fr){var Qr=new Set(Fr),Yr=get(yn,_r),Bo=Array.isArray(Yr);if(Bo||io(Yr)){if(!Qr.has(Yr)){Qr.add(Yr);var No=get(Ut,_r);Bo?Ut=Do(Ut,_r,[]):(!No||_typeof(No)!=="object")&&(Ut=Do(Ut,_r,Cr(Yr))),Ei(Yr).forEach(function(ti){gr([].concat(_toConsumableArray(_r),[ti]),Qr)})}}else Ut=Do(Ut,_r,Yr)}gr([])}),Ut}var ge={},Se=[],Pe=function(ct){Se.push(ct)};function Le(dt,ct){if(0)var It}function Ne(dt,ct){if(0)var It}function qe(){ge={}}function it(dt,ct,It){!ct&&!ge[It]&&(dt(!1,It),ge[It]=!0)}function un(dt,ct){it(Le,dt,ct)}function Vt(dt,ct){it(Ne,dt,ct)}un.preMessage=Pe,un.resetWarned=qe,un.noteOnce=Vt;var En=un,Vn=function(ct){var It=ct.prefixCls,Ut=ct.className,yn=ct.style,gr=ct.children,_r=ct.containerRef,Fr=ct.id,Qr=ct.onMouseEnter,Yr=ct.onMouseOver,Bo=ct.onMouseLeave,No=ct.onClick,ti=ct.onKeyDown,yt=ct.onKeyUp,_t={onMouseEnter:Qr,onMouseOver:Yr,onMouseLeave:Bo,onClick:No,onKeyDown:ti,onKeyUp:yt},jt=de.useContext(ut),ze=jt.panel,zt=to(ze,_r);return de.createElement(de.Fragment,null,de.createElement("div",(0,ht.Z)({id:Fr,className:ue()("".concat(It,"-content"),Ut),style:(0,be.Z)({},yn),"aria-modal":"true",role:"dialog",ref:zt},_t),gr))},Pr=Vn;function Ot(dt){return typeof dt=="string"&&String(Number(dt))===dt?(En(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(dt)):dt}function qn(dt){warning(!("wrapperClassName"in dt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!dt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var er={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Pn(dt,ct){var It,Ut,yn,gr,_r=dt.prefixCls,Fr=dt.open,Qr=dt.placement,Yr=dt.inline,Bo=dt.push,No=dt.forceRender,ti=dt.autoFocus,yt=dt.keyboard,_t=dt.rootClassName,jt=dt.rootStyle,ze=dt.zIndex,zt=dt.className,tn=dt.id,dn=dt.style,Lt=dt.motion,Rt=dt.width,Nt=dt.height,vn=dt.children,In=dt.contentWrapperStyle,Xn=dt.mask,Un=dt.maskClosable,tr=dt.maskMotion,cr=dt.maskClassName,Ar=dt.maskStyle,Ln=dt.afterOpenChange,nn=dt.onClose,Wt=dt.onMouseEnter,qt=dt.onMouseOver,hn=dt.onMouseLeave,Qn=dt.onClick,Ue=dt.onKeyDown,Fe=dt.onKeyUp,nt=de.useRef(),St=de.useRef(),Mt=de.useRef();de.useImperativeHandle(ct,function(){return nt.current});var Ft=function(qr){var Eo=qr.keyCode,ii=qr.shiftKey;switch(Eo){case bn.TAB:{if(Eo===bn.TAB){if(!ii&&document.activeElement===Mt.current){var uo;(uo=St.current)===null||uo===void 0||uo.focus({preventScroll:!0})}else if(ii&&document.activeElement===St.current){var ui;(ui=Mt.current)===null||ui===void 0||ui.focus({preventScroll:!0})}}break}case bn.ESC:{nn&&yt&&(qr.stopPropagation(),nn(qr));break}}};de.useEffect(function(){if(Fr&&ti){var Rr;(Rr=nt.current)===null||Rr===void 0||Rr.focus({preventScroll:!0})}},[Fr]);var ln=de.useState(!1),gn=(0,ve.Z)(ln,2),Nn=gn[0],Bn=gn[1],Fn=de.useContext(wn),jn;Bo===!1?jn={distance:0}:Bo===!0?jn={}:jn=Bo||{};var Jn=(It=(Ut=(yn=jn)===null||yn===void 0?void 0:yn.distance)!==null&&Ut!==void 0?Ut:Fn==null?void 0:Fn.pushDistance)!==null&&It!==void 0?It:180,or=de.useMemo(function(){return{pushDistance:Jn,push:function(){Bn(!0)},pull:function(){Bn(!1)}}},[Jn]);de.useEffect(function(){if(Fr){var Rr;Fn==null||(Rr=Fn.push)===null||Rr===void 0||Rr.call(Fn)}else{var qr;Fn==null||(qr=Fn.pull)===null||qr===void 0||qr.call(Fn)}},[Fr]),de.useEffect(function(){return function(){var Rr;Fn==null||(Rr=Fn.pull)===null||Rr===void 0||Rr.call(Fn)}},[]);var Jr=Xn&&de.createElement($t.Z,(0,ht.Z)({key:"mask"},tr,{visible:Fr}),function(Rr,qr){var Eo=Rr.className,ii=Rr.style;return de.createElement("div",{className:ue()("".concat(_r,"-mask"),Eo,cr),style:(0,be.Z)((0,be.Z)({},ii),Ar),onClick:Un&&Fr?nn:void 0,ref:qr})}),bo=typeof Lt=="function"?Lt(Qr):Lt,Zr={};if(Nn&&Jn)switch(Qr){case"top":Zr.transform="translateY(".concat(Jn,"px)");break;case"bottom":Zr.transform="translateY(".concat(-Jn,"px)");break;case"left":Zr.transform="translateX(".concat(Jn,"px)");break;default:Zr.transform="translateX(".concat(-Jn,"px)");break}Qr==="left"||Qr==="right"?Zr.width=Ot(Rt):Zr.height=Ot(Nt);var ao={onMouseEnter:Wt,onMouseOver:qt,onMouseLeave:hn,onClick:Qn,onKeyDown:Ue,onKeyUp:Fe},co=de.createElement($t.Z,(0,ht.Z)({key:"panel"},bo,{visible:Fr,forceRender:No,onVisibleChanged:function(qr){Ln==null||Ln(qr)},removeOnLeave:!1,leavedClassName:"".concat(_r,"-content-wrapper-hidden")}),function(Rr,qr){var Eo=Rr.className,ii=Rr.style;return de.createElement("div",(0,ht.Z)({className:ue()("".concat(_r,"-content-wrapper"),Eo),style:(0,be.Z)((0,be.Z)((0,be.Z)({},Zr),ii),In)},ur(dt,{data:!0})),de.createElement(Pr,(0,ht.Z)({id:tn,containerRef:qr,prefixCls:_r,className:zt,style:dn},ao),vn))}),vo=(0,be.Z)({},jt);return ze&&(vo.zIndex=ze),de.createElement(wn.Provider,{value:or},de.createElement("div",{className:ue()(_r,"".concat(_r,"-").concat(Qr),_t,(gr={},(0,sn.Z)(gr,"".concat(_r,"-open"),Fr),(0,sn.Z)(gr,"".concat(_r,"-inline"),Yr),gr)),style:vo,tabIndex:-1,ref:nt,onKeyDown:Ft},Jr,de.createElement("div",{tabIndex:0,ref:St,style:er,"aria-hidden":"true","data-sentinel":"start"}),co,de.createElement("div",{tabIndex:0,ref:Mt,style:er,"aria-hidden":"true","data-sentinel":"end"})))}var An=de.forwardRef(Pn),Yn=An,yr=function(ct){var It=ct.open,Ut=It===void 0?!1:It,yn=ct.prefixCls,gr=yn===void 0?"rc-drawer":yn,_r=ct.placement,Fr=_r===void 0?"right":_r,Qr=ct.autoFocus,Yr=Qr===void 0?!0:Qr,Bo=ct.keyboard,No=Bo===void 0?!0:Bo,ti=ct.width,yt=ti===void 0?378:ti,_t=ct.mask,jt=_t===void 0?!0:_t,ze=ct.maskClosable,zt=ze===void 0?!0:ze,tn=ct.getContainer,dn=ct.forceRender,Lt=ct.afterOpenChange,Rt=ct.destroyOnClose,Nt=ct.onMouseEnter,vn=ct.onMouseOver,In=ct.onMouseLeave,Xn=ct.onClick,Un=ct.onKeyDown,tr=ct.onKeyUp,cr=ct.panelRef,Ar=de.useState(!1),Ln=(0,ve.Z)(Ar,2),nn=Ln[0],Wt=Ln[1],qt=de.useState(!1),hn=(0,ve.Z)(qt,2),Qn=hn[0],Ue=hn[1];Zt(function(){Ue(!0)},[]);var Fe=Qn?Ut:!1,nt=de.useRef(),St=de.useRef();Zt(function(){Fe&&(St.current=document.activeElement)},[Fe]);var Mt=function(Bn){var Fn;if(Wt(Bn),Lt==null||Lt(Bn),!Bn&&St.current&&!((Fn=nt.current)!==null&&Fn!==void 0&&Fn.contains(St.current))){var jn;(jn=St.current)===null||jn===void 0||jn.focus({preventScroll:!0})}},Ft=de.useMemo(function(){return{panel:cr}},[cr]);if(!dn&&!nn&&!Fe&&Rt)return null;var ln={onMouseEnter:Nt,onMouseOver:vn,onMouseLeave:In,onClick:Xn,onKeyDown:Un,onKeyUp:tr},gn=(0,be.Z)((0,be.Z)({},ct),{},{open:Fe,prefixCls:gr,placement:Fr,autoFocus:Yr,keyboard:No,width:yt,mask:jt,maskClosable:zt,inline:tn===!1,afterOpenChange:Mt,ref:nt},ln);return de.createElement(ut.Provider,{value:Ft},de.createElement(At,{open:Fe||dn||nn,autoDestroy:!1,getContainer:tn,autoLock:jt&&(Fe||nn)},de.createElement(Yn,gn)))},lr=yr,ci=lr,Po=ee(33603),fr=ee(53124),Vr=ee(65223),Yo=ee(69760),ni=dt=>{const{prefixCls:ct,title:It,footer:Ut,extra:yn,closeIcon:gr,closable:_r,onClose:Fr,headerStyle:Qr,drawerStyle:Yr,bodyStyle:Bo,footerStyle:No,children:ti}=dt,yt=de.useCallback(tn=>de.createElement("button",{type:"button",onClick:Fr,"aria-label":"Close",className:`${ct}-close`},tn),[Fr]),[_t,jt]=(0,Yo.Z)(_r,gr,yt,void 0,!0),ze=de.useMemo(()=>!It&&!_t?null:de.createElement("div",{style:Qr,className:ue()(`${ct}-header`,{[`${ct}-header-close-only`]:_t&&!It&&!yn})},de.createElement("div",{className:`${ct}-header-title`},jt,It&&de.createElement("div",{className:`${ct}-title`},It)),yn&&de.createElement("div",{className:`${ct}-extra`},yn)),[_t,jt,yn,Qr,ct,It]),zt=de.useMemo(()=>{if(!Ut)return null;const tn=`${ct}-footer`;return de.createElement("div",{className:tn,style:No},Ut)},[Ut,No,ct]);return de.createElement("div",{className:`${ct}-wrapper-body`,style:Yr},ze,de.createElement("div",{className:`${ct}-body`,style:Bo},ti),zt)},gi=ee(4173),Vi=ee(67968),fn=ee(45503),Yi=dt=>{const{componentCls:ct,motionDurationSlow:It}=dt,Ut={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${It}`}}};return{[ct]:{[`${ct}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${It}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ct}-panel-motion`]:{"&-left":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Cn=dt=>{const{componentCls:ct,zIndexPopup:It,colorBgMask:Ut,colorBgElevated:yn,motionDurationSlow:gr,motionDurationMid:_r,padding:Fr,paddingLG:Qr,fontSizeLG:Yr,lineHeightLG:Bo,lineWidth:No,lineType:ti,colorSplit:yt,marginSM:_t,colorIcon:jt,colorIconHover:ze,colorText:zt,fontWeightStrong:tn,footerPaddingBlock:dn,footerPaddingInline:Lt}=dt,Rt=`${ct}-content-wrapper`;return{[ct]:{position:"fixed",inset:0,zIndex:It,pointerEvents:"none","&-pure":{position:"relative",background:yn,[`&${ct}-left`]:{boxShadow:dt.boxShadowDrawerLeft},[`&${ct}-right`]:{boxShadow:dt.boxShadowDrawerRight},[`&${ct}-top`]:{boxShadow:dt.boxShadowDrawerUp},[`&${ct}-bottom`]:{boxShadow:dt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ct}-mask`]:{position:"absolute",inset:0,zIndex:It,background:Ut,pointerEvents:"auto"},[Rt]:{position:"absolute",zIndex:It,maxWidth:"100vw",transition:`all ${gr}`,"&-hidden":{display:"none"}},[`&-left > ${Rt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:dt.boxShadowDrawerLeft},[`&-right > ${Rt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:dt.boxShadowDrawerRight},[`&-top > ${Rt}`]:{top:0,insetInline:0,boxShadow:dt.boxShadowDrawerUp},[`&-bottom > ${Rt}`]:{bottom:0,insetInline:0,boxShadow:dt.boxShadowDrawerDown},[`${ct}-content`]:{width:"100%",height:"100%",overflow:"auto",background:yn,pointerEvents:"auto"},[`${ct}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ct}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Fr}px ${Qr}px`,fontSize:Yr,lineHeight:Bo,borderBottom:`${No}px ${ti} ${yt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ct}-extra`]:{flex:"none"},[`${ct}-close`]:{display:"inline-block",marginInlineEnd:_t,color:jt,fontWeight:tn,fontSize:Yr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${_r}`,textRendering:"auto","&:focus, &:hover":{color:ze,textDecoration:"none"}},[`${ct}-title`]:{flex:1,margin:0,color:zt,fontWeight:dt.fontWeightStrong,fontSize:Yr,lineHeight:Bo},[`${ct}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Qr,overflow:"auto"},[`${ct}-footer`]:{flexShrink:0,padding:`${dn}px ${Lt}px`,borderTop:`${No}px ${ti} ${yt}`},"&-rtl":{direction:"rtl"}}}};var nr=(0,Vi.Z)("Drawer",dt=>{const ct=(0,fn.TS)(dt,{});return[Cn(ct),Yi(ct)]},dt=>({zIndexPopup:dt.zIndexPopupBase,footerPaddingBlock:dt.paddingXS,footerPaddingInline:dt.padding})),wr=ee(16569),rr=function(dt,ct){var It={};for(var Ut in dt)Object.prototype.hasOwnProperty.call(dt,Ut)&&ct.indexOf(Ut)<0&&(It[Ut]=dt[Ut]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,Ut=Object.getOwnPropertySymbols(dt);yn<Ut.length;yn++)ct.indexOf(Ut[yn])<0&&Object.prototype.propertyIsEnumerable.call(dt,Ut[yn])&&(It[Ut[yn]]=dt[Ut[yn]]);return It};const ei=null,po={distance:180},ri=dt=>{var ct;const{rootClassName:It,width:Ut,height:yn,size:gr="default",mask:_r=!0,push:Fr=po,open:Qr,afterOpenChange:Yr,onClose:Bo,prefixCls:No,getContainer:ti,style:yt,className:_t,visible:jt,afterVisibleChange:ze}=dt,zt=rr(dt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:tn,getPrefixCls:dn,direction:Lt,drawer:Rt}=de.useContext(fr.E_),Nt=dn("drawer",No),[vn,In]=nr(Nt),Xn=ti===void 0&&tn?()=>tn(document.body):ti,Un=ue()({"no-mask":!_r,[`${Nt}-rtl`]:Lt==="rtl"},It,In),tr=de.useMemo(()=>Ut!=null?Ut:gr==="large"?736:378,[Ut,gr]),cr=de.useMemo(()=>yn!=null?yn:gr==="large"?736:378,[yn,gr]),Ar={motionName:(0,Po.m)(Nt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Ln=Wt=>({motionName:(0,Po.m)(Nt,`panel-motion-${Wt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),nn=(0,wr.H)();return vn(de.createElement(gi.BR,null,de.createElement(Vr.Ux,{status:!0,override:!0},de.createElement(ci,Object.assign({prefixCls:Nt,onClose:Bo,maskMotion:Ar,motion:Ln},zt,{open:Qr!=null?Qr:jt,mask:_r,push:Fr,width:tr,height:cr,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),yt),className:ue()(Rt==null?void 0:Rt.className,_t),rootClassName:Un,getContainer:Xn,afterOpenChange:Yr!=null?Yr:ze,panelRef:nn}),de.createElement(ni,Object.assign({prefixCls:Nt},zt,{onClose:Bo}))))))},xi=dt=>{const{prefixCls:ct,style:It,className:Ut,placement:yn="right"}=dt,gr=rr(dt,["prefixCls","style","className","placement"]),{getPrefixCls:_r}=de.useContext(fr.E_),Fr=_r("drawer",ct),[Qr,Yr]=nr(Fr),Bo=ue()(Fr,`${Fr}-pure`,`${Fr}-${yn}`,Yr,Ut);return Qr(de.createElement("div",{className:Bo,style:It},de.createElement(ni,Object.assign({prefixCls:Fr},gr))))};ri._InternalPanelDoNotUseOrYouWillBeFired=xi;var Xi=ri},35874:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Ye}});var te=ee(67294),ue=ee(91034),be=ee(94184),ve=ee.n(be),de=ee(87462),pe=ee(4942),ae=ee(97685),he=ee(45987),le=ee(62709),fe=ee(71002),se=ee(12060);function me(Je,ft,At){var et=React.useRef({});return(!("value"in et.current)||At(et.current.condition,ft))&&(et.current.value=Je(),et.current.condition=ft),et.current.value}function re(Je,ft){typeof Je=="function"?Je(ft):(0,fe.Z)(Je)==="object"&&Je&&"current"in Je&&(Je.current=ft)}function ne(){for(var Je=arguments.length,ft=new Array(Je),At=0;At<Je;At++)ft[At]=arguments[At];var et=ft.filter(function(vt){return vt});return et.length<=1?et[0]:function(vt){ft.forEach(function(Pt){re(Pt,vt)})}}function a(){for(var Je=arguments.length,ft=new Array(Je),At=0;At<Je;At++)ft[At]=arguments[At];return useMemo(function(){return ne.apply(void 0,ft)},ft,function(et,vt){return et.length===vt.length&&et.every(function(Pt,Xe){return Pt===vt[Xe]})})}function y(Je){var ft,At,et=(0,se.isMemo)(Je)?Je.type.type:Je.type;return!(typeof et=="function"&&!((ft=et.prototype)!==null&&ft!==void 0&&ft.render)||typeof Je=="function"&&!((At=Je.prototype)!==null&&At!==void 0&&At.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ft){var At=ft.keyCode;if(ft.altKey&&!ft.ctrlKey||ft.metaKey||At>=E.F1&&At<=E.F12)return!1;switch(At){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ft){if(ft>=E.ZERO&&ft<=E.NINE||ft>=E.NUM_ZERO&&ft<=E.NUM_MULTIPLY||ft>=E.A&&ft<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ft===0)return!0;switch(ft){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(ft){return+setTimeout(ft,16)},z=function(ft){return clearTimeout(ft)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(ft){return window.requestAnimationFrame(ft)},z=function(ft){return window.cancelAnimationFrame(ft)});var oe=0,ie=new Map;function ce(Je){ie.delete(Je)}var ye=function(ft){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oe+=1;var et=oe;function vt(Pt){if(Pt===0)ce(et),ft();else{var Xe=x(function(){vt(Pt-1)});ie.set(et,Xe)}}return vt(At),et};ye.cancel=function(Je){var ft=ie.get(Je);return ce(ft),z(ft)};var _e=ye,xe=b.ESC,Ce=b.TAB;function Te(Je){var ft=Je.visible,At=Je.triggerRef,et=Je.onVisibleChange,vt=Je.autoFocus,Pt=Je.overlayRef,Xe=te.useRef(!1),Zt=function(){if(ft){var sn,ht;(sn=At.current)===null||sn===void 0||(ht=sn.focus)===null||ht===void 0||ht.call(sn),et==null||et(!1)}},He=function(){var sn;return(sn=Pt.current)!==null&&sn!==void 0&&sn.focus?(Pt.current.focus(),Xe.current=!0,!0):!1},ut=function(sn){switch(sn.keyCode){case xe:Zt();break;case Ce:{var ht=!1;Xe.current||(ht=He()),ht?sn.preventDefault():Zt();break}}};te.useEffect(function(){return ft?(window.addEventListener("keydown",ut),vt&&_e(He,3),function(){window.removeEventListener("keydown",ut),Xe.current=!1}):function(){Xe.current=!1}},[ft])}var Me=(0,te.forwardRef)(function(Je,ft){var At=Je.overlay,et=Je.arrow,vt=Je.prefixCls,Pt=(0,te.useMemo)(function(){var Zt;return typeof At=="function"?Zt=At():Zt=At,Zt},[At]),Xe=ne(ft,Pt==null?void 0:Pt.ref);return te.createElement(te.Fragment,null,et&&te.createElement("div",{className:"".concat(vt,"-arrow")}),te.cloneElement(Pt,{ref:y(Pt)?Xe:void 0}))}),pt=Me,Ve={adjustX:1,adjustY:1},gt=[0,0],Ae={topLeft:{points:["bl","tl"],overflow:Ve,offset:[0,-4],targetOffset:gt},top:{points:["bc","tc"],overflow:Ve,offset:[0,-4],targetOffset:gt},topRight:{points:["br","tr"],overflow:Ve,offset:[0,-4],targetOffset:gt},bottomLeft:{points:["tl","bl"],overflow:Ve,offset:[0,4],targetOffset:gt},bottom:{points:["tc","bc"],overflow:Ve,offset:[0,4],targetOffset:gt},bottomRight:{points:["tr","br"],overflow:Ve,offset:[0,4],targetOffset:gt}},De=Ae,Ie=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tt(Je,ft){var At,et=Je.arrow,vt=et===void 0?!1:et,Pt=Je.prefixCls,Xe=Pt===void 0?"rc-dropdown":Pt,Zt=Je.transitionName,He=Je.animation,ut=Je.align,wn=Je.placement,sn=wn===void 0?"bottomLeft":wn,ht=Je.placements,$t=ht===void 0?De:ht,on=Je.getPopupContainer,bn=Je.showAction,Kn=Je.hideAction,Dt=Je.overlayClassName,Rn=Je.overlayStyle,Gn=Je.visible,jr=Je.trigger,mr=jr===void 0?["hover"]:jr,ur=Je.autoFocus,Tn=Je.overlay,Or=Je.children,zr=Je.onVisibleChange,lo=(0,he.Z)(Je,Ie),di=te.useState(),Ko=(0,ae.Z)(di,2),pr=Ko[0],Xr=Ko[1],to="visible"in Je?Gn:pr,mo=te.useRef(null),Kr=te.useRef(null),Vo=te.useRef(null);te.useImperativeHandle(ft,function(){return mo.current});var Do=function(Ne){Xr(Ne),zr==null||zr(Ne)};Te({visible:to,triggerRef:Vo,onVisibleChange:Do,autoFocus:ur,overlayRef:Kr});var io=function(Ne){var qe=Je.onOverlayClick;Xr(!1),qe&&qe(Ne)},Cr=function(){return te.createElement(pt,{ref:Kr,overlay:Tn,prefixCls:Xe,arrow:vt})},Ei=function(){return typeof Tn=="function"?Cr:Cr()},cn=function(){var Ne=Je.minOverlayWidthMatchTrigger,qe=Je.alignPoint;return"minOverlayWidthMatchTrigger"in Je?Ne:!qe},ge=function(){var Ne=Je.openClassName;return Ne!==void 0?Ne:"".concat(Xe,"-open")},Se=te.cloneElement(Or,{className:ve()((At=Or.props)===null||At===void 0?void 0:At.className,to&&ge()),ref:y(Or)?ne(Vo,Or.ref):void 0}),Pe=Kn;return!Pe&&mr.indexOf("contextMenu")!==-1&&(Pe=["click"]),te.createElement(le.Z,(0,de.Z)({builtinPlacements:$t},lo,{prefixCls:Xe,ref:mo,popupClassName:ve()(Dt,(0,pe.Z)({},"".concat(Xe,"-show-arrow"),vt)),popupStyle:Rn,action:mr,showAction:bn,hideAction:Pe,popupPlacement:sn,popupAlign:ut,popupTransitionName:Zt,popupAnimation:He,popupVisible:to,stretch:cn()?"minWidth":"",popup:Ei(),onPopupVisibleChange:Do,onPopupClick:io,getPopupContainer:on}),Se)}var Ze=te.forwardRef(tt),bt=Ze,wt=ee(60276),Kt=ee(5663),Qt=ee(10366),rt=ee(80636),st=ee(8745),Ct=ee(96159),Gt=ee(53124),Ht=ee(68508),Bt=ee(76529),Ke=ee(46605),Jt=ee(66748);const Mn=null,Hn=Je=>{const{menu:ft,arrow:At,prefixCls:et,children:vt,trigger:Pt,disabled:Xe,dropdownRender:Zt,getPopupContainer:He,overlayClassName:ut,rootClassName:wn,open:sn,onOpenChange:ht,visible:$t,onVisibleChange:on,mouseEnterDelay:bn=.15,mouseLeaveDelay:Kn=.1,autoAdjustOverflow:Dt=!0,placement:Rn="",overlay:Gn,transitionName:jr}=Je,{getPopupContainer:mr,getPrefixCls:ur,direction:Tn}=te.useContext(Gt.E_),Or=te.useMemo(()=>{const Se=ur();return jr!==void 0?jr:Rn.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[ur,Rn,jr]),zr=te.useMemo(()=>Rn?Rn.includes("Center")?Rn.slice(0,Rn.indexOf("Center")):Rn:Tn==="rtl"?"bottomRight":"bottomLeft",[Rn,Tn]),lo=ur("dropdown",et),[di,Ko]=(0,Jt.Z)(lo),[,pr]=(0,Ke.Z)(),Xr=te.Children.only(vt),to=(0,Ct.Tm)(Xr,{className:ve()(`${lo}-trigger`,{[`${lo}-rtl`]:Tn==="rtl"},Xr.props.className),disabled:Xe}),mo=Xe?[]:Pt;let Kr;mo&&mo.includes("contextMenu")&&(Kr=!0);const[Vo,Do]=(0,Kt.Z)(!1,{value:sn!=null?sn:$t}),io=(0,wt.useEvent)(Se=>{ht==null||ht(Se),on==null||on(Se),Do(Se)}),Cr=ve()(ut,wn,Ko,{[`${lo}-rtl`]:Tn==="rtl"}),Ei=(0,rt.Z)({arrowPointAtCenter:typeof At=="object"&&At.pointAtCenter,autoAdjustOverflow:Dt,offset:pr.marginXXS,arrowWidth:At?pr.sizePopupArrow:0,borderRadius:pr.borderRadius}),cn=te.useCallback(()=>{Do(!1)},[]),ge=()=>{let Se;return ft!=null&&ft.items?Se=te.createElement(Ht.default,Object.assign({},ft)):typeof Gn=="function"?Se=Gn():Se=Gn,Zt&&(Se=Zt(Se)),Se=te.Children.only(typeof Se=="string"?te.createElement("span",null,Se):Se),te.createElement(Bt.J,{prefixCls:`${lo}-menu`,expandIcon:te.createElement("span",{className:`${lo}-menu-submenu-arrow`},te.createElement(ue.Z,{className:`${lo}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:cn,validator:Pe=>{let{mode:Le}=Pe}},Se)};return di(te.createElement(bt,Object.assign({alignPoint:Kr},(0,Qt.Z)(Je,["rootClassName"]),{mouseEnterDelay:bn,mouseLeaveDelay:Kn,visible:Vo,builtinPlacements:Ei,arrow:!!At,overlayClassName:Cr,prefixCls:lo,getPopupContainer:He||mr,transitionName:Or,trigger:mo,overlay:ge,placement:zr,onVisibleChange:io}),to))};function pn(Je){return Object.assign(Object.assign({},Je),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const kt=(0,st.Z)(Hn,"dropdown",Je=>Je,pn),Qe=Je=>te.createElement(kt,Object.assign({},Je),te.createElement("span",null));Hn._InternalPanelDoNotUseOrYouWillBeFired=Qe;var Ye=Hn},85418:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return a}});var te=ee(35874),ue=ee(94184),be=ee.n(ue),ve=ee(67294),de=ee(25877),pe=ee(71577),ae=ee(53124),he=ee(93421),le=ee(4173),fe=ee(66748),se=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(y);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(y,x[z])&&(b[x[z]]=y[x[z]]);return b};const me=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ve.useContext(ae.E_),{prefixCls:z,type:oe="default",danger:ie,disabled:ce,loading:ye,onClick:_e,htmlType:xe,children:Ce,className:Te,menu:Me,arrow:pt,autoFocus:Ve,overlay:gt,trigger:Ae,align:De,open:Ie,onOpenChange:tt,placement:Ze,getPopupContainer:bt,href:wt,icon:Kt=ve.createElement(de.Z,null),title:Qt,buttonsRender:rt=Xe=>Xe,mouseEnterDelay:st,mouseLeaveDelay:Ct,overlayClassName:Gt,overlayStyle:Ht,destroyPopupOnHide:Bt,dropdownRender:Ke}=y,Jt=se(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Mn=b("dropdown",z),Hn=`${Mn}-button`,[pn,kt]=(0,fe.Z)(Mn),Qe={menu:Me,arrow:pt,autoFocus:Ve,align:De,disabled:ce,trigger:ce?[]:Ae,onOpenChange:tt,getPopupContainer:bt||E,mouseEnterDelay:st,mouseLeaveDelay:Ct,overlayClassName:Gt,overlayStyle:Ht,destroyPopupOnHide:Bt,dropdownRender:Ke},{compactSize:Ye,compactItemClassnames:Je}=(0,le.ri)(Mn,x),ft=be()(Hn,Je,Te,kt);"overlay"in y&&(Qe.overlay=gt),"open"in y&&(Qe.open=Ie),"placement"in y?Qe.placement=Ze:Qe.placement=x==="rtl"?"bottomLeft":"bottomRight";const At=ve.createElement(pe.ZP,{type:oe,danger:ie,disabled:ce,loading:ye,onClick:_e,htmlType:xe,href:wt,title:Qt},Ce),et=ve.createElement(pe.ZP,{type:oe,danger:ie,icon:Kt}),[vt,Pt]=rt([At,et]);return pn(ve.createElement(he.Z.Compact,Object.assign({className:ft,size:Ye,block:!0},Jt),vt,ve.createElement(te.Z,Object.assign({},Qe),Pt)))};me.__ANT_BUTTON=!0;var re=me;const ne=te.Z;ne.Button=re;var a=ne},66748:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return se}});var te=ee(14747),ue=ee(67771),be=ee(33297),ve=ee(50438),de=ee(97414),pe=ee(67968),ae=ee(45503),le=me=>{const{componentCls:re,menuCls:ne,colorError:a,colorTextLightSolid:y}=me,E=`${ne}-item`;return{[`${re}, ${re}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const fe=me=>{const{componentCls:re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:oe,fontSize:ie,dropdownEdgeChildPadding:ce,colorTextDisabled:ye,fontSizeIcon:_e,controlPaddingHorizontal:xe,colorBgElevated:Ce}=me;return[{[re]:Object.assign(Object.assign({},(0,te.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:_e}},[`${re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:_e},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${re}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomRight`]:{animationName:ue.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topRight`]:{animationName:ue.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomRight`]:{animationName:ue.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topRight`]:{animationName:ue.ly}})},(0,de.ZP)(me,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${re} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${re}, ${re}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ce,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,te.Qy)(me)),{[`${ne}-item-group-title`]:{padding:`${oe}px ${xe}px`,color:me.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:ie,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${xe}px`,color:me.colorText,fontWeight:"normal",fontSize:ie,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,te.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:ye,cursor:"not-allowed","&:hover":{color:ye,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:_e,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:xe+me.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${re}-menu-submenu-title`]:{[`&, ${re}-menu-submenu-arrow-icon`]:{color:ye,backgroundColor:Ce,cursor:"not-allowed"}},[`${ne}-submenu-selected ${re}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,ue.oN)(me,"slide-up"),(0,ue.oN)(me,"slide-down"),(0,be.Fm)(me,"move-up"),(0,be.Fm)(me,"move-down"),(0,ve._y)(me,"zoom-big")]]};var se=(0,pe.Z)("Dropdown",(me,re)=>{let{rootPrefixCls:ne}=re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:oe,borderRadiusLG:ie}=me,ce=(E-b*x)/2,{dropdownArrowOffset:ye}=(0,de.fS)({contentRadius:ie}),_e=(0,ae.TS)(me,{menuCls:`${oe}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ye,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:z});return[fe(_e),le(_e)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},25378:function(ot,Ge,ee){"use strict";var te=ee(67294),ue=ee(14075),be=ee(57838),ve=ee(74443);function de(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ae=(0,te.useRef)({}),he=(0,be.Z)(),le=(0,ve.ZP)();return(0,ue.Z)(()=>{const fe=le.subscribe(se=>{ae.current=se,pe&&he()});return()=>le.unsubscribe(fe)},[]),ae.current}Ge.Z=de},99398:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Qn}});var te=ee(67294),ue=ee.t(te,2),be=ee(99569),ve=ee(94184),de=ee.n(ve),pe=ee(87462),ae=ee(1413),he=ee(4942),le=ee(97685),fe=ee(71002),se=ee(45987),me=/margin|padding|width|height|max|min|offset/,re={left:!0,top:!0},ne={cssFloat:1,styleFloat:1,float:1};function a(Ue){return Ue.nodeType===1?Ue.ownerDocument.defaultView.getComputedStyle(Ue,null):{}}function y(Ue,Fe,nt){if(Fe=Fe.toLowerCase(),nt==="auto"){if(Fe==="height")return Ue.offsetHeight;if(Fe==="width")return Ue.offsetWidth}return Fe in re||(re[Fe]=me.test(Fe)),re[Fe]?parseFloat(nt)||0:nt}function E(Ue,Fe){var nt=arguments.length,St=a(Ue);return Fe=ne[Fe]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Fe,nt===1?St:y(Ue,Fe,St[Fe]||Ue.style[Fe])}function b(Ue,Fe,nt){var St=arguments.length;if(Fe=ne[Fe]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Fe,St===3)return typeof nt=="number"&&me.test(Fe)&&(nt="".concat(nt,"px")),Ue.style[Fe]=nt,nt;for(var Mt in Fe)Fe.hasOwnProperty(Mt)&&b(Ue,Mt,Fe[Mt]);return a(Ue)}function x(Ue){return Ue===document.body?document.documentElement.clientWidth:Ue.offsetWidth}function z(Ue){return Ue===document.body?window.innerHeight||document.documentElement.clientHeight:Ue.offsetHeight}function oe(){var Ue=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Fe=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ue,height:Fe}}function ie(){var Ue=document.documentElement.clientWidth,Fe=window.innerHeight||document.documentElement.clientHeight;return{width:Ue,height:Fe}}function ce(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ye(Ue){var Fe=Ue.getBoundingClientRect(),nt=document.documentElement;return{left:Fe.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:Fe.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}function _e(Ue){var Fe=te.useRef();Fe.current=Ue;var nt=te.useCallback(function(){for(var St,Mt=arguments.length,Ft=new Array(Mt),ln=0;ln<Mt;ln++)Ft[ln]=arguments[ln];return(St=Fe.current)===null||St===void 0?void 0:St.call.apply(St,[Fe].concat(Ft))},[]);return nt}function xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ce=xe()?te.useLayoutEffect:te.useEffect,Te=function(Fe,nt){var St=te.useRef(!0);Ce(function(){return Fe(St.current)},nt),Ce(function(){return St.current=!1,function(){St.current=!0}},[])},Me=function(Fe,nt){Te(function(St){if(!St)return Fe()},nt)},pt=null;function Ve(Ue){var Fe=te.useRef(!1),nt=te.useState(Ue),St=(0,le.Z)(nt,2),Mt=St[0],Ft=St[1];te.useEffect(function(){return Fe.current=!1,function(){Fe.current=!0}},[]);function ln(gn,Nn){Nn&&Fe.current||Ft(gn)}return[Mt,ln]}function gt(Ue){return Ue!==void 0}function Ae(Ue,Fe){var nt=Fe||{},St=nt.defaultValue,Mt=nt.value,Ft=nt.onChange,ln=nt.postState,gn=Ve(function(){return gt(Mt)?Mt:gt(St)?typeof St=="function"?St():St:typeof Ue=="function"?Ue():Ue}),Nn=(0,le.Z)(gn,2),Bn=Nn[0],Fn=Nn[1],jn=Mt!==void 0?Mt:Bn,Jn=ln?ln(jn):jn,or=_e(Ft),Jr=Ve([jn]),bo=(0,le.Z)(Jr,2),Zr=bo[0],ao=bo[1];Me(function(){var vo=Zr[0];Bn!==vo&&or(Bn,vo)},[Zr]),Me(function(){gt(Mt)||Fn(Mt)},[Mt]);var co=_e(function(vo,Rr){Fn(vo,Rr),ao([jn],Rr)});return[Jn,co]}var De=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Ie=te.createContext(null),tt=0;function Ze(Ue,Fe){var nt=te.useState(function(){return tt+=1,String(tt)}),St=(0,le.Z)(nt,1),Mt=St[0],Ft=te.useContext(Ie),ln={data:Fe,canPreview:Ue};return te.useEffect(function(){if(Ft)return Ft.register(Mt,ln)},[]),te.useEffect(function(){Ft&&Ft.register(Mt,ln)},[Ue,Fe]),Mt}function bt(Ue){return new Promise(function(Fe){var nt=document.createElement("img");nt.onerror=function(){return Fe(!1)},nt.onload=function(){return Fe(!0)},nt.src=Ue})}function wt(Ue){var Fe=Ue.src,nt=Ue.isCustomPlaceholder,St=Ue.fallback,Mt=(0,te.useState)(nt?"loading":"normal"),Ft=(0,le.Z)(Mt,2),ln=Ft[0],gn=Ft[1],Nn=(0,te.useRef)(!1),Bn=ln==="error";(0,te.useEffect)(function(){bt(Fe).then(function(or){or||gn("error")})},[Fe]),(0,te.useEffect)(function(){nt&&!Nn.current?gn("loading"):Bn&&gn("normal")},[Fe]);var Fn=function(){gn("normal")},jn=function(Jr){Nn.current=!1,ln==="loading"&&Jr!=null&&Jr.complete&&(Jr.naturalWidth||Jr.naturalHeight)&&(Nn.current=!0,Fn())},Jn=Bn&&St?{src:St}:{onLoad:Fn,src:Fe};return[jn,Jn,ln]}var Kt=ee(2788),Qt=te.createContext({});function rt(Ue,Fe){if(!Ue)return!1;if(Ue.contains)return Ue.contains(Fe);for(var nt=Fe;nt;){if(nt===Ue)return!0;nt=nt.parentNode}return!1}function st(){var Ue=(0,ae.Z)({},ue);return Ue.useId}var Ct=0;function Gt(){}function Ht(Ue){var Fe=te.useState("ssr-id"),nt=(0,le.Z)(Fe,2),St=nt[0],Mt=nt[1],Ft=st(),ln=Ft==null?void 0:Ft();return te.useEffect(function(){if(!Ft){var gn=Ct;Ct+=1,Mt("rc_unique_".concat(gn))}},[]),Ue||ln||St}var Bt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var nt=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||nt>=Bt.F1&&nt<=Bt.F12)return!1;switch(nt){case Bt.ALT:case Bt.CAPS_LOCK:case Bt.CONTEXT_MENU:case Bt.CTRL:case Bt.DOWN:case Bt.END:case Bt.ESC:case Bt.HOME:case Bt.INSERT:case Bt.LEFT:case Bt.MAC_FF_META:case Bt.META:case Bt.NUMLOCK:case Bt.NUM_CENTER:case Bt.PAGE_DOWN:case Bt.PAGE_UP:case Bt.PAUSE:case Bt.PRINT_SCREEN:case Bt.RIGHT:case Bt.SHIFT:case Bt.UP:case Bt.WIN_KEY:case Bt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=Bt.ZERO&&Fe<=Bt.NINE||Fe>=Bt.NUM_ZERO&&Fe<=Bt.NUM_MULTIPLY||Fe>=Bt.A&&Fe<=Bt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case Bt.SPACE:case Bt.QUESTION_MARK:case Bt.NUM_PLUS:case Bt.NUM_MINUS:case Bt.NUM_PERIOD:case Bt.NUM_DIVISION:case Bt.SEMICOLON:case Bt.DASH:case Bt.EQUALS:case Bt.COMMA:case Bt.PERIOD:case Bt.SLASH:case Bt.APOSTROPHE:case Bt.SINGLE_QUOTE:case Bt.OPEN_SQUARE_BRACKET:case Bt.BACKSLASH:case Bt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ke=Bt,Jt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Mn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Hn="".concat(Jt," ").concat(Mn).split(/[\s\n]+/),pn="aria-",kt="data-";function Qe(Ue,Fe){return Ue.indexOf(Fe)===0}function Ye(Ue){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt;Fe===!1?nt={aria:!0,data:!0,attr:!0}:Fe===!0?nt={aria:!0}:nt=(0,ae.Z)({},Fe);var St={};return Object.keys(Ue).forEach(function(Mt){(nt.aria&&(Mt==="role"||Qe(Mt,pn))||nt.data&&Qe(Mt,kt)||nt.attr&&Hn.includes(Mt))&&(St[Mt]=Ue[Mt])}),St}function Je(Ue,Fe,nt){var St=Fe;return!St&&nt&&(St="".concat(Ue,"-").concat(nt)),St}function ft(Ue,Fe){var nt=Ue["page".concat(Fe?"Y":"X","Offset")],St="scroll".concat(Fe?"Top":"Left");if(typeof nt!="number"){var Mt=Ue.document;nt=Mt.documentElement[St],typeof nt!="number"&&(nt=Mt.body[St])}return nt}function At(Ue){var Fe=Ue.getBoundingClientRect(),nt={left:Fe.left,top:Fe.top},St=Ue.ownerDocument,Mt=St.defaultView||St.parentWindow;return nt.left+=ft(Mt),nt.top+=ft(Mt,!0),nt}var et=ee(62874),vt=ee(59864);function Pt(Ue,Fe,nt){var St=te.useRef({});return(!("value"in St.current)||nt(St.current.condition,Fe))&&(St.current.value=Ue(),St.current.condition=Fe),St.current.value}function Xe(Ue,Fe){typeof Ue=="function"?Ue(Fe):(0,fe.Z)(Ue)==="object"&&Ue&&"current"in Ue&&(Ue.current=Fe)}function Zt(){for(var Ue=arguments.length,Fe=new Array(Ue),nt=0;nt<Ue;nt++)Fe[nt]=arguments[nt];var St=Fe.filter(function(Mt){return Mt});return St.length<=1?St[0]:function(Mt){Fe.forEach(function(Ft){Xe(Ft,Mt)})}}function He(){for(var Ue=arguments.length,Fe=new Array(Ue),nt=0;nt<Ue;nt++)Fe[nt]=arguments[nt];return Pt(function(){return Zt.apply(void 0,Fe)},Fe,function(St,Mt){return St.length===Mt.length&&St.every(function(Ft,ln){return Ft===Mt[ln]})})}function ut(Ue){var Fe,nt,St=isMemo(Ue)?Ue.type.type:Ue.type;return!(typeof St=="function"&&!((Fe=St.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof Ue=="function"&&!((nt=Ue.prototype)!==null&&nt!==void 0&&nt.render))}var wn=te.memo(function(Ue){var Fe=Ue.children;return Fe},function(Ue,Fe){var nt=Fe.shouldUpdate;return!nt}),sn={width:0,height:0,overflow:"hidden",outline:"none"},ht=te.forwardRef(function(Ue,Fe){var nt=Ue.prefixCls,St=Ue.className,Mt=Ue.style,Ft=Ue.title,ln=Ue.ariaId,gn=Ue.footer,Nn=Ue.closable,Bn=Ue.closeIcon,Fn=Ue.onClose,jn=Ue.children,Jn=Ue.bodyStyle,or=Ue.bodyProps,Jr=Ue.modalRender,bo=Ue.onMouseDown,Zr=Ue.onMouseUp,ao=Ue.holderRef,co=Ue.visible,vo=Ue.forceRender,Rr=Ue.width,qr=Ue.height,Eo=te.useContext(Qt),ii=Eo.panel,uo=He(ao,ii),ui=(0,te.useRef)(),zo=(0,te.useRef)();te.useImperativeHandle(Fe,function(){return{focus:function(){var vi;(vi=ui.current)===null||vi===void 0||vi.focus()},changeActive:function(vi){var Ai=document,Oo=Ai.activeElement;vi&&Oo===zo.current?ui.current.focus():!vi&&Oo===ui.current&&zo.current.focus()}}});var zi={};Rr!==void 0&&(zi.width=Rr),qr!==void 0&&(zi.height=qr);var Mi;gn&&(Mi=te.createElement("div",{className:"".concat(nt,"-footer")},gn));var mi;Ft&&(mi=te.createElement("div",{className:"".concat(nt,"-header")},te.createElement("div",{className:"".concat(nt,"-title"),id:ln},Ft)));var So;Nn&&(So=te.createElement("button",{type:"button",onClick:Fn,"aria-label":"Close",className:"".concat(nt,"-close")},Bn||te.createElement("span",{className:"".concat(nt,"-close-x")})));var Co=te.createElement("div",{className:"".concat(nt,"-content")},So,mi,te.createElement("div",(0,pe.Z)({className:"".concat(nt,"-body"),style:Jn},or),jn),Mi);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Ft?ln:null,"aria-modal":"true",ref:uo,style:(0,ae.Z)((0,ae.Z)({},Mt),zi),className:de()(nt,St),onMouseDown:bo,onMouseUp:Zr},te.createElement("div",{tabIndex:0,ref:ui,style:sn,"aria-hidden":"true"}),te.createElement(wn,{shouldUpdate:co||vo},Jr?Jr(Co):Co),te.createElement("div",{tabIndex:0,ref:zo,style:sn,"aria-hidden":"true"}))}),$t=ht,on=te.forwardRef(function(Ue,Fe){var nt=Ue.prefixCls,St=Ue.title,Mt=Ue.style,Ft=Ue.className,ln=Ue.visible,gn=Ue.forceRender,Nn=Ue.destroyOnClose,Bn=Ue.motionName,Fn=Ue.ariaId,jn=Ue.onVisibleChanged,Jn=Ue.mousePosition,or=(0,te.useRef)(),Jr=te.useState(),bo=(0,le.Z)(Jr,2),Zr=bo[0],ao=bo[1],co={};Zr&&(co.transformOrigin=Zr);function vo(){var Rr=At(or.current);ao(Jn?"".concat(Jn.x-Rr.left,"px ").concat(Jn.y-Rr.top,"px"):"")}return te.createElement(et.Z,{visible:ln,onVisibleChanged:jn,onAppearPrepare:vo,onEnterPrepare:vo,forceRender:gn,motionName:Bn,removeOnLeave:Nn,ref:or},function(Rr,qr){var Eo=Rr.className,ii=Rr.style;return te.createElement($t,(0,pe.Z)({},Ue,{ref:Fe,title:St,ariaId:Fn,prefixCls:nt,holderRef:qr,style:(0,ae.Z)((0,ae.Z)((0,ae.Z)({},ii),Mt),co),className:de()(Ft,Eo)}))})});on.displayName="Content";var bn=on;function Kn(Ue){var Fe=Ue.prefixCls,nt=Ue.style,St=Ue.visible,Mt=Ue.maskProps,Ft=Ue.motionName;return te.createElement(et.Z,{key:"mask",visible:St,motionName:Ft,leavedClassName:"".concat(Fe,"-mask-hidden")},function(ln,gn){var Nn=ln.className,Bn=ln.style;return te.createElement("div",(0,pe.Z)({ref:gn,style:(0,ae.Z)((0,ae.Z)({},Bn),nt),className:de()("".concat(Fe,"-mask"),Nn)},Mt))})}function Dt(Ue){var Fe=Ue.prefixCls,nt=Fe===void 0?"rc-dialog":Fe,St=Ue.zIndex,Mt=Ue.visible,Ft=Mt===void 0?!1:Mt,ln=Ue.keyboard,gn=ln===void 0?!0:ln,Nn=Ue.focusTriggerAfterClose,Bn=Nn===void 0?!0:Nn,Fn=Ue.wrapStyle,jn=Ue.wrapClassName,Jn=Ue.wrapProps,or=Ue.onClose,Jr=Ue.afterOpenChange,bo=Ue.afterClose,Zr=Ue.transitionName,ao=Ue.animation,co=Ue.closable,vo=co===void 0?!0:co,Rr=Ue.mask,qr=Rr===void 0?!0:Rr,Eo=Ue.maskTransitionName,ii=Ue.maskAnimation,uo=Ue.maskClosable,ui=uo===void 0?!0:uo,zo=Ue.maskStyle,zi=Ue.maskProps,Mi=Ue.rootClassName,mi=(0,te.useRef)(),So=(0,te.useRef)(),Co=(0,te.useRef)(),Xo=te.useState(Ft),vi=(0,le.Z)(Xo,2),Ai=vi[0],Oo=vi[1],Bi=Ht();function Ri(){rt(So.current,document.activeElement)||(mi.current=document.activeElement)}function Hi(){if(!rt(So.current,document.activeElement)){var _i;(_i=Co.current)===null||_i===void 0||_i.focus()}}function Wi(_i){if(_i)Hi();else{if(Oo(!1),qr&&mi.current&&Bn){try{mi.current.focus({preventScroll:!0})}catch(Ki){}mi.current=null}Ai&&(bo==null||bo())}Jr==null||Jr(_i)}function Qo(_i){or==null||or(_i)}var Si=(0,te.useRef)(!1),ai=(0,te.useRef)(),yi=function(){clearTimeout(ai.current),Si.current=!0},aa=function(){ai.current=setTimeout(function(){Si.current=!1})},ca=null;ui&&(ca=function(Ki){Si.current?Si.current=!1:So.current===Ki.target&&Qo(Ki)});function Ci(_i){if(gn&&_i.keyCode===Ke.ESC){_i.stopPropagation(),Qo(_i);return}Ft&&_i.keyCode===Ke.TAB&&Co.current.changeActive(!_i.shiftKey)}return(0,te.useEffect)(function(){Ft&&(Oo(!0),Ri())},[Ft]),(0,te.useEffect)(function(){return function(){clearTimeout(ai.current)}},[]),te.createElement("div",(0,pe.Z)({className:de()("".concat(nt,"-root"),Mi)},Ye(Ue,{data:!0})),te.createElement(Kn,{prefixCls:nt,visible:qr&&Ft,motionName:Je(nt,Eo,ii),style:(0,ae.Z)({zIndex:St},zo),maskProps:zi}),te.createElement("div",(0,pe.Z)({tabIndex:-1,onKeyDown:Ci,className:de()("".concat(nt,"-wrap"),jn),ref:So,onClick:ca,style:(0,ae.Z)((0,ae.Z)({zIndex:St},Fn),{},{display:Ai?null:"none"})},Jn),te.createElement(bn,(0,pe.Z)({},Ue,{onMouseDown:yi,onMouseUp:aa,ref:Co,closable:vo,ariaId:Bi,prefixCls:nt,visible:Ft&&Ai,onClose:Qo,onVisibleChanged:Wi,motionName:Je(nt,Zr,ao)}))))}var Rn=function(Fe){var nt=Fe.visible,St=Fe.getContainer,Mt=Fe.forceRender,Ft=Fe.destroyOnClose,ln=Ft===void 0?!1:Ft,gn=Fe.afterClose,Nn=Fe.panelRef,Bn=te.useState(nt),Fn=(0,le.Z)(Bn,2),jn=Fn[0],Jn=Fn[1],or=te.useMemo(function(){return{panel:Nn}},[Nn]);return te.useEffect(function(){nt&&Jn(!0)},[nt]),!Mt&&ln&&!jn?null:te.createElement(Qt.Provider,{value:or},te.createElement(Kt.Z,{open:nt||Mt||jn,autoDestroy:!1,getContainer:St,autoLock:nt||jn},te.createElement(Dt,(0,pe.Z)({},Fe,{destroyOnClose:ln,afterClose:function(){gn==null||gn(),Jn(!1)}}))))};Rn.displayName="Dialog";var Gn=Rn,jr=Gn,mr=ee(73935);function ur(Ue,Fe,nt,St){var Mt=mr.unstable_batchedUpdates?function(ln){mr.unstable_batchedUpdates(nt,ln)}:nt;return Ue!=null&&Ue.addEventListener&&Ue.addEventListener(Fe,Mt,St),{remove:function(){Ue!=null&&Ue.removeEventListener&&Ue.removeEventListener(Fe,Mt,St)}}}var Tn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var nt=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||nt>=Tn.F1&&nt<=Tn.F12)return!1;switch(nt){case Tn.ALT:case Tn.CAPS_LOCK:case Tn.CONTEXT_MENU:case Tn.CTRL:case Tn.DOWN:case Tn.END:case Tn.ESC:case Tn.HOME:case Tn.INSERT:case Tn.LEFT:case Tn.MAC_FF_META:case Tn.META:case Tn.NUMLOCK:case Tn.NUM_CENTER:case Tn.PAGE_DOWN:case Tn.PAGE_UP:case Tn.PAUSE:case Tn.PRINT_SCREEN:case Tn.RIGHT:case Tn.SHIFT:case Tn.UP:case Tn.WIN_KEY:case Tn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=Tn.ZERO&&Fe<=Tn.NINE||Fe>=Tn.NUM_ZERO&&Fe<=Tn.NUM_MULTIPLY||Fe>=Tn.A&&Fe<=Tn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case Tn.SPACE:case Tn.QUESTION_MARK:case Tn.NUM_PLUS:case Tn.NUM_MINUS:case Tn.NUM_PERIOD:case Tn.NUM_DIVISION:case Tn.SEMICOLON:case Tn.DASH:case Tn.EQUALS:case Tn.COMMA:case Tn.PERIOD:case Tn.SLASH:case Tn.APOSTROPHE:case Tn.SINGLE_QUOTE:case Tn.OPEN_SQUARE_BRACKET:case Tn.BACKSLASH:case Tn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Or=Tn,zr={},lo=[],di=function(Fe){lo.push(Fe)};function Ko(Ue,Fe){if(0)var nt}function pr(Ue,Fe){if(0)var nt}function Xr(){zr={}}function to(Ue,Fe,nt){!Fe&&!zr[nt]&&(Ue(!1,nt),zr[nt]=!0)}function mo(Ue,Fe){to(Ko,Ue,Fe)}function Kr(Ue,Fe){to(pr,Ue,Fe)}mo.preMessage=di,mo.resetWarned=Xr,mo.noteOnce=Kr;var Vo=mo;function Do(Ue,Fe,nt,St){var Mt=Fe+nt,Ft=(nt-St)/2;if(nt>St){if(Fe>0)return(0,he.Z)({},Ue,Ft);if(Fe<0&&Mt<St)return(0,he.Z)({},Ue,-Ft)}else if(Fe<0||Mt>St)return(0,he.Z)({},Ue,Fe<0?Ft:-Ft);return{}}function io(Ue,Fe,nt,St){var Mt=ie(),Ft=Mt.width,ln=Mt.height,gn=null;return Ue<=Ft&&Fe<=ln?gn={x:0,y:0}:(Ue>Ft||Fe>ln)&&(gn=(0,ae.Z)((0,ae.Z)({},Do("x",nt,Ue,Ft)),Do("y",St,Fe,ln))),gn}function Cr(Ue,Fe){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=new Set;function Mt(Ft,ln){var gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Nn=St.has(Ft);if(Vo(!Nn,"Warning: There may be circular references"),Nn)return!1;if(Ft===ln)return!0;if(nt&&gn>1)return!1;St.add(Ft);var Bn=gn+1;if(Array.isArray(Ft)){if(!Array.isArray(ln)||Ft.length!==ln.length)return!1;for(var Fn=0;Fn<Ft.length;Fn++)if(!Mt(Ft[Fn],ln[Fn],Bn))return!1;return!0}if(Ft&&ln&&(0,fe.Z)(Ft)==="object"&&(0,fe.Z)(ln)==="object"){var jn=Object.keys(Ft);return jn.length!==Object.keys(ln).length?!1:jn.every(function(Jn){return Mt(Ft[Jn],ln[Jn],Bn)})}return!1}return Mt(Ue,Fe)}var Ei=Cr,cn=function(Fe){return+setTimeout(Fe,16)},ge=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(cn=function(Fe){return window.requestAnimationFrame(Fe)},ge=function(Fe){return window.cancelAnimationFrame(Fe)});var Se=0,Pe=new Map;function Le(Ue){Pe.delete(Ue)}var Ne=function(Fe){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Se+=1;var St=Se;function Mt(Ft){if(Ft===0)Le(St),Fe();else{var ln=cn(function(){Mt(Ft-1)});Pe.set(St,ln)}}return Mt(nt),St};Ne.cancel=function(Ue){var Fe=Pe.get(Ue);return Le(Fe),ge(Fe)};var qe=Ne,it={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function un(Ue,Fe,nt,St){var Mt=(0,te.useRef)(null),Ft=(0,te.useRef)([]),ln=(0,te.useState)(it),gn=(0,le.Z)(ln,2),Nn=gn[0],Bn=gn[1],Fn=function(Jr){Bn(it),St&&!Ei(it,Nn)&&St({transform:it,action:Jr})},jn=function(Jr,bo){Mt.current===null&&(Ft.current=[],Mt.current=qe(function(){Bn(function(Zr){var ao=Zr;return Ft.current.forEach(function(co){ao=(0,ae.Z)((0,ae.Z)({},ao),co)}),Mt.current=null,St==null||St({transform:ao,action:bo}),ao})})),Ft.current.push((0,ae.Z)((0,ae.Z)({},Nn),Jr))},Jn=function(Jr,bo,Zr,ao){var co=Ue.current,vo=co.width,Rr=co.height,qr=co.offsetWidth,Eo=co.offsetHeight,ii=co.offsetLeft,uo=co.offsetTop,ui=Jr,zo=Nn.scale*Jr;zo>nt?(ui=nt/Nn.scale,zo=nt):zo<Fe&&(ui=Fe/Nn.scale,zo=Fe);var zi=Zr!=null?Zr:innerWidth/2,Mi=ao!=null?ao:innerHeight/2,mi=ui-1,So=mi*vo*.5,Co=mi*Rr*.5,Xo=mi*(zi-Nn.x-ii),vi=mi*(Mi-Nn.y-uo),Ai=Nn.x-(Xo-So),Oo=Nn.y-(vi-Co);if(Jr<1&&zo===1){var Bi=qr*zo,Ri=Eo*zo,Hi=ie(),Wi=Hi.width,Qo=Hi.height;Bi<=Wi&&Ri<=Qo&&(Ai=0,Oo=0)}jn({x:Ai,y:Oo,scale:zo},bo)};return{transform:Nn,resetTransform:Fn,updateTransform:jn,dispatchZoomChange:Jn}}var Vt=function(Fe){var nt=Fe.visible,St=Fe.maskTransitionName,Mt=Fe.getContainer,Ft=Fe.prefixCls,ln=Fe.rootClassName,gn=Fe.icons,Nn=Fe.countRender,Bn=Fe.showSwitch,Fn=Fe.showProgress,jn=Fe.current,Jn=Fe.transform,or=Fe.count,Jr=Fe.scale,bo=Fe.minScale,Zr=Fe.maxScale,ao=Fe.closeIcon,co=Fe.onSwitchLeft,vo=Fe.onSwitchRight,Rr=Fe.onClose,qr=Fe.onZoomIn,Eo=Fe.onZoomOut,ii=Fe.onRotateRight,uo=Fe.onRotateLeft,ui=Fe.onFlipX,zo=Fe.onFlipY,zi=Fe.toolbarRender,Mi=(0,te.useContext)(Ie),mi=gn.rotateLeft,So=gn.rotateRight,Co=gn.zoomIn,Xo=gn.zoomOut,vi=gn.close,Ai=gn.left,Oo=gn.right,Bi=gn.flipX,Ri=gn.flipY,Hi="".concat(Ft,"-operations-operation");te.useEffect(function(){var ai=function(aa){aa.keyCode===Or.ESC&&Rr()};return nt&&window.addEventListener("keydown",ai),function(){window.removeEventListener("keydown",ai)}},[nt]);var Wi=[{icon:Ri,onClick:zo,type:"flipY"},{icon:Bi,onClick:ui,type:"flipX"},{icon:mi,onClick:uo,type:"rotateLeft"},{icon:So,onClick:ii,type:"rotateRight"},{icon:Xo,onClick:Eo,type:"zoomOut",disabled:Jr===bo},{icon:Co,onClick:qr,type:"zoomIn",disabled:Jr===Zr}],Qo=Wi.map(function(ai){var yi,aa=ai.icon,ca=ai.onClick,Ci=ai.type,_i=ai.disabled;return te.createElement("div",{className:de()(Hi,(yi={},(0,he.Z)(yi,"".concat(Ft,"-operations-operation-").concat(Ci),!0),(0,he.Z)(yi,"".concat(Ft,"-operations-operation-disabled"),!!_i),yi)),onClick:ca,key:Ci},aa)}),Si=te.createElement("div",{className:"".concat(Ft,"-operations")},Qo);return te.createElement(et.Z,{visible:nt,motionName:St},function(ai){var yi=ai.className,aa=ai.style;return te.createElement(Kt.Z,{open:!0,getContainer:Mt!=null?Mt:document.body},te.createElement("div",{className:de()("".concat(Ft,"-operations-wrapper"),yi,ln),style:aa},ao===null?null:te.createElement("button",{className:"".concat(Ft,"-close"),onClick:Rr},ao||vi),Bn&&te.createElement(te.Fragment,null,te.createElement("div",{className:de()("".concat(Ft,"-switch-left"),(0,he.Z)({},"".concat(Ft,"-switch-left-disabled"),jn===0)),onClick:co},Ai),te.createElement("div",{className:de()("".concat(Ft,"-switch-right"),(0,he.Z)({},"".concat(Ft,"-switch-right-disabled"),jn===or-1)),onClick:vo},Oo)),te.createElement("div",{className:"".concat(Ft,"-footer")},Fn&&te.createElement("div",{className:"".concat(Ft,"-progress")},Nn?Nn(jn+1,or):"".concat(jn+1," / ").concat(or)),zi?zi(Si,(0,ae.Z)({icons:{flipYIcon:Qo[0],flipXIcon:Qo[1],rotateLeftIcon:Qo[2],rotateRightIcon:Qo[3],zoomOutIcon:Qo[4],zoomInIcon:Qo[5]},actions:{onFlipY:zo,onFlipX:ui,onRotateLeft:uo,onRotateRight:ii,onZoomOut:Eo,onZoomIn:qr},transform:Jn},Mi?{current:jn,total:or}:{})):Si)))})},En=Vt,Vn=1,Pr=1,Ot=["fallback","src","imgRef"],qn=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],er=function(Fe){var nt=Fe.fallback,St=Fe.src,Mt=Fe.imgRef,Ft=(0,se.Z)(Fe,Ot),ln=wt({src:St,fallback:nt}),gn=(0,le.Z)(ln,2),Nn=gn[0],Bn=gn[1];return te.createElement("img",(0,pe.Z)({ref:function(jn){Mt.current=jn,Nn(jn)}},Ft,Bn))},Pn=function(Fe){var nt=Fe.prefixCls,St=Fe.src,Mt=Fe.alt,Ft=Fe.fallback,ln=Fe.movable,gn=ln===void 0?!0:ln,Nn=Fe.onClose,Bn=Fe.visible,Fn=Fe.icons,jn=Fn===void 0?{}:Fn,Jn=Fe.rootClassName,or=Fe.closeIcon,Jr=Fe.getContainer,bo=Fe.current,Zr=bo===void 0?0:bo,ao=Fe.count,co=ao===void 0?1:ao,vo=Fe.countRender,Rr=Fe.scaleStep,qr=Rr===void 0?.5:Rr,Eo=Fe.minScale,ii=Eo===void 0?1:Eo,uo=Fe.maxScale,ui=uo===void 0?50:uo,zo=Fe.transitionName,zi=zo===void 0?"zoom":zo,Mi=Fe.maskTransitionName,mi=Mi===void 0?"fade":Mi,So=Fe.imageRender,Co=Fe.imgCommonProps,Xo=Fe.toolbarRender,vi=Fe.onTransform,Ai=Fe.onChange,Oo=(0,se.Z)(Fe,qn),Bi=(0,te.useRef)(),Ri=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Hi=(0,te.useState)(!1),Wi=(0,le.Z)(Hi,2),Qo=Wi[0],Si=Wi[1],ai=(0,te.useContext)(Ie),yi=ai&&co>1,aa=ai&&co>=1,ca=un(Bi,ii,ui,vi),Ci=ca.transform,_i=ca.resetTransform,Ki=ca.updateTransform,ka=ca.dispatchZoomChange,Ea=(0,te.useState)(!0),Ca=(0,le.Z)(Ea,2),Na=Ca[0],va=Ca[1],ua=Ci.rotate,sa=Ci.scale,Oa=Ci.x,Ba=Ci.y,is=de()((0,he.Z)({},"".concat(nt,"-moving"),Qo));(0,te.useEffect)(function(){Na||va(!0)},[Na]);var ys=function(){_i("close")},Ka=function(){ka(Vn+qr,"zoomIn")},_s=function(){ka(Vn/(Vn+qr),"zoomOut")},as=function(){Ki({rotate:ua+90},"rotateRight")},Va=function(){Ki({rotate:ua-90},"rotateLeft")},Fa=function(){Ki({flipX:!Ci.flipX},"flipX")},Ra=function(){Ki({flipY:!Ci.flipY},"flipY")},ss=function(Ro){Ro==null||Ro.preventDefault(),Ro==null||Ro.stopPropagation(),Zr>0&&(va(!1),_i("prev"),Ai==null||Ai(Zr-1,Zr))},ds=function(Ro){Ro==null||Ro.preventDefault(),Ro==null||Ro.stopPropagation(),Zr<co-1&&(va(!1),_i("next"),Ai==null||Ai(Zr+1,Zr))},Ya=function(){if(Bn&&Qo){Si(!1);var Ro=Ri.current,$a=Ro.transformX,Ui=Ro.transformY,wa=Oa!==$a&&Ba!==Ui;if(!wa)return;var Sa=Bi.current.offsetWidth*sa,Xa=Bi.current.offsetHeight*sa,Qa=Bi.current.getBoundingClientRect(),Ja=Qa.left,Ps=Qa.top,bs=ua%180!==0,Es=io(bs?Xa:Sa,bs?Sa:Xa,Ja,Ps);Es&&Ki((0,ae.Z)({},Es),"dragRebound")}},Ts=function(Ro){!gn||Ro.button!==0||(Ro.preventDefault(),Ro.stopPropagation(),Ri.current={deltaX:Ro.pageX-Ci.x,deltaY:Ro.pageY-Ci.y,transformX:Ci.x,transformY:Ci.y},Si(!0))},Ds=function(Ro){Bn&&Qo&&Ki({x:Ro.pageX-Ri.current.deltaX,y:Ro.pageY-Ri.current.deltaY},"move")},Is=function(Ro){if(!(!Bn||Ro.deltaY==0)){var $a=Math.abs(Ro.deltaY/100),Ui=Math.min($a,Pr),wa=Vn+Ui*qr;Ro.deltaY>0&&(wa=Vn/wa),ka(wa,"wheel",Ro.clientX,Ro.clientY)}},Bs=function(Ro){!Bn||!yi||(Ro.keyCode===Or.LEFT?ss():Ro.keyCode===Or.RIGHT&&ds())},Ns=function(Ro){Bn&&(sa!==1?Ki({x:0,y:0,scale:1},"doubleClick"):ka(Vn+qr,"doubleClick",Ro.clientX,Ro.clientY))};(0,te.useEffect)(function(){var Qi,Ro,$a,Ui;if(gn){$a=ur(window,"mouseup",Ya,!1),Ui=ur(window,"mousemove",Ds,!1);try{window.top!==window.self&&(Qi=ur(window.top,"mouseup",Ya,!1),Ro=ur(window.top,"mousemove",Ds,!1))}catch(wa){Ko(!1,"[rc-image] ".concat(wa))}}return function(){var wa,Sa,Xa,Qa;(wa=$a)===null||wa===void 0||wa.remove(),(Sa=Ui)===null||Sa===void 0||Sa.remove(),(Xa=Qi)===null||Xa===void 0||Xa.remove(),(Qa=Ro)===null||Qa===void 0||Qa.remove()}},[Bn,Qo,Oa,Ba,ua,gn]),(0,te.useEffect)(function(){var Qi=ur(window,"keydown",Bs,!1);return function(){Qi.remove()}},[Bn,yi,Zr]);var gs=te.createElement(er,(0,pe.Z)({},Co,{width:Fe.width,height:Fe.height,imgRef:Bi,className:"".concat(nt,"-img"),alt:Mt,style:{transform:"translate3d(".concat(Ci.x,"px, ").concat(Ci.y,"px, 0) scale3d(").concat(Ci.flipX?"-":"").concat(sa,", ").concat(Ci.flipY?"-":"").concat(sa,", 1) rotate(").concat(ua,"deg)"),transitionDuration:!Na&&"0s"},fallback:Ft,src:St,onWheel:Is,onMouseDown:Ts,onDoubleClick:Ns}));return te.createElement(te.Fragment,null,te.createElement(jr,(0,pe.Z)({transitionName:zi,maskTransitionName:mi,closable:!1,keyboard:!0,prefixCls:nt,onClose:Nn,visible:Bn,wrapClassName:is,rootClassName:Jn,getContainer:Jr},Oo,{afterClose:ys}),te.createElement("div",{className:"".concat(nt,"-img-wrapper")},So?So(gs,(0,ae.Z)({transform:Ci},ai?{current:Zr}:{})):gs)),te.createElement(En,{visible:Bn,transform:Ci,maskTransitionName:mi,closeIcon:or,getContainer:Jr,prefixCls:nt,rootClassName:Jn,icons:jn,countRender:vo,showSwitch:yi,showProgress:aa,current:Zr,count:co,scale:sa,minScale:ii,maxScale:ui,toolbarRender:Xo,onSwitchLeft:ss,onSwitchRight:ds,onZoomIn:Ka,onZoomOut:_s,onRotateRight:as,onRotateLeft:Va,onFlipX:Fa,onFlipY:Ra,onClose:Nn}))},An=Pn,Yn=ee(74902);function yr(Ue){var Fe=te.useState({}),nt=(0,le.Z)(Fe,2),St=nt[0],Mt=nt[1],Ft=te.useCallback(function(gn,Nn){return Mt(function(Bn){return(0,ae.Z)((0,ae.Z)({},Bn),{},(0,he.Z)({},gn,Nn))}),function(){Mt(function(Bn){var Fn=(0,ae.Z)({},Bn);return delete Fn[gn],Fn})}},[]),ln=te.useMemo(function(){return Ue?Ue.map(function(gn){if(typeof gn=="string")return{data:{src:gn}};var Nn={};return Object.keys(gn).forEach(function(Bn){["src"].concat((0,Yn.Z)(De)).includes(Bn)&&(Nn[Bn]=gn[Bn])}),{data:Nn}}):Object.keys(St).reduce(function(gn,Nn){var Bn=St[Nn],Fn=Bn.canPreview,jn=Bn.data;return Fn&&gn.push({data:jn,id:Nn}),gn},[])},[Ue,St]);return[ln,Ft]}var lr=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ci=["src"],Po=function(Fe){var nt,St=Fe.previewPrefixCls,Mt=St===void 0?"rc-image-preview":St,Ft=Fe.children,ln=Fe.icons,gn=ln===void 0?{}:ln,Nn=Fe.items,Bn=Fe.preview,Fn=Fe.fallback,jn=(0,fe.Z)(Bn)==="object"?Bn:{},Jn=jn.visible,or=jn.onVisibleChange,Jr=jn.getContainer,bo=jn.current,Zr=jn.movable,ao=jn.minScale,co=jn.maxScale,vo=jn.countRender,Rr=jn.closeIcon,qr=jn.onChange,Eo=jn.onTransform,ii=jn.toolbarRender,uo=jn.imageRender,ui=(0,se.Z)(jn,lr),zo=yr(Nn),zi=(0,le.Z)(zo,2),Mi=zi[0],mi=zi[1],So=Ae(0,{value:bo}),Co=(0,le.Z)(So,2),Xo=Co[0],vi=Co[1],Ai=(0,te.useState)(!1),Oo=(0,le.Z)(Ai,2),Bi=Oo[0],Ri=Oo[1],Hi=((nt=Mi[Xo])===null||nt===void 0?void 0:nt.data)||{},Wi=Hi.src,Qo=(0,se.Z)(Hi,ci),Si=Ae(!!Jn,{value:Jn,onChange:function(ua,sa){or==null||or(ua,sa,Xo)}}),ai=(0,le.Z)(Si,2),yi=ai[0],aa=ai[1],ca=(0,te.useState)(null),Ci=(0,le.Z)(ca,2),_i=Ci[0],Ki=Ci[1],ka=te.useCallback(function(va,ua,sa){var Oa=Mi.findIndex(function(Ba){return Ba.id===va});aa(!0),Ki({x:ua,y:sa}),vi(Oa<0?0:Oa),Ri(!0)},[Mi]);te.useEffect(function(){yi?Bi||vi(0):Ri(!1)},[yi]);var Ea=function(ua,sa){vi(ua),qr==null||qr(ua,sa)},Ca=function(){aa(!1),Ki(null)},Na=te.useMemo(function(){return{register:mi,onPreview:ka}},[mi,ka]);return te.createElement(Ie.Provider,{value:Na},Ft,te.createElement(An,(0,pe.Z)({"aria-hidden":!yi,movable:Zr,visible:yi,prefixCls:Mt,closeIcon:Rr,onClose:Ca,mousePosition:_i,imgCommonProps:Qo,src:Wi,fallback:Fn,icons:gn,minScale:ao,maxScale:co,getContainer:Jr,current:Xo,count:Mi.length,countRender:vo,onTransform:Eo,toolbarRender:ii,imageRender:uo,onChange:Ea},ui)))},fr=Po,Vr=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Yo=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Io=function(Fe){var nt=Fe.src,St=Fe.alt,Mt=Fe.onPreviewClose,Ft=Fe.prefixCls,ln=Ft===void 0?"rc-image":Ft,gn=Fe.previewPrefixCls,Nn=gn===void 0?"".concat(ln,"-preview"):gn,Bn=Fe.placeholder,Fn=Fe.fallback,jn=Fe.width,Jn=Fe.height,or=Fe.style,Jr=Fe.preview,bo=Jr===void 0?!0:Jr,Zr=Fe.className,ao=Fe.onClick,co=Fe.onError,vo=Fe.wrapperClassName,Rr=Fe.wrapperStyle,qr=Fe.rootClassName,Eo=(0,se.Z)(Fe,Vr),ii=Bn&&Bn!==!0,uo=(0,fe.Z)(bo)==="object"?bo:{},ui=uo.src,zo=uo.visible,zi=zo===void 0?void 0:zo,Mi=uo.onVisibleChange,mi=Mi===void 0?Mt:Mi,So=uo.getContainer,Co=So===void 0?void 0:So,Xo=uo.mask,vi=uo.maskClassName,Ai=uo.movable,Oo=uo.icons,Bi=uo.scaleStep,Ri=uo.minScale,Hi=uo.maxScale,Wi=uo.imageRender,Qo=uo.toolbarRender,Si=(0,se.Z)(uo,Yo),ai=ui!=null?ui:nt,yi=Ae(!!zi,{value:zi,onChange:mi}),aa=(0,le.Z)(yi,2),ca=aa[0],Ci=aa[1],_i=wt({src:nt,isCustomPlaceholder:ii,fallback:Fn}),Ki=(0,le.Z)(_i,3),ka=Ki[0],Ea=Ki[1],Ca=Ki[2],Na=(0,te.useState)(null),va=(0,le.Z)(Na,2),ua=va[0],sa=va[1],Oa=(0,te.useContext)(Ie),Ba=!!bo,is=function(){Ci(!1),sa(null)},ys=de()(ln,vo,qr,(0,he.Z)({},"".concat(ln,"-error"),Ca==="error")),Ka=(0,te.useMemo)(function(){var Fa={};return De.forEach(function(Ra){Fe[Ra]!==void 0&&(Fa[Ra]=Fe[Ra])}),Fa},De.map(function(Fa){return Fe[Fa]})),_s=(0,te.useMemo)(function(){return(0,ae.Z)((0,ae.Z)({},Ka),{},{src:ai})},[ai,Ka]),as=Ze(Ba,_s),Va=function(Ra){var ss=ye(Ra.target),ds=ss.left,Ya=ss.top;Oa?Oa.onPreview(as,ds,Ya):(sa({x:ds,y:Ya}),Ci(!0)),ao==null||ao(Ra)};return te.createElement(te.Fragment,null,te.createElement("div",(0,pe.Z)({},Eo,{className:ys,onClick:Ba?Va:ao,style:(0,ae.Z)({width:jn,height:Jn},Rr)}),te.createElement("img",(0,pe.Z)({},Ka,{className:de()("".concat(ln,"-img"),(0,he.Z)({},"".concat(ln,"-img-placeholder"),Bn===!0),Zr),style:(0,ae.Z)({height:Jn},or),ref:ka},Ea,{width:jn,height:Jn,onError:co})),Ca==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(ln,"-placeholder")},Bn),Xo&&Ba&&te.createElement("div",{className:de()("".concat(ln,"-mask"),vi),style:{display:(or==null?void 0:or.display)==="none"?"none":void 0}},Xo)),!Oa&&Ba&&te.createElement(An,(0,pe.Z)({"aria-hidden":!ca,visible:ca,prefixCls:Nn,onClose:is,mousePosition:ua,src:ai,alt:St,fallback:Fn,getContainer:Co,icons:Oo,movable:Ai,scaleStep:Bi,minScale:Ri,maxScale:Hi,rootClassName:qr,imageRender:Wi,imgCommonProps:Ka,toolbarRender:Qo},Si)))};Io.PreviewGroup=fr,Io.displayName="Image";var ni=Io,gi=ni,Vi=ee(33603),fn=ee(53124),xo=ee(24457),Yi=ee(73475),Cn=ee(22751),nr=ee(91034),wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},rr=wr,ei=ee(74643),po=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:rr}))},ri=te.forwardRef(po),xi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Xi=xi,dt=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Xi}))},ct=te.forwardRef(dt),It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Ut=It,yn=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Ut}))},gr=te.forwardRef(yn),_r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Fr=_r,Qr=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Fr}))},Yr=te.forwardRef(Qr),Bo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},No=Bo,ti=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:No}))},yt=te.forwardRef(ti),_t=ee(84780),jt=ee(71194),ze=ee(14747),zt=ee(50438),tn=ee(16932),dn=ee(67968),Lt=ee(45503);const Rt=Ue=>({position:Ue||"absolute",inset:0}),Nt=Ue=>{const{iconCls:Fe,motionDurationSlow:nt,paddingXXS:St,marginXXS:Mt,prefixCls:Ft,colorTextLightSolid:ln}=Ue;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:ln,background:new _t.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${nt}`,[`.${Ft}-mask-info`]:Object.assign(Object.assign({},ze.vS),{padding:`0 ${St}px`,[Fe]:{marginInlineEnd:Mt,svg:{verticalAlign:"baseline"}}})}},vn=Ue=>{const{previewCls:Fe,modalMaskBg:nt,paddingSM:St,marginXL:Mt,margin:Ft,paddingLG:ln,previewOperationColorDisabled:gn,previewOperationHoverColor:Nn,motionDurationSlow:Bn,iconCls:Fn,colorTextLightSolid:jn}=Ue,Jn=new _t.C(nt).setAlpha(.1),or=Jn.clone().setAlpha(.2);return{[`${Fe}-footer`]:{position:"fixed",bottom:Mt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ue.previewOperationColor},[`${Fe}-progress`]:{marginBottom:Ft},[`${Fe}-close`]:{position:"fixed",top:Mt,right:{_skip_check_:!0,value:Mt},display:"flex",color:jn,backgroundColor:Jn.toRgbString(),borderRadius:"50%",padding:St,outline:0,border:0,cursor:"pointer",transition:`all ${Bn}`,"&:hover":{backgroundColor:or.toRgbString()},[`& > ${Fn}`]:{fontSize:Ue.previewOperationSize}},[`${Fe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ln}px`,backgroundColor:Jn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:St,padding:St,cursor:"pointer",transition:`all ${Bn}`,userSelect:"none",[`&:not(${Fe}-operations-operation-disabled):hover > ${Fn}`]:{color:Nn},"&-disabled":{color:gn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Fn}`]:{fontSize:Ue.previewOperationSize}}}}},In=Ue=>{const{modalMaskBg:Fe,iconCls:nt,previewOperationColorDisabled:St,previewCls:Mt,zIndexPopup:Ft,motionDurationSlow:ln}=Ue,gn=new _t.C(Fe).setAlpha(.1),Nn=gn.clone().setAlpha(.2);return{[`${Mt}-switch-left, ${Mt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ft+1,display:"flex",alignItems:"center",justifyContent:"center",width:Ue.imagePreviewSwitchSize,height:Ue.imagePreviewSwitchSize,marginTop:-Ue.imagePreviewSwitchSize/2,color:Ue.previewOperationColor,background:gn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${ln}`,userSelect:"none","&:hover":{background:Nn.toRgbString()},"&-disabled":{"&, &:hover":{color:St,background:"transparent",cursor:"not-allowed",[`> ${nt}`]:{cursor:"not-allowed"}}},[`> ${nt}`]:{fontSize:Ue.previewOperationSize}},[`${Mt}-switch-left`]:{insetInlineStart:Ue.marginSM},[`${Mt}-switch-right`]:{insetInlineEnd:Ue.marginSM}}},Xn=Ue=>{const{motionEaseOut:Fe,previewCls:nt,motionDurationSlow:St,componentCls:Mt}=Ue;return[{[`${Mt}-preview-root`]:{[nt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${nt}-body`]:Object.assign(Object.assign({},Rt()),{overflow:"hidden"}),[`${nt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${St} ${Fe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Rt()),{transition:`transform ${St} ${Fe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${nt}-moving`]:{[`${nt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Mt}-preview-root`]:{[`${nt}-wrap`]:{zIndex:Ue.zIndexPopup}}},{[`${Mt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ue.zIndexPopup+1},"&":[vn(Ue),In(Ue)]}]},Un=Ue=>{const{componentCls:Fe}=Ue;return{[Fe]:{position:"relative",display:"inline-block",[`${Fe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Fe}-img-placeholder`]:{backgroundColor:Ue.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Fe}-mask`]:Object.assign({},Nt(Ue)),[`${Fe}-mask:hover`]:{opacity:1},[`${Fe}-placeholder`]:Object.assign({},Rt())}}},tr=Ue=>{const{previewCls:Fe}=Ue;return{[`${Fe}-root`]:(0,zt._y)(Ue,"zoom"),"&":(0,tn.J$)(Ue,!0)}};var cr=(0,dn.Z)("Image",Ue=>{const Fe=`${Ue.componentCls}-preview`,nt=(0,Lt.TS)(Ue,{previewCls:Fe,modalMaskBg:new _t.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ue.controlHeightLG});return[Un(nt),Xn(nt),(0,jt.QA)((0,Lt.TS)(nt,{componentCls:Fe})),tr(nt)]},Ue=>({zIndexPopup:Ue.zIndexPopupBase+80,previewOperationColor:new _t.C(Ue.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new _t.C(Ue.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new _t.C(Ue.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ue.fontSizeIcon*1.5})),Ar=function(Ue,Fe){var nt={};for(var St in Ue)Object.prototype.hasOwnProperty.call(Ue,St)&&Fe.indexOf(St)<0&&(nt[St]=Ue[St]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,St=Object.getOwnPropertySymbols(Ue);Mt<St.length;Mt++)Fe.indexOf(St[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,St[Mt])&&(nt[St[Mt]]=Ue[St[Mt]]);return nt};const Ln={rotateLeft:te.createElement(ri,null),rotateRight:te.createElement(ct,null),zoomIn:te.createElement(Yr,null),zoomOut:te.createElement(yt,null),close:te.createElement(Yi.Z,null),left:te.createElement(Cn.Z,null),right:te.createElement(nr.Z,null),flipX:te.createElement(gr,null),flipY:te.createElement(gr,{rotate:90})};var Wt=Ue=>{var{previewPrefixCls:Fe,preview:nt}=Ue,St=Ar(Ue,["previewPrefixCls","preview"]);const{getPrefixCls:Mt}=te.useContext(fn.E_),Ft=Mt("image",Fe),ln=`${Ft}-preview`,gn=Mt(),[Nn,Bn]=cr(Ft),Fn=te.useMemo(()=>{var jn;if(nt===!1)return nt;const Jn=typeof nt=="object"?nt:{},or=de()(Bn,(jn=Jn.rootClassName)!==null&&jn!==void 0?jn:"");return Object.assign(Object.assign({},Jn),{transitionName:(0,Vi.m)(gn,"zoom",Jn.transitionName),maskTransitionName:(0,Vi.m)(gn,"fade",Jn.maskTransitionName),rootClassName:or})},[nt]);return Nn(te.createElement(gi.PreviewGroup,Object.assign({preview:Fn,previewPrefixCls:ln,icons:Ln},St)))},qt=function(Ue,Fe){var nt={};for(var St in Ue)Object.prototype.hasOwnProperty.call(Ue,St)&&Fe.indexOf(St)<0&&(nt[St]=Ue[St]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,St=Object.getOwnPropertySymbols(Ue);Mt<St.length;Mt++)Fe.indexOf(St[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,St[Mt])&&(nt[St[Mt]]=Ue[St[Mt]]);return nt};const hn=Ue=>{const{prefixCls:Fe,preview:nt,className:St,rootClassName:Mt,style:Ft}=Ue,ln=qt(Ue,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:gn,locale:Nn=xo.Z,getPopupContainer:Bn,image:Fn}=te.useContext(fn.E_),jn=gn("image",Fe),Jn=gn(),or=Nn.Image||xo.Z.Image,[Jr,bo]=cr(jn),Zr=de()(Mt,bo),ao=de()(St,bo,Fn==null?void 0:Fn.className),co=te.useMemo(()=>{if(nt===!1)return nt;const Rr=typeof nt=="object"?nt:{},{getContainer:qr}=Rr,Eo=qt(Rr,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${jn}-mask-info`},te.createElement(be.Z,null),or==null?void 0:or.preview),icons:Ln},Eo),{getContainer:qr||Bn,transitionName:(0,Vi.m)(Jn,"zoom",Rr.transitionName),maskTransitionName:(0,Vi.m)(Jn,"fade",Rr.maskTransitionName)})},[nt,or]),vo=Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Ft);return Jr(te.createElement(gi,Object.assign({prefixCls:jn,preview:co,rootClassName:Zr,className:ao,style:vo},ln)))};hn.PreviewGroup=Wt;var Qn=hn},71322:function(ot,Ge,ee){"use strict";ee.d(Ge,{D:function(){return x},Z:function(){return ie}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ve=be,de=ee(74643),pe=function(ye,_e){return ue.createElement(de.Z,(0,te.Z)({},ye,{ref:_e,icon:ve}))},ae=ue.forwardRef(pe),he=ee(22751),le=ee(91034),fe=ee(94184),se=ee.n(fe),me=ee(10366),ne=ce=>!isNaN(parseFloat(ce))&&isFinite(ce),a=ee(53124),y=ee(84321),E=function(ce,ye){var _e={};for(var xe in ce)Object.prototype.hasOwnProperty.call(ce,xe)&&ye.indexOf(xe)<0&&(_e[xe]=ce[xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,xe=Object.getOwnPropertySymbols(ce);Ce<xe.length;Ce++)ye.indexOf(xe[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ce,xe[Ce])&&(_e[xe[Ce]]=ce[xe[Ce]]);return _e};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ue.createContext({}),z=(()=>{let ce=0;return function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ce+=1,`${ye}${ce}`}})();var ie=ue.forwardRef((ce,ye)=>{const{prefixCls:_e,className:xe,trigger:Ce,children:Te,defaultCollapsed:Me=!1,theme:pt="dark",style:Ve={},collapsible:gt=!1,reverseArrow:Ae=!1,width:De=200,collapsedWidth:Ie=80,zeroWidthTriggerStyle:tt,breakpoint:Ze,onCollapse:bt,onBreakpoint:wt}=ce,Kt=E(ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qt}=(0,ue.useContext)(y.Gs),[rt,st]=(0,ue.useState)("collapsed"in ce?ce.collapsed:Me),[Ct,Gt]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in ce&&st(ce.collapsed)},[ce.collapsed]);const Ht=(pn,kt)=>{"collapsed"in ce||st(pn),bt==null||bt(pn,kt)},Bt=(0,ue.useRef)();Bt.current=pn=>{Gt(pn.matches),wt==null||wt(pn.matches),rt!==pn.matches&&Ht(pn.matches,"responsive")},(0,ue.useEffect)(()=>{function pn(Qe){return Bt.current(Qe)}let kt;if(typeof window!="undefined"){const{matchMedia:Qe}=window;if(Qe&&Ze&&Ze in b){kt=Qe(`(max-width: ${b[Ze]})`);try{kt.addEventListener("change",pn)}catch(Ye){kt.addListener(pn)}pn(kt)}}return()=>{try{kt==null||kt.removeEventListener("change",pn)}catch(Qe){kt==null||kt.removeListener(pn)}}},[Ze]),(0,ue.useEffect)(()=>{const pn=z("ant-sider-");return Qt.addSider(pn),()=>Qt.removeSider(pn)},[]);const Ke=()=>{Ht(!rt,"clickTrigger")},{getPrefixCls:Jt}=(0,ue.useContext)(a.E_),Mn=()=>{const pn=Jt("layout-sider",_e),kt=(0,me.Z)(Kt,["collapsed"]),Qe=rt?Ie:De,Ye=ne(Qe)?`${Qe}px`:String(Qe),Je=parseFloat(String(Ie||0))===0?ue.createElement("span",{onClick:Ke,className:se()(`${pn}-zero-width-trigger`,`${pn}-zero-width-trigger-${Ae?"right":"left"}`),style:tt},Ce||ue.createElement(ae,null)):null,et={expanded:Ae?ue.createElement(le.Z,null):ue.createElement(he.Z,null),collapsed:Ae?ue.createElement(he.Z,null):ue.createElement(le.Z,null)}[rt?"collapsed":"expanded"],vt=Ce!==null?Je||ue.createElement("div",{className:`${pn}-trigger`,onClick:Ke,style:{width:Ye}},Ce||et):null,Pt=Object.assign(Object.assign({},Ve),{flex:`0 0 ${Ye}`,maxWidth:Ye,minWidth:Ye,width:Ye}),Xe=se()(pn,`${pn}-${pt}`,{[`${pn}-collapsed`]:!!rt,[`${pn}-has-trigger`]:gt&&Ce!==null&&!Je,[`${pn}-below`]:!!Ct,[`${pn}-zero-width`]:parseFloat(Ye)===0},xe);return ue.createElement("aside",Object.assign({className:Xe},kt,{style:Pt,ref:ye}),ue.createElement("div",{className:`${pn}-children`},Te),gt||Ct&&Je?vt:null)},Hn=ue.useMemo(()=>({siderCollapsed:rt}),[rt]);return ue.createElement(x.Provider,{value:Hn},Mn())})},84321:function(ot,Ge,ee){"use strict";ee.d(Ge,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return re},ZP:function(){return oe}});var te=ee(74902),ue=ee(94184),be=ee.n(ue),ve=ee(10366),de=ee(67294),pe=ee(53124),ae=ee(67968),le=ie=>{const{componentCls:ce,bodyBg:ye,lightSiderBg:_e,lightTriggerBg:xe,lightTriggerColor:Ce}=ie;return{[`${ce}-sider-light`]:{background:_e,[`${ce}-sider-trigger`]:{color:Ce,background:xe},[`${ce}-sider-zero-width-trigger`]:{color:Ce,background:xe,border:`1px solid ${ye}`,borderInlineStart:0}}}};const fe=ie=>{const{antCls:ce,componentCls:ye,colorText:_e,triggerColor:xe,footerBg:Ce,triggerBg:Te,headerHeight:Me,headerPadding:pt,headerColor:Ve,footerPadding:gt,triggerHeight:Ae,zeroTriggerHeight:De,zeroTriggerWidth:Ie,motionDurationMid:tt,motionDurationSlow:Ze,fontSize:bt,borderRadius:wt,bodyBg:Kt,headerBg:Qt,siderBg:rt}=ie;return{[ye]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Kt,"&, *":{boxSizing:"border-box"},[`&${ye}-has-sider`]:{flexDirection:"row",[`> ${ye}, > ${ye}-content`]:{width:0}},[`${ye}-header, &${ye}-footer`]:{flex:"0 0 auto"},[`${ye}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ae},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ae,color:xe,lineHeight:`${Ae}px`,textAlign:"center",background:Te,cursor:"pointer",transition:`all ${tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Ie,zIndex:1,width:Ie,height:De,color:xe,fontSize:ie.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:wt,borderEndEndRadius:wt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ze} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ze}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ie,borderStartStartRadius:wt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:wt}}}}},le(ie)),{"&-rtl":{direction:"rtl"}}),[`${ye}-header`]:{height:Me,padding:pt,color:Ve,lineHeight:`${Me}px`,background:Qt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${ye}-footer`]:{padding:gt,color:_e,fontSize:bt,background:Ce},[`${ye}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ae.Z)("Layout",ie=>[fe(ie)],ie=>{const{colorBgLayout:ce,controlHeight:ye,controlHeightLG:_e,colorText:xe,controlHeightSM:Ce,marginXXS:Te,colorTextLightSolid:Me,colorBgContainer:pt}=ie,Ve=_e*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:ye*2,headerPadding:`0 ${Ve}px`,headerColor:xe,footerPadding:`${Ce}px ${Ve}px`,footerBg:ce,siderBg:"#001529",triggerHeight:_e+Te*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:_e,zeroTriggerHeight:_e,lightSiderBg:pt,lightTriggerBg:pt,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(ie,ce){var ye={};for(var _e in ie)Object.prototype.hasOwnProperty.call(ie,_e)&&ce.indexOf(_e)<0&&(ye[_e]=ie[_e]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(ie);xe<_e.length;xe++)ce.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(ie,_e[xe])&&(ye[_e[xe]]=ie[_e[xe]]);return ye};const re=de.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(ie){let{suffixCls:ce,tagName:ye,displayName:_e}=ie;return xe=>de.forwardRef((Te,Me)=>de.createElement(xe,Object.assign({ref:Me,suffixCls:ce,tagName:ye},Te)))}const a=de.forwardRef((ie,ce)=>{const{prefixCls:ye,suffixCls:_e,className:xe,tagName:Ce}=ie,Te=me(ie,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=de.useContext(pe.E_),pt=Me("layout",ye),[Ve,gt]=se(pt),Ae=_e?`${pt}-${_e}`:pt;return Ve(de.createElement(Ce,Object.assign({className:be()(ye||Ae,xe,gt),ref:ce},Te)))}),y=de.forwardRef((ie,ce)=>{const{direction:ye}=de.useContext(pe.E_),[_e,xe]=de.useState([]),{prefixCls:Ce,className:Te,rootClassName:Me,children:pt,hasSider:Ve,tagName:gt,style:Ae}=ie,De=me(ie,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ie=(0,ve.Z)(De,["suffixCls"]),{getPrefixCls:tt,layout:Ze}=de.useContext(pe.E_),bt=tt("layout",Ce),[wt,Kt]=se(bt),Qt=be()(bt,{[`${bt}-has-sider`]:typeof Ve=="boolean"?Ve:_e.length>0,[`${bt}-rtl`]:ye==="rtl"},Ze==null?void 0:Ze.className,Te,Me,Kt),rt=de.useMemo(()=>({siderHook:{addSider:st=>{xe(Ct=>[].concat((0,te.Z)(Ct),[st]))},removeSider:st=>{xe(Ct=>Ct.filter(Gt=>Gt!==st))}}}),[]);return wt(de.createElement(re.Provider,{value:rt},de.createElement(gt,Object.assign({ref:ce,className:Qt,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Ae)},Ie),pt)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var oe=E},76529:function(ot,Ge,ee){"use strict";ee.d(Ge,{J:function(){return pe}});var te=ee(67294),ue=ee(4173),be=ee(60276),ve=function(ae,he){var le={};for(var fe in ae)Object.prototype.hasOwnProperty.call(ae,fe)&&he.indexOf(fe)<0&&(le[fe]=ae[fe]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,fe=Object.getOwnPropertySymbols(ae);se<fe.length;se++)he.indexOf(fe[se])<0&&Object.prototype.propertyIsEnumerable.call(ae,fe[se])&&(le[fe[se]]=ae[fe[se]]);return le};const de=te.createContext(null),pe=te.forwardRef((ae,he)=>{const{children:le}=ae,fe=ve(ae,["children"]),se=te.useContext(de),me=te.useMemo(()=>Object.assign(Object.assign({},se),fe),[se,fe.prefixCls,fe.mode,fe.selectable]);return te.createElement(de.Provider,{value:me},te.createElement(ue.BR,null,(0,be.supportNodeRef)(le)?te.cloneElement(le,{ref:he}):le))});Ge.Z=de},68508:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return pn}});var te=ee(78595),ue=ee(67294),be=ee(71322),ve=ee(94184),de=ee.n(ve),pe=ee(53124),ae=function(kt,Qe){var Ye={};for(var Je in kt)Object.prototype.hasOwnProperty.call(kt,Je)&&Qe.indexOf(Je)<0&&(Ye[Je]=kt[Je]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Je=Object.getOwnPropertySymbols(kt);ft<Je.length;ft++)Qe.indexOf(Je[ft])<0&&Object.prototype.propertyIsEnumerable.call(kt,Je[ft])&&(Ye[Je[ft]]=kt[Je[ft]]);return Ye},le=kt=>{const{prefixCls:Qe,className:Ye,dashed:Je}=kt,ft=ae(kt,["prefixCls","className","dashed"]),{getPrefixCls:At}=ue.useContext(pe.E_),et=At("menu",Qe),vt=de()({[`${et}-item-divider-dashed`]:!!Je},Ye);return ue.createElement(te.iz,Object.assign({className:vt},ft))},fe=ee(37419),se=ee(10366),me=ee(83062),re=ee(96159),a=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=kt=>{var Qe;const{className:Ye,children:Je,icon:ft,title:At,danger:et}=kt,{prefixCls:vt,firstLevel:Pt,direction:Xe,disableMenuItemTitleTooltip:Zt,inlineCollapsed:He}=ue.useContext(a),ut=bn=>{const Kn=ue.createElement("span",{className:`${vt}-title-content`},Je);return(!ft||(0,re.l$)(Je)&&Je.type==="span")&&Je&&bn&&Pt&&typeof Je=="string"?ue.createElement("div",{className:`${vt}-inline-collapsed-noicon`},Je.charAt(0)):Kn},{siderCollapsed:wn}=ue.useContext(be.D);let sn=At;typeof At=="undefined"?sn=Pt?Je:"":At===!1&&(sn="");const ht={title:sn};!wn&&!He&&(ht.title=null,ht.open=!1);const $t=(0,fe.Z)(Je).length;let on=ue.createElement(te.ck,Object.assign({},(0,se.Z)(kt,["title","icon","danger"]),{className:de()({[`${vt}-item-danger`]:et,[`${vt}-item-only-child`]:(ft?$t+1:$t)===1},Ye),title:typeof At=="string"?At:void 0}),(0,re.Tm)(ft,{className:de()((0,re.l$)(ft)?(Qe=ft.props)===null||Qe===void 0?void 0:Qe.className:"",`${vt}-item-icon`)}),ut(He));return Zt||(on=ue.createElement(me.Z,Object.assign({},ht,{placement:Xe==="rtl"?"left":"right",overlayClassName:`${vt}-inline-collapsed-tooltip`}),on)),on},x=kt=>{var Qe;const{popupClassName:Ye,icon:Je,title:ft,theme:At}=kt,et=ue.useContext(a),{prefixCls:vt,inlineCollapsed:Pt,theme:Xe}=et,Zt=(0,te.Xl)();let He;if(!Je)He=Pt&&!Zt.length&&ft&&typeof ft=="string"?ue.createElement("div",{className:`${vt}-inline-collapsed-noicon`},ft.charAt(0)):ue.createElement("span",{className:`${vt}-title-content`},ft);else{const wn=(0,re.l$)(ft)&&ft.type==="span";He=ue.createElement(ue.Fragment,null,(0,re.Tm)(Je,{className:de()((0,re.l$)(Je)?(Qe=Je.props)===null||Qe===void 0?void 0:Qe.className:"",`${vt}-item-icon`)}),wn?ft:ue.createElement("span",{className:`${vt}-title-content`},ft))}const ut=ue.useMemo(()=>Object.assign(Object.assign({},et),{firstLevel:!1}),[et]);return ue.createElement(a.Provider,{value:ut},ue.createElement(te.Wd,Object.assign({},(0,se.Z)(kt,["icon"]),{title:He,popupClassName:de()(vt,Ye,`${vt}-${At||Xe}`)})))},z=ee(25877),oe=ee(60276),ie=ee(33603),ce=ee(76529),ye=function(kt,Qe){var Ye={};for(var Je in kt)Object.prototype.hasOwnProperty.call(kt,Je)&&Qe.indexOf(Je)<0&&(Ye[Je]=kt[Je]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Je=Object.getOwnPropertySymbols(kt);ft<Je.length;ft++)Qe.indexOf(Je[ft])<0&&Object.prototype.propertyIsEnumerable.call(kt,Je[ft])&&(Ye[Je[ft]]=kt[Je[ft]]);return Ye};function _e(kt){return(kt||[]).map((Qe,Ye)=>{if(Qe&&typeof Qe=="object"){const Je=Qe,{label:ft,children:At,key:et,type:vt}=Je,Pt=ye(Je,["label","children","key","type"]),Xe=et!=null?et:`tmp-${Ye}`;return At||vt==="group"?vt==="group"?ue.createElement(te.BW,Object.assign({key:Xe},Pt,{title:ft}),_e(At)):ue.createElement(x,Object.assign({key:Xe},Pt,{title:ft}),_e(At)):vt==="divider"?ue.createElement(le,Object.assign({key:Xe},Pt)):ue.createElement(E,Object.assign({key:Xe},Pt),ft)}return null}).filter(Qe=>Qe)}function xe(kt){return ue.useMemo(()=>kt&&_e(kt),[kt])}var Ce=ee(84780),Te=ee(14747),Me=ee(33507),pt=ee(67771),Ve=ee(50438),gt=ee(67968),Ae=ee(45503),Ie=kt=>{const{componentCls:Qe,motionDurationSlow:Ye,horizontalLineHeight:Je,colorSplit:ft,lineWidth:At,lineType:et,itemPaddingInline:vt}=kt;return{[`${Qe}-horizontal`]:{lineHeight:Je,border:0,borderBottom:`${At}px ${et} ${ft}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Qe}-item, ${Qe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:vt},[`> ${Qe}-item:hover,
> ${Qe}-item-active,
> ${Qe}-submenu ${Qe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Qe}-item, ${Qe}-submenu-title`]:{transition:[`border-color ${Ye}`,`background ${Ye}`].join(",")},[`${Qe}-submenu-arrow`]:{display:"none"}}}},Ze=kt=>{let{componentCls:Qe,menuArrowOffset:Ye}=kt;return{[`${Qe}-rtl`]:{direction:"rtl"},[`${Qe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Qe}-rtl${Qe}-vertical,
${Qe}-submenu-rtl ${Qe}-vertical`]:{[`${Qe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ye})`},"&::after":{transform:`rotate(45deg) translateY(${Ye})`}}}}};const bt=kt=>Object.assign({},(0,Te.oN)(kt));var Kt=(kt,Qe)=>{const{componentCls:Ye,itemColor:Je,itemSelectedColor:ft,groupTitleColor:At,itemBg:et,subMenuItemBg:vt,itemSelectedBg:Pt,activeBarHeight:Xe,activeBarWidth:Zt,activeBarBorderWidth:He,motionDurationSlow:ut,motionEaseInOut:wn,motionEaseOut:sn,itemPaddingInline:ht,motionDurationMid:$t,itemHoverColor:on,lineType:bn,colorSplit:Kn,itemDisabledColor:Dt,dangerItemColor:Rn,dangerItemHoverColor:Gn,dangerItemSelectedColor:jr,dangerItemActiveBg:mr,dangerItemSelectedBg:ur,itemHoverBg:Tn,itemActiveBg:Or,menuSubMenuBg:zr,horizontalItemSelectedColor:lo,horizontalItemSelectedBg:di,horizontalItemBorderRadius:Ko,horizontalItemHoverBg:pr,popupBg:Xr}=kt;return{[`${Ye}-${Qe}, ${Ye}-${Qe} > ${Ye}`]:{color:Je,background:et,[`&${Ye}-root:focus-visible`]:Object.assign({},bt(kt)),[`${Ye}-item-group-title`]:{color:At},[`${Ye}-submenu-selected`]:{[`> ${Ye}-submenu-title`]:{color:ft}},[`${Ye}-item-disabled, ${Ye}-submenu-disabled`]:{color:`${Dt} !important`},[`${Ye}-item:not(${Ye}-item-selected):not(${Ye}-submenu-selected)`]:{[`&:hover, > ${Ye}-submenu-title:hover`]:{color:on}},[`&:not(${Ye}-horizontal)`]:{[`${Ye}-item:not(${Ye}-item-selected)`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:Or}},[`${Ye}-submenu-title`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:Or}}},[`${Ye}-item-danger`]:{color:Rn,[`&${Ye}-item:hover`]:{[`&:not(${Ye}-item-selected):not(${Ye}-submenu-selected)`]:{color:Gn}},[`&${Ye}-item:active`]:{background:mr}},[`${Ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ye}-item-selected`]:{color:ft,[`&${Ye}-item-danger`]:{color:jr},"a, a:hover":{color:"inherit"}},[`& ${Ye}-item-selected`]:{backgroundColor:Pt,[`&${Ye}-item-danger`]:{backgroundColor:ur}},[`${Ye}-item, ${Ye}-submenu-title`]:{[`&:not(${Ye}-item-disabled):focus-visible`]:Object.assign({},bt(kt))},[`&${Ye}-submenu > ${Ye}`]:{backgroundColor:zr},[`&${Ye}-popup > ${Ye}`]:{backgroundColor:Xr},[`&${Ye}-horizontal`]:Object.assign(Object.assign({},Qe==="dark"?{borderBottom:0}:{}),{[`> ${Ye}-item, > ${Ye}-submenu`]:{top:He,marginTop:-He,marginBottom:0,borderRadius:Ko,"&::after":{position:"absolute",insetInline:ht,bottom:0,borderBottom:`${Xe}px solid transparent`,transition:`border-color ${ut} ${wn}`,content:'""'},"&:hover, &-active, &-open":{background:pr,"&::after":{borderBottomWidth:Xe,borderBottomColor:lo}},"&-selected":{color:lo,backgroundColor:di,"&:hover":{backgroundColor:di},"&::after":{borderBottomWidth:Xe,borderBottomColor:lo}}}}),[`&${Ye}-root`]:{[`&${Ye}-inline, &${Ye}-vertical`]:{borderInlineEnd:`${He}px ${bn} ${Kn}`}},[`&${Ye}-inline`]:{[`${Ye}-sub${Ye}-inline`]:{background:vt},[`${Ye}-item, ${Ye}-submenu-title`]:He&&Zt?{width:`calc(100% + ${He}px)`}:{},[`${Ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Zt}px solid ${ft}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$t} ${sn}`,`opacity ${$t} ${sn}`].join(","),content:'""'},[`&${Ye}-item-danger`]:{"&::after":{borderInlineEndColor:jr}}},[`${Ye}-selected, ${Ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$t} ${wn}`,`opacity ${$t} ${wn}`].join(",")}}}}}};const Qt=kt=>{const{componentCls:Qe,itemHeight:Ye,itemMarginInline:Je,padding:ft,menuArrowSize:At,marginXS:et,itemMarginBlock:vt}=kt,Pt=ft+At+et;return{[`${Qe}-item`]:{position:"relative",overflow:"hidden"},[`${Qe}-item, ${Qe}-submenu-title`]:{height:Ye,lineHeight:`${Ye}px`,paddingInline:ft,overflow:"hidden",textOverflow:"ellipsis",marginInline:Je,marginBlock:vt,width:`calc(100% - ${Je*2}px)`},[`> ${Qe}-item,
> ${Qe}-submenu > ${Qe}-submenu-title`]:{height:Ye,lineHeight:`${Ye}px`},[`${Qe}-item-group-list ${Qe}-submenu-title,
${Qe}-submenu-title`]:{paddingInlineEnd:Pt}}};var st=kt=>{const{componentCls:Qe,iconCls:Ye,itemHeight:Je,colorTextLightSolid:ft,dropdownWidth:At,controlHeightLG:et,motionDurationMid:vt,motionEaseOut:Pt,paddingXL:Xe,itemMarginInline:Zt,fontSizeLG:He,motionDurationSlow:ut,paddingXS:wn,boxShadowSecondary:sn,collapsedWidth:ht,collapsedIconSize:$t}=kt,on={height:Je,lineHeight:`${Je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Qe]:{"&-inline, &-vertical":Object.assign({[`&${Qe}-root`]:{boxShadow:"none"}},Qt(kt))},[`${Qe}-submenu-popup`]:{[`${Qe}-vertical`]:Object.assign(Object.assign({},Qt(kt)),{boxShadow:sn})}},{[`${Qe}-submenu-popup ${Qe}-vertical${Qe}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Qe}-inline`]:{width:"100%",[`&${Qe}-root`]:{[`${Qe}-item, ${Qe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ut}`,`background ${ut}`,`padding ${vt} ${Pt}`].join(","),[`> ${Qe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Qe}-sub${Qe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Qe}-submenu > ${Qe}-submenu-title`]:on,[`& ${Qe}-item-group-title`]:{paddingInlineStart:Xe}},[`${Qe}-item`]:on}},{[`${Qe}-inline-collapsed`]:{width:ht,[`&${Qe}-root`]:{[`${Qe}-item, ${Qe}-submenu ${Qe}-submenu-title`]:{[`> ${Qe}-inline-collapsed-noicon`]:{fontSize:He,textAlign:"center"}}},[`> ${Qe}-item,
> ${Qe}-item-group > ${Qe}-item-group-list > ${Qe}-item,
> ${Qe}-item-group > ${Qe}-item-group-list > ${Qe}-submenu > ${Qe}-submenu-title,
> ${Qe}-submenu > ${Qe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${He/2}px - ${Zt}px)`,textOverflow:"clip",[`
${Qe}-submenu-arrow,
${Qe}-submenu-expand-icon
`]:{opacity:0},[`${Qe}-item-icon, ${Ye}`]:{margin:0,fontSize:$t,lineHeight:`${Je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Qe}-item-icon, ${Ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Qe}-item-icon, ${Ye}`]:{display:"none"},"a, a:hover":{color:ft}},[`${Qe}-item-group-title`]:Object.assign(Object.assign({},Te.vS),{paddingInline:wn})}}]};const Ct=kt=>{const{componentCls:Qe,motionDurationSlow:Ye,motionDurationMid:Je,motionEaseInOut:ft,motionEaseOut:At,iconCls:et,iconSize:vt,iconMarginInlineEnd:Pt}=kt;return{[`${Qe}-item, ${Qe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ye}`,`background ${Ye}`,`padding ${Ye} ${ft}`].join(","),[`${Qe}-item-icon, ${et}`]:{minWidth:vt,fontSize:vt,transition:[`font-size ${Je} ${At}`,`margin ${Ye} ${ft}`,`color ${Ye}`].join(","),"+ span":{marginInlineStart:Pt,opacity:1,transition:[`opacity ${Ye} ${ft}`,`margin ${Ye}`,`color ${Ye}`].join(",")}},[`${Qe}-item-icon`]:Object.assign({},(0,Te.Ro)()),[`&${Qe}-item-only-child`]:{[`> ${et}, > ${Qe}-item-icon`]:{marginInlineEnd:0}}},[`${Qe}-item-disabled, ${Qe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Qe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gt=kt=>{const{componentCls:Qe,motionDurationSlow:Ye,motionEaseInOut:Je,borderRadius:ft,menuArrowSize:At,menuArrowOffset:et}=kt;return{[`${Qe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:kt.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ye} ${Je}, opacity ${Ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:At*.6,height:At*.15,backgroundColor:"currentcolor",borderRadius:ft,transition:[`background ${Ye} ${Je}`,`transform ${Ye} ${Je}`,`top ${Ye} ${Je}`,`color ${Ye} ${Je}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${et})`},"&::after":{transform:`rotate(-45deg) translateY(${et})`}}}}},Ht=kt=>{const{antCls:Qe,componentCls:Ye,fontSize:Je,motionDurationSlow:ft,motionDurationMid:At,motionEaseInOut:et,paddingXS:vt,padding:Pt,colorSplit:Xe,lineWidth:Zt,zIndexPopup:He,borderRadiusLG:ut,subMenuItemBorderRadius:wn,menuArrowSize:sn,menuArrowOffset:ht,lineType:$t,menuPanelMaskInset:on,groupTitleLineHeight:bn,groupTitleFontSize:Kn}=kt;return[{"":{[`${Ye}`]:Object.assign(Object.assign({},(0,Te.dF)()),{"&-hidden":{display:"none"}})},[`${Ye}-submenu-hidden`]:{display:"none"}},{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Te.Wf)(kt)),(0,Te.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Je,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ft} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ye}-item`]:{flex:"none"}},[`${Ye}-item, ${Ye}-submenu, ${Ye}-submenu-title`]:{borderRadius:kt.itemBorderRadius},[`${Ye}-item-group-title`]:{padding:`${vt}px ${Pt}px`,fontSize:Kn,lineHeight:bn,transition:`all ${ft}`},[`&-horizontal ${Ye}-submenu`]:{transition:[`border-color ${ft} ${et}`,`background ${ft} ${et}`].join(",")},[`${Ye}-submenu, ${Ye}-submenu-inline`]:{transition:[`border-color ${ft} ${et}`,`background ${ft} ${et}`,`padding ${At} ${et}`].join(",")},[`${Ye}-submenu ${Ye}-sub`]:{cursor:"initial",transition:[`background ${ft} ${et}`,`padding ${ft} ${et}`].join(",")},[`${Ye}-title-content`]:{transition:`color ${ft}`},[`${Ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Xe,borderStyle:$t,borderWidth:0,borderTopWidth:Zt,marginBlock:Zt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(kt)),{[`${Ye}-item-group`]:{[`${Ye}-item-group-list`]:{margin:0,padding:0,[`${Ye}-item, ${Ye}-submenu-title`]:{paddingInline:`${Je*2}px ${Pt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:He,borderRadius:ut,boxShadow:"none",transformOrigin:"0 0",[`&${Ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${on}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:on},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:kt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:kt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:kt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:kt.paddingXS},[`> ${Ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:ut},Ct(kt)),Gt(kt)),{[`${Ye}-item, ${Ye}-submenu > ${Ye}-submenu-title`]:{borderRadius:wn},[`${Ye}-submenu-title::after`]:{transition:`transform ${ft} ${et}`}})}}),Gt(kt)),{[`&-inline-collapsed ${Ye}-submenu-arrow,
&-inline ${Ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ht})`},"&::after":{transform:`rotate(45deg) translateX(-${ht})`}},[`${Ye}-submenu-open${Ye}-submenu-inline > ${Ye}-submenu-title > ${Ye}-submenu-arrow`]:{transform:`translateY(-${sn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ht})`},"&::before":{transform:`rotate(45deg) translateX(${ht})`}}})},{[`${Qe}-layout-header`]:{[Ye]:{lineHeight:"inherit"}}}]};var Bt=(kt,Qe)=>(0,gt.Z)("Menu",Je=>{if(Qe===!1)return[];const{colorBgElevated:ft,colorPrimary:At,colorTextLightSolid:et,controlHeightLG:vt,fontSize:Pt,darkItemColor:Xe,darkDangerItemColor:Zt,darkItemBg:He,darkSubMenuItemBg:ut,darkItemSelectedColor:wn,darkItemSelectedBg:sn,darkDangerItemSelectedBg:ht,darkItemHoverBg:$t,darkGroupTitleColor:on,darkItemHoverColor:bn,darkItemDisabledColor:Kn,darkDangerItemHoverColor:Dt,darkDangerItemSelectedColor:Rn,darkDangerItemActiveBg:Gn}=Je,jr=Pt/7*5,mr=(0,Ae.TS)(Je,{menuArrowSize:jr,menuHorizontalHeight:vt*1.15,menuArrowOffset:`${jr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ft}),ur=(0,Ae.TS)(mr,{itemColor:Xe,itemHoverColor:bn,groupTitleColor:on,itemSelectedColor:wn,itemBg:He,popupBg:He,subMenuItemBg:ut,itemActiveBg:"transparent",itemSelectedBg:sn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:$t,itemDisabledColor:Kn,dangerItemColor:Zt,dangerItemHoverColor:Dt,dangerItemSelectedColor:Rn,dangerItemActiveBg:Gn,dangerItemSelectedBg:ht,menuSubMenuBg:ut,horizontalItemSelectedColor:et,horizontalItemSelectedBg:At});return[Ht(mr),Ie(mr),st(mr),Kt(mr,"light"),Kt(ur,"dark"),Ze(mr),(0,Me.Z)(mr),(0,pt.oN)(mr,"slide-up"),(0,pt.oN)(mr,"slide-down"),(0,Ve._y)(mr,"zoom-big")]},Je=>{const{colorPrimary:ft,colorError:At,colorTextDisabled:et,colorErrorBg:vt,colorText:Pt,colorTextDescription:Xe,colorBgContainer:Zt,colorFillAlter:He,colorFillContent:ut,lineWidth:wn,lineWidthBold:sn,controlItemBgActive:ht,colorBgTextHover:$t,controlHeightLG:on,lineHeight:bn,colorBgElevated:Kn,marginXXS:Dt,padding:Rn,fontSize:Gn,controlHeightSM:jr,fontSizeLG:mr,colorTextLightSolid:ur,colorErrorHover:Tn}=Je,Or=new Ce.C(ur).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Je.zIndexPopupBase+50,radiusItem:Je.borderRadiusLG,itemBorderRadius:Je.borderRadiusLG,radiusSubMenuItem:Je.borderRadiusSM,subMenuItemBorderRadius:Je.borderRadiusSM,colorItemText:Pt,itemColor:Pt,colorItemTextHover:Pt,itemHoverColor:Pt,colorItemTextHoverHorizontal:ft,horizontalItemHoverColor:ft,colorGroupTitle:Xe,groupTitleColor:Xe,colorItemTextSelected:ft,itemSelectedColor:ft,colorItemTextSelectedHorizontal:ft,horizontalItemSelectedColor:ft,colorItemBg:Zt,itemBg:Zt,colorItemBgHover:$t,itemHoverBg:$t,colorItemBgActive:ut,itemActiveBg:ht,colorSubItemBg:He,subMenuItemBg:He,colorItemBgSelected:ht,itemSelectedBg:ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:wn,activeBarBorderWidth:wn,colorItemTextDisabled:et,itemDisabledColor:et,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:vt,dangerItemActiveBg:vt,colorDangerItemBgSelected:vt,dangerItemSelectedBg:vt,itemMarginInline:Je.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:on,groupTitleLineHeight:bn,collapsedWidth:on*2,popupBg:Kn,itemMarginBlock:Dt,itemPaddingInline:Rn,horizontalLineHeight:`${on*1.15}px`,iconSize:Gn,iconMarginInlineEnd:jr-Gn,collapsedIconSize:mr,groupTitleFontSize:Gn,darkItemDisabledColor:new Ce.C(ur).setAlpha(.25).toRgbString(),darkItemColor:Or,darkDangerItemColor:At,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ur,darkItemSelectedBg:ft,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:Or,darkItemHoverColor:ur,darkDangerItemHoverColor:Tn,darkDangerItemSelectedColor:ur,darkDangerItemActiveBg:At}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(kt),Ke=function(kt,Qe){var Ye={};for(var Je in kt)Object.prototype.hasOwnProperty.call(kt,Je)&&Qe.indexOf(Je)<0&&(Ye[Je]=kt[Je]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Je=Object.getOwnPropertySymbols(kt);ft<Je.length;ft++)Qe.indexOf(Je[ft])<0&&Object.prototype.propertyIsEnumerable.call(kt,Je[ft])&&(Ye[Je[ft]]=kt[Je[ft]]);return Ye},Mn=(0,ue.forwardRef)((kt,Qe)=>{var Ye,Je;const ft=ue.useContext(ce.Z),At=ft||{},{getPrefixCls:et,getPopupContainer:vt,direction:Pt,menu:Xe}=ue.useContext(pe.E_),Zt=et(),{prefixCls:He,className:ut,style:wn,theme:sn="light",expandIcon:ht,_internalDisableMenuItemTitleTooltip:$t,inlineCollapsed:on,siderCollapsed:bn,items:Kn,children:Dt,rootClassName:Rn,mode:Gn,selectable:jr,onClick:mr,overflowedIndicatorPopupClassName:ur}=kt,Tn=Ke(kt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Or=(0,se.Z)(Tn,["collapsedWidth"]),zr=xe(Kn)||Dt;(Ye=At.validator)===null||Ye===void 0||Ye.call(At,{mode:Gn});const lo=(0,oe.useEvent)(function(){var Cr;mr==null||mr.apply(void 0,arguments),(Cr=At.onClick)===null||Cr===void 0||Cr.call(At)}),di=At.mode||Gn,Ko=jr!=null?jr:At.selectable,pr=ue.useMemo(()=>bn!==void 0?bn:on,[on,bn]),Xr={horizontal:{motionName:`${Zt}-slide-up`},inline:(0,ie.Z)(Zt),other:{motionName:`${Zt}-zoom-big`}},to=et("menu",He||At.prefixCls),[mo,Kr]=Bt(to,!ft),Vo=de()(`${to}-${sn}`,Xe==null?void 0:Xe.className,ut);let Do;if(typeof ht=="function")Do=ht;else if(ht===null||ht===!1)Do=null;else if(At.expandIcon===null||At.expandIcon===!1)Do=null;else{const Cr=ht!=null?ht:At.expandIcon;Do=(0,re.Tm)(Cr,{className:de()(`${to}-submenu-expand-icon`,(0,re.l$)(Cr)?(Je=Cr.props)===null||Je===void 0?void 0:Je.className:"")})}const io=ue.useMemo(()=>({prefixCls:to,inlineCollapsed:pr||!1,direction:Pt,firstLevel:!0,theme:sn,mode:di,disableMenuItemTitleTooltip:$t}),[to,pr,Pt,$t,sn]);return mo(ue.createElement(ce.Z.Provider,{value:null},ue.createElement(a.Provider,{value:io},ue.createElement(te.ZP,Object.assign({getPopupContainer:vt,overflowedIndicator:ue.createElement(z.Z,null),overflowedIndicatorPopupClassName:de()(to,`${to}-${sn}`,ur),mode:di,selectable:Ko,onClick:lo},Or,{inlineCollapsed:pr,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),wn),className:Vo,prefixCls:to,direction:Pt,defaultMotions:Xr,expandIcon:Do,ref:Qe,rootClassName:de()(Rn,Kr)}),zr))))});const Hn=(0,ue.forwardRef)((kt,Qe)=>{const Ye=(0,ue.useRef)(null),Je=ue.useContext(be.D);return(0,ue.useImperativeHandle)(Qe,()=>({menu:Ye.current,focus:ft=>{var At;(At=Ye.current)===null||At===void 0||At.focus(ft)}})),ue.createElement(Mn,Object.assign({ref:Ye},kt,Je))});Hn.Item=E,Hn.SubMenu=x,Hn.Divider=le,Hn.ItemGroup=te.BW;var pn=Hn},28452:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Zt}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ve=be,de=ee(74643),pe=function(ut,wn){return ue.createElement(de.Z,(0,te.Z)({},ut,{ref:wn,icon:ve}))},ae=ue.forwardRef(pe),he=ee(81893),le=ee(22751),fe=ee(91034),se=ee(94184),me=ee.n(se),re=ee(4942),ne=ee(1413),a=ee(15671),y=ee(43144),E=ee(60136),b=ee(51630),x=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,z=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,oe="".concat(x," ").concat(z).split(/[\s\n]+/),ie="aria-",ce="data-";function ye(He,ut){return He.indexOf(ut)===0}function _e(He){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wn;ut===!1?wn={aria:!0,data:!0,attr:!0}:ut===!0?wn={aria:!0}:wn=(0,ne.Z)({},ut);var sn={};return Object.keys(He).forEach(function(ht){(wn.aria&&(ht==="role"||ye(ht,ie))||wn.data&&ye(ht,ce)||wn.attr&&oe.includes(ht))&&(sn[ht]=He[ht])}),sn}var xe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ce=xe,Te=ee(81626),Me=function(He){(0,E.Z)(wn,He);var ut=(0,b.Z)(wn);function wn(){var sn;(0,a.Z)(this,wn);for(var ht=arguments.length,$t=new Array(ht),on=0;on<ht;on++)$t[on]=arguments[on];return sn=ut.call.apply(ut,[this].concat($t)),sn.state={goInputText:""},sn.getValidValue=function(){var bn=sn.state.goInputText;return!bn||Number.isNaN(bn)?void 0:Number(bn)},sn.buildOptionText=function(bn){return"".concat(bn," ").concat(sn.props.locale.items_per_page)},sn.changeSize=function(bn){sn.props.changeSize(Number(bn))},sn.handleChange=function(bn){sn.setState({goInputText:bn.target.value})},sn.handleBlur=function(bn){var Kn=sn.props,Dt=Kn.goButton,Rn=Kn.quickGo,Gn=Kn.rootPrefixCls,jr=sn.state.goInputText;Dt||jr===""||(sn.setState({goInputText:""}),!(bn.relatedTarget&&(bn.relatedTarget.className.indexOf("".concat(Gn,"-item-link"))>=0||bn.relatedTarget.className.indexOf("".concat(Gn,"-item"))>=0))&&Rn(sn.getValidValue()))},sn.go=function(bn){var Kn=sn.state.goInputText;Kn!==""&&(bn.keyCode===Ce.ENTER||bn.type==="click")&&(sn.setState({goInputText:""}),sn.props.quickGo(sn.getValidValue()))},sn}return(0,y.Z)(wn,[{key:"getPageSizeOptions",value:function(){var ht=this.props,$t=ht.pageSize,on=ht.pageSizeOptions;return on.some(function(bn){return bn.toString()===$t.toString()})?on:on.concat([$t.toString()]).sort(function(bn,Kn){var Dt=Number.isNaN(Number(bn))?0:Number(bn),Rn=Number.isNaN(Number(Kn))?0:Number(Kn);return Dt-Rn})}},{key:"render",value:function(){var ht=this,$t=this.props,on=$t.pageSize,bn=$t.locale,Kn=$t.rootPrefixCls,Dt=$t.changeSize,Rn=$t.quickGo,Gn=$t.goButton,jr=$t.selectComponentClass,mr=$t.buildOptionText,ur=$t.selectPrefixCls,Tn=$t.disabled,Or=this.state.goInputText,zr="".concat(Kn,"-options"),lo=jr,di=null,Ko=null,pr=null;if(!Dt&&!Rn)return null;var Xr=this.getPageSizeOptions();if(Dt&&lo){var to=Xr.map(function(mo,Kr){return ue.createElement(lo.Option,{key:Kr,value:mo.toString()},(mr||ht.buildOptionText)(mo))});di=ue.createElement(lo,{disabled:Tn,prefixCls:ur,showSearch:!1,className:"".concat(zr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(on||Xr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Kr){return Kr.parentNode},"aria-label":bn.page_size,defaultOpen:!1},to)}return Rn&&(Gn&&(pr=typeof Gn=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Tn,className:"".concat(zr,"-quick-jumper-button")},bn.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},Gn)),Ko=ue.createElement("div",{className:"".concat(zr,"-quick-jumper")},bn.jump_to,ue.createElement("input",{disabled:Tn,type:"text",value:Or,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":bn.page}),bn.page,pr)),ue.createElement("li",{className:"".concat(zr)},di,Ko)}}]),wn}(ue.Component);Me.defaultProps={pageSizeOptions:["10","20","50","100"]};var pt=Me,Ve=function(ut){var wn,sn=ut.rootPrefixCls,ht=ut.page,$t=ut.active,on=ut.className,bn=ut.showTitle,Kn=ut.onClick,Dt=ut.onKeyPress,Rn=ut.itemRender,Gn="".concat(sn,"-item"),jr=me()(Gn,"".concat(Gn,"-").concat(ht),(wn={},(0,re.Z)(wn,"".concat(Gn,"-active"),$t),(0,re.Z)(wn,"".concat(Gn,"-disabled"),!ht),(0,re.Z)(wn,ut.className,on),wn)),mr=function(){Kn(ht)},ur=function(zr){Dt(zr,Kn,ht)},Tn=Rn(ht,"page",ue.createElement("a",{rel:"nofollow"},ht));return Tn?ue.createElement("li",{title:bn?ht.toString():null,className:jr,onClick:mr,onKeyPress:ur,tabIndex:0},Tn):null},gt=Ve;function Ae(){}function De(He){var ut=Number(He);return typeof ut=="number"&&!Number.isNaN(ut)&&isFinite(ut)&&Math.floor(ut)===ut}var Ie=function(ut,wn,sn){return sn};function tt(He,ut,wn){var sn=typeof He=="undefined"?ut.pageSize:He;return Math.floor((wn.total-1)/sn)+1}var Ze=function(He){(0,E.Z)(wn,He);var ut=(0,b.Z)(wn);function wn(sn){var ht;(0,a.Z)(this,wn),ht=ut.call(this,sn),ht.paginationNode=ue.createRef(),ht.getJumpPrevPage=function(){return Math.max(1,ht.state.current-(ht.props.showLessItems?3:5))},ht.getJumpNextPage=function(){return Math.min(tt(void 0,ht.state,ht.props),ht.state.current+(ht.props.showLessItems?3:5))},ht.getItemIcon=function(Dt,Rn){var Gn=ht.props.prefixCls,jr=Dt||ue.createElement("button",{type:"button","aria-label":Rn,className:"".concat(Gn,"-item-link")});return typeof Dt=="function"&&(jr=ue.createElement(Dt,(0,ne.Z)({},ht.props))),jr},ht.isValid=function(Dt){var Rn=ht.props.total;return De(Dt)&&Dt!==ht.state.current&&De(Rn)&&Rn>0},ht.shouldDisplayQuickJumper=function(){var Dt=ht.props,Rn=Dt.showQuickJumper,Gn=Dt.total,jr=ht.state.pageSize;return Gn<=jr?!1:Rn},ht.handleKeyDown=function(Dt){(Dt.keyCode===Ce.ARROW_UP||Dt.keyCode===Ce.ARROW_DOWN)&&Dt.preventDefault()},ht.handleKeyUp=function(Dt){var Rn=ht.getValidValue(Dt),Gn=ht.state.currentInputValue;Rn!==Gn&&ht.setState({currentInputValue:Rn}),Dt.keyCode===Ce.ENTER?ht.handleChange(Rn):Dt.keyCode===Ce.ARROW_UP?ht.handleChange(Rn-1):Dt.keyCode===Ce.ARROW_DOWN&&ht.handleChange(Rn+1)},ht.handleBlur=function(Dt){var Rn=ht.getValidValue(Dt);ht.handleChange(Rn)},ht.changePageSize=function(Dt){var Rn=ht.state.current,Gn=tt(Dt,ht.state,ht.props);Rn=Rn>Gn?Gn:Rn,Gn===0&&(Rn=ht.state.current),typeof Dt=="number"&&("pageSize"in ht.props||ht.setState({pageSize:Dt}),"current"in ht.props||ht.setState({current:Rn,currentInputValue:Rn})),ht.props.onShowSizeChange(Rn,Dt),"onChange"in ht.props&&ht.props.onChange&&ht.props.onChange(Rn,Dt)},ht.handleChange=function(Dt){var Rn=ht.props,Gn=Rn.disabled,jr=Rn.onChange,mr=ht.state,ur=mr.pageSize,Tn=mr.current,Or=mr.currentInputValue;if(ht.isValid(Dt)&&!Gn){var zr=tt(void 0,ht.state,ht.props),lo=Dt;return Dt>zr?lo=zr:Dt<1&&(lo=1),"current"in ht.props||ht.setState({current:lo}),lo!==Or&&ht.setState({currentInputValue:lo}),jr(lo,ur),lo}return Tn},ht.prev=function(){ht.hasPrev()&&ht.handleChange(ht.state.current-1)},ht.next=function(){ht.hasNext()&&ht.handleChange(ht.state.current+1)},ht.jumpPrev=function(){ht.handleChange(ht.getJumpPrevPage())},ht.jumpNext=function(){ht.handleChange(ht.getJumpNextPage())},ht.hasPrev=function(){return ht.state.current>1},ht.hasNext=function(){return ht.state.current<tt(void 0,ht.state,ht.props)},ht.runIfEnter=function(Dt,Rn){if(Dt.key==="Enter"||Dt.charCode===13){for(var Gn=arguments.length,jr=new Array(Gn>2?Gn-2:0),mr=2;mr<Gn;mr++)jr[mr-2]=arguments[mr];Rn.apply(void 0,jr)}},ht.runIfEnterPrev=function(Dt){ht.runIfEnter(Dt,ht.prev)},ht.runIfEnterNext=function(Dt){ht.runIfEnter(Dt,ht.next)},ht.runIfEnterJumpPrev=function(Dt){ht.runIfEnter(Dt,ht.jumpPrev)},ht.runIfEnterJumpNext=function(Dt){ht.runIfEnter(Dt,ht.jumpNext)},ht.handleGoTO=function(Dt){(Dt.keyCode===Ce.ENTER||Dt.type==="click")&&ht.handleChange(ht.state.currentInputValue)},ht.renderPrev=function(Dt){var Rn=ht.props,Gn=Rn.prevIcon,jr=Rn.itemRender,mr=jr(Dt,"prev",ht.getItemIcon(Gn,"prev page")),ur=!ht.hasPrev();return(0,ue.isValidElement)(mr)?(0,ue.cloneElement)(mr,{disabled:ur}):mr},ht.renderNext=function(Dt){var Rn=ht.props,Gn=Rn.nextIcon,jr=Rn.itemRender,mr=jr(Dt,"next",ht.getItemIcon(Gn,"next page")),ur=!ht.hasNext();return(0,ue.isValidElement)(mr)?(0,ue.cloneElement)(mr,{disabled:ur}):mr};var $t=sn.onChange!==Ae,on="current"in sn;on&&!$t&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var bn=sn.defaultCurrent;"current"in sn&&(bn=sn.current);var Kn=sn.defaultPageSize;return"pageSize"in sn&&(Kn=sn.pageSize),bn=Math.min(bn,tt(Kn,void 0,sn)),ht.state={current:bn,currentInputValue:bn,pageSize:Kn},ht}return(0,y.Z)(wn,[{key:"componentDidUpdate",value:function(ht,$t){var on=this.props.prefixCls;if($t.current!==this.state.current&&this.paginationNode.current){var bn=this.paginationNode.current.querySelector(".".concat(on,"-item-").concat($t.current));if(bn&&document.activeElement===bn){var Kn;bn==null||(Kn=bn.blur)===null||Kn===void 0||Kn.call(bn)}}}},{key:"getValidValue",value:function(ht){var $t=ht.target.value,on=tt(void 0,this.state,this.props),bn=this.state.currentInputValue,Kn;return $t===""?Kn=$t:Number.isNaN(Number($t))?Kn=bn:$t>=on?Kn=on:Kn=Number($t),Kn}},{key:"getShowSizeChanger",value:function(){var ht=this.props,$t=ht.showSizeChanger,on=ht.total,bn=ht.totalBoundaryShowSizeChanger;return typeof $t!="undefined"?$t:on>bn}},{key:"render",value:function(){var ht=this.props,$t=ht.prefixCls,on=ht.className,bn=ht.style,Kn=ht.disabled,Dt=ht.hideOnSinglePage,Rn=ht.total,Gn=ht.locale,jr=ht.showQuickJumper,mr=ht.showLessItems,ur=ht.showTitle,Tn=ht.showTotal,Or=ht.simple,zr=ht.itemRender,lo=ht.showPrevNextJumpers,di=ht.jumpPrevIcon,Ko=ht.jumpNextIcon,pr=ht.selectComponentClass,Xr=ht.selectPrefixCls,to=ht.pageSizeOptions,mo=this.state,Kr=mo.current,Vo=mo.pageSize,Do=mo.currentInputValue;if(Dt===!0&&Rn<=Vo)return null;var io=tt(void 0,this.state,this.props),Cr=[],Ei=null,cn=null,ge=null,Se=null,Pe=null,Le=jr&&jr.goButton,Ne=mr?1:2,qe=Kr-1>0?Kr-1:0,it=Kr+1<io?Kr+1:io,un=_e(this.props,{aria:!0,data:!0}),Vt=Tn&&ue.createElement("li",{className:"".concat($t,"-total-text")},Tn(Rn,[Rn===0?0:(Kr-1)*Vo+1,Kr*Vo>Rn?Rn:Kr*Vo]));if(Or){Le&&(typeof Le=="boolean"?Pe=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Gn.jump_to_confirm):Pe=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le),Pe=ue.createElement("li",{title:ur?"".concat(Gn.jump_to).concat(Kr,"/").concat(io):null,className:"".concat($t,"-simple-pager")},Pe));var En=this.renderPrev(qe);return ue.createElement("ul",(0,te.Z)({className:me()($t,"".concat($t,"-simple"),(0,re.Z)({},"".concat($t,"-disabled"),Kn),on),style:bn,ref:this.paginationNode},un),Vt,En?ue.createElement("li",{title:ur?Gn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:me()("".concat($t,"-prev"),(0,re.Z)({},"".concat($t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},En):null,ue.createElement("li",{title:ur?"".concat(Kr,"/").concat(io):null,className:"".concat($t,"-simple-pager")},ue.createElement("input",{type:"text",value:Do,disabled:Kn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat($t,"-slash")},"/"),io),ue.createElement("li",{title:ur?Gn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:me()("".concat($t,"-next"),(0,re.Z)({},"".concat($t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(it)),Pe)}if(io<=3+Ne*2){var Vn={locale:Gn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:ur,itemRender:zr};io||Cr.push(ue.createElement(gt,(0,te.Z)({},Vn,{key:"noPager",page:1,className:"".concat($t,"-item-disabled")})));for(var Pr=1;Pr<=io;Pr+=1){var Ot=Kr===Pr;Cr.push(ue.createElement(gt,(0,te.Z)({},Vn,{key:Pr,page:Pr,active:Ot})))}}else{var qn=mr?Gn.prev_3:Gn.prev_5,er=mr?Gn.next_3:Gn.next_5,Pn=zr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(di,"prev page")),An=zr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ko,"next page"));lo&&(Ei=Pn?ue.createElement("li",{title:ur?qn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:me()("".concat($t,"-jump-prev"),(0,re.Z)({},"".concat($t,"-jump-prev-custom-icon"),!!di))},Pn):null,cn=An?ue.createElement("li",{title:ur?er:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:me()("".concat($t,"-jump-next"),(0,re.Z)({},"".concat($t,"-jump-next-custom-icon"),!!Ko))},An):null),Se=ue.createElement(gt,{locale:Gn,last:!0,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:io,page:io,active:!1,showTitle:ur,itemRender:zr}),ge=ue.createElement(gt,{locale:Gn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:ur,itemRender:zr});var Yn=Math.max(1,Kr-Ne),yr=Math.min(Kr+Ne,io);Kr-1<=Ne&&(yr=1+Ne*2),io-Kr<=Ne&&(Yn=io-Ne*2);for(var lr=Yn;lr<=yr;lr+=1){var ci=Kr===lr;Cr.push(ue.createElement(gt,{locale:Gn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:lr,page:lr,active:ci,showTitle:ur,itemRender:zr}))}Kr-1>=Ne*2&&Kr!==3&&(Cr[0]=(0,ue.cloneElement)(Cr[0],{className:"".concat($t,"-item-after-jump-prev")}),Cr.unshift(Ei)),io-Kr>=Ne*2&&Kr!==io-2&&(Cr[Cr.length-1]=(0,ue.cloneElement)(Cr[Cr.length-1],{className:"".concat($t,"-item-before-jump-next")}),Cr.push(cn)),Yn!==1&&Cr.unshift(ge),yr!==io&&Cr.push(Se)}var Po=!this.hasPrev()||!io,fr=!this.hasNext()||!io,Vr=this.renderPrev(qe),Yo=this.renderNext(it);return ue.createElement("ul",(0,te.Z)({className:me()($t,on,(0,re.Z)({},"".concat($t,"-disabled"),Kn)),style:bn,ref:this.paginationNode},un),Vt,Vr?ue.createElement("li",{title:ur?Gn.prev_page:null,onClick:this.prev,tabIndex:Po?null:0,onKeyPress:this.runIfEnterPrev,className:me()("".concat($t,"-prev"),(0,re.Z)({},"".concat($t,"-disabled"),Po)),"aria-disabled":Po},Vr):null,Cr,Yo?ue.createElement("li",{title:ur?Gn.next_page:null,onClick:this.next,tabIndex:fr?null:0,onKeyPress:this.runIfEnterNext,className:me()("".concat($t,"-next"),(0,re.Z)({},"".concat($t,"-disabled"),fr)),"aria-disabled":fr},Yo):null,ue.createElement(pt,{disabled:Kn,locale:Gn,rootPrefixCls:$t,selectComponentClass:pr,selectPrefixCls:Xr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Kr,pageSize:Vo,pageSizeOptions:to,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(ht,$t){var on={};if("current"in ht&&(on.current=ht.current,ht.current!==$t.current&&(on.currentInputValue=on.current)),"pageSize"in ht&&ht.pageSize!==$t.pageSize){var bn=$t.current,Kn=tt(ht.pageSize,$t,ht);bn=bn>Kn?Kn:bn,"current"in ht||(on.current=bn,on.currentInputValue=bn),on.pageSize=ht.pageSize}return on}}]),wn}(ue.Component);Ze.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ae,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ae,locale:Te.Z,style:{},itemRender:Ie,totalBoundaryShowSizeChanger:50};var bt=Ze,wt=ee(62906),Kt=ee(53124),Qt=ee(98675),rt=ee(25378),st=ee(10110),Ct=ee(11713);const Gt=He=>ue.createElement(Ct.default,Object.assign({},He,{showSearch:!0,size:"small"})),Ht=He=>ue.createElement(Ct.default,Object.assign({},He,{showSearch:!0,size:"middle"}));Gt.Option=Ct.default.Option,Ht.Option=Ct.default.Option;var Bt=ee(47673),Ke=ee(14747),Jt=ee(67968),Mn=ee(45503);const Hn=He=>{const{componentCls:ut}=He;return{[`${ut}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed"}}},[`&${ut}-disabled`]:{cursor:"not-allowed",[`${ut}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:He.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:He.colorBorder,backgroundColor:He.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:He.itemActiveBgDisabled},a:{color:He.itemActiveColorDisabled}}},[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ut}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ut}-simple-pager`]:{color:He.colorTextDisabled},[`${ut}-jump-prev, ${ut}-jump-next`]:{[`${ut}-item-link-icon`]:{opacity:0},[`${ut}-item-ellipsis`]:{opacity:1}}},[`&${ut}-simple`]:{[`${ut}-prev, ${ut}-next`]:{[`&${ut}-disabled ${ut}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},pn=He=>{const{componentCls:ut}=He;return{[`&${ut}-mini ${ut}-total-text, &${ut}-mini ${ut}-simple-pager`]:{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini ${ut}-item`]:{minWidth:He.itemSizeSM,height:He.itemSizeSM,margin:0,lineHeight:`${He.itemSizeSM-2}px`},[`&${ut}-mini:not(${ut}-disabled) ${ut}-item:not(${ut}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive}},[`&${ut}-mini ${ut}-prev, &${ut}-mini ${ut}-next`]:{minWidth:He.itemSizeSM,height:He.itemSizeSM,margin:0,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini:not(${ut}-disabled)`]:{[`${ut}-prev, ${ut}-next`]:{[`&:hover ${ut}-item-link`]:{backgroundColor:He.colorBgTextHover},[`&:active ${ut}-item-link`]:{backgroundColor:He.colorBgTextActive},[`&${ut}-disabled:hover ${ut}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ut}-mini ${ut}-prev ${ut}-item-link,
&${ut}-mini ${ut}-next ${ut}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`}},[`&${ut}-mini ${ut}-jump-prev, &${ut}-mini ${ut}-jump-next`]:{height:He.itemSizeSM,marginInlineEnd:0,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini ${ut}-options`]:{marginInlineStart:He.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:He.miniOptionsSizeChangerTop},"&-quick-jumper":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Bt.x0)(He)),{width:He.paginationMiniQuickJumperInputWidth,height:He.controlHeightSM})}}}},kt=He=>{const{componentCls:ut}=He;return{[`
&${ut}-simple ${ut}-prev,
&${ut}-simple ${ut}-next
`]:{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`,verticalAlign:"top",[`${ut}-item-link`]:{height:He.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive},"&::after":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`}}},[`&${ut}-simple ${ut}-simple-pager`]:{display:"inline-block",height:He.itemSizeSM,marginInlineEnd:He.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:He.marginXS,padding:`0 ${He.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:He.itemInputBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadius,outline:"none",transition:`border-color ${He.motionDurationMid}`,color:"inherit","&:hover":{borderColor:He.colorPrimary},"&:focus":{borderColor:He.colorPrimaryHover,boxShadow:`${He.inputOutlineOffset}px 0 ${He.controlOutlineWidth}px ${He.controlOutline}`},"&[disabled]":{color:He.colorTextDisabled,backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,cursor:"not-allowed"}}}}},Qe=He=>{const{componentCls:ut}=He;return{[`${ut}-jump-prev, ${ut}-jump-next`]:{outline:0,[`${ut}-item-container`]:{position:"relative",[`${ut}-item-link-icon`]:{color:He.colorPrimary,fontSize:He.fontSizeSM,opacity:0,transition:`all ${He.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ut}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:He.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:He.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:He.paginationEllipsisTextIndent,opacity:1,transition:`all ${He.motionDurationMid}`}},"&:hover":{[`${ut}-item-link-icon`]:{opacity:1},[`${ut}-item-ellipsis`]:{opacity:0}}},[`
${ut}-prev,
${ut}-jump-prev,
${ut}-jump-next
`]:{marginInlineEnd:He.marginXS},[`
${ut}-prev,
${ut}-next,
${ut}-jump-prev,
${ut}-jump-next
`]:{display:"inline-block",minWidth:He.itemSize,height:He.itemSize,color:He.colorText,fontFamily:He.fontFamily,lineHeight:`${He.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:He.borderRadius,cursor:"pointer",transition:`all ${He.motionDurationMid}`},[`${ut}-prev, ${ut}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:He.colorText,cursor:"pointer",userSelect:"none"},[`${ut}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:He.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${He.lineWidth}px ${He.lineType} transparent`,borderRadius:He.borderRadius,outline:"none",transition:`all ${He.motionDurationMid}`},[`&:hover ${ut}-item-link`]:{backgroundColor:He.colorBgTextHover},[`&:active ${ut}-item-link`]:{backgroundColor:He.colorBgTextActive},[`&${ut}-disabled:hover`]:{[`${ut}-item-link`]:{backgroundColor:"transparent"}}},[`${ut}-slash`]:{marginInlineEnd:He.paginationSlashMarginInlineEnd,marginInlineStart:He.paginationSlashMarginInlineStart},[`${ut}-options`]:{display:"inline-block",marginInlineStart:He.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:He.controlHeight,marginInlineStart:He.marginXS,lineHeight:`${He.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Bt.ik)(He)),{width:He.controlHeightLG*1.25,height:He.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:He.marginXS,marginInlineEnd:He.marginXS})}}}},Ye=He=>{const{componentCls:ut}=He;return{[`${ut}-item`]:{display:"inline-block",minWidth:He.itemSize,height:He.itemSize,marginInlineEnd:He.marginXS,fontFamily:He.fontFamily,lineHeight:`${He.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${He.lineWidth}px ${He.lineType} transparent`,borderRadius:He.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${He.paginationItemPaddingInline}px`,color:He.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ut}-item-active)`]:{"&:hover":{transition:`all ${He.motionDurationMid}`,backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive}},"&-active":{fontWeight:He.fontWeightStrong,backgroundColor:He.itemActiveBg,borderColor:He.colorPrimary,a:{color:He.colorPrimary},"&:hover":{borderColor:He.colorPrimaryHover},"&:hover a":{color:He.colorPrimaryHover}}}}},Je=He=>{const{componentCls:ut}=He;return{[ut]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(He)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ut}-total-text`]:{display:"inline-block",height:He.itemSize,marginInlineEnd:He.marginXS,lineHeight:`${He.itemSize-2}px`,verticalAlign:"middle"}}),Ye(He)),Qe(He)),kt(He)),pn(He)),Hn(He)),{[`@media only screen and (max-width: ${He.screenLG}px)`]:{[`${ut}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${He.screenSM}px)`]:{[`${ut}-options`]:{display:"none"}}}),[`&${He.componentCls}-rtl`]:{direction:"rtl"}}},ft=He=>{const{componentCls:ut}=He;return{[`${ut}${ut}-disabled:not(${ut}-mini)`]:{"&, &:hover":{[`${ut}-item-link`]:{borderColor:He.colorBorder}},"&:focus-visible":{[`${ut}-item-link`]:{borderColor:He.colorBorder}},[`${ut}-item, ${ut}-item-link`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,[`&:hover:not(${ut}-item-active)`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,a:{color:He.colorTextDisabled}},[`&${ut}-item-active`]:{backgroundColor:He.itemActiveBgDisabled}},[`${ut}-prev, ${ut}-next`]:{"&:hover button":{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,color:He.colorTextDisabled},[`${ut}-item-link`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder}}},[`${ut}:not(${ut}-mini)`]:{[`${ut}-prev, ${ut}-next`]:{"&:hover button":{borderColor:He.colorPrimaryHover,backgroundColor:He.itemBg},[`${ut}-item-link`]:{backgroundColor:He.itemLinkBg,borderColor:He.colorBorder},[`&:hover ${ut}-item-link`]:{borderColor:He.colorPrimary,backgroundColor:He.itemBg,color:He.colorPrimary},[`&${ut}-disabled`]:{[`${ut}-item-link`]:{borderColor:He.colorBorder,color:He.colorTextDisabled}}},[`${ut}-item`]:{backgroundColor:He.itemBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,[`&:hover:not(${ut}-item-active)`]:{borderColor:He.colorPrimary,backgroundColor:He.itemBg,a:{color:He.colorPrimary}},"&-active":{borderColor:He.colorPrimary}}}}},At=He=>{const{componentCls:ut}=He;return{[`${ut}:not(${ut}-disabled)`]:{[`${ut}-item`]:Object.assign({},(0,Ke.Qy)(He)),[`${ut}-jump-prev, ${ut}-jump-next`]:{"&:focus-visible":Object.assign({[`${ut}-item-link-icon`]:{opacity:1},[`${ut}-item-ellipsis`]:{opacity:0}},(0,Ke.oN)(He))},[`${ut}-prev, ${ut}-next`]:{[`&:focus-visible ${ut}-item-link`]:Object.assign({},(0,Ke.oN)(He))}}}};var et=(0,Jt.Z)("Pagination",He=>{const ut=(0,Mn.TS)(He,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:He.marginXXS/2,paginationMiniQuickJumperInputWidth:He.controlHeightLG*1.1,paginationItemPaddingInline:He.marginXXS*1.5,paginationEllipsisLetterSpacing:He.marginXXS/2,paginationSlashMarginInlineStart:He.marginXXS,paginationSlashMarginInlineEnd:He.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Bt.e5)(He),(0,Bt.TM)(He));return[Je(ut),At(ut),He.wireframe&&ft(ut)]},He=>({itemBg:He.colorBgContainer,itemSize:He.controlHeight,itemSizeSM:He.controlHeightSM,itemActiveBg:He.colorBgContainer,itemLinkBg:He.colorBgContainer,itemActiveColorDisabled:He.colorTextDisabled,itemActiveBgDisabled:He.controlItemBgActiveDisabled,itemInputBg:He.colorBgContainer,miniOptionsSizeChangerTop:0})),vt=function(He,ut){var wn={};for(var sn in He)Object.prototype.hasOwnProperty.call(He,sn)&&ut.indexOf(sn)<0&&(wn[sn]=He[sn]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,sn=Object.getOwnPropertySymbols(He);ht<sn.length;ht++)ut.indexOf(sn[ht])<0&&Object.prototype.propertyIsEnumerable.call(He,sn[ht])&&(wn[sn[ht]]=He[sn[ht]]);return wn},Xe=He=>{const{prefixCls:ut,selectPrefixCls:wn,className:sn,rootClassName:ht,style:$t,size:on,locale:bn,selectComponentClass:Kn,responsive:Dt,showSizeChanger:Rn}=He,Gn=vt(He,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:jr}=(0,rt.Z)(Dt),{getPrefixCls:mr,direction:ur,pagination:Tn={}}=ue.useContext(Kt.E_),Or=mr("pagination",ut),[zr,lo]=et(Or),di=Rn!=null?Rn:Tn.showSizeChanger,Ko=ue.useMemo(()=>{const io=ue.createElement("span",{className:`${Or}-item-ellipsis`},"\u2022\u2022\u2022"),Cr=ue.createElement("button",{className:`${Or}-item-link`,type:"button",tabIndex:-1},ur==="rtl"?ue.createElement(fe.Z,null):ue.createElement(le.Z,null)),Ei=ue.createElement("button",{className:`${Or}-item-link`,type:"button",tabIndex:-1},ur==="rtl"?ue.createElement(le.Z,null):ue.createElement(fe.Z,null)),cn=ue.createElement("a",{className:`${Or}-item-link`},ue.createElement("div",{className:`${Or}-item-container`},ur==="rtl"?ue.createElement(he.Z,{className:`${Or}-item-link-icon`}):ue.createElement(ae,{className:`${Or}-item-link-icon`}),io)),ge=ue.createElement("a",{className:`${Or}-item-link`},ue.createElement("div",{className:`${Or}-item-container`},ur==="rtl"?ue.createElement(ae,{className:`${Or}-item-link-icon`}):ue.createElement(he.Z,{className:`${Or}-item-link-icon`}),io));return{prevIcon:Cr,nextIcon:Ei,jumpPrevIcon:cn,jumpNextIcon:ge}},[ur,Or]),[pr]=(0,st.Z)("Pagination",wt.Z),Xr=Object.assign(Object.assign({},pr),bn),to=(0,Qt.Z)(on),mo=to==="small"||!!(jr&&!to&&Dt),Kr=mr("select",wn),Vo=me()({[`${Or}-mini`]:mo,[`${Or}-rtl`]:ur==="rtl"},Tn==null?void 0:Tn.className,sn,ht,lo),Do=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),$t);return zr(ue.createElement(bt,Object.assign({},Ko,Gn,{style:Do,prefixCls:Or,selectPrefixCls:Kr,className:Vo,selectComponentClass:Kn||(mo?Gt:Ht),locale:Xr,showSizeChanger:di})))},Zt=Xe},46303:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return kt}});var te=ee(94184),ue=ee.n(te),be=ee(67294),ve=ee(53124),de=ee(10366),ae=Qe=>{const{prefixCls:Ye,className:Je,style:ft,size:At,shape:et}=Qe,vt=ue()({[`${Ye}-lg`]:At==="large",[`${Ye}-sm`]:At==="small"}),Pt=ue()({[`${Ye}-circle`]:et==="circle",[`${Ye}-square`]:et==="square",[`${Ye}-round`]:et==="round"}),Xe=be.useMemo(()=>typeof At=="number"?{width:At,height:At,lineHeight:`${At}px`}:{},[At]);return be.createElement("span",{className:ue()(Ye,vt,Pt,Je),style:Object.assign(Object.assign({},Xe),ft)})},he=ee(45930),le=ee(67968),fe=ee(45503);const se=new he.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=Qe=>({height:Qe,lineHeight:`${Qe}px`}),re=Qe=>Object.assign({width:Qe},me(Qe)),ne=Qe=>({background:Qe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:Qe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Qe=>Object.assign({width:Qe*5,minWidth:Qe*5},me(Qe)),y=Qe=>{const{skeletonAvatarCls:Ye,gradientFromColor:Je,controlHeight:ft,controlHeightLG:At,controlHeightSM:et}=Qe;return{[`${Ye}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Je},re(ft)),[`${Ye}${Ye}-circle`]:{borderRadius:"50%"},[`${Ye}${Ye}-lg`]:Object.assign({},re(At)),[`${Ye}${Ye}-sm`]:Object.assign({},re(et))}},E=Qe=>{const{controlHeight:Ye,borderRadiusSM:Je,skeletonInputCls:ft,controlHeightLG:At,controlHeightSM:et,gradientFromColor:vt}=Qe;return{[`${ft}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:Je},a(Ye)),[`${ft}-lg`]:Object.assign({},a(At)),[`${ft}-sm`]:Object.assign({},a(et))}},b=Qe=>Object.assign({width:Qe},me(Qe)),x=Qe=>{const{skeletonImageCls:Ye,imageSizeBase:Je,gradientFromColor:ft,borderRadiusSM:At}=Qe;return{[`${Ye}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ft,borderRadius:At},b(Je*2)),{[`${Ye}-path`]:{fill:"#bfbfbf"},[`${Ye}-svg`]:Object.assign(Object.assign({},b(Je)),{maxWidth:Je*4,maxHeight:Je*4}),[`${Ye}-svg${Ye}-svg-circle`]:{borderRadius:"50%"}}),[`${Ye}${Ye}-circle`]:{borderRadius:"50%"}}},z=(Qe,Ye,Je)=>{const{skeletonButtonCls:ft}=Qe;return{[`${Je}${ft}-circle`]:{width:Ye,minWidth:Ye,borderRadius:"50%"},[`${Je}${ft}-round`]:{borderRadius:Ye}}},oe=Qe=>Object.assign({width:Qe*2,minWidth:Qe*2},me(Qe)),ie=Qe=>{const{borderRadiusSM:Ye,skeletonButtonCls:Je,controlHeight:ft,controlHeightLG:At,controlHeightSM:et,gradientFromColor:vt}=Qe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:Ye,width:ft*2,minWidth:ft*2},oe(ft))},z(Qe,ft,Je)),{[`${Je}-lg`]:Object.assign({},oe(At))}),z(Qe,At,`${Je}-lg`)),{[`${Je}-sm`]:Object.assign({},oe(et))}),z(Qe,et,`${Je}-sm`))},ce=Qe=>{const{componentCls:Ye,skeletonAvatarCls:Je,skeletonTitleCls:ft,skeletonParagraphCls:At,skeletonButtonCls:et,skeletonInputCls:vt,skeletonImageCls:Pt,controlHeight:Xe,controlHeightLG:Zt,controlHeightSM:He,gradientFromColor:ut,padding:wn,marginSM:sn,borderRadius:ht,titleHeight:$t,blockRadius:on,paragraphLiHeight:bn,controlHeightXS:Kn,paragraphMarginTop:Dt}=Qe;return{[`${Ye}`]:{display:"table",width:"100%",[`${Ye}-header`]:{display:"table-cell",paddingInlineEnd:wn,verticalAlign:"top",[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ut},re(Xe)),[`${Je}-circle`]:{borderRadius:"50%"},[`${Je}-lg`]:Object.assign({},re(Zt)),[`${Je}-sm`]:Object.assign({},re(He))},[`${Ye}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ft}`]:{width:"100%",height:$t,background:ut,borderRadius:on,[`+ ${At}`]:{marginBlockStart:He}},[`${At}`]:{padding:0,"> li":{width:"100%",height:bn,listStyle:"none",background:ut,borderRadius:on,"+ li":{marginBlockStart:Kn}}},[`${At}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ye}-content`]:{[`${ft}, ${At} > li`]:{borderRadius:ht}}},[`${Ye}-with-avatar ${Ye}-content`]:{[`${ft}`]:{marginBlockStart:sn,[`+ ${At}`]:{marginBlockStart:Dt}}},[`${Ye}${Ye}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ie(Qe)),y(Qe)),E(Qe)),x(Qe)),[`${Ye}${Ye}-block`]:{width:"100%",[`${et}`]:{width:"100%"},[`${vt}`]:{width:"100%"}},[`${Ye}${Ye}-active`]:{[`
${ft},
${At} > li,
${Je},
${et},
${vt},
${Pt}
`]:Object.assign({},ne(Qe))}}};var ye=(0,le.Z)("Skeleton",Qe=>{const{componentCls:Ye}=Qe,Je=(0,fe.TS)(Qe,{skeletonAvatarCls:`${Ye}-avatar`,skeletonTitleCls:`${Ye}-title`,skeletonParagraphCls:`${Ye}-paragraph`,skeletonButtonCls:`${Ye}-button`,skeletonInputCls:`${Ye}-input`,skeletonImageCls:`${Ye}-image`,imageSizeBase:Qe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Qe.gradientFromColor} 25%, ${Qe.gradientToColor} 37%, ${Qe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ce(Je)]},Qe=>{const{colorFillContent:Ye,colorFill:Je}=Qe,ft=Ye,At=Je;return{color:ft,colorGradientEnd:At,gradientFromColor:ft,gradientToColor:At,titleHeight:Qe.controlHeight/2,blockRadius:Qe.borderRadiusSM,paragraphMarginTop:Qe.marginLG+Qe.marginXXS,paragraphLiHeight:Qe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xe=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,active:At,shape:et="circle",size:vt="default"}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=(0,de.Z)(Qe,["prefixCls","className"]),wn=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:At},Je,ft,He);return Zt(be.createElement("div",{className:wn},be.createElement(ae,Object.assign({prefixCls:`${Xe}-avatar`,shape:et,size:vt},ut))))},Te=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,active:At,block:et=!1,size:vt="default"}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=(0,de.Z)(Qe,["prefixCls"]),wn=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:At,[`${Xe}-block`]:et},Je,ft,He);return Zt(be.createElement("div",{className:wn},be.createElement(ae,Object.assign({prefixCls:`${Xe}-button`,size:vt},ut))))};const Me="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Ve=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,style:At,active:et}=Qe,{getPrefixCls:vt}=be.useContext(ve.E_),Pt=vt("skeleton",Ye),[Xe,Zt]=ye(Pt),He=ue()(Pt,`${Pt}-element`,{[`${Pt}-active`]:et},Je,ft,Zt);return Xe(be.createElement("div",{className:He},be.createElement("div",{className:ue()(`${Pt}-image`,Je),style:At},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Pt}-image-svg`},be.createElement("path",{d:Me,className:`${Pt}-image-path`})))))},Ae=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,active:At,block:et,size:vt="default"}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=(0,de.Z)(Qe,["prefixCls"]),wn=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:At,[`${Xe}-block`]:et},Je,ft,He);return Zt(be.createElement("div",{className:wn},be.createElement(ae,Object.assign({prefixCls:`${Xe}-input`,size:vt},ut))))},De=ee(87462),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},tt=Ie,Ze=ee(74643),bt=function(Ye,Je){return be.createElement(Ze.Z,(0,De.Z)({},Ye,{ref:Je,icon:tt}))},wt=be.forwardRef(bt),Qt=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,style:At,active:et,children:vt}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:et},He,Je,ft),wn=vt!=null?vt:be.createElement(wt,null);return Zt(be.createElement("div",{className:ut},be.createElement("div",{className:ue()(`${Xe}-image`,Je),style:At},wn)))},rt=ee(74902),Ct=Qe=>{const Ye=Pt=>{const{width:Xe,rows:Zt=2}=Qe;if(Array.isArray(Xe))return Xe[Pt];if(Zt-1===Pt)return Xe},{prefixCls:Je,className:ft,style:At,rows:et}=Qe,vt=(0,rt.Z)(Array(et)).map((Pt,Xe)=>be.createElement("li",{key:Xe,style:{width:Ye(Xe)}}));return be.createElement("ul",{className:ue()(Je,ft),style:At},vt)},Ht=Qe=>{let{prefixCls:Ye,className:Je,width:ft,style:At}=Qe;return be.createElement("h3",{className:ue()(Ye,Je),style:Object.assign({width:ft},At)})};function Bt(Qe){return Qe&&typeof Qe=="object"?Qe:{}}function Ke(Qe,Ye){return Qe&&!Ye?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Jt(Qe,Ye){return!Qe&&Ye?{width:"38%"}:Qe&&Ye?{width:"50%"}:{}}function Mn(Qe,Ye){const Je={};return(!Qe||!Ye)&&(Je.width="61%"),!Qe&&Ye?Je.rows=3:Je.rows=2,Je}const Hn=Qe=>{const{prefixCls:Ye,loading:Je,className:ft,rootClassName:At,style:et,children:vt,avatar:Pt=!1,title:Xe=!0,paragraph:Zt=!0,active:He,round:ut}=Qe,{getPrefixCls:wn,direction:sn,skeleton:ht}=be.useContext(ve.E_),$t=wn("skeleton",Ye),[on,bn]=ye($t);if(Je||!("loading"in Qe)){const Kn=!!Pt,Dt=!!Xe,Rn=!!Zt;let Gn;if(Kn){const ur=Object.assign(Object.assign({prefixCls:`${$t}-avatar`},Ke(Dt,Rn)),Bt(Pt));Gn=be.createElement("div",{className:`${$t}-header`},be.createElement(ae,Object.assign({},ur)))}let jr;if(Dt||Rn){let ur;if(Dt){const Or=Object.assign(Object.assign({prefixCls:`${$t}-title`},Jt(Kn,Rn)),Bt(Xe));ur=be.createElement(Ht,Object.assign({},Or))}let Tn;if(Rn){const Or=Object.assign(Object.assign({prefixCls:`${$t}-paragraph`},Mn(Kn,Dt)),Bt(Zt));Tn=be.createElement(Ct,Object.assign({},Or))}jr=be.createElement("div",{className:`${$t}-content`},ur,Tn)}const mr=ue()($t,{[`${$t}-with-avatar`]:Kn,[`${$t}-active`]:He,[`${$t}-rtl`]:sn==="rtl",[`${$t}-round`]:ut},ht==null?void 0:ht.className,ft,At,bn);return on(be.createElement("div",{className:mr,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),et)},Gn,jr))}return typeof vt!="undefined"?vt:null};Hn.Button=Te,Hn.Avatar=xe,Hn.Input=Ae,Hn.Image=Ve,Hn.Node=Qt;var pn=Hn,kt=pn},55054:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return ye}});var te=ee(67294),ue=ee(57838),be=ee(96159),ve=ee(94184),de=ee.n(ve),pe=ee(53124),ae=ee(46303),le=_e=>{const{value:xe,formatter:Ce,precision:Te,decimalSeparator:Me,groupSeparator:pt="",prefixCls:Ve}=_e;let gt;if(typeof Ce=="function")gt=Ce(xe);else{const Ae=String(xe),De=Ae.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ae==="-")gt=Ae;else{const Ie=De[1];let tt=De[2]||"0",Ze=De[4]||"";tt=tt.replace(/\B(?=(\d{3})+(?!\d))/g,pt),typeof Te=="number"&&(Ze=Ze.padEnd(Te,"0").slice(0,Te>0?Te:0)),Ze&&(Ze=`${Me}${Ze}`),gt=[te.createElement("span",{key:"int",className:`${Ve}-content-value-int`},Ie,tt),Ze&&te.createElement("span",{key:"decimal",className:`${Ve}-content-value-decimal`},Ze)]}}return te.createElement("span",{className:`${Ve}-content-value`},gt)},fe=ee(14747),se=ee(67968),me=ee(45503);const re=_e=>{const{componentCls:xe,marginXXS:Ce,padding:Te,colorTextDescription:Me,titleFontSize:pt,colorTextHeading:Ve,contentFontSize:gt,fontFamily:Ae}=_e;return{[`${xe}`]:Object.assign(Object.assign({},(0,fe.Wf)(_e)),{[`${xe}-title`]:{marginBottom:Ce,color:Me,fontSize:pt},[`${xe}-skeleton`]:{paddingTop:Te},[`${xe}-content`]:{color:Ve,fontSize:gt,fontFamily:Ae,[`${xe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${xe}-content-prefix, ${xe}-content-suffix`]:{display:"inline-block"},[`${xe}-content-prefix`]:{marginInlineEnd:Ce},[`${xe}-content-suffix`]:{marginInlineStart:Ce}}})}};var ne=(0,se.Z)("Statistic",_e=>{const xe=(0,me.TS)(_e,{});return[re(xe)]},_e=>{const{fontSizeHeading3:xe,fontSize:Ce}=_e;return{titleFontSize:Ce,contentFontSize:xe}}),y=_e=>{const{prefixCls:xe,className:Ce,rootClassName:Te,style:Me,valueStyle:pt,value:Ve=0,title:gt,valueRender:Ae,prefix:De,suffix:Ie,loading:tt=!1,onMouseEnter:Ze,onMouseLeave:bt,decimalSeparator:wt=".",groupSeparator:Kt=","}=_e,{getPrefixCls:Qt,direction:rt,statistic:st}=te.useContext(pe.E_),Ct=Qt("statistic",xe),[Gt,Ht]=ne(Ct),Bt=te.createElement(le,Object.assign({decimalSeparator:wt,groupSeparator:Kt,prefixCls:Ct},_e,{value:Ve})),Ke=de()(Ct,{[`${Ct}-rtl`]:rt==="rtl"},st==null?void 0:st.className,Ce,Te,Ht);return Gt(te.createElement("div",{className:Ke,style:Object.assign(Object.assign({},st==null?void 0:st.style),Me),onMouseEnter:Ze,onMouseLeave:bt},gt&&te.createElement("div",{className:`${Ct}-title`},gt),te.createElement(ae.Z,{paragraph:!1,loading:tt,className:`${Ct}-skeleton`},te.createElement("div",{style:pt,className:`${Ct}-content`},De&&te.createElement("span",{className:`${Ct}-content-prefix`},De),Ae?Ae(Bt):Bt,Ie&&te.createElement("span",{className:`${Ct}-content-suffix`},Ie)))))};const E=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function b(_e,xe){let Ce=_e;const Te=/\[[^\]]*]/g,Me=(xe.match(Te)||[]).map(Ae=>Ae.slice(1,-1)),pt=xe.replace(Te,"[]"),Ve=E.reduce((Ae,De)=>{let[Ie,tt]=De;if(Ae.includes(Ie)){const Ze=Math.floor(Ce/tt);return Ce-=Ze*tt,Ae.replace(new RegExp(`${Ie}+`,"g"),bt=>{const wt=bt.length;return Ze.toString().padStart(wt,"0")})}return Ae},pt);let gt=0;return Ve.replace(Te,()=>{const Ae=Me[gt];return gt+=1,Ae})}function x(_e,xe){const{format:Ce=""}=xe,Te=new Date(_e).getTime(),Me=Date.now(),pt=Math.max(Te-Me,0);return b(pt,Ce)}const z=1e3/30;function oe(_e){return new Date(_e).getTime()}const ie=_e=>{const{value:xe,format:Ce="HH:mm:ss",onChange:Te,onFinish:Me}=_e,pt=(0,ue.Z)(),Ve=te.useRef(null),gt=()=>{Me==null||Me(),Ve.current&&(clearInterval(Ve.current),Ve.current=null)},Ae=()=>{const tt=oe(xe);tt>=Date.now()&&(Ve.current=setInterval(()=>{pt(),Te==null||Te(tt-Date.now()),tt<Date.now()&&gt()},z))};te.useEffect(()=>(Ae(),()=>{Ve.current&&(clearInterval(Ve.current),Ve.current=null)}),[xe]);const De=(tt,Ze)=>x(tt,Object.assign(Object.assign({},Ze),{format:Ce})),Ie=tt=>(0,be.Tm)(tt,{title:void 0});return te.createElement(y,Object.assign({},_e,{valueRender:Ie,formatter:De}))};var ce=te.memo(ie);y.Countdown=ce;var ye=y},49867:function(ot,Ge,ee){"use strict";ee.d(Ge,{N:function(){return te}});const te=ue=>({color:ue.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ue.motionDurationSlow}`,"&:focus, &:hover":{color:ue.colorLinkHover},"&:active":{color:ue.colorLinkActive}})},9430:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return Ji}});var te={},ue="rc-table-internal-hook",be=ee(97685),ve=ee(66680),de=ee(8410),pe=ee(91881),ae=ee(67294),he=ee(73935);function le(Ee){var we=ae.createContext(void 0),Oe=function(ke){var $e=ke.value,at=ke.children,mt=ae.useRef($e);mt.current=$e;var lt=ae.useState(function(){return{getValue:function(){return mt.current},listeners:new Set}}),Et=(0,be.Z)(lt,1),Tt=Et[0];return(0,de.Z)(function(){(0,he.unstable_batchedUpdates)(function(){Tt.listeners.forEach(function(xt){xt($e)})})},[$e]),ae.createElement(we.Provider,{value:Tt},at)};return{Context:we,Provider:Oe,defaultValue:Ee}}function fe(Ee,we){var Oe=(0,ve.Z)(typeof we=="function"?we:function(xt){if(we===void 0)return xt;if(!Array.isArray(we))return xt[we];var en={};return we.forEach(function(Yt){en[Yt]=xt[Yt]}),en}),Be=ae.useContext(Ee==null?void 0:Ee.Context),ke=Be||{},$e=ke.listeners,at=ke.getValue,mt=ae.useRef();mt.current=Oe(Be?at():Ee==null?void 0:Ee.defaultValue);var lt=ae.useState({}),Et=(0,be.Z)(lt,2),Tt=Et[1];return(0,de.Z)(function(){if(!Be)return;function xt(en){var Yt=Oe(en);(0,pe.Z)(mt.current,Yt,!0)||Tt({})}return $e.add(xt),function(){$e.delete(xt)}},[Be]),mt.current}var se=ee(87462),me=ee(42550);function re(){var Ee=ae.createContext(null);function we(){return ae.useContext(Ee)}function Oe(ke,$e){var at=(0,me.Yr)(ke),mt=function(Et,Tt){var xt=at?{ref:Tt}:{},en=ae.useRef(0),Yt=ae.useRef(Et),an=we();return an!==null?ae.createElement(ke,(0,se.Z)({},Et,xt)):((!$e||$e(Yt.current,Et))&&(en.current+=1),Yt.current=Et,ae.createElement(Ee.Provider,{value:en.current},ae.createElement(ke,(0,se.Z)({},Et,xt))))};return at?ae.forwardRef(mt):mt}function Be(ke,$e){var at=(0,me.Yr)(ke),mt=function(Et,Tt){var xt=at?{ref:Tt}:{};return we(),ae.createElement(ke,(0,se.Z)({},Et,xt))};return at?ae.memo(ae.forwardRef(mt),$e):ae.memo(mt,$e)}return{makeImmutable:Oe,responseImmutable:Be,useImmutableMark:we}}var ne=re(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=re(),x=b.makeImmutable,z=b.responseImmutable,oe=b.useImmutableMark,ie=le(),ce=ie;function ye(Ee,we){var Oe=ae.useRef(0);Oe.current+=1;var Be=ae.useRef(Ee),ke=[];Object.keys(Ee||{}).map(function(at){var mt;(Ee==null?void 0:Ee[at])!==((mt=Be.current)===null||mt===void 0?void 0:mt[at])&&ke.push(at)}),Be.current=Ee;var $e=ae.useRef([]);return ke.length&&($e.current=ke),ae.useDebugValue(Oe.current),ae.useDebugValue($e.current.join(", ")),we&&console.log("".concat(we,":"),Oe.current,$e.current),Oe.current}var _e=null,xe=ae.memo(function(){var Ee=ye();return ae.createElement("h1",null,"Render Times: ",Ee)});xe.displayName="RenderBlock";var Ce=ee(71002),Te=ee(1413),Me=ee(4942),pt=ee(94184),Ve=ee.n(pt);function gt(Ee,we,Oe){var Be=ae.useRef({});return(!("value"in Be.current)||Oe(Be.current.condition,we))&&(Be.current.value=Ee(),Be.current.condition=we),Be.current.value}var Ae={},De=[],Ie=function(we){De.push(we)};function tt(Ee,we){if(0)var Oe}function Ze(Ee,we){if(0)var Oe}function bt(){Ae={}}function wt(Ee,we,Oe){!we&&!Ae[Oe]&&(Ee(!1,Oe),Ae[Oe]=!0)}function Kt(Ee,we){wt(tt,Ee,we)}function Qt(Ee,we){wt(Ze,Ee,we)}Kt.preMessage=Ie,Kt.resetWarned=bt,Kt.noteOnce=Qt;var rt=Kt;function st(Ee,we){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Be=new Set;function ke($e,at){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,lt=Be.has($e);if(rt(!lt,"Warning: There may be circular references"),lt)return!1;if($e===at)return!0;if(Oe&&mt>1)return!1;Be.add($e);var Et=mt+1;if(Array.isArray($e)){if(!Array.isArray(at)||$e.length!==at.length)return!1;for(var Tt=0;Tt<$e.length;Tt++)if(!ke($e[Tt],at[Tt],Et))return!1;return!0}if($e&&at&&(0,Ce.Z)($e)==="object"&&(0,Ce.Z)(at)==="object"){var xt=Object.keys($e);return xt.length!==Object.keys(at).length?!1:xt.every(function(en){return ke($e[en],at[en],Et)})}return!1}return ke(Ee,we)}var Ct=st;function Gt(Ee,we){for(var Oe=Ee,Be=0;Be<we.length;Be+=1){if(Oe==null)return;Oe=Oe[we[Be]]}return Oe}var Ht=ae.createContext({renderWithProps:!1}),Bt=Ht,Ke="RC_TABLE_KEY";function Jt(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function Mn(Ee){var we=[],Oe={};return Ee.forEach(function(Be){for(var ke=Be||{},$e=ke.key,at=ke.dataIndex,mt=$e||Jt(at).join("-")||Ke;Oe[mt];)mt="".concat(mt,"_next");Oe[mt]=!0,we.push(mt)}),we}function Hn(Ee){return Ee!=null}function pn(Ee){return Ee&&(0,Ce.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!ae.isValidElement(Ee)}function kt(Ee,we,Oe,Be,ke,$e){var at=ae.useContext(Bt),mt=oe(),lt=gt(function(){if(Hn(Be))return[Be];var Et=we==null||we===""?[]:Array.isArray(we)?we:[we],Tt=Gt(Ee,Et),xt=Tt,en=void 0;if(ke){var Yt=ke(Tt,Ee,Oe);pn(Yt)?(xt=Yt.children,en=Yt.props,at.renderWithProps=!0):xt=Yt}return[xt,en]},[mt,Ee,Be,we,ke,Oe],function(Et,Tt){if($e){var xt=(0,be.Z)(Et,2),en=xt[1],Yt=(0,be.Z)(Tt,2),an=Yt[1];return $e(an,en)}return at.renderWithProps?!0:!Ct(Et,Tt,!0)});return lt}function Qe(Ee,we,Oe,Be){var ke=Ee+we-1;return Ee<=Be&&ke>=Oe}function Ye(Ee,we){return fe(ce,function(Oe){var Be=Qe(Ee,we||1,Oe.hoverStartRow,Oe.hoverEndRow);return[Be,Oe.onHover]})}var Je=function(we){var Oe=we.ellipsis,Be=we.rowType,ke=we.children,$e,at=Oe===!0?{showTitle:!0}:Oe;return at&&(at.showTitle||Be==="header")&&(typeof ke=="string"||typeof ke=="number"?$e=ke.toString():ae.isValidElement(ke)&&typeof ke.props.children=="string"&&($e=ke.props.children)),$e};function ft(Ee){var we,Oe,Be,ke,$e,at,mt,lt,Et=Ee.component,Tt=Ee.children,xt=Ee.ellipsis,en=Ee.scope,Yt=Ee.prefixCls,an=Ee.className,On=Ee.align,xn=Ee.record,zn=Ee.render,Dn=Ee.dataIndex,Zn=Ee.renderIndex,Er=Ee.shouldCellUpdate,Nr=Ee.index,hr=Ee.rowType,Wr=Ee.colSpan,ro=Ee.rowSpan,ar=Ee.fixLeft,vr=Ee.fixRight,sr=Ee.firstFixLeft,Wn=Ee.lastFixLeft,dr=Ee.firstFixRight,$r=Ee.lastFixRight,_o=Ee.appendNode,no=Ee.additionalProps,Tr=no===void 0?{}:no,Lo=Ee.isSticky,Mo="".concat(Yt,"-cell"),pi=fe(ce,["supportSticky","allColumnsFixedLeft"]),Wo=pi.supportSticky,$i=pi.allColumnsFixedLeft,Zi=kt(xn,Dn,Zn,Tt,zn,Er),oo=(0,be.Z)(Zi,2),qi=oo[0],Jo=oo[1],Ti={},Oi=typeof ar=="number"&&Wo,La=typeof vr=="number"&&Wo;Oi&&(Ti.position="sticky",Ti.left=ar),La&&(Ti.position="sticky",Ti.right=vr);var Ur=(we=(Oe=(Be=Jo==null?void 0:Jo.colSpan)!==null&&Be!==void 0?Be:Tr.colSpan)!==null&&Oe!==void 0?Oe:Wr)!==null&&we!==void 0?we:1,Br=(ke=($e=(at=Jo==null?void 0:Jo.rowSpan)!==null&&at!==void 0?at:Tr.rowSpan)!==null&&$e!==void 0?$e:ro)!==null&&ke!==void 0?ke:1,Ir=Ye(Nr,Br),xr=(0,be.Z)(Ir,2),qo=xr[0],Mr=xr[1],eo=function(ta){var xa;xn&&Mr(Nr,Nr+Br-1),Tr==null||(xa=Tr.onMouseEnter)===null||xa===void 0||xa.call(Tr,ta)},Ho=function(ta){var xa;xn&&Mr(-1,-1),Tr==null||(xa=Tr.onMouseLeave)===null||xa===void 0||xa.call(Tr,ta)};if(Ur===0||Br===0)return null;var jo=(mt=Tr.title)!==null&&mt!==void 0?mt:Je({rowType:hr,ellipsis:xt,children:qi}),ha=Ve()(Mo,an,(lt={},(0,Me.Z)(lt,"".concat(Mo,"-fix-left"),Oi&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-left-first"),sr&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-left-last"),Wn&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-left-all"),Wn&&$i&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-right"),La&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-right-first"),dr&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-right-last"),$r&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-ellipsis"),xt),(0,Me.Z)(lt,"".concat(Mo,"-with-append"),_o),(0,Me.Z)(lt,"".concat(Mo,"-fix-sticky"),(Oi||La)&&Lo&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-row-hover"),!Jo&&qo),lt),Tr.className,Jo==null?void 0:Jo.className),la={};On&&(la.textAlign=On);var Za=(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},Ti),Tr.style),la),Jo==null?void 0:Jo.style),ea=qi;return(0,Ce.Z)(ea)==="object"&&!Array.isArray(ea)&&!ae.isValidElement(ea)&&(ea=null),xt&&(Wn||dr)&&(ea=ae.createElement("span",{className:"".concat(Mo,"-content")},ea)),ae.createElement(Et,(0,se.Z)({},Jo,Tr,{className:ha,style:Za,title:jo,scope:en,onMouseEnter:eo,onMouseLeave:Ho,colSpan:Ur!==1?Ur:null,rowSpan:Br!==1?Br:null}),_o,ea)}var At=ae.memo(ft);function et(Ee,we,Oe,Be,ke,$e){var at=Oe[Ee]||{},mt=Oe[we]||{},lt,Et;at.fixed==="left"?lt=Be.left[ke==="rtl"?we:Ee]:mt.fixed==="right"&&(Et=Be.right[ke==="rtl"?Ee:we]);var Tt=!1,xt=!1,en=!1,Yt=!1,an=Oe[we+1],On=Oe[Ee-1],xn=!($e!=null&&$e.children);if(ke==="rtl"){if(lt!==void 0){var zn=On&&On.fixed==="left";Yt=!zn&&xn}else if(Et!==void 0){var Dn=an&&an.fixed==="right";en=!Dn&&xn}}else if(lt!==void 0){var Zn=an&&an.fixed==="left";Tt=!Zn&&xn}else if(Et!==void 0){var Er=On&&On.fixed==="right";xt=!Er&&xn}return{fixLeft:lt,fixRight:Et,lastFixLeft:Tt,firstFixRight:xt,lastFixRight:en,firstFixLeft:Yt,isSticky:Be.isSticky}}var vt=ae.createContext({}),Pt=vt;function Xe(Ee){var we=Ee.className,Oe=Ee.index,Be=Ee.children,ke=Ee.colSpan,$e=ke===void 0?1:ke,at=Ee.rowSpan,mt=Ee.align,lt=fe(ce,["prefixCls","direction"]),Et=lt.prefixCls,Tt=lt.direction,xt=ae.useContext(Pt),en=xt.scrollColumnIndex,Yt=xt.stickyOffsets,an=xt.flattenColumns,On=xt.columns,xn=Oe+$e-1,zn=xn+1===en?$e+1:$e,Dn=et(Oe,Oe+zn-1,an,Yt,Tt,On==null?void 0:On[Oe]);return ae.createElement(At,(0,se.Z)({className:we,index:Oe,component:"td",prefixCls:Et,record:null,dataIndex:null,align:mt,colSpan:zn,rowSpan:at,render:function(){return Be}},Dn))}var Zt=ee(45987),He=["children"];function ut(Ee){var we=Ee.children,Oe=(0,Zt.Z)(Ee,He);return ae.createElement("tr",Oe,we)}function wn(Ee){var we=Ee.children;return we}wn.Row=ut,wn.Cell=Xe;var sn=wn;function ht(Ee){var we=Ee.children,Oe=Ee.stickyOffsets,Be=Ee.flattenColumns,ke=Ee.columns,$e=fe(ce,"prefixCls"),at=Be.length-1,mt=Be[at],lt=ae.useMemo(function(){return{stickyOffsets:Oe,flattenColumns:Be,scrollColumnIndex:mt!=null&&mt.scrollbar?at:null,columns:ke}},[mt,Be,at,Oe,ke]);return ae.createElement(Pt.Provider,{value:lt},ae.createElement("tfoot",{className:"".concat($e,"-summary")},we))}var $t=z(ht),on=sn;function bn(Ee){var we=ae.useRef();we.current=Ee;var Oe=ae.useCallback(function(){for(var Be,ke=arguments.length,$e=new Array(ke),at=0;at<ke;at++)$e[at]=arguments[at];return(Be=we.current)===null||Be===void 0?void 0:Be.call.apply(Be,[we].concat($e))},[]);return Oe}function Kn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Dt=Kn()?ae.useLayoutEffect:ae.useEffect,Rn=function(we,Oe){var Be=React.useRef(!0);Dt(function(){return we(Be.current)},Oe),Dt(function(){return Be.current=!1,function(){Be.current=!0}},[])},Gn=function(we,Oe){Rn(function(Be){if(!Be)return we()},Oe)},jr=null;function mr(Ee){var we=React.useRef(!1),Oe=React.useState(Ee),Be=_slicedToArray(Oe,2),ke=Be[0],$e=Be[1];React.useEffect(function(){return we.current=!1,function(){we.current=!0}},[]);function at(mt,lt){lt&&we.current||$e(mt)}return[ke,at]}function ur(Ee){return Ee!==void 0}function Tn(Ee,we){var Oe=we||{},Be=Oe.defaultValue,ke=Oe.value,$e=Oe.onChange,at=Oe.postState,mt=useState(function(){return ur(ke)?ke:ur(Be)?typeof Be=="function"?Be():Be:typeof Ee=="function"?Ee():Ee}),lt=_slicedToArray(mt,2),Et=lt[0],Tt=lt[1],xt=ke!==void 0?ke:Et,en=at?at(xt):xt,Yt=useEvent($e),an=useState([xt]),On=_slicedToArray(an,2),xn=On[0],zn=On[1];useLayoutUpdateEffect(function(){var Zn=xn[0];Et!==Zn&&Yt(Et,Zn)},[xn]),useLayoutUpdateEffect(function(){ur(ke)||Tt(ke)},[ke]);var Dn=useEvent(function(Zn,Er){Tt(Zn,Er),zn([xt],Er)});return[en,Dn]}var Or=ee(35110);function zr(Ee,we){typeof Ee=="function"?Ee(we):(0,Ce.Z)(Ee)==="object"&&Ee&&"current"in Ee&&(Ee.current=we)}function lo(){for(var Ee=arguments.length,we=new Array(Ee),Oe=0;Oe<Ee;Oe++)we[Oe]=arguments[Oe];var Be=we.filter(function(ke){return ke});return Be.length<=1?Be[0]:function(ke){we.forEach(function($e){zr($e,ke)})}}function di(){for(var Ee=arguments.length,we=new Array(Ee),Oe=0;Oe<Ee;Oe++)we[Oe]=arguments[Oe];return useMemo(function(){return lo.apply(void 0,we)},we,function(Be,ke){return Be.length!==ke.length||Be.every(function($e,at){return $e!==ke[at]})})}function Ko(Ee){var we,Oe,Be=isMemo(Ee)?Ee.type.type:Ee.type;return!(typeof Be=="function"&&!((we=Be.prototype)!==null&&we!==void 0&&we.render)||typeof Ee=="function"&&!((Oe=Ee.prototype)!==null&&Oe!==void 0&&Oe.render))}function pr(Ee){return!isValidElement(Ee)||isFragment(Ee)?!1:Ko(Ee)}function Xr(Ee,we,Oe,Be){if(!we.length)return Oe;var ke=_toArray(we),$e=ke[0],at=ke.slice(1),mt;return!Ee&&typeof $e=="number"?mt=[]:Array.isArray(Ee)?mt=_toConsumableArray(Ee):mt=_objectSpread({},Ee),Be&&Oe===void 0&&at.length===1?delete mt[$e][at[0]]:mt[$e]=Xr(mt[$e],at,Oe,Be),mt}function to(Ee,we,Oe){var Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return we.length&&Be&&Oe===void 0&&!get(Ee,we.slice(0,-1))?Ee:Xr(Ee,we,Oe,Be)}function mo(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function Kr(Ee){return Array.isArray(Ee)?[]:{}}var Vo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Do(){for(var Ee=arguments.length,we=new Array(Ee),Oe=0;Oe<Ee;Oe++)we[Oe]=arguments[Oe];var Be=Kr(we[0]);return we.forEach(function(ke){function $e(at,mt){var lt=new Set(mt),Et=get(ke,at),Tt=Array.isArray(Et);if(Tt||mo(Et)){if(!lt.has(Et)){lt.add(Et);var xt=get(Be,at);Tt?Be=to(Be,at,[]):(!xt||_typeof(xt)!=="object")&&(Be=to(Be,at,Kr(Et))),Vo(Et).forEach(function(en){$e([].concat(_toConsumableArray(at),[en]),lt)})}}else Be=to(Be,at,Et)}$e([])}),Be}var io=ee(48555),Cr=function(Ee){if(!Ee)return!1;if(Ee instanceof Element){if(Ee.offsetParent)return!0;if(Ee.getBBox){var we=Ee.getBBox(),Oe=we.width,Be=we.height;if(Oe||Be)return!0}if(Ee.getBoundingClientRect){var ke=Ee.getBoundingClientRect(),$e=ke.width,at=ke.height;if($e||at)return!0}}return!1},Ei=function(we){if(Kn()&&window.document.documentElement){var Oe=Array.isArray(we)?we:[we],Be=window.document.documentElement;return Oe.some(function(ke){return ke in Be.style})}return!1},cn=function(we,Oe){if(!Ei(we))return!1;var Be=document.createElement("div"),ke=Be.style[we];return Be.style[we]=Oe,Be.style[we]!==ke};function ge(Ee,we){return!Array.isArray(Ee)&&we!==void 0?cn(Ee,we):Ei(Ee)}var Se;function Pe(Ee){if(typeof document=="undefined")return 0;if(Ee||Se===void 0){var we=document.createElement("div");we.style.width="100%",we.style.height="200px";var Oe=document.createElement("div"),Be=Oe.style;Be.position="absolute",Be.top="0",Be.left="0",Be.pointerEvents="none",Be.visibility="hidden",Be.width="200px",Be.height="150px",Be.overflow="hidden",Oe.appendChild(we),document.body.appendChild(Oe);var ke=we.offsetWidth;Oe.style.overflow="scroll";var $e=we.offsetWidth;ke===$e&&($e=Oe.clientWidth),document.body.removeChild(Oe),Se=ke-$e}return Se}function Le(Ee){var we=Ee.match(/^(.*)px$/),Oe=Number(we==null?void 0:we[1]);return Number.isNaN(Oe)?Pe():Oe}function Ne(Ee){if(typeof document=="undefined"||!Ee||!(Ee instanceof Element))return{width:0,height:0};var we=getComputedStyle(Ee,"::-webkit-scrollbar"),Oe=we.width,Be=we.height;return{width:Le(Oe),height:Le(Be)}}var qe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,it=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,un="".concat(qe," ").concat(it).split(/[\s\n]+/),Vt="aria-",En="data-";function Vn(Ee,we){return Ee.indexOf(we)===0}function Pr(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe;we===!1?Oe={aria:!0,data:!0,attr:!0}:we===!0?Oe={aria:!0}:Oe=(0,Te.Z)({},we);var Be={};return Object.keys(Ee).forEach(function(ke){(Oe.aria&&(ke==="role"||Vn(ke,Vt))||Oe.data&&Vn(ke,En)||Oe.attr&&un.includes(ke))&&(Be[ke]=Ee[ke])}),Be}function Ot(Ee,we,Oe,Be,ke,$e,at){Ee.push({record:we,indent:Oe,index:at});var mt=$e(we),lt=ke==null?void 0:ke.has(mt);if(we&&Array.isArray(we[Be])&&lt)for(var Et=0;Et<we[Be].length;Et+=1)Ot(Ee,we[Be][Et],Oe+1,Be,ke,$e,Et)}function qn(Ee,we,Oe,Be){var ke=ae.useMemo(function(){if(Oe!=null&&Oe.size){for(var $e=[],at=0;at<(Ee==null?void 0:Ee.length);at+=1){var mt=Ee[at];Ot($e,mt,0,we,Oe,Be,at)}return $e}return Ee==null?void 0:Ee.map(function(lt,Et){return{record:lt,indent:0,index:Et}})},[Ee,we,Oe,Be]);return ke}function er(Ee){var we=Ee.prefixCls,Oe=Ee.children,Be=Ee.component,ke=Ee.cellComponent,$e=Ee.className,at=Ee.expanded,mt=Ee.colSpan,lt=Ee.isEmpty,Et=fe(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Tt=Et.scrollbarSize,xt=Et.fixHeader,en=Et.fixColumn,Yt=Et.componentWidth,an=Et.horizonScroll,On=Oe;return(lt?an&&Yt:en)&&(On=ae.createElement("div",{style:{width:Yt-(xt?Tt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(we,"-expanded-row-fixed")},On)),ae.createElement(Be,{className:$e,style:{display:at?null:"none"}},ae.createElement(At,{component:ke,prefixCls:we,colSpan:mt},On))}var Pn=er;function An(Ee,we,Oe,Be){var ke=fe(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),$e=ke.flattenColumns,at=ke.expandableType,mt=ke.expandedKeys,lt=ke.childrenColumnName,Et=ke.onTriggerExpand,Tt=ke.rowExpandable,xt=ke.onRow,en=ke.expandRowByClick,Yt=ke.rowClassName,an=at==="nest",On=at==="row"&&(!Tt||Tt(Ee)),xn=On||an,zn=mt&&mt.has(we),Dn=lt&&Ee&&Ee[lt],Zn=bn(Et),Er=xt==null?void 0:xt(Ee,Oe),Nr=Er==null?void 0:Er.onClick,hr=function(vr){en&&xn&&Et(Ee,vr);for(var sr=arguments.length,Wn=new Array(sr>1?sr-1:0),dr=1;dr<sr;dr++)Wn[dr-1]=arguments[dr];Nr==null||Nr.apply(void 0,[vr].concat(Wn))},Wr;typeof Yt=="string"?Wr=Yt:typeof Yt=="function"&&(Wr=Yt(Ee,Oe,Be));var ro=Mn($e);return(0,Te.Z)((0,Te.Z)({},ke),{},{columnsKey:ro,nestExpandable:an,expanded:zn,hasNestChildren:Dn,record:Ee,onTriggerExpand:Zn,rowSupportExpand:On,expandable:xn,rowProps:(0,Te.Z)((0,Te.Z)({},Er),{},{className:Ve()(Wr,Er==null?void 0:Er.className),onClick:hr})})}function Yn(Ee,we,Oe,Be,ke){var $e=Ee.record,at=Ee.prefixCls,mt=Ee.columnsKey,lt=Ee.fixedInfoList,Et=Ee.expandIconColumnIndex,Tt=Ee.nestExpandable,xt=Ee.indentSize,en=Ee.expandIcon,Yt=Ee.expanded,an=Ee.hasNestChildren,On=Ee.onTriggerExpand,xn=mt[Oe],zn=lt[Oe],Dn;Oe===(Et||0)&&Tt&&(Dn=ae.createElement(ae.Fragment,null,ae.createElement("span",{style:{paddingLeft:"".concat(xt*Be,"px")},className:"".concat(at,"-row-indent indent-level-").concat(Be)}),en({prefixCls:at,expanded:Yt,expandable:an,record:$e,onExpand:On})));var Zn;return we.onCell&&(Zn=we.onCell($e,ke)),{key:xn,fixedInfo:zn,appendCellNode:Dn,additionalCellProps:Zn||{}}}function yr(Ee){var we=Ee.className,Oe=Ee.style,Be=Ee.record,ke=Ee.index,$e=Ee.renderIndex,at=Ee.rowKey,mt=Ee.indent,lt=mt===void 0?0:mt,Et=Ee.rowComponent,Tt=Ee.cellComponent,xt=Ee.scopeCellComponent,en=An(Be,at,ke,lt),Yt=en.prefixCls,an=en.flattenColumns,On=en.expandedRowClassName,xn=en.expandedRowRender,zn=en.rowProps,Dn=en.expanded,Zn=en.rowSupportExpand,Er=ae.useState(!1),Nr=(0,be.Z)(Er,2),hr=Nr[0],Wr=Nr[1];ae.useEffect(function(){Dn&&Wr(!0)},[Dn]);var ro=ae.createElement(Et,(0,se.Z)({},zn,{"data-row-key":at,className:Ve()(we,"".concat(Yt,"-row"),"".concat(Yt,"-row-level-").concat(lt),zn==null?void 0:zn.className),style:(0,Te.Z)((0,Te.Z)({},Oe),zn==null?void 0:zn.style)}),an.map(function(Wn,dr){var $r=Wn.render,_o=Wn.dataIndex,no=Wn.className,Tr=Yn(en,Wn,dr,lt,ke),Lo=Tr.key,Mo=Tr.fixedInfo,pi=Tr.appendCellNode,Wo=Tr.additionalCellProps;return ae.createElement(At,(0,se.Z)({className:no,ellipsis:Wn.ellipsis,align:Wn.align,scope:Wn.rowScope,component:Wn.rowScope?xt:Tt,prefixCls:Yt,key:Lo,record:Be,index:ke,renderIndex:$e,dataIndex:_o,render:$r,shouldCellUpdate:Wn.shouldCellUpdate},Mo,{appendNode:pi,additionalProps:Wo}))})),ar;if(Zn&&(hr||Dn)){var vr=xn(Be,ke,lt+1,Dn),sr=On&&On(Be,ke,lt);ar=ae.createElement(Pn,{expanded:Dn,className:Ve()("".concat(Yt,"-expanded-row"),"".concat(Yt,"-expanded-row-level-").concat(lt+1),sr),prefixCls:Yt,component:Et,cellComponent:Tt,colSpan:an.length,isEmpty:!1},vr)}return ae.createElement(ae.Fragment,null,ro,ar)}yr.displayName="BodyRow";var lr=z(yr);function ci(Ee){var we=Ee.columnKey,Oe=Ee.onColumnResize,Be=ae.useRef();return ae.useEffect(function(){Be.current&&Oe(we,Be.current.offsetWidth)},[]),ae.createElement(io.Z,{data:we},ae.createElement("td",{ref:Be,style:{padding:0,border:0,height:0}},ae.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Po(Ee){var we=Ee.prefixCls,Oe=Ee.columnsKey,Be=Ee.onColumnResize;return ae.createElement("tr",{"aria-hidden":"true",className:"".concat(we,"-measure-row"),style:{height:0,fontSize:0}},ae.createElement(io.Z.Collection,{onBatchResize:function($e){$e.forEach(function(at){var mt=at.data,lt=at.size;Be(mt,lt.offsetWidth)})}},Oe.map(function(ke){return ae.createElement(ci,{key:ke,columnKey:ke,onColumnResize:Be})})))}function fr(Ee){var we=Ee.data,Oe=Ee.measureColumnWidth,Be=fe(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ke=Be.prefixCls,$e=Be.getComponent,at=Be.onColumnResize,mt=Be.flattenColumns,lt=Be.getRowKey,Et=Be.expandedKeys,Tt=Be.childrenColumnName,xt=Be.emptyNode,en=qn(we,Tt,Et,lt),Yt=ae.useRef({renderWithProps:!1}),an=$e(["body","wrapper"],"tbody"),On=$e(["body","row"],"tr"),xn=$e(["body","cell"],"td"),zn=$e(["body","cell"],"th"),Dn;we.length?Dn=en.map(function(Er,Nr){var hr=Er.record,Wr=Er.indent,ro=Er.index,ar=lt(hr,Nr);return ae.createElement(lr,{key:ar,rowKey:ar,record:hr,index:Nr,renderIndex:ro,rowComponent:On,cellComponent:xn,scopeCellComponent:zn,getRowKey:lt,indent:Wr})}):Dn=ae.createElement(Pn,{expanded:!0,className:"".concat(ke,"-placeholder"),prefixCls:ke,component:On,cellComponent:xn,colSpan:mt.length,isEmpty:!0},xt);var Zn=Mn(mt);return ae.createElement(Bt.Provider,{value:Yt.current},ae.createElement(an,{className:"".concat(ke,"-tbody")},Oe&&ae.createElement(Po,{prefixCls:ke,columnsKey:Zn,onColumnResize:at}),Dn))}fr.displayName="Body";var Vr=z(fr),Yo=["expandable"],Io="RC_TABLE_INTERNAL_COL_DEFINE";function ni(Ee){var we=Ee.expandable,Oe=(0,Zt.Z)(Ee,Yo),Be;return"expandable"in Ee?Be=(0,Te.Z)((0,Te.Z)({},Oe),we):Be=Oe,Be.showExpandColumn===!1&&(Be.expandIconColumnIndex=-1),Be}var gi=["columnType"];function Vi(Ee){for(var we=Ee.colWidths,Oe=Ee.columns,Be=Ee.columCount,ke=[],$e=Be||Oe.length,at=!1,mt=$e-1;mt>=0;mt-=1){var lt=we[mt],Et=Oe&&Oe[mt],Tt=Et&&Et[Io];if(lt||Tt||at){var xt=Tt||{},en=xt.columnType,Yt=(0,Zt.Z)(xt,gi);ke.unshift(ae.createElement("col",(0,se.Z)({key:mt,style:{width:lt}},Yt))),at=!0}}return ae.createElement("colgroup",null,ke)}var fn=Vi,xo=ee(74902),Yi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Cn(Ee,we){return(0,ae.useMemo)(function(){for(var Oe=[],Be=0;Be<we;Be+=1){var ke=Ee[Be];if(ke!==void 0)Oe[Be]=ke;else return null}return Oe},[Ee.join("_"),we])}var nr=ae.forwardRef(function(Ee,we){var Oe=Ee.className,Be=Ee.noData,ke=Ee.columns,$e=Ee.flattenColumns,at=Ee.colWidths,mt=Ee.columCount,lt=Ee.stickyOffsets,Et=Ee.direction,Tt=Ee.fixHeader,xt=Ee.stickyTopOffset,en=Ee.stickyBottomOffset,Yt=Ee.stickyClassName,an=Ee.onScroll,On=Ee.maxContentScroll,xn=Ee.children,zn=(0,Zt.Z)(Ee,Yi),Dn=fe(ce,["prefixCls","scrollbarSize","isSticky"]),Zn=Dn.prefixCls,Er=Dn.scrollbarSize,Nr=Dn.isSticky,hr=Nr&&!Tt?0:Er,Wr=ae.useRef(null),ro=ae.useCallback(function(no){zr(we,no),zr(Wr,no)},[]);ae.useEffect(function(){var no;function Tr(Lo){var Mo=Lo,pi=Mo.currentTarget,Wo=Mo.deltaX;Wo&&(an({currentTarget:pi,scrollLeft:pi.scrollLeft+Wo}),Lo.preventDefault())}return(no=Wr.current)===null||no===void 0||no.addEventListener("wheel",Tr),function(){var Lo;(Lo=Wr.current)===null||Lo===void 0||Lo.removeEventListener("wheel",Tr)}},[]);var ar=ae.useMemo(function(){return $e.every(function(no){return no.width})},[$e]),vr=$e[$e.length-1],sr={fixed:vr?vr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Zn,"-cell-scrollbar")}}},Wn=(0,ae.useMemo)(function(){return hr?[].concat((0,xo.Z)(ke),[sr]):ke},[hr,ke]),dr=(0,ae.useMemo)(function(){return hr?[].concat((0,xo.Z)($e),[sr]):$e},[hr,$e]),$r=(0,ae.useMemo)(function(){var no=lt.right,Tr=lt.left;return(0,Te.Z)((0,Te.Z)({},lt),{},{left:Et==="rtl"?[].concat((0,xo.Z)(Tr.map(function(Lo){return Lo+hr})),[0]):Tr,right:Et==="rtl"?no:[].concat((0,xo.Z)(no.map(function(Lo){return Lo+hr})),[0]),isSticky:Nr})},[hr,lt,Nr]),_o=Cn(at,mt);return ae.createElement("div",{style:(0,Te.Z)({overflow:"hidden"},Nr?{top:xt,bottom:en}:{}),ref:ro,className:Ve()(Oe,(0,Me.Z)({},Yt,!!Yt))},ae.createElement("table",{style:{tableLayout:"fixed",visibility:Be||_o?null:"hidden"}},(!Be||!On||ar)&&ae.createElement(fn,{colWidths:_o?[].concat((0,xo.Z)(_o),[hr]):[],columCount:mt+1,columns:dr}),xn((0,Te.Z)((0,Te.Z)({},zn),{},{stickyOffsets:$r,columns:Wn,flattenColumns:dr}))))});nr.displayName="FixedHolder";var wr=ae.memo(nr);function rr(Ee){var we=Ee.cells,Oe=Ee.stickyOffsets,Be=Ee.flattenColumns,ke=Ee.rowComponent,$e=Ee.cellComponent,at=Ee.tdCellComponent,mt=Ee.onHeaderRow,lt=Ee.index,Et=fe(ce,["prefixCls","direction"]),Tt=Et.prefixCls,xt=Et.direction,en;mt&&(en=mt(we.map(function(an){return an.column}),lt));var Yt=Mn(we.map(function(an){return an.column}));return ae.createElement(ke,en,we.map(function(an,On){var xn=an.column,zn=et(an.colStart,an.colEnd,Be,Oe,xt,xn),Dn;return xn&&xn.onHeaderCell&&(Dn=an.column.onHeaderCell(xn)),ae.createElement(At,(0,se.Z)({},an,{scope:xn.title?an.colSpan>1?"colgroup":"col":null,ellipsis:xn.ellipsis,align:xn.align,component:xn.title?$e:at,prefixCls:Tt,key:Yt[On]},zn,{additionalProps:Dn,rowType:"header"}))}))}rr.displayName="HeaderRow";var ei=rr;function po(Ee){var we=[];function Oe(at,mt){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[lt]=we[lt]||[];var Et=mt,Tt=at.filter(Boolean).map(function(xt){var en={key:xt.key,className:xt.className||"",children:xt.title,column:xt,colStart:Et},Yt=1,an=xt.children;return an&&an.length>0&&(Yt=Oe(an,Et,lt+1).reduce(function(On,xn){return On+xn},0),en.hasSubColumns=!0),"colSpan"in xt&&(Yt=xt.colSpan),"rowSpan"in xt&&(en.rowSpan=xt.rowSpan),en.colSpan=Yt,en.colEnd=en.colStart+Yt-1,we[lt].push(en),Et+=Yt,Yt});return Tt}Oe(Ee,0);for(var Be=we.length,ke=function(mt){we[mt].forEach(function(lt){!("rowSpan"in lt)&&!lt.hasSubColumns&&(lt.rowSpan=Be-mt)})},$e=0;$e<Be;$e+=1)ke($e);return we}function ri(Ee){var we=Ee.stickyOffsets,Oe=Ee.columns,Be=Ee.flattenColumns,ke=Ee.onHeaderRow,$e=fe(ce,["prefixCls","getComponent"]),at=$e.prefixCls,mt=$e.getComponent,lt=ae.useMemo(function(){return po(Oe)},[Oe]),Et=mt(["header","wrapper"],"thead"),Tt=mt(["header","row"],"tr"),xt=mt(["header","cell"],"th"),en=mt(["header","cell"],"td");return ae.createElement(Et,{className:"".concat(at,"-thead")},lt.map(function(Yt,an){var On=ae.createElement(ei,{key:an,flattenColumns:Be,cells:Yt,stickyOffsets:we,rowComponent:Tt,cellComponent:xt,tdCellComponent:en,onHeaderRow:ke,index:an});return On}))}var xi=z(ri);function Xi(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=[];return ae.Children.forEach(Ee,function(Be){Be==null&&!we.keepEmpty||(Array.isArray(Be)?Oe=Oe.concat(Xi(Be)):(0,Or.isFragment)(Be)&&Be.props?Oe=Oe.concat(Xi(Be.props.children,we)):Oe.push(Be))}),Oe}function dt(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof we=="number"?we:we.endsWith("%")?Ee*parseFloat(we)/100:null}function ct(Ee,we){return ae.useMemo(function(){if(we&&we>0){var Oe=0,Be=0;Ee.forEach(function(Et){var Tt=dt(we,Et.width);Tt?Oe+=Tt:Be+=1});var ke=we-Oe,$e=Be,at=ke/Be,mt=0,lt=Ee.map(function(Et){var Tt=(0,Te.Z)({},Et),xt=dt(we,Tt.width);if(xt)Tt.width=xt;else{var en=Math.floor(at);Tt.width=$e===1?ke:en,ke-=en,$e-=1}return mt+=Tt.width,Tt});return[lt,mt]}return[Ee,we]},[Ee,we])}var It=["children"],Ut=["fixed"];function yn(Ee){return Xi(Ee).filter(function(we){return ae.isValidElement(we)}).map(function(we){var Oe=we.key,Be=we.props,ke=Be.children,$e=(0,Zt.Z)(Be,It),at=(0,Te.Z)({key:Oe},$e);return ke&&(at.children=yn(ke)),at})}function gr(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(Oe){return Oe&&(0,Ce.Z)(Oe)==="object"}).reduce(function(Oe,Be,ke){var $e=Be.fixed,at=$e===!0?"left":$e,mt="".concat(we,"-").concat(ke),lt=Be.children;return lt&&lt.length>0?[].concat((0,xo.Z)(Oe),(0,xo.Z)(gr(lt,mt).map(function(Et){return(0,Te.Z)({fixed:at},Et)}))):[].concat((0,xo.Z)(Oe),[(0,Te.Z)((0,Te.Z)({key:mt},Be),{},{fixed:at})])},[])}function _r(Ee){for(var we=!0,Oe=0;Oe<Ee.length;Oe+=1){var Be=Ee[Oe];if(we&&Be.fixed!=="left")we=!1;else if(!we&&Be.fixed==="left"){warning(!1,"Index ".concat(Oe-1," of `columns` missing `fixed='left'` prop."));break}}for(var ke=!0,$e=Ee.length-1;$e>=0;$e-=1){var at=Ee[$e];if(ke&&at.fixed!=="right")ke=!1;else if(!ke&&at.fixed==="right"){warning(!1,"Index ".concat($e+1," of `columns` missing `fixed='right'` prop."));break}}}function Fr(Ee){return Ee.map(function(we){var Oe=we.fixed,Be=(0,Zt.Z)(we,Ut),ke=Oe;return Oe==="left"?ke="right":Oe==="right"&&(ke="left"),(0,Te.Z)({fixed:ke},Be)})}function Qr(Ee,we){var Oe=Ee.prefixCls,Be=Ee.columns,ke=Ee.children,$e=Ee.expandable,at=Ee.expandedKeys,mt=Ee.columnTitle,lt=Ee.getRowKey,Et=Ee.onTriggerExpand,Tt=Ee.expandIcon,xt=Ee.rowExpandable,en=Ee.expandIconColumnIndex,Yt=Ee.direction,an=Ee.expandRowByClick,On=Ee.columnWidth,xn=Ee.fixed,zn=Ee.scrollWidth,Dn=ae.useMemo(function(){return Be||yn(ke)},[Be,ke]),Zn=ae.useMemo(function(){if($e){var vr,sr=Dn.slice();if(!sr.includes(te)){var Wn=en||0;Wn>=0&&sr.splice(Wn,0,te)}var dr=sr.indexOf(te);sr=sr.filter(function(Tr,Lo){return Tr!==te||Lo===dr});var $r=Dn[dr],_o;(xn==="left"||xn)&&!en?_o="left":(xn==="right"||xn)&&en===Dn.length?_o="right":_o=$r?$r.fixed:null;var no=(vr={},(0,Me.Z)(vr,Io,{className:"".concat(Oe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Me.Z)(vr,"title",mt),(0,Me.Z)(vr,"fixed",_o),(0,Me.Z)(vr,"className","".concat(Oe,"-row-expand-icon-cell")),(0,Me.Z)(vr,"width",On),(0,Me.Z)(vr,"render",function(Lo,Mo,pi){var Wo=lt(Mo,pi),$i=at.has(Wo),Zi=xt?xt(Mo):!0,oo=Tt({prefixCls:Oe,expanded:$i,expandable:Zi,record:Mo,onExpand:Et});return an?ae.createElement("span",{onClick:function(Jo){return Jo.stopPropagation()}},oo):oo}),vr);return sr.map(function(Tr){return Tr===te?no:Tr})}return Dn.filter(function(Tr){return Tr!==te})},[$e,Dn,lt,at,Tt,Yt]),Er=ae.useMemo(function(){var vr=Zn;return we&&(vr=we(vr)),vr.length||(vr=[{render:function(){return null}}]),vr},[we,Zn,Yt]),Nr=ae.useMemo(function(){return Yt==="rtl"?Fr(gr(Er)):gr(Er)},[Er,Yt,zn]),hr=ct(Nr,zn),Wr=(0,be.Z)(hr,2),ro=Wr[0],ar=Wr[1];return[Er,ro,ar]}var Yr=Qr;function Bo(Ee){var we,Oe=Ee.prefixCls,Be=Ee.record,ke=Ee.onExpand,$e=Ee.expanded,at=Ee.expandable,mt="".concat(Oe,"-row-expand-icon");if(!at)return ae.createElement("span",{className:Ve()(mt,"".concat(Oe,"-row-spaced"))});var lt=function(Tt){ke(Be,Tt),Tt.stopPropagation()};return ae.createElement("span",{className:Ve()(mt,(we={},(0,Me.Z)(we,"".concat(Oe,"-row-expanded"),$e),(0,Me.Z)(we,"".concat(Oe,"-row-collapsed"),!$e),we)),onClick:lt})}function No(Ee,we,Oe){var Be=[];function ke($e){($e||[]).forEach(function(at,mt){Be.push(we(at,mt)),ke(at[Oe])})}return ke(Ee),Be}function ti(Ee,we,Oe){var Be=ni(Ee),ke=Be.expandIcon,$e=Be.expandedRowKeys,at=Be.defaultExpandedRowKeys,mt=Be.defaultExpandAllRows,lt=Be.expandedRowRender,Et=Be.onExpand,Tt=Be.onExpandedRowsChange,xt=Be.childrenColumnName,en=ke||Bo,Yt=xt||"children",an=ae.useMemo(function(){return lt?"row":Ee.expandable&&Ee.internalHooks===ue&&Ee.expandable.__PARENT_RENDER_ICON__||we.some(function(Nr){return Nr&&(0,Ce.Z)(Nr)==="object"&&Nr[Yt]})?"nest":!1},[!!lt,we]),On=ae.useState(function(){return at||(mt?No(we,Oe,Yt):[])}),xn=(0,be.Z)(On,2),zn=xn[0],Dn=xn[1],Zn=ae.useMemo(function(){return new Set($e||zn||[])},[$e,zn]),Er=ae.useCallback(function(Nr){var hr=Oe(Nr,we.indexOf(Nr)),Wr,ro=Zn.has(hr);ro?(Zn.delete(hr),Wr=(0,xo.Z)(Zn)):Wr=[].concat((0,xo.Z)(Zn),[hr]),Dn(Wr),Et&&Et(!ro,Nr),Tt&&Tt(Wr)},[Oe,Zn,we,Et,Tt]);return[Be,an,Zn,en,Yt,Er]}function yt(Ee,we,Oe,Be){var ke=Ee.map(function($e,at){return et(at,at,Ee,we,Oe,Be==null?void 0:Be[at])});return gt(function(){return ke},[ke],function($e,at){return!Ct($e,at)})}function _t(Ee){var we=(0,ae.useRef)(Ee),Oe=(0,ae.useState)({}),Be=(0,be.Z)(Oe,2),ke=Be[1],$e=(0,ae.useRef)(null),at=(0,ae.useRef)([]);function mt(lt){at.current.push(lt);var Et=Promise.resolve();$e.current=Et,Et.then(function(){if($e.current===Et){var Tt=at.current,xt=we.current;at.current=[],Tt.forEach(function(en){we.current=en(we.current)}),$e.current=null,xt!==we.current&&ke({})}})}return(0,ae.useEffect)(function(){return function(){$e.current=null}},[]),[we.current,mt]}function jt(Ee){var we=(0,ae.useRef)(Ee||null),Oe=(0,ae.useRef)();function Be(){window.clearTimeout(Oe.current)}function ke(at){we.current=at,Be(),Oe.current=window.setTimeout(function(){we.current=null,Oe.current=void 0},100)}function $e(){return we.current}return(0,ae.useEffect)(function(){return Be},[]),[ke,$e]}function ze(){var Ee=ae.useState(-1),we=(0,be.Z)(Ee,2),Oe=we[0],Be=we[1],ke=ae.useState(-1),$e=(0,be.Z)(ke,2),at=$e[0],mt=$e[1],lt=ae.useCallback(function(Et,Tt){Be(Et),mt(Tt)},[]);return[Oe,at,lt]}var zt=Kn()?window:null;function tn(Ee,we){var Oe=(0,Ce.Z)(Ee)==="object"?Ee:{},Be=Oe.offsetHeader,ke=Be===void 0?0:Be,$e=Oe.offsetSummary,at=$e===void 0?0:$e,mt=Oe.offsetScroll,lt=mt===void 0?0:mt,Et=Oe.getContainer,Tt=Et===void 0?function(){return zt}:Et,xt=Tt()||zt;return ae.useMemo(function(){var en=!!Ee;return{isSticky:en,stickyClassName:en?"".concat(we,"-sticky-holder"):"",offsetHeader:ke,offsetSummary:at,offsetScroll:lt,container:xt}},[lt,ke,at,we,xt])}function dn(Ee,we,Oe){var Be=(0,ae.useMemo)(function(){for(var ke=[],$e=[],at=0,mt=0,lt=0;lt<we;lt+=1)if(Oe==="rtl"){$e[lt]=mt,mt+=Ee[lt]||0;var Et=we-lt-1;ke[Et]=at,at+=Ee[Et]||0}else{ke[lt]=at,at+=Ee[lt]||0;var Tt=we-lt-1;$e[Tt]=mt,mt+=Ee[Tt]||0}return{left:ke,right:$e}},[Ee,we,Oe]);return Be}var Lt=dn;function Rt(Ee){var we=Ee.className,Oe=Ee.children;return ae.createElement("div",{className:we},Oe)}var Nt=Rt;function vn(Ee,we,Oe,Be){var ke=he.unstable_batchedUpdates?function(at){he.unstable_batchedUpdates(Oe,at)}:Oe;return Ee!=null&&Ee.addEventListener&&Ee.addEventListener(we,ke,Be),{remove:function(){Ee!=null&&Ee.removeEventListener&&Ee.removeEventListener(we,ke,Be)}}}var In=/margin|padding|width|height|max|min|offset/,Xn={left:!0,top:!0},Un={cssFloat:1,styleFloat:1,float:1};function tr(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function cr(Ee,we,Oe){if(we=we.toLowerCase(),Oe==="auto"){if(we==="height")return Ee.offsetHeight;if(we==="width")return Ee.offsetWidth}return we in Xn||(Xn[we]=In.test(we)),Xn[we]?parseFloat(Oe)||0:Oe}function Ar(Ee,we){var Oe=arguments.length,Be=tr(Ee);return we=Un[we]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":we,Oe===1?Be:cr(Ee,we,Be[we]||Ee.style[we])}function Ln(Ee,we,Oe){var Be=arguments.length;if(we=Un[we]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":we,Be===3)return typeof Oe=="number"&&In.test(we)&&(Oe="".concat(Oe,"px")),Ee.style[we]=Oe,Oe;for(var ke in we)we.hasOwnProperty(ke)&&Ln(Ee,ke,we[ke]);return tr(Ee)}function nn(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function Wt(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function qt(){var Ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),we=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ee,height:we}}function hn(){var Ee=document.documentElement.clientWidth,we=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:we}}function Qn(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ue(Ee){var we=Ee.getBoundingClientRect(),Oe=document.documentElement;return{left:we.left+(window.pageXOffset||Oe.scrollLeft)-(Oe.clientLeft||document.body.clientLeft||0),top:we.top+(window.pageYOffset||Oe.scrollTop)-(Oe.clientTop||document.body.clientTop||0)}}var Fe=function(we,Oe){var Be,ke,$e=we.scrollBodyRef,at=we.onScroll,mt=we.offsetScroll,lt=we.container,Et=fe(ce,"prefixCls"),Tt=((Be=$e.current)===null||Be===void 0?void 0:Be.scrollWidth)||0,xt=((ke=$e.current)===null||ke===void 0?void 0:ke.clientWidth)||0,en=Tt&&xt*(xt/Tt),Yt=ae.useRef(),an=_t({scrollLeft:0,isHiddenScrollBar:!1}),On=(0,be.Z)(an,2),xn=On[0],zn=On[1],Dn=ae.useRef({delta:0,x:0}),Zn=ae.useState(!1),Er=(0,be.Z)(Zn,2),Nr=Er[0],hr=Er[1],Wr=function(){hr(!1)},ro=function(dr){dr.persist(),Dn.current.delta=dr.pageX-xn.scrollLeft,Dn.current.x=0,hr(!0),dr.preventDefault()},ar=function(dr){var $r,_o=dr||(($r=window)===null||$r===void 0?void 0:$r.event),no=_o.buttons;if(!Nr||no===0){Nr&&hr(!1);return}var Tr=Dn.current.x+dr.pageX-Dn.current.x-Dn.current.delta;Tr<=0&&(Tr=0),Tr+en>=xt&&(Tr=xt-en),at({scrollLeft:Tr/xt*(Tt+2)}),Dn.current.x=dr.pageX},vr=function(){if($e.current){var dr=Ue($e.current).top,$r=dr+$e.current.offsetHeight,_o=lt===window?document.documentElement.scrollTop+window.innerHeight:Ue(lt).top+lt.clientHeight;$r-Pe()<=_o||dr>=_o-mt?zn(function(no){return(0,Te.Z)((0,Te.Z)({},no),{},{isHiddenScrollBar:!0})}):zn(function(no){return(0,Te.Z)((0,Te.Z)({},no),{},{isHiddenScrollBar:!1})})}},sr=function(dr){zn(function($r){return(0,Te.Z)((0,Te.Z)({},$r),{},{scrollLeft:dr/Tt*xt||0})})};return ae.useImperativeHandle(Oe,function(){return{setScrollLeft:sr}}),ae.useEffect(function(){var Wn=vn(document.body,"mouseup",Wr,!1),dr=vn(document.body,"mousemove",ar,!1);return vr(),function(){Wn.remove(),dr.remove()}},[en,Nr]),ae.useEffect(function(){var Wn=vn(lt,"scroll",vr,!1),dr=vn(window,"resize",vr,!1);return function(){Wn.remove(),dr.remove()}},[lt]),ae.useEffect(function(){xn.isHiddenScrollBar||zn(function(Wn){var dr=$e.current;return dr?(0,Te.Z)((0,Te.Z)({},Wn),{},{scrollLeft:dr.scrollLeft/dr.scrollWidth*dr.clientWidth}):Wn})},[xn.isHiddenScrollBar]),Tt<=xt||!en||xn.isHiddenScrollBar?null:ae.createElement("div",{style:{height:Pe(),width:xt,bottom:mt},className:"".concat(Et,"-sticky-scroll")},ae.createElement("div",{onMouseDown:ro,ref:Yt,className:Ve()("".concat(Et,"-sticky-scroll-bar"),(0,Me.Z)({},"".concat(Et,"-sticky-scroll-bar-active"),Nr)),style:{width:"".concat(en,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},nt=ae.forwardRef(Fe);function St(Ee){return null}var Mt=St;function Ft(Ee){return null}var ln=Ft,gn="rc-table",Nn=[],Bn={};function Fn(){return"No Data"}function jn(Ee){var we,Oe=(0,Te.Z)({rowKey:"key",prefixCls:gn,emptyText:Fn},Ee),Be=Oe.prefixCls,ke=Oe.className,$e=Oe.rowClassName,at=Oe.style,mt=Oe.data,lt=Oe.rowKey,Et=Oe.scroll,Tt=Oe.tableLayout,xt=Oe.direction,en=Oe.title,Yt=Oe.footer,an=Oe.summary,On=Oe.caption,xn=Oe.id,zn=Oe.showHeader,Dn=Oe.components,Zn=Oe.emptyText,Er=Oe.onRow,Nr=Oe.onHeaderRow,hr=Oe.internalHooks,Wr=Oe.transformColumns,ro=Oe.internalRefs,ar=Oe.tailor,vr=Oe.sticky,sr=mt||Nn,Wn=!!sr.length,dr=hr===ue,$r=ae.useCallback(function(li,Ii){return Gt(Dn,li)||Ii},[Dn]),_o=ae.useMemo(function(){return typeof lt=="function"?lt:function(li){var Ii=li&&li[lt];return Ii}},[lt]),no=$r(["body"]),Tr=ze(),Lo=(0,be.Z)(Tr,3),Mo=Lo[0],pi=Lo[1],Wo=Lo[2],$i=ti(Oe,sr,_o),Zi=(0,be.Z)($i,6),oo=Zi[0],qi=Zi[1],Jo=Zi[2],Ti=Zi[3],Oi=Zi[4],La=Zi[5],Ur=Et==null?void 0:Et.x,Br=ae.useState(0),Ir=(0,be.Z)(Br,2),xr=Ir[0],qo=Ir[1],Mr=Yr((0,Te.Z)((0,Te.Z)((0,Te.Z)({},Oe),oo),{},{expandable:!!oo.expandedRowRender,columnTitle:oo.columnTitle,expandedKeys:Jo,getRowKey:_o,onTriggerExpand:La,expandIcon:Ti,expandIconColumnIndex:oo.expandIconColumnIndex,direction:xt,scrollWidth:dr&&ar&&typeof Ur=="number"?Ur:null}),dr?Wr:null),eo=(0,be.Z)(Mr,3),Ho=eo[0],jo=eo[1],ha=eo[2],la=ha!=null?ha:Ur,Za=ae.useMemo(function(){return{columns:Ho,flattenColumns:jo}},[Ho,jo]),ea=ae.useRef(),Ha=ae.useRef(),ta=ae.useRef(),xa=ae.useRef(),Ms=ae.useRef(),oi=ae.useState(!1),si=(0,be.Z)(oi,2),Fi=si[0],ra=si[1],oa=ae.useState(!1),Ao=(0,be.Z)(oa,2),Pa=Ao[0],ma=Ao[1],Ia=_t(new Map),ns=(0,be.Z)(Ia,2),Wa=ns[0],$s=ns[1],cs=Mn(jo),Ua=cs.map(function(li){return Wa.get(li)}),Ma=ae.useMemo(function(){return Ua},[Ua.join("_")]),ba=Lt(Ma,jo.length,xt),ia=Et&&Hn(Et.y),ki=Et&&Hn(la)||!!oo.fixed,rs=ki&&jo.some(function(li){var Ii=li.fixed;return Ii}),As=ae.useRef(),ps=tn(vr,Be),os=ps.isSticky,tl=ps.offsetHeader,pl=ps.offsetSummary,Uo=ps.offsetScroll,Li=ps.stickyClassName,da=ps.container,ji=ae.useMemo(function(){return an==null?void 0:an(sr)},[an,sr]),pa=(ia||os)&&ae.isValidElement(ji)&&ji.type===sn&&ji.props.fixed,Aa,Da,us;ia&&(Da={overflowY:"scroll",maxHeight:Et.y}),ki&&(Aa={overflowX:"auto"},ia||(Da={overflowY:"hidden"}),us={width:la===!0?"auto":la,minWidth:"100%"});var wl=ae.useCallback(function(li,Ii){Cr(ea.current)&&$s(function(Ga){if(Ga.get(li)!==Ii){var vs=new Map(Ga);return vs.set(li,Ii),vs}return Ga})},[]),Gl=jt(null),Ll=(0,be.Z)(Gl,2),$l=Ll[0],xl=Ll[1];function nl(li,Ii){Ii&&(typeof Ii=="function"?Ii(li):Ii.scrollLeft!==li&&(Ii.scrollLeft=li,Ii.scrollLeft!==li&&setTimeout(function(){Ii.scrollLeft=li},0)))}var Rs=bn(function(li){var Ii=li.currentTarget,Ga=li.scrollLeft,vs=xt==="rtl",Ss=typeof Ga=="number"?Ga:Ii.scrollLeft,Ul=Ii||Bn;if(!xl()||xl()===Ul){var Pl;$l(Ul),nl(Ss,Ha.current),nl(Ss,ta.current),nl(Ss,Ms.current),nl(Ss,(Pl=As.current)===null||Pl===void 0?void 0:Pl.setScrollLeft)}var bl=Ii||Ha.current;if(bl){var El=bl.scrollWidth,Cl=bl.clientWidth;if(El===Cl){ra(!1),ma(!1);return}vs?(ra(-Ss<El-Cl),ma(-Ss>0)):(ra(Ss>0),ma(Ss<El-Cl))}}),Ml=function(){ki&&ta.current?Rs({currentTarget:ta.current}):(ra(!1),ma(!1))},Zl=function(Ii){var Ga=Ii.width;Ga!==xr&&(Ml(),qo(ea.current?ea.current.offsetWidth:Ga))},Al=ae.useRef(!1);ae.useEffect(function(){Al.current&&Ml()},[ki,mt,Ho.length]),ae.useEffect(function(){Al.current=!0},[]);var Wl=ae.useState(0),Dl=(0,be.Z)(Wl,2),rl=Dl[0],Nl=Dl[1],Kl=ae.useState(!0),Ol=(0,be.Z)(Kl,2),Rl=Ol[0],Vl=Ol[1];ae.useEffect(function(){(!ar||!dr)&&(ta.current instanceof Element?Nl(Ne(ta.current).width):Nl(Ne(xa.current).width)),Vl(ge("position","sticky"))},[]),ae.useEffect(function(){dr&&ro&&(ro.body.current=ta.current)});var Yl=ae.useCallback(function(li){return ae.createElement(ae.Fragment,null,ae.createElement(xi,li),pa==="top"&&ae.createElement($t,li,ji))},[pa,ji]),Xl=ae.useCallback(function(li){return ae.createElement($t,li,ji)},[ji]),Tl=$r(["table"],"table"),ol=ae.useMemo(function(){return Tt||(rs?la==="max-content"?"auto":"fixed":ia||os||jo.some(function(li){var Ii=li.ellipsis;return Ii})?"fixed":"auto")},[ia,rs,jo,Tt,os]),vl,Sl={colWidths:Ma,columCount:jo.length,stickyOffsets:ba,onHeaderRow:Nr,fixHeader:ia,scroll:Et},Il=ae.useMemo(function(){return Wn?null:typeof Zn=="function"?Zn():Zn},[Wn,Zn]),Bl=ae.createElement(Vr,{data:sr,measureColumnWidth:ia||ki||os}),Fl=ae.createElement(fn,{colWidths:jo.map(function(li){var Ii=li.width;return Ii}),columns:jo}),kl=On!=null?ae.createElement("caption",{className:"".concat(Be,"-caption")},On):void 0,Ql=Pr(Oe,{data:!0}),jl=Pr(Oe,{aria:!0});if(ia||os){var yl;typeof no=="function"?(yl=no(sr,{scrollbarSize:rl,ref:ta,onScroll:Rs}),Sl.colWidths=jo.map(function(li,Ii){var Ga=li.width,vs=Ii===jo.length-1?Ga-rl:Ga;return typeof vs=="number"&&!Number.isNaN(vs)?vs:0})):yl=ae.createElement("div",{style:(0,Te.Z)((0,Te.Z)({},Aa),Da),onScroll:Rs,ref:ta,className:Ve()("".concat(Be,"-body"))},ae.createElement(Tl,(0,se.Z)({style:(0,Te.Z)((0,Te.Z)({},us),{},{tableLayout:ol})},jl),kl,Fl,Bl,!pa&&ji&&ae.createElement($t,{stickyOffsets:ba,flattenColumns:jo,columns:Ho},ji)));var zl=(0,Te.Z)((0,Te.Z)((0,Te.Z)({noData:!sr.length,maxContentScroll:ki&&la==="max-content"},Sl),Za),{},{direction:xt,stickyClassName:Li,onScroll:Rs});vl=ae.createElement(ae.Fragment,null,zn!==!1&&ae.createElement(wr,(0,se.Z)({},zl,{stickyTopOffset:tl,className:"".concat(Be,"-header"),ref:Ha}),Yl),yl,pa&&pa!=="top"&&ae.createElement(wr,(0,se.Z)({},zl,{stickyBottomOffset:pl,className:"".concat(Be,"-summary"),ref:Ms}),Xl),os&&ae.createElement(nt,{ref:As,offsetScroll:Uo,scrollBodyRef:ta,onScroll:Rs,container:da}))}else vl=ae.createElement("div",{style:(0,Te.Z)((0,Te.Z)({},Aa),Da),className:Ve()("".concat(Be,"-content")),onScroll:Rs,ref:ta},ae.createElement(Tl,(0,se.Z)({style:(0,Te.Z)((0,Te.Z)({},us),{},{tableLayout:ol})},jl),kl,Fl,zn!==!1&&ae.createElement(xi,(0,se.Z)({},Sl,Za)),Bl,ji&&ae.createElement($t,{stickyOffsets:ba,flattenColumns:jo,columns:Ho},ji)));var _l=ae.createElement("div",(0,se.Z)({className:Ve()(Be,ke,(we={},(0,Me.Z)(we,"".concat(Be,"-rtl"),xt==="rtl"),(0,Me.Z)(we,"".concat(Be,"-ping-left"),Fi),(0,Me.Z)(we,"".concat(Be,"-ping-right"),Pa),(0,Me.Z)(we,"".concat(Be,"-layout-fixed"),Tt==="fixed"),(0,Me.Z)(we,"".concat(Be,"-fixed-header"),ia),(0,Me.Z)(we,"".concat(Be,"-fixed-column"),rs),(0,Me.Z)(we,"".concat(Be,"-scroll-horizontal"),ki),(0,Me.Z)(we,"".concat(Be,"-has-fix-left"),jo[0]&&jo[0].fixed),(0,Me.Z)(we,"".concat(Be,"-has-fix-right"),jo[jo.length-1]&&jo[jo.length-1].fixed==="right"),we)),style:at,id:xn,ref:ea},Ql),en&&ae.createElement(Nt,{className:"".concat(Be,"-title")},en(sr)),ae.createElement("div",{ref:xa,className:"".concat(Be,"-container")},vl),Yt&&ae.createElement(Nt,{className:"".concat(Be,"-footer")},Yt(sr)));ki&&(_l=ae.createElement(io.Z,{onResize:Zl},_l));var Hl=yt(jo,ba,xt,Ho),Jl=ae.useMemo(function(){return{scrollX:la,prefixCls:Be,getComponent:$r,scrollbarSize:rl,direction:xt,fixedInfoList:Hl,isSticky:os,supportSticky:Rl,componentWidth:xr,fixHeader:ia,fixColumn:rs,horizonScroll:ki,tableLayout:ol,rowClassName:$e,expandedRowClassName:oo.expandedRowClassName,expandIcon:Ti,expandableType:qi,expandRowByClick:oo.expandRowByClick,expandedRowRender:oo.expandedRowRender,onTriggerExpand:La,expandIconColumnIndex:oo.expandIconColumnIndex,indentSize:oo.indentSize,allColumnsFixedLeft:jo.every(function(li){return li.fixed==="left"}),emptyNode:Il,columns:Ho,flattenColumns:jo,onColumnResize:wl,hoverStartRow:Mo,hoverEndRow:pi,onHover:Wo,rowExpandable:oo.rowExpandable,onRow:Er,getRowKey:_o,expandedKeys:Jo,childrenColumnName:Oi}},[la,Be,$r,rl,xt,Hl,os,Rl,xr,ia,rs,ki,ol,$e,oo.expandedRowClassName,Ti,qi,oo.expandRowByClick,oo.expandedRowRender,La,oo.expandIconColumnIndex,oo.indentSize,Il,Ho,jo,wl,Mo,pi,Wo,oo.rowExpandable,Er,_o,Jo,Oi]);return ae.createElement(ce.Provider,{value:Jl},_l)}function Jn(Ee){return x(jn,Ee)}var or=Jn();or.EXPAND_COLUMN=te,or.INTERNAL_HOOKS=ue,or.Column=Mt,or.ColumnGroup=ln,or.Summary=on;var Jr=or,bo=ee(73299),Zr=le(null),ao=le(null);function co(Ee,we,Oe){var Be=we||1;return Oe[Ee+Be]-(Oe[Ee]||0)}function vo(Ee){var we=Ee.rowInfo,Oe=Ee.column,Be=Ee.colIndex,ke=Ee.indent,$e=Ee.index,at=Ee.renderIndex,mt=Ee.record,lt=Ee.style,Et=Ee.className,Tt=Ee.inverse,xt=Ee.getHeight,en=Oe.render,Yt=Oe.dataIndex,an=Oe.className,On=Oe.width,xn=fe(ao,["columnsOffset"]),zn=xn.columnsOffset,Dn=Yn(we,Oe,Be,ke,$e),Zn=Dn.key,Er=Dn.fixedInfo,Nr=Dn.appendCellNode,hr=Dn.additionalCellProps,Wr=hr.style,ro=hr.colSpan,ar=ro===void 0?1:ro,vr=hr.rowSpan,sr=vr===void 0?1:vr,Wn=Be-1,dr=co(Wn,ar,zn),$r=ar>1?On-dr:0,_o=(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Wr),lt),{},{flex:"0 0 ".concat(dr,"px"),width:"".concat(dr,"px"),marginRight:$r,pointerEvents:"auto"}),no=ae.useMemo(function(){return Tt?sr<=1:ar===0||sr===0||sr>1},[sr,ar,Tt]);no?_o.visibility="hidden":Tt&&(_o.height=xt==null?void 0:xt(sr));var Tr=no?function(){return null}:en,Lo={};return(sr===0||ar===0)&&(Lo.rowSpan=1,Lo.colSpan=1),ae.createElement(At,(0,se.Z)({className:Ve()(an,Et),ellipsis:Oe.ellipsis,align:Oe.align,scope:Oe.rowScope,component:"div",prefixCls:we.prefixCls,key:Zn,record:mt,index:$e,renderIndex:at,dataIndex:Yt,render:Tr,shouldCellUpdate:Oe.shouldCellUpdate},Er,{appendNode:Nr,additionalProps:(0,Te.Z)((0,Te.Z)({},hr),{},{style:_o},Lo)}))}var Rr=vo,qr=["data","index","className","rowKey","style","extra","getHeight"],Eo=ae.forwardRef(function(Ee,we){var Oe=Ee.data,Be=Ee.index,ke=Ee.className,$e=Ee.rowKey,at=Ee.style,mt=Ee.extra,lt=Ee.getHeight,Et=(0,Zt.Z)(Ee,qr),Tt=Oe.record,xt=Oe.indent,en=Oe.index,Yt=fe(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),an=Yt.scrollX,On=Yt.flattenColumns,xn=Yt.prefixCls,zn=Yt.fixColumn,Dn=Yt.componentWidth,Zn=An(Tt,$e,Be,xt),Er=Zn.rowSupportExpand,Nr=Zn.expanded,hr=Zn.rowProps,Wr=Zn.expandedRowRender,ro=Zn.expandedRowClassName,ar;if(Er&&Nr){var vr=Wr(Tt,Be,xt+1,Nr),sr=ro==null?void 0:ro(Tt,Be,xt),Wn={};zn&&(Wn={style:(0,Me.Z)({},"--virtual-width","".concat(Dn,"px"))});var dr="".concat(xn,"-expanded-row-cell");ar=ae.createElement("div",{className:Ve()("".concat(xn,"-expanded-row"),"".concat(xn,"-expanded-row-level-").concat(xt+1),sr)},ae.createElement(At,{component:"div",prefixCls:xn,className:Ve()(dr,(0,Me.Z)({},"".concat(dr,"-fixed"),zn)),additionalProps:Wn},vr))}var $r=(0,Te.Z)((0,Te.Z)({},at),{},{width:an});mt&&($r.position="absolute",$r.pointerEvents="none");var _o=ae.createElement("div",(0,se.Z)({},hr,Et,{ref:Er?null:we,className:Ve()(ke,"".concat(xn,"-row"),hr==null?void 0:hr.className,(0,Me.Z)({},"".concat(xn,"-row-extra"),mt)),style:(0,Te.Z)((0,Te.Z)({},$r),hr==null?void 0:hr.style)}),On.map(function(no,Tr){return ae.createElement(Rr,{key:Tr,rowInfo:Zn,column:no,colIndex:Tr,indent:xt,index:Be,renderIndex:en,record:Tt,inverse:mt,getHeight:lt})}));return Er?ae.createElement("div",{ref:we},_o,ar):_o}),ii=z(Eo),uo=ii,ui=ae.forwardRef(function(Ee,we){var Oe=Ee.data,Be=Ee.onScroll,ke=fe(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),$e=ke.flattenColumns,at=ke.onColumnResize,mt=ke.getRowKey,lt=ke.expandedKeys,Et=ke.prefixCls,Tt=ke.childrenColumnName,xt=ke.emptyNode,en=ke.scrollX,Yt=fe(Zr),an=Yt.scrollY,On=Yt.listItemHeight,xn=ae.useRef(),zn=qn(Oe,Tt,lt,mt),Dn=ae.useMemo(function(){var ar=0;return $e.map(function(vr){var sr=vr.width,Wn=vr.key;return ar+=sr,[Wn,sr,ar]})},[$e]),Zn=ae.useMemo(function(){return Dn.map(function(ar){return ar[2]})},[Dn]);ae.useEffect(function(){Dn.forEach(function(ar){var vr=(0,be.Z)(ar,2),sr=vr[0],Wn=vr[1];at(sr,Wn)})},[Dn]),ae.useImperativeHandle(we,function(){var ar={};return Object.defineProperty(ar,"scrollLeft",{get:function(){var sr;return((sr=xn.current)===null||sr===void 0?void 0:sr.getScrollInfo().x)||0},set:function(sr){var Wn;(Wn=xn.current)===null||Wn===void 0||Wn.scrollTo({left:sr})}}),ar});var Er=function(vr,sr){var Wn,dr=(Wn=zn[sr])===null||Wn===void 0?void 0:Wn.record,$r=vr.onCell;if($r){var _o,no=$r(dr,sr);return(_o=no==null?void 0:no.rowSpan)!==null&&_o!==void 0?_o:1}return 1},Nr=function(vr){var sr=vr.start,Wn=vr.end,dr=vr.getSize,$r=vr.offsetY;if(Wn<0)return null;for(var _o=$e.filter(function(Ur){return Er(Ur,sr)===0}),no=sr,Tr=function(Br){if(_o=_o.filter(function(Ir){return Er(Ir,Br)===0}),!_o.length)return no=Br,"break"},Lo=sr;Lo>=0;Lo-=1){var Mo=Tr(Lo);if(Mo==="break")break}for(var pi=$e.filter(function(Ur){return Er(Ur,Wn)!==1}),Wo=Wn,$i=function(Br){if(pi=pi.filter(function(Ir){return Er(Ir,Br)!==1}),!pi.length)return Wo=Math.max(Br-1,Wn),"break"},Zi=Wn;Zi<zn.length;Zi+=1){var oo=$i(Zi);if(oo==="break")break}for(var qi=[],Jo=function(Br){var Ir=zn[Br];if(!Ir)return"continue";$e.some(function(xr){return Er(xr,Br)>1})&&qi.push(Br)},Ti=no;Ti<=Wo;Ti+=1)var Oi=Jo(Ti);var La=qi.map(function(Ur){var Br=zn[Ur],Ir=mt(Br.record,Ur),xr=function(eo){var Ho=Ur+eo-1,jo=mt(zn[Ho].record,Ho),ha=dr(Ir,jo);return ha.bottom-ha.top},qo=dr(Ir);return ae.createElement(uo,{key:Ur,data:Br,rowKey:Ir,index:Ur,style:{top:-$r+qo.top},extra:!0,getHeight:xr})});return La},hr=ae.useMemo(function(){return{columnsOffset:Zn}},[Zn]),Wr="".concat(Et,"-tbody"),ro;return zn.length?ro=ae.createElement(bo.Z,{fullHeight:!1,ref:xn,className:Ve()(Wr,"".concat(Wr,"-virtual")),height:an,itemHeight:On||24,data:zn,itemKey:function(vr){return mt(vr.record)},scrollWidth:en,onVirtualScroll:function(vr){var sr=vr.x;Be({scrollLeft:sr})},extraRender:Nr},function(ar,vr,sr){var Wn=mt(ar.record,vr);return ae.createElement(uo,(0,se.Z)({data:ar,rowKey:Wn,index:vr},sr))}):ro=ae.createElement("div",{className:Ve()("".concat(Et,"-placeholder"))},ae.createElement(At,{component:"div",prefixCls:Et},xt)),ae.createElement(ao.Provider,{value:hr},ro)}),zo=z(ui),zi=zo,Mi=function(we,Oe){var Be=Oe.ref,ke=Oe.onScroll;return ae.createElement(zi,{ref:Be,data:we,onScroll:ke})},mi=100;function So(Ee){var we=Ee.columns,Oe=Ee.scroll,Be=Ee.prefixCls,ke=Be===void 0?gn:Be,$e=Ee.className,at=Ee.listItemHeight,mt=Oe||{},lt=mt.x,Et=mt.y;typeof lt!="number"&&(lt=((we||[]).length+1)*mi),typeof Et!="number"&&(Et=500);var Tt=ae.useMemo(function(){return{scrollY:Et,listItemHeight:at}},[Et,at]);return ae.createElement(Zr.Provider,{value:Tt},ae.createElement(Jr,(0,se.Z)({},Ee,{className:Ve()($e,"".concat(ke,"-virtual")),scroll:(0,Te.Z)((0,Te.Z)({},Oe),{},{x:lt}),components:{body:Mi},columns:we,internalHooks:ue,tailor:!0})))}function Co(Ee){return x(So,Ee)}var Xo=Co(),vi=null;function Ai(Ee){return null}var Oo=Ai;function Bi(Ee){return null}var Ri=Bi,Hi=ee(10366),Wi=ee(58375),Qo=ee(53124),Si=ee(88258),ai=ee(98675),yi=ee(25378),aa=ee(24457),ca=ee(28452),Ci=ee(57953),_i=ee(46605);function Ki(Ee){return function(Oe){let{prefixCls:Be,onExpand:ke,record:$e,expanded:at,expandable:mt}=Oe;const lt=`${Be}-row-expand-icon`;return ae.createElement("button",{type:"button",onClick:Et=>{ke($e,Et),Et.stopPropagation()},className:Ve()(lt,{[`${lt}-spaced`]:!mt,[`${lt}-expanded`]:mt&&at,[`${lt}-collapsed`]:mt&&!at}),"aria-label":at?Ee.collapse:Ee.expand,"aria-expanded":at})}}var ka=Ki;function Ea(Ee,we){return"key"in Ee&&Ee.key!==void 0&&Ee.key!==null?Ee.key:Ee.dataIndex?Array.isArray(Ee.dataIndex)?Ee.dataIndex.join("."):Ee.dataIndex:we}function Ca(Ee,we){return we?`${we}-${Ee}`:`${Ee}`}function Na(Ee,we){return typeof Ee=="function"?Ee(we):Ee}function va(Ee,we){const Oe=Na(Ee,we);return Object.prototype.toString.call(Oe)==="[object Object]"?"":Oe}var ua={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},sa=ua,Oa=ee(74643),Ba=function(we,Oe){return ae.createElement(Oa.Z,(0,se.Z)({},we,{ref:Oe,icon:sa}))},is=ae.forwardRef(Ba),ys=ee(7699),Ka=ee(57838);function _s(Ee){const we=ae.useRef(Ee),Oe=(0,Ka.Z)();return[()=>we.current,Be=>{we.current=Be,Oe()}]}var as=ee(71577),Va=ee(84567),Fa=ee(85418),Ra=ee(32983),ss=ee(68508),ds=ee(76529),Ya=ee(78045),Ts=ee(79870),Ds=ee(72395),Is=ee(69677);function Bs(Ee){let{value:we,onChange:Oe,filterSearch:Be,tablePrefixCls:ke,locale:$e}=Ee;return Be?ae.createElement("div",{className:`${ke}-filter-dropdown-search`},ae.createElement(Is.default,{prefix:ae.createElement(Ds.Z,null),placeholder:$e.filterSearchPlaceholder,onChange:Oe,value:we,htmlSize:1,className:`${ke}-filter-dropdown-search-input`})):null}var Ns=Bs,gs=ee(92389);const Qi=Ee=>{const{keyCode:we}=Ee;we===gs.Z.ENTER&&Ee.stopPropagation()};var $a=ae.forwardRef((Ee,we)=>ae.createElement("div",{className:Ee.className,onClick:Oe=>Oe.stopPropagation(),onKeyDown:Qi,ref:we},Ee.children));function Ui(Ee){let we=[];return(Ee||[]).forEach(Oe=>{let{value:Be,children:ke}=Oe;we.push(Be),ke&&(we=[].concat((0,xo.Z)(we),(0,xo.Z)(Ui(ke))))}),we}function wa(Ee){return Ee.some(we=>{let{children:Oe}=we;return Oe})}function Sa(Ee,we){return typeof we=="string"||typeof we=="number"?we==null?void 0:we.toString().toLowerCase().includes(Ee.trim().toLowerCase()):!1}function Xa(Ee){let{filters:we,prefixCls:Oe,filteredKeys:Be,filterMultiple:ke,searchValue:$e,filterSearch:at}=Ee;return we.map((mt,lt)=>{const Et=String(mt.value);if(mt.children)return{key:Et||lt,label:mt.text,popupClassName:`${Oe}-dropdown-submenu`,children:Xa({filters:mt.children,prefixCls:Oe,filteredKeys:Be,filterMultiple:ke,searchValue:$e,filterSearch:at})};const Tt=ke?Va.default:Ya.ZP,xt={key:mt.value!==void 0?Et:lt,label:ae.createElement(ae.Fragment,null,ae.createElement(Tt,{checked:Be.includes(Et)}),ae.createElement("span",null,mt.text))};return $e.trim()?typeof at=="function"?at($e,mt)?xt:null:Sa($e,mt.text)?xt:null:xt})}function Qa(Ee){var we,Oe;const{tablePrefixCls:Be,prefixCls:ke,column:$e,dropdownPrefixCls:at,columnKey:mt,filterMultiple:lt,filterMode:Et="menu",filterSearch:Tt=!1,filterState:xt,triggerFilter:en,locale:Yt,children:an,getPopupContainer:On}=Ee,{filterDropdownOpen:xn,onFilterDropdownOpenChange:zn,filterResetToDefaultFilteredValue:Dn,defaultFilteredValue:Zn,filterDropdownVisible:Er,onFilterDropdownVisibleChange:Nr}=$e,[hr,Wr]=ae.useState(!1),ro=!!(xt&&(!((we=xt.filteredKeys)===null||we===void 0)&&we.length||xt.forceFiltered)),ar=Mr=>{Wr(Mr),zn==null||zn(Mr),Nr==null||Nr(Mr)},vr=(Oe=xn!=null?xn:Er)!==null&&Oe!==void 0?Oe:hr,sr=xt==null?void 0:xt.filteredKeys,[Wn,dr]=_s(sr||[]),$r=Mr=>{let{selectedKeys:eo}=Mr;dr(eo)},_o=(Mr,eo)=>{let{node:Ho,checked:jo}=eo;$r(lt?{selectedKeys:Mr}:{selectedKeys:jo&&Ho.key?[Ho.key]:[]})};ae.useEffect(()=>{hr&&$r({selectedKeys:sr||[]})},[sr]);const[no,Tr]=ae.useState([]),Lo=Mr=>{Tr(Mr)},[Mo,pi]=ae.useState(""),Wo=Mr=>{const{value:eo}=Mr.target;pi(eo)};ae.useEffect(()=>{hr||pi("")},[hr]);const $i=Mr=>{const eo=Mr&&Mr.length?Mr:null;if(eo===null&&(!xt||!xt.filteredKeys)||(0,ys.Z)(eo,xt==null?void 0:xt.filteredKeys,!0))return null;en({column:$e,key:mt,filteredKeys:eo})},Zi=()=>{ar(!1),$i(Wn())},oo=function(){let{confirm:Mr,closeDropdown:eo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Mr&&$i([]),eo&&ar(!1),pi(""),dr(Dn?(Zn||[]).map(Ho=>String(Ho)):[])},qi=function(){let{closeDropdown:Mr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Mr&&ar(!1),$i(Wn())},Jo=Mr=>{Mr&&sr!==void 0&&dr(sr||[]),ar(Mr),!Mr&&!$e.filterDropdown&&Zi()},Ti=Ve()({[`${at}-menu-without-submenu`]:!wa($e.filters||[])}),Oi=Mr=>{if(Mr.target.checked){const eo=Ui($e==null?void 0:$e.filters).map(Ho=>String(Ho));dr(eo)}else dr([])},La=Mr=>{let{filters:eo}=Mr;return(eo||[]).map((Ho,jo)=>{const ha=String(Ho.value),la={title:Ho.text,key:Ho.value!==void 0?ha:jo};return Ho.children&&(la.children=La({filters:Ho.children})),la})},Ur=Mr=>{var eo;return Object.assign(Object.assign({},Mr),{text:Mr.title,value:Mr.key,children:((eo=Mr.children)===null||eo===void 0?void 0:eo.map(Ho=>Ur(Ho)))||[]})};let Br;if(typeof $e.filterDropdown=="function")Br=$e.filterDropdown({prefixCls:`${at}-custom`,setSelectedKeys:Mr=>$r({selectedKeys:Mr}),selectedKeys:Wn(),confirm:qi,clearFilters:oo,filters:$e.filters,visible:vr,close:()=>{ar(!1)}});else if($e.filterDropdown)Br=$e.filterDropdown;else{const Mr=Wn()||[],eo=()=>($e.filters||[]).length===0?ae.createElement(Ra.Z,{image:Ra.Z.PRESENTED_IMAGE_SIMPLE,description:Yt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Et==="tree"?ae.createElement(ae.Fragment,null,ae.createElement(Ns,{filterSearch:Tt,value:Mo,onChange:Wo,tablePrefixCls:Be,locale:Yt}),ae.createElement("div",{className:`${Be}-filter-dropdown-tree`},lt?ae.createElement(Va.default,{checked:Mr.length===Ui($e.filters).length,indeterminate:Mr.length>0&&Mr.length<Ui($e.filters).length,className:`${Be}-filter-dropdown-checkall`,onChange:Oi},Yt.filterCheckall):null,ae.createElement(Ts.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:lt,checkStrictly:!lt,className:`${at}-menu`,onCheck:_o,checkedKeys:Mr,selectedKeys:Mr,showIcon:!1,treeData:La({filters:$e.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Mo.trim()?jo=>typeof Tt=="function"?Tt(Mo,Ur(jo)):Sa(Mo,jo.title):void 0}))):ae.createElement(ae.Fragment,null,ae.createElement(Ns,{filterSearch:Tt,value:Mo,onChange:Wo,tablePrefixCls:Be,locale:Yt}),ae.createElement(ss.default,{selectable:!0,multiple:lt,prefixCls:`${at}-menu`,className:Ti,onSelect:$r,onDeselect:$r,selectedKeys:Mr,getPopupContainer:On,openKeys:no,onOpenChange:Lo,items:Xa({filters:$e.filters||[],filterSearch:Tt,prefixCls:ke,filteredKeys:Wn(),filterMultiple:lt,searchValue:Mo})})),Ho=()=>Dn?(0,ys.Z)((Zn||[]).map(jo=>String(jo)),Mr,!0):Mr.length===0;Br=ae.createElement(ae.Fragment,null,eo(),ae.createElement("div",{className:`${ke}-dropdown-btns`},ae.createElement(as.ZP,{type:"link",size:"small",disabled:Ho(),onClick:()=>oo()},Yt.filterReset),ae.createElement(as.ZP,{type:"primary",size:"small",onClick:Zi},Yt.filterConfirm)))}$e.filterDropdown&&(Br=ae.createElement(ds.J,{selectable:void 0},Br));const Ir=()=>ae.createElement($a,{className:`${ke}-dropdown`},Br);let xr;typeof $e.filterIcon=="function"?xr=$e.filterIcon(ro):$e.filterIcon?xr=$e.filterIcon:xr=ae.createElement(is,null);const{direction:qo}=ae.useContext(Qo.E_);return ae.createElement("div",{className:`${ke}-column`},ae.createElement("span",{className:`${Be}-column-title`},an),ae.createElement(Fa.Z,{dropdownRender:Ir,trigger:["click"],open:vr,onOpenChange:Jo,getPopupContainer:On,placement:qo==="rtl"?"bottomLeft":"bottomRight"},ae.createElement("span",{role:"button",tabIndex:-1,className:Ve()(`${ke}-trigger`,{active:ro}),onClick:Mr=>{Mr.stopPropagation()}},xr)))}var Ja=Qa;function Ps(Ee,we,Oe){let Be=[];return(Ee||[]).forEach((ke,$e)=>{var at;const mt=Ca($e,Oe);if(ke.filters||"filterDropdown"in ke||"onFilter"in ke)if("filteredValue"in ke){let lt=ke.filteredValue;"filterDropdown"in ke||(lt=(at=lt==null?void 0:lt.map(String))!==null&&at!==void 0?at:lt),Be.push({column:ke,key:Ea(ke,mt),filteredKeys:lt,forceFiltered:ke.filtered})}else Be.push({column:ke,key:Ea(ke,mt),filteredKeys:we&&ke.defaultFilteredValue?ke.defaultFilteredValue:void 0,forceFiltered:ke.filtered});"children"in ke&&(Be=[].concat((0,xo.Z)(Be),(0,xo.Z)(Ps(ke.children,we,mt))))}),Be}function bs(Ee,we,Oe,Be,ke,$e,at,mt){return Oe.map((lt,Et)=>{const Tt=Ca(Et,mt),{filterMultiple:xt=!0,filterMode:en,filterSearch:Yt}=lt;let an=lt;if(an.filters||an.filterDropdown){const On=Ea(an,Tt),xn=Be.find(zn=>{let{key:Dn}=zn;return On===Dn});an=Object.assign(Object.assign({},an),{title:zn=>ae.createElement(Ja,{tablePrefixCls:Ee,prefixCls:`${Ee}-filter`,dropdownPrefixCls:we,column:an,columnKey:On,filterState:xn,filterMultiple:xt,filterMode:en,filterSearch:Yt,triggerFilter:$e,locale:ke,getPopupContainer:at},Na(lt.title,zn))})}return"children"in an&&(an=Object.assign(Object.assign({},an),{children:bs(Ee,we,an.children,Be,ke,$e,at,Tt)})),an})}function Es(Ee){const we={};return Ee.forEach(Oe=>{let{key:Be,filteredKeys:ke,column:$e}=Oe;const{filters:at,filterDropdown:mt}=$e;if(mt)we[Be]=ke||null;else if(Array.isArray(ke)){const lt=Ui(at);we[Be]=lt.filter(Et=>ke.includes(String(Et)))}else we[Be]=null}),we}function Fs(Ee,we){return we.reduce((Oe,Be)=>{const{column:{onFilter:ke,filters:$e},filteredKeys:at}=Be;return ke&&at&&at.length?Oe.filter(mt=>at.some(lt=>{const Et=Ui($e),Tt=Et.findIndex(en=>String(en)===String(lt)),xt=Tt!==-1?Et[Tt]:lt;return ke(xt,mt)})):Oe},Ee)}const Zs=Ee=>Ee.flatMap(we=>"children"in we?[we].concat((0,xo.Z)(Zs(we.children||[]))):[we]);function il(Ee){let{prefixCls:we,dropdownPrefixCls:Oe,mergedColumns:Be,onFilterChange:ke,getPopupContainer:$e,locale:at}=Ee;const mt=ae.useMemo(()=>Zs(Be||[]),[Be]),[lt,Et]=ae.useState(()=>Ps(mt,!0)),Tt=ae.useMemo(()=>{const an=Ps(mt,!1);if(an.length===0)return an;let On=!0,xn=!0;if(an.forEach(zn=>{let{filteredKeys:Dn}=zn;Dn!==void 0?On=!1:xn=!1}),On){const zn=(mt||[]).map((Dn,Zn)=>Ea(Dn,Ca(Zn)));return lt.filter(Dn=>{let{key:Zn}=Dn;return zn.includes(Zn)}).map(Dn=>{const Zn=mt[zn.findIndex(Er=>Er===Dn.key)];return Object.assign(Object.assign({},Dn),{column:Object.assign(Object.assign({},Dn.column),Zn),forceFiltered:Zn.filtered})})}return an},[mt,lt]),xt=ae.useMemo(()=>Es(Tt),[Tt]),en=an=>{const On=Tt.filter(xn=>{let{key:zn}=xn;return zn!==an.key});On.push(an),Et(On),ke(Es(On),On)};return[an=>bs(we,Oe,an,Tt,at,en,$e),Tt,xt]}var Ws=il;function qa(Ee,we,Oe){const Be=ae.useRef({});function ke($e){if(!Be.current||Be.current.data!==Ee||Be.current.childrenColumnName!==we||Be.current.getRowKey!==Oe){let mt=function(lt){lt.forEach((Et,Tt)=>{const xt=Oe(Et,Tt);at.set(xt,Et),Et&&typeof Et=="object"&&we in Et&&mt(Et[we]||[])})};const at=new Map;mt(Ee),Be.current={data:Ee,childrenColumnName:we,kvMap:at,getRowKey:Oe}}return Be.current.kvMap.get($e)}return[ke]}var ks=ee(38780),Cs=function(Ee,we){var Oe={};for(var Be in Ee)Object.prototype.hasOwnProperty.call(Ee,Be)&&we.indexOf(Be)<0&&(Oe[Be]=Ee[Be]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Be=Object.getOwnPropertySymbols(Ee);ke<Be.length;ke++)we.indexOf(Be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Be[ke])&&(Oe[Be[ke]]=Ee[Be[ke]]);return Oe};const al=10;function sl(Ee,we){const Oe={current:Ee.current,pageSize:Ee.pageSize};return Object.keys(we&&typeof we=="object"?we:{}).forEach(ke=>{const $e=Ee[ke];typeof $e!="function"&&(Oe[ke]=$e)}),Oe}function ll(Ee,we,Oe){const Be=Oe&&typeof Oe=="object"?Oe:{},{total:ke=0}=Be,$e=Cs(Be,["total"]),[at,mt]=(0,ae.useState)(()=>({current:"defaultCurrent"in $e?$e.defaultCurrent:1,pageSize:"defaultPageSize"in $e?$e.defaultPageSize:al})),lt=(0,ks.Z)(at,$e,{total:ke>0?ke:Ee}),Et=Math.ceil((ke||Ee)/lt.pageSize);lt.current>Et&&(lt.current=Et||1);const Tt=(en,Yt)=>{mt({current:en!=null?en:1,pageSize:Yt||lt.pageSize})},xt=(en,Yt)=>{var an;Oe&&((an=Oe.onChange)===null||an===void 0||an.call(Oe,en,Yt)),Tt(en,Yt),we(en,Yt||(lt==null?void 0:lt.pageSize))};return Oe===!1?[{},()=>{}]:[Object.assign(Object.assign({},lt),{onChange:xt}),Tt]}var cl=ll,ul=ee(42922),Ks=ee(29873),js=ee(97153),dl=ee(83898),gl=ee(5663);const es={},Gr="SELECT_ALL",zs="SELECT_INVERT",Hs="SELECT_NONE",Vs=[],ws=(Ee,we)=>{let Oe=[];return(we||[]).forEach(Be=>{Oe.push(Be),Be&&typeof Be=="object"&&Ee in Be&&(Oe=[].concat((0,xo.Z)(Oe),(0,xo.Z)(ws(Ee,Be[Ee]))))}),Oe};var Ys=(Ee,we)=>{const{preserveSelectedRowKeys:Oe,selectedRowKeys:Be,defaultSelectedRowKeys:ke,getCheckboxProps:$e,onChange:at,onSelect:mt,onSelectAll:lt,onSelectInvert:Et,onSelectNone:Tt,onSelectMultiple:xt,columnWidth:en,type:Yt,selections:an,fixed:On,renderCell:xn,hideSelectAll:zn,checkStrictly:Dn=!0}=we||{},{prefixCls:Zn,data:Er,pageData:Nr,getRecordByKey:hr,getRowKey:Wr,expandType:ro,childrenColumnName:ar,locale:vr,getPopupContainer:sr}=Ee,[Wn,dr]=(0,gl.Z)(Be||ke||Vs,{value:Be}),$r=ae.useRef(new Map),_o=(0,ae.useCallback)(Ur=>{if(Oe){const Br=new Map;Ur.forEach(Ir=>{let xr=hr(Ir);!xr&&$r.current.has(Ir)&&(xr=$r.current.get(Ir)),Br.set(Ir,xr)}),$r.current=Br}},[hr,Oe]);ae.useEffect(()=>{_o(Wn)},[Wn]);const{keyEntities:no}=(0,ae.useMemo)(()=>{if(Dn)return{keyEntities:null};let Ur=Er;if(Oe){const Br=new Set(Er.map((xr,qo)=>Wr(xr,qo))),Ir=Array.from($r.current).reduce((xr,qo)=>{let[Mr,eo]=qo;return Br.has(Mr)?xr:xr.concat(eo)},[]);Ur=[].concat((0,xo.Z)(Ur),(0,xo.Z)(Ir))}return(0,dl.I8)(Ur,{externalGetKey:Wr,childrenPropName:ar})},[Er,Wr,Dn,ar,Oe]),Tr=(0,ae.useMemo)(()=>ws(ar,Nr),[ar,Nr]),Lo=(0,ae.useMemo)(()=>{const Ur=new Map;return Tr.forEach((Br,Ir)=>{const xr=Wr(Br,Ir),qo=($e?$e(Br):null)||{};Ur.set(xr,qo)}),Ur},[Tr,Wr,$e]),Mo=(0,ae.useCallback)(Ur=>{var Br;return!!(!((Br=Lo.get(Wr(Ur)))===null||Br===void 0)&&Br.disabled)},[Lo,Wr]),[pi,Wo]=(0,ae.useMemo)(()=>{if(Dn)return[Wn||[],[]];const{checkedKeys:Ur,halfCheckedKeys:Br}=(0,js.S)(Wn,!0,no,Mo);return[Ur||[],Br]},[Wn,Dn,no,Mo]),$i=(0,ae.useMemo)(()=>{const Ur=Yt==="radio"?pi.slice(0,1):pi;return new Set(Ur)},[pi,Yt]),Zi=(0,ae.useMemo)(()=>Yt==="radio"?new Set:new Set(Wo),[Wo,Yt]),[oo,qi]=(0,ae.useState)(null);ae.useEffect(()=>{we||dr(Vs)},[!!we]);const Jo=(0,ae.useCallback)((Ur,Br)=>{let Ir,xr;_o(Ur),Oe?(Ir=Ur,xr=Ur.map(qo=>$r.current.get(qo))):(Ir=[],xr=[],Ur.forEach(qo=>{const Mr=hr(qo);Mr!==void 0&&(Ir.push(qo),xr.push(Mr))})),dr(Ir),at==null||at(Ir,xr,{type:Br})},[dr,hr,at,Oe]),Ti=(0,ae.useCallback)((Ur,Br,Ir,xr)=>{if(mt){const qo=Ir.map(Mr=>hr(Mr));mt(hr(Ur),Br,qo,xr)}Jo(Ir,"single")},[mt,hr,Jo]),Oi=(0,ae.useMemo)(()=>!an||zn?null:(an===!0?[Gr,zs,Hs]:an).map(Br=>Br===Gr?{key:"all",text:vr.selectionAll,onSelect(){Jo(Er.map((Ir,xr)=>Wr(Ir,xr)).filter(Ir=>{const xr=Lo.get(Ir);return!(xr!=null&&xr.disabled)||$i.has(Ir)}),"all")}}:Br===zs?{key:"invert",text:vr.selectInvert,onSelect(){const Ir=new Set($i);Nr.forEach((qo,Mr)=>{const eo=Wr(qo,Mr),Ho=Lo.get(eo);Ho!=null&&Ho.disabled||(Ir.has(eo)?Ir.delete(eo):Ir.add(eo))});const xr=Array.from(Ir);Et&&Et(xr),Jo(xr,"invert")}}:Br===Hs?{key:"none",text:vr.selectNone,onSelect(){Tt==null||Tt(),Jo(Array.from($i).filter(Ir=>{const xr=Lo.get(Ir);return xr==null?void 0:xr.disabled}),"none")}}:Br).map(Br=>Object.assign(Object.assign({},Br),{onSelect:function(){for(var Ir,xr,qo=arguments.length,Mr=new Array(qo),eo=0;eo<qo;eo++)Mr[eo]=arguments[eo];(xr=Br.onSelect)===null||xr===void 0||(Ir=xr).call.apply(Ir,[Br].concat(Mr)),qi(null)}})),[an,$i,Nr,Wr,Et,Jo]);return[(0,ae.useCallback)(Ur=>{var Br;if(!we)return Ur.filter(oi=>oi!==es);let Ir=(0,xo.Z)(Ur);const xr=new Set($i),qo=Tr.map(Wr).filter(oi=>!Lo.get(oi).disabled),Mr=qo.every(oi=>xr.has(oi)),eo=qo.some(oi=>xr.has(oi)),Ho=()=>{const oi=[];Mr?qo.forEach(Fi=>{xr.delete(Fi),oi.push(Fi)}):qo.forEach(Fi=>{xr.has(Fi)||(xr.add(Fi),oi.push(Fi))});const si=Array.from(xr);lt==null||lt(!Mr,si.map(Fi=>hr(Fi)),oi.map(Fi=>hr(Fi))),Jo(si,"all"),qi(null)};let jo;if(Yt!=="radio"){let oi;if(Oi){const Ao={getPopupContainer:sr,items:Oi.map((Pa,ma)=>{const{key:Ia,text:ns,onSelect:Wa}=Pa;return{key:Ia!=null?Ia:ma,onClick:()=>{Wa==null||Wa(qo)},label:ns}})};oi=ae.createElement("div",{className:`${Zn}-selection-extra`},ae.createElement(Fa.Z,{menu:Ao,getPopupContainer:sr},ae.createElement("span",null,ae.createElement(ul.Z,null))))}const si=Tr.map((Ao,Pa)=>{const ma=Wr(Ao,Pa),Ia=Lo.get(ma)||{};return Object.assign({checked:xr.has(ma)},Ia)}).filter(Ao=>{let{disabled:Pa}=Ao;return Pa}),Fi=!!si.length&&si.length===Tr.length,ra=Fi&&si.every(Ao=>{let{checked:Pa}=Ao;return Pa}),oa=Fi&&si.some(Ao=>{let{checked:Pa}=Ao;return Pa});jo=!zn&&ae.createElement("div",{className:`${Zn}-selection`},ae.createElement(Va.default,{checked:Fi?ra:!!Tr.length&&Mr,indeterminate:Fi?!ra&&oa:!Mr&&eo,onChange:Ho,disabled:Tr.length===0||Fi,"aria-label":oi?"Custom selection":"Select all",skipGroup:!0}),oi)}let ha;Yt==="radio"?ha=(oi,si,Fi)=>{const ra=Wr(si,Fi),oa=xr.has(ra);return{node:ae.createElement(Ya.ZP,Object.assign({},Lo.get(ra),{checked:oa,onClick:Ao=>Ao.stopPropagation(),onChange:Ao=>{xr.has(ra)||Ti(ra,!0,[ra],Ao.nativeEvent)}})),checked:oa}}:ha=(oi,si,Fi)=>{var ra;const oa=Wr(si,Fi),Ao=xr.has(oa),Pa=Zi.has(oa),ma=Lo.get(oa);let Ia;return ro==="nest"?Ia=Pa:Ia=(ra=ma==null?void 0:ma.indeterminate)!==null&&ra!==void 0?ra:Pa,{node:ae.createElement(Va.default,Object.assign({},ma,{indeterminate:Ia,checked:Ao,skipGroup:!0,onClick:ns=>ns.stopPropagation(),onChange:ns=>{let{nativeEvent:Wa}=ns;const{shiftKey:$s}=Wa;let cs=-1,Ua=-1;if($s&&Dn){const Ma=new Set([oo,oa]);qo.some((ba,ia)=>{if(Ma.has(ba))if(cs===-1)cs=ia;else return Ua=ia,!0;return!1})}if(Ua!==-1&&cs!==Ua&&Dn){const Ma=qo.slice(cs,Ua+1),ba=[];Ao?Ma.forEach(ki=>{xr.has(ki)&&(ba.push(ki),xr.delete(ki))}):Ma.forEach(ki=>{xr.has(ki)||(ba.push(ki),xr.add(ki))});const ia=Array.from(xr);xt==null||xt(!Ao,ia.map(ki=>hr(ki)),ba.map(ki=>hr(ki))),Jo(ia,"multiple")}else{const Ma=pi;if(Dn){const ba=Ao?(0,Ks._5)(Ma,oa):(0,Ks.L0)(Ma,oa);Ti(oa,!Ao,ba,Wa)}else{const ba=(0,js.S)([].concat((0,xo.Z)(Ma),[oa]),!0,no,Mo),{checkedKeys:ia,halfCheckedKeys:ki}=ba;let rs=ia;if(Ao){const As=new Set(ia);As.delete(oa),rs=(0,js.S)(Array.from(As),{checked:!1,halfCheckedKeys:ki},no,Mo).checkedKeys}Ti(oa,!Ao,rs,Wa)}}qi(Ao?null:oa)}})),checked:Ao}};const la=(oi,si,Fi)=>{const{node:ra,checked:oa}=ha(oi,si,Fi);return xn?xn(oa,si,Fi,ra):ra};if(!Ir.includes(es))if(Ir.findIndex(oi=>{var si;return((si=oi[Io])===null||si===void 0?void 0:si.columnType)==="EXPAND_COLUMN"})===0){const[oi,...si]=Ir;Ir=[oi,es].concat((0,xo.Z)(si))}else Ir=[es].concat((0,xo.Z)(Ir));const Za=Ir.indexOf(es);Ir=Ir.filter((oi,si)=>oi!==es||si===Za);const ea=Ir[Za-1],Ha=Ir[Za+1];let ta=On;ta===void 0&&((Ha==null?void 0:Ha.fixed)!==void 0?ta=Ha.fixed:(ea==null?void 0:ea.fixed)!==void 0&&(ta=ea.fixed)),ta&&ea&&((Br=ea[Io])===null||Br===void 0?void 0:Br.columnType)==="EXPAND_COLUMN"&&ea.fixed===void 0&&(ea.fixed=ta);const xa=Ve()(`${Zn}-selection-col`,{[`${Zn}-selection-col-with-dropdown`]:an&&Yt==="checkbox"}),Ms={fixed:ta,width:en,className:`${Zn}-selection-column`,title:we.columnTitle||jo,render:la,onCell:we.onCell,[Io]:{className:xa}};return Ir.map(oi=>oi===es?Ms:oi)},[Wr,Tr,we,pi,$i,Zi,en,Oi,ro,oo,Lo,xt,Ti,Mo]),$i]},Xs=ee(33463),Pi=ee(28575),na=ee(83062);const Os="ascend",ga="descend";function Us(Ee){return typeof Ee.sorter=="object"&&typeof Ee.sorter.multiple=="number"?Ee.sorter.multiple:!1}function Qs(Ee){return typeof Ee=="function"?Ee:Ee&&typeof Ee=="object"&&Ee.compare?Ee.compare:!1}function hl(Ee,we){return we?Ee[Ee.indexOf(we)+1]:Ee[0]}function fs(Ee,we,Oe){let Be=[];function ke($e,at){Be.push({column:$e,key:Ea($e,at),multiplePriority:Us($e),sortOrder:$e.sortOrder})}return(Ee||[]).forEach(($e,at)=>{const mt=Ca(at,Oe);$e.children?("sortOrder"in $e&&ke($e,mt),Be=[].concat((0,xo.Z)(Be),(0,xo.Z)(fs($e.children,we,mt)))):$e.sorter&&("sortOrder"in $e?ke($e,mt):we&&$e.defaultSortOrder&&Be.push({column:$e,key:Ea($e,mt),multiplePriority:Us($e),sortOrder:$e.defaultSortOrder}))}),Be}function Js(Ee,we,Oe,Be,ke,$e,at,mt){return(we||[]).map((lt,Et)=>{const Tt=Ca(Et,mt);let xt=lt;if(xt.sorter){const en=xt.sortDirections||ke,Yt=xt.showSorterTooltip===void 0?at:xt.showSorterTooltip,an=Ea(xt,Tt),On=Oe.find(ro=>{let{key:ar}=ro;return ar===an}),xn=On?On.sortOrder:null,zn=hl(en,xn);let Dn;if(lt.sortIcon)Dn=lt.sortIcon({sortOrder:xn});else{const ro=en.includes(Os)&&ae.createElement(Pi.Z,{className:Ve()(`${Ee}-column-sorter-up`,{active:xn===Os})}),ar=en.includes(ga)&&ae.createElement(Xs.Z,{className:Ve()(`${Ee}-column-sorter-down`,{active:xn===ga})});Dn=ae.createElement("span",{className:Ve()(`${Ee}-column-sorter`,{[`${Ee}-column-sorter-full`]:!!(ro&&ar)})},ae.createElement("span",{className:`${Ee}-column-sorter-inner`,"aria-hidden":"true"},ro,ar))}const{cancelSort:Zn,triggerAsc:Er,triggerDesc:Nr}=$e||{};let hr=Zn;zn===ga?hr=Nr:zn===Os&&(hr=Er);const Wr=typeof Yt=="object"?Yt:{title:hr};xt=Object.assign(Object.assign({},xt),{className:Ve()(xt.className,{[`${Ee}-column-sort`]:xn}),title:ro=>{const ar=ae.createElement("div",{className:`${Ee}-column-sorters`},ae.createElement("span",{className:`${Ee}-column-title`},Na(lt.title,ro)),Dn);return Yt?ae.createElement(na.Z,Object.assign({},Wr),ar):ar},onHeaderCell:ro=>{const ar=lt.onHeaderCell&&lt.onHeaderCell(ro)||{},vr=ar.onClick,sr=ar.onKeyDown;ar.onClick=$r=>{Be({column:lt,key:an,sortOrder:zn,multiplePriority:Us(lt)}),vr==null||vr($r)},ar.onKeyDown=$r=>{$r.keyCode===gs.Z.ENTER&&(Be({column:lt,key:an,sortOrder:zn,multiplePriority:Us(lt)}),sr==null||sr($r))};const Wn=va(lt.title,{}),dr=Wn==null?void 0:Wn.toString();return xn?ar["aria-sort"]=xn==="ascend"?"ascending":"descending":ar["aria-label"]=dr||"",ar.className=Ve()(ar.className,`${Ee}-column-has-sorters`),ar.tabIndex=0,lt.ellipsis&&(ar.title=(Wn!=null?Wn:"").toString()),ar}})}return"children"in xt&&(xt=Object.assign(Object.assign({},xt),{children:Js(Ee,xt.children,Oe,Be,ke,$e,at,Tt)})),xt})}function qs(Ee){const{column:we,sortOrder:Oe}=Ee;return{column:we,order:Oe,field:we.dataIndex,columnKey:we.key}}function el(Ee){const we=Ee.filter(Oe=>{let{sortOrder:Be}=Oe;return Be}).map(qs);return we.length===0&&Ee.length?Object.assign(Object.assign({},qs(Ee[Ee.length-1])),{column:void 0}):we.length<=1?we[0]||{}:we}function Gs(Ee,we,Oe){const Be=we.slice().sort((at,mt)=>mt.multiplePriority-at.multiplePriority),ke=Ee.slice(),$e=Be.filter(at=>{let{column:{sorter:mt},sortOrder:lt}=at;return Qs(mt)&&lt});return $e.length?ke.sort((at,mt)=>{for(let lt=0;lt<$e.length;lt+=1){const Et=$e[lt],{column:{sorter:Tt},sortOrder:xt}=Et,en=Qs(Tt);if(en&&xt){const Yt=en(at,mt,xt);if(Yt!==0)return xt===Os?Yt:-Yt}}return 0}).map(at=>{const mt=at[Oe];return mt?Object.assign(Object.assign({},at),{[Oe]:Gs(mt,we,Oe)}):at}):ke}function ml(Ee){let{prefixCls:we,mergedColumns:Oe,onSorterChange:Be,sortDirections:ke,tableLocale:$e,showSorterTooltip:at}=Ee;const[mt,lt]=ae.useState(fs(Oe,!0)),Et=ae.useMemo(()=>{let an=!0;const On=fs(Oe,!1);if(!On.length)return mt;const xn=[];function zn(Zn){an?xn.push(Zn):xn.push(Object.assign(Object.assign({},Zn),{sortOrder:null}))}let Dn=null;return On.forEach(Zn=>{Dn===null?(zn(Zn),Zn.sortOrder&&(Zn.multiplePriority===!1?an=!1:Dn=!0)):(Dn&&Zn.multiplePriority!==!1||(an=!1),zn(Zn))}),xn},[Oe,mt]),Tt=ae.useMemo(()=>{const an=Et.map(On=>{let{column:xn,sortOrder:zn}=On;return{column:xn,order:zn}});return{sortColumns:an,sortColumn:an[0]&&an[0].column,sortOrder:an[0]&&an[0].order}},[Et]);function xt(an){let On;an.multiplePriority===!1||!Et.length||Et[0].multiplePriority===!1?On=[an]:On=[].concat((0,xo.Z)(Et.filter(xn=>{let{key:zn}=xn;return zn!==an.key})),[an]),lt(On),Be(el(On),On)}return[an=>Js(we,an,Et,xt,ke,$e,at),Et,Tt,()=>el(Et)]}function Re(Ee,we){return Ee.map(Oe=>{const Be=Object.assign({},Oe);return Be.title=Na(Oe.title,we),"children"in Be&&(Be.children=Re(Be.children,we)),Be})}function je(Ee){return[ae.useCallback(Oe=>Re(Oe,Ee),[Ee])]}var We=Jn((Ee,we)=>{const{_renderTimes:Oe}=Ee,{_renderTimes:Be}=we;return Oe!==Be}),ir=Co((Ee,we)=>{const{_renderTimes:Oe}=Ee,{_renderTimes:Be}=we;return Oe!==Be}),_n=ee(84780),rn=ee(14747),Sn=ee(67968),Xt=ee(45503),kn=Ee=>{const{componentCls:we}=Ee,Oe=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Be=(ke,$e,at)=>({[`&${we}-${ke}`]:{[`> ${we}-container`]:{[`> ${we}-content, > ${we}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${$e}px -${at+Ee.lineWidth}px`}}}}}});return{[`${we}-wrapper`]:{[`${we}${we}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${we}-title`]:{border:Oe,borderBottom:0},[`> ${we}-container`]:{borderInlineStart:Oe,borderTop:Oe,[`
> ${we}-content,
> ${we}-header,
> ${we}-body,
> ${we}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Oe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Oe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${we}-cell-fix-right-first::after`]:{borderInlineEnd:Oe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${Ee.tablePaddingVertical}px -${Ee.tablePaddingHorizontal+Ee.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ee.lineWidth,bottom:0,borderInlineEnd:Oe,content:'""'}}}}}},[`&${we}-scroll-horizontal`]:{[`> ${we}-container > ${we}-body`]:{"> table > tbody":{[`
> tr${we}-expanded-row,
> tr${we}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Be("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle)),Be("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall)),{[`> ${we}-footer`]:{border:Oe,borderTop:0}}),[`${we}-cell`]:{[`${we}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ee.lineWidth}px 0 ${Ee.lineWidth}px ${Ee.tableHeaderBg}`}},[`${we}-bordered ${we}-cell-scrollbar`]:{borderInlineEnd:Oe}}}},Dr=Ee=>{const{componentCls:we}=Ee;return{[`${we}-wrapper`]:{[`${we}-cell-ellipsis`]:Object.assign(Object.assign({},rn.vS),{wordBreak:"keep-all",[`
&${we}-cell-fix-left-last,
&${we}-cell-fix-right-first
`]:{overflow:"visible",[`${we}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${we}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},br=Ee=>{const{componentCls:we}=Ee;return{[`${we}-wrapper`]:{[`${we}-tbody > tr${we}-placeholder`]:{textAlign:"center",color:Ee.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ee.colorBgContainer}}}}},yo=ee(49867),bi=Ee=>{const{componentCls:we,antCls:Oe,controlInteractiveSize:Be,motionDurationSlow:ke,lineWidth:$e,paddingXS:at,lineType:mt,tableBorderColor:lt,tableExpandIconBg:Et,tableExpandColumnWidth:Tt,borderRadius:xt,fontSize:en,fontSizeSM:Yt,lineHeight:an,tablePaddingVertical:On,tablePaddingHorizontal:xn,tableExpandedRowBg:zn,paddingXXS:Dn}=Ee,Zn=Be/2-$e,Er=Zn*2+$e*3,Nr=`${$e}px ${mt} ${lt}`,hr=Dn-$e;return{[`${we}-wrapper`]:{[`${we}-expand-icon-col`]:{width:Tt},[`${we}-row-expand-icon-cell`]:{textAlign:"center",[`${we}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${we}-row-indent`]:{height:1,float:"left"},[`${we}-row-expand-icon`]:Object.assign(Object.assign({},(0,yo.N)(Ee)),{position:"relative",float:"left",boxSizing:"border-box",width:Er,height:Er,padding:0,color:"inherit",lineHeight:`${Er}px`,background:Et,border:Nr,borderRadius:xt,transform:`scale(${Be/Er})`,transition:`all ${ke}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${ke} ease-out`,content:'""'},"&::before":{top:Zn,insetInlineEnd:hr,insetInlineStart:hr,height:$e},"&::after":{top:hr,bottom:hr,insetInlineStart:Zn,width:$e,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${we}-row-indent + ${we}-row-expand-icon`]:{marginTop:(en*an-$e*3)/2-Math.ceil((Yt*1.4-$e*3)/2),marginInlineEnd:at},[`tr${we}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:zn}},[`${Oe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${we}-expanded-row-fixed`]:{position:"relative",margin:`-${On}px -${xn}px`,padding:`${On}px ${xn}px`}}}},Fo=Ee=>{const{componentCls:we,antCls:Oe,iconCls:Be,tableFilterDropdownWidth:ke,tableFilterDropdownSearchWidth:$e,paddingXXS:at,paddingXS:mt,colorText:lt,lineWidth:Et,lineType:Tt,tableBorderColor:xt,tableHeaderIconColor:en,fontSizeSM:Yt,tablePaddingHorizontal:an,borderRadius:On,motionDurationSlow:xn,colorTextDescription:zn,colorPrimary:Dn,tableHeaderFilterActiveBg:Zn,colorTextDisabled:Er,tableFilterDropdownBg:Nr,tableFilterDropdownHeight:hr,controlItemBgHover:Wr,controlItemBgActive:ro,boxShadowSecondary:ar,filterDropdownMenuBg:vr}=Ee,sr=`${Oe}-dropdown`,Wn=`${we}-filter-dropdown`,dr=`${Oe}-tree`,$r=`${Et}px ${Tt} ${xt}`;return[{[`${we}-wrapper`]:{[`${we}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${we}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-at,marginInline:`${at}px ${-an/2}px`,padding:`0 ${at}px`,color:en,fontSize:Yt,borderRadius:On,cursor:"pointer",transition:`all ${xn}`,"&:hover":{color:zn,background:Zn},"&.active":{color:Dn}}}},{[`${Oe}-dropdown`]:{[Wn]:Object.assign(Object.assign({},(0,rn.Wf)(Ee)),{minWidth:ke,backgroundColor:Nr,borderRadius:On,boxShadow:ar,overflow:"hidden",[`${sr}-menu`]:{maxHeight:hr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:vr,"&:empty::after":{display:"block",padding:`${mt}px 0`,color:Er,fontSize:Yt,textAlign:"center",content:'"Not Found"'}},[`${Wn}-tree`]:{paddingBlock:`${mt}px 0`,paddingInline:mt,[dr]:{padding:0},[`${dr}-treenode ${dr}-node-content-wrapper:hover`]:{backgroundColor:Wr},[`${dr}-treenode-checkbox-checked ${dr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ro}}},[`${Wn}-search`]:{padding:mt,borderBottom:$r,"&-input":{input:{minWidth:$e},[Be]:{color:Er}}},[`${Wn}-checkall`]:{width:"100%",marginBottom:at,marginInlineStart:at},[`${Wn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${mt-Et}px ${mt}px`,overflow:"hidden",borderTop:$r}})}},{[`${Oe}-dropdown ${Wn}, ${Wn}-submenu`]:{[`${Oe}-checkbox-wrapper + span`]:{paddingInlineStart:mt,color:lt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},so=Ee=>{const{componentCls:we,lineWidth:Oe,colorSplit:Be,motionDurationSlow:ke,zIndexTableFixed:$e,tableBg:at,zIndexTableSticky:mt}=Ee,lt=Be;return{[`${we}-wrapper`]:{[`
${we}-cell-fix-left,
${we}-cell-fix-right
`]:{position:"sticky !important",zIndex:$e,background:at},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Oe,width:30,transform:"translateX(100%)",transition:`box-shadow ${ke}`,content:'""',pointerEvents:"none"},[`${we}-cell-fix-left-all::after`]:{display:"none"},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Oe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${ke}`,content:'""',pointerEvents:"none"},[`${we}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:mt+1,width:30,transition:`box-shadow ${ke}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${we}-ping-left`]:{[`&:not(${we}-has-fix-left) ${we}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${lt}`}},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${lt}`},[`${we}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${we}-ping-right`]:{[`&:not(${we}-has-fix-right) ${we}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${lt}`}},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${lt}`}}}}},$n=Ee=>{const{componentCls:we,antCls:Oe}=Ee;return{[`${we}-wrapper`]:{[`${we}-pagination${Oe}-pagination`]:{margin:`${Ee.margin}px 0`},[`${we}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ee.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ko=Ee=>{const{componentCls:we,tableRadius:Oe}=Ee;return{[`${we}-wrapper`]:{[we]:{[`${we}-title, ${we}-header`]:{borderRadius:`${Oe}px ${Oe}px 0 0`},[`${we}-title + ${we}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${we}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Oe,borderStartEndRadius:Oe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Oe},"> *:last-child":{borderStartEndRadius:Oe}}},"&-footer":{borderRadius:`0 0 ${Oe}px ${Oe}px`}}}}},fa=Ee=>{const{componentCls:we}=Ee;return{[`${we}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${we}-pagination-left`]:{justifyContent:"flex-end"},[`${we}-pagination-right`]:{justifyContent:"flex-start"},[`${we}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${we}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${we}-row-indent`]:{float:"right"}}}}},wi=Ee=>{const{componentCls:we,antCls:Oe,iconCls:Be,fontSizeIcon:ke,padding:$e,paddingXS:at,tableHeaderIconColor:mt,tableHeaderIconColorHover:lt,tableSelectionColumnWidth:Et}=Ee;return{[`${we}-wrapper`]:{[`${we}-selection-col`]:{width:Et,[`&${we}-selection-col-with-dropdown`]:{width:Et+ke+$e/4}},[`${we}-bordered ${we}-selection-col`]:{width:Et+at*2,[`&${we}-selection-col-with-dropdown`]:{width:Et+ke+$e/4+at*2}},[`
table tr th${we}-selection-column,
table tr td${we}-selection-column
`]:{paddingInlineEnd:Ee.paddingXS,paddingInlineStart:Ee.paddingXS,textAlign:"center",[`${Oe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${we}-selection-column${we}-cell-fix-left`]:{zIndex:Ee.zIndexTableFixed+1},[`table tr th${we}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${we}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${we}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ee.tablePaddingHorizontal/4}px`,[Be]:{color:mt,fontSize:ke,verticalAlign:"baseline","&:hover":{color:lt}}}}}},Lr=Ee=>{const{componentCls:we}=Ee,Oe=(Be,ke,$e,at)=>({[`${we}${we}-${Be}`]:{fontSize:at,[`
${we}-title,
${we}-footer,
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${ke}px ${$e}px`},[`${we}-filter-trigger`]:{marginInlineEnd:`-${$e/2}px`},[`${we}-expanded-row-fixed`]:{margin:`-${ke}px -${$e}px`},[`${we}-tbody`]:{[`${we}-wrapper:only-child ${we}`]:{marginBlock:`-${ke}px`,marginInline:`${Ee.tableExpandColumnWidth-$e}px -${$e}px`}},[`${we}-selection-column`]:{paddingInlineStart:`${$e/4}px`}}});return{[`${we}-wrapper`]:Object.assign(Object.assign({},Oe("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle,Ee.tableFontSizeMiddle)),Oe("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall,Ee.tableFontSizeSmall))}},$o=Ee=>{const{componentCls:we,marginXXS:Oe,fontSizeIcon:Be,tableHeaderIconColor:ke,tableHeaderIconColorHover:$e}=Ee;return{[`${we}-wrapper`]:{[`${we}-thead th${we}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,"&:hover":{background:Ee.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ee.colorPrimary},[`
&${we}-cell-fix-left:hover,
&${we}-cell-fix-right:hover
`]:{background:Ee.tableFixedHeaderSortActiveBg}},[`${we}-thead th${we}-column-sort`]:{background:Ee.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${we}-column-sort`]:{background:Ee.tableBodySortBg},[`${we}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${we}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${we}-column-sorter`]:{marginInlineStart:Oe,color:ke,fontSize:0,transition:`color ${Ee.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Be,"&.active":{color:Ee.colorPrimary}},[`${we}-column-sorter-up + ${we}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${we}-column-sorters:hover ${we}-column-sorter`]:{color:$e}}}},Ls=Ee=>{const{componentCls:we,opacityLoading:Oe,tableScrollThumbBg:Be,tableScrollThumbBgHover:ke,tableScrollThumbSize:$e,tableScrollBg:at,zIndexTableSticky:mt,stickyScrollBarBorderRadius:lt}=Ee,Et=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`;return{[`${we}-wrapper`]:{[`${we}-sticky`]:{"&-holder":{position:"sticky",zIndex:mt,background:Ee.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${$e}px !important`,zIndex:mt,display:"flex",alignItems:"center",background:at,borderTop:Et,opacity:Oe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:$e,backgroundColor:Be,borderRadius:lt,transition:`all ${Ee.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:ke}}}}}}},ts=Ee=>{const{componentCls:we,lineWidth:Oe,tableBorderColor:Be}=Ee,ke=`${Oe}px ${Ee.lineType} ${Be}`;return{[`${we}-wrapper`]:{[`${we}-summary`]:{position:"relative",zIndex:Ee.zIndexTableFixed,background:Ee.tableBg,"> tr":{"> th, > td":{borderBottom:ke}}},[`div${we}-summary`]:{boxShadow:`0 -${Oe}px 0 ${Be}`}}}},ja=Ee=>{const{componentCls:we}=Ee,Oe=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Be=`${we}-expanded-row-cell`;return{[`${we}-wrapper`]:{[`${we}-tbody-virtual`]:{[`${we}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${we}-cell`]:{borderBottom:Oe},[`${we}-expanded-row`]:{[`${Be}${Be}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ee.lineWidth}px)`,borderInlineEnd:"none"}}},[`${we}-bordered`]:{[`${we}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Oe,position:"absolute"},[`${we}-cell`]:{borderInlineEnd:Oe,[`&${we}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ee.lineWidth,borderInlineStart:Oe}}}}}}};const ms=Ee=>{const{componentCls:we,fontWeightStrong:Oe,tablePaddingVertical:Be,tablePaddingHorizontal:ke,lineWidth:$e,lineType:at,tableBorderColor:mt,tableFontSize:lt,tableBg:Et,tableRadius:Tt,tableHeaderTextColor:xt,motionDurationMid:en,tableHeaderBg:Yt,tableHeaderCellSplitColor:an,tableRowHoverBg:On,tableSelectedRowBg:xn,tableSelectedRowHoverBg:zn,tableFooterTextColor:Dn,tableFooterBg:Zn,paddingContentVerticalLG:Er}=Ee,Nr=`${$e}px ${at} ${mt}`;return{[`${we}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,rn.dF)()),{[we]:Object.assign(Object.assign({},(0,rn.Wf)(Ee)),{fontSize:lt,background:Et,borderRadius:`${Tt}px ${Tt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Tt}px ${Tt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Er}px ${ke}px`,overflowWrap:"break-word"},[`${we}-title`]:{padding:`${Be}px ${ke}px`},[`${we}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:xt,fontWeight:Oe,textAlign:"start",background:Yt,borderBottom:Nr,transition:`background ${en} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${we}-selection-column):not(${we}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:an,transform:"translateY(-50%)",transition:`background-color ${en}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${we}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${en}, border-color ${en}`,borderBottom:Nr,[`
> ${we}-wrapper:only-child,
> ${we}-expanded-row-fixed > ${we}-wrapper:only-child
`]:{[we]:{marginBlock:`-${Be}px`,marginInline:`${Ee.tableExpandColumnWidth-ke}px -${ke}px`,[`${we}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:xt,fontWeight:Oe,textAlign:"start",background:Yt,borderBottom:Nr,transition:`background ${en} ease`},[`
&${we}-row:hover > th,
&${we}-row:hover > td,
> th${we}-cell-row-hover,
> td${we}-cell-row-hover
`]:{background:On},[`&${we}-row-selected`]:{"> th, > td":{background:xn},"&:hover > th, &:hover > td":{background:zn}}}},[`${we}-footer`]:{padding:`${Be}px ${ke}px`,color:Dn,background:Zn}})}};var Hr=(0,Sn.Z)("Table",Ee=>{const{colorTextHeading:we,colorSplit:Oe,colorIcon:Be,colorIconHover:ke,opacityLoading:$e,colorBgContainer:at,controlInteractiveSize:mt,headerBg:lt,headerColor:Et,headerSortActiveBg:Tt,headerSortHoverBg:xt,bodySortBg:en,rowHoverBg:Yt,rowSelectedBg:an,rowSelectedHoverBg:On,rowExpandedBg:xn,cellPaddingBlock:zn,cellPaddingInline:Dn,cellPaddingBlockMD:Zn,cellPaddingInlineMD:Er,cellPaddingBlockSM:Nr,cellPaddingInlineSM:hr,borderColor:Wr,footerBg:ro,footerColor:ar,headerBorderRadius:vr,cellFontSize:sr,cellFontSizeMD:Wn,cellFontSizeSM:dr,headerSplitColor:$r,fixedHeaderSortActiveBg:_o,headerFilterHoverBg:no,filterDropdownBg:Tr,expandIconBg:Lo,selectionColumnWidth:Mo,stickyScrollBarBg:pi}=Ee,Wo=new _n.C(Be),$i=new _n.C(ke),Zi=2,oo=(0,Xt.TS)(Ee,{tableFontSize:sr,tableBg:at,tableRadius:vr,tablePaddingVertical:zn,tablePaddingHorizontal:Dn,tablePaddingVerticalMiddle:Zn,tablePaddingHorizontalMiddle:Er,tablePaddingVerticalSmall:Nr,tablePaddingHorizontalSmall:hr,tableBorderColor:Wr,tableHeaderTextColor:Et,tableHeaderBg:lt,tableFooterTextColor:ar,tableFooterBg:ro,tableHeaderCellSplitColor:$r,tableHeaderSortBg:Tt,tableHeaderSortHoverBg:xt,tableHeaderIconColor:Wo.clone().setAlpha(Wo.getAlpha()*$e).toRgbString(),tableHeaderIconColorHover:$i.clone().setAlpha($i.getAlpha()*$e).toRgbString(),tableBodySortBg:en,tableFixedHeaderSortActiveBg:_o,tableHeaderFilterActiveBg:no,tableFilterDropdownBg:Tr,tableRowHoverBg:Yt,tableSelectedRowBg:an,tableSelectedRowHoverBg:On,zIndexTableFixed:Zi,zIndexTableSticky:Zi+1,tableFontSizeMiddle:Wn,tableFontSizeSmall:dr,tableSelectionColumnWidth:Mo,tableExpandIconBg:Lo,tableExpandColumnWidth:mt+2*Ee.padding,tableExpandedRowBg:xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:pi,tableScrollThumbBgHover:we,tableScrollBg:Oe});return[ms(oo),$n(oo),ts(oo),$o(oo),Fo(oo),kn(oo),ko(oo),bi(oo),ts(oo),br(oo),wi(oo),so(oo),Ls(oo),Dr(oo),Lr(oo),fa(oo),ja(oo)]},Ee=>{const{colorFillAlter:we,colorBgContainer:Oe,colorTextHeading:Be,colorFillSecondary:ke,colorFillContent:$e,controlItemBgActive:at,controlItemBgActiveHover:mt,padding:lt,paddingSM:Et,paddingXS:Tt,colorBorderSecondary:xt,borderRadiusLG:en,fontSize:Yt,controlHeight:an,colorTextPlaceholder:On}=Ee,xn=new _n.C(ke).onBackground(Oe).toHexShortString(),zn=new _n.C($e).onBackground(Oe).toHexShortString(),Dn=new _n.C(we).onBackground(Oe).toHexShortString();return{headerBg:Dn,headerColor:Be,headerSortActiveBg:xn,headerSortHoverBg:zn,bodySortBg:Dn,rowHoverBg:Dn,rowSelectedBg:at,rowSelectedHoverBg:mt,rowExpandedBg:we,cellPaddingBlock:lt,cellPaddingInline:lt,cellPaddingBlockMD:Et,cellPaddingInlineMD:Tt,cellPaddingBlockSM:Tt,cellPaddingInlineSM:Tt,borderColor:xt,headerBorderRadius:en,footerBg:Dn,footerColor:Be,cellFontSize:Yt,cellFontSizeMD:Yt,cellFontSizeSM:Yt,headerSplitColor:xt,fixedHeaderSortActiveBg:xn,headerFilterHoverBg:$e,filterDropdownMenuBg:Oe,filterDropdownBg:Oe,expandIconBg:Oe,selectionColumnWidth:an,stickyScrollBarBg:On,stickyScrollBarBorderRadius:100}});const Ni=[],ya=(Ee,we)=>{const{prefixCls:Oe,className:Be,rootClassName:ke,style:$e,size:at,bordered:mt,dropdownPrefixCls:lt,dataSource:Et,pagination:Tt,rowSelection:xt,rowKey:en="key",rowClassName:Yt,columns:an,children:On,childrenColumnName:xn,onChange:zn,getPopupContainer:Dn,loading:Zn,expandIcon:Er,expandable:Nr,expandedRowRender:hr,expandIconColumnIndex:Wr,indentSize:ro,scroll:ar,sortDirections:vr,locale:sr,showSorterTooltip:Wn=!0,virtual:dr}=Ee,$r=ae.useMemo(()=>an||yn(On),[an,On]),_o=ae.useMemo(()=>$r.some(Uo=>Uo.responsive),[$r]),no=(0,yi.Z)(_o),Tr=ae.useMemo(()=>{const Uo=new Set(Object.keys(no).filter(Li=>no[Li]));return $r.filter(Li=>!Li.responsive||Li.responsive.some(da=>Uo.has(da)))},[$r,no]),Lo=(0,Hi.Z)(Ee,["className","style","columns"]),{locale:Mo=aa.Z,direction:pi,table:Wo,renderEmpty:$i,getPrefixCls:Zi,getPopupContainer:oo}=ae.useContext(Qo.E_),qi=(0,ai.Z)(at),Jo=Object.assign(Object.assign({},Mo.Table),sr),Ti=Et||Ni,Oi=Zi("table",Oe),La=Zi("dropdown",lt),Ur=Object.assign({childrenColumnName:xn,expandIconColumnIndex:Wr},Nr),{childrenColumnName:Br="children"}=Ur,Ir=ae.useMemo(()=>Ti.some(Uo=>Uo==null?void 0:Uo[Br])?"nest":hr||Nr&&Nr.expandedRowRender?"row":null,[Ti]),xr={body:ae.useRef()},qo=ae.useMemo(()=>typeof en=="function"?en:Uo=>Uo==null?void 0:Uo[en],[en]),[Mr]=qa(Ti,Br,qo),eo={},Ho=function(Uo,Li){let da=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ji,pa,Aa;const Da=Object.assign(Object.assign({},eo),Uo);da&&((ji=eo.resetPagination)===null||ji===void 0||ji.call(eo),!((pa=Da.pagination)===null||pa===void 0)&&pa.current&&(Da.pagination.current=1),Tt&&Tt.onChange&&Tt.onChange(1,(Aa=Da.pagination)===null||Aa===void 0?void 0:Aa.pageSize)),ar&&ar.scrollToFirstRowOnChange!==!1&&xr.body.current&&(0,Wi.Z)(0,{getContainer:()=>xr.body.current}),zn==null||zn(Da.pagination,Da.filters,Da.sorter,{currentDataSource:Fs(Gs(Ti,Da.sorterStates,Br),Da.filterStates),action:Li})},jo=(Uo,Li)=>{Ho({sorter:Uo,sorterStates:Li},"sort",!1)},[ha,la,Za,ea]=ml({prefixCls:Oi,mergedColumns:Tr,onSorterChange:jo,sortDirections:vr||["ascend","descend"],tableLocale:Jo,showSorterTooltip:Wn}),Ha=ae.useMemo(()=>Gs(Ti,la,Br),[Ti,la]);eo.sorter=ea(),eo.sorterStates=la;const ta=(Uo,Li)=>{Ho({filters:Uo,filterStates:Li},"filter",!0)},[xa,Ms,oi]=Ws({prefixCls:Oi,locale:Jo,dropdownPrefixCls:La,mergedColumns:Tr,onFilterChange:ta,getPopupContainer:Dn||oo}),si=Fs(Ha,Ms);eo.filters=oi,eo.filterStates=Ms;const Fi=ae.useMemo(()=>{const Uo={};return Object.keys(oi).forEach(Li=>{oi[Li]!==null&&(Uo[Li]=oi[Li])}),Object.assign(Object.assign({},Za),{filters:Uo})},[Za,oi]),[ra]=je(Fi),oa=(Uo,Li)=>{Ho({pagination:Object.assign(Object.assign({},eo.pagination),{current:Uo,pageSize:Li})},"paginate")},[Ao,Pa]=cl(si.length,oa,Tt);eo.pagination=Tt===!1?{}:sl(Ao,Tt),eo.resetPagination=Pa;const ma=ae.useMemo(()=>{if(Tt===!1||!Ao.pageSize)return si;const{current:Uo=1,total:Li,pageSize:da=al}=Ao;return si.length<Li?si.length>da?si.slice((Uo-1)*da,Uo*da):si:si.slice((Uo-1)*da,Uo*da)},[!!Tt,si,Ao&&Ao.current,Ao&&Ao.pageSize,Ao&&Ao.total]),[Ia,ns]=Ys({prefixCls:Oi,data:si,pageData:ma,getRowKey:qo,getRecordByKey:Mr,expandType:Ir,childrenColumnName:Br,locale:Jo,getPopupContainer:Dn||oo},xt),Wa=(Uo,Li,da)=>{let ji;return typeof Yt=="function"?ji=Ve()(Yt(Uo,Li,da)):ji=Ve()(Yt),Ve()({[`${Oi}-row-selected`]:ns.has(qo(Uo,Li))},ji)};Ur.__PARENT_RENDER_ICON__=Ur.expandIcon,Ur.expandIcon=Ur.expandIcon||Er||ka(Jo),Ir==="nest"&&Ur.expandIconColumnIndex===void 0?Ur.expandIconColumnIndex=xt?1:0:Ur.expandIconColumnIndex>0&&xt&&(Ur.expandIconColumnIndex-=1),typeof Ur.indentSize!="number"&&(Ur.indentSize=typeof ro=="number"?ro:15);const $s=ae.useCallback(Uo=>ra(Ia(xa(ha(Uo)))),[ha,xa,Ia]);let cs,Ua;if(Tt!==!1&&(Ao!=null&&Ao.total)){let Uo;Ao.size?Uo=Ao.size:Uo=qi==="small"||qi==="middle"?"small":void 0;const Li=pa=>ae.createElement(ca.Z,Object.assign({},Ao,{className:Ve()(`${Oi}-pagination ${Oi}-pagination-${pa}`,Ao.className),size:Uo})),da=pi==="rtl"?"left":"right",{position:ji}=Ao;if(ji!==null&&Array.isArray(ji)){const pa=ji.find(us=>us.includes("top")),Aa=ji.find(us=>us.includes("bottom")),Da=ji.every(us=>`${us}`=="none");!pa&&!Aa&&!Da&&(Ua=Li(da)),pa&&(cs=Li(pa.toLowerCase().replace("top",""))),Aa&&(Ua=Li(Aa.toLowerCase().replace("bottom","")))}else Ua=Li(da)}let Ma;typeof Zn=="boolean"?Ma={spinning:Zn}:typeof Zn=="object"&&(Ma=Object.assign({spinning:!0},Zn));const[ba,ia]=Hr(Oi),[,ki]=(0,_i.Z)(),rs=Ve()(`${Oi}-wrapper`,Wo==null?void 0:Wo.className,{[`${Oi}-wrapper-rtl`]:pi==="rtl"},Be,ke,ia),As=Object.assign(Object.assign({},Wo==null?void 0:Wo.style),$e),ps=sr&&sr.emptyText||($i==null?void 0:$i("Table"))||ae.createElement(Si.Z,{componentName:"Table"}),os=dr?ir:We,tl={},pl=ae.useMemo(()=>{const{fontSize:Uo,lineHeight:Li,padding:da,paddingXS:ji,paddingSM:pa}=ki,Aa=Math.floor(Uo*Li);switch(qi){case"large":return da*2+Aa;case"small":return ji*2+Aa;default:return pa*2+Aa}},[ki,qi]);return dr&&(tl.listItemHeight=pl),ba(ae.createElement("div",{ref:we,className:rs,style:As},ae.createElement(Ci.Z,Object.assign({spinning:!1},Ma),cs,ae.createElement(os,Object.assign({},tl,Lo,{columns:Tr,direction:pi,expandable:Ur,prefixCls:Oi,className:Ve()({[`${Oi}-middle`]:qi==="middle",[`${Oi}-small`]:qi==="small",[`${Oi}-bordered`]:mt,[`${Oi}-empty`]:Ti.length===0}),data:ma,rowKey:qo,rowClassName:Wa,emptyText:ps,internalHooks:ue,internalRefs:xr,transformColumns:$s})),Ua)))};var ls=ae.forwardRef(ya);const _a=(Ee,we)=>{const Oe=ae.useRef(0);return Oe.current+=1,ae.createElement(ls,Object.assign({},Ee,{ref:we,_renderTimes:Oe.current}))},Ta=ae.forwardRef(_a);Ta.SELECTION_COLUMN=es,Ta.EXPAND_COLUMN=te,Ta.SELECTION_ALL=Gr,Ta.SELECTION_INVERT=zs,Ta.SELECTION_NONE=Hs,Ta.Column=Oo,Ta.ColumnGroup=Ri,Ta.Summary=on;var za=Ta,Ji=za},66309:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return Te}});var te=ee(67294),ue=ee(73475),be=ee(94184),ve=ee.n(be),de=ee(98787),pe=ee(69760),ae=ee(45353),he=ee(53124),le=ee(14747),fe=ee(45503),se=ee(67968);const me=Me=>{const{paddingXXS:pt,lineWidth:Ve,tagPaddingHorizontal:gt,componentCls:Ae}=Me,De=gt-Ve,Ie=pt-Ve;return{[Ae]:Object.assign(Object.assign({},(0,le.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:De,fontSize:Me.tagFontSize,lineHeight:Me.tagLineHeight,whiteSpace:"nowrap",background:Me.defaultBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,opacity:1,transition:`all ${Me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ae}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Me.defaultColor},[`${Ae}-close-icon`]:{marginInlineStart:Ie,color:Me.colorTextDescription,fontSize:Me.tagIconSize,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,"&:hover":{color:Me.colorTextHeading}},[`&${Ae}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Me.iconCls}-close, ${Me.iconCls}-close:hover`]:{color:Me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ae}-checkable-checked):hover`]:{color:Me.colorPrimary,backgroundColor:Me.colorFillSecondary},"&:active, &-checked":{color:Me.colorTextLightSolid},"&-checked":{backgroundColor:Me.colorPrimary,"&:hover":{backgroundColor:Me.colorPrimaryHover}},"&:active":{backgroundColor:Me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Me.iconCls} + span, > span + ${Me.iconCls}`]:{marginInlineStart:De}}),[`${Ae}-borderless`]:{borderColor:"transparent",background:Me.tagBorderlessBg}}},re=Me=>{const{lineWidth:pt,fontSizeIcon:Ve}=Me,gt=Me.fontSizeSM,Ae=`${Me.lineHeightSM*gt}px`;return(0,fe.TS)(Me,{tagFontSize:gt,tagLineHeight:Ae,tagIconSize:Ve-2*pt,tagPaddingHorizontal:8,tagBorderlessBg:Me.colorFillTertiary})},ne=Me=>({defaultBg:Me.colorFillQuaternary,defaultColor:Me.colorText});var a=(0,se.Z)("Tag",Me=>{const pt=re(Me);return me(pt)},ne),y=function(Me,pt){var Ve={};for(var gt in Me)Object.prototype.hasOwnProperty.call(Me,gt)&&pt.indexOf(gt)<0&&(Ve[gt]=Me[gt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,gt=Object.getOwnPropertySymbols(Me);Ae<gt.length;Ae++)pt.indexOf(gt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Me,gt[Ae])&&(Ve[gt[Ae]]=Me[gt[Ae]]);return Ve},b=Me=>{const{prefixCls:pt,style:Ve,className:gt,checked:Ae,onChange:De,onClick:Ie}=Me,tt=y(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ze,tag:bt}=te.useContext(he.E_),wt=Ct=>{De==null||De(!Ae),Ie==null||Ie(Ct)},Kt=Ze("tag",pt),[Qt,rt]=a(Kt),st=ve()(Kt,`${Kt}-checkable`,{[`${Kt}-checkable-checked`]:Ae},bt==null?void 0:bt.className,gt,rt);return Qt(te.createElement("span",Object.assign({},tt,{style:Object.assign(Object.assign({},Ve),bt==null?void 0:bt.style),className:st,onClick:wt})))},x=ee(98719);const z=Me=>(0,x.Z)(Me,(pt,Ve)=>{let{textColor:gt,lightBorderColor:Ae,lightColor:De,darkColor:Ie}=Ve;return{[`${Me.componentCls}-${pt}`]:{color:gt,background:De,borderColor:Ae,"&-inverse":{color:Me.colorTextLightSolid,background:Ie,borderColor:Ie},[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,se.b)(["Tag","preset"],Me=>{const pt=re(Me);return z(pt)},ne);function ie(Me){return typeof Me!="string"?Me:Me.charAt(0).toUpperCase()+Me.slice(1)}const ce=(Me,pt,Ve)=>{const gt=ie(Ve);return{[`${Me.componentCls}-${pt}`]:{color:Me[`color${Ve}`],background:Me[`color${gt}Bg`],borderColor:Me[`color${gt}Border`],[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ye=(0,se.b)(["Tag","status"],Me=>{const pt=re(Me);return[ce(pt,"success","Success"),ce(pt,"processing","Info"),ce(pt,"error","Error"),ce(pt,"warning","Warning")]},ne),_e=function(Me,pt){var Ve={};for(var gt in Me)Object.prototype.hasOwnProperty.call(Me,gt)&&pt.indexOf(gt)<0&&(Ve[gt]=Me[gt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,gt=Object.getOwnPropertySymbols(Me);Ae<gt.length;Ae++)pt.indexOf(gt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Me,gt[Ae])&&(Ve[gt[Ae]]=Me[gt[Ae]]);return Ve};const xe=(Me,pt)=>{const{prefixCls:Ve,className:gt,rootClassName:Ae,style:De,children:Ie,icon:tt,color:Ze,onClose:bt,closeIcon:wt,closable:Kt,bordered:Qt=!0}=Me,rt=_e(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:st,direction:Ct,tag:Gt}=te.useContext(he.E_),[Ht,Bt]=te.useState(!0);te.useEffect(()=>{"visible"in rt&&Bt(rt.visible)},[rt.visible]);const Ke=(0,de.o2)(Ze),Jt=(0,de.yT)(Ze),Mn=Ke||Jt,Hn=Object.assign(Object.assign({backgroundColor:Ze&&!Mn?Ze:void 0},Gt==null?void 0:Gt.style),De),pn=st("tag",Ve),[kt,Qe]=a(pn),Ye=ve()(pn,Gt==null?void 0:Gt.className,{[`${pn}-${Ze}`]:Mn,[`${pn}-has-color`]:Ze&&!Mn,[`${pn}-hidden`]:!Ht,[`${pn}-rtl`]:Ct==="rtl",[`${pn}-borderless`]:!Qt},gt,Ae,Qe),Je=Xe=>{Xe.stopPropagation(),bt==null||bt(Xe),!Xe.defaultPrevented&&Bt(!1)},[,ft]=(0,pe.Z)(Kt,wt,Xe=>Xe===null?te.createElement(ue.Z,{className:`${pn}-close-icon`,onClick:Je}):te.createElement("span",{className:`${pn}-close-icon`,onClick:Je},Xe),null,!1),At=typeof rt.onClick=="function"||Ie&&Ie.type==="a",et=tt||null,vt=et?te.createElement(te.Fragment,null,et,Ie&&te.createElement("span",null,Ie)):Ie,Pt=te.createElement("span",Object.assign({},rt,{ref:pt,className:Ye,style:Hn}),vt,ft,Ke&&te.createElement(oe,{key:"preset",prefixCls:pn}),Jt&&te.createElement(ye,{key:"status",prefixCls:pn}));return kt(At?te.createElement(ae.Z,{component:"Tag"},Pt):Pt)},Ce=te.forwardRef(xe);Ce.CheckableTag=b;var Te=Ce},79870:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return ti}});var te=ee(87462),ue=ee(4942),be=ee(71002),ve=ee(1413),de=ee(74902),pe=ee(15671),ae=ee(43144),he=ee(97326),le=ee(60136),fe=ee(51630),se=ee(94184),me=ee.n(se),re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(_t){var jt=_t.keyCode;if(_t.altKey&&!_t.ctrlKey||_t.metaKey||jt>=re.F1&&jt<=re.F12)return!1;switch(jt){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_t){if(_t>=re.ZERO&&_t<=re.NINE||_t>=re.NUM_ZERO&&_t<=re.NUM_MULTIPLY||_t>=re.A&&_t<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_t===0)return!0;switch(_t){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ne=re,a=ee(34952),y=ee(72978),E=ee(67294),b=ee(69610);function x(yt){var _t=yt.dropPosition,jt=yt.dropLevelOffset,ze=yt.indent,zt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(_t){case-1:zt.top=0,zt.left=-jt*ze;break;case 1:zt.bottom=0,zt.left=-jt*ze;break;case 0:zt.bottom=0,zt.left=ze;break}return E.createElement("div",{style:zt})}var z=ee(36459),oe=ee(97685),ie=ee(45987);function ce(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ye=ce()?E.useLayoutEffect:E.useEffect,_e=ye,xe=function(_t,jt){var ze=React.useRef(!0);ye(function(){if(!ze.current)return _t()},jt),ye(function(){return ze.current=!1,function(){ze.current=!0}},[])},Ce=ee(73299),Te=ee(73935);function Me(yt){return yt instanceof HTMLElement||yt instanceof SVGElement}function pt(yt){return Me(yt)?yt:yt instanceof E.Component?Te.findDOMNode(yt):null}var Ve=ee(28580);function gt(yt,_t,jt){var ze=React.useRef({});return(!("value"in ze.current)||jt(ze.current.condition,_t))&&(ze.current.value=yt(),ze.current.condition=_t),ze.current.value}function Ae(yt,_t){typeof yt=="function"?yt(_t):(0,be.Z)(yt)==="object"&&yt&&"current"in yt&&(yt.current=_t)}function De(){for(var yt=arguments.length,_t=new Array(yt),jt=0;jt<yt;jt++)_t[jt]=arguments[jt];var ze=_t.filter(function(zt){return zt});return ze.length<=1?ze[0]:function(zt){_t.forEach(function(tn){Ae(tn,zt)})}}function Ie(){for(var yt=arguments.length,_t=new Array(yt),jt=0;jt<yt;jt++)_t[jt]=arguments[jt];return useMemo(function(){return De.apply(void 0,_t)},_t,function(ze,zt){return ze.length===zt.length&&ze.every(function(tn,dn){return tn===zt[dn]})})}function tt(yt){var _t,jt,ze=(0,Ve.isMemo)(yt)?yt.type.type:yt.type;return!(typeof ze=="function"&&!((_t=ze.prototype)!==null&&_t!==void 0&&_t.render)||typeof yt=="function"&&!((jt=yt.prototype)!==null&&jt!==void 0&&jt.render))}function Ze(yt,_t){var jt={};return jt[yt.toLowerCase()]=_t.toLowerCase(),jt["Webkit".concat(yt)]="webkit".concat(_t),jt["Moz".concat(yt)]="moz".concat(_t),jt["ms".concat(yt)]="MS".concat(_t),jt["O".concat(yt)]="o".concat(_t.toLowerCase()),jt}function bt(yt,_t){var jt={animationend:Ze("Animation","AnimationEnd"),transitionend:Ze("Transition","TransitionEnd")};return yt&&("AnimationEvent"in _t||delete jt.animationend.animation,"TransitionEvent"in _t||delete jt.transitionend.transition),jt}var wt=bt(ce(),typeof window!="undefined"?window:{}),Kt={};if(ce()){var Qt=document.createElement("div");Kt=Qt.style}var rt={};function st(yt){if(rt[yt])return rt[yt];var _t=wt[yt];if(_t)for(var jt=Object.keys(_t),ze=jt.length,zt=0;zt<ze;zt+=1){var tn=jt[zt];if(Object.prototype.hasOwnProperty.call(_t,tn)&&tn in Kt)return rt[yt]=_t[tn],rt[yt]}return""}var Ct=st("animationend"),Gt=st("transitionend"),Ht=!!(Ct&&Gt),Bt=Ct||"animationend",Ke=Gt||"transitionend";function Jt(yt,_t){if(!yt)return null;if((0,be.Z)(yt)==="object"){var jt=_t.replace(/-\w/g,function(ze){return ze[1].toUpperCase()});return yt[jt]}return"".concat(yt,"-").concat(_t)}var Mn="none",Hn="appear",pn="enter",kt="leave",Qe="none",Ye="prepare",Je="start",ft="active",At="end";function et(yt){var _t=E.useRef(!1),jt=E.useState(yt),ze=(0,oe.Z)(jt,2),zt=ze[0],tn=ze[1];E.useEffect(function(){return _t.current=!1,function(){_t.current=!0}},[]);function dn(Lt,Rt){Rt&&_t.current||tn(Lt)}return[zt,dn]}var vt=function(_t){return+setTimeout(_t,16)},Pt=function(_t){return clearTimeout(_t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(vt=function(_t){return window.requestAnimationFrame(_t)},Pt=function(_t){return window.cancelAnimationFrame(_t)});var Xe=0,Zt=new Map;function He(yt){Zt.delete(yt)}var ut=function(_t){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xe+=1;var ze=Xe;function zt(tn){if(tn===0)He(ze),_t();else{var dn=vt(function(){zt(tn-1)});Zt.set(ze,dn)}}return zt(jt),ze};ut.cancel=function(yt){var _t=Zt.get(yt);return He(_t),Pt(_t)};var wn=ut,sn=function(){var yt=E.useRef(null);function _t(){wn.cancel(yt.current)}function jt(ze){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;_t();var tn=wn(function(){zt<=1?ze({isCanceled:function(){return tn!==yt.current}}):jt(ze,zt-1)});yt.current=tn}return E.useEffect(function(){return function(){_t()}},[]),[jt,_t]},ht=ce()?E.useLayoutEffect:E.useEffect,$t=ht,on=[Ye,Je,ft,At],bn=!1,Kn=!0;function Dt(yt){return yt===ft||yt===At}var Rn=function(yt,_t){var jt=et(Qe),ze=(0,oe.Z)(jt,2),zt=ze[0],tn=ze[1],dn=sn(),Lt=(0,oe.Z)(dn,2),Rt=Lt[0],Nt=Lt[1];function vn(){tn(Ye,!0)}return $t(function(){if(zt!==Qe&&zt!==At){var In=on.indexOf(zt),Xn=on[In+1],Un=_t(zt);Un===bn?tn(Xn,!0):Rt(function(tr){function cr(){tr.isCanceled()||tn(Xn,!0)}Un===!0?cr():Promise.resolve(Un).then(cr)})}},[yt,zt]),E.useEffect(function(){return function(){Nt()}},[]),[vn,zt]},Gn=function(yt){var _t=(0,E.useRef)(),jt=(0,E.useRef)(yt);jt.current=yt;var ze=E.useCallback(function(dn){jt.current(dn)},[]);function zt(dn){dn&&(dn.removeEventListener(Ke,ze),dn.removeEventListener(Bt,ze))}function tn(dn){_t.current&&_t.current!==dn&&zt(_t.current),dn&&dn!==_t.current&&(dn.addEventListener(Ke,ze),dn.addEventListener(Bt,ze),_t.current=dn)}return E.useEffect(function(){return function(){zt(_t.current)}},[]),[tn,zt]};function jr(yt,_t,jt,ze){var zt=ze.motionEnter,tn=zt===void 0?!0:zt,dn=ze.motionAppear,Lt=dn===void 0?!0:dn,Rt=ze.motionLeave,Nt=Rt===void 0?!0:Rt,vn=ze.motionDeadline,In=ze.motionLeaveImmediately,Xn=ze.onAppearPrepare,Un=ze.onEnterPrepare,tr=ze.onLeavePrepare,cr=ze.onAppearStart,Ar=ze.onEnterStart,Ln=ze.onLeaveStart,nn=ze.onAppearActive,Wt=ze.onEnterActive,qt=ze.onLeaveActive,hn=ze.onAppearEnd,Qn=ze.onEnterEnd,Ue=ze.onLeaveEnd,Fe=ze.onVisibleChanged,nt=et(),St=(0,oe.Z)(nt,2),Mt=St[0],Ft=St[1],ln=et(Mn),gn=(0,oe.Z)(ln,2),Nn=gn[0],Bn=gn[1],Fn=et(null),jn=(0,oe.Z)(Fn,2),Jn=jn[0],or=jn[1],Jr=(0,E.useRef)(!1),bo=(0,E.useRef)(null);function Zr(){return jt()}var ao=(0,E.useRef)(!1);function co(So){var Co=Zr();if(!(So&&!So.deadline&&So.target!==Co)){var Xo=ao.current,vi;Nn===Hn&&Xo?vi=hn==null?void 0:hn(Co,So):Nn===pn&&Xo?vi=Qn==null?void 0:Qn(Co,So):Nn===kt&&Xo&&(vi=Ue==null?void 0:Ue(Co,So)),Nn!==Mn&&Xo&&vi!==!1&&(Bn(Mn,!0),or(null,!0))}}var vo=Gn(co),Rr=(0,oe.Z)(vo,1),qr=Rr[0],Eo=E.useMemo(function(){var So,Co,Xo;switch(Nn){case Hn:return So={},(0,ue.Z)(So,Ye,Xn),(0,ue.Z)(So,Je,cr),(0,ue.Z)(So,ft,nn),So;case pn:return Co={},(0,ue.Z)(Co,Ye,Un),(0,ue.Z)(Co,Je,Ar),(0,ue.Z)(Co,ft,Wt),Co;case kt:return Xo={},(0,ue.Z)(Xo,Ye,tr),(0,ue.Z)(Xo,Je,Ln),(0,ue.Z)(Xo,ft,qt),Xo;default:return{}}},[Nn]),ii=Rn(Nn,function(So){if(So===Ye){var Co=Eo[Ye];return Co?Co(Zr()):bn}if(zo in Eo){var Xo;or(((Xo=Eo[zo])===null||Xo===void 0?void 0:Xo.call(Eo,Zr(),null))||null)}return zo===ft&&(qr(Zr()),vn>0&&(clearTimeout(bo.current),bo.current=setTimeout(function(){co({deadline:!0})},vn))),Kn}),uo=(0,oe.Z)(ii,2),ui=uo[0],zo=uo[1],zi=Dt(zo);ao.current=zi,$t(function(){Ft(_t);var So=Jr.current;if(Jr.current=!0,!!yt){var Co;!So&&_t&&Lt&&(Co=Hn),So&&_t&&tn&&(Co=pn),(So&&!_t&&Nt||!So&&In&&!_t&&Nt)&&(Co=kt),Co&&(Bn(Co),ui())}},[_t]),(0,E.useEffect)(function(){(Nn===Hn&&!Lt||Nn===pn&&!tn||Nn===kt&&!Nt)&&Bn(Mn)},[Lt,tn,Nt]),(0,E.useEffect)(function(){return function(){Jr.current=!1,clearTimeout(bo.current)}},[]);var Mi=E.useRef(!1);(0,E.useEffect)(function(){Mt&&(Mi.current=!0),Mt!==void 0&&Nn===Mn&&((Mi.current||Mt)&&(Fe==null||Fe(Mt)),Mi.current=!0)},[Mt,Nn]);var mi=Jn;return Eo[Ye]&&zo===Je&&(mi=(0,ve.Z)({transition:"none"},mi)),[Nn,zo,mi,Mt!=null?Mt:_t]}var mr=function(yt){(0,le.Z)(jt,yt);var _t=(0,fe.Z)(jt);function jt(){return(0,pe.Z)(this,jt),_t.apply(this,arguments)}return(0,ae.Z)(jt,[{key:"render",value:function(){return this.props.children}}]),jt}(E.Component),ur=mr;function Tn(yt){var _t=yt;(0,be.Z)(yt)==="object"&&(_t=yt.transitionSupport);function jt(zt){return!!(zt.motionName&&_t)}var ze=E.forwardRef(function(zt,tn){var dn=zt.visible,Lt=dn===void 0?!0:dn,Rt=zt.removeOnLeave,Nt=Rt===void 0?!0:Rt,vn=zt.forceRender,In=zt.children,Xn=zt.motionName,Un=zt.leavedClassName,tr=zt.eventProps,cr=jt(zt),Ar=(0,E.useRef)(),Ln=(0,E.useRef)();function nn(){try{return Ar.current instanceof HTMLElement?Ar.current:pt(Ln.current)}catch(Fn){return null}}var Wt=jr(cr,Lt,nn,zt),qt=(0,oe.Z)(Wt,4),hn=qt[0],Qn=qt[1],Ue=qt[2],Fe=qt[3],nt=E.useRef(Fe);Fe&&(nt.current=!0);var St=E.useCallback(function(Fn){Ar.current=Fn,Ae(tn,Fn)},[tn]),Mt,Ft=(0,ve.Z)((0,ve.Z)({},tr),{},{visible:Lt});if(!In)Mt=null;else if(hn===Mn||!jt(zt))Fe?Mt=In((0,ve.Z)({},Ft),St):!Nt&&nt.current&&Un?Mt=In((0,ve.Z)((0,ve.Z)({},Ft),{},{className:Un}),St):vn||!Nt&&!Un?Mt=In((0,ve.Z)((0,ve.Z)({},Ft),{},{style:{display:"none"}}),St):Mt=null;else{var ln,gn;Qn===Ye?gn="prepare":Dt(Qn)?gn="active":Qn===Je&&(gn="start"),Mt=In((0,ve.Z)((0,ve.Z)({},Ft),{},{className:me()(Jt(Xn,hn),(ln={},(0,ue.Z)(ln,Jt(Xn,"".concat(hn,"-").concat(gn)),gn),(0,ue.Z)(ln,Xn,typeof Xn=="string"),ln)),style:Ue}),St)}if(E.isValidElement(Mt)&&tt(Mt)){var Nn=Mt,Bn=Nn.ref;Bn||(Mt=E.cloneElement(Mt,{ref:St}))}return E.createElement(ur,{ref:Ln},Mt)});return ze.displayName="CSSMotion",ze}var Or=Tn(Ht),zr="add",lo="keep",di="remove",Ko="removed";function pr(yt){var _t;return yt&&(0,be.Z)(yt)==="object"&&"key"in yt?_t=yt:_t={key:yt},(0,ve.Z)((0,ve.Z)({},_t),{},{key:String(_t.key)})}function Xr(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return yt.map(pr)}function to(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=[],ze=0,zt=_t.length,tn=Xr(yt),dn=Xr(_t);tn.forEach(function(Nt){for(var vn=!1,In=ze;In<zt;In+=1){var Xn=dn[In];if(Xn.key===Nt.key){ze<In&&(jt=jt.concat(dn.slice(ze,In).map(function(Un){return(0,ve.Z)((0,ve.Z)({},Un),{},{status:zr})})),ze=In),jt.push((0,ve.Z)((0,ve.Z)({},Xn),{},{status:lo})),ze+=1,vn=!0;break}}vn||jt.push((0,ve.Z)((0,ve.Z)({},Nt),{},{status:di}))}),ze<zt&&(jt=jt.concat(dn.slice(ze).map(function(Nt){return(0,ve.Z)((0,ve.Z)({},Nt),{},{status:zr})})));var Lt={};jt.forEach(function(Nt){var vn=Nt.key;Lt[vn]=(Lt[vn]||0)+1});var Rt=Object.keys(Lt).filter(function(Nt){return Lt[Nt]>1});return Rt.forEach(function(Nt){jt=jt.filter(function(vn){var In=vn.key,Xn=vn.status;return In!==Nt||Xn!==di}),jt.forEach(function(vn){vn.key===Nt&&(vn.status=lo)})}),jt}var mo=["component","children","onVisibleChanged","onAllRemoved"],Kr=["status"],Vo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Do(yt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Or,jt=function(ze){(0,le.Z)(tn,ze);var zt=(0,fe.Z)(tn);function tn(){var dn;(0,pe.Z)(this,tn);for(var Lt=arguments.length,Rt=new Array(Lt),Nt=0;Nt<Lt;Nt++)Rt[Nt]=arguments[Nt];return dn=zt.call.apply(zt,[this].concat(Rt)),(0,ue.Z)((0,he.Z)(dn),"state",{keyEntities:[]}),(0,ue.Z)((0,he.Z)(dn),"removeKey",function(vn){var In=dn.state.keyEntities,Xn=In.map(function(Un){return Un.key!==vn?Un:(0,ve.Z)((0,ve.Z)({},Un),{},{status:Ko})});return dn.setState({keyEntities:Xn}),Xn.filter(function(Un){var tr=Un.status;return tr!==Ko}).length}),dn}return(0,ae.Z)(tn,[{key:"render",value:function(){var Lt=this,Rt=this.state.keyEntities,Nt=this.props,vn=Nt.component,In=Nt.children,Xn=Nt.onVisibleChanged,Un=Nt.onAllRemoved,tr=(0,ie.Z)(Nt,mo),cr=vn||E.Fragment,Ar={};return Vo.forEach(function(Ln){Ar[Ln]=tr[Ln],delete tr[Ln]}),delete tr.keys,E.createElement(cr,tr,Rt.map(function(Ln){var nn=Ln.status,Wt=(0,ie.Z)(Ln,Kr),qt=nn===zr||nn===lo;return E.createElement(_t,(0,te.Z)({},Ar,{key:Wt.key,visible:qt,eventProps:Wt,onVisibleChanged:function(Qn){if(Xn==null||Xn(Qn,{key:Wt.key}),!Qn){var Ue=Lt.removeKey(Wt.key);Ue===0&&Un&&Un()}}}),In)}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,Rt){var Nt=Lt.keys,vn=Rt.keyEntities,In=Xr(Nt),Xn=to(vn,In);return{keyEntities:Xn.filter(function(Un){var tr=vn.find(function(cr){var Ar=cr.key;return Un.key===Ar});return!(tr&&tr.status===Ko&&Un.status===di)})}}}]),tn}(E.Component);return(0,ue.Z)(jt,"defaultProps",{component:"div"}),jt}var io=Do(Ht),Cr=Or,Ei=ee(56261);function cn(yt,_t){var jt=E.useState(!1),ze=(0,oe.Z)(jt,2),zt=ze[0],tn=ze[1];E.useLayoutEffect(function(){if(zt)return yt(),function(){_t()}},[zt]),E.useLayoutEffect(function(){return tn(!0),function(){tn(!1)}},[])}var ge=ee(83898),Se=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Pe=function(_t,jt){var ze=_t.className,zt=_t.style,tn=_t.motion,dn=_t.motionNodes,Lt=_t.motionType,Rt=_t.onMotionStart,Nt=_t.onMotionEnd,vn=_t.active,In=_t.treeNodeRequiredProps,Xn=(0,ie.Z)(_t,Se),Un=E.useState(!0),tr=(0,oe.Z)(Un,2),cr=tr[0],Ar=tr[1],Ln=E.useContext(b.k),nn=Ln.prefixCls,Wt=dn&&Lt!=="hide";_e(function(){dn&&Wt!==cr&&Ar(Wt)},[dn]);var qt=function(){dn&&Rt()},hn=E.useRef(!1),Qn=function(){dn&&!hn.current&&(hn.current=!0,Nt())};cn(qt,Qn);var Ue=function(nt){Wt===nt&&Qn()};return dn?E.createElement(Cr,(0,te.Z)({ref:jt,visible:cr},tn,{motionAppear:Lt==="show",onVisibleChanged:Ue}),function(Fe,nt){var St=Fe.className,Mt=Fe.style;return E.createElement("div",{ref:nt,className:me()("".concat(nn,"-treenode-motion"),St),style:Mt},dn.map(function(Ft){var ln=(0,te.Z)({},((0,z.Z)(Ft.data),Ft.data)),gn=Ft.title,Nn=Ft.key,Bn=Ft.isStart,Fn=Ft.isEnd;delete ln.children;var jn=(0,ge.H8)(Nn,In);return E.createElement(Ei.Z,(0,te.Z)({},ln,jn,{title:gn,active:vn,data:Ft.data,key:Nn,isStart:Bn,isEnd:Fn}))}))}):E.createElement(Ei.Z,(0,te.Z)({domRef:jt,className:ze,style:zt},Xn,{active:vn}))};Pe.displayName="MotionTreeNode";var Le=E.forwardRef(Pe),Ne=Le;function qe(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=yt.length,ze=_t.length;if(Math.abs(jt-ze)!==1)return{add:!1,key:null};function zt(tn,dn){var Lt=new Map;tn.forEach(function(Nt){Lt.set(Nt,!0)});var Rt=dn.filter(function(Nt){return!Lt.has(Nt)});return Rt.length===1?Rt[0]:null}return jt<ze?{add:!0,key:zt(yt,_t)}:{add:!1,key:zt(_t,yt)}}function it(yt,_t,jt){var ze=yt.findIndex(function(Lt){return Lt.key===jt}),zt=yt[ze+1],tn=_t.findIndex(function(Lt){return Lt.key===jt});if(zt){var dn=_t.findIndex(function(Lt){return Lt.key===zt.key});return _t.slice(tn+1,dn)}return _t.slice(tn+1)}var un=["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"],Vt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},En=function(){},Vn="RC_TREE_MOTION_".concat(Math.random()),Pr={key:Vn},Ot={key:Vn,level:0,index:0,pos:"0",node:Pr,nodes:[Pr]},qn={parent:null,children:[],pos:Ot.pos,data:Pr,title:null,key:Vn,isStart:[],isEnd:[]};function er(yt,_t,jt,ze){return _t===!1||!jt?yt:yt.slice(0,Math.ceil(jt/ze)+1)}function Pn(yt){var _t=yt.key,jt=yt.pos;return(0,ge.km)(_t,jt)}function An(yt){for(var _t=String(yt.data.key),jt=yt;jt.parent;)jt=jt.parent,_t="".concat(jt.data.key," > ").concat(_t);return _t}var Yn=E.forwardRef(function(yt,_t){var jt=yt.prefixCls,ze=yt.data,zt=yt.selectable,tn=yt.checkable,dn=yt.expandedKeys,Lt=yt.selectedKeys,Rt=yt.checkedKeys,Nt=yt.loadedKeys,vn=yt.loadingKeys,In=yt.halfCheckedKeys,Xn=yt.keyEntities,Un=yt.disabled,tr=yt.dragging,cr=yt.dragOverNodeKey,Ar=yt.dropPosition,Ln=yt.motion,nn=yt.height,Wt=yt.itemHeight,qt=yt.virtual,hn=yt.focusable,Qn=yt.activeItem,Ue=yt.focused,Fe=yt.tabIndex,nt=yt.onKeyDown,St=yt.onFocus,Mt=yt.onBlur,Ft=yt.onActiveChange,ln=yt.onListChangeStart,gn=yt.onListChangeEnd,Nn=(0,ie.Z)(yt,un),Bn=E.useRef(null),Fn=E.useRef(null);E.useImperativeHandle(_t,function(){return{scrollTo:function(Bi){Bn.current.scrollTo(Bi)},getIndentWidth:function(){return Fn.current.offsetWidth}}});var jn=E.useState(dn),Jn=(0,oe.Z)(jn,2),or=Jn[0],Jr=Jn[1],bo=E.useState(ze),Zr=(0,oe.Z)(bo,2),ao=Zr[0],co=Zr[1],vo=E.useState(ze),Rr=(0,oe.Z)(vo,2),qr=Rr[0],Eo=Rr[1],ii=E.useState([]),uo=(0,oe.Z)(ii,2),ui=uo[0],zo=uo[1],zi=E.useState(null),Mi=(0,oe.Z)(zi,2),mi=Mi[0],So=Mi[1],Co=E.useRef(ze);Co.current=ze;function Xo(){var Oo=Co.current;co(Oo),Eo(Oo),zo([]),So(null),gn()}_e(function(){Jr(dn);var Oo=qe(or,dn);if(Oo.key!==null)if(Oo.add){var Bi=ao.findIndex(function(ai){var yi=ai.key;return yi===Oo.key}),Ri=er(it(ao,ze,Oo.key),qt,nn,Wt),Hi=ao.slice();Hi.splice(Bi+1,0,qn),Eo(Hi),zo(Ri),So("show")}else{var Wi=ze.findIndex(function(ai){var yi=ai.key;return yi===Oo.key}),Qo=er(it(ze,ao,Oo.key),qt,nn,Wt),Si=ze.slice();Si.splice(Wi+1,0,qn),Eo(Si),zo(Qo),So("hide")}else ao!==ze&&(co(ze),Eo(ze))},[dn,ze]),E.useEffect(function(){tr||Xo()},[tr]);var vi=Ln?qr:ze,Ai={expandedKeys:dn,selectedKeys:Lt,loadedKeys:Nt,loadingKeys:vn,checkedKeys:Rt,halfCheckedKeys:In,dragOverNodeKey:cr,dropPosition:Ar,keyEntities:Xn};return E.createElement(E.Fragment,null,Ue&&Qn&&E.createElement("span",{style:Vt,"aria-live":"assertive"},An(Qn)),E.createElement("div",null,E.createElement("input",{style:Vt,disabled:hn===!1||Un,tabIndex:hn!==!1?Fe:null,onKeyDown:nt,onFocus:St,onBlur:Mt,value:"",onChange:En,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(jt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(jt,"-indent")},E.createElement("div",{ref:Fn,className:"".concat(jt,"-indent-unit")}))),E.createElement(Ce.Z,(0,te.Z)({},Nn,{data:vi,itemKey:Pn,height:nn,fullHeight:!1,virtual:qt,itemHeight:Wt,prefixCls:"".concat(jt,"-list"),ref:Bn,onVisibleChange:function(Bi,Ri){var Hi=new Set(Bi),Wi=Ri.filter(function(Qo){return!Hi.has(Qo)});Wi.some(function(Qo){return Pn(Qo)===Vn})&&Xo()}}),function(Oo){var Bi=Oo.pos,Ri=(0,te.Z)({},((0,z.Z)(Oo.data),Oo.data)),Hi=Oo.title,Wi=Oo.key,Qo=Oo.isStart,Si=Oo.isEnd,ai=(0,ge.km)(Wi,Bi);delete Ri.key,delete Ri.children;var yi=(0,ge.H8)(ai,Ai);return E.createElement(Ne,(0,te.Z)({},Ri,yi,{title:Hi,active:!!Qn&&Wi===Qn.key,pos:Bi,data:Oo.data,isStart:Qo,isEnd:Si,motion:Ln,motionNodes:Wi===Vn?ui:null,motionType:mi,onMotionStart:ln,onMotionEnd:Xo,treeNodeRequiredProps:Ai,onMouseMove:function(){Ft(null)}}))}))});Yn.displayName="NodeList";var yr=Yn,lr=ee(29873),ci=ee(97153),Po=ee(3596),fr=10,Vr=function(yt){(0,le.Z)(jt,yt);var _t=(0,fe.Z)(jt);function jt(){var ze;(0,pe.Z)(this,jt);for(var zt=arguments.length,tn=new Array(zt),dn=0;dn<zt;dn++)tn[dn]=arguments[dn];return ze=_t.call.apply(_t,[this].concat(tn)),ze.destroyed=!1,ze.delayedDragEnterLogic=void 0,ze.loadingRetryTimes={},ze.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ge.w$)()},ze.dragStartMousePosition=null,ze.dragNode=void 0,ze.currentMouseOverDroppableNodeKey=null,ze.listRef=E.createRef(),ze.onNodeDragStart=function(Lt,Rt){var Nt=ze.state,vn=Nt.expandedKeys,In=Nt.keyEntities,Xn=ze.props.onDragStart,Un=Rt.props.eventKey;ze.dragNode=Rt,ze.dragStartMousePosition={x:Lt.clientX,y:Lt.clientY};var tr=(0,lr._5)(vn,Un);ze.setState({draggingNodeKey:Un,dragChildrenKeys:(0,lr.wA)(Un,In),indent:ze.listRef.current.getIndentWidth()}),ze.setExpandedKeys(tr),window.addEventListener("dragend",ze.onWindowDragEnd),Xn==null||Xn({event:Lt,node:(0,ge.F)(Rt.props)})},ze.onNodeDragEnter=function(Lt,Rt){var Nt=ze.state,vn=Nt.expandedKeys,In=Nt.keyEntities,Xn=Nt.dragChildrenKeys,Un=Nt.flattenNodes,tr=Nt.indent,cr=ze.props,Ar=cr.onDragEnter,Ln=cr.onExpand,nn=cr.allowDrop,Wt=cr.direction,qt=Rt.props,hn=qt.pos,Qn=qt.eventKey,Ue=(0,he.Z)(ze),Fe=Ue.dragNode;if(ze.currentMouseOverDroppableNodeKey!==Qn&&(ze.currentMouseOverDroppableNodeKey=Qn),!Fe){ze.resetDragState();return}var nt=(0,lr.OM)(Lt,Fe,Rt,tr,ze.dragStartMousePosition,nn,Un,In,vn,Wt),St=nt.dropPosition,Mt=nt.dropLevelOffset,Ft=nt.dropTargetKey,ln=nt.dropContainerKey,gn=nt.dropTargetPos,Nn=nt.dropAllowed,Bn=nt.dragOverNodeKey;if(Xn.indexOf(Ft)!==-1||!Nn){ze.resetDragState();return}if(ze.delayedDragEnterLogic||(ze.delayedDragEnterLogic={}),Object.keys(ze.delayedDragEnterLogic).forEach(function(Fn){clearTimeout(ze.delayedDragEnterLogic[Fn])}),Fe.props.eventKey!==Rt.props.eventKey&&(Lt.persist(),ze.delayedDragEnterLogic[hn]=window.setTimeout(function(){if(ze.state.draggingNodeKey!==null){var Fn=(0,de.Z)(vn),jn=(0,Po.Z)(In,Rt.props.eventKey);jn&&(jn.children||[]).length&&(Fn=(0,lr.L0)(vn,Rt.props.eventKey)),"expandedKeys"in ze.props||ze.setExpandedKeys(Fn),Ln==null||Ln(Fn,{node:(0,ge.F)(Rt.props),expanded:!0,nativeEvent:Lt.nativeEvent})}},800)),Fe.props.eventKey===Ft&&Mt===0){ze.resetDragState();return}ze.setState({dragOverNodeKey:Bn,dropPosition:St,dropLevelOffset:Mt,dropTargetKey:Ft,dropContainerKey:ln,dropTargetPos:gn,dropAllowed:Nn}),Ar==null||Ar({event:Lt,node:(0,ge.F)(Rt.props),expandedKeys:vn})},ze.onNodeDragOver=function(Lt,Rt){var Nt=ze.state,vn=Nt.dragChildrenKeys,In=Nt.flattenNodes,Xn=Nt.keyEntities,Un=Nt.expandedKeys,tr=Nt.indent,cr=ze.props,Ar=cr.onDragOver,Ln=cr.allowDrop,nn=cr.direction,Wt=(0,he.Z)(ze),qt=Wt.dragNode;if(qt){var hn=(0,lr.OM)(Lt,qt,Rt,tr,ze.dragStartMousePosition,Ln,In,Xn,Un,nn),Qn=hn.dropPosition,Ue=hn.dropLevelOffset,Fe=hn.dropTargetKey,nt=hn.dropContainerKey,St=hn.dropAllowed,Mt=hn.dropTargetPos,Ft=hn.dragOverNodeKey;vn.indexOf(Fe)!==-1||!St||(qt.props.eventKey===Fe&&Ue===0?ze.state.dropPosition===null&&ze.state.dropLevelOffset===null&&ze.state.dropTargetKey===null&&ze.state.dropContainerKey===null&&ze.state.dropTargetPos===null&&ze.state.dropAllowed===!1&&ze.state.dragOverNodeKey===null||ze.resetDragState():Qn===ze.state.dropPosition&&Ue===ze.state.dropLevelOffset&&Fe===ze.state.dropTargetKey&&nt===ze.state.dropContainerKey&&Mt===ze.state.dropTargetPos&&St===ze.state.dropAllowed&&Ft===ze.state.dragOverNodeKey||ze.setState({dropPosition:Qn,dropLevelOffset:Ue,dropTargetKey:Fe,dropContainerKey:nt,dropTargetPos:Mt,dropAllowed:St,dragOverNodeKey:Ft}),Ar==null||Ar({event:Lt,node:(0,ge.F)(Rt.props)}))}},ze.onNodeDragLeave=function(Lt,Rt){ze.currentMouseOverDroppableNodeKey===Rt.props.eventKey&&!Lt.currentTarget.contains(Lt.relatedTarget)&&(ze.resetDragState(),ze.currentMouseOverDroppableNodeKey=null);var Nt=ze.props.onDragLeave;Nt==null||Nt({event:Lt,node:(0,ge.F)(Rt.props)})},ze.onWindowDragEnd=function(Lt){ze.onNodeDragEnd(Lt,null,!0),window.removeEventListener("dragend",ze.onWindowDragEnd)},ze.onNodeDragEnd=function(Lt,Rt){var Nt=ze.props.onDragEnd;ze.setState({dragOverNodeKey:null}),ze.cleanDragState(),Nt==null||Nt({event:Lt,node:(0,ge.F)(Rt.props)}),ze.dragNode=null,window.removeEventListener("dragend",ze.onWindowDragEnd)},ze.onNodeDrop=function(Lt,Rt){var Nt,vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,In=ze.state,Xn=In.dragChildrenKeys,Un=In.dropPosition,tr=In.dropTargetKey,cr=In.dropTargetPos,Ar=In.dropAllowed;if(Ar){var Ln=ze.props.onDrop;if(ze.setState({dragOverNodeKey:null}),ze.cleanDragState(),tr!==null){var nn=(0,ve.Z)((0,ve.Z)({},(0,ge.H8)(tr,ze.getTreeNodeRequiredProps())),{},{active:((Nt=ze.getActiveItem())===null||Nt===void 0?void 0:Nt.key)===tr,data:(0,Po.Z)(ze.state.keyEntities,tr).node}),Wt=Xn.indexOf(tr)!==-1;(0,y.ZP)(!Wt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var qt=(0,lr.yx)(cr),hn={event:Lt,node:(0,ge.F)(nn),dragNode:ze.dragNode?(0,ge.F)(ze.dragNode.props):null,dragNodesKeys:[ze.dragNode.props.eventKey].concat(Xn),dropToGap:Un!==0,dropPosition:Un+Number(qt[qt.length-1])};vn||Ln==null||Ln(hn),ze.dragNode=null}}},ze.cleanDragState=function(){var Lt=ze.state.draggingNodeKey;Lt!==null&&ze.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ze.dragStartMousePosition=null,ze.currentMouseOverDroppableNodeKey=null},ze.triggerExpandActionExpand=function(Lt,Rt){var Nt=ze.state,vn=Nt.expandedKeys,In=Nt.flattenNodes,Xn=Rt.expanded,Un=Rt.key,tr=Rt.isLeaf;if(!(tr||Lt.shiftKey||Lt.metaKey||Lt.ctrlKey)){var cr=In.filter(function(Ln){return Ln.key===Un})[0],Ar=(0,ge.F)((0,ve.Z)((0,ve.Z)({},(0,ge.H8)(Un,ze.getTreeNodeRequiredProps())),{},{data:cr.data}));ze.setExpandedKeys(Xn?(0,lr._5)(vn,Un):(0,lr.L0)(vn,Un)),ze.onNodeExpand(Lt,Ar)}},ze.onNodeClick=function(Lt,Rt){var Nt=ze.props,vn=Nt.onClick,In=Nt.expandAction;In==="click"&&ze.triggerExpandActionExpand(Lt,Rt),vn==null||vn(Lt,Rt)},ze.onNodeDoubleClick=function(Lt,Rt){var Nt=ze.props,vn=Nt.onDoubleClick,In=Nt.expandAction;In==="doubleClick"&&ze.triggerExpandActionExpand(Lt,Rt),vn==null||vn(Lt,Rt)},ze.onNodeSelect=function(Lt,Rt){var Nt=ze.state.selectedKeys,vn=ze.state,In=vn.keyEntities,Xn=vn.fieldNames,Un=ze.props,tr=Un.onSelect,cr=Un.multiple,Ar=Rt.selected,Ln=Rt[Xn.key],nn=!Ar;nn?cr?Nt=(0,lr.L0)(Nt,Ln):Nt=[Ln]:Nt=(0,lr._5)(Nt,Ln);var Wt=Nt.map(function(qt){var hn=(0,Po.Z)(In,qt);return hn?hn.node:null}).filter(function(qt){return qt});ze.setUncontrolledState({selectedKeys:Nt}),tr==null||tr(Nt,{event:"select",selected:nn,node:Rt,selectedNodes:Wt,nativeEvent:Lt.nativeEvent})},ze.onNodeCheck=function(Lt,Rt,Nt){var vn=ze.state,In=vn.keyEntities,Xn=vn.checkedKeys,Un=vn.halfCheckedKeys,tr=ze.props,cr=tr.checkStrictly,Ar=tr.onCheck,Ln=Rt.key,nn,Wt={event:"check",node:Rt,checked:Nt,nativeEvent:Lt.nativeEvent};if(cr){var qt=Nt?(0,lr.L0)(Xn,Ln):(0,lr._5)(Xn,Ln),hn=(0,lr._5)(Un,Ln);nn={checked:qt,halfChecked:hn},Wt.checkedNodes=qt.map(function(Mt){return(0,Po.Z)(In,Mt)}).filter(function(Mt){return Mt}).map(function(Mt){return Mt.node}),ze.setUncontrolledState({checkedKeys:qt})}else{var Qn=(0,ci.S)([].concat((0,de.Z)(Xn),[Ln]),!0,In),Ue=Qn.checkedKeys,Fe=Qn.halfCheckedKeys;if(!Nt){var nt=new Set(Ue);nt.delete(Ln);var St=(0,ci.S)(Array.from(nt),{checked:!1,halfCheckedKeys:Fe},In);Ue=St.checkedKeys,Fe=St.halfCheckedKeys}nn=Ue,Wt.checkedNodes=[],Wt.checkedNodesPositions=[],Wt.halfCheckedKeys=Fe,Ue.forEach(function(Mt){var Ft=(0,Po.Z)(In,Mt);if(Ft){var ln=Ft.node,gn=Ft.pos;Wt.checkedNodes.push(ln),Wt.checkedNodesPositions.push({node:ln,pos:gn})}}),ze.setUncontrolledState({checkedKeys:Ue},!1,{halfCheckedKeys:Fe})}Ar==null||Ar(nn,Wt)},ze.onNodeLoad=function(Lt){var Rt=Lt.key,Nt=new Promise(function(vn,In){ze.setState(function(Xn){var Un=Xn.loadedKeys,tr=Un===void 0?[]:Un,cr=Xn.loadingKeys,Ar=cr===void 0?[]:cr,Ln=ze.props,nn=Ln.loadData,Wt=Ln.onLoad;if(!nn||tr.indexOf(Rt)!==-1||Ar.indexOf(Rt)!==-1)return null;var qt=nn(Lt);return qt.then(function(){var hn=ze.state.loadedKeys,Qn=(0,lr.L0)(hn,Rt);Wt==null||Wt(Qn,{event:"load",node:Lt}),ze.setUncontrolledState({loadedKeys:Qn}),ze.setState(function(Ue){return{loadingKeys:(0,lr._5)(Ue.loadingKeys,Rt)}}),vn()}).catch(function(hn){if(ze.setState(function(Ue){return{loadingKeys:(0,lr._5)(Ue.loadingKeys,Rt)}}),ze.loadingRetryTimes[Rt]=(ze.loadingRetryTimes[Rt]||0)+1,ze.loadingRetryTimes[Rt]>=fr){var Qn=ze.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ze.setUncontrolledState({loadedKeys:(0,lr.L0)(Qn,Rt)}),vn()}In(hn)}),{loadingKeys:(0,lr.L0)(Ar,Rt)}})});return Nt.catch(function(){}),Nt},ze.onNodeMouseEnter=function(Lt,Rt){var Nt=ze.props.onMouseEnter;Nt==null||Nt({event:Lt,node:Rt})},ze.onNodeMouseLeave=function(Lt,Rt){var Nt=ze.props.onMouseLeave;Nt==null||Nt({event:Lt,node:Rt})},ze.onNodeContextMenu=function(Lt,Rt){var Nt=ze.props.onRightClick;Nt&&(Lt.preventDefault(),Nt({event:Lt,node:Rt}))},ze.onFocus=function(){var Lt=ze.props.onFocus;ze.setState({focused:!0});for(var Rt=arguments.length,Nt=new Array(Rt),vn=0;vn<Rt;vn++)Nt[vn]=arguments[vn];Lt==null||Lt.apply(void 0,Nt)},ze.onBlur=function(){var Lt=ze.props.onBlur;ze.setState({focused:!1}),ze.onActiveChange(null);for(var Rt=arguments.length,Nt=new Array(Rt),vn=0;vn<Rt;vn++)Nt[vn]=arguments[vn];Lt==null||Lt.apply(void 0,Nt)},ze.getTreeNodeRequiredProps=function(){var Lt=ze.state,Rt=Lt.expandedKeys,Nt=Lt.selectedKeys,vn=Lt.loadedKeys,In=Lt.loadingKeys,Xn=Lt.checkedKeys,Un=Lt.halfCheckedKeys,tr=Lt.dragOverNodeKey,cr=Lt.dropPosition,Ar=Lt.keyEntities;return{expandedKeys:Rt||[],selectedKeys:Nt||[],loadedKeys:vn||[],loadingKeys:In||[],checkedKeys:Xn||[],halfCheckedKeys:Un||[],dragOverNodeKey:tr,dropPosition:cr,keyEntities:Ar}},ze.setExpandedKeys=function(Lt){var Rt=ze.state,Nt=Rt.treeData,vn=Rt.fieldNames,In=(0,ge.oH)(Nt,Lt,vn);ze.setUncontrolledState({expandedKeys:Lt,flattenNodes:In},!0)},ze.onNodeExpand=function(Lt,Rt){var Nt=ze.state.expandedKeys,vn=ze.state,In=vn.listChanging,Xn=vn.fieldNames,Un=ze.props,tr=Un.onExpand,cr=Un.loadData,Ar=Rt.expanded,Ln=Rt[Xn.key];if(!In){var nn=Nt.indexOf(Ln),Wt=!Ar;if((0,y.ZP)(Ar&&nn!==-1||!Ar&&nn===-1,"Expand state not sync with index check"),Wt?Nt=(0,lr.L0)(Nt,Ln):Nt=(0,lr._5)(Nt,Ln),ze.setExpandedKeys(Nt),tr==null||tr(Nt,{node:Rt,expanded:Wt,nativeEvent:Lt.nativeEvent}),Wt&&cr){var qt=ze.onNodeLoad(Rt);qt&&qt.then(function(){var hn=(0,ge.oH)(ze.state.treeData,Nt,Xn);ze.setUncontrolledState({flattenNodes:hn})}).catch(function(){var hn=ze.state.expandedKeys,Qn=(0,lr._5)(hn,Ln);ze.setExpandedKeys(Qn)})}}},ze.onListChangeStart=function(){ze.setUncontrolledState({listChanging:!0})},ze.onListChangeEnd=function(){setTimeout(function(){ze.setUncontrolledState({listChanging:!1})})},ze.onActiveChange=function(Lt){var Rt=ze.state.activeKey,Nt=ze.props.onActiveChange;Rt!==Lt&&(ze.setState({activeKey:Lt}),Lt!==null&&ze.scrollTo({key:Lt}),Nt==null||Nt(Lt))},ze.getActiveItem=function(){var Lt=ze.state,Rt=Lt.activeKey,Nt=Lt.flattenNodes;return Rt===null?null:Nt.find(function(vn){var In=vn.key;return In===Rt})||null},ze.offsetActiveKey=function(Lt){var Rt=ze.state,Nt=Rt.flattenNodes,vn=Rt.activeKey,In=Nt.findIndex(function(tr){var cr=tr.key;return cr===vn});In===-1&&Lt<0&&(In=Nt.length),In=(In+Lt+Nt.length)%Nt.length;var Xn=Nt[In];if(Xn){var Un=Xn.key;ze.onActiveChange(Un)}else ze.onActiveChange(null)},ze.onKeyDown=function(Lt){var Rt=ze.state,Nt=Rt.activeKey,vn=Rt.expandedKeys,In=Rt.checkedKeys,Xn=Rt.fieldNames,Un=ze.props,tr=Un.onKeyDown,cr=Un.checkable,Ar=Un.selectable;switch(Lt.which){case ne.UP:{ze.offsetActiveKey(-1),Lt.preventDefault();break}case ne.DOWN:{ze.offsetActiveKey(1),Lt.preventDefault();break}}var Ln=ze.getActiveItem();if(Ln&&Ln.data){var nn=ze.getTreeNodeRequiredProps(),Wt=Ln.data.isLeaf===!1||!!(Ln.data[Xn.children]||[]).length,qt=(0,ge.F)((0,ve.Z)((0,ve.Z)({},(0,ge.H8)(Nt,nn)),{},{data:Ln.data,active:!0}));switch(Lt.which){case ne.LEFT:{Wt&&vn.includes(Nt)?ze.onNodeExpand({},qt):Ln.parent&&ze.onActiveChange(Ln.parent.key),Lt.preventDefault();break}case ne.RIGHT:{Wt&&!vn.includes(Nt)?ze.onNodeExpand({},qt):Ln.children&&Ln.children.length&&ze.onActiveChange(Ln.children[0].key),Lt.preventDefault();break}case ne.ENTER:case ne.SPACE:{cr&&!qt.disabled&&qt.checkable!==!1&&!qt.disableCheckbox?ze.onNodeCheck({},qt,!In.includes(Nt)):!cr&&Ar&&!qt.disabled&&qt.selectable!==!1&&ze.onNodeSelect({},qt);break}}}tr==null||tr(Lt)},ze.setUncontrolledState=function(Lt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ze.destroyed){var vn=!1,In=!0,Xn={};Object.keys(Lt).forEach(function(Un){if(Un in ze.props){In=!1;return}vn=!0,Xn[Un]=Lt[Un]}),vn&&(!Rt||In)&&ze.setState((0,ve.Z)((0,ve.Z)({},Xn),Nt))}},ze.scrollTo=function(Lt){ze.listRef.current.scrollTo(Lt)},ze}return(0,ae.Z)(jt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var zt=this.props.activeKey;zt!==void 0&&zt!==this.state.activeKey&&(this.setState({activeKey:zt}),zt!==null&&this.scrollTo({key:zt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var zt,tn=this.state,dn=tn.focused,Lt=tn.flattenNodes,Rt=tn.keyEntities,Nt=tn.draggingNodeKey,vn=tn.activeKey,In=tn.dropLevelOffset,Xn=tn.dropContainerKey,Un=tn.dropTargetKey,tr=tn.dropPosition,cr=tn.dragOverNodeKey,Ar=tn.indent,Ln=this.props,nn=Ln.prefixCls,Wt=Ln.className,qt=Ln.style,hn=Ln.showLine,Qn=Ln.focusable,Ue=Ln.tabIndex,Fe=Ue===void 0?0:Ue,nt=Ln.selectable,St=Ln.showIcon,Mt=Ln.icon,Ft=Ln.switcherIcon,ln=Ln.draggable,gn=Ln.checkable,Nn=Ln.checkStrictly,Bn=Ln.disabled,Fn=Ln.motion,jn=Ln.loadData,Jn=Ln.filterTreeNode,or=Ln.height,Jr=Ln.itemHeight,bo=Ln.virtual,Zr=Ln.titleRender,ao=Ln.dropIndicatorRender,co=Ln.onContextMenu,vo=Ln.onScroll,Rr=Ln.direction,qr=Ln.rootClassName,Eo=Ln.rootStyle,ii=(0,a.Z)(this.props,{aria:!0,data:!0}),uo;return ln&&((0,be.Z)(ln)==="object"?uo=ln:typeof ln=="function"?uo={nodeDraggable:ln}:uo={}),E.createElement(b.k.Provider,{value:{prefixCls:nn,selectable:nt,showIcon:St,icon:Mt,switcherIcon:Ft,draggable:uo,draggingNodeKey:Nt,checkable:gn,checkStrictly:Nn,disabled:Bn,keyEntities:Rt,dropLevelOffset:In,dropContainerKey:Xn,dropTargetKey:Un,dropPosition:tr,dragOverNodeKey:cr,indent:Ar,direction:Rr,dropIndicatorRender:ao,loadData:jn,filterTreeNode:Jn,titleRender:Zr,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}},E.createElement("div",{role:"tree",className:me()(nn,Wt,qr,(zt={},(0,ue.Z)(zt,"".concat(nn,"-show-line"),hn),(0,ue.Z)(zt,"".concat(nn,"-focused"),dn),(0,ue.Z)(zt,"".concat(nn,"-active-focused"),vn!==null),zt)),style:Eo},E.createElement(yr,(0,te.Z)({ref:this.listRef,prefixCls:nn,style:qt,data:Lt,disabled:Bn,selectable:nt,checkable:!!gn,motion:Fn,dragging:Nt!==null,height:or,itemHeight:Jr,virtual:bo,focusable:Qn,focused:dn,tabIndex:Fe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:co,onScroll:vo},this.getTreeNodeRequiredProps(),ii))))}}],[{key:"getDerivedStateFromProps",value:function(zt,tn){var dn=tn.prevProps,Lt={prevProps:zt};function Rt(Qn){return!dn&&Qn in zt||dn&&dn[Qn]!==zt[Qn]}var Nt,vn=tn.fieldNames;if(Rt("fieldNames")&&(vn=(0,ge.w$)(zt.fieldNames),Lt.fieldNames=vn),Rt("treeData")?Nt=zt.treeData:Rt("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Nt=(0,ge.zn)(zt.children)),Nt){Lt.treeData=Nt;var In=(0,ge.I8)(Nt,{fieldNames:vn});Lt.keyEntities=(0,ve.Z)((0,ue.Z)({},Vn,Ot),In.keyEntities)}var Xn=Lt.keyEntities||tn.keyEntities;if(Rt("expandedKeys")||dn&&Rt("autoExpandParent"))Lt.expandedKeys=zt.autoExpandParent||!dn&&zt.defaultExpandParent?(0,lr.r7)(zt.expandedKeys,Xn):zt.expandedKeys;else if(!dn&&zt.defaultExpandAll){var Un=(0,ve.Z)({},Xn);delete Un[Vn],Lt.expandedKeys=Object.keys(Un).map(function(Qn){return Un[Qn].key})}else!dn&&zt.defaultExpandedKeys&&(Lt.expandedKeys=zt.autoExpandParent||zt.defaultExpandParent?(0,lr.r7)(zt.defaultExpandedKeys,Xn):zt.defaultExpandedKeys);if(Lt.expandedKeys||delete Lt.expandedKeys,Nt||Lt.expandedKeys){var tr=(0,ge.oH)(Nt||tn.treeData,Lt.expandedKeys||tn.expandedKeys,vn);Lt.flattenNodes=tr}if(zt.selectable&&(Rt("selectedKeys")?Lt.selectedKeys=(0,lr.BT)(zt.selectedKeys,zt):!dn&&zt.defaultSelectedKeys&&(Lt.selectedKeys=(0,lr.BT)(zt.defaultSelectedKeys,zt))),zt.checkable){var cr;if(Rt("checkedKeys")?cr=(0,lr.E6)(zt.checkedKeys)||{}:!dn&&zt.defaultCheckedKeys?cr=(0,lr.E6)(zt.defaultCheckedKeys)||{}:Nt&&(cr=(0,lr.E6)(zt.checkedKeys)||{checkedKeys:tn.checkedKeys,halfCheckedKeys:tn.halfCheckedKeys}),cr){var Ar=cr,Ln=Ar.checkedKeys,nn=Ln===void 0?[]:Ln,Wt=Ar.halfCheckedKeys,qt=Wt===void 0?[]:Wt;if(!zt.checkStrictly){var hn=(0,ci.S)(nn,!0,Xn);nn=hn.checkedKeys,qt=hn.halfCheckedKeys}Lt.checkedKeys=nn,Lt.halfCheckedKeys=qt}}return Rt("loadedKeys")&&(Lt.loadedKeys=zt.loadedKeys),Lt}}]),jt}(E.Component);Vr.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:[],dropIndicatorRender:x,allowDrop:function(){return!0},expandAction:!1},Vr.TreeNode=Ei.Z;var Yo=Vr,Io=Yo,ni=ee(73148),gi=ee(56747),Vi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},fn=Vi,xo=ee(74643),Yi=function(_t,jt){return E.createElement(xo.Z,(0,te.Z)({},_t,{ref:jt,icon:fn}))},Cn=E.forwardRef(Yi),nr=ee(53124),wr=ee(50881),rr=ee(33603),ei=ee(32157);const po=4;function ri(yt){const{dropPosition:_t,dropLevelOffset:jt,prefixCls:ze,indent:zt,direction:tn="ltr"}=yt,dn=tn==="ltr"?"left":"right",Lt=tn==="ltr"?"right":"left",Rt={[dn]:-jt*zt+po,[Lt]:0};switch(_t){case-1:Rt.top=-3;break;case 1:Rt.bottom=-3;break;default:Rt.bottom=-3,Rt[dn]=zt+po;break}return E.createElement("div",{style:Rt,className:`${ze}-drop-indicator`})}var xi=ee(99184),dt=E.forwardRef((yt,_t)=>{const{getPrefixCls:jt,direction:ze,virtual:zt,tree:tn}=E.useContext(nr.E_),{prefixCls:dn,className:Lt,showIcon:Rt=!1,showLine:Nt,switcherIcon:vn,blockNode:In=!1,children:Xn,checkable:Un=!1,selectable:tr=!0,draggable:cr,motion:Ar,style:Ln}=yt,nn=jt("tree",dn),Wt=jt(),qt=Ar!=null?Ar:Object.assign(Object.assign({},(0,rr.Z)(Wt)),{motionAppear:!1}),hn=Object.assign(Object.assign({},yt),{checkable:Un,selectable:tr,showIcon:Rt,motion:qt,blockNode:In,showLine:!!Nt,dropIndicatorRender:ri}),[Qn,Ue]=(0,ei.ZP)(nn),Fe=E.useMemo(()=>{if(!cr)return!1;let St={};switch(typeof cr){case"function":St.nodeDraggable=cr;break;case"object":St=Object.assign({},cr);break;default:break}return St.icon!==!1&&(St.icon=St.icon||E.createElement(wr.Z,null)),St},[cr]),nt=St=>E.createElement(xi.Z,{prefixCls:nn,switcherIcon:vn,treeNodeProps:St,showLine:Nt});return Qn(E.createElement(Io,Object.assign({itemHeight:20,ref:_t,virtual:zt},hn,{style:Object.assign(Object.assign({},tn==null?void 0:tn.style),Ln),prefixCls:nn,className:me()({[`${nn}-icon-hide`]:!Rt,[`${nn}-block-node`]:In,[`${nn}-unselectable`]:!tr,[`${nn}-rtl`]:ze==="rtl"},tn==null?void 0:tn.className,Lt,Ue),direction:ze,checkable:Un&&E.createElement("span",{className:`${nn}-checkbox-inner`}),selectable:tr,switcherIcon:nt,draggable:Fe}),Xn))}),ct;(function(yt){yt[yt.None=0]="None",yt[yt.Start=1]="Start",yt[yt.End=2]="End"})(ct||(ct={}));function It(yt,_t){function jt(ze){const{key:zt,children:tn}=ze;_t(zt,ze)!==!1&&It(tn||[],_t)}yt.forEach(jt)}function Ut(yt){let{treeData:_t,expandedKeys:jt,startKey:ze,endKey:zt}=yt;const tn=[];let dn=ct.None;if(ze&&ze===zt)return[ze];if(!ze||!zt)return[];function Lt(Rt){return Rt===ze||Rt===zt}return It(_t,Rt=>{if(dn===ct.End)return!1;if(Lt(Rt)){if(tn.push(Rt),dn===ct.None)dn=ct.Start;else if(dn===ct.Start)return dn=ct.End,!1}else dn===ct.Start&&tn.push(Rt);return jt.includes(Rt)}),tn}function yn(yt,_t){const jt=(0,de.Z)(_t),ze=[];return It(yt,(zt,tn)=>{const dn=jt.indexOf(zt);return dn!==-1&&(ze.push(tn),jt.splice(dn,1)),!!jt.length}),ze}var gr=function(yt,_t){var jt={};for(var ze in yt)Object.prototype.hasOwnProperty.call(yt,ze)&&_t.indexOf(ze)<0&&(jt[ze]=yt[ze]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,ze=Object.getOwnPropertySymbols(yt);zt<ze.length;zt++)_t.indexOf(ze[zt])<0&&Object.prototype.propertyIsEnumerable.call(yt,ze[zt])&&(jt[ze[zt]]=yt[ze[zt]]);return jt};function _r(yt){const{isLeaf:_t,expanded:jt}=yt;return _t?E.createElement(ni.Z,null):jt?E.createElement(gi.Z,null):E.createElement(Cn,null)}function Fr(yt){let{treeData:_t,children:jt}=yt;return _t||(0,ge.zn)(jt)}const Qr=(yt,_t)=>{var{defaultExpandAll:jt,defaultExpandParent:ze,defaultExpandedKeys:zt}=yt,tn=gr(yt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const dn=E.useRef(),Lt=E.useRef(),Rt=()=>{const{keyEntities:Fe}=(0,ge.I8)(Fr(tn));let nt;return jt?nt=Object.keys(Fe):ze?nt=(0,lr.r7)(tn.expandedKeys||zt||[],Fe):nt=tn.expandedKeys||zt,nt},[Nt,vn]=E.useState(tn.selectedKeys||tn.defaultSelectedKeys||[]),[In,Xn]=E.useState(()=>Rt());E.useEffect(()=>{"selectedKeys"in tn&&vn(tn.selectedKeys)},[tn.selectedKeys]),E.useEffect(()=>{"expandedKeys"in tn&&Xn(tn.expandedKeys)},[tn.expandedKeys]);const Un=(Fe,nt)=>{var St;return"expandedKeys"in tn||Xn(Fe),(St=tn.onExpand)===null||St===void 0?void 0:St.call(tn,Fe,nt)},tr=(Fe,nt)=>{var St;const{multiple:Mt}=tn,{node:Ft,nativeEvent:ln}=nt,{key:gn=""}=Ft,Nn=Fr(tn),Bn=Object.assign(Object.assign({},nt),{selected:!0}),Fn=(ln==null?void 0:ln.ctrlKey)||(ln==null?void 0:ln.metaKey),jn=ln==null?void 0:ln.shiftKey;let Jn;Mt&&Fn?(Jn=Fe,dn.current=gn,Lt.current=Jn,Bn.selectedNodes=yn(Nn,Jn)):Mt&&jn?(Jn=Array.from(new Set([].concat((0,de.Z)(Lt.current||[]),(0,de.Z)(Ut({treeData:Nn,expandedKeys:In,startKey:gn,endKey:dn.current}))))),Bn.selectedNodes=yn(Nn,Jn)):(Jn=[gn],dn.current=gn,Lt.current=Jn,Bn.selectedNodes=yn(Nn,Jn)),(St=tn.onSelect)===null||St===void 0||St.call(tn,Jn,Bn),"selectedKeys"in tn||vn(Jn)},{getPrefixCls:cr,direction:Ar}=E.useContext(nr.E_),{prefixCls:Ln,className:nn,showIcon:Wt=!0,expandAction:qt="click"}=tn,hn=gr(tn,["prefixCls","className","showIcon","expandAction"]),Qn=cr("tree",Ln),Ue=me()(`${Qn}-directory`,{[`${Qn}-directory-rtl`]:Ar==="rtl"},nn);return E.createElement(dt,Object.assign({icon:_r,ref:_t,blockNode:!0},hn,{showIcon:Wt,expandAction:qt,prefixCls:Qn,className:Ue,expandedKeys:In,selectedKeys:Nt,onSelect:tr,onExpand:Un}))};var Bo=E.forwardRef(Qr);const No=dt;No.DirectoryTree=Bo,No.TreeNode=Ei.Z;var ti=No},32157:function(ot,Ge,ee){"use strict";ee.d(Ge,{TM:function(){return re},Yk:function(){return me}});var te=ee(45930),ue=ee(63185),be=ee(14747),ve=ee(33507),de=ee(45503),pe=ee(67968);const ae=new te.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),he=(ne,a)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),le=(ne,a)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:a.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${a.lineWidthBold}px solid ${a.colorPrimary}`,borderRadius:"50%",content:'""'}}}),fe=(ne,a)=>{const{treeCls:y,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:z,nodeHoverBg:oe}=a,ie=a.paddingXS;return{[y]:Object.assign(Object.assign({},(0,be.Wf)(a)),{background:a.colorBgContainer,borderRadius:a.borderRadius,transition:`background-color ${a.motionDurationSlow}`,[`&${y}-rtl`]:{[`${y}-switcher`]:{"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${y}-active-focused)`]:Object.assign({},(0,be.oN)(a)),[`${y}-list-holder-inner`]:{alignItems:"flex-start"},[`&${y}-block-node`]:{[`${y}-list-holder-inner`]:{alignItems:"stretch",[`${y}-node-content-wrapper`]:{flex:"auto"},[`${E}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${a.colorPrimary}`,opacity:0,animationName:ae,animationDuration:a.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${E}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${y}-node-content-wrapper`]:{color:a.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${y}-node-content-wrapper`]:Object.assign({},(0,be.oN)(a)),[`&:not(${E}-disabled).filter-node ${y}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${y}-draggable-icon`]:{flexShrink:0,width:x,lineHeight:`${x}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${a.motionDurationSlow}`,[`${E}:hover &`]:{opacity:.45}},[`&${E}-disabled`]:{[`${y}-draggable-icon`]:{visibility:"hidden"}}}},[`${y}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${y}-draggable-icon`]:{visibility:"hidden"},[`${y}-switcher`]:Object.assign(Object.assign({},he(ne,a)),{position:"relative",flex:"none",alignSelf:"stretch",width:x,margin:0,lineHeight:`${x}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:a.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:x/2*.8,height:x/2,borderBottom:`1px solid ${a.colorBorder}`,content:'""'}}}),[`${y}-checkbox`]:{top:"initial",marginInlineEnd:ie},[`${y}-node-content-wrapper, ${y}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:x,margin:0,padding:`0 ${a.paddingXS/2}px`,color:"inherit",lineHeight:`${x}px`,background:"transparent",borderRadius:a.borderRadius,cursor:"pointer",transition:`all ${a.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:oe},[`&${y}-node-selected`]:{backgroundColor:z},[`${y}-iconEle`]:{display:"inline-block",width:x,height:x,lineHeight:`${x}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${y}-unselectable ${y}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${y}-node-content-wrapper`]:Object.assign({lineHeight:`${x}px`,userSelect:"none"},le(ne,a)),[`${E}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${a.colorPrimary}`}},"&-show-line":{[`${y}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${y}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${E}-leaf-last`]:{[`${y}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${x/2}px !important`}}}}})}},se=ne=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:x}=ne;return{[`${a}${a}-directory`]:{[y]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:E,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${a}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:x,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:x},[`${a}-node-content-wrapper`]:{color:x,background:"transparent"}}}}}},me=(ne,a)=>{const y=`.${ne}`,E=`${y}-treenode`,b=a.paddingXS/2,x=(0,de.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[fe(ne,x),se(x)]},re=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ge.ZP=(0,pe.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,ue.C2)(`${y}-checkbox`,ne)},me(y,ne),(0,ve.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},re(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},99184:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return y}});var te=ee(87462),ue=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ve=be,de=ee(74643),pe=function(b,x){return ue.createElement(de.Z,(0,te.Z)({},b,{ref:x,icon:ve}))},ae=ue.forwardRef(pe),he=ee(73148),le=ee(3407),fe=ee(34182),se=ee(74664),me=ee(94184),re=ee.n(me),ne=ee(96159),y=E=>{const{prefixCls:b,switcherIcon:x,treeNodeProps:z,showLine:oe}=E,{isLeaf:ie,expanded:ce,loading:ye}=z;if(ye)return ue.createElement(le.Z,{className:`${b}-switcher-loading-icon`});let _e;if(oe&&typeof oe=="object"&&(_e=oe.showLeafIcon),ie){if(!oe)return null;if(typeof _e!="boolean"&&_e){const Te=typeof _e=="function"?_e(z):_e,Me=`${b}-switcher-line-custom-icon`;return(0,ne.l$)(Te)?(0,ne.Tm)(Te,{className:re()(Te.props.className||"",Me)}):Te}return _e?ue.createElement(he.Z,{className:`${b}-switcher-line-icon`}):ue.createElement("span",{className:`${b}-switcher-leaf-line`})}const xe=`${b}-switcher-icon`,Ce=typeof x=="function"?x(z):x;return(0,ne.l$)(Ce)?(0,ne.Tm)(Ce,{className:re()(Ce.props.className||"",xe)}):Ce!==void 0?Ce:oe?ce?ue.createElement(fe.Z,{className:`${b}-switcher-line-icon`}):ue.createElement(se.Z,{className:`${b}-switcher-line-icon`}):ue.createElement(ae,{className:xe})}},72665:function(ot,Ge){"use strict";var ee;var te=typeof Symbol=="function"&&Symbol.for,ue=te?Symbol.for("react.element"):60103,be=te?Symbol.for("react.portal"):60106,ve=te?Symbol.for("react.fragment"):60107,de=te?Symbol.for("react.strict_mode"):60108,pe=te?Symbol.for("react.profiler"):60114,ae=te?Symbol.for("react.provider"):60109,he=te?Symbol.for("react.context"):60110,le=te?Symbol.for("react.async_mode"):60111,fe=te?Symbol.for("react.concurrent_mode"):60111,se=te?Symbol.for("react.forward_ref"):60112,me=te?Symbol.for("react.suspense"):60113,re=te?Symbol.for("react.suspense_list"):60120,ne=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ie){if(typeof ie=="object"&&ie!==null){var ce=ie.$$typeof;switch(ce){case ue:switch(ie=ie.type,ie){case le:case fe:case ve:case pe:case de:case me:return ie;default:switch(ie=ie&&ie.$$typeof,ie){case he:case se:case a:case ne:case ae:return ie;default:return ce}}case be:return ce}}}function oe(ie){return z(ie)===fe}ee=le,ee=fe,ee=he,ee=ae,ee=ue,ee=se,ee=ve,ee=a,ee=ne,ee=be,ee=pe,ee=de,ee=me,ee=function(ie){return oe(ie)||z(ie)===le},ee=oe,ee=function(ie){return z(ie)===he},ee=function(ie){return z(ie)===ae},ee=function(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===ue},ee=function(ie){return z(ie)===se},ee=function(ie){return z(ie)===ve},ee=function(ie){return z(ie)===a},Ge.isMemo=function(ie){return z(ie)===ne},ee=function(ie){return z(ie)===be},ee=function(ie){return z(ie)===pe},ee=function(ie){return z(ie)===de},ee=function(ie){return z(ie)===me},ee=function(ie){return typeof ie=="string"||typeof ie=="function"||ie===ve||ie===fe||ie===pe||ie===de||ie===me||ie===re||typeof ie=="object"&&ie!==null&&(ie.$$typeof===a||ie.$$typeof===ne||ie.$$typeof===ae||ie.$$typeof===he||ie.$$typeof===se||ie.$$typeof===E||ie.$$typeof===b||ie.$$typeof===x||ie.$$typeof===y)},ee=z},12060:function(ot,Ge,ee){"use strict";ot.exports=ee(72665)},56261:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return _e}});var te=ee(87462),ue=ee(4942),be=ee(45987),ve=ee(1413),de=ee(15671),pe=ee(43144),ae=ee(97326),he=ee(60136),le=ee(51630),fe=ee(94184),se=ee.n(fe),me=ee(34952),re=ee(67294),ne=ee(69610),a=function(Ce){for(var Te=Ce.prefixCls,Me=Ce.level,pt=Ce.isStart,Ve=Ce.isEnd,gt="".concat(Te,"-indent-unit"),Ae=[],De=0;De<Me;De+=1){var Ie;Ae.push(re.createElement("span",{key:De,className:se()(gt,(Ie={},(0,ue.Z)(Ie,"".concat(gt,"-start"),pt[De]),(0,ue.Z)(Ie,"".concat(gt,"-end"),Ve[De]),Ie))}))}return re.createElement("span",{"aria-hidden":"true",className:"".concat(Te,"-indent")},Ae)},y=re.memo(a),E=ee(3596),b=ee(83898),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",oe="close",ie="---",ce=function(xe){(0,he.Z)(Te,xe);var Ce=(0,le.Z)(Te);function Te(){var Me;(0,de.Z)(this,Te);for(var pt=arguments.length,Ve=new Array(pt),gt=0;gt<pt;gt++)Ve[gt]=arguments[gt];return Me=Ce.call.apply(Ce,[this].concat(Ve)),Me.state={dragNodeHighlight:!1},Me.selectHandle=void 0,Me.cacheIndent=void 0,Me.onSelectorClick=function(Ae){var De=Me.props.context.onNodeClick;De(Ae,(0,b.F)(Me.props)),Me.isSelectable()?Me.onSelect(Ae):Me.onCheck(Ae)},Me.onSelectorDoubleClick=function(Ae){var De=Me.props.context.onNodeDoubleClick;De(Ae,(0,b.F)(Me.props))},Me.onSelect=function(Ae){if(!Me.isDisabled()){var De=Me.props.context.onNodeSelect;De(Ae,(0,b.F)(Me.props))}},Me.onCheck=function(Ae){if(!Me.isDisabled()){var De=Me.props,Ie=De.disableCheckbox,tt=De.checked,Ze=Me.props.context.onNodeCheck;if(!(!Me.isCheckable()||Ie)){var bt=!tt;Ze(Ae,(0,b.F)(Me.props),bt)}}},Me.onMouseEnter=function(Ae){var De=Me.props.context.onNodeMouseEnter;De(Ae,(0,b.F)(Me.props))},Me.onMouseLeave=function(Ae){var De=Me.props.context.onNodeMouseLeave;De(Ae,(0,b.F)(Me.props))},Me.onContextMenu=function(Ae){var De=Me.props.context.onNodeContextMenu;De(Ae,(0,b.F)(Me.props))},Me.onDragStart=function(Ae){var De=Me.props.context.onNodeDragStart;Ae.stopPropagation(),Me.setState({dragNodeHighlight:!0}),De(Ae,(0,ae.Z)(Me));try{Ae.dataTransfer.setData("text/plain","")}catch(Ie){}},Me.onDragEnter=function(Ae){var De=Me.props.context.onNodeDragEnter;Ae.preventDefault(),Ae.stopPropagation(),De(Ae,(0,ae.Z)(Me))},Me.onDragOver=function(Ae){var De=Me.props.context.onNodeDragOver;Ae.preventDefault(),Ae.stopPropagation(),De(Ae,(0,ae.Z)(Me))},Me.onDragLeave=function(Ae){var De=Me.props.context.onNodeDragLeave;Ae.stopPropagation(),De(Ae,(0,ae.Z)(Me))},Me.onDragEnd=function(Ae){var De=Me.props.context.onNodeDragEnd;Ae.stopPropagation(),Me.setState({dragNodeHighlight:!1}),De(Ae,(0,ae.Z)(Me))},Me.onDrop=function(Ae){var De=Me.props.context.onNodeDrop;Ae.preventDefault(),Ae.stopPropagation(),Me.setState({dragNodeHighlight:!1}),De(Ae,(0,ae.Z)(Me))},Me.onExpand=function(Ae){var De=Me.props,Ie=De.loading,tt=De.context.onNodeExpand;Ie||tt(Ae,(0,b.F)(Me.props))},Me.setSelectHandle=function(Ae){Me.selectHandle=Ae},Me.getNodeState=function(){var Ae=Me.props.expanded;return Me.isLeaf()?null:Ae?z:oe},Me.hasChildren=function(){var Ae=Me.props.eventKey,De=Me.props.context.keyEntities,Ie=(0,E.Z)(De,Ae)||{},tt=Ie.children;return!!(tt||[]).length},Me.isLeaf=function(){var Ae=Me.props,De=Ae.isLeaf,Ie=Ae.loaded,tt=Me.props.context.loadData,Ze=Me.hasChildren();return De===!1?!1:De||!tt&&!Ze||tt&&Ie&&!Ze},Me.isDisabled=function(){var Ae=Me.props.disabled,De=Me.props.context.disabled;return!!(De||Ae)},Me.isCheckable=function(){var Ae=Me.props.checkable,De=Me.props.context.checkable;return!De||Ae===!1?!1:De},Me.syncLoadData=function(Ae){var De=Ae.expanded,Ie=Ae.loading,tt=Ae.loaded,Ze=Me.props.context,bt=Ze.loadData,wt=Ze.onNodeLoad;Ie||bt&&De&&!Me.isLeaf()&&!Me.hasChildren()&&!tt&&wt((0,b.F)(Me.props))},Me.isDraggable=function(){var Ae=Me.props,De=Ae.data,Ie=Ae.context.draggable;return!!(Ie&&(!Ie.nodeDraggable||Ie.nodeDraggable(De)))},Me.renderDragHandler=function(){var Ae=Me.props.context,De=Ae.draggable,Ie=Ae.prefixCls;return De!=null&&De.icon?re.createElement("span",{className:"".concat(Ie,"-draggable-icon")},De.icon):null},Me.renderSwitcherIconDom=function(Ae){var De=Me.props.switcherIcon,Ie=Me.props.context.switcherIcon,tt=De||Ie;return typeof tt=="function"?tt((0,ve.Z)((0,ve.Z)({},Me.props),{},{isLeaf:Ae})):tt},Me.renderSwitcher=function(){var Ae=Me.props.expanded,De=Me.props.context.prefixCls;if(Me.isLeaf()){var Ie=Me.renderSwitcherIconDom(!0);return Ie!==!1?re.createElement("span",{className:se()("".concat(De,"-switcher"),"".concat(De,"-switcher-noop"))},Ie):null}var tt=se()("".concat(De,"-switcher"),"".concat(De,"-switcher_").concat(Ae?z:oe)),Ze=Me.renderSwitcherIconDom(!1);return Ze!==!1?re.createElement("span",{onClick:Me.onExpand,className:tt},Ze):null},Me.renderCheckbox=function(){var Ae=Me.props,De=Ae.checked,Ie=Ae.halfChecked,tt=Ae.disableCheckbox,Ze=Me.props.context.prefixCls,bt=Me.isDisabled(),wt=Me.isCheckable();if(!wt)return null;var Kt=typeof wt!="boolean"?wt:null;return re.createElement("span",{className:se()("".concat(Ze,"-checkbox"),De&&"".concat(Ze,"-checkbox-checked"),!De&&Ie&&"".concat(Ze,"-checkbox-indeterminate"),(bt||tt)&&"".concat(Ze,"-checkbox-disabled")),onClick:Me.onCheck},Kt)},Me.renderIcon=function(){var Ae=Me.props.loading,De=Me.props.context.prefixCls;return re.createElement("span",{className:se()("".concat(De,"-iconEle"),"".concat(De,"-icon__").concat(Me.getNodeState()||"docu"),Ae&&"".concat(De,"-icon_loading"))})},Me.renderSelector=function(){var Ae=Me.state.dragNodeHighlight,De=Me.props,Ie=De.title,tt=Ie===void 0?ie:Ie,Ze=De.selected,bt=De.icon,wt=De.loading,Kt=De.data,Qt=Me.props.context,rt=Qt.prefixCls,st=Qt.showIcon,Ct=Qt.icon,Gt=Qt.loadData,Ht=Qt.titleRender,Bt=Me.isDisabled(),Ke="".concat(rt,"-node-content-wrapper"),Jt;if(st){var Mn=bt||Ct;Jt=Mn?re.createElement("span",{className:se()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof Mn=="function"?Mn(Me.props):Mn):Me.renderIcon()}else Gt&&wt&&(Jt=Me.renderIcon());var Hn;typeof tt=="function"?Hn=tt(Kt):Ht?Hn=Ht(Kt):Hn=tt;var pn=re.createElement("span",{className:"".concat(rt,"-title")},Hn);return re.createElement("span",{ref:Me.setSelectHandle,title:typeof tt=="string"?tt:"",className:se()("".concat(Ke),"".concat(Ke,"-").concat(Me.getNodeState()||"normal"),!Bt&&(Ze||Ae)&&"".concat(rt,"-node-selected")),onMouseEnter:Me.onMouseEnter,onMouseLeave:Me.onMouseLeave,onContextMenu:Me.onContextMenu,onClick:Me.onSelectorClick,onDoubleClick:Me.onSelectorDoubleClick},Jt,pn,Me.renderDropIndicator())},Me.renderDropIndicator=function(){var Ae=Me.props,De=Ae.disabled,Ie=Ae.eventKey,tt=Me.props.context,Ze=tt.draggable,bt=tt.dropLevelOffset,wt=tt.dropPosition,Kt=tt.prefixCls,Qt=tt.indent,rt=tt.dropIndicatorRender,st=tt.dragOverNodeKey,Ct=tt.direction,Gt=!!Ze,Ht=!De&&Gt&&st===Ie,Bt=Qt!=null?Qt:Me.cacheIndent;return Me.cacheIndent=Qt,Ht?rt({dropPosition:wt,dropLevelOffset:bt,indent:Bt,prefixCls:Kt,direction:Ct}):null},Me}return(0,pe.Z)(Te,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var pt=this.props.selectable,Ve=this.props.context.selectable;return typeof pt=="boolean"?pt:Ve}},{key:"render",value:function(){var pt,Ve=this.props,gt=Ve.eventKey,Ae=Ve.className,De=Ve.style,Ie=Ve.dragOver,tt=Ve.dragOverGapTop,Ze=Ve.dragOverGapBottom,bt=Ve.isLeaf,wt=Ve.isStart,Kt=Ve.isEnd,Qt=Ve.expanded,rt=Ve.selected,st=Ve.checked,Ct=Ve.halfChecked,Gt=Ve.loading,Ht=Ve.domRef,Bt=Ve.active,Ke=Ve.data,Jt=Ve.onMouseMove,Mn=Ve.selectable,Hn=(0,be.Z)(Ve,x),pn=this.props.context,kt=pn.prefixCls,Qe=pn.filterTreeNode,Ye=pn.keyEntities,Je=pn.dropContainerKey,ft=pn.dropTargetKey,At=pn.draggingNodeKey,et=this.isDisabled(),vt=(0,me.Z)(Hn,{aria:!0,data:!0}),Pt=(0,E.Z)(Ye,gt)||{},Xe=Pt.level,Zt=Kt[Kt.length-1],He=this.isDraggable(),ut=!et&&He,wn=At===gt,sn=Mn!==void 0?{"aria-selected":!!Mn}:void 0;return re.createElement("div",(0,te.Z)({ref:Ht,className:se()(Ae,"".concat(kt,"-treenode"),(pt={},(0,ue.Z)(pt,"".concat(kt,"-treenode-disabled"),et),(0,ue.Z)(pt,"".concat(kt,"-treenode-switcher-").concat(Qt?"open":"close"),!bt),(0,ue.Z)(pt,"".concat(kt,"-treenode-checkbox-checked"),st),(0,ue.Z)(pt,"".concat(kt,"-treenode-checkbox-indeterminate"),Ct),(0,ue.Z)(pt,"".concat(kt,"-treenode-selected"),rt),(0,ue.Z)(pt,"".concat(kt,"-treenode-loading"),Gt),(0,ue.Z)(pt,"".concat(kt,"-treenode-active"),Bt),(0,ue.Z)(pt,"".concat(kt,"-treenode-leaf-last"),Zt),(0,ue.Z)(pt,"".concat(kt,"-treenode-draggable"),He),(0,ue.Z)(pt,"dragging",wn),(0,ue.Z)(pt,"drop-target",ft===gt),(0,ue.Z)(pt,"drop-container",Je===gt),(0,ue.Z)(pt,"drag-over",!et&&Ie),(0,ue.Z)(pt,"drag-over-gap-top",!et&&tt),(0,ue.Z)(pt,"drag-over-gap-bottom",!et&&Ze),(0,ue.Z)(pt,"filter-node",Qe&&Qe((0,b.F)(this.props))),pt)),style:De,draggable:ut,"aria-grabbed":wn,onDragStart:ut?this.onDragStart:void 0,onDragEnter:He?this.onDragEnter:void 0,onDragOver:He?this.onDragOver:void 0,onDragLeave:He?this.onDragLeave:void 0,onDrop:He?this.onDrop:void 0,onDragEnd:He?this.onDragEnd:void 0,onMouseMove:Jt},sn,vt),re.createElement(y,{prefixCls:kt,level:Xe,isStart:wt,isEnd:Kt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Te}(re.Component),ye=function(Ce){return re.createElement(ne.k.Consumer,null,function(Te){return re.createElement(ce,(0,te.Z)({},Ce,{context:Te}))})};ye.displayName="TreeNode",ye.isTreeNode=1;var _e=ye},69610:function(ot,Ge,ee){"use strict";ee.d(Ge,{k:function(){return ue}});var te=ee(67294),ue=te.createContext(null)},29873:function(ot,Ge,ee){"use strict";ee.d(Ge,{BT:function(){return y},E6:function(){return x},L0:function(){return fe},OM:function(){return a},_5:function(){return le},r7:function(){return z},wA:function(){return me},yx:function(){return se}});var te=ee(74902),ue=ee(71002),be=ee(72978),ve=ee(67294),de=ee(56261),pe=ee(3596),ae=ee(83898),he=null;function le(oe,ie){if(!oe)return[];var ce=oe.slice(),ye=ce.indexOf(ie);return ye>=0&&ce.splice(ye,1),ce}function fe(oe,ie){var ce=(oe||[]).slice();return ce.indexOf(ie)===-1&&ce.push(ie),ce}function se(oe){return oe.split("-")}function me(oe,ie){var ce=[],ye=(0,pe.Z)(ie,oe);function _e(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xe.forEach(function(Ce){var Te=Ce.key,Me=Ce.children;ce.push(Te),_e(Me)})}return _e(ye.children),ce}function re(oe){if(oe.parent){var ie=se(oe.pos);return Number(ie[ie.length-1])===oe.parent.children.length-1}return!1}function ne(oe){var ie=se(oe.pos);return Number(ie[ie.length-1])===0}function a(oe,ie,ce,ye,_e,xe,Ce,Te,Me,pt){var Ve,gt=oe.clientX,Ae=oe.clientY,De=oe.target.getBoundingClientRect(),Ie=De.top,tt=De.height,Ze=(pt==="rtl"?-1:1)*(((_e==null?void 0:_e.x)||0)-gt),bt=(Ze-12)/ye,wt=(0,pe.Z)(Te,ce.props.eventKey);if(Ae<Ie+tt/2){var Kt=Ce.findIndex(function(pn){return pn.key===wt.key}),Qt=Kt<=0?0:Kt-1,rt=Ce[Qt].key;wt=(0,pe.Z)(Te,rt)}var st=wt.key,Ct=wt,Gt=wt.key,Ht=0,Bt=0;if(!Me.includes(st))for(var Ke=0;Ke<bt&&re(wt);Ke+=1)wt=wt.parent,Bt+=1;var Jt=ie.props.data,Mn=wt.node,Hn=!0;return ne(wt)&&wt.level===0&&Ae<Ie+tt/2&&xe({dragNode:Jt,dropNode:Mn,dropPosition:-1})&&wt.key===ce.props.eventKey?Ht=-1:(Ct.children||[]).length&&Me.includes(Gt)?xe({dragNode:Jt,dropNode:Mn,dropPosition:0})?Ht=0:Hn=!1:Bt===0?bt>-1.5?xe({dragNode:Jt,dropNode:Mn,dropPosition:1})?Ht=1:Hn=!1:xe({dragNode:Jt,dropNode:Mn,dropPosition:0})?Ht=0:xe({dragNode:Jt,dropNode:Mn,dropPosition:1})?Ht=1:Hn=!1:xe({dragNode:Jt,dropNode:Mn,dropPosition:1})?Ht=1:Hn=!1,{dropPosition:Ht,dropLevelOffset:Bt,dropTargetKey:wt.key,dropTargetPos:wt.pos,dragOverNodeKey:Gt,dropContainerKey:Ht===0?null:((Ve=wt.parent)===null||Ve===void 0?void 0:Ve.key)||null,dropAllowed:Hn}}function y(oe,ie){if(oe){var ce=ie.multiple;return ce?oe.slice():oe.length?[oe[0]]:oe}}var E=function(ie){return ie};function b(oe,ie){if(!oe)return[];var ce=ie||{},ye=ce.processProps,_e=ye===void 0?E:ye,xe=Array.isArray(oe)?oe:[oe];return xe.map(function(Ce){var Te=Ce.children,Me=_objectWithoutProperties(Ce,he),pt=b(Te,ie);return React.createElement(TreeNode,_extends({key:Me.key},_e(Me)),pt)})}function x(oe){if(!oe)return null;var ie;if(Array.isArray(oe))ie={checkedKeys:oe,halfCheckedKeys:void 0};else if((0,ue.Z)(oe)==="object")ie={checkedKeys:oe.checked||void 0,halfCheckedKeys:oe.halfChecked||void 0};else return(0,be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ie}function z(oe,ie){var ce=new Set;function ye(_e){if(!ce.has(_e)){var xe=(0,pe.Z)(ie,_e);if(xe){ce.add(_e);var Ce=xe.parent,Te=xe.node;Te.disabled||Ce&&ye(Ce.key)}}}return(oe||[]).forEach(function(_e){ye(_e)}),(0,te.Z)(ce)}},97153:function(ot,Ge,ee){"use strict";ee.d(Ge,{S:function(){return ae}});var te=ee(72978),ue=ee(3596);function be(he,le){var fe=new Set;return he.forEach(function(se){le.has(se)||fe.add(se)}),fe}function ve(he){var le=he||{},fe=le.disabled,se=le.disableCheckbox,me=le.checkable;return!!(fe||se)||me===!1}function de(he,le,fe,se){for(var me=new Set(he),re=new Set,ne=0;ne<=fe;ne+=1){var a=le.get(ne)||new Set;a.forEach(function(x){var z=x.key,oe=x.node,ie=x.children,ce=ie===void 0?[]:ie;me.has(z)&&!se(oe)&&ce.filter(function(ye){return!se(ye.node)}).forEach(function(ye){me.add(ye.key)})})}for(var y=new Set,E=fe;E>=0;E-=1){var b=le.get(E)||new Set;b.forEach(function(x){var z=x.parent,oe=x.node;if(!(se(oe)||!x.parent||y.has(x.parent.key))){if(se(x.parent.node)){y.add(z.key);return}var ie=!0,ce=!1;(z.children||[]).filter(function(ye){return!se(ye.node)}).forEach(function(ye){var _e=ye.key,xe=me.has(_e);ie&&!xe&&(ie=!1),!ce&&(xe||re.has(_e))&&(ce=!0)}),ie&&me.add(z.key),ce&&re.add(z.key),y.add(z.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(be(re,me))}}function pe(he,le,fe,se,me){for(var re=new Set(he),ne=new Set(le),a=0;a<=se;a+=1){var y=fe.get(a)||new Set;y.forEach(function(z){var oe=z.key,ie=z.node,ce=z.children,ye=ce===void 0?[]:ce;!re.has(oe)&&!ne.has(oe)&&!me(ie)&&ye.filter(function(_e){return!me(_e.node)}).forEach(function(_e){re.delete(_e.key)})})}ne=new Set;for(var E=new Set,b=se;b>=0;b-=1){var x=fe.get(b)||new Set;x.forEach(function(z){var oe=z.parent,ie=z.node;if(!(me(ie)||!z.parent||E.has(z.parent.key))){if(me(z.parent.node)){E.add(oe.key);return}var ce=!0,ye=!1;(oe.children||[]).filter(function(_e){return!me(_e.node)}).forEach(function(_e){var xe=_e.key,Ce=re.has(xe);ce&&!Ce&&(ce=!1),!ye&&(Ce||ne.has(xe))&&(ye=!0)}),ce||re.delete(oe.key),ye&&ne.add(oe.key),E.add(oe.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(be(ne,re))}}function ae(he,le,fe,se){var me=[],re;se?re=se:re=ve;var ne=new Set(he.filter(function(b){var x=!!(0,ue.Z)(fe,b);return x||me.push(b),x})),a=new Map,y=0;Object.keys(fe).forEach(function(b){var x=fe[b],z=x.level,oe=a.get(z);oe||(oe=new Set,a.set(z,oe)),oe.add(x),y=Math.max(y,z)}),(0,te.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return le===!0?E=de(ne,a,y,re):E=pe(ne,le.halfCheckedKeys,a,y,re),E}},3596:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return te}});function te(ue,be){return ue[be]}},83898:function(ot,Ge,ee){"use strict";ee.d(Ge,{I8:function(){return z},F:function(){return ie},zn:function(){return E},w$:function(){return a},oH:function(){return b},km:function(){return ne},H8:function(){return oe}});var te=ee(71002),ue=ee(74902),be=ee(1413),ve=ee(45987),de=ee(67294),pe=ee(28580);function ae(ce){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=[];return de.Children.forEach(ce,function(xe){xe==null&&!ye.keepEmpty||(Array.isArray(xe)?_e=_e.concat(ae(xe)):(0,pe.isFragment)(xe)&&xe.props?_e=_e.concat(ae(xe.props.children,ye)):_e.push(xe))}),_e}function he(ce,ye){var _e=(0,be.Z)({},ce);return Array.isArray(ye)&&ye.forEach(function(xe){delete _e[xe]}),_e}var le=ee(72978),fe=ee(3596),se=["children"];function me(ce,ye){return"".concat(ce,"-").concat(ye)}function re(ce){return ce&&ce.type&&ce.type.isTreeNode}function ne(ce,ye){return ce!=null?ce:ye}function a(ce){var ye=ce||{},_e=ye.title,xe=ye._title,Ce=ye.key,Te=ye.children,Me=_e||"title";return{title:Me,_title:xe||[Me],key:Ce||"key",children:Te||"children"}}function y(ce,ye){var _e=new Map;function xe(Ce){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ce||[]).forEach(function(Me){var pt=Me[ye.key],Ve=Me[ye.children];warning(pt!=null,"Tree node must have a certain key: [".concat(Te).concat(pt,"]"));var gt=String(pt);warning(!_e.has(gt)||pt===null||pt===void 0,"Same 'key' exist in the Tree: ".concat(gt)),_e.set(gt,!0),xe(Ve,"".concat(Te).concat(gt," > "))})}xe(ce)}function E(ce){function ye(_e){var xe=ae(_e);return xe.map(function(Ce){if(!re(Ce))return(0,le.ZP)(!Ce,"Tree/TreeNode can only accept TreeNode as children."),null;var Te=Ce.key,Me=Ce.props,pt=Me.children,Ve=(0,ve.Z)(Me,se),gt=(0,be.Z)({key:Te},Ve),Ae=ye(pt);return Ae.length&&(gt.children=Ae),gt}).filter(function(Ce){return Ce})}return ye(ce)}function b(ce,ye,_e){var xe=a(_e),Ce=xe._title,Te=xe.key,Me=xe.children,pt=new Set(ye===!0?[]:ye),Ve=[];function gt(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ie,tt){for(var Ze=me(De?De.pos:"0",tt),bt=ne(Ie[Te],Ze),wt,Kt=0;Kt<Ce.length;Kt+=1){var Qt=Ce[Kt];if(Ie[Qt]!==void 0){wt=Ie[Qt];break}}var rt=(0,be.Z)((0,be.Z)({},he(Ie,[].concat((0,ue.Z)(Ce),[Te,Me]))),{},{title:wt,key:bt,parent:De,pos:Ze,children:null,data:Ie,isStart:[].concat((0,ue.Z)(De?De.isStart:[]),[tt===0]),isEnd:[].concat((0,ue.Z)(De?De.isEnd:[]),[tt===Ae.length-1])});return Ve.push(rt),ye===!0||pt.has(bt)?rt.children=gt(Ie[Me]||[],rt):rt.children=[],rt})}return gt(ce),Ve}function x(ce,ye,_e){var xe={};(0,te.Z)(_e)==="object"?xe=_e:xe={externalGetKey:_e},xe=xe||{};var Ce=xe,Te=Ce.childrenPropName,Me=Ce.externalGetKey,pt=Ce.fieldNames,Ve=a(pt),gt=Ve.key,Ae=Ve.children,De=Te||Ae,Ie;Me?typeof Me=="string"?Ie=function(bt){return bt[Me]}:typeof Me=="function"&&(Ie=function(bt){return Me(bt)}):Ie=function(bt,wt){return ne(bt[gt],wt)};function tt(Ze,bt,wt,Kt){var Qt=Ze?Ze[De]:ce,rt=Ze?me(wt.pos,bt):"0",st=Ze?[].concat((0,ue.Z)(Kt),[Ze]):[];if(Ze){var Ct=Ie(Ze,rt),Gt={node:Ze,index:bt,pos:rt,key:Ct,parentPos:wt.node?wt.pos:null,level:wt.level+1,nodes:st};ye(Gt)}Qt&&Qt.forEach(function(Ht,Bt){tt(Ht,Bt,{node:Ze,pos:rt,level:wt?wt.level+1:-1},st)})}tt(null)}function z(ce){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=ye.initWrapper,xe=ye.processEntity,Ce=ye.onProcessFinished,Te=ye.externalGetKey,Me=ye.childrenPropName,pt=ye.fieldNames,Ve=arguments.length>2?arguments[2]:void 0,gt=Te||Ve,Ae={},De={},Ie={posEntities:Ae,keyEntities:De};return _e&&(Ie=_e(Ie)||Ie),x(ce,function(tt){var Ze=tt.node,bt=tt.index,wt=tt.pos,Kt=tt.key,Qt=tt.parentPos,rt=tt.level,st=tt.nodes,Ct={node:Ze,nodes:st,index:bt,key:Kt,pos:wt,level:rt},Gt=ne(Kt,wt);Ae[wt]=Ct,De[Gt]=Ct,Ct.parent=Ae[Qt],Ct.parent&&(Ct.parent.children=Ct.parent.children||[],Ct.parent.children.push(Ct)),xe&&xe(Ct,Ie)},{externalGetKey:gt,childrenPropName:Me,fieldNames:pt}),Ce&&Ce(Ie),Ie}function oe(ce,ye){var _e=ye.expandedKeys,xe=ye.selectedKeys,Ce=ye.loadedKeys,Te=ye.loadingKeys,Me=ye.checkedKeys,pt=ye.halfCheckedKeys,Ve=ye.dragOverNodeKey,gt=ye.dropPosition,Ae=ye.keyEntities,De=(0,fe.Z)(Ae,ce),Ie={eventKey:ce,expanded:_e.indexOf(ce)!==-1,selected:xe.indexOf(ce)!==-1,loaded:Ce.indexOf(ce)!==-1,loading:Te.indexOf(ce)!==-1,checked:Me.indexOf(ce)!==-1,halfChecked:pt.indexOf(ce)!==-1,pos:String(De?De.pos:""),dragOver:Ve===ce&&gt===0,dragOverGapTop:Ve===ce&&gt===-1,dragOverGapBottom:Ve===ce&&gt===1};return Ie}function ie(ce){var ye=ce.data,_e=ce.expanded,xe=ce.selected,Ce=ce.checked,Te=ce.loaded,Me=ce.loading,pt=ce.halfChecked,Ve=ce.dragOver,gt=ce.dragOverGapTop,Ae=ce.dragOverGapBottom,De=ce.pos,Ie=ce.active,tt=ce.eventKey,Ze=(0,be.Z)((0,be.Z)({},ye),{},{expanded:_e,selected:xe,checked:Ce,loaded:Te,loading:Me,halfChecked:pt,dragOver:Ve,dragOverGapTop:gt,dragOverGapBottom:Ae,pos:De,active:Ie,key:tt});return"props"in Ze||Object.defineProperty(Ze,"props",{get:function(){return(0,le.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ce}}),Ze}},34952:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return he}});var te=ee(1413),ue=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ve="".concat(ue," ").concat(be).split(/[\s\n]+/),de="aria-",pe="data-";function ae(le,fe){return le.indexOf(fe)===0}function he(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se;fe===!1?se={aria:!0,data:!0,attr:!0}:fe===!0?se={aria:!0}:se=(0,te.Z)({},fe);var me={};return Object.keys(le).forEach(function(re){(se.aria&&(re==="role"||ae(re,de))||se.data&&ae(re,pe)||se.attr&&ve.includes(re))&&(me[re]=le[re])}),me}},72978:function(ot,Ge,ee){"use strict";var te={};function ue(he,le){}function be(he,le){}function ve(){te={}}function de(he,le,fe){!le&&!te[fe]&&(he(!1,fe),te[fe]=!0)}function pe(he,le){de(ue,he,le)}function ae(he,le){de(be,he,le)}Ge.ZP=pe},81533:function(ot,Ge){"use strict";var ee;var te=typeof Symbol=="function"&&Symbol.for,ue=te?Symbol.for("react.element"):60103,be=te?Symbol.for("react.portal"):60106,ve=te?Symbol.for("react.fragment"):60107,de=te?Symbol.for("react.strict_mode"):60108,pe=te?Symbol.for("react.profiler"):60114,ae=te?Symbol.for("react.provider"):60109,he=te?Symbol.for("react.context"):60110,le=te?Symbol.for("react.async_mode"):60111,fe=te?Symbol.for("react.concurrent_mode"):60111,se=te?Symbol.for("react.forward_ref"):60112,me=te?Symbol.for("react.suspense"):60113,re=te?Symbol.for("react.suspense_list"):60120,ne=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ie){if(typeof ie=="object"&&ie!==null){var ce=ie.$$typeof;switch(ce){case ue:switch(ie=ie.type,ie){case le:case fe:case ve:case pe:case de:case me:return ie;default:switch(ie=ie&&ie.$$typeof,ie){case he:case se:case a:case ne:case ae:return ie;default:return ce}}case be:return ce}}}function oe(ie){return z(ie)===fe}ee=le,ee=fe,ee=he,ee=ae,ee=ue,ee=se,ee=ve,ee=a,ee=ne,ee=be,ee=pe,ee=de,ee=me,ee=function(ie){return oe(ie)||z(ie)===le},ee=oe,ee=function(ie){return z(ie)===he},ee=function(ie){return z(ie)===ae},ee=function(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===ue},ee=function(ie){return z(ie)===se},Ge.isFragment=function(ie){return z(ie)===ve},ee=function(ie){return z(ie)===a},Ge.isMemo=function(ie){return z(ie)===ne},ee=function(ie){return z(ie)===be},ee=function(ie){return z(ie)===pe},ee=function(ie){return z(ie)===de},ee=function(ie){return z(ie)===me},ee=function(ie){return typeof ie=="string"||typeof ie=="function"||ie===ve||ie===fe||ie===pe||ie===de||ie===me||ie===re||typeof ie=="object"&&ie!==null&&(ie.$$typeof===a||ie.$$typeof===ne||ie.$$typeof===ae||ie.$$typeof===he||ie.$$typeof===se||ie.$$typeof===E||ie.$$typeof===b||ie.$$typeof===x||ie.$$typeof===y)},ee=z},28580:function(ot,Ge,ee){"use strict";ot.exports=ee(81533)},92389:function(ot,Ge){"use strict";var ee={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ue){var be=ue.keyCode;if(ue.altKey&&!ue.ctrlKey||ue.metaKey||be>=ee.F1&&be<=ee.F12)return!1;switch(be){case ee.ALT:case ee.CAPS_LOCK:case ee.CONTEXT_MENU:case ee.CTRL:case ee.DOWN:case ee.END:case ee.ESC:case ee.HOME:case ee.INSERT:case ee.LEFT:case ee.MAC_FF_META:case ee.META:case ee.NUMLOCK:case ee.NUM_CENTER:case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAUSE:case ee.PRINT_SCREEN:case ee.RIGHT:case ee.SHIFT:case ee.UP:case ee.WIN_KEY:case ee.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ue){if(ue>=ee.ZERO&&ue<=ee.NINE||ue>=ee.NUM_ZERO&&ue<=ee.NUM_MULTIPLY||ue>=ee.A&&ue<=ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ue===0)return!0;switch(ue){case ee.SPACE:case ee.QUESTION_MARK:case ee.NUM_PLUS:case ee.NUM_MINUS:case ee.NUM_PERIOD:case ee.NUM_DIVISION:case ee.SEMICOLON:case ee.DASH:case ee.EQUALS:case ee.COMMA:case ee.PERIOD:case ee.SLASH:case ee.APOSTROPHE:case ee.SINGLE_QUOTE:case ee.OPEN_SQUARE_BRACKET:case ee.BACKSLASH:case ee.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Ge.Z=ee},82702:function(ot,Ge,ee){var te=ee(34155);(function(ue,be){ot.exports=be()})(this,function(){"use strict";function ue(et){var vt=typeof et;return et!==null&&(vt==="object"||vt==="function")}function be(et){return typeof et=="function"}var ve=void 0;Array.isArray?ve=Array.isArray:ve=function(et){return Object.prototype.toString.call(et)==="[object Array]"};var de=ve,pe=0,ae=void 0,he=void 0,le=function(vt,Pt){ie[pe]=vt,ie[pe+1]=Pt,pe+=2,pe===2&&(he?he(ce):_e())};function fe(et){he=et}function se(et){le=et}var me=typeof window!="undefined"?window:void 0,re=me||{},ne=re.MutationObserver||re.WebKitMutationObserver,a=typeof self=="undefined"&&typeof te!="undefined"&&{}.toString.call(te)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return te.nextTick(ce)}}function b(){return typeof ae!="undefined"?function(){ae(ce)}:oe()}function x(){var et=0,vt=new ne(ce),Pt=document.createTextNode("");return vt.observe(Pt,{characterData:!0}),function(){Pt.data=et=++et%2}}function z(){var et=new MessageChannel;return et.port1.onmessage=ce,function(){return et.port2.postMessage(0)}}function oe(){var et=setTimeout;return function(){return et(ce,1)}}var ie=new Array(1e3);function ce(){for(var et=0;et<pe;et+=2){var vt=ie[et],Pt=ie[et+1];vt(Pt),ie[et]=void 0,ie[et+1]=void 0}pe=0}function ye(){try{var et=Function("return this")().require("vertx");return ae=et.runOnLoop||et.runOnContext,b()}catch(vt){return oe()}}var _e=void 0;a?_e=E():ne?_e=x():y?_e=z():me===void 0?_e=ye():_e=oe();function xe(et,vt){var Pt=this,Xe=new this.constructor(Me);Xe[Te]===void 0&&Jt(Xe);var Zt=Pt._state;if(Zt){var He=arguments[Zt-1];le(function(){return Gt(Zt,Xe,He,Pt._result)})}else st(Pt,Xe,et,vt);return Xe}function Ce(et){var vt=this;if(et&&typeof et=="object"&&et.constructor===vt)return et;var Pt=new vt(Me);return wt(Pt,et),Pt}var Te=Math.random().toString(36).substring(2);function Me(){}var pt=void 0,Ve=1,gt=2;function Ae(){return new TypeError("You cannot resolve a promise with itself")}function De(){return new TypeError("A promises callback cannot return that same promise.")}function Ie(et,vt,Pt,Xe){try{et.call(vt,Pt,Xe)}catch(Zt){return Zt}}function tt(et,vt,Pt){le(function(Xe){var Zt=!1,He=Ie(Pt,vt,function(ut){Zt||(Zt=!0,vt!==ut?wt(Xe,ut):Qt(Xe,ut))},function(ut){Zt||(Zt=!0,rt(Xe,ut))},"Settle: "+(Xe._label||" unknown promise"));!Zt&&He&&(Zt=!0,rt(Xe,He))},et)}function Ze(et,vt){vt._state===Ve?Qt(et,vt._result):vt._state===gt?rt(et,vt._result):st(vt,void 0,function(Pt){return wt(et,Pt)},function(Pt){return rt(et,Pt)})}function bt(et,vt,Pt){vt.constructor===et.constructor&&Pt===xe&&vt.constructor.resolve===Ce?Ze(et,vt):Pt===void 0?Qt(et,vt):be(Pt)?tt(et,vt,Pt):Qt(et,vt)}function wt(et,vt){if(et===vt)rt(et,Ae());else if(ue(vt)){var Pt=void 0;try{Pt=vt.then}catch(Xe){rt(et,Xe);return}bt(et,vt,Pt)}else Qt(et,vt)}function Kt(et){et._onerror&&et._onerror(et._result),Ct(et)}function Qt(et,vt){et._state===pt&&(et._result=vt,et._state=Ve,et._subscribers.length!==0&&le(Ct,et))}function rt(et,vt){et._state===pt&&(et._state=gt,et._result=vt,le(Kt,et))}function st(et,vt,Pt,Xe){var Zt=et._subscribers,He=Zt.length;et._onerror=null,Zt[He]=vt,Zt[He+Ve]=Pt,Zt[He+gt]=Xe,He===0&&et._state&&le(Ct,et)}function Ct(et){var vt=et._subscribers,Pt=et._state;if(vt.length!==0){for(var Xe=void 0,Zt=void 0,He=et._result,ut=0;ut<vt.length;ut+=3)Xe=vt[ut],Zt=vt[ut+Pt],Xe?Gt(Pt,Xe,Zt,He):Zt(He);et._subscribers.length=0}}function Gt(et,vt,Pt,Xe){var Zt=be(Pt),He=void 0,ut=void 0,wn=!0;if(Zt){try{He=Pt(Xe)}catch(sn){wn=!1,ut=sn}if(vt===He){rt(vt,De());return}}else He=Xe;vt._state!==pt||(Zt&&wn?wt(vt,He):wn===!1?rt(vt,ut):et===Ve?Qt(vt,He):et===gt&&rt(vt,He))}function Ht(et,vt){try{vt(function(Xe){wt(et,Xe)},function(Xe){rt(et,Xe)})}catch(Pt){rt(et,Pt)}}var Bt=0;function Ke(){return Bt++}function Jt(et){et[Te]=Bt++,et._state=void 0,et._result=void 0,et._subscribers=[]}function Mn(){return new Error("Array Methods must be provided an Array")}var Hn=function(){function et(vt,Pt){this._instanceConstructor=vt,this.promise=new vt(Me),this.promise[Te]||Jt(this.promise),de(Pt)?(this.length=Pt.length,this._remaining=Pt.length,this._result=new Array(this.length),this.length===0?Qt(this.promise,this._result):(this.length=this.length||0,this._enumerate(Pt),this._remaining===0&&Qt(this.promise,this._result))):rt(this.promise,Mn())}return et.prototype._enumerate=function(Pt){for(var Xe=0;this._state===pt&&Xe<Pt.length;Xe++)this._eachEntry(Pt[Xe],Xe)},et.prototype._eachEntry=function(Pt,Xe){var Zt=this._instanceConstructor,He=Zt.resolve;if(He===Ce){var ut=void 0,wn=void 0,sn=!1;try{ut=Pt.then}catch($t){sn=!0,wn=$t}if(ut===xe&&Pt._state!==pt)this._settledAt(Pt._state,Xe,Pt._result);else if(typeof ut!="function")this._remaining--,this._result[Xe]=Pt;else if(Zt===ft){var ht=new Zt(Me);sn?rt(ht,wn):bt(ht,Pt,ut),this._willSettleAt(ht,Xe)}else this._willSettleAt(new Zt(function($t){return $t(Pt)}),Xe)}else this._willSettleAt(He(Pt),Xe)},et.prototype._settledAt=function(Pt,Xe,Zt){var He=this.promise;He._state===pt&&(this._remaining--,Pt===gt?rt(He,Zt):this._result[Xe]=Zt),this._remaining===0&&Qt(He,this._result)},et.prototype._willSettleAt=function(Pt,Xe){var Zt=this;st(Pt,void 0,function(He){return Zt._settledAt(Ve,Xe,He)},function(He){return Zt._settledAt(gt,Xe,He)})},et}();function pn(et){return new Hn(this,et).promise}function kt(et){var vt=this;return de(et)?new vt(function(Pt,Xe){for(var Zt=et.length,He=0;He<Zt;He++)vt.resolve(et[He]).then(Pt,Xe)}):new vt(function(Pt,Xe){return Xe(new TypeError("You must pass an array to race."))})}function Qe(et){var vt=this,Pt=new vt(Me);return rt(Pt,et),Pt}function Ye(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Je(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ft=function(){function et(vt){this[Te]=Ke(),this._result=this._state=void 0,this._subscribers=[],Me!==vt&&(typeof vt!="function"&&Ye(),this instanceof et?Ht(this,vt):Je())}return et.prototype.catch=function(Pt){return this.then(null,Pt)},et.prototype.finally=function(Pt){var Xe=this,Zt=Xe.constructor;return be(Pt)?Xe.then(function(He){return Zt.resolve(Pt()).then(function(){return He})},function(He){return Zt.resolve(Pt()).then(function(){throw He})}):Xe.then(Pt,Pt)},et}();ft.prototype.then=xe,ft.all=pn,ft.race=kt,ft.resolve=Ce,ft.reject=Qe,ft._setScheduler=fe,ft._setAsap=se,ft._asap=le;function At(){var et=void 0;if(typeof ee.g!="undefined")et=ee.g;else if(typeof self!="undefined")et=self;else try{et=Function("return this")()}catch(Xe){throw new Error("polyfill failed because global object is unavailable in this environment")}var vt=et.Promise;if(vt){var Pt=null;try{Pt=Object.prototype.toString.call(vt.resolve())}catch(Xe){}if(Pt==="[object Promise]"&&!vt.cast)return}et.Promise=ft}return ft.polyfill=At,ft.Promise=ft,ft})},17187:function(ot){"use strict";var Ge=typeof Reflect=="object"?Reflect:null,ee=Ge&&typeof Ge.apply=="function"?Ge.apply:function(z,oe,ie){return Function.prototype.apply.call(z,oe,ie)},te;Ge&&typeof Ge.ownKeys=="function"?te=Ge.ownKeys:Object.getOwnPropertySymbols?te=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:te=function(z){return Object.getOwnPropertyNames(z)};function ue(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(z){return z!==z};function ve(){ve.init.call(this)}ot.exports=ve,ot.exports.once=y,ve.EventEmitter=ve,ve.prototype._events=void 0,ve.prototype._eventsCount=0,ve.prototype._maxListeners=void 0;var de=10;function pe(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(ve,"defaultMaxListeners",{enumerable:!0,get:function(){return de},set:function(x){if(typeof x!="number"||x<0||be(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");de=x}}),ve.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ve.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||be(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function ae(x){return x._maxListeners===void 0?ve.defaultMaxListeners:x._maxListeners}ve.prototype.getMaxListeners=function(){return ae(this)},ve.prototype.emit=function(z){for(var oe=[],ie=1;ie<arguments.length;ie++)oe.push(arguments[ie]);var ce=z==="error",ye=this._events;if(ye!==void 0)ce=ce&&ye.error===void 0;else if(!ce)return!1;if(ce){var _e;if(oe.length>0&&(_e=oe[0]),_e instanceof Error)throw _e;var xe=new Error("Unhandled error."+(_e?" ("+_e.message+")":""));throw xe.context=_e,xe}var Ce=ye[z];if(Ce===void 0)return!1;if(typeof Ce=="function")ee(Ce,this,oe);else for(var Te=Ce.length,Me=re(Ce,Te),ie=0;ie<Te;++ie)ee(Me[ie],this,oe);return!0};function he(x,z,oe,ie){var ce,ye,_e;if(pe(oe),ye=x._events,ye===void 0?(ye=x._events=Object.create(null),x._eventsCount=0):(ye.newListener!==void 0&&(x.emit("newListener",z,oe.listener?oe.listener:oe),ye=x._events),_e=ye[z]),_e===void 0)_e=ye[z]=oe,++x._eventsCount;else if(typeof _e=="function"?_e=ye[z]=ie?[oe,_e]:[_e,oe]:ie?_e.unshift(oe):_e.push(oe),ce=ae(x),ce>0&&_e.length>ce&&!_e.warned){_e.warned=!0;var xe=new Error("Possible EventEmitter memory leak detected. "+_e.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");xe.name="MaxListenersExceededWarning",xe.emitter=x,xe.type=z,xe.count=_e.length,ue(xe)}return x}ve.prototype.addListener=function(z,oe){return he(this,z,oe,!1)},ve.prototype.on=ve.prototype.addListener,ve.prototype.prependListener=function(z,oe){return he(this,z,oe,!0)};function le(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function fe(x,z,oe){var ie={fired:!1,wrapFn:void 0,target:x,type:z,listener:oe},ce=le.bind(ie);return ce.listener=oe,ie.wrapFn=ce,ce}ve.prototype.once=function(z,oe){return pe(oe),this.on(z,fe(this,z,oe)),this},ve.prototype.prependOnceListener=function(z,oe){return pe(oe),this.prependListener(z,fe(this,z,oe)),this},ve.prototype.removeListener=function(z,oe){var ie,ce,ye,_e,xe;if(pe(oe),ce=this._events,ce===void 0)return this;if(ie=ce[z],ie===void 0)return this;if(ie===oe||ie.listener===oe)--this._eventsCount===0?this._events=Object.create(null):(delete ce[z],ce.removeListener&&this.emit("removeListener",z,ie.listener||oe));else if(typeof ie!="function"){for(ye=-1,_e=ie.length-1;_e>=0;_e--)if(ie[_e]===oe||ie[_e].listener===oe){xe=ie[_e].listener,ye=_e;break}if(ye<0)return this;ye===0?ie.shift():ne(ie,ye),ie.length===1&&(ce[z]=ie[0]),ce.removeListener!==void 0&&this.emit("removeListener",z,xe||oe)}return this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.removeAllListeners=function(z){var oe,ie,ce;if(ie=this._events,ie===void 0)return this;if(ie.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ie[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ie[z]),this;if(arguments.length===0){var ye=Object.keys(ie),_e;for(ce=0;ce<ye.length;++ce)_e=ye[ce],_e!=="removeListener"&&this.removeAllListeners(_e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(oe=ie[z],typeof oe=="function")this.removeListener(z,oe);else if(oe!==void 0)for(ce=oe.length-1;ce>=0;ce--)this.removeListener(z,oe[ce]);return this};function se(x,z,oe){var ie=x._events;if(ie===void 0)return[];var ce=ie[z];return ce===void 0?[]:typeof ce=="function"?oe?[ce.listener||ce]:[ce]:oe?a(ce):re(ce,ce.length)}ve.prototype.listeners=function(z){return se(this,z,!0)},ve.prototype.rawListeners=function(z){return se(this,z,!1)},ve.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):me.call(x,z)},ve.prototype.listenerCount=me;function me(x){var z=this._events;if(z!==void 0){var oe=z[x];if(typeof oe=="function")return 1;if(oe!==void 0)return oe.length}return 0}ve.prototype.eventNames=function(){return this._eventsCount>0?te(this._events):[]};function re(x,z){for(var oe=new Array(z),ie=0;ie<z;++ie)oe[ie]=x[ie];return oe}function ne(x,z){for(;z+1<x.length;z++)x[z]=x[z+1];x.pop()}function a(x){for(var z=new Array(x.length),oe=0;oe<z.length;++oe)z[oe]=x[oe].listener||x[oe];return z}function y(x,z){return new Promise(function(oe,ie){function ce(_e){x.removeListener(z,ye),ie(_e)}function ye(){typeof x.removeListener=="function"&&x.removeListener("error",ce),oe([].slice.call(arguments))}b(x,z,ye,{once:!0}),z!=="error"&&E(x,ce,{once:!0})})}function E(x,z,oe){typeof x.on=="function"&&b(x,"error",z,oe)}function b(x,z,oe,ie){if(typeof x.on=="function")ie.once?x.once(z,oe):x.on(z,oe);else if(typeof x.addEventListener=="function")x.addEventListener(z,function ce(ye){ie.once&&x.removeEventListener(z,ce),oe(ye)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},19575:function(ot,Ge,ee){var te,ue;(function(be,ve){ot.exports=ve(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(be){"use strict";be=be||{};var ve=be.Base64,de="2.6.4",pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ae=function(Ve){for(var gt={},Ae=0,De=Ve.length;Ae<De;Ae++)gt[Ve.charAt(Ae)]=Ae;return gt}(pe),he=String.fromCharCode,le=function(Ve){if(Ve.length<2){var gt=Ve.charCodeAt(0);return gt<128?Ve:gt<2048?he(192|gt>>>6)+he(128|gt&63):he(224|gt>>>12&15)+he(128|gt>>>6&63)+he(128|gt&63)}else{var gt=65536+(Ve.charCodeAt(0)-55296)*1024+(Ve.charCodeAt(1)-56320);return he(240|gt>>>18&7)+he(128|gt>>>12&63)+he(128|gt>>>6&63)+he(128|gt&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Ve){return Ve.replace(fe,le)},me=function(Ve){var gt=[0,2,1][Ve.length%3],Ae=Ve.charCodeAt(0)<<16|(Ve.length>1?Ve.charCodeAt(1):0)<<8|(Ve.length>2?Ve.charCodeAt(2):0),De=[pe.charAt(Ae>>>18),pe.charAt(Ae>>>12&63),gt>=2?"=":pe.charAt(Ae>>>6&63),gt>=1?"=":pe.charAt(Ae&63)];return De.join("")},re=be.btoa&&typeof be.btoa=="function"?function(Ve){return be.btoa(Ve)}:function(Ve){if(Ve.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ve.replace(/[\s\S]{1,3}/g,me)},ne=function(Ve){return re(se(String(Ve)))},a=function(Ve){return Ve.replace(/[+\/]/g,function(gt){return gt=="+"?"-":"_"}).replace(/=/g,"")},y=function(Ve,gt){return gt?a(ne(Ve)):ne(Ve)},E=function(Ve){return y(Ve,!0)},b;be.Uint8Array&&(b=function(Ve,gt){for(var Ae="",De=0,Ie=Ve.length;De<Ie;De+=3){var tt=Ve[De],Ze=Ve[De+1],bt=Ve[De+2],wt=tt<<16|Ze<<8|bt;Ae+=pe.charAt(wt>>>18)+pe.charAt(wt>>>12&63)+(typeof Ze!="undefined"?pe.charAt(wt>>>6&63):"=")+(typeof bt!="undefined"?pe.charAt(wt&63):"=")}return gt?a(Ae):Ae});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,z=function(Ve){switch(Ve.length){case 4:var gt=(7&Ve.charCodeAt(0))<<18|(63&Ve.charCodeAt(1))<<12|(63&Ve.charCodeAt(2))<<6|63&Ve.charCodeAt(3),Ae=gt-65536;return he((Ae>>>10)+55296)+he((Ae&1023)+56320);case 3:return he((15&Ve.charCodeAt(0))<<12|(63&Ve.charCodeAt(1))<<6|63&Ve.charCodeAt(2));default:return he((31&Ve.charCodeAt(0))<<6|63&Ve.charCodeAt(1))}},oe=function(Ve){return Ve.replace(x,z)},ie=function(Ve){var gt=Ve.length,Ae=gt%4,De=(gt>0?ae[Ve.charAt(0)]<<18:0)|(gt>1?ae[Ve.charAt(1)]<<12:0)|(gt>2?ae[Ve.charAt(2)]<<6:0)|(gt>3?ae[Ve.charAt(3)]:0),Ie=[he(De>>>16),he(De>>>8&255),he(De&255)];return Ie.length-=[0,0,2,1][Ae],Ie.join("")},ce=be.atob&&typeof be.atob=="function"?function(Ve){return be.atob(Ve)}:function(Ve){return Ve.replace(/\S{1,4}/g,ie)},ye=function(Ve){return ce(String(Ve).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(Ve){return oe(ce(Ve))},xe=function(Ve){return String(Ve).replace(/[-_]/g,function(gt){return gt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ce=function(Ve){return _e(xe(Ve))},Te;be.Uint8Array&&(Te=function(Ve){return Uint8Array.from(ye(xe(Ve)),function(gt){return gt.charCodeAt(0)})});var Me=function(){var Ve=be.Base64;return be.Base64=ve,Ve};if(be.Base64={VERSION:de,atob:ye,btoa:re,fromBase64:Ce,toBase64:y,utob:se,encode:y,encodeURI:E,btou:oe,decode:Ce,noConflict:Me,fromUint8Array:b,toUint8Array:Te},typeof Object.defineProperty=="function"){var pt=function(Ve){return{value:Ve,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",pt(function(){return Ce(this)})),Object.defineProperty(String.prototype,"toBase64",pt(function(Ve){return y(this,Ve)})),Object.defineProperty(String.prototype,"toBase64URI",pt(function(){return y(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),ot.exports?ot.exports.Base64=be.Base64:(te=[],ue=function(){return be.Base64}.apply(Ge,te),ue!==void 0&&(ot.exports=ue)),{Base64:be.Base64}})},26819:function(ot,Ge){"use strict";var ee;var te=typeof Symbol=="function"&&Symbol.for,ue=te?Symbol.for("react.element"):60103,be=te?Symbol.for("react.portal"):60106,ve=te?Symbol.for("react.fragment"):60107,de=te?Symbol.for("react.strict_mode"):60108,pe=te?Symbol.for("react.profiler"):60114,ae=te?Symbol.for("react.provider"):60109,he=te?Symbol.for("react.context"):60110,le=te?Symbol.for("react.async_mode"):60111,fe=te?Symbol.for("react.concurrent_mode"):60111,se=te?Symbol.for("react.forward_ref"):60112,me=te?Symbol.for("react.suspense"):60113,re=te?Symbol.for("react.suspense_list"):60120,ne=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ie){if(typeof ie=="object"&&ie!==null){var ce=ie.$$typeof;switch(ce){case ue:switch(ie=ie.type,ie){case le:case fe:case ve:case pe:case de:case me:return ie;default:switch(ie=ie&&ie.$$typeof,ie){case he:case se:case a:case ne:case ae:return ie;default:return ce}}case be:return ce}}}function oe(ie){return z(ie)===fe}ee=le,ee=fe,ee=he,ee=ae,ee=ue,ee=se,ee=ve,ee=a,ee=ne,ee=be,ee=pe,ee=de,ee=me,ee=function(ie){return oe(ie)||z(ie)===le},ee=oe,ee=function(ie){return z(ie)===he},ee=function(ie){return z(ie)===ae},ee=function(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===ue},ee=function(ie){return z(ie)===se},ee=function(ie){return z(ie)===ve},ee=function(ie){return z(ie)===a},Ge.isMemo=function(ie){return z(ie)===ne},ee=function(ie){return z(ie)===be},ee=function(ie){return z(ie)===pe},ee=function(ie){return z(ie)===de},ee=function(ie){return z(ie)===me},ee=function(ie){return typeof ie=="string"||typeof ie=="function"||ie===ve||ie===fe||ie===pe||ie===de||ie===me||ie===re||typeof ie=="object"&&ie!==null&&(ie.$$typeof===a||ie.$$typeof===ne||ie.$$typeof===ae||ie.$$typeof===he||ie.$$typeof===se||ie.$$typeof===E||ie.$$typeof===b||ie.$$typeof===x||ie.$$typeof===y)},ee=z},18459:function(ot,Ge,ee){"use strict";ot.exports=ee(26819)},16651:function(ot,Ge){"use strict";var ee;var te=Symbol.for("react.element"),ue=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ae=Symbol.for("react.context"),he=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case be:case de:case ve:case fe:case se:return E;default:switch(E=E&&E.$$typeof,E){case he:case ae:case le:case re:case me:case pe:return E;default:return b}}case ue:return b}}}ee=ae,ee=pe,ee=te,ee=le,ee=be,ee=re,ee=me,ee=ue,ee=de,ee=ve,ee=fe,ee=se,ee=function(){return!1},ee=function(){return!1},ee=function(E){return y(E)===ae},ee=function(E){return y(E)===pe},ee=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},ee=function(E){return y(E)===le},ee=function(E){return y(E)===be},ee=function(E){return y(E)===re},ee=function(E){return y(E)===me},ee=function(E){return y(E)===ue},ee=function(E){return y(E)===de},ee=function(E){return y(E)===ve},ee=function(E){return y(E)===fe},ee=function(E){return y(E)===se},ee=function(E){return typeof E=="string"||typeof E=="function"||E===be||E===de||E===ve||E===fe||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ae||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},ee=y},33993:function(ot,Ge,ee){"use strict";ee(16651)},81626:function(ot,Ge){"use strict";Ge.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},46762:function(ot,Ge){"use strict";var ee;var te=Symbol.for("react.element"),ue=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ae=Symbol.for("react.context"),he=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case be:case de:case ve:case fe:case se:return E;default:switch(E=E&&E.$$typeof,E){case he:case ae:case le:case re:case me:case pe:return E;default:return b}}case ue:return b}}}ee=ae,ee=pe,ee=te,ee=le,ee=be,ee=re,ee=me,ee=ue,ee=de,ee=ve,ee=fe,ee=se,ee=function(){return!1},ee=function(){return!1},ee=function(E){return y(E)===ae},ee=function(E){return y(E)===pe},ee=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},ee=function(E){return y(E)===le},Ge.isFragment=function(E){return y(E)===be},ee=function(E){return y(E)===re},ee=function(E){return y(E)===me},ee=function(E){return y(E)===ue},ee=function(E){return y(E)===de},ee=function(E){return y(E)===ve},ee=function(E){return y(E)===fe},ee=function(E){return y(E)===se},ee=function(E){return typeof E=="string"||typeof E=="function"||E===be||E===de||E===ve||E===fe||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ae||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},ee=y},35110:function(ot,Ge,ee){"use strict";ot.exports=ee(46762)},58971:function(ot,Ge,ee){var te=ee(62195),ue=ee(39015),be=[ee(19257)];ot.exports=te.createStore(ue,be)},19257:function(ot,Ge,ee){ot.exports=te;function te(){return ee(55703),{}}},55703:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(ot){return ot<10?"0"+ot:ot}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(ot){return rx_escapable.lastIndex=0,rx_escapable.test(ot)?'"'+ot.replace(rx_escapable,function(Ge){var ee=meta[Ge];return typeof ee=="string"?ee:"\\u"+("0000"+Ge.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ot+'"'}function str(ot,Ge){var ee,te,ue,be,ve=gap,de,pe=Ge[ot];switch(pe&&typeof pe=="object"&&typeof pe.toJSON=="function"&&(pe=pe.toJSON(ot)),typeof rep=="function"&&(pe=rep.call(Ge,ot,pe)),typeof pe){case"string":return quote(pe);case"number":return isFinite(pe)?String(pe):"null";case"boolean":case"null":return String(pe);case"object":if(!pe)return"null";if(gap+=indent,de=[],Object.prototype.toString.apply(pe)==="[object Array]"){for(be=pe.length,ee=0;ee<be;ee+=1)de[ee]=str(ee,pe)||"null";return ue=de.length===0?"[]":gap?`[
`+gap+de.join(`,
`+gap)+`
`+ve+"]":"["+de.join(",")+"]",gap=ve,ue}if(rep&&typeof rep=="object")for(be=rep.length,ee=0;ee<be;ee+=1)typeof rep[ee]=="string"&&(te=rep[ee],ue=str(te,pe),ue&&de.push(quote(te)+(gap?": ":":")+ue));else for(te in pe)Object.prototype.hasOwnProperty.call(pe,te)&&(ue=str(te,pe),ue&&de.push(quote(te)+(gap?": ":":")+ue));return ue=de.length===0?"{}":gap?`{
`+gap+de.join(`,
`+gap)+`
`+ve+"}":"{"+de.join(",")+"}",gap=ve,ue}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(ot,Ge,ee){var te;if(gap="",indent="",typeof ee=="number")for(te=0;te<ee;te+=1)indent+=" ";else typeof ee=="string"&&(indent=ee);if(rep=Ge,Ge&&typeof Ge!="function"&&(typeof Ge!="object"||typeof Ge.length!="number"))throw new Error("JSON.stringify");return str("",{"":ot})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(ot,Ge){var ee,te,ue=ot[Ge];if(ue&&typeof ue=="object")for(ee in ue)Object.prototype.hasOwnProperty.call(ue,ee)&&(te=walk(ue,ee),te!==void 0?ue[ee]=te:delete ue[ee]);return reviver.call(ot,Ge,ue)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(ot){return"\\u"+("0000"+ot.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},62195:function(ot,Ge,ee){var te=ee(69078),ue=te.slice,be=te.pluck,ve=te.each,de=te.bind,pe=te.create,ae=te.isList,he=te.isFunction,le=te.isObject;ot.exports={createStore:me};var fe={version:"2.0.12",enabled:!1,get:function(re,ne){var a=this.storage.read(this._namespacePrefix+re);return this._deserialize(a,ne)},set:function(re,ne){return ne===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(ne)),ne)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var ne=this;this.storage.each(function(a,y){re.call(ne,ne._deserialize(a),(y||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return me.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return me(this.storage,this.plugins,re)}};function se(){var re=typeof console=="undefined"?null:console;if(re){var ne=re.warn?re.warn:re.log;ne.apply(re,arguments)}}function me(re,ne,a){a||(a=""),re&&!ae(re)&&(re=[re]),ne&&!ae(ne)&&(ne=[ne]);var y=a?"__storejs_"+a+"_":"",E=a?new RegExp("^"+y):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var x={_namespacePrefix:y,_namespaceRegexp:E,_testStorage:function(oe){try{var ie="__storejs__test__";oe.write(ie,ie);var ce=oe.read(ie)===ie;return oe.remove(ie),ce}catch(ye){return!1}},_assignPluginFnProp:function(oe,ie){var ce=this[ie];this[ie]=function(){var _e=ue(arguments,0),xe=this;function Ce(){if(ce)return ve(arguments,function(Me,pt){_e[pt]=Me}),ce.apply(xe,_e)}var Te=[Ce].concat(_e);return oe.apply(xe,Te)}},_serialize:function(oe){return JSON.stringify(oe)},_deserialize:function(oe,ie){if(!oe)return ie;var ce="";try{ce=JSON.parse(oe)}catch(ye){ce=oe}return ce!==void 0?ce:ie},_addStorage:function(oe){this.enabled||this._testStorage(oe)&&(this.storage=oe,this.enabled=!0)},_addPlugin:function(oe){var ie=this;if(ae(oe)){ve(oe,function(_e){ie._addPlugin(_e)});return}var ce=be(this.plugins,function(_e){return oe===_e});if(!ce){if(this.plugins.push(oe),!he(oe))throw new Error("Plugins must be function values that return objects");var ye=oe.call(this);if(!le(ye))throw new Error("Plugins must return an object of function properties");ve(ye,function(_e,xe){if(!he(_e))throw new Error("Bad plugin property: "+xe+" from plugin "+oe.name+". Plugins should only return functions.");ie._assignPluginFnProp(_e,xe)})}},addStorage:function(oe){se("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(oe)}},z=pe(x,fe,{plugins:[]});return z.raw={},ve(z,function(oe,ie){he(oe)&&(z.raw[ie]=de(z,oe))}),ve(re,function(oe){z._addStorage(oe)}),ve(ne,function(oe){z._addPlugin(oe)}),z}},69078:function(ot,Ge,ee){var te=de(),ue=pe(),be=ae(),ve=typeof window!="undefined"?window:ee.g;ot.exports={assign:te,create:ue,trim:be,bind:he,slice:le,each:fe,map:se,pluck:me,isList:re,isFunction:ne,isObject:a,Global:ve};function de(){return Object.assign?Object.assign:function(E,b,x,z){for(var oe=1;oe<arguments.length;oe++)fe(Object(arguments[oe]),function(ie,ce){E[ce]=ie});return E}}function pe(){if(Object.create)return function(b,x,z,oe){var ie=le(arguments,1);return te.apply(this,[Object.create(b)].concat(ie))};{let E=function(){};var y=E;return function(x,z,oe,ie){var ce=le(arguments,1);return E.prototype=x,te.apply(this,[new E].concat(ce))}}}function ae(){return String.prototype.trim?function(E){return String.prototype.trim.call(E)}:function(E){return E.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function he(y,E){return function(){return E.apply(y,Array.prototype.slice.call(arguments,0))}}function le(y,E){return Array.prototype.slice.call(y,E||0)}function fe(y,E){me(y,function(b,x){return E(b,x),!1})}function se(y,E){var b=re(y)?[]:{};return me(y,function(x,z){return b[z]=E(x,z),!1}),b}function me(y,E){if(re(y)){for(var b=0;b<y.length;b++)if(E(y[b],b))return y[b]}else for(var x in y)if(y.hasOwnProperty(x)&&E(y[x],x))return y[x]}function re(y){return y!=null&&typeof y!="function"&&typeof y.length=="number"}function ne(y){return y&&{}.toString.call(y)==="[object Function]"}function a(y){return y&&{}.toString.call(y)==="[object Object]"}},39015:function(ot,Ge,ee){ot.exports=[ee(39627),ee(95347),ee(34524),ee(45580),ee(58855),ee(8728)]},45580:function(ot,Ge,ee){var te=ee(69078),ue=te.Global,be=te.trim;ot.exports={name:"cookieStorage",read:de,write:ae,each:pe,remove:he,clearAll:le};var ve=ue.document;function de(se){if(!se||!fe(se))return null;var me="(?:^|.*;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ve.cookie.replace(new RegExp(me),"$1"))}function pe(se){for(var me=ve.cookie.split(/; ?/g),re=me.length-1;re>=0;re--)if(be(me[re])){var ne=me[re].split("="),a=unescape(ne[0]),y=unescape(ne[1]);se(y,a)}}function ae(se,me){se&&(ve.cookie=escape(se)+"="+escape(me)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function he(se){!se||!fe(se)||(ve.cookie=escape(se)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){pe(function(se,me){he(me)})}function fe(se){return new RegExp("(?:^|;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ve.cookie)}},39627:function(ot,Ge,ee){var te=ee(69078),ue=te.Global;ot.exports={name:"localStorage",read:ve,write:de,each:pe,remove:ae,clearAll:he};function be(){return ue.localStorage}function ve(le){return be().getItem(le)}function de(le,fe){return be().setItem(le,fe)}function pe(le){for(var fe=be().length-1;fe>=0;fe--){var se=be().key(fe);le(ve(se),se)}}function ae(le){return be().removeItem(le)}function he(){return be().clear()}},8728:function(ot){ot.exports={name:"memoryStorage",read:ee,write:te,each:ue,remove:be,clearAll:ve};var Ge={};function ee(de){return Ge[de]}function te(de,pe){Ge[de]=pe}function ue(de){for(var pe in Ge)Ge.hasOwnProperty(pe)&&de(Ge[pe],pe)}function be(de){delete Ge[de]}function ve(de){Ge={}}},95347:function(ot,Ge,ee){var te=ee(69078),ue=te.Global;ot.exports={name:"oldFF-globalStorage",read:ve,write:de,each:pe,remove:ae,clearAll:he};var be=ue.globalStorage;function ve(le){return be[le]}function de(le,fe){be[le]=fe}function pe(le){for(var fe=be.length-1;fe>=0;fe--){var se=be.key(fe);le(be[se],se)}}function ae(le){return be.removeItem(le)}function he(){pe(function(le,fe){delete be[le]})}},34524:function(ot,Ge,ee){var te=ee(69078),ue=te.Global;ot.exports={name:"oldIE-userDataStorage",write:ae,read:he,each:le,remove:fe,clearAll:se};var be="storejs",ve=ue.document,de=ne(),pe=(ue.navigator?ue.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ae(a,y){if(!pe){var E=re(a);de(function(b){b.setAttribute(E,y),b.save(be)})}}function he(a){if(!pe){var y=re(a),E=null;return de(function(b){E=b.getAttribute(y)}),E}}function le(a){de(function(y){for(var E=y.XMLDocument.documentElement.attributes,b=E.length-1;b>=0;b--){var x=E[b];a(y.getAttribute(x.name),x.name)}})}function fe(a){var y=re(a);de(function(E){E.removeAttribute(y),E.save(be)})}function se(){de(function(a){var y=a.XMLDocument.documentElement.attributes;a.load(be);for(var E=y.length-1;E>=0;E--)a.removeAttribute(y[E].name);a.save(be)})}var me=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(a){return a.replace(/^\d/,"___$&").replace(me,"___")}function ne(){if(!ve||!ve.documentElement||!ve.documentElement.addBehavior)return null;var a="script",y,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),E.close(),y=E.w.frames[0].document,b=y.createElement("div")}catch(x){b=ve.createElement("div"),y=ve.body}return function(x){var z=[].slice.call(arguments,0);z.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(be),x.apply(this,z),y.removeChild(b)}}},58855:function(ot,Ge,ee){var te=ee(69078),ue=te.Global;ot.exports={name:"sessionStorage",read:ve,write:de,each:pe,remove:ae,clearAll:he};function be(){return ue.sessionStorage}function ve(le){return be().getItem(le)}function de(le,fe){return be().setItem(le,fe)}function pe(le){for(var fe=be().length-1;fe>=0;fe--){var se=be().key(fe);le(ve(se),se)}}function ae(le){return be().removeItem(le)}function he(){return be().clear()}},18034:function(ot){var Ge=arguments[3],ee=arguments[4],te=arguments[5],ue=JSON.stringify;ot.exports=function(be,ve){for(var de,pe=Object.keys(te),ae=0,he=pe.length;ae<he;ae++){var le=pe[ae],fe=te[le].exports;if(fe===be||fe&&fe.default===be){de=le;break}}if(!de){de=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var se={},ae=0,he=pe.length;ae<he;ae++){var le=pe[ae];se[le]=le}ee[de]=["function(require,module,exports){"+be+"(self); }",se]}var me=Math.floor(Math.pow(16,8)*Math.random()).toString(16),re={};re[de]=de,ee[me]=["function(require,module,exports){var f = require("+ue(de)+");(f.default ? f.default : f)(self);}",re];var ne={};a(me);function a(oe){ne[oe]=!0;for(var ie in ee[oe][1]){var ce=ee[oe][1][ie];ne[ce]||a(ce)}}var y="("+Ge+")({"+Object.keys(ne).map(function(oe){return ue(oe)+":["+ee[oe][0]+","+ue(ee[oe][1])+"]"}).join(",")+"},{},["+ue(me)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(ve&&ve.bare)return b;var x=E.createObjectURL(b),z=new Worker(x);return z.objectURL=x,z}},12320:function(ot){(function(Ge,ee){if(1)ot.exports=ee();else var te,ue})(window,function(){return function(Ge){var ee={};function te(ue){if(ee[ue])return ee[ue].exports;var be=ee[ue]={i:ue,l:!1,exports:{}};return Ge[ue].call(be.exports,be,be.exports,te),be.l=!0,be.exports}return te.m=Ge,te.c=ee,te.d=function(ue,be,ve){te.o(ue,be)||Object.defineProperty(ue,be,{enumerable:!0,get:ve})},te.r=function(ue){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ue,"__esModule",{value:!0})},te.t=function(ue,be){if(1&be&&(ue=te(ue)),8&be||4&be&&typeof ue=="object"&&ue&&ue.__esModule)return ue;var ve=Object.create(null);if(te.r(ve),Object.defineProperty(ve,"default",{enumerable:!0,value:ue}),2&be&&typeof ue!="string")for(var de in ue)te.d(ve,de,function(pe){return ue[pe]}.bind(null,de));return ve},te.n=function(ue){var be=ue&&ue.__esModule?function(){return ue.default}:function(){return ue};return te.d(be,"a",be),be},te.o=function(ue,be){return Object.prototype.hasOwnProperty.call(ue,be)},te.p="",te(te.s=34)}([function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.forwardEvent=ee.EventEmitter=void 0;var ue=function(){function be(){this._listeners=[],this._disposed=!1}return Object.defineProperty(be.prototype,"event",{get:function(){var ve=this;return this._event||(this._event=function(de){return ve._listeners.push(de),{dispose:function(){if(!ve._disposed){for(var pe=0;pe<ve._listeners.length;pe++)if(ve._listeners[pe]===de)return void ve._listeners.splice(pe,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(ve,de){for(var pe=[],ae=0;ae<this._listeners.length;ae++)pe.push(this._listeners[ae]);for(ae=0;ae<pe.length;ae++)pe[ae].call(void 0,ve,de)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();ee.EventEmitter=ue,ee.forwardEvent=function(be,ve){return be(function(de){return ve.fire(de)})}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.IUnicodeService=ee.IOptionsService=ee.ILogService=ee.IInstantiationService=ee.IDirtyRowService=ee.ICharsetService=ee.ICoreService=ee.ICoreMouseService=ee.IBufferService=void 0;var ue=te(14);ee.IBufferService=ue.createDecorator("BufferService"),ee.ICoreMouseService=ue.createDecorator("CoreMouseService"),ee.ICoreService=ue.createDecorator("CoreService"),ee.ICharsetService=ue.createDecorator("CharsetService"),ee.IDirtyRowService=ue.createDecorator("DirtyRowService"),ee.IInstantiationService=ue.createDecorator("InstantiationService"),ee.ILogService=ue.createDecorator("LogService"),ee.IOptionsService=ue.createDecorator("OptionsService"),ee.IUnicodeService=ue.createDecorator("UnicodeService")},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.getDisposeArrayDisposable=ee.disposeArray=ee.Disposable=void 0;var ue=function(){function ve(){this._disposables=[],this._isDisposed=!1}return ve.prototype.dispose=function(){this._isDisposed=!0;for(var de=0,pe=this._disposables;de<pe.length;de++)pe[de].dispose();this._disposables.length=0},ve.prototype.register=function(de){return this._disposables.push(de),de},ve.prototype.unregister=function(de){var pe=this._disposables.indexOf(de);pe!==-1&&this._disposables.splice(pe,1)},ve}();function be(ve){for(var de=0,pe=ve;de<pe.length;de++)pe[de].dispose();ve.length=0}ee.Disposable=ue,ee.disposeArray=be,ee.getDisposeArrayDisposable=function(ve){return{dispose:function(){return be(ve)}}}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WHITESPACE_CELL_CODE=ee.WHITESPACE_CELL_WIDTH=ee.WHITESPACE_CELL_CHAR=ee.NULL_CELL_CODE=ee.NULL_CELL_WIDTH=ee.NULL_CELL_CHAR=ee.CHAR_DATA_CODE_INDEX=ee.CHAR_DATA_WIDTH_INDEX=ee.CHAR_DATA_CHAR_INDEX=ee.CHAR_DATA_ATTR_INDEX=ee.DEFAULT_ATTR=ee.DEFAULT_COLOR=void 0,ee.DEFAULT_COLOR=256,ee.DEFAULT_ATTR=256|ee.DEFAULT_COLOR<<9,ee.CHAR_DATA_ATTR_INDEX=0,ee.CHAR_DATA_CHAR_INDEX=1,ee.CHAR_DATA_WIDTH_INDEX=2,ee.CHAR_DATA_CODE_INDEX=3,ee.NULL_CELL_CHAR="",ee.NULL_CELL_WIDTH=1,ee.NULL_CELL_CODE=0,ee.WHITESPACE_CELL_CHAR=" ",ee.WHITESPACE_CELL_WIDTH=1,ee.WHITESPACE_CELL_CODE=32},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(he,le){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,se){fe.__proto__=se}||function(fe,se){for(var me in se)se.hasOwnProperty(me)&&(fe[me]=se[me])})(he,le)},function(he,le){function fe(){this.constructor=he}ue(he,le),he.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CellData=void 0;var ve=te(8),de=te(3),pe=te(6),ae=function(he){function le(){var fe=he!==null&&he.apply(this,arguments)||this;return fe.content=0,fe.fg=0,fe.bg=0,fe.extended=new pe.ExtendedAttrs,fe.combinedData="",fe}return be(le,he),le.fromCharData=function(fe){var se=new le;return se.setFromCharData(fe),se},le.prototype.isCombined=function(){return 2097152&this.content},le.prototype.getWidth=function(){return this.content>>22},le.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?ve.stringFromCodePoint(2097151&this.content):""},le.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},le.prototype.setFromCharData=function(fe){this.fg=fe[de.CHAR_DATA_ATTR_INDEX],this.bg=0;var se=!1;if(fe[de.CHAR_DATA_CHAR_INDEX].length>2)se=!0;else if(fe[de.CHAR_DATA_CHAR_INDEX].length===2){var me=fe[de.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=me&&me<=56319){var re=fe[de.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=re&&re<=57343?this.content=1024*(me-55296)+re-56320+65536|fe[de.CHAR_DATA_WIDTH_INDEX]<<22:se=!0}else se=!0}else this.content=fe[de.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|fe[de.CHAR_DATA_WIDTH_INDEX]<<22;se&&(this.combinedData=fe[de.CHAR_DATA_CHAR_INDEX],this.content=2097152|fe[de.CHAR_DATA_WIDTH_INDEX]<<22)},le.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},le}(pe.AttributeData);ee.CellData=ae},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ISoundService=ee.ISelectionService=ee.IRenderService=ee.IMouseService=ee.ICoreBrowserService=ee.ICharSizeService=void 0;var ue=te(14);ee.ICharSizeService=ue.createDecorator("CharSizeService"),ee.ICoreBrowserService=ue.createDecorator("CoreBrowserService"),ee.IMouseService=ue.createDecorator("MouseService"),ee.IRenderService=ue.createDecorator("RenderService"),ee.ISelectionService=ue.createDecorator("SelectionService"),ee.ISoundService=ue.createDecorator("SoundService")},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ExtendedAttrs=ee.AttributeData=void 0;var ue=function(){function ve(){this.fg=0,this.bg=0,this.extended=new be}return ve.toColorRGB=function(de){return[de>>>16&255,de>>>8&255,255&de]},ve.fromColorRGB=function(de){return(255&de[0])<<16|(255&de[1])<<8|255&de[2]},ve.prototype.clone=function(){var de=new ve;return de.fg=this.fg,de.bg=this.bg,de.extended=this.extended.clone(),de},ve.prototype.isInverse=function(){return 67108864&this.fg},ve.prototype.isBold=function(){return 134217728&this.fg},ve.prototype.isUnderline=function(){return 268435456&this.fg},ve.prototype.isBlink=function(){return 536870912&this.fg},ve.prototype.isInvisible=function(){return 1073741824&this.fg},ve.prototype.isItalic=function(){return 67108864&this.bg},ve.prototype.isDim=function(){return 134217728&this.bg},ve.prototype.getFgColorMode=function(){return 50331648&this.fg},ve.prototype.getBgColorMode=function(){return 50331648&this.bg},ve.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},ve.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},ve.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},ve.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},ve.prototype.isFgDefault=function(){return(50331648&this.fg)==0},ve.prototype.isBgDefault=function(){return(50331648&this.bg)==0},ve.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},ve.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},ve.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},ve.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},ve.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},ve.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},ve.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},ve.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},ve.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},ve.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},ve.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},ve}();ee.AttributeData=ue;var be=function(){function ve(de,pe){de===void 0&&(de=0),pe===void 0&&(pe=-1),this.underlineStyle=de,this.underlineColor=pe}return ve.prototype.clone=function(){return new ve(this.underlineStyle,this.underlineColor)},ve.prototype.isEmpty=function(){return this.underlineStyle===0},ve}();ee.ExtendedAttrs=be},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.addDisposableDomListener=void 0,ee.addDisposableDomListener=function(ue,be,ve,de){ue.addEventListener(be,ve,de);var pe=!1;return{dispose:function(){pe||(pe=!0,ue.removeEventListener(be,ve,de))}}}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Utf8ToUtf32=ee.StringToUtf32=ee.utf32ToString=ee.stringFromCodePoint=void 0,ee.stringFromCodePoint=function(ve){return ve>65535?(ve-=65536,String.fromCharCode(55296+(ve>>10))+String.fromCharCode(ve%1024+56320)):String.fromCharCode(ve)},ee.utf32ToString=function(ve,de,pe){de===void 0&&(de=0),pe===void 0&&(pe=ve.length);for(var ae="",he=de;he<pe;++he){var le=ve[he];le>65535?(le-=65536,ae+=String.fromCharCode(55296+(le>>10))+String.fromCharCode(le%1024+56320)):ae+=String.fromCharCode(le)}return ae};var ue=function(){function ve(){this._interim=0}return ve.prototype.clear=function(){this._interim=0},ve.prototype.decode=function(de,pe){var ae=de.length;if(!ae)return 0;var he=0,le=0;this._interim&&(56320<=(me=de.charCodeAt(le++))&&me<=57343?pe[he++]=1024*(this._interim-55296)+me-56320+65536:(pe[he++]=this._interim,pe[he++]=me),this._interim=0);for(var fe=le;fe<ae;++fe){var se=de.charCodeAt(fe);if(55296<=se&&se<=56319){if(++fe>=ae)return this._interim=se,he;var me;56320<=(me=de.charCodeAt(fe))&&me<=57343?pe[he++]=1024*(se-55296)+me-56320+65536:(pe[he++]=se,pe[he++]=me)}else pe[he++]=se}return he},ve}();ee.StringToUtf32=ue;var be=function(){function ve(){this.interim=new Uint8Array(3)}return ve.prototype.clear=function(){this.interim.fill(0)},ve.prototype.decode=function(de,pe){var ae=de.length;if(!ae)return 0;var he,le,fe,se,me=0,re=0,ne=0;if(this.interim[0]){var a=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var E=0,b=void 0;(b=63&this.interim[++E])&&E<4;)y<<=6,y|=b;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,z=x-E;ne<z;){if(ne>=ae)return 0;if((192&(b=de[ne++]))!=128){ne--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(x===2?y<128?ne--:pe[me++]=y:x===3?y<2048||y>=55296&&y<=57343||(pe[me++]=y):y<65536||y>1114111||(pe[me++]=y)),this.interim.fill(0)}for(var oe=ae-4,ie=ne;ie<ae;){for(;!(!(ie<oe)||128&(he=de[ie])||128&(le=de[ie+1])||128&(fe=de[ie+2])||128&(se=de[ie+3]));)pe[me++]=he,pe[me++]=le,pe[me++]=fe,pe[me++]=se,ie+=4;if((he=de[ie++])<128)pe[me++]=he;else if((224&he)==192){if(ie>=ae)return this.interim[0]=he,me;if((192&(le=de[ie++]))!=128){ie--;continue}if((re=(31&he)<<6|63&le)<128){ie--;continue}pe[me++]=re}else if((240&he)==224){if(ie>=ae)return this.interim[0]=he,me;if((192&(le=de[ie++]))!=128){ie--;continue}if(ie>=ae)return this.interim[0]=he,this.interim[1]=le,me;if((192&(fe=de[ie++]))!=128){ie--;continue}if((re=(15&he)<<12|(63&le)<<6|63&fe)<2048||re>=55296&&re<=57343)continue;pe[me++]=re}else if((248&he)==240){if(ie>=ae)return this.interim[0]=he,me;if((192&(le=de[ie++]))!=128){ie--;continue}if(ie>=ae)return this.interim[0]=he,this.interim[1]=le,me;if((192&(fe=de[ie++]))!=128){ie--;continue}if(ie>=ae)return this.interim[0]=he,this.interim[1]=le,this.interim[2]=fe,me;if((192&(se=de[ie++]))!=128){ie--;continue}if((re=(7&he)<<18|(63&le)<<12|(63&fe)<<6|63&se)<65536||re>1114111)continue;pe[me++]=re}}return me},ve}();ee.Utf8ToUtf32=be},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CHAR_ATLAS_CELL_SPACING=ee.DIM_OPACITY=ee.INVERTED_DEFAULT_COLOR=void 0,ee.INVERTED_DEFAULT_COLOR=257,ee.DIM_OPACITY=.5,ee.CHAR_ATLAS_CELL_SPACING=1},function(Ge,ee,te){"use strict";var ue,be,ve,de;function pe(he){var le=he.toString(16);return le.length<2?"0"+le:le}function ae(he,le){return he<le?(le+.05)/(he+.05):(he+.05)/(le+.05)}Object.defineProperty(ee,"__esModule",{value:!0}),ee.contrastRatio=ee.toPaddedHex=ee.rgba=ee.rgb=ee.css=ee.color=ee.channels=void 0,function(he){he.toCss=function(le,fe,se,me){return me!==void 0?"#"+pe(le)+pe(fe)+pe(se)+pe(me):"#"+pe(le)+pe(fe)+pe(se)},he.toRgba=function(le,fe,se,me){return me===void 0&&(me=255),(le<<24|fe<<16|se<<8|me)>>>0}}(ue=ee.channels||(ee.channels={})),(be=ee.color||(ee.color={})).blend=function(he,le){var fe=(255&le.rgba)/255;if(fe===1)return{css:le.css,rgba:le.rgba};var se=le.rgba>>24&255,me=le.rgba>>16&255,re=le.rgba>>8&255,ne=he.rgba>>24&255,a=he.rgba>>16&255,y=he.rgba>>8&255,E=ne+Math.round((se-ne)*fe),b=a+Math.round((me-a)*fe),x=y+Math.round((re-y)*fe);return{css:ue.toCss(E,b,x),rgba:ue.toRgba(E,b,x)}},be.isOpaque=function(he){return(255&he.rgba)==255},be.ensureContrastRatio=function(he,le,fe){var se=de.ensureContrastRatio(he.rgba,le.rgba,fe);if(se)return de.toColor(se>>24&255,se>>16&255,se>>8&255)},be.opaque=function(he){var le=(255|he.rgba)>>>0,fe=de.toChannels(le),se=fe[0],me=fe[1],re=fe[2];return{css:ue.toCss(se,me,re),rgba:le}},be.opacity=function(he,le){var fe=Math.round(255*le),se=de.toChannels(he.rgba),me=se[0],re=se[1],ne=se[2];return{css:ue.toCss(me,re,ne,fe),rgba:ue.toRgba(me,re,ne,fe)}},(ee.css||(ee.css={})).toColor=function(he){switch(he.length){case 7:return{css:he,rgba:(parseInt(he.slice(1),16)<<8|255)>>>0};case 9:return{css:he,rgba:parseInt(he.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(he){function le(fe,se,me){var re=fe/255,ne=se/255,a=me/255;return .2126*(re<=.03928?re/12.92:Math.pow((re+.055)/1.055,2.4))+.7152*(ne<=.03928?ne/12.92:Math.pow((ne+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}he.relativeLuminance=function(fe){return le(fe>>16&255,fe>>8&255,255&fe)},he.relativeLuminance2=le}(ve=ee.rgb||(ee.rgb={})),function(he){function le(se,me,re){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=me>>24&255,b=me>>16&255,x=me>>8&255,z=ae(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));z<re&&(E>0||b>0||x>0);)E-=Math.max(0,Math.ceil(.1*E)),b-=Math.max(0,Math.ceil(.1*b)),x-=Math.max(0,Math.ceil(.1*x)),z=ae(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function fe(se,me,re){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=me>>24&255,b=me>>16&255,x=me>>8&255,z=ae(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));z<re&&(E<255||b<255||x<255);)E=Math.min(255,E+Math.ceil(.1*(255-E))),b=Math.min(255,b+Math.ceil(.1*(255-b))),x=Math.min(255,x+Math.ceil(.1*(255-x))),z=ae(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}he.ensureContrastRatio=function(se,me,re){var ne=ve.relativeLuminance(se>>8),a=ve.relativeLuminance(me>>8);if(ae(ne,a)<re)return a<ne?le(se,me,re):fe(se,me,re)},he.reduceLuminance=le,he.increaseLuminance=fe,he.toChannels=function(se){return[se>>24&255,se>>16&255,se>>8&255,255&se]},he.toColor=function(se,me,re){return{css:ue.toCss(se,me,re),rgba:ue.toRgba(se,me,re)}}}(de=ee.rgba||(ee.rgba={})),ee.toPaddedHex=pe,ee.contrastRatio=ae},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isLinux=ee.isWindows=ee.isIphone=ee.isIpad=ee.isMac=ee.isSafari=ee.isFirefox=void 0;var ue=typeof navigator=="undefined",be=ue?"node":navigator.userAgent,ve=ue?"node":navigator.platform;function de(pe,ae){return pe.indexOf(ae)>=0}ee.isFirefox=!!~be.indexOf("Firefox"),ee.isSafari=/^((?!chrome|android).)*safari/i.test(be),ee.isMac=de(["Macintosh","MacIntel","MacPPC","Mac68K"],ve),ee.isIpad=ve==="iPad",ee.isIphone=ve==="iPhone",ee.isWindows=de(["Windows","Win16","Win32","WinCE"],ve),ee.isLinux=ve.indexOf("Linux")>=0},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.C1=ee.C0=void 0,function(ue){ue.NUL="\0",ue.SOH="",ue.STX="",ue.ETX="",ue.EOT="",ue.ENQ="",ue.ACK="",ue.BEL="\x07",ue.BS="\b",ue.HT=" ",ue.LF=`
`,ue.VT="\v",ue.FF="\f",ue.CR="\r",ue.SO="",ue.SI="",ue.DLE="",ue.DC1="",ue.DC2="",ue.DC3="",ue.DC4="",ue.NAK="",ue.SYN="",ue.ETB="",ue.CAN="",ue.EM="",ue.SUB="",ue.ESC="\x1B",ue.FS="",ue.GS="",ue.RS="",ue.US="",ue.SP=" ",ue.DEL="\x7F"}(ee.C0||(ee.C0={})),function(ue){ue.PAD="\x80",ue.HOP="\x81",ue.BPH="\x82",ue.NBH="\x83",ue.IND="\x84",ue.NEL="\x85",ue.SSA="\x86",ue.ESA="\x87",ue.HTS="\x88",ue.HTJ="\x89",ue.VTS="\x8A",ue.PLD="\x8B",ue.PLU="\x8C",ue.RI="\x8D",ue.SS2="\x8E",ue.SS3="\x8F",ue.DCS="\x90",ue.PU1="\x91",ue.PU2="\x92",ue.STS="\x93",ue.CCH="\x94",ue.MW="\x95",ue.SPA="\x96",ue.EPA="\x97",ue.SOS="\x98",ue.SGCI="\x99",ue.SCI="\x9A",ue.CSI="\x9B",ue.ST="\x9C",ue.OSC="\x9D",ue.PM="\x9E",ue.APC="\x9F"}(ee.C1||(ee.C1={}))},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseRenderLayer=void 0;var ue=te(3),be=te(9),ve=te(25),de=te(6),pe=te(28),ae=te(10),he=te(17),le=function(){function fe(se,me,re,ne,a,y,E,b){this._container=se,this._alpha=ne,this._colors=a,this._rendererId=y,this._bufferService=E,this._optionsService=b,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+me+"-layer"),this._canvas.style.zIndex=re.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return fe.prototype.dispose=function(){var se;he.removeElementFromParent(this._canvas),(se=this._charAtlas)===null||se===void 0||se.dispose()},fe.prototype._initCanvas=function(){this._ctx=pe.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},fe.prototype.onOptionsChanged=function(){},fe.prototype.onBlur=function(){},fe.prototype.onFocus=function(){},fe.prototype.onCursorMove=function(){},fe.prototype.onGridChanged=function(se,me){},fe.prototype.onSelectionChanged=function(se,me,re){re===void 0&&(re=!1)},fe.prototype.setColors=function(se){this._refreshCharAtlas(se)},fe.prototype._setTransparency=function(se){if(se!==this._alpha){var me=this._canvas;this._alpha=se,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,me),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},fe.prototype._refreshCharAtlas=function(se){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=ve.acquireCharAtlas(this._optionsService.options,this._rendererId,se,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},fe.prototype.resize=function(se){this._scaledCellWidth=se.scaledCellWidth,this._scaledCellHeight=se.scaledCellHeight,this._scaledCharWidth=se.scaledCharWidth,this._scaledCharHeight=se.scaledCharHeight,this._scaledCharLeft=se.scaledCharLeft,this._scaledCharTop=se.scaledCharTop,this._canvas.width=se.scaledCanvasWidth,this._canvas.height=se.scaledCanvasHeight,this._canvas.style.width=se.canvasWidth+"px",this._canvas.style.height=se.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},fe.prototype._fillCells=function(se,me,re,ne){this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight)},fe.prototype._fillBottomLineAtCells=function(se,me,re){re===void 0&&(re=1),this._ctx.fillRect(se*this._scaledCellWidth,(me+1)*this._scaledCellHeight-window.devicePixelRatio-1,re*this._scaledCellWidth,window.devicePixelRatio)},fe.prototype._fillLeftLineAtCell=function(se,me,re){this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,window.devicePixelRatio*re,this._scaledCellHeight)},fe.prototype._strokeRectAtCell=function(se,me,re,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(se*this._scaledCellWidth+window.devicePixelRatio/2,me*this._scaledCellHeight+window.devicePixelRatio/2,re*this._scaledCellWidth-window.devicePixelRatio,ne*this._scaledCellHeight-window.devicePixelRatio)},fe.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},fe.prototype._clearCells=function(se,me,re,ne){this._alpha?this._ctx.clearRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight))},fe.prototype._fillCharTrueColor=function(se,me,re){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(re),this._ctx.fillText(se.getChars(),me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},fe.prototype._drawChars=function(se,me,re){var ne,a,y=this._getContrastColor(se);y||se.isFgRGB()||se.isBgRGB()?this._drawUncachedChars(se,me,re,y):(se.isInverse()?(ne=se.isBgDefault()?be.INVERTED_DEFAULT_COLOR:se.getBgColor(),a=se.isFgDefault()?be.INVERTED_DEFAULT_COLOR:se.getFgColor()):(a=se.isBgDefault()?ue.DEFAULT_COLOR:se.getBgColor(),ne=se.isFgDefault()?ue.DEFAULT_COLOR:se.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=se.getChars()||ue.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=se.getCode()||ue.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!se.isBold(),this._currentGlyphIdentifier.dim=!!se.isDim(),this._currentGlyphIdentifier.italic=!!se.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(se,me,re))},fe.prototype._drawUncachedChars=function(se,me,re,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!se.isBold(),!!se.isItalic()),this._ctx.textBaseline="middle",se.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(se.isBgDefault())this._ctx.fillStyle=ae.color.opaque(this._colors.background).css;else if(se.isBgRGB())this._ctx.fillStyle="rgb("+de.AttributeData.toColorRGB(se.getBgColor()).join(",")+")";else{var a=se.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(se.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(se.isFgRGB())this._ctx.fillStyle="rgb("+de.AttributeData.toColorRGB(se.getFgColor()).join(",")+")";else{var y=se.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(re),se.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(se.getChars(),me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},fe.prototype._clipRow=function(se){this._ctx.beginPath(),this._ctx.rect(0,se*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},fe.prototype._getFont=function(se,me){return(me?"italic":"")+" "+(se?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},fe.prototype._getContrastColor=function(se){if(this._optionsService.options.minimumContrastRatio!==1){var me=this._colors.contrastCache.getColor(se.bg,se.fg);if(me!==void 0)return me||void 0;var re=se.getFgColor(),ne=se.getFgColorMode(),a=se.getBgColor(),y=se.getBgColorMode(),E=!!se.isInverse(),b=!!se.isInverse();if(E){var x=re;re=a,a=x;var z=ne;ne=y,y=z}var oe=this._resolveBackgroundRgba(y,a,E),ie=this._resolveForegroundRgba(ne,re,E,b),ce=ae.rgba.ensureContrastRatio(oe,ie,this._optionsService.options.minimumContrastRatio);if(ce){var ye={css:ae.channels.toCss(ce>>24&255,ce>>16&255,ce>>8&255),rgba:ce};return this._colors.contrastCache.setColor(se.bg,se.fg,ye),ye}this._colors.contrastCache.setColor(se.bg,se.fg,null)}},fe.prototype._resolveBackgroundRgba=function(se,me,re){switch(se){case 16777216:case 33554432:return this._colors.ansi[me].rgba;case 50331648:return me<<8;case 0:default:return re?this._colors.foreground.rgba:this._colors.background.rgba}},fe.prototype._resolveForegroundRgba=function(se,me,re,ne){switch(se){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&me<8&&(me+=8),this._colors.ansi[me].rgba;case 50331648:return me<<8;case 0:default:return re?this._colors.background.rgba:this._colors.foreground.rgba}},fe}();ee.BaseRenderLayer=le},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createDecorator=ee.getServiceDependencies=ee.serviceRegistry=void 0;function ue(be,ve,de){ve.di$target===ve?ve.di$dependencies.push({id:be,index:de}):(ve.di$dependencies=[{id:be,index:de}],ve.di$target=ve)}ee.serviceRegistry=new Map,ee.getServiceDependencies=function(be){return be.di$dependencies||[]},ee.createDecorator=function(be){if(ee.serviceRegistry.has(be))return ee.serviceRegistry.get(be);var ve=function(de,pe,ae){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ue(ve,de,ae)};return ve.toString=function(){return be},ee.serviceRegistry.set(be,ve),ve}},function(Ge,ee,te){"use strict";function ue(be,ve,de,pe){if(de===void 0&&(de=0),pe===void 0&&(pe=be.length),de>=be.length)return be;de=(be.length+de)%be.length,pe=pe>=be.length?be.length:(be.length+pe)%be.length;for(var ae=de;ae<pe;++ae)be[ae]=ve;return be}Object.defineProperty(ee,"__esModule",{value:!0}),ee.concat=ee.fillFallback=ee.fill=void 0,ee.fill=function(be,ve,de,pe){return be.fill?be.fill(ve,de,pe):ue(be,ve,de,pe)},ee.fillFallback=ue,ee.concat=function(be,ve){var de=new be.constructor(be.length+ve.length);return de.set(be),de.set(ve,be.length),de}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferLine=ee.DEFAULT_ATTR_DATA=void 0;var ue=te(8),be=te(3),ve=te(4),de=te(6);ee.DEFAULT_ATTR_DATA=Object.freeze(new de.AttributeData);var pe=function(){function ae(he,le,fe){fe===void 0&&(fe=!1),this.isWrapped=fe,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*he);for(var se=le||ve.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),me=0;me<he;++me)this.setCell(me,se);this.length=he}return ae.prototype.get=function(he){var le=this._data[3*he+0],fe=2097151&le;return[this._data[3*he+1],2097152&le?this._combined[he]:fe?ue.stringFromCodePoint(fe):"",le>>22,2097152&le?this._combined[he].charCodeAt(this._combined[he].length-1):fe]},ae.prototype.set=function(he,le){this._data[3*he+1]=le[be.CHAR_DATA_ATTR_INDEX],le[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[he]=le[1],this._data[3*he+0]=2097152|he|le[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*he+0]=le[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|le[be.CHAR_DATA_WIDTH_INDEX]<<22},ae.prototype.getWidth=function(he){return this._data[3*he+0]>>22},ae.prototype.hasWidth=function(he){return 12582912&this._data[3*he+0]},ae.prototype.getFg=function(he){return this._data[3*he+1]},ae.prototype.getBg=function(he){return this._data[3*he+2]},ae.prototype.hasContent=function(he){return 4194303&this._data[3*he+0]},ae.prototype.getCodePoint=function(he){var le=this._data[3*he+0];return 2097152&le?this._combined[he].charCodeAt(this._combined[he].length-1):2097151&le},ae.prototype.isCombined=function(he){return 2097152&this._data[3*he+0]},ae.prototype.getString=function(he){var le=this._data[3*he+0];return 2097152&le?this._combined[he]:2097151&le?ue.stringFromCodePoint(2097151&le):""},ae.prototype.loadCell=function(he,le){var fe=3*he;return le.content=this._data[fe+0],le.fg=this._data[fe+1],le.bg=this._data[fe+2],2097152&le.content&&(le.combinedData=this._combined[he]),268435456&le.bg&&(le.extended=this._extendedAttrs[he]),le},ae.prototype.setCell=function(he,le){2097152&le.content&&(this._combined[he]=le.combinedData),268435456&le.bg&&(this._extendedAttrs[he]=le.extended),this._data[3*he+0]=le.content,this._data[3*he+1]=le.fg,this._data[3*he+2]=le.bg},ae.prototype.setCellFromCodePoint=function(he,le,fe,se,me,re){268435456&me&&(this._extendedAttrs[he]=re),this._data[3*he+0]=le|fe<<22,this._data[3*he+1]=se,this._data[3*he+2]=me},ae.prototype.addCodepointToCell=function(he,le){var fe=this._data[3*he+0];2097152&fe?this._combined[he]+=ue.stringFromCodePoint(le):(2097151&fe?(this._combined[he]=ue.stringFromCodePoint(2097151&fe)+ue.stringFromCodePoint(le),fe&=-2097152,fe|=2097152):fe=le|1<<22,this._data[3*he+0]=fe)},ae.prototype.insertCells=function(he,le,fe,se){if((he%=this.length)&&this.getWidth(he-1)===2&&this.setCellFromCodePoint(he-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new de.ExtendedAttrs),le<this.length-he){for(var me=new ve.CellData,re=this.length-he-le-1;re>=0;--re)this.setCell(he+le+re,this.loadCell(he+re,me));for(re=0;re<le;++re)this.setCell(he+re,fe)}else for(re=he;re<this.length;++re)this.setCell(re,fe);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new de.ExtendedAttrs)},ae.prototype.deleteCells=function(he,le,fe,se){if(he%=this.length,le<this.length-he){for(var me=new ve.CellData,re=0;re<this.length-he-le;++re)this.setCell(he+re,this.loadCell(he+le+re,me));for(re=this.length-le;re<this.length;++re)this.setCell(re,fe)}else for(re=he;re<this.length;++re)this.setCell(re,fe);he&&this.getWidth(he-1)===2&&this.setCellFromCodePoint(he-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new de.ExtendedAttrs),this.getWidth(he)!==0||this.hasContent(he)||this.setCellFromCodePoint(he,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new de.ExtendedAttrs)},ae.prototype.replaceCells=function(he,le,fe,se){for(he&&this.getWidth(he-1)===2&&this.setCellFromCodePoint(he-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new de.ExtendedAttrs),le<this.length&&this.getWidth(le-1)===2&&this.setCellFromCodePoint(le,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new de.ExtendedAttrs);he<le&&he<this.length;)this.setCell(he++,fe)},ae.prototype.resize=function(he,le){if(he!==this.length){if(he>this.length){var fe=new Uint32Array(3*he);this.length&&(3*he<this._data.length?fe.set(this._data.subarray(0,3*he)):fe.set(this._data)),this._data=fe;for(var se=this.length;se<he;++se)this.setCell(se,le)}else if(he){(fe=new Uint32Array(3*he)).set(this._data.subarray(0,3*he)),this._data=fe;var me=Object.keys(this._combined);for(se=0;se<me.length;se++){var re=parseInt(me[se],10);re>=he&&delete this._combined[re]}}else this._data=new Uint32Array(0),this._combined={};this.length=he}},ae.prototype.fill=function(he){this._combined={},this._extendedAttrs={};for(var le=0;le<this.length;++le)this.setCell(le,he)},ae.prototype.copyFrom=function(he){for(var le in this.length!==he.length?this._data=new Uint32Array(he._data):this._data.set(he._data),this.length=he.length,this._combined={},he._combined)this._combined[le]=he._combined[le];for(var le in this._extendedAttrs={},he._extendedAttrs)this._extendedAttrs[le]=he._extendedAttrs[le];this.isWrapped=he.isWrapped},ae.prototype.clone=function(){var he=new ae(0);for(var le in he._data=new Uint32Array(this._data),he.length=this.length,this._combined)he._combined[le]=this._combined[le];for(var le in this._extendedAttrs)he._extendedAttrs[le]=this._extendedAttrs[le];return he.isWrapped=this.isWrapped,he},ae.prototype.getTrimmedLength=function(){for(var he=this.length-1;he>=0;--he)if(4194303&this._data[3*he+0])return he+(this._data[3*he+0]>>22);return 0},ae.prototype.copyCellsFrom=function(he,le,fe,se,me){var re=he._data;if(me)for(var ne=se-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(fe+ne)+a]=re[3*(le+ne)+a];else for(ne=0;ne<se;ne++)for(a=0;a<3;a++)this._data[3*(fe+ne)+a]=re[3*(le+ne)+a];var y=Object.keys(he._combined);for(a=0;a<y.length;a++){var E=parseInt(y[a],10);E>=le&&(this._combined[E-le+fe]=he._combined[E])}},ae.prototype.translateToString=function(he,le,fe){he===void 0&&(he=!1),le===void 0&&(le=0),fe===void 0&&(fe=this.length),he&&(fe=Math.min(fe,this.getTrimmedLength()));for(var se="";le<fe;){var me=this._data[3*le+0],re=2097151&me;se+=2097152&me?this._combined[le]:re?ue.stringFromCodePoint(re):be.WHITESPACE_CELL_CHAR,le+=me>>22||1}return se},ae}();ee.BufferLine=pe},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeElementFromParent=void 0,ee.removeElementFromParent=function(){for(var ue,be=[],ve=0;ve<arguments.length;ve++)be[ve]=arguments[ve];for(var de=0,pe=be;de<pe.length;de++){var ae=pe[de];(ue=ae==null?void 0:ae.parentElement)===null||ue===void 0||ue.removeChild(ae)}}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.tooMuchOutput=ee.promptLabel=void 0,ee.promptLabel="Terminal input",ee.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(ie,ce){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,_e){ye.__proto__=_e}||function(ye,_e){for(var xe in _e)_e.hasOwnProperty(xe)&&(ye[xe]=_e[xe])})(ie,ce)},function(ie,ce){function ye(){this.constructor=ie}ue(ie,ce),ie.prototype=ce===null?Object.create(ce):(ye.prototype=ce.prototype,new ye)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.InputHandler=ee.WindowsOptionsReportType=void 0;var ve,de=te(12),pe=te(20),ae=te(39),he=te(2),le=te(15),fe=te(8),se=te(16),me=te(0),re=te(3),ne=te(4),a=te(6),y=te(22),E=te(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(ie,ce){if(ie>24)return ce.setWinLines||!1;switch(ie){case 1:return!!ce.restoreWin;case 2:return!!ce.minimizeWin;case 3:return!!ce.setWinPosition;case 4:return!!ce.setWinSizePixels;case 5:return!!ce.raiseWin;case 6:return!!ce.lowerWin;case 7:return!!ce.refreshWin;case 8:return!!ce.setWinSizeChars;case 9:return!!ce.maximizeWin;case 10:return!!ce.fullscreenWin;case 11:return!!ce.getWinState;case 13:return!!ce.getWinPosition;case 14:return!!ce.getWinSizePixels;case 15:return!!ce.getScreenSizePixels;case 16:return!!ce.getCellSizePixels;case 18:return!!ce.getWinSizeChars;case 19:return!!ce.getScreenSizeChars;case 20:return!!ce.getIconTitle;case 21:return!!ce.getWinTitle;case 22:return!!ce.pushTitle;case 23:return!!ce.popTitle;case 24:return!!ce.setWinLines}return!1}(function(ie){ie[ie.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ie[ie.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(ve=ee.WindowsOptionsReportType||(ee.WindowsOptionsReportType={}));var z=function(){function ie(ce,ye,_e,xe){this._bufferService=ce,this._coreService=ye,this._logService=_e,this._optionsService=xe,this._data=new Uint32Array(0)}return ie.prototype.hook=function(ce){this._data=new Uint32Array(0)},ie.prototype.put=function(ce,ye,_e){this._data=le.concat(this._data,ce.subarray(ye,_e))},ie.prototype.unhook=function(ce){if(ce){var ye=fe.utf32ToString(this._data);switch(this._data=new Uint32Array(0),ye){case'"q':return this._coreService.triggerDataEvent(de.C0.ESC+'P1$r0"q'+de.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(de.C0.ESC+'P1$r61;1"p'+de.C0.ESC+"\\");case"r":var _e=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(de.C0.ESC+"P1$r"+_e+de.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(de.C0.ESC+"P1$r0m"+de.C0.ESC+"\\");case" q":var xe={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return xe-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(de.C0.ESC+"P1$r"+xe+" q"+de.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",ye),this._coreService.triggerDataEvent(de.C0.ESC+"P0$r"+de.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},ie}(),oe=function(ie){function ce(ye,_e,xe,Ce,Te,Me,pt,Ve,gt){gt===void 0&&(gt=new ae.EscapeSequenceParser);var Ae=ie.call(this)||this;Ae._bufferService=ye,Ae._charsetService=_e,Ae._coreService=xe,Ae._dirtyRowService=Ce,Ae._logService=Te,Ae._optionsService=Me,Ae._coreMouseService=pt,Ae._unicodeService=Ve,Ae._parser=gt,Ae._parseBuffer=new Uint32Array(4096),Ae._stringDecoder=new fe.StringToUtf32,Ae._utf8Decoder=new fe.Utf8ToUtf32,Ae._workCell=new ne.CellData,Ae._windowTitle="",Ae._iconName="",Ae._windowTitleStack=[],Ae._iconNameStack=[],Ae._curAttrData=se.DEFAULT_ATTR_DATA.clone(),Ae._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone(),Ae._onRequestBell=new me.EventEmitter,Ae._onRequestRefreshRows=new me.EventEmitter,Ae._onRequestReset=new me.EventEmitter,Ae._onRequestScroll=new me.EventEmitter,Ae._onRequestSyncScrollBar=new me.EventEmitter,Ae._onRequestWindowsOptionsReport=new me.EventEmitter,Ae._onA11yChar=new me.EventEmitter,Ae._onA11yTab=new me.EventEmitter,Ae._onCursorMove=new me.EventEmitter,Ae._onLineFeed=new me.EventEmitter,Ae._onScroll=new me.EventEmitter,Ae._onTitleChange=new me.EventEmitter,Ae.register(Ae._parser),Ae._parser.setCsiHandlerFallback(function(Ze,bt){Ae._logService.debug("Unknown CSI code: ",{identifier:Ae._parser.identToString(Ze),params:bt.toArray()})}),Ae._parser.setEscHandlerFallback(function(Ze){Ae._logService.debug("Unknown ESC code: ",{identifier:Ae._parser.identToString(Ze)})}),Ae._parser.setExecuteHandlerFallback(function(Ze){Ae._logService.debug("Unknown EXECUTE code: ",{code:Ze})}),Ae._parser.setOscHandlerFallback(function(Ze,bt,wt){Ae._logService.debug("Unknown OSC code: ",{identifier:Ze,action:bt,data:wt})}),Ae._parser.setDcsHandlerFallback(function(Ze,bt,wt){bt==="HOOK"&&(wt=wt.toArray()),Ae._logService.debug("Unknown DCS code: ",{identifier:Ae._parser.identToString(Ze),action:bt,payload:wt})}),Ae._parser.setPrintHandler(function(Ze,bt,wt){return Ae.print(Ze,bt,wt)}),Ae._parser.setCsiHandler({final:"@"},function(Ze){return Ae.insertChars(Ze)}),Ae._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ze){return Ae.scrollLeft(Ze)}),Ae._parser.setCsiHandler({final:"A"},function(Ze){return Ae.cursorUp(Ze)}),Ae._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ze){return Ae.scrollRight(Ze)}),Ae._parser.setCsiHandler({final:"B"},function(Ze){return Ae.cursorDown(Ze)}),Ae._parser.setCsiHandler({final:"C"},function(Ze){return Ae.cursorForward(Ze)}),Ae._parser.setCsiHandler({final:"D"},function(Ze){return Ae.cursorBackward(Ze)}),Ae._parser.setCsiHandler({final:"E"},function(Ze){return Ae.cursorNextLine(Ze)}),Ae._parser.setCsiHandler({final:"F"},function(Ze){return Ae.cursorPrecedingLine(Ze)}),Ae._parser.setCsiHandler({final:"G"},function(Ze){return Ae.cursorCharAbsolute(Ze)}),Ae._parser.setCsiHandler({final:"H"},function(Ze){return Ae.cursorPosition(Ze)}),Ae._parser.setCsiHandler({final:"I"},function(Ze){return Ae.cursorForwardTab(Ze)}),Ae._parser.setCsiHandler({final:"J"},function(Ze){return Ae.eraseInDisplay(Ze)}),Ae._parser.setCsiHandler({prefix:"?",final:"J"},function(Ze){return Ae.eraseInDisplay(Ze)}),Ae._parser.setCsiHandler({final:"K"},function(Ze){return Ae.eraseInLine(Ze)}),Ae._parser.setCsiHandler({prefix:"?",final:"K"},function(Ze){return Ae.eraseInLine(Ze)}),Ae._parser.setCsiHandler({final:"L"},function(Ze){return Ae.insertLines(Ze)}),Ae._parser.setCsiHandler({final:"M"},function(Ze){return Ae.deleteLines(Ze)}),Ae._parser.setCsiHandler({final:"P"},function(Ze){return Ae.deleteChars(Ze)}),Ae._parser.setCsiHandler({final:"S"},function(Ze){return Ae.scrollUp(Ze)}),Ae._parser.setCsiHandler({final:"T"},function(Ze){return Ae.scrollDown(Ze)}),Ae._parser.setCsiHandler({final:"X"},function(Ze){return Ae.eraseChars(Ze)}),Ae._parser.setCsiHandler({final:"Z"},function(Ze){return Ae.cursorBackwardTab(Ze)}),Ae._parser.setCsiHandler({final:"`"},function(Ze){return Ae.charPosAbsolute(Ze)}),Ae._parser.setCsiHandler({final:"a"},function(Ze){return Ae.hPositionRelative(Ze)}),Ae._parser.setCsiHandler({final:"b"},function(Ze){return Ae.repeatPrecedingCharacter(Ze)}),Ae._parser.setCsiHandler({final:"c"},function(Ze){return Ae.sendDeviceAttributesPrimary(Ze)}),Ae._parser.setCsiHandler({prefix:">",final:"c"},function(Ze){return Ae.sendDeviceAttributesSecondary(Ze)}),Ae._parser.setCsiHandler({final:"d"},function(Ze){return Ae.linePosAbsolute(Ze)}),Ae._parser.setCsiHandler({final:"e"},function(Ze){return Ae.vPositionRelative(Ze)}),Ae._parser.setCsiHandler({final:"f"},function(Ze){return Ae.hVPosition(Ze)}),Ae._parser.setCsiHandler({final:"g"},function(Ze){return Ae.tabClear(Ze)}),Ae._parser.setCsiHandler({final:"h"},function(Ze){return Ae.setMode(Ze)}),Ae._parser.setCsiHandler({prefix:"?",final:"h"},function(Ze){return Ae.setModePrivate(Ze)}),Ae._parser.setCsiHandler({final:"l"},function(Ze){return Ae.resetMode(Ze)}),Ae._parser.setCsiHandler({prefix:"?",final:"l"},function(Ze){return Ae.resetModePrivate(Ze)}),Ae._parser.setCsiHandler({final:"m"},function(Ze){return Ae.charAttributes(Ze)}),Ae._parser.setCsiHandler({final:"n"},function(Ze){return Ae.deviceStatus(Ze)}),Ae._parser.setCsiHandler({prefix:"?",final:"n"},function(Ze){return Ae.deviceStatusPrivate(Ze)}),Ae._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ze){return Ae.softReset(Ze)}),Ae._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ze){return Ae.setCursorStyle(Ze)}),Ae._parser.setCsiHandler({final:"r"},function(Ze){return Ae.setScrollRegion(Ze)}),Ae._parser.setCsiHandler({final:"s"},function(Ze){return Ae.saveCursor(Ze)}),Ae._parser.setCsiHandler({final:"t"},function(Ze){return Ae.windowOptions(Ze)}),Ae._parser.setCsiHandler({final:"u"},function(Ze){return Ae.restoreCursor(Ze)}),Ae._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ze){return Ae.insertColumns(Ze)}),Ae._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ze){return Ae.deleteColumns(Ze)}),Ae._parser.setExecuteHandler(de.C0.BEL,function(){return Ae.bell()}),Ae._parser.setExecuteHandler(de.C0.LF,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(de.C0.VT,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(de.C0.FF,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(de.C0.CR,function(){return Ae.carriageReturn()}),Ae._parser.setExecuteHandler(de.C0.BS,function(){return Ae.backspace()}),Ae._parser.setExecuteHandler(de.C0.HT,function(){return Ae.tab()}),Ae._parser.setExecuteHandler(de.C0.SO,function(){return Ae.shiftOut()}),Ae._parser.setExecuteHandler(de.C0.SI,function(){return Ae.shiftIn()}),Ae._parser.setExecuteHandler(de.C1.IND,function(){return Ae.index()}),Ae._parser.setExecuteHandler(de.C1.NEL,function(){return Ae.nextLine()}),Ae._parser.setExecuteHandler(de.C1.HTS,function(){return Ae.tabSet()}),Ae._parser.setOscHandler(0,new y.OscHandler(function(Ze){Ae.setTitle(Ze),Ae.setIconName(Ze)})),Ae._parser.setOscHandler(1,new y.OscHandler(function(Ze){return Ae.setIconName(Ze)})),Ae._parser.setOscHandler(2,new y.OscHandler(function(Ze){return Ae.setTitle(Ze)})),Ae._parser.setEscHandler({final:"7"},function(){return Ae.saveCursor()}),Ae._parser.setEscHandler({final:"8"},function(){return Ae.restoreCursor()}),Ae._parser.setEscHandler({final:"D"},function(){return Ae.index()}),Ae._parser.setEscHandler({final:"E"},function(){return Ae.nextLine()}),Ae._parser.setEscHandler({final:"H"},function(){return Ae.tabSet()}),Ae._parser.setEscHandler({final:"M"},function(){return Ae.reverseIndex()}),Ae._parser.setEscHandler({final:"="},function(){return Ae.keypadApplicationMode()}),Ae._parser.setEscHandler({final:">"},function(){return Ae.keypadNumericMode()}),Ae._parser.setEscHandler({final:"c"},function(){return Ae.fullReset()}),Ae._parser.setEscHandler({final:"n"},function(){return Ae.setgLevel(2)}),Ae._parser.setEscHandler({final:"o"},function(){return Ae.setgLevel(3)}),Ae._parser.setEscHandler({final:"|"},function(){return Ae.setgLevel(3)}),Ae._parser.setEscHandler({final:"}"},function(){return Ae.setgLevel(2)}),Ae._parser.setEscHandler({final:"~"},function(){return Ae.setgLevel(1)}),Ae._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Ae.selectDefaultCharset()}),Ae._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Ae.selectDefaultCharset()});var De=function(Ze){Ie._parser.setEscHandler({intermediates:"(",final:Ze},function(){return Ae.selectCharset("("+Ze)}),Ie._parser.setEscHandler({intermediates:")",final:Ze},function(){return Ae.selectCharset(")"+Ze)}),Ie._parser.setEscHandler({intermediates:"*",final:Ze},function(){return Ae.selectCharset("*"+Ze)}),Ie._parser.setEscHandler({intermediates:"+",final:Ze},function(){return Ae.selectCharset("+"+Ze)}),Ie._parser.setEscHandler({intermediates:"-",final:Ze},function(){return Ae.selectCharset("-"+Ze)}),Ie._parser.setEscHandler({intermediates:".",final:Ze},function(){return Ae.selectCharset("."+Ze)}),Ie._parser.setEscHandler({intermediates:"/",final:Ze},function(){return Ae.selectCharset("/"+Ze)})},Ie=this;for(var tt in pe.CHARSETS)De(tt);return Ae._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ae.screenAlignmentPattern()}),Ae._parser.setErrorHandler(function(Ze){return Ae._logService.error("Parsing error: ",Ze),Ze}),Ae._parser.setDcsHandler({intermediates:"$",final:"q"},new z(Ae._bufferService,Ae._coreService,Ae._logService,Ae._optionsService)),Ae}return be(ce,ie),Object.defineProperty(ce.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){ie.prototype.dispose.call(this)},ce.prototype.parse=function(ye){var _e=this._bufferService.buffer,xe=_e.x,Ce=_e.y;if(this._logService.debug("parsing data",ye),this._parseBuffer.length<ye.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(ye.length,131072))),this._dirtyRowService.clearRange(),ye.length>131072)for(var Te=0;Te<ye.length;Te+=131072){var Me=Te+131072<ye.length?Te+131072:ye.length,pt=typeof ye=="string"?this._stringDecoder.decode(ye.substring(Te,Me),this._parseBuffer):this._utf8Decoder.decode(ye.subarray(Te,Me),this._parseBuffer);this._parser.parse(this._parseBuffer,pt)}else pt=typeof ye=="string"?this._stringDecoder.decode(ye,this._parseBuffer):this._utf8Decoder.decode(ye,this._parseBuffer),this._parser.parse(this._parseBuffer,pt);(_e=this._bufferService.buffer).x===xe&&_e.y===Ce||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ce.prototype.print=function(ye,_e,xe){var Ce,Te,Me=this._bufferService.buffer,pt=this._charsetService.charset,Ve=this._optionsService.options.screenReaderMode,gt=this._bufferService.cols,Ae=this._coreService.decPrivateModes.wraparound,De=this._coreService.modes.insertMode,Ie=this._curAttrData,tt=Me.lines.get(Me.ybase+Me.y);this._dirtyRowService.markDirty(Me.y),Me.x&&xe-_e>0&&tt.getWidth(Me.x-1)===2&&tt.setCellFromCodePoint(Me.x-1,0,1,Ie.fg,Ie.bg,Ie.extended);for(var Ze=_e;Ze<xe;++Ze){if(Ce=ye[Ze],Te=this._unicodeService.wcwidth(Ce),Ce<127&&pt){var bt=pt[String.fromCharCode(Ce)];bt&&(Ce=bt.charCodeAt(0))}if(Ve&&this._onA11yChar.fire(fe.stringFromCodePoint(Ce)),Te||!Me.x){if(Me.x+Te-1>=gt){if(Ae){for(;Me.x<gt;)tt.setCellFromCodePoint(Me.x++,0,1,Ie.fg,Ie.bg,Ie.extended);Me.x=0,Me.y++,Me.y===Me.scrollBottom+1?(Me.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Me.y>=this._bufferService.rows&&(Me.y=this._bufferService.rows-1),Me.lines.get(Me.ybase+Me.y).isWrapped=!0),tt=Me.lines.get(Me.ybase+Me.y)}else if(Me.x=gt-1,Te===2)continue}if(De&&(tt.insertCells(Me.x,Te,Me.getNullCell(Ie),Ie),tt.getWidth(gt-1)===2&&tt.setCellFromCodePoint(gt-1,re.NULL_CELL_CODE,re.NULL_CELL_WIDTH,Ie.fg,Ie.bg,Ie.extended)),tt.setCellFromCodePoint(Me.x++,Ce,Te,Ie.fg,Ie.bg,Ie.extended),Te>0)for(;--Te;)tt.setCellFromCodePoint(Me.x++,0,0,Ie.fg,Ie.bg,Ie.extended)}else tt.getWidth(Me.x-1)?tt.addCodepointToCell(Me.x-1,Ce):tt.addCodepointToCell(Me.x-2,Ce)}xe-_e>0&&(tt.loadCell(Me.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Me.x<gt&&xe-_e>0&&tt.getWidth(Me.x)===0&&!tt.hasContent(Me.x)&&tt.setCellFromCodePoint(Me.x,0,1,Ie.fg,Ie.bg,Ie.extended),this._dirtyRowService.markDirty(Me.y)},ce.prototype.addCsiHandler=function(ye,_e){var xe=this;return ye.final!=="t"||ye.prefix||ye.intermediates?this._parser.addCsiHandler(ye,_e):this._parser.addCsiHandler(ye,function(Ce){return!x(Ce.params[0],xe._optionsService.options.windowOptions)||_e(Ce)})},ce.prototype.addDcsHandler=function(ye,_e){return this._parser.addDcsHandler(ye,new E.DcsHandler(_e))},ce.prototype.addEscHandler=function(ye,_e){return this._parser.addEscHandler(ye,_e)},ce.prototype.addOscHandler=function(ye,_e){return this._parser.addOscHandler(ye,new y.OscHandler(_e))},ce.prototype.bell=function(){this._onRequestBell.fire()},ce.prototype.lineFeed=function(){var ye=this._bufferService.buffer;this._dirtyRowService.markDirty(ye.y),this._optionsService.options.convertEol&&(ye.x=0),ye.y++,ye.y===ye.scrollBottom+1?(ye.y--,this._onRequestScroll.fire(this._eraseAttrData())):ye.y>=this._bufferService.rows&&(ye.y=this._bufferService.rows-1),ye.x>=this._bufferService.cols&&ye.x--,this._dirtyRowService.markDirty(ye.y),this._onLineFeed.fire()},ce.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ce.prototype.backspace=function(){var ye,_e=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(_e.x>0&&_e.x--);if(this._restrictCursor(this._bufferService.cols),_e.x>0)_e.x--;else if(_e.x===0&&_e.y>_e.scrollTop&&_e.y<=_e.scrollBottom&&(!((ye=_e.lines.get(_e.ybase+_e.y))===null||ye===void 0)&&ye.isWrapped)){_e.lines.get(_e.ybase+_e.y).isWrapped=!1,_e.y--,_e.x=this._bufferService.cols-1;var xe=_e.lines.get(_e.ybase+_e.y);xe.hasWidth(_e.x)&&!xe.hasContent(_e.x)&&_e.x--}this._restrictCursor()},ce.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var ye=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-ye)}},ce.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ce.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ce.prototype._restrictCursor=function(ye){ye===void 0&&(ye=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(ye,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype._setCursor=function(ye,_e){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=ye,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+_e):(this._bufferService.buffer.x=ye,this._bufferService.buffer.y=_e),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype._moveCursor=function(ye,_e){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+ye,this._bufferService.buffer.y+_e)},ce.prototype.cursorUp=function(ye){var _e=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;_e>=0?this._moveCursor(0,-Math.min(_e,ye.params[0]||1)):this._moveCursor(0,-(ye.params[0]||1))},ce.prototype.cursorDown=function(ye){var _e=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;_e>=0?this._moveCursor(0,Math.min(_e,ye.params[0]||1)):this._moveCursor(0,ye.params[0]||1)},ce.prototype.cursorForward=function(ye){this._moveCursor(ye.params[0]||1,0)},ce.prototype.cursorBackward=function(ye){this._moveCursor(-(ye.params[0]||1),0)},ce.prototype.cursorNextLine=function(ye){this.cursorDown(ye),this._bufferService.buffer.x=0},ce.prototype.cursorPrecedingLine=function(ye){this.cursorUp(ye),this._bufferService.buffer.x=0},ce.prototype.cursorCharAbsolute=function(ye){this._setCursor((ye.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.cursorPosition=function(ye){this._setCursor(ye.length>=2?(ye.params[1]||1)-1:0,(ye.params[0]||1)-1)},ce.prototype.charPosAbsolute=function(ye){this._setCursor((ye.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.hPositionRelative=function(ye){this._moveCursor(ye.params[0]||1,0)},ce.prototype.linePosAbsolute=function(ye){this._setCursor(this._bufferService.buffer.x,(ye.params[0]||1)-1)},ce.prototype.vPositionRelative=function(ye){this._moveCursor(0,ye.params[0]||1)},ce.prototype.hVPosition=function(ye){this.cursorPosition(ye)},ce.prototype.tabClear=function(ye){var _e=ye.params[0];_e===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:_e===3&&(this._bufferService.buffer.tabs={})},ce.prototype.cursorForwardTab=function(ye){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var _e=ye.params[0]||1;_e--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ce.prototype.cursorBackwardTab=function(ye){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var _e=ye.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.x=xe.prevStop()},ce.prototype._eraseInBufferLine=function(ye,_e,xe,Ce){Ce===void 0&&(Ce=!1);var Te=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ye);Te.replaceCells(_e,xe,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ce&&(Te.isWrapped=!1)},ce.prototype._resetBufferLine=function(ye){var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ye);_e.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),_e.isWrapped=!1},ce.prototype.eraseInDisplay=function(ye){var _e;switch(this._restrictCursor(),ye.params[0]){case 0:for(_e=this._bufferService.buffer.y,this._dirtyRowService.markDirty(_e),this._eraseInBufferLine(_e++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);_e<this._bufferService.rows;_e++)this._resetBufferLine(_e);this._dirtyRowService.markDirty(_e);break;case 1:for(_e=this._bufferService.buffer.y,this._dirtyRowService.markDirty(_e),this._eraseInBufferLine(_e,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(_e+1).isWrapped=!1);_e--;)this._resetBufferLine(_e);this._dirtyRowService.markDirty(0);break;case 2:for(_e=this._bufferService.rows,this._dirtyRowService.markDirty(_e-1);_e--;)this._resetBufferLine(_e);this._dirtyRowService.markDirty(0);break;case 3:var xe=this._bufferService.buffer.lines.length-this._bufferService.rows;xe>0&&(this._bufferService.buffer.lines.trimStart(xe),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-xe,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-xe,0),this._onScroll.fire(0))}},ce.prototype.eraseInLine=function(ye){switch(this._restrictCursor(),ye.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype.insertLines=function(ye){this._restrictCursor();var _e=ye.params[0]||1,xe=this._bufferService.buffer;if(!(xe.y>xe.scrollBottom||xe.y<xe.scrollTop)){for(var Ce=xe.ybase+xe.y,Te=this._bufferService.rows-1-xe.scrollBottom,Me=this._bufferService.rows-1+xe.ybase-Te+1;_e--;)xe.lines.splice(Me-1,1),xe.lines.splice(Ce,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.y,xe.scrollBottom),xe.x=0}},ce.prototype.deleteLines=function(ye){this._restrictCursor();var _e=ye.params[0]||1,xe=this._bufferService.buffer;if(!(xe.y>xe.scrollBottom||xe.y<xe.scrollTop)){var Ce,Te=xe.ybase+xe.y;for(Ce=this._bufferService.rows-1-xe.scrollBottom,Ce=this._bufferService.rows-1+xe.ybase-Ce;_e--;)xe.lines.splice(Te,1),xe.lines.splice(Ce,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.y,xe.scrollBottom),xe.x=0}},ce.prototype.insertChars=function(ye){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.insertCells(this._bufferService.buffer.x,ye.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.deleteChars=function(ye){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.deleteCells(this._bufferService.buffer.x,ye.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.scrollUp=function(ye){for(var _e=ye.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.lines.splice(xe.ybase+xe.scrollTop,1),xe.lines.splice(xe.ybase+xe.scrollBottom,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.scrollTop,xe.scrollBottom)},ce.prototype.scrollDown=function(ye){for(var _e=ye.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.lines.splice(xe.ybase+xe.scrollBottom,1),xe.lines.splice(xe.ybase+xe.scrollTop,0,xe.getBlankLine(se.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(xe.scrollTop,xe.scrollBottom)},ce.prototype.scrollLeft=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Te=_e.lines.get(_e.ybase+Ce);Te.deleteCells(0,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Te.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.scrollRight=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Te=_e.lines.get(_e.ybase+Ce);Te.insertCells(0,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Te.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.insertColumns=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Te=this._bufferService.buffer.lines.get(_e.ybase+Ce);Te.insertCells(_e.x,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Te.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.deleteColumns=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Te=_e.lines.get(_e.ybase+Ce);Te.deleteCells(_e.x,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Te.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.eraseChars=function(ye){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(ye.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.repeatPrecedingCharacter=function(ye){if(this._parser.precedingCodepoint){for(var _e=ye.params[0]||1,xe=new Uint32Array(_e),Ce=0;Ce<_e;++Ce)xe[Ce]=this._parser.precedingCodepoint;this.print(xe,0,xe.length)}},ce.prototype.sendDeviceAttributesPrimary=function(ye){ye.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(de.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(de.C0.ESC+"[?6c"))},ce.prototype.sendDeviceAttributesSecondary=function(ye){ye.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(de.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(de.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ye.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(de.C0.ESC+"[>83;40003;0c"))},ce.prototype._is=function(ye){return(this._optionsService.options.termName+"").indexOf(ye)===0},ce.prototype.setMode=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){case 4:this._coreService.modes.insertMode=!0}},ce.prototype.setModePrivate=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,pe.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},ce.prototype.resetMode=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){case 4:this._coreService.modes.insertMode=!1}},ce.prototype.resetModePrivate=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),ye.params[_e]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},ce.prototype._updateAttrColor=function(ye,_e,xe,Ce,Te){return _e===2?(ye|=50331648,ye&=-16777216,ye|=a.AttributeData.fromColorRGB([xe,Ce,Te])):_e===5&&(ye&=-50331904,ye|=33554432|255&xe),ye},ce.prototype._extractColor=function(ye,_e,xe){var Ce=[0,0,-1,0,0,0],Te=0,Me=0;do{if(Ce[Me+Te]=ye.params[_e+Me],ye.hasSubParams(_e+Me)){var pt=ye.getSubParams(_e+Me),Ve=0;do Ce[1]===5&&(Te=1),Ce[Me+Ve+1+Te]=pt[Ve];while(++Ve<pt.length&&Ve+Me+1+Te<Ce.length);break}if(Ce[1]===5&&Me+Te>=2||Ce[1]===2&&Me+Te>=5)break;Ce[1]&&(Te=1)}while(++Me+_e<ye.length&&Me+Te<Ce.length);for(Ve=2;Ve<Ce.length;++Ve)Ce[Ve]===-1&&(Ce[Ve]=0);switch(Ce[0]){case 38:xe.fg=this._updateAttrColor(xe.fg,Ce[1],Ce[3],Ce[4],Ce[5]);break;case 48:xe.bg=this._updateAttrColor(xe.bg,Ce[1],Ce[3],Ce[4],Ce[5]);break;case 58:xe.extended=xe.extended.clone(),xe.extended.underlineColor=this._updateAttrColor(xe.extended.underlineColor,Ce[1],Ce[3],Ce[4],Ce[5])}return Me},ce.prototype._processUnderline=function(ye,_e){_e.extended=_e.extended.clone(),(!~ye||ye>5)&&(ye=1),_e.extended.underlineStyle=ye,_e.fg|=268435456,ye===0&&(_e.fg&=-268435457),_e.updateExtended()},ce.prototype.charAttributes=function(ye){if(ye.length===1&&ye.params[0]===0)return this._curAttrData.fg=se.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=se.DEFAULT_ATTR_DATA.bg);for(var _e,xe=ye.length,Ce=this._curAttrData,Te=0;Te<xe;Te++)(_e=ye.params[Te])>=30&&_e<=37?(Ce.fg&=-50331904,Ce.fg|=16777216|_e-30):_e>=40&&_e<=47?(Ce.bg&=-50331904,Ce.bg|=16777216|_e-40):_e>=90&&_e<=97?(Ce.fg&=-50331904,Ce.fg|=16777224|_e-90):_e>=100&&_e<=107?(Ce.bg&=-50331904,Ce.bg|=16777224|_e-100):_e===0?(Ce.fg=se.DEFAULT_ATTR_DATA.fg,Ce.bg=se.DEFAULT_ATTR_DATA.bg):_e===1?Ce.fg|=134217728:_e===3?Ce.bg|=67108864:_e===4?(Ce.fg|=268435456,this._processUnderline(ye.hasSubParams(Te)?ye.getSubParams(Te)[0]:1,Ce)):_e===5?Ce.fg|=536870912:_e===7?Ce.fg|=67108864:_e===8?Ce.fg|=1073741824:_e===2?Ce.bg|=134217728:_e===21?this._processUnderline(2,Ce):_e===22?(Ce.fg&=-134217729,Ce.bg&=-134217729):_e===23?Ce.bg&=-67108865:_e===24?Ce.fg&=-268435457:_e===25?Ce.fg&=-536870913:_e===27?Ce.fg&=-67108865:_e===28?Ce.fg&=-1073741825:_e===39?(Ce.fg&=-67108864,Ce.fg|=16777215&se.DEFAULT_ATTR_DATA.fg):_e===49?(Ce.bg&=-67108864,Ce.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):_e===38||_e===48||_e===58?Te+=this._extractColor(ye,Te,Ce):_e===59?(Ce.extended=Ce.extended.clone(),Ce.extended.underlineColor=-1,Ce.updateExtended()):_e===100?(Ce.fg&=-67108864,Ce.fg|=16777215&se.DEFAULT_ATTR_DATA.fg,Ce.bg&=-67108864,Ce.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",_e)},ce.prototype.deviceStatus=function(ye){switch(ye.params[0]){case 5:this._coreService.triggerDataEvent(de.C0.ESC+"[0n");break;case 6:var _e=this._bufferService.buffer.y+1,xe=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"["+_e+";"+xe+"R")}},ce.prototype.deviceStatusPrivate=function(ye){switch(ye.params[0]){case 6:var _e=this._bufferService.buffer.y+1,xe=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"[?"+_e+";"+xe+"R")}},ce.prototype.softReset=function(ye){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},ce.prototype.setCursorStyle=function(ye){var _e=ye.params[0]||1;switch(_e){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var xe=_e%2==1;this._optionsService.options.cursorBlink=xe},ce.prototype.setScrollRegion=function(ye){var _e,xe=ye.params[0]||1;(ye.length<2||(_e=ye.params[1])>this._bufferService.rows||_e===0)&&(_e=this._bufferService.rows),_e>xe&&(this._bufferService.buffer.scrollTop=xe-1,this._bufferService.buffer.scrollBottom=_e-1,this._setCursor(0,0))},ce.prototype.windowOptions=function(ye){if(x(ye.params[0],this._optionsService.options.windowOptions)){var _e=ye.length>1?ye.params[1]:0;switch(ye.params[0]){case 14:_e!==2&&this._onRequestWindowsOptionsReport.fire(ve.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(ve.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(de.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:_e!==0&&_e!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),_e!==0&&_e!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:_e!==0&&_e!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),_e!==0&&_e!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ce.prototype.saveCursor=function(ye){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},ce.prototype.restoreCursor=function(ye){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},ce.prototype.setTitle=function(ye){this._windowTitle=ye,this._onTitleChange.fire(ye)},ce.prototype.setIconName=function(ye){this._iconName=ye},ce.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ce.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ce.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ce.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET)},ce.prototype.selectCharset=function(ye){ye.length===2?ye[0]!=="/"&&this._charsetService.setgCharset(b[ye[0]],pe.CHARSETS[ye[1]]||pe.DEFAULT_CHARSET):this.selectDefaultCharset()},ce.prototype.index=function(){this._restrictCursor();var ye=this._bufferService.buffer;this._bufferService.buffer.y++,ye.y===ye.scrollBottom+1?(ye.y--,this._onRequestScroll.fire(this._eraseAttrData())):ye.y>=this._bufferService.rows&&(ye.y=this._bufferService.rows-1),this._restrictCursor()},ce.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ce.prototype.reverseIndex=function(){this._restrictCursor();var ye=this._bufferService.buffer;if(ye.y===ye.scrollTop){var _e=ye.scrollBottom-ye.scrollTop;ye.lines.shiftElements(ye.ybase+ye.y,_e,1),ye.lines.set(ye.ybase+ye.y,ye.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}else ye.y--,this._restrictCursor()},ce.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ce.prototype.reset=function(){this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone()},ce.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ce.prototype.setgLevel=function(ye){this._charsetService.setgLevel(ye)},ce.prototype.screenAlignmentPattern=function(){var ye=new ne.CellData;ye.content=1<<22|69,ye.fg=this._curAttrData.fg,ye.bg=this._curAttrData.bg;var _e=this._bufferService.buffer;this._setCursor(0,0);for(var xe=0;xe<this._bufferService.rows;++xe){var Ce=_e.ybase+_e.y+xe,Te=_e.lines.get(Ce);Te&&(Te.fill(ye),Te.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ce}(he.Disposable);ee.InputHandler=oe},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DEFAULT_CHARSET=ee.CHARSETS=void 0,ee.CHARSETS={},ee.DEFAULT_CHARSET=ee.CHARSETS.B,ee.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},ee.CHARSETS.A={"#":"\xA3"},ee.CHARSETS.B=void 0,ee.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},ee.CHARSETS.C=ee.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},ee.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},ee.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},ee.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},ee.CHARSETS.E=ee.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},ee.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},ee.CHARSETS.H=ee.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Params=void 0;var ue=function(){function be(ve,de){if(ve===void 0&&(ve=32),de===void 0&&(de=32),this.maxLength=ve,this.maxSubParamsLength=de,de>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(ve),this.length=0,this._subParams=new Int32Array(de),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(ve),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(ve){var de=new be;if(!ve.length)return de;for(var pe=ve[0]instanceof Array?1:0;pe<ve.length;++pe){var ae=ve[pe];if(ae instanceof Array)for(var he=0;he<ae.length;++he)de.addSubParam(ae[he]);else de.addParam(ae)}return de},be.prototype.clone=function(){var ve=new be(this.maxLength,this.maxSubParamsLength);return ve.params.set(this.params),ve.length=this.length,ve._subParams.set(this._subParams),ve._subParamsLength=this._subParamsLength,ve._subParamsIdx.set(this._subParamsIdx),ve._rejectDigits=this._rejectDigits,ve._rejectSubDigits=this._rejectSubDigits,ve._digitIsSub=this._digitIsSub,ve},be.prototype.toArray=function(){for(var ve=[],de=0;de<this.length;++de){ve.push(this.params[de]);var pe=this._subParamsIdx[de]>>8,ae=255&this._subParamsIdx[de];ae-pe>0&&ve.push(Array.prototype.slice.call(this._subParams,pe,ae))}return ve},be.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},be.prototype.addParam=function(ve){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(ve<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=ve>2147483647?2147483647:ve}},be.prototype.addSubParam=function(ve){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(ve<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=ve>2147483647?2147483647:ve,this._subParamsIdx[this.length-1]++}},be.prototype.hasSubParams=function(ve){return(255&this._subParamsIdx[ve])-(this._subParamsIdx[ve]>>8)>0},be.prototype.getSubParams=function(ve){var de=this._subParamsIdx[ve]>>8,pe=255&this._subParamsIdx[ve];return pe-de>0?this._subParams.subarray(de,pe):null},be.prototype.getSubParamsAll=function(){for(var ve={},de=0;de<this.length;++de){var pe=this._subParamsIdx[de]>>8,ae=255&this._subParamsIdx[de];ae-pe>0&&(ve[de]=this._subParams.slice(pe,ae))}return ve},be.prototype.addDigit=function(ve){var de;if(!(this._rejectDigits||!(de=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var pe=this._digitIsSub?this._subParams:this.params,ae=pe[de-1];pe[de-1]=~ae?Math.min(10*ae+ve,2147483647):ve}},be}();ee.Params=ue},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OscHandler=ee.OscParser=void 0;var ue=te(23),be=te(8),ve=function(){function pe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return pe.prototype.addHandler=function(ae,he){this._handlers[ae]===void 0&&(this._handlers[ae]=[]);var le=this._handlers[ae];return le.push(he),{dispose:function(){var fe=le.indexOf(he);fe!==-1&&le.splice(fe,1)}}},pe.prototype.setHandler=function(ae,he){this._handlers[ae]=[he]},pe.prototype.clearHandler=function(ae){this._handlers[ae]&&delete this._handlers[ae]},pe.prototype.setHandlerFallback=function(ae){this._handlerFb=ae},pe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},pe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},pe.prototype._start=function(){var ae=this._handlers[this._id];if(ae)for(var he=ae.length-1;he>=0;he--)ae[he].start();else this._handlerFb(this._id,"START")},pe.prototype._put=function(ae,he,le){var fe=this._handlers[this._id];if(fe)for(var se=fe.length-1;se>=0;se--)fe[se].put(ae,he,le);else this._handlerFb(this._id,"PUT",be.utf32ToString(ae,he,le))},pe.prototype._end=function(ae){var he=this._handlers[this._id];if(he){for(var le=he.length-1;le>=0&&he[le].end(ae)===!1;le--);for(le--;le>=0;le--)he[le].end(!1)}else this._handlerFb(this._id,"END",ae)},pe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},pe.prototype.put=function(ae,he,le){if(this._state!==3){if(this._state===1)for(;he<le;){var fe=ae[he++];if(fe===59){this._state=2,this._start();break}if(fe<48||57<fe)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+fe-48}this._state===2&&le-he>0&&this._put(ae,he,le)}},pe.prototype.end=function(ae){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ae)),this._id=-1,this._state=0)},pe}();ee.OscParser=ve;var de=function(){function pe(ae){this._handler=ae,this._data="",this._hitLimit=!1}return pe.prototype.start=function(){this._data="",this._hitLimit=!1},pe.prototype.put=function(ae,he,le){this._hitLimit||(this._data+=be.utf32ToString(ae,he,le),this._data.length>ue.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},pe.prototype.end=function(ae){var he;return this._hitLimit?he=!1:ae&&(he=this._handler(this._data)),this._data="",this._hitLimit=!1,he},pe}();ee.OscHandler=de},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.PAYLOAD_LIMIT=void 0,ee.PAYLOAD_LIMIT=1e7},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DcsHandler=ee.DcsParser=void 0;var ue=te(8),be=te(21),ve=te(23),de=[],pe=function(){function he(){this._handlers=Object.create(null),this._active=de,this._ident=0,this._handlerFb=function(){}}return he.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},he.prototype.addHandler=function(le,fe){this._handlers[le]===void 0&&(this._handlers[le]=[]);var se=this._handlers[le];return se.push(fe),{dispose:function(){var me=se.indexOf(fe);me!==-1&&se.splice(me,1)}}},he.prototype.setHandler=function(le,fe){this._handlers[le]=[fe]},he.prototype.clearHandler=function(le){this._handlers[le]&&delete this._handlers[le]},he.prototype.setHandlerFallback=function(le){this._handlerFb=le},he.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=de,this._ident=0},he.prototype.hook=function(le,fe){if(this.reset(),this._ident=le,this._active=this._handlers[le]||de,this._active.length)for(var se=this._active.length-1;se>=0;se--)this._active[se].hook(fe);else this._handlerFb(this._ident,"HOOK",fe)},he.prototype.put=function(le,fe,se){if(this._active.length)for(var me=this._active.length-1;me>=0;me--)this._active[me].put(le,fe,se);else this._handlerFb(this._ident,"PUT",ue.utf32ToString(le,fe,se))},he.prototype.unhook=function(le){if(this._active.length){for(var fe=this._active.length-1;fe>=0&&this._active[fe].unhook(le)===!1;fe--);for(fe--;fe>=0;fe--)this._active[fe].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",le);this._active=de,this._ident=0},he}();ee.DcsParser=pe;var ae=function(){function he(le){this._handler=le,this._data="",this._hitLimit=!1}return he.prototype.hook=function(le){this._params=le.clone(),this._data="",this._hitLimit=!1},he.prototype.put=function(le,fe,se){this._hitLimit||(this._data+=ue.utf32ToString(le,fe,se),this._data.length>ve.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},he.prototype.unhook=function(le){var fe;return this._hitLimit?fe=!1:le&&(fe=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,fe},he}();ee.DcsHandler=ae},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeTerminalFromCache=ee.acquireCharAtlas=void 0;var ue=te(26),be=te(43),ve=[];ee.acquireCharAtlas=function(de,pe,ae,he,le){for(var fe=ue.generateConfig(he,le,de,ae),se=0;se<ve.length;se++){var me=(re=ve[se]).ownedBy.indexOf(pe);if(me>=0){if(ue.configEquals(re.config,fe))return re.atlas;re.ownedBy.length===1?(re.atlas.dispose(),ve.splice(se,1)):re.ownedBy.splice(me,1);break}}for(se=0;se<ve.length;se++){var re=ve[se];if(ue.configEquals(re.config,fe))return re.ownedBy.push(pe),re.atlas}var ne={atlas:new be.DynamicCharAtlas(document,fe),config:fe,ownedBy:[pe]};return ve.push(ne),ne.atlas},ee.removeTerminalFromCache=function(de){for(var pe=0;pe<ve.length;pe++){var ae=ve[pe].ownedBy.indexOf(de);if(ae!==-1){ve[pe].ownedBy.length===1?(ve[pe].atlas.dispose(),ve.splice(pe,1)):ve[pe].ownedBy.splice(ae,1);break}}}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.is256Color=ee.configEquals=ee.generateConfig=void 0;var ue=te(3);ee.generateConfig=function(be,ve,de,pe){var ae={foreground:pe.foreground,background:pe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:pe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:ve,fontFamily:de.fontFamily,fontSize:de.fontSize,fontWeight:de.fontWeight,fontWeightBold:de.fontWeightBold,allowTransparency:de.allowTransparency,colors:ae}},ee.configEquals=function(be,ve){for(var de=0;de<be.colors.ansi.length;de++)if(be.colors.ansi[de].rgba!==ve.colors.ansi[de].rgba)return!1;return be.devicePixelRatio===ve.devicePixelRatio&&be.fontFamily===ve.fontFamily&&be.fontSize===ve.fontSize&&be.fontWeight===ve.fontWeight&&be.fontWeightBold===ve.fontWeightBold&&be.allowTransparency===ve.allowTransparency&&be.scaledCharWidth===ve.scaledCharWidth&&be.scaledCharHeight===ve.scaledCharHeight&&be.colors.foreground===ve.colors.foreground&&be.colors.background===ve.colors.background},ee.is256Color=function(be){return be<ue.DEFAULT_COLOR}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorManager=ee.DEFAULT_ANSI_COLORS=void 0;var ue=te(10),be=te(45),ve=ue.css.toColor("#ffffff"),de=ue.css.toColor("#000000"),pe=ue.css.toColor("#ffffff"),ae=ue.css.toColor("#000000"),he={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};ee.DEFAULT_ANSI_COLORS=function(){for(var fe=[ue.css.toColor("#2e3436"),ue.css.toColor("#cc0000"),ue.css.toColor("#4e9a06"),ue.css.toColor("#c4a000"),ue.css.toColor("#3465a4"),ue.css.toColor("#75507b"),ue.css.toColor("#06989a"),ue.css.toColor("#d3d7cf"),ue.css.toColor("#555753"),ue.css.toColor("#ef2929"),ue.css.toColor("#8ae234"),ue.css.toColor("#fce94f"),ue.css.toColor("#729fcf"),ue.css.toColor("#ad7fa8"),ue.css.toColor("#34e2e2"),ue.css.toColor("#eeeeec")],se=[0,95,135,175,215,255],me=0;me<216;me++){var re=se[me/36%6|0],ne=se[me/6%6|0],a=se[me%6];fe.push({css:ue.channels.toCss(re,ne,a),rgba:ue.channels.toRgba(re,ne,a)})}for(me=0;me<24;me++){var y=8+10*me;fe.push({css:ue.channels.toCss(y,y,y),rgba:ue.channels.toRgba(y,y,y)})}return fe}();var le=function(){function fe(se,me){this.allowTransparency=me;var re=se.createElement("canvas");re.width=1,re.height=1;var ne=re.getContext("2d");if(!ne)throw new Error("Could not get rendering context");this._ctx=ne,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new be.ColorContrastCache,this.colors={foreground:ve,background:de,cursor:pe,cursorAccent:ae,selectionTransparent:he,selectionOpaque:ue.color.blend(de,he),ansi:ee.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return fe.prototype.onOptionsChange=function(se){se==="minimumContrastRatio"&&this._contrastCache.clear()},fe.prototype.setTheme=function(se){se===void 0&&(se={}),this.colors.foreground=this._parseColor(se.foreground,ve),this.colors.background=this._parseColor(se.background,de),this.colors.cursor=this._parseColor(se.cursor,pe,!0),this.colors.cursorAccent=this._parseColor(se.cursorAccent,ae,!0),this.colors.selectionTransparent=this._parseColor(se.selection,he,!0),this.colors.selectionOpaque=ue.color.blend(this.colors.background,this.colors.selectionTransparent),ue.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=ue.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(se.black,ee.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(se.red,ee.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(se.green,ee.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(se.yellow,ee.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(se.blue,ee.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(se.magenta,ee.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(se.cyan,ee.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(se.white,ee.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(se.brightBlack,ee.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(se.brightRed,ee.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(se.brightGreen,ee.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(se.brightYellow,ee.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(se.brightBlue,ee.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(se.brightMagenta,ee.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(se.brightCyan,ee.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(se.brightWhite,ee.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},fe.prototype._parseColor=function(se,me,re){if(re===void 0&&(re=this.allowTransparency),se===void 0)return me;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=se,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+se+" is invalid using fallback "+me.css),me;this._ctx.fillRect(0,0,1,1);var ne=this._ctx.getImageData(0,0,1,1).data;if(ne[3]!==255){if(!re)return console.warn("Color: "+se+" is using transparency, but allowTransparency is false. Using fallback "+me.css+"."),me;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(oe){return Number(oe)}),y=a[0],E=a[1],b=a[2],x=a[3],z=Math.round(255*x);return{rgba:ue.channels.toRgba(y,E,b,z),css:se}}return{css:this._ctx.fillStyle,rgba:ue.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},fe}();ee.ColorManager=le},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.throwIfFalsy=void 0,ee.throwIfFalsy=function(ue){if(!ue)throw new Error("value must not be falsy");return ue}},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(le,fe){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,me){se.__proto__=me}||function(se,me){for(var re in me)me.hasOwnProperty(re)&&(se[re]=me[re])})(le,fe)},function(le,fe){function se(){this.constructor=le}ue(le,fe),le.prototype=fe===null?Object.create(fe):(se.prototype=fe.prototype,new se)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharacterJoinerRegistry=ee.JoinedCellData=void 0;var ve=te(6),de=te(3),pe=te(4),ae=function(le){function fe(se,me,re){var ne=le.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=se.fg,ne.bg=se.bg,ne.combinedData=me,ne._width=re,ne}return be(fe,le),fe.prototype.isCombined=function(){return 2097152},fe.prototype.getWidth=function(){return this._width},fe.prototype.getChars=function(){return this.combinedData},fe.prototype.getCode=function(){return 2097151},fe.prototype.setFromCharData=function(se){throw new Error("not implemented")},fe.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},fe}(ve.AttributeData);ee.JoinedCellData=ae;var he=function(){function le(fe){this._bufferService=fe,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new pe.CellData}return le.prototype.registerCharacterJoiner=function(fe){var se={id:this._nextCharacterJoinerId++,handler:fe};return this._characterJoiners.push(se),se.id},le.prototype.deregisterCharacterJoiner=function(fe){for(var se=0;se<this._characterJoiners.length;se++)if(this._characterJoiners[se].id===fe)return this._characterJoiners.splice(se,1),!0;return!1},le.prototype.getJoinedCharacters=function(fe){if(this._characterJoiners.length===0)return[];var se=this._bufferService.buffer.lines.get(fe);if(!se||se.length===0)return[];for(var me=[],re=se.translateToString(!0),ne=0,a=0,y=0,E=se.getFg(0),b=se.getBg(0),x=0;x<se.getTrimmedLength();x++)if(se.loadCell(x,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==E||this._workCell.bg!==b){if(x-ne>1)for(var z=this._getJoinedRanges(re,y,a,se,ne),oe=0;oe<z.length;oe++)me.push(z[oe]);ne=x,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||de.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(z=this._getJoinedRanges(re,y,a,se,ne),oe=0;oe<z.length;oe++)me.push(z[oe]);return me},le.prototype._getJoinedRanges=function(fe,se,me,re,ne){for(var a=fe.substring(se,me),y=this._characterJoiners[0].handler(a),E=1;E<this._characterJoiners.length;E++)for(var b=this._characterJoiners[E].handler(a),x=0;x<b.length;x++)le._mergeRanges(y,b[x]);return this._stringRangesToCellRanges(y,re,ne),y},le.prototype._stringRangesToCellRanges=function(fe,se,me){var re=0,ne=!1,a=0,y=fe[re];if(y){for(var E=me;E<this._bufferService.cols;E++){var b=se.getWidth(E),x=se.getString(E).length||de.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!ne&&y[0]<=a&&(y[0]=E,ne=!0),y[1]<=a){if(y[1]=E,!(y=fe[++re]))break;y[0]<=a?(y[0]=E,ne=!0):ne=!1}a+=x}}y&&(y[1]=this._bufferService.cols)}},le._mergeRanges=function(fe,se){for(var me=!1,re=0;re<fe.length;re++){var ne=fe[re];if(me){if(se[1]<=ne[0])return fe[re-1][1]=se[1],fe;if(se[1]<=ne[1])return fe[re-1][1]=Math.max(se[1],ne[1]),fe.splice(re,1),fe;fe.splice(re,1),re--}else{if(se[1]<=ne[0])return fe.splice(re,0,se),fe;if(se[1]<=ne[1])return ne[0]=Math.min(se[0],ne[0]),fe;se[0]<ne[1]&&(ne[0]=Math.min(se[0],ne[0]),me=!0)}}return me?fe[fe.length-1][1]=se[1]:fe.push(se),fe},le}();ee.CharacterJoinerRegistry=he},function(Ge,ee,te){"use strict";function ue(be,ve){var de=ve.getBoundingClientRect();return[be.clientX-de.left,be.clientY-de.top]}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getRawByteCoords=ee.getCoords=ee.getCoordsRelativeToElement=void 0,ee.getCoordsRelativeToElement=ue,ee.getCoords=function(be,ve,de,pe,ae,he,le,fe){if(ae){var se=ue(be,ve);if(se)return se[0]=Math.ceil((se[0]+(fe?he/2:0))/he),se[1]=Math.ceil(se[1]/le),se[0]=Math.min(Math.max(se[0],1),de+(fe?1:0)),se[1]=Math.min(Math.max(se[1],1),pe),se}},ee.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderDebouncer=void 0;var ue=function(){function be(ve){this._renderCallback=ve}return be.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},be.prototype.refresh=function(ve,de,pe){var ae=this;this._rowCount=pe,ve=ve!==void 0?ve:0,de=de!==void 0?de:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,ve):ve,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,de):de,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return ae._innerRefresh()}))},be.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var ve=Math.max(this._rowStart,0),de=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(ve,de)}},be}();ee.RenderDebouncer=ue},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(de,pe){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,he){ae.__proto__=he}||function(ae,he){for(var le in he)he.hasOwnProperty(le)&&(ae[le]=he[le])})(de,pe)},function(de,pe){function ae(){this.constructor=de}ue(de,pe),de.prototype=pe===null?Object.create(pe):(ae.prototype=pe.prototype,new ae)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.ScreenDprMonitor=void 0;var ve=function(de){function pe(){var ae=de!==null&&de.apply(this,arguments)||this;return ae._currentDevicePixelRatio=window.devicePixelRatio,ae}return be(pe,de),pe.prototype.setListener=function(ae){var he=this;this._listener&&this.clearListener(),this._listener=ae,this._outerListener=function(){he._listener&&(he._listener(window.devicePixelRatio,he._currentDevicePixelRatio),he._updateDpr())},this._updateDpr()},pe.prototype.dispose=function(){de.prototype.dispose.call(this),this.clearListener()},pe.prototype._updateDpr=function(){var ae;this._outerListener&&((ae=this._resolutionMediaMatchList)===null||ae===void 0||ae.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},pe.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},pe}(te(2).Disposable);ee.ScreenDprMonitor=ve},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.clone=void 0,ee.clone=function ue(be,ve){if(ve===void 0&&(ve=5),typeof be!="object")return be;var de=Array.isArray(be)?[]:{};for(var pe in be)de[pe]=ve<=1?be[pe]:be[pe]?ue(be[pe],ve-1):be[pe];return de}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var ue=te(4),be=te(35),ve=te(18),de=te(0),pe=te(83),ae=function(){function re(ne){this._core=new be.Terminal(ne),this._addonManager=new pe.AddonManager}return re.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(re.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new se(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"unicode",{get:function(){return this._checkProposedApi(),new me(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffer",{get:function(){return this._checkProposedApi(),new le(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),re.prototype.blur=function(){this._core.blur()},re.prototype.focus=function(){this._core.focus()},re.prototype.resize=function(ne,a){this._verifyIntegers(ne,a),this._core.resize(ne,a)},re.prototype.open=function(ne){this._core.open(ne)},re.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},re.prototype.registerLinkMatcher=function(ne,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,a,y)},re.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},re.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},re.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},re.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},re.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},re.prototype.addMarker=function(ne){return this.registerMarker(ne)},re.prototype.hasSelection=function(){return this._core.hasSelection()},re.prototype.select=function(ne,a,y){this._verifyIntegers(ne,a,y),this._core.select(ne,a,y)},re.prototype.getSelection=function(){return this._core.getSelection()},re.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},re.prototype.clearSelection=function(){this._core.clearSelection()},re.prototype.selectAll=function(){this._core.selectAll()},re.prototype.selectLines=function(ne,a){this._verifyIntegers(ne,a),this._core.selectLines(ne,a)},re.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},re.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},re.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},re.prototype.scrollToTop=function(){this._core.scrollToTop()},re.prototype.scrollToBottom=function(){this._core.scrollToBottom()},re.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},re.prototype.clear=function(){this._core.clear()},re.prototype.write=function(ne,a){this._core.write(ne,a)},re.prototype.writeUtf8=function(ne,a){this._core.write(ne,a)},re.prototype.writeln=function(ne,a){this._core.write(ne),this._core.write(`\r
`,a)},re.prototype.paste=function(ne){this._core.paste(ne)},re.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},re.prototype.setOption=function(ne,a){this._core.optionsService.setOption(ne,a)},re.prototype.refresh=function(ne,a){this._verifyIntegers(ne,a),this._core.refresh(ne,a)},re.prototype.reset=function(){this._core.reset()},re.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(re,"strings",{get:function(){return ve},enumerable:!1,configurable:!0}),re.prototype._verifyIntegers=function(){for(var ne=[],a=0;a<arguments.length;a++)ne[a]=arguments[a];for(var y=0,E=ne;y<E.length;y++){var b=E[y];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},re}();ee.Terminal=ae;var he=function(){function re(ne,a){this._buffer=ne,this.type=a}return re.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(re.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),re.prototype.getLine=function(ne){var a=this._buffer.lines.get(ne);if(a)return new fe(a)},re.prototype.getNullCell=function(){return new ue.CellData},re}(),le=function(){function re(ne){var a=this;this._buffers=ne,this._onBufferChange=new de.EventEmitter,this._normal=new he(this._buffers.normal,"normal"),this._alternate=new he(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return a._onBufferChange.fire(a.active)})}return Object.defineProperty(re.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),re}(),fe=function(){function re(ne){this._line=ne}return Object.defineProperty(re.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),re.prototype.getCell=function(ne,a){if(!(ne<0||ne>=this._line.length))return a?(this._line.loadCell(ne,a),a):this._line.loadCell(ne,new ue.CellData)},re.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},re}(),se=function(){function re(ne){this._core=ne}return re.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},re.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},re.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,E){return a(y,E.toArray())})},re.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},re.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},re.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},re.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},re.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},re}(),me=function(){function re(ne){this._core=ne}return re.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(re.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),re}()},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(gt,Ae){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Ie){De.__proto__=Ie}||function(De,Ie){for(var tt in Ie)Ie.hasOwnProperty(tt)&&(De[tt]=Ie[tt])})(gt,Ae)},function(gt,Ae){function De(){this.constructor=gt}ue(gt,Ae),gt.prototype=Ae===null?Object.create(Ae):(De.prototype=Ae.prototype,new De)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var ve=te(36),de=te(37),pe=te(38),ae=te(12),he=te(19),le=te(40),fe=te(50),se=te(51),me=te(11),re=te(7),ne=te(18),a=te(54),y=te(55),E=te(56),b=te(57),x=te(59),z=te(0),oe=te(16),ie=te(27),ce=te(60),ye=te(5),_e=te(61),xe=te(62),Ce=te(63),Te=te(64),Me=te(65),pt=typeof window!="undefined"?window.document:null,Ve=function(gt){function Ae(De){De===void 0&&(De={});var Ie=gt.call(this,De)||this;return Ie.browser=me,Ie._keyDownHandled=!1,Ie._onCursorMove=new z.EventEmitter,Ie._onKey=new z.EventEmitter,Ie._onRender=new z.EventEmitter,Ie._onSelectionChange=new z.EventEmitter,Ie._onTitleChange=new z.EventEmitter,Ie._onFocus=new z.EventEmitter,Ie._onBlur=new z.EventEmitter,Ie._onA11yCharEmitter=new z.EventEmitter,Ie._onA11yTabEmitter=new z.EventEmitter,Ie._setup(),Ie.linkifier=Ie._instantiationService.createInstance(fe.Linkifier),Ie.linkifier2=Ie.register(Ie._instantiationService.createInstance(Ce.Linkifier2)),Ie.register(Ie._inputHandler.onRequestBell(function(){return Ie.bell()})),Ie.register(Ie._inputHandler.onRequestRefreshRows(function(tt,Ze){return Ie.refresh(tt,Ze)})),Ie.register(Ie._inputHandler.onRequestReset(function(){return Ie.reset()})),Ie.register(Ie._inputHandler.onRequestScroll(function(tt,Ze){return Ie.scroll(tt,Ze||void 0)})),Ie.register(Ie._inputHandler.onRequestWindowsOptionsReport(function(tt){return Ie._reportWindowsOptions(tt)})),Ie.register(z.forwardEvent(Ie._inputHandler.onCursorMove,Ie._onCursorMove)),Ie.register(z.forwardEvent(Ie._inputHandler.onTitleChange,Ie._onTitleChange)),Ie.register(z.forwardEvent(Ie._inputHandler.onA11yChar,Ie._onA11yCharEmitter)),Ie.register(z.forwardEvent(Ie._inputHandler.onA11yTab,Ie._onA11yTabEmitter)),Ie.register(Ie._bufferService.onResize(function(tt){return Ie._afterResize(tt.cols,tt.rows)})),Ie}return be(Ae,gt),Object.defineProperty(Ae.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ae.prototype.dispose=function(){var De,Ie,tt;this._isDisposed||(gt.prototype.dispose.call(this),(De=this._renderService)===null||De===void 0||De.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(tt=(Ie=this.element)===null||Ie===void 0?void 0:Ie.parentNode)===null||tt===void 0||tt.removeChild(this.element))},Ae.prototype._setup=function(){gt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ae.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ae.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ae.prototype._updateOptions=function(De){var Ie,tt,Ze,bt;switch(gt.prototype._updateOptions.call(this,De),De){case"fontFamily":case"fontSize":(Ie=this._renderService)===null||Ie===void 0||Ie.clear(),(tt=this._charSizeService)===null||tt===void 0||tt.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Ze=this.viewport)===null||Ze===void 0||Ze.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((bt=this._accessibilityManager)===null||bt===void 0||bt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ae.prototype._onTextAreaFocus=function(De){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ae.C0.ESC+"[I"),this.updateCursorStyle(De),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ae.prototype.blur=function(){var De;return(De=this.textarea)===null||De===void 0?void 0:De.blur()},Ae.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ae.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ae.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var De=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Ie=this._bufferService.buffer.y*De,tt=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=tt+"px",this.textarea.style.top=Ie+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=De+"px",this.textarea.style.lineHeight=De+"px",this.textarea.style.zIndex="-5"}},Ae.prototype._initGlobal=function(){var De=this;this._bindKeys(),this.register(re.addDisposableDomListener(this.element,"copy",function(tt){De.hasSelection()&&pe.copyHandler(tt,De._selectionService)}));var Ie=function(tt){return pe.handlePasteEvent(tt,De.textarea,De._coreService)};this.register(re.addDisposableDomListener(this.textarea,"paste",Ie)),this.register(re.addDisposableDomListener(this.element,"paste",Ie)),me.isFirefox?this.register(re.addDisposableDomListener(this.element,"mousedown",function(tt){tt.button===2&&pe.rightClickHandler(tt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})):this.register(re.addDisposableDomListener(this.element,"contextmenu",function(tt){pe.rightClickHandler(tt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})),me.isLinux&&this.register(re.addDisposableDomListener(this.element,"auxclick",function(tt){tt.button===1&&pe.moveTextAreaUnderMouseCursor(tt,De.textarea,De.screenElement)}))},Ae.prototype._bindKeys=function(){var De=this;this.register(re.addDisposableDomListener(this.textarea,"keyup",function(Ie){return De._keyUp(Ie)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keydown",function(Ie){return De._keyDown(Ie)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keypress",function(Ie){return De._keyPress(Ie)},!0)),this.register(re.addDisposableDomListener(this.textarea,"compositionstart",function(){return De._compositionHelper.compositionstart()})),this.register(re.addDisposableDomListener(this.textarea,"compositionupdate",function(Ie){return De._compositionHelper.compositionupdate(Ie)})),this.register(re.addDisposableDomListener(this.textarea,"compositionend",function(){return De._compositionHelper.compositionend()})),this.register(this.onRender(function(){return De._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Ie){return De._queueLinkification(Ie.start,Ie.end)}))},Ae.prototype.open=function(De){var Ie=this;if(!De)throw new Error("Terminal requires a parent element.");pt.body.contains(De)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=De.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),De.appendChild(this.element);var tt=pt.createDocumentFragment();this._viewportElement=pt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),tt.appendChild(this._viewportElement),this._viewportScrollArea=pt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=pt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=pt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),tt.appendChild(this.screenElement),this.textarea=pt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",ne.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(re.addDisposableDomListener(this.textarea,"focus",function(wt){return Ie._onTextAreaFocus(wt)})),this.register(re.addDisposableDomListener(this.textarea,"blur",function(){return Ie._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ze=this._instantiationService.createInstance(Te.CoreBrowserService,this.textarea);this._instantiationService.setService(ye.ICoreBrowserService,Ze),this._charSizeService=this._instantiationService.createInstance(_e.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ye.ICharSizeService,this._charSizeService),this._compositionView=pt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(ve.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(tt),this._theme=this.options.theme||this._theme,this._colorManager=new ie.ColorManager(pt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(wt){return Ie._colorManager.onOptionsChange(wt)})),this._colorManager.setTheme(this._theme);var bt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ce.RenderService,bt,this.rows,this.screenElement)),this._instantiationService.setService(ye.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(wt){return Ie._onRender.fire(wt)})),this.onResize(function(wt){return Ie._renderService.resize(wt.cols,wt.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(ye.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(xe.MouseService),this._instantiationService.setService(ye.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(de.Viewport,function(wt,Kt){return Ie.scrollLines(wt,Kt)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Ie.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Ie._renderService.onCursorMove(),Ie._syncTextArea()})),this.register(this.onResize(function(){return Ie._renderService.onResize(Ie.cols,Ie.rows)})),this.register(this.onBlur(function(){return Ie._renderService.onBlur()})),this.register(this.onFocus(function(){return Ie._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Ie.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(se.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(ye.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(wt){return Ie.scrollLines(wt.amount,wt.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Ie._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(wt){return Ie._renderService.onSelectionChanged(wt.start,wt.end,wt.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(wt){Ie.textarea.value=wt,Ie.textarea.focus(),Ie.textarea.select()})),this.register(this.onScroll(function(){Ie.viewport.syncScrollArea(),Ie._selectionService.refresh()})),this.register(re.addDisposableDomListener(this._viewportElement,"scroll",function(){return Ie._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Ie._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(re.addDisposableDomListener(this.element,"mousedown",function(wt){return Ie._selectionService.onMouseDown(wt)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ae.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(le.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ae.prototype._setTheme=function(De){var Ie,tt,Ze;this._theme=De,(Ie=this._colorManager)===null||Ie===void 0||Ie.setTheme(De),(tt=this._renderService)===null||tt===void 0||tt.setColors(this._colorManager.colors),(Ze=this.viewport)===null||Ze===void 0||Ze.onThemeChange(this._colorManager.colors)},Ae.prototype.bindMouse=function(){var De=this,Ie=this,tt=this.element;function Ze(st){var Ct,Gt,Ht=Ie._mouseService.getRawByteCoords(st,Ie.screenElement,Ie.cols,Ie.rows);if(!Ht)return!1;switch(st.overrideType||st.type){case"mousemove":Gt=32,st.buttons===void 0?(Ct=3,st.button!==void 0&&(Ct=st.button<3?st.button:3)):Ct=1&st.buttons?0:4&st.buttons?1:2&st.buttons?2:3;break;case"mouseup":Gt=0,Ct=st.button<3?st.button:3;break;case"mousedown":Gt=1,Ct=st.button<3?st.button:3;break;case"wheel":st.deltaY!==0&&(Gt=st.deltaY<0?0:1),Ct=4;break;default:return!1}return!(Gt===void 0||Ct===void 0||Ct>4)&&Ie._coreMouseService.triggerMouseEvent({col:Ht.x-33,row:Ht.y-33,button:Ct,action:Gt,ctrl:st.ctrlKey,alt:st.altKey,shift:st.shiftKey})}var bt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},wt=function(st){return Ze(st),st.buttons||(De._document.removeEventListener("mouseup",bt.mouseup),bt.mousedrag&&De._document.removeEventListener("mousemove",bt.mousedrag)),De.cancel(st)},Kt=function(st){return Ze(st),st.preventDefault(),De.cancel(st)},Qt=function(st){st.buttons&&Ze(st)},rt=function(st){st.buttons||Ze(st)};this.register(this._coreMouseService.onProtocolChange(function(st){st?(De.optionsService.options.logLevel==="debug"&&De._logService.debug("Binding to mouse events:",De._coreMouseService.explainEvents(st)),De.element.classList.add("enable-mouse-events"),De._selectionService.disable()):(De._logService.debug("Unbinding from mouse events."),De.element.classList.remove("enable-mouse-events"),De._selectionService.enable()),8&st?bt.mousemove||(tt.addEventListener("mousemove",rt),bt.mousemove=rt):(tt.removeEventListener("mousemove",bt.mousemove),bt.mousemove=null),16&st?bt.wheel||(tt.addEventListener("wheel",Kt,{passive:!1}),bt.wheel=Kt):(tt.removeEventListener("wheel",bt.wheel),bt.wheel=null),2&st?bt.mouseup||(bt.mouseup=wt):(De._document.removeEventListener("mouseup",bt.mouseup),bt.mouseup=null),4&st?bt.mousedrag||(bt.mousedrag=Qt):(De._document.removeEventListener("mousemove",bt.mousedrag),bt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(re.addDisposableDomListener(tt,"mousedown",function(st){if(st.preventDefault(),De.focus(),De._coreMouseService.areMouseEventsActive&&!De._selectionService.shouldForceSelection(st))return Ze(st),bt.mouseup&&De._document.addEventListener("mouseup",bt.mouseup),bt.mousedrag&&De._document.addEventListener("mousemove",bt.mousedrag),De.cancel(st)})),this.register(re.addDisposableDomListener(tt,"wheel",function(st){if(!bt.wheel){if(!De.buffer.hasScrollback){var Ct=De.viewport.getLinesScrolled(st);if(Ct===0)return;for(var Gt=ae.C0.ESC+(De._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(st.deltaY<0?"A":"B"),Ht="",Bt=0;Bt<Math.abs(Ct);Bt++)Ht+=Gt;De._coreService.triggerDataEvent(Ht,!0)}}},{passive:!0})),this.register(re.addDisposableDomListener(tt,"wheel",function(st){if(!bt.wheel)return De.viewport.onWheel(st)?void 0:De.cancel(st)},{passive:!1})),this.register(re.addDisposableDomListener(tt,"touchstart",function(st){if(!De._coreMouseService.areMouseEventsActive)return De.viewport.onTouchStart(st),De.cancel(st)},{passive:!0})),this.register(re.addDisposableDomListener(tt,"touchmove",function(st){if(!De._coreMouseService.areMouseEventsActive)return De.viewport.onTouchMove(st)?void 0:De.cancel(st)},{passive:!1}))},Ae.prototype.refresh=function(De,Ie){var tt;(tt=this._renderService)===null||tt===void 0||tt.refreshRows(De,Ie)},Ae.prototype._queueLinkification=function(De,Ie){var tt;(tt=this.linkifier)===null||tt===void 0||tt.linkifyRows(De,Ie)},Ae.prototype.updateCursorStyle=function(De){this._selectionService&&this._selectionService.shouldColumnSelect(De)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ae.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ae.prototype.scrollLines=function(De,Ie){gt.prototype.scrollLines.call(this,De,Ie),this.refresh(0,this.rows-1)},Ae.prototype.paste=function(De){pe.paste(De,this.textarea,this._coreService)},Ae.prototype.attachCustomKeyEventHandler=function(De){this._customKeyEventHandler=De},Ae.prototype.registerLinkMatcher=function(De,Ie,tt){var Ze=this.linkifier.registerLinkMatcher(De,Ie,tt);return this.refresh(0,this.rows-1),Ze},Ae.prototype.deregisterLinkMatcher=function(De){this.linkifier.deregisterLinkMatcher(De)&&this.refresh(0,this.rows-1)},Ae.prototype.registerLinkProvider=function(De){return this.linkifier2.registerLinkProvider(De)},Ae.prototype.registerCharacterJoiner=function(De){var Ie=this._renderService.registerCharacterJoiner(De);return this.refresh(0,this.rows-1),Ie},Ae.prototype.deregisterCharacterJoiner=function(De){this._renderService.deregisterCharacterJoiner(De)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ae.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ae.prototype.addMarker=function(De){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+De)},Ae.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ae.prototype.select=function(De,Ie,tt){this._selectionService.setSelection(De,Ie,tt)},Ae.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ae.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ae.prototype.clearSelection=function(){var De;(De=this._selectionService)===null||De===void 0||De.clearSelection()},Ae.prototype.selectAll=function(){var De;(De=this._selectionService)===null||De===void 0||De.selectAll()},Ae.prototype.selectLines=function(De,Ie){var tt;(tt=this._selectionService)===null||tt===void 0||tt.selectLines(De,Ie)},Ae.prototype._keyDown=function(De){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1)return!1;if(!this._compositionHelper.keydown(De))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var Ie=x.evaluateKeyboardEvent(De,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(De),Ie.type===3||Ie.type===2){var tt=this.rows-1;return this.scrollLines(Ie.type===2?-tt:tt),this.cancel(De,!0)}return Ie.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,De)||(Ie.cancel&&this.cancel(De,!0),!Ie.key||(Ie.key!==ae.C0.ETX&&Ie.key!==ae.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Ie.key,domEvent:De}),this._showCursor(),this._coreService.triggerDataEvent(Ie.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(De,!0)))},Ae.prototype._isThirdLevelShift=function(De,Ie){var tt=De.isMac&&!this.options.macOptionIsMeta&&Ie.altKey&&!Ie.ctrlKey&&!Ie.metaKey||De.isWindows&&Ie.altKey&&Ie.ctrlKey&&!Ie.metaKey;return Ie.type==="keypress"?tt:tt&&(!Ie.keyCode||Ie.keyCode>47)},Ae.prototype._keyUp=function(De){this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1||(function(Ie){return Ie.keyCode===16||Ie.keyCode===17||Ie.keyCode===18}(De)||this.focus(),this.updateCursorStyle(De))},Ae.prototype._keyPress=function(De){var Ie;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1)return!1;if(this.cancel(De),De.charCode)Ie=De.charCode;else if(De.which===null||De.which===void 0)Ie=De.keyCode;else{if(De.which===0||De.charCode===0)return!1;Ie=De.which}return!(!Ie||(De.altKey||De.ctrlKey||De.metaKey)&&!this._isThirdLevelShift(this.browser,De))&&(Ie=String.fromCharCode(Ie),this._onKey.fire({key:Ie,domEvent:De}),this._showCursor(),this._coreService.triggerDataEvent(Ie,!0),!0)},Ae.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ae.prototype.resize=function(De,Ie){De!==this.cols||Ie!==this.rows?gt.prototype.resize.call(this,De,Ie):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ae.prototype._afterResize=function(De,Ie){var tt,Ze;(tt=this._charSizeService)===null||tt===void 0||tt.measure(),(Ze=this.viewport)===null||Ze===void 0||Ze.syncScrollArea(!0)},Ae.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var De=1;De<this.rows;De++)this.buffer.lines.push(this.buffer.getBlankLine(oe.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Ae.prototype.reset=function(){var De,Ie;this.options.rows=this.rows,this.options.cols=this.cols;var tt=this._customKeyEventHandler;this._setup(),gt.prototype.reset.call(this),(De=this._selectionService)===null||De===void 0||De.reset(),this._customKeyEventHandler=tt,this.refresh(0,this.rows-1),(Ie=this.viewport)===null||Ie===void 0||Ie.syncScrollArea()},Ae.prototype._reportWindowsOptions=function(De){if(this._renderService)switch(De){case he.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Ie=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),tt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ae.C0.ESC+"[4;"+tt+";"+Ie+"t");break;case he.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ze=this._renderService.dimensions.scaledCellWidth.toFixed(0),bt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ae.C0.ESC+"[6;"+bt+";"+Ze+"t")}},Ae.prototype.cancel=function(De,Ie){if(this.options.cancelEvents||Ie)return De.preventDefault(),De.stopPropagation(),!1},Ae.prototype._visualBell=function(){return!1},Ae.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Ae}(Me.CoreTerminal);ee.Terminal=Ve},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(ae,he,le,fe){var se,me=arguments.length,re=me<3?he:fe===null?fe=Object.getOwnPropertyDescriptor(he,le):fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ae,he,le,fe);else for(var ne=ae.length-1;ne>=0;ne--)(se=ae[ne])&&(re=(me<3?se(re):me>3?se(he,le,re):se(he,le))||re);return me>3&&re&&Object.defineProperty(he,le,re),re},be=this&&this.__param||function(ae,he){return function(le,fe){he(le,fe,ae)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CompositionHelper=void 0;var ve=te(5),de=te(1),pe=function(){function ae(he,le,fe,se,me,re){this._textarea=he,this._compositionView=le,this._bufferService=fe,this._optionsService=se,this._charSizeService=me,this._coreService=re,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(ae.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),ae.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},ae.prototype.compositionupdate=function(he){var le=this;this._compositionView.textContent=he.data,this.updateCompositionElements(),setTimeout(function(){le._compositionPosition.end=le._textarea.value.length},0)},ae.prototype.compositionend=function(){this._finalizeComposition(!0)},ae.prototype.keydown=function(he){if(this._isComposing||this._isSendingComposition){if(he.keyCode===229||he.keyCode===16||he.keyCode===17||he.keyCode===18)return!1;this._finalizeComposition(!1)}return he.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ae.prototype._finalizeComposition=function(he){var le=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,he){var fe={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(le._isSendingComposition){le._isSendingComposition=!1;var me=void 0;me=le._isComposing?le._textarea.value.substring(fe.start,fe.end):le._textarea.value.substring(fe.start),le._coreService.triggerDataEvent(me,!0)}},0)}else{this._isSendingComposition=!1;var se=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(se,!0)}},ae.prototype._handleAnyTextareaChanges=function(){var he=this,le=this._textarea.value;setTimeout(function(){if(!he._isComposing){var fe=he._textarea.value.replace(le,"");fe.length>0&&he._coreService.triggerDataEvent(fe,!0)}},0)},ae.prototype.updateCompositionElements=function(he){var le=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var fe=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),se=this._bufferService.buffer.y*fe,me=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=me+"px",this._compositionView.style.top=se+"px",this._compositionView.style.height=fe+"px",this._compositionView.style.lineHeight=fe+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var re=this._compositionView.getBoundingClientRect();this._textarea.style.left=me+"px",this._textarea.style.top=se+"px",this._textarea.style.width=re.width+"px",this._textarea.style.height=re.height+"px",this._textarea.style.lineHeight=re.height+"px"}he||setTimeout(function(){return le.updateCompositionElements(!0)},0)}},ae=ue([be(2,de.IBufferService),be(3,de.IOptionsService),be(4,ve.ICharSizeService),be(5,de.ICoreService)],ae)}();ee.CompositionHelper=pe},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(se,me){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ue(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},de=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Viewport=void 0;var pe=te(2),ae=te(7),he=te(5),le=te(1),fe=function(se){function me(re,ne,a,y,E,b,x){var z=se.call(this)||this;return z._scrollLines=re,z._viewportElement=ne,z._scrollArea=a,z._bufferService=y,z._optionsService=E,z._charSizeService=b,z._renderService=x,z.scrollBarWidth=0,z._currentRowHeight=0,z._lastRecordedBufferLength=0,z._lastRecordedViewportHeight=0,z._lastRecordedBufferHeight=0,z._lastTouchY=0,z._lastScrollTop=0,z._wheelPartialScroll=0,z._refreshAnimationFrame=null,z._ignoreNextScrollEvent=!1,z.scrollBarWidth=z._viewportElement.offsetWidth-z._scrollArea.offsetWidth||15,z.register(ae.addDisposableDomListener(z._viewportElement,"scroll",z._onScroll.bind(z))),setTimeout(function(){return z.syncScrollArea()},0),z}return be(me,se),me.prototype.onThemeChange=function(re){this._viewportElement.style.backgroundColor=re.background.css},me.prototype._refresh=function(re){var ne=this;if(re)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ne._innerRefresh()}))},me.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var re=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==re&&(this._lastRecordedBufferHeight=re,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==ne&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=ne),this._refreshAnimationFrame=null},me.prototype.syncScrollArea=function(re){if(re===void 0&&(re=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(re);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===ne&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(re)}else this._refresh(re)},me.prototype._onScroll=function(re){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var ne=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(ne,!0)}},me.prototype._bubbleScroll=function(re,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a<this._lastRecordedBufferHeight)||(re.cancelable&&re.preventDefault(),!1)},me.prototype.onWheel=function(re){var ne=this._getPixelsScrolled(re);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},me.prototype._getPixelsScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},me.prototype.getLinesScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(ne/=this._currentRowHeight+0,this._wheelPartialScroll+=ne,ne=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},me.prototype._applyScrollModifier=function(re,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?re*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:re*this._optionsService.options.scrollSensitivity},me.prototype.onTouchStart=function(re){this._lastTouchY=re.touches[0].pageY},me.prototype.onTouchMove=function(re){var ne=this._lastTouchY-re.touches[0].pageY;return this._lastTouchY=re.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},me=ve([de(3,le.IBufferService),de(4,le.IOptionsService),de(5,he.ICharSizeService),de(6,he.IRenderService)],me)}(pe.Disposable);ee.Viewport=fe},function(Ge,ee,te){"use strict";function ue(pe){return pe.replace(/\r?\n/g,"\r")}function be(pe,ae){return ae?"\x1B[200~"+pe+"\x1B[201~":pe}function ve(pe,ae,he){pe=be(pe=ue(pe),he.decPrivateModes.bracketedPasteMode),he.triggerDataEvent(pe,!0),ae.value=""}function de(pe,ae,he){var le=he.getBoundingClientRect(),fe=pe.clientX-le.left-10,se=pe.clientY-le.top-10;ae.style.width="20px",ae.style.height="20px",ae.style.left=fe+"px",ae.style.top=se+"px",ae.style.zIndex="1000",ae.focus()}Object.defineProperty(ee,"__esModule",{value:!0}),ee.rightClickHandler=ee.moveTextAreaUnderMouseCursor=ee.paste=ee.handlePasteEvent=ee.copyHandler=ee.bracketTextForPaste=ee.prepareTextForTerminal=void 0,ee.prepareTextForTerminal=ue,ee.bracketTextForPaste=be,ee.copyHandler=function(pe,ae){pe.clipboardData&&pe.clipboardData.setData("text/plain",ae.selectionText),pe.preventDefault()},ee.handlePasteEvent=function(pe,ae,he){pe.stopPropagation(),pe.clipboardData&&ve(pe.clipboardData.getData("text/plain"),ae,he)},ee.paste=ve,ee.moveTextAreaUnderMouseCursor=de,ee.rightClickHandler=function(pe,ae,he,le,fe){de(pe,ae,he),fe&&!le.isClickInSelection(pe)&&le.selectWordAtCursor(pe),ae.value=le.selectionText,ae.select()}},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(se,me){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ue(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.EscapeSequenceParser=ee.VT500_TRANSITION_TABLE=ee.TransitionTable=void 0;var ve=te(2),de=te(15),pe=te(21),ae=te(22),he=te(24),le=function(){function se(me){this.table=new Uint8Array(me)}return se.prototype.setDefault=function(me,re){de.fill(this.table,me<<4|re)},se.prototype.add=function(me,re,ne,a){this.table[re<<8|me]=ne<<4|a},se.prototype.addMany=function(me,re,ne,a){for(var y=0;y<me.length;y++)this.table[re<<8|me[y]]=ne<<4|a},se}();ee.TransitionTable=le,ee.VT500_TRANSITION_TABLE=function(){var se=new le(4095),me=Array.apply(null,Array(256)).map(function(b,x){return x}),re=function(b,x){return me.slice(b,x)},ne=re(32,127),a=re(0,24);a.push(25),a.push.apply(a,re(28,32));var y,E=re(0,14);for(y in se.setDefault(1,0),se.addMany(ne,0,2,0),E)se.addMany([24,26,153,154],y,3,0),se.addMany(re(128,144),y,3,0),se.addMany(re(144,152),y,3,0),se.add(156,y,0,0),se.add(27,y,11,1),se.add(157,y,4,8),se.addMany([152,158,159],y,0,7),se.add(155,y,11,3),se.add(144,y,11,9);return se.addMany(a,0,3,0),se.addMany(a,1,3,1),se.add(127,1,0,1),se.addMany(a,8,0,8),se.addMany(a,3,3,3),se.add(127,3,0,3),se.addMany(a,4,3,4),se.add(127,4,0,4),se.addMany(a,6,3,6),se.addMany(a,5,3,5),se.add(127,5,0,5),se.addMany(a,2,3,2),se.add(127,2,0,2),se.add(93,1,4,8),se.addMany(ne,8,5,8),se.add(127,8,5,8),se.addMany([156,27,24,26,7],8,6,0),se.addMany(re(28,32),8,0,8),se.addMany([88,94,95],1,0,7),se.addMany(ne,7,0,7),se.addMany(a,7,0,7),se.add(156,7,0,0),se.add(127,7,0,7),se.add(91,1,11,3),se.addMany(re(64,127),3,7,0),se.addMany(re(48,60),3,8,4),se.addMany([60,61,62,63],3,9,4),se.addMany(re(48,60),4,8,4),se.addMany(re(64,127),4,7,0),se.addMany([60,61,62,63],4,0,6),se.addMany(re(32,64),6,0,6),se.add(127,6,0,6),se.addMany(re(64,127),6,0,0),se.addMany(re(32,48),3,9,5),se.addMany(re(32,48),5,9,5),se.addMany(re(48,64),5,0,6),se.addMany(re(64,127),5,7,0),se.addMany(re(32,48),4,9,5),se.addMany(re(32,48),1,9,2),se.addMany(re(32,48),2,9,2),se.addMany(re(48,127),2,10,0),se.addMany(re(48,80),1,10,0),se.addMany(re(81,88),1,10,0),se.addMany([89,90,92],1,10,0),se.addMany(re(96,127),1,10,0),se.add(80,1,11,9),se.addMany(a,9,0,9),se.add(127,9,0,9),se.addMany(re(28,32),9,0,9),se.addMany(re(32,48),9,9,12),se.addMany(re(48,60),9,8,10),se.addMany([60,61,62,63],9,9,10),se.addMany(a,11,0,11),se.addMany(re(32,128),11,0,11),se.addMany(re(28,32),11,0,11),se.addMany(a,10,0,10),se.add(127,10,0,10),se.addMany(re(28,32),10,0,10),se.addMany(re(48,60),10,8,10),se.addMany([60,61,62,63],10,0,11),se.addMany(re(32,48),10,9,12),se.addMany(a,12,0,12),se.add(127,12,0,12),se.addMany(re(28,32),12,0,12),se.addMany(re(32,48),12,9,12),se.addMany(re(48,64),12,0,11),se.addMany(re(64,127),12,12,13),se.addMany(re(64,127),10,12,13),se.addMany(re(64,127),9,12,13),se.addMany(a,13,13,13),se.addMany(ne,13,13,13),se.add(127,13,0,13),se.addMany([27,156,24,26],13,14,0),se.add(160,0,2,0),se.add(160,8,5,8),se.add(160,6,0,6),se.add(160,11,0,11),se.add(160,13,13,13),se}();var fe=function(se){function me(re){re===void 0&&(re=ee.VT500_TRANSITION_TABLE);var ne=se.call(this)||this;return ne._transitions=re,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new pe.Params,ne._params.addParam(0),ne._collect=0,ne.precedingCodepoint=0,ne._printHandlerFb=function(a,y,E){},ne._executeHandlerFb=function(a){},ne._csiHandlerFb=function(a,y){},ne._escHandlerFb=function(a){},ne._errorHandlerFb=function(a){return a},ne._printHandler=ne._printHandlerFb,ne._executeHandlers=Object.create(null),ne._csiHandlers=Object.create(null),ne._escHandlers=Object.create(null),ne._oscParser=new ae.OscParser,ne._dcsParser=new he.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return be(me,se),me.prototype._identifier=function(re,ne){ne===void 0&&(ne=[64,126]);var a=0;if(re.prefix){if(re.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=re.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(re.intermediates){if(re.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<re.intermediates.length;++y){var E=re.intermediates.charCodeAt(y);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(re.final.length!==1)throw new Error("final must be a single byte");var b=re.final.charCodeAt(0);if(ne[0]>b||b>ne[1])throw new Error("final must be in range "+ne[0]+" .. "+ne[1]);return a<<=8,a|=b},me.prototype.identToString=function(re){for(var ne=[];re;)ne.push(String.fromCharCode(255&re)),re>>=8;return ne.reverse().join("")},me.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},me.prototype.setPrintHandler=function(re){this._printHandler=re},me.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},me.prototype.addEscHandler=function(re,ne){var a=this._identifier(re,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);var y=this._escHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},me.prototype.setEscHandler=function(re,ne){this._escHandlers[this._identifier(re,[48,126])]=[ne]},me.prototype.clearEscHandler=function(re){this._escHandlers[this._identifier(re,[48,126])]&&delete this._escHandlers[this._identifier(re,[48,126])]},me.prototype.setEscHandlerFallback=function(re){this._escHandlerFb=re},me.prototype.setExecuteHandler=function(re,ne){this._executeHandlers[re.charCodeAt(0)]=ne},me.prototype.clearExecuteHandler=function(re){this._executeHandlers[re.charCodeAt(0)]&&delete this._executeHandlers[re.charCodeAt(0)]},me.prototype.setExecuteHandlerFallback=function(re){this._executeHandlerFb=re},me.prototype.addCsiHandler=function(re,ne){var a=this._identifier(re);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);var y=this._csiHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},me.prototype.setCsiHandler=function(re,ne){this._csiHandlers[this._identifier(re)]=[ne]},me.prototype.clearCsiHandler=function(re){this._csiHandlers[this._identifier(re)]&&delete this._csiHandlers[this._identifier(re)]},me.prototype.setCsiHandlerFallback=function(re){this._csiHandlerFb=re},me.prototype.addDcsHandler=function(re,ne){return this._dcsParser.addHandler(this._identifier(re),ne)},me.prototype.setDcsHandler=function(re,ne){this._dcsParser.setHandler(this._identifier(re),ne)},me.prototype.clearDcsHandler=function(re){this._dcsParser.clearHandler(this._identifier(re))},me.prototype.setDcsHandlerFallback=function(re){this._dcsParser.setHandlerFallback(re)},me.prototype.addOscHandler=function(re,ne){return this._oscParser.addHandler(re,ne)},me.prototype.setOscHandler=function(re,ne){this._oscParser.setHandler(re,ne)},me.prototype.clearOscHandler=function(re){this._oscParser.clearHandler(re)},me.prototype.setOscHandlerFallback=function(re){this._oscParser.setHandlerFallback(re)},me.prototype.setErrorHandler=function(re){this._errorHandler=re},me.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},me.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},me.prototype.parse=function(re,ne){for(var a=0,y=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,z=this._collect,oe=this._params,ie=this._transitions.table,ce=0;ce<ne;++ce){switch((y=ie[E<<8|((a=re[ce])<160?a:160)])>>4){case 2:for(var ye=ce+1;;++ye){if(ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ce,ye),ce=ye-1;break}if(++ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ce,ye),ce=ye-1;break}if(++ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ce,ye),ce=ye-1;break}if(++ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ce,ye),ce=ye-1;break}}break;case 3:this._executeHandlers[a]?this._executeHandlers[a]():this._executeHandlerFb(a),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ce,code:a,currentState:E,collect:z,params:oe,abort:!1}).abort)return;break;case 7:for(var _e=this._csiHandlers[z<<8|a],xe=_e?_e.length-1:-1;xe>=0&&_e[xe](oe)===!1;xe--);xe<0&&this._csiHandlerFb(z<<8|a,oe),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:oe.addParam(0);break;case 58:oe.addSubParam(-1);break;default:oe.addDigit(a-48)}while(++ce<ne&&(a=re[ce])>47&&a<60);ce--;break;case 9:z<<=8,z|=a;break;case 10:for(var Ce=this._escHandlers[z<<8|a],Te=Ce?Ce.length-1:-1;Te>=0&&Ce[Te]()===!1;Te--);Te<0&&this._escHandlerFb(z<<8|a),this.precedingCodepoint=0;break;case 11:oe.reset(),oe.addParam(0),z=0;break;case 12:x.hook(z<<8|a,oe);break;case 13:for(var Me=ce+1;;++Me)if(Me>=ne||(a=re[Me])===24||a===26||a===27||a>127&&a<160){x.put(re,ce,Me),ce=Me-1;break}break;case 14:x.unhook(a!==24&&a!==26),a===27&&(y|=1),oe.reset(),oe.addParam(0),z=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var pt=ce+1;;pt++)if(pt>=ne||(a=re[pt])<32||a>127&&a<=159){b.put(re,ce,pt),ce=pt-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),oe.reset(),oe.addParam(0),z=0,this.precedingCodepoint=0}E=15&y}this._collect=z,this.currentState=E},me}(ve.Disposable);ee.EscapeSequenceParser=fe},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(b,x){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var ie in oe)oe.hasOwnProperty(ie)&&(z[ie]=oe[ie])})(b,x)},function(b,x){function z(){this.constructor=b}ue(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ve=this&&this.__decorate||function(b,x,z,oe){var ie,ce=arguments.length,ye=ce<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,z):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(b,x,z,oe);else for(var _e=b.length-1;_e>=0;_e--)(ie=b[_e])&&(ye=(ce<3?ie(ye):ce>3?ie(x,z,ye):ie(x,z))||ye);return ce>3&&ye&&Object.defineProperty(x,z,ye),ye},de=this&&this.__param||function(b,x){return function(z,oe){x(z,oe,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Renderer=void 0;var pe=te(41),ae=te(47),he=te(48),le=te(49),fe=te(29),se=te(2),me=te(5),re=te(1),ne=te(25),a=te(0),y=1,E=function(b){function x(z,oe,ie,ce,ye,_e,xe,Ce,Te){var Me=b.call(this)||this;Me._colors=z,Me._screenElement=oe,Me._bufferService=ye,Me._charSizeService=_e,Me._optionsService=xe,Me._id=y++,Me._onRequestRedraw=new a.EventEmitter;var pt=Me._optionsService.options.allowTransparency;return Me._characterJoinerRegistry=new fe.CharacterJoinerRegistry(Me._bufferService),Me._renderLayers=[new pe.TextRenderLayer(Me._screenElement,0,Me._colors,Me._characterJoinerRegistry,pt,Me._id,Me._bufferService,xe),new ae.SelectionRenderLayer(Me._screenElement,1,Me._colors,Me._id,Me._bufferService,xe),new le.LinkRenderLayer(Me._screenElement,2,Me._colors,Me._id,ie,ce,Me._bufferService,xe),new he.CursorRenderLayer(Me._screenElement,3,Me._colors,Me._id,Me._onRequestRedraw,Me._bufferService,xe,Ce,Te)],Me.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Me._devicePixelRatio=window.devicePixelRatio,Me._updateDimensions(),Me.onOptionsChanged(),Me}return be(x,b),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){for(var z=0,oe=this._renderLayers;z<oe.length;z++)oe[z].dispose();b.prototype.dispose.call(this),ne.removeTerminalFromCache(this._id)},x.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},x.prototype.setColors=function(z){this._colors=z;for(var oe=0,ie=this._renderLayers;oe<ie.length;oe++){var ce=ie[oe];ce.setColors(this._colors),ce.reset()}},x.prototype.onResize=function(z,oe){this._updateDimensions();for(var ie=0,ce=this._renderLayers;ie<ce.length;ie++)ce[ie].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},x.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},x.prototype.onBlur=function(){this._runOperation(function(z){return z.onBlur()})},x.prototype.onFocus=function(){this._runOperation(function(z){return z.onFocus()})},x.prototype.onSelectionChanged=function(z,oe,ie){ie===void 0&&(ie=!1),this._runOperation(function(ce){return ce.onSelectionChanged(z,oe,ie)})},x.prototype.onCursorMove=function(){this._runOperation(function(z){return z.onCursorMove()})},x.prototype.onOptionsChanged=function(){this._runOperation(function(z){return z.onOptionsChanged()})},x.prototype.clear=function(){this._runOperation(function(z){return z.reset()})},x.prototype._runOperation=function(z){for(var oe=0,ie=this._renderLayers;oe<ie.length;oe++)z(ie[oe])},x.prototype.renderRows=function(z,oe){for(var ie=0,ce=this._renderLayers;ie<ce.length;ie++)ce[ie].onGridChanged(z,oe)},x.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},x.prototype.registerCharacterJoiner=function(z){return this._characterJoinerRegistry.registerCharacterJoiner(z)},x.prototype.deregisterCharacterJoiner=function(z){return this._characterJoinerRegistry.deregisterCharacterJoiner(z)},x=ve([de(4,re.IBufferService),de(5,me.ICharSizeService),de(6,re.IOptionsService),de(7,re.ICoreService),de(8,me.ICoreBrowserService)],x)}(se.Disposable);ee.Renderer=E},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(se,me){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ue(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.TextRenderLayer=void 0;var ve=te(42),de=te(13),pe=te(6),ae=te(3),he=te(29),le=te(4),fe=function(se){function me(re,ne,a,y,E,b,x,z){var oe=se.call(this,re,"text",ne,E,a,b,x,z)||this;return oe._characterWidth=0,oe._characterFont="",oe._characterOverlapCache={},oe._workCell=new le.CellData,oe._state=new ve.GridCache,oe._characterJoinerRegistry=y,oe}return be(me,se),me.prototype.resize=function(re){se.prototype.resize.call(this,re);var ne=this._getFont(!1,!1);this._characterWidth===re.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=re.scaledCharWidth,this._characterFont=ne,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},me.prototype.reset=function(){this._state.clear(),this._clearAll()},me.prototype._forEachCell=function(re,ne,a,y){for(var E=re;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),z=a?a.getJoinedCharacters(b):[],oe=0;oe<this._bufferService.cols;oe++){x.loadCell(oe,this._workCell);var ie=this._workCell,ce=!1,ye=oe;if(ie.getWidth()!==0){if(z.length>0&&oe===z[0][0]){ce=!0;var _e=z.shift();ie=new he.JoinedCellData(this._workCell,x.translateToString(!0,_e[0],_e[1]),_e[1]-_e[0]),ye=_e[1]-1}!ce&&this._isOverlapping(ie)&&ye<x.length-1&&x.getCodePoint(ye+1)===ae.NULL_CELL_CODE&&(ie.content&=-12582913,ie.content|=2<<22),y(ie,oe,E),oe=ye}}},me.prototype._drawBackground=function(re,ne){var a=this,y=this._ctx,E=this._bufferService.cols,b=0,x=0,z=null;y.save(),this._forEachCell(re,ne,null,function(oe,ie,ce){var ye=null;oe.isInverse()?ye=oe.isFgDefault()?a._colors.foreground.css:oe.isFgRGB()?"rgb("+pe.AttributeData.toColorRGB(oe.getFgColor()).join(",")+")":a._colors.ansi[oe.getFgColor()].css:oe.isBgRGB()?ye="rgb("+pe.AttributeData.toColorRGB(oe.getBgColor()).join(",")+")":oe.isBgPalette()&&(ye=a._colors.ansi[oe.getBgColor()].css),z===null&&(b=ie,x=ce),ce!==x?(y.fillStyle=z||"",a._fillCells(b,x,E-b,1),b=ie,x=ce):z!==ye&&(y.fillStyle=z||"",a._fillCells(b,x,ie-b,1),b=ie,x=ce),z=ye}),z!==null&&(y.fillStyle=z,this._fillCells(b,x,E-b,1)),y.restore()},me.prototype._drawForeground=function(re,ne){var a=this;this._forEachCell(re,ne,this._characterJoinerRegistry,function(y,E,b){if(!y.isInvisible()&&(a._drawChars(y,E,b),y.isUnderline())){if(a._ctx.save(),y.isInverse())if(y.isBgDefault())a._ctx.fillStyle=a._colors.background.css;else if(y.isBgRGB())a._ctx.fillStyle="rgb("+pe.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var x=y.getBgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&x<8&&(x+=8),a._ctx.fillStyle=a._colors.ansi[x].css}else if(y.isFgDefault())a._ctx.fillStyle=a._colors.foreground.css;else if(y.isFgRGB())a._ctx.fillStyle="rgb("+pe.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var z=y.getFgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&z<8&&(z+=8),a._ctx.fillStyle=a._colors.ansi[z].css}a._fillBottomLineAtCells(E,b,y.getWidth()),a._ctx.restore()}})},me.prototype.onGridChanged=function(re,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,re,this._bufferService.cols,ne-re+1),this._drawBackground(re,ne),this._drawForeground(re,ne))},me.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},me.prototype._isOverlapping=function(re){if(re.getWidth()!==1||re.getCode()<256)return!1;var ne=re.getChars();if(this._characterOverlapCache.hasOwnProperty(ne))return this._characterOverlapCache[ne];this._ctx.save(),this._ctx.font=this._characterFont;var a=Math.floor(this._ctx.measureText(ne).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=a,a},me}(de.BaseRenderLayer);ee.TextRenderLayer=fe},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.GridCache=void 0;var ue=function(){function be(){this.cache=[]}return be.prototype.resize=function(ve,de){for(var pe=0;pe<ve;pe++){this.cache.length<=pe&&this.cache.push([]);for(var ae=this.cache[pe].length;ae<de;ae++)this.cache[pe].push(void 0);this.cache[pe].length=de}this.cache.length=ve},be.prototype.clear=function(){for(var ve=0;ve<this.cache.length;ve++)for(var de=0;de<this.cache[ve].length;de++)this.cache[ve][de]=void 0},be}();ee.GridCache=ue},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(a,y){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,b){E.__proto__=b}||function(E,b){for(var x in b)b.hasOwnProperty(x)&&(E[x]=b[x])})(a,y)},function(a,y){function E(){this.constructor=a}ue(a,y),a.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.NoneCharAtlas=ee.DynamicCharAtlas=ee.getGlyphCacheKey=void 0;var ve=te(9),de=te(44),pe=te(27),ae=te(46),he=te(11),le=te(28),fe=te(10),se={css:"rgba(0, 0, 0, 0)",rgba:0};function me(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}ee.getGlyphCacheKey=me;var re=function(a){function y(E,b){var x=a.call(this)||this;x._config=b,x._drawToCacheCount=0,x._glyphsWaitingOnBitmap=[],x._bitmapCommitTimeout=null,x._bitmap=null,x._cacheCanvas=E.createElement("canvas"),x._cacheCanvas.width=1024,x._cacheCanvas.height=1024,x._cacheCtx=le.throwIfFalsy(x._cacheCanvas.getContext("2d",{alpha:!0}));var z=E.createElement("canvas");z.width=x._config.scaledCharWidth,z.height=x._config.scaledCharHeight,x._tmpCtx=le.throwIfFalsy(z.getContext("2d",{alpha:x._config.allowTransparency})),x._width=Math.floor(1024/x._config.scaledCharWidth),x._height=Math.floor(1024/x._config.scaledCharHeight);var oe=x._width*x._height;return x._cacheMap=new ae.LRUMap(oe),x._cacheMap.prealloc(oe),x}return be(y,a),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.draw=function(E,b,x,z){if(b.code===32)return!0;if(!this._canCache(b))return!1;var oe=me(b),ie=this._cacheMap.get(oe);if(ie!=null)return this._drawFromCache(E,ie,x,z),!0;if(this._drawToCacheCount<100){var ce=void 0;ce=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ye=this._drawToCache(b,ce);return this._cacheMap.set(oe,ye),this._drawFromCache(E,ye,x,z),!0}return!1},y.prototype._canCache=function(E){return E.code<256},y.prototype._toCoordinateX=function(E){return E%this._width*this._config.scaledCharWidth},y.prototype._toCoordinateY=function(E){return Math.floor(E/this._width)*this._config.scaledCharHeight},y.prototype._drawFromCache=function(E,b,x,z){if(!b.isEmpty){var oe=this._toCoordinateX(b.index),ie=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,oe,ie,this._config.scaledCharWidth,this._config.scaledCharHeight,x,z,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:pe.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?se:E.bg===ve.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:E.bg<256?this._getColorFromAnsiIndex(E.bg):this._config.colors.background},y.prototype._getForegroundColor=function(E){return E.fg===ve.INVERTED_DEFAULT_COLOR?fe.color.opaque(this._config.colors.background):E.fg<256?this._getColorFromAnsiIndex(E.fg):this._config.colors.foreground},y.prototype._drawToCache=function(E,b){this._drawToCacheCount++,this._tmpCtx.save();var x=this._getBackgroundColor(E);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=x.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var z=E.bold?this._config.fontWeightBold:this._config.fontWeight,oe=E.italic?"italic":"";this._tmpCtx.font=oe+" "+z+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(E).css,E.dim&&(this._tmpCtx.globalAlpha=ve.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var ie=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ce=!1;this._config.allowTransparency||(ce=function(Ce,Te){for(var Me=!0,pt=Te.rgba>>>24,Ve=Te.rgba>>>16&255,gt=Te.rgba>>>8&255,Ae=0;Ae<Ce.data.length;Ae+=4)Ce.data[Ae]===pt&&Ce.data[Ae+1]===Ve&&Ce.data[Ae+2]===gt?Ce.data[Ae+3]=0:Me=!1;return Me}(ie,x));var ye=this._toCoordinateX(b),_e=this._toCoordinateY(b);this._cacheCtx.putImageData(ie,ye,_e);var xe={index:b,isEmpty:ce,inBitmap:!1};return this._addGlyphToBitmap(xe),xe},y.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||he.isFirefox||he.isSafari||(this._glyphsWaitingOnBitmap.push(E),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},y.prototype._generateBitmap=function(){var E=this,b=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(x){E._bitmap=x;for(var z=0;z<b.length;z++)b[z].inBitmap=!0}),this._bitmapCommitTimeout=null},y}(de.BaseCharAtlas);ee.DynamicCharAtlas=re;var ne=function(a){function y(E,b){return a.call(this)||this}return be(y,a),y.prototype.draw=function(E,b,x,z){return!1},y}(de.BaseCharAtlas);ee.NoneCharAtlas=ne},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseCharAtlas=void 0;var ue=function(){function be(){this._didWarmUp=!1}return be.prototype.dispose=function(){},be.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},be.prototype._doWarmUp=function(){},be.prototype.beginFrame=function(){},be}();ee.BaseCharAtlas=ue},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorContrastCache=void 0;var ue=function(){function be(){this._color={},this._rgba={}}return be.prototype.clear=function(){this._color={},this._rgba={}},be.prototype.setCss=function(ve,de,pe){this._rgba[ve]||(this._rgba[ve]={}),this._rgba[ve][de]=pe},be.prototype.getCss=function(ve,de){return this._rgba[ve]?this._rgba[ve][de]:void 0},be.prototype.setColor=function(ve,de,pe){this._color[ve]||(this._color[ve]={}),this._color[ve][de]=pe},be.prototype.getColor=function(ve,de){return this._color[ve]?this._color[ve][de]:void 0},be}();ee.ColorContrastCache=ue},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.LRUMap=void 0;var ue=function(){function be(ve){this.capacity=ve,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return be.prototype._unlinkNode=function(ve){var de=ve.prev,pe=ve.next;ve===this._head&&(this._head=pe),ve===this._tail&&(this._tail=de),de!==null&&(de.next=pe),pe!==null&&(pe.prev=de)},be.prototype._appendNode=function(ve){var de=this._tail;de!==null&&(de.next=ve),ve.prev=de,ve.next=null,this._tail=ve,this._head===null&&(this._head=ve)},be.prototype.prealloc=function(ve){for(var de=this._nodePool,pe=0;pe<ve;pe++)de.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(ve){var de=this._map[ve];return de!==void 0?(this._unlinkNode(de),this._appendNode(de),de.value):null},be.prototype.peekValue=function(ve){var de=this._map[ve];return de!==void 0?de.value:null},be.prototype.peek=function(){var ve=this._head;return ve===null?null:ve.value},be.prototype.set=function(ve,de){var pe=this._map[ve];if(pe!==void 0)pe=this._map[ve],this._unlinkNode(pe),pe.value=de;else if(this.size>=this.capacity)pe=this._head,this._unlinkNode(pe),delete this._map[pe.key],pe.key=ve,pe.value=de,this._map[ve]=pe;else{var ae=this._nodePool;ae.length>0?((pe=ae.pop()).key=ve,pe.value=de):pe={prev:null,next:null,key:ve,value:de},this._map[ve]=pe,this.size++}this._appendNode(pe)},be}();ee.LRUMap=ue},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(de,pe){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,he){ae.__proto__=he}||function(ae,he){for(var le in he)he.hasOwnProperty(le)&&(ae[le]=he[le])})(de,pe)},function(de,pe){function ae(){this.constructor=de}ue(de,pe),de.prototype=pe===null?Object.create(pe):(ae.prototype=pe.prototype,new ae)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionRenderLayer=void 0;var ve=function(de){function pe(ae,he,le,fe,se,me){var re=de.call(this,ae,"selection",he,!0,le,fe,se,me)||this;return re._clearState(),re}return be(pe,de),pe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},pe.prototype.resize=function(ae){de.prototype.resize.call(this,ae),this._clearState()},pe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},pe.prototype.onSelectionChanged=function(ae,he,le){if(this._didStateChange(ae,he,le,this._bufferService.buffer.ydisp))if(this._clearAll(),ae&&he){var fe=ae[1]-this._bufferService.buffer.ydisp,se=he[1]-this._bufferService.buffer.ydisp,me=Math.max(fe,0),re=Math.min(se,this._bufferService.rows-1);if(!(me>=this._bufferService.rows||re<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,le){var ne=ae[0],a=he[0]-ne,y=re-me+1;this._fillCells(ne,me,a,y)}else{ne=fe===me?ae[0]:0;var E=me===re?he[0]:this._bufferService.cols;this._fillCells(ne,me,E-ne,1);var b=Math.max(re-me-1,0);if(this._fillCells(0,me+1,this._bufferService.cols,b),me!==re){var x=se===re?he[0]:this._bufferService.cols;this._fillCells(0,re,x,1)}}this._state.start=[ae[0],ae[1]],this._state.end=[he[0],he[1]],this._state.columnSelectMode=le,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},pe.prototype._didStateChange=function(ae,he,le,fe){return!this._areCoordinatesEqual(ae,this._state.start)||!this._areCoordinatesEqual(he,this._state.end)||le!==this._state.columnSelectMode||fe!==this._state.ydisp},pe.prototype._areCoordinatesEqual=function(ae,he){return!(!ae||!he)&&ae[0]===he[0]&&ae[1]===he[1]},pe}(te(13).BaseRenderLayer);ee.SelectionRenderLayer=ve},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(he,le){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,se){fe.__proto__=se}||function(fe,se){for(var me in se)se.hasOwnProperty(me)&&(fe[me]=se[me])})(he,le)},function(he,le){function fe(){this.constructor=he}ue(he,le),he.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CursorRenderLayer=void 0;var ve=te(13),de=te(4),pe=function(he){function le(fe,se,me,re,ne,a,y,E,b){var x=he.call(this,fe,"cursor",se,!0,me,re,a,y)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new de.CellData,x._state={x:0,y:0,isFocused:!1,style:"",width:0},x._cursorRenderers={bar:x._renderBarCursor.bind(x),block:x._renderBlockCursor.bind(x),underline:x._renderUnderlineCursor.bind(x)},x}return be(le,he),le.prototype.resize=function(fe){he.prototype.resize.call(this,fe),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},le.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},le.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onOptionsChanged=function(){var fe,se=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ae(this._coreBrowserService.isFocused,function(){se._render(!0)})):((fe=this._cursorBlinkStateManager)===null||fe===void 0||fe.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype.onGridChanged=function(fe,se){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype._render=function(fe){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var se=this._bufferService.buffer.ybase+this._bufferService.buffer.y,me=se-this._bufferService.buffer.ydisp;if(me<0||me>=this._bufferService.rows)this._clearCursor();else{var re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(se).loadCell(re,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var ne=this._optionsService.options.cursorStyle;return ne&&ne!=="block"?this._cursorRenderers[ne](re,me,this._cell):this._renderBlurCursor(re,me,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=me,this._state.isFocused=!1,this._state.style=ne,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===re&&this._state.y===me&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](re,me,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=me,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},le.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},le.prototype._renderBarCursor=function(fe,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(fe,se,this._optionsService.options.cursorWidth),this._ctx.restore()},le.prototype._renderBlockCursor=function(fe,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(fe,se,me.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(me,fe,se),this._ctx.restore()},le.prototype._renderUnderlineCursor=function(fe,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(fe,se),this._ctx.restore()},le.prototype._renderBlurCursor=function(fe,se,me){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(fe,se,me.getWidth(),1),this._ctx.restore()},le}(ve.BaseRenderLayer);ee.CursorRenderLayer=pe;var ae=function(){function he(le,fe){this._renderCallback=fe,this.isCursorVisible=!0,le&&this._restartInterval()}return Object.defineProperty(he.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),he.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},he.prototype.restartBlinkAnimation=function(){var le=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){le._renderCallback(),le._animationFrame=void 0})))},he.prototype._restartInterval=function(le){var fe=this;le===void 0&&(le=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(fe._animationTimeRestarted){var se=600-(Date.now()-fe._animationTimeRestarted);if(fe._animationTimeRestarted=void 0,se>0)return void fe._restartInterval(se)}fe.isCursorVisible=!1,fe._animationFrame=window.requestAnimationFrame(function(){fe._renderCallback(),fe._animationFrame=void 0}),fe._blinkInterval=window.setInterval(function(){if(fe._animationTimeRestarted){var me=600-(Date.now()-fe._animationTimeRestarted);return fe._animationTimeRestarted=void 0,void fe._restartInterval(me)}fe.isCursorVisible=!fe.isCursorVisible,fe._animationFrame=window.requestAnimationFrame(function(){fe._renderCallback(),fe._animationFrame=void 0})},600)},le)},he.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},he.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},he}()},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(he,le){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,se){fe.__proto__=se}||function(fe,se){for(var me in se)se.hasOwnProperty(me)&&(fe[me]=se[me])})(he,le)},function(he,le){function fe(){this.constructor=he}ue(he,le),he.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.LinkRenderLayer=void 0;var ve=te(13),de=te(9),pe=te(26),ae=function(he){function le(fe,se,me,re,ne,a,y,E){var b=he.call(this,fe,"link",se,!0,me,re,y,E)||this;return ne.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),ne.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),a.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),a.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),b}return be(le,he),le.prototype.resize=function(fe){he.prototype.resize.call(this,fe),this._state=void 0},le.prototype.reset=function(){this._clearCurrentLink()},le.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var fe=this._state.y2-this._state.y1-1;fe>0&&this._clearCells(0,this._state.y1+1,this._state.cols,fe),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},le.prototype._onShowLinkUnderline=function(fe){if(fe.fg===de.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:fe.fg&&pe.is256Color(fe.fg)?this._ctx.fillStyle=this._colors.ansi[fe.fg].css:this._ctx.fillStyle=this._colors.foreground.css,fe.y1===fe.y2)this._fillBottomLineAtCells(fe.x1,fe.y1,fe.x2-fe.x1);else{this._fillBottomLineAtCells(fe.x1,fe.y1,fe.cols-fe.x1);for(var se=fe.y1+1;se<fe.y2;se++)this._fillBottomLineAtCells(0,se,fe.cols);this._fillBottomLineAtCells(0,fe.y2,fe.x2)}this._state=fe},le.prototype._onHideLinkUnderline=function(fe){this._clearCurrentLink()},le}(ve.BaseRenderLayer);ee.LinkRenderLayer=ae},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(he,le,fe,se){var me,re=arguments.length,ne=re<3?le:se===null?se=Object.getOwnPropertyDescriptor(le,fe):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(he,le,fe,se);else for(var a=he.length-1;a>=0;a--)(me=he[a])&&(ne=(re<3?me(ne):re>3?me(le,fe,ne):me(le,fe))||ne);return re>3&&ne&&Object.defineProperty(le,fe,ne),ne},be=this&&this.__param||function(he,le){return function(fe,se){le(fe,se,he)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZone=ee.Linkifier=void 0;var ve=te(0),de=te(1),pe=function(){function he(le,fe,se){this._bufferService=le,this._logService=fe,this._unicodeService=se,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new ve.EventEmitter,this._onHideLinkUnderline=new ve.EventEmitter,this._onLinkTooltip=new ve.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(he.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),he.prototype.attachToDom=function(le,fe){this._element=le,this._mouseZoneManager=fe},he.prototype.linkifyRows=function(le,fe){var se=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=le,this._rowsToLinkify.end=fe):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,le),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,fe)),this._mouseZoneManager.clearAll(le,fe),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return se._linkifyRows()},he._timeBeforeLatency))},he.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var le=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var fe=le.ydisp+this._rowsToLinkify.start;if(!(fe>=le.lines.length)){for(var se=le.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,me=Math.ceil(2e3/this._bufferService.cols),re=this._bufferService.buffer.iterator(!1,fe,se,me,me);re.hasNext();)for(var ne=re.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(ne.range.first,ne.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},he.prototype.registerLinkMatcher=function(le,fe,se){if(se===void 0&&(se={}),!fe)throw new Error("handler must be defined");var me={id:this._nextLinkMatcherId++,regex:le,handler:fe,matchIndex:se.matchIndex,validationCallback:se.validationCallback,hoverTooltipCallback:se.tooltipCallback,hoverLeaveCallback:se.leaveCallback,willLinkActivate:se.willLinkActivate,priority:se.priority||0};return this._addLinkMatcherToList(me),me.id},he.prototype._addLinkMatcherToList=function(le){if(this._linkMatchers.length!==0){for(var fe=this._linkMatchers.length-1;fe>=0;fe--)if(le.priority<=this._linkMatchers[fe].priority)return void this._linkMatchers.splice(fe+1,0,le);this._linkMatchers.splice(0,0,le)}else this._linkMatchers.push(le)},he.prototype.deregisterLinkMatcher=function(le){for(var fe=0;fe<this._linkMatchers.length;fe++)if(this._linkMatchers[fe].id===le)return this._linkMatchers.splice(fe,1),!0;return!1},he.prototype._doLinkifyRow=function(le,fe,se){for(var me,re=this,ne=new RegExp(se.regex.source,(se.regex.flags||"")+"g"),a=-1,y=function(){var b=me[typeof se.matchIndex!="number"?0:se.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",me,se),"break";if(a=fe.indexOf(b,a+1),ne.lastIndex=a+b.length,a<0)return"break";var x=E._bufferService.buffer.stringIndexToBufferIndex(le,a);if(x[0]<0)return"break";var z=E._bufferService.buffer.lines.get(x[0]);if(!z)return"break";var oe=z.getFg(x[1]),ie=oe?oe>>9&511:void 0;se.validationCallback?se.validationCallback(b,function(ce){re._rowsTimeoutId||ce&&re._addLink(x[1],x[0]-re._bufferService.buffer.ydisp,b,se,ie)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,se,ie)},E=this;(me=ne.exec(fe))!==null&&y()!=="break";);},he.prototype._addLink=function(le,fe,se,me,re){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(se),y=le%this._bufferService.cols,E=fe+Math.floor(le/this._bufferService.cols),b=(y+a)%this._bufferService.cols,x=E+Math.floor((y+a)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,x--),this._mouseZoneManager.add(new ae(y+1,E+1,b+1,x+1,function(z){if(me.handler)return me.handler(z,se);var oe=window.open();oe?(oe.opener=null,oe.location.href=se):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,re)),ne._element.classList.add("xterm-cursor-pointer")},function(z){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,E,b,x,re)),me.hoverTooltipCallback&&me.hoverTooltipCallback(z,se,{start:{x:y,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,re)),ne._element.classList.remove("xterm-cursor-pointer"),me.hoverLeaveCallback&&me.hoverLeaveCallback()},function(z){return!me.willLinkActivate||me.willLinkActivate(z,se)}))}},he.prototype._createLinkHoverEvent=function(le,fe,se,me,re){return{x1:le,y1:fe,x2:se,y2:me,cols:this._bufferService.cols,fg:re}},he._timeBeforeLatency=200,he=ue([be(0,de.IBufferService),be(1,de.ILogService),be(2,de.IUnicodeService)],he)}();ee.Linkifier=pe;var ae=function(he,le,fe,se,me,re,ne,a,y){this.x1=he,this.y1=le,this.x2=fe,this.y2=se,this.clickCallback=me,this.hoverCallback=re,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};ee.MouseZone=ae},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(b,x){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var ie in oe)oe.hasOwnProperty(ie)&&(z[ie]=oe[ie])})(b,x)},function(b,x){function z(){this.constructor=b}ue(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ve=this&&this.__decorate||function(b,x,z,oe){var ie,ce=arguments.length,ye=ce<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,z):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(b,x,z,oe);else for(var _e=b.length-1;_e>=0;_e--)(ie=b[_e])&&(ye=(ce<3?ie(ye):ce>3?ie(x,z,ye):ie(x,z))||ye);return ce>3&&ye&&Object.defineProperty(x,z,ye),ye},de=this&&this.__param||function(b,x){return function(z,oe){x(z,oe,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionService=void 0;var pe=te(11),ae=te(52),he=te(4),le=te(0),fe=te(5),se=te(1),me=te(30),re=te(53),ne=te(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function x(z,oe,ie,ce,ye,_e,xe){var Ce=b.call(this)||this;return Ce._element=z,Ce._screenElement=oe,Ce._bufferService=ie,Ce._coreService=ce,Ce._mouseService=ye,Ce._optionsService=_e,Ce._renderService=xe,Ce._dragScrollAmount=0,Ce._enabled=!0,Ce._workCell=new he.CellData,Ce._mouseDownTimeStamp=0,Ce._onLinuxMouseSelection=Ce.register(new le.EventEmitter),Ce._onRedrawRequest=Ce.register(new le.EventEmitter),Ce._onSelectionChange=Ce.register(new le.EventEmitter),Ce._onRequestScrollLines=Ce.register(new le.EventEmitter),Ce._mouseMoveListener=function(Te){return Ce._onMouseMove(Te)},Ce._mouseUpListener=function(Te){return Ce._onMouseUp(Te)},Ce._coreService.onUserInput(function(){Ce.hasSelection&&Ce.clearSelection()}),Ce._trimListener=Ce._bufferService.buffer.lines.onTrim(function(Te){return Ce._onTrim(Te)}),Ce.register(Ce._bufferService.buffers.onBufferActivate(function(Te){return Ce._onBufferActivate(Te)})),Ce.enable(),Ce._model=new ae.SelectionModel(Ce._bufferService),Ce._activeSelectionMode=0,Ce}return be(x,b),Object.defineProperty(x.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._removeMouseDownListeners()},x.prototype.reset=function(){this.clearSelection()},x.prototype.disable=function(){this.clearSelection(),this._enabled=!1},x.prototype.enable=function(){this._enabled=!0},Object.defineProperty(x.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasSelection",{get:function(){var z=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;return!(!z||!oe)&&(z[0]!==oe[0]||z[1]!==oe[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var z=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;if(!z||!oe)return"";var ie=this._bufferService.buffer,ce=[];if(this._activeSelectionMode===3){if(z[0]===oe[0])return"";for(var ye=z[1];ye<=oe[1];ye++){var _e=ie.translateBufferLineToString(ye,!0,z[0],oe[0]);ce.push(_e)}}else{var xe=z[1]===oe[1]?oe[0]:void 0;for(ce.push(ie.translateBufferLineToString(z[1],!0,z[0],xe)),ye=z[1]+1;ye<=oe[1]-1;ye++){var Ce=ie.lines.get(ye);_e=ie.translateBufferLineToString(ye,!0),Ce&&Ce.isWrapped?ce[ce.length-1]+=_e:ce.push(_e)}z[1]!==oe[1]&&(Ce=ie.lines.get(oe[1]),_e=ie.translateBufferLineToString(oe[1],!0,0,oe[0]),Ce&&Ce.isWrapped?ce[ce.length-1]+=_e:ce.push(_e))}return ce.map(function(Te){return Te.replace(y," ")}).join(pe.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),x.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},x.prototype.refresh=function(z){var oe=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return oe._refresh()})),pe.isLinux&&z&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},x.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},x.prototype.isClickInSelection=function(z){var oe=this._getMouseBufferCoords(z),ie=this._model.finalSelectionStart,ce=this._model.finalSelectionEnd;return!!(ie&&ce&&oe)&&this._areCoordsInSelection(oe,ie,ce)},x.prototype._areCoordsInSelection=function(z,oe,ie){return z[1]>oe[1]&&z[1]<ie[1]||oe[1]===ie[1]&&z[1]===oe[1]&&z[0]>=oe[0]&&z[0]<ie[0]||oe[1]<ie[1]&&z[1]===ie[1]&&z[0]<ie[0]||oe[1]<ie[1]&&z[1]===oe[1]&&z[0]>=oe[0]},x.prototype.selectWordAtCursor=function(z){var oe=this._getMouseBufferCoords(z);oe&&(this._selectWordAt(oe,!1),this._model.selectionEnd=void 0,this.refresh(!0))},x.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},x.prototype.selectLines=function(z,oe){this._model.clearSelection(),z=Math.max(z,0),oe=Math.min(oe,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,z],this._model.selectionEnd=[this._bufferService.cols,oe],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(z){this._model.onTrim(z)&&this.refresh()},x.prototype._getMouseBufferCoords=function(z){var oe=this._mouseService.getCoords(z,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(oe)return oe[0]--,oe[1]--,oe[1]+=this._bufferService.buffer.ydisp,oe},x.prototype._getMouseEventScrollAmount=function(z){var oe=me.getCoordsRelativeToElement(z,this._screenElement)[1],ie=this._renderService.dimensions.canvasHeight;return oe>=0&&oe<=ie?0:(oe>ie&&(oe-=ie),oe=Math.min(Math.max(oe,-50),50),(oe/=50)/Math.abs(oe)+Math.round(14*oe))},x.prototype.shouldForceSelection=function(z){return pe.isMac?z.altKey&&this._optionsService.options.macOptionClickForcesSelection:z.shiftKey},x.prototype.onMouseDown=function(z){if(this._mouseDownTimeStamp=z.timeStamp,(z.button!==2||!this.hasSelection)&&z.button===0){if(!this._enabled){if(!this.shouldForceSelection(z))return;z.stopPropagation()}z.preventDefault(),this._dragScrollAmount=0,this._enabled&&z.shiftKey?this._onIncrementalClick(z):z.detail===1?this._onSingleClick(z):z.detail===2?this._onDoubleClick(z):z.detail===3&&this._onTripleClick(z),this._addMouseDownListeners(),this.refresh(!0)}},x.prototype._addMouseDownListeners=function(){var z=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return z._dragScroll()},50)},x.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},x.prototype._onIncrementalClick=function(z){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(z))},x.prototype._onSingleClick=function(z){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(z)?3:0,this._model.selectionStart=this._getMouseBufferCoords(z),this._model.selectionStart){this._model.selectionEnd=void 0;var oe=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);oe&&oe.length!==this._model.selectionStart[0]&&oe.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(z){var oe=this._getMouseBufferCoords(z);oe&&(this._activeSelectionMode=1,this._selectWordAt(oe,!0))},x.prototype._onTripleClick=function(z){var oe=this._getMouseBufferCoords(z);oe&&(this._activeSelectionMode=2,this._selectLineAt(oe[1]))},x.prototype.shouldColumnSelect=function(z){return z.altKey&&!(pe.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(z){if(z.stopImmediatePropagation(),this._model.selectionStart){var oe=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(z),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(z),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ie=this._bufferService.buffer;if(this._model.selectionEnd[1]<ie.lines.length){var ce=ie.lines.get(this._model.selectionEnd[1]);ce&&ce.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}oe&&oe[0]===this._model.selectionEnd[0]&&oe[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},x.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var z=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(z.ydisp+this._bufferService.rows,z.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=z.ydisp),this.refresh()}},x.prototype._onMouseUp=function(z){var oe=z.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&oe<500&&z.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ie=this._mouseService.getCoords(z,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ie&&ie[0]!==void 0&&ie[1]!==void 0){var ce=re.moveToCellSequence(ie[0]-1,ie[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ce,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(z){var oe=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=z.activeBuffer.lines.onTrim(function(ie){return oe._onTrim(ie)})},x.prototype._convertViewportColToCharacterIndex=function(z,oe){for(var ie=oe[0],ce=0;oe[0]>=ce;ce++){var ye=z.loadCell(ce,this._workCell).getChars().length;this._workCell.getWidth()===0?ie--:ye>1&&oe[0]!==ce&&(ie+=ye-1)}return ie},x.prototype.setSelection=function(z,oe,ie){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[z,oe],this._model.selectionStartLength=ie,this.refresh()},x.prototype._getWordAt=function(z,oe,ie,ce){if(ie===void 0&&(ie=!0),ce===void 0&&(ce=!0),!(z[0]>=this._bufferService.cols)){var ye=this._bufferService.buffer,_e=ye.lines.get(z[1]);if(_e){var xe=ye.translateBufferLineToString(z[1],!1),Ce=this._convertViewportColToCharacterIndex(_e,z),Te=Ce,Me=z[0]-Ce,pt=0,Ve=0,gt=0,Ae=0;if(xe.charAt(Ce)===" "){for(;Ce>0&&xe.charAt(Ce-1)===" ";)Ce--;for(;Te<xe.length&&xe.charAt(Te+1)===" ";)Te++}else{var De=z[0],Ie=z[0];_e.getWidth(De)===0&&(pt++,De--),_e.getWidth(Ie)===2&&(Ve++,Ie++);var tt=_e.getString(Ie).length;for(tt>1&&(Ae+=tt-1,Te+=tt-1);De>0&&Ce>0&&!this._isCharWordSeparator(_e.loadCell(De-1,this._workCell));){_e.loadCell(De-1,this._workCell);var Ze=this._workCell.getChars().length;this._workCell.getWidth()===0?(pt++,De--):Ze>1&&(gt+=Ze-1,Ce-=Ze-1),Ce--,De--}for(;Ie<_e.length&&Te+1<xe.length&&!this._isCharWordSeparator(_e.loadCell(Ie+1,this._workCell));){_e.loadCell(Ie+1,this._workCell);var bt=this._workCell.getChars().length;this._workCell.getWidth()===2?(Ve++,Ie++):bt>1&&(Ae+=bt-1,Te+=bt-1),Te++,Ie++}}Te++;var wt=Ce+Me-pt+gt,Kt=Math.min(this._bufferService.cols,Te-Ce+pt+Ve-gt-Ae);if(oe||xe.slice(Ce,Te).trim()!==""){if(ie&&wt===0&&_e.getCodePoint(0)!==32){var Qt=ye.lines.get(z[1]-1);if(Qt&&_e.isWrapped&&Qt.getCodePoint(this._bufferService.cols-1)!==32){var rt=this._getWordAt([this._bufferService.cols-1,z[1]-1],!1,!0,!1);if(rt){var st=this._bufferService.cols-rt.start;wt-=st,Kt+=st}}}if(ce&&wt+Kt===this._bufferService.cols&&_e.getCodePoint(this._bufferService.cols-1)!==32){var Ct=ye.lines.get(z[1]+1);if(Ct&&Ct.isWrapped&&Ct.getCodePoint(0)!==32){var Gt=this._getWordAt([0,z[1]+1],!1,!1,!0);Gt&&(Kt+=Gt.length)}}return{start:wt,length:Kt}}}}},x.prototype._selectWordAt=function(z,oe){var ie=this._getWordAt(z,oe);if(ie){for(;ie.start<0;)ie.start+=this._bufferService.cols,z[1]--;this._model.selectionStart=[ie.start,z[1]],this._model.selectionStartLength=ie.length}},x.prototype._selectToWordAt=function(z){var oe=this._getWordAt(z,!0);if(oe){for(var ie=z[1];oe.start<0;)oe.start+=this._bufferService.cols,ie--;if(!this._model.areSelectionValuesReversed())for(;oe.start+oe.length>this._bufferService.cols;)oe.length-=this._bufferService.cols,ie++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?oe.start:oe.start+oe.length,ie]}},x.prototype._isCharWordSeparator=function(z){return z.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(z.getChars())>=0},x.prototype._selectLineAt=function(z){var oe=this._bufferService.buffer.getWrappedRangeForLine(z);this._model.selectionStart=[0,oe.first],this._model.selectionEnd=[this._bufferService.cols,oe.last],this._model.selectionStartLength=0},x=ve([de(2,se.IBufferService),de(3,se.ICoreService),de(4,fe.IMouseService),de(5,se.IOptionsService),de(6,fe.IRenderService)],x)}(ne.Disposable);ee.SelectionService=E},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionModel=void 0;var ue=function(){function be(ve){this._bufferService=ve,this.isSelectAllActive=!1,this.selectionStartLength=0}return be.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(be.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var ve=this.selectionStart[0]+this.selectionStartLength;return ve>this._bufferService.cols?[ve%this._bufferService.cols,this.selectionStart[1]+Math.floor(ve/this._bufferService.cols)]:[ve,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),be.prototype.areSelectionValuesReversed=function(){var ve=this.selectionStart,de=this.selectionEnd;return!(!ve||!de)&&(ve[1]>de[1]||ve[1]===de[1]&&ve[0]>de[0])},be.prototype.onTrim=function(ve){return this.selectionStart&&(this.selectionStart[1]-=ve),this.selectionEnd&&(this.selectionEnd[1]-=ve),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},be}();ee.SelectionModel=ue},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.moveToCellSequence=void 0;var ue=te(12);function be(le,fe,se,me){var re=le-ve(se,le),ne=fe-ve(se,fe);return he(Math.abs(re-ne)-function(a,y,E){for(var b=0,x=a-ve(E,a),z=y-ve(E,y),oe=0;oe<Math.abs(x-z);oe++){var ie=de(a,y)==="A"?-1:1,ce=E.buffer.lines.get(x+ie*oe);ce&&ce.isWrapped&&b++}return b}(le,fe,se),ae(de(le,fe),me))}function ve(le,fe){for(var se=0,me=le.buffer.lines.get(fe),re=me&&me.isWrapped;re&&fe>=0&&fe<le.rows;)se++,re=(me=le.buffer.lines.get(--fe))&&me.isWrapped;return se}function de(le,fe){return le>fe?"A":"B"}function pe(le,fe,se,me,re,ne){for(var a=le,y=fe,E="";a!==se||y!==me;)a+=re?1:-1,re&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,le,a),a=0,le=0,y++):!re&&a<0&&(E+=ne.buffer.translateBufferLineToString(y,!1,0,le+1),le=a=ne.cols-1,y--);return E+ne.buffer.translateBufferLineToString(y,!1,le,a)}function ae(le,fe){var se=fe?"O":"[";return ue.C0.ESC+se+le}function he(le,fe){le=Math.floor(le);for(var se="",me=0;me<le;me++)se+=fe;return se}ee.moveToCellSequence=function(le,fe,se,me){var re,ne=se.buffer.x,a=se.buffer.y;if(!se.buffer.hasScrollback)return function(E,b,x,z,oe,ie){return be(b,z,oe,ie).length===0?"":he(pe(E,b,E,b-ve(oe,b),!1,oe).length,ae("D",ie))}(ne,a,0,fe,se,me)+be(a,fe,se,me)+function(E,b,x,z,oe,ie){var ce;ce=be(b,z,oe,ie).length>0?z-ve(oe,z):b;var ye=z,_e=function(xe,Ce,Te,Me,pt,Ve){var gt;return gt=be(Te,Me,pt,Ve).length>0?Me-ve(pt,Me):Ce,xe<Te&&gt<=Me||xe>=Te&&gt<Me?"C":"D"}(E,b,x,z,oe,ie);return he(pe(E,ce,x,ye,_e==="C",oe).length,ae(_e,ie))}(ne,a,le,fe,se,me);if(a===fe)return re=ne>le?"D":"C",he(Math.abs(ne-le),ae(re,me));re=a>fe?"D":"C";var y=Math.abs(a-fe);return he(function(E,b){return b.cols-E}(a>fe?le:ne,se)+(y-1)*se.cols+1+((a>fe?ne:le)-1),ae(re,me))}},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(pe,ae,he,le){var fe,se=arguments.length,me=se<3?ae:le===null?le=Object.getOwnPropertyDescriptor(ae,he):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(pe,ae,he,le);else for(var re=pe.length-1;re>=0;re--)(fe=pe[re])&&(me=(se<3?fe(me):se>3?fe(ae,he,me):fe(ae,he))||me);return se>3&&me&&Object.defineProperty(ae,he,me),me},be=this&&this.__param||function(pe,ae){return function(he,le){ae(he,le,pe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SoundService=void 0;var ve=te(1),de=function(){function pe(ae){this._optionsService=ae}return Object.defineProperty(pe,"audioContext",{get:function(){if(!pe._audioContext){var ae=window.AudioContext||window.webkitAudioContext;if(!ae)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;pe._audioContext=new ae}return pe._audioContext},enumerable:!1,configurable:!0}),pe.prototype.playBellSound=function(){var ae=pe.audioContext;if(ae){var he=ae.createBufferSource();ae.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(le){he.buffer=le,he.connect(ae.destination),he.start(0)})}},pe.prototype._base64ToArrayBuffer=function(ae){for(var he=window.atob(ae),le=he.length,fe=new Uint8Array(le),se=0;se<le;se++)fe[se]=he.charCodeAt(se);return fe.buffer},pe.prototype._removeMimeType=function(ae){return ae.split(",")[1]},pe=ue([be(0,ve.IOptionsService)],pe)}();ee.SoundService=de},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(se,me){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ue(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},de=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZoneManager=void 0;var pe=te(2),ae=te(7),he=te(5),le=te(1),fe=function(se){function me(re,ne,a,y,E,b){var x=se.call(this)||this;return x._element=re,x._screenElement=ne,x._bufferService=a,x._mouseService=y,x._selectionService=E,x._optionsService=b,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(ae.addDisposableDomListener(x._element,"mousedown",function(z){return x._onMouseDown(z)})),x._mouseMoveListener=function(z){return x._onMouseMove(z)},x._mouseLeaveListener=function(z){return x._onMouseLeave(z)},x._clickListener=function(z){return x._onClick(z)},x}return be(me,se),me.prototype.dispose=function(){se.prototype.dispose.call(this),this._deactivate()},me.prototype.add=function(re){this._zones.push(re),this._zones.length===1&&this._activate()},me.prototype.clearAll=function(re,ne){if(this._zones.length!==0){re&&ne||(re=0,ne=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>re&&y.y1<=ne+1||y.y2>re&&y.y2<=ne+1||y.y1<re&&y.y2>ne+1)&&(this._currentZone&&this._currentZone===y&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(a--,1))}this._zones.length===0&&this._deactivate()}},me.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},me.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},me.prototype._onMouseMove=function(re){this._lastHoverCoords[0]===re.pageX&&this._lastHoverCoords[1]===re.pageY||(this._onHover(re),this._lastHoverCoords=[re.pageX,re.pageY])},me.prototype._onHover=function(re){var ne=this,a=this._findZoneEventAt(re);a!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),a&&(this._currentZone=a,a.hoverCallback&&a.hoverCallback(re),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(re)},this._optionsService.options.linkTooltipHoverDuration)))},me.prototype._onTooltip=function(re){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(re);ne&&ne.tooltipCallback&&ne.tooltipCallback(re)},me.prototype._onMouseDown=function(re){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(re);ne!=null&&ne.willLinkActivate(re)&&(re.preventDefault(),re.stopImmediatePropagation())}},me.prototype._onMouseLeave=function(re){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},me.prototype._onClick=function(re){var ne=this._findZoneEventAt(re),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(re),re.preventDefault(),re.stopImmediatePropagation())},me.prototype._getSelectionLength=function(){var re=this._selectionService.selectionText;return re?re.length:0},me.prototype._findZoneEventAt=function(re){var ne=this._mouseService.getCoords(re,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var a=ne[0],y=ne[1],E=0;E<this._zones.length;E++){var b=this._zones[E];if(b.y1===b.y2){if(y===b.y1&&a>=b.x1&&a<b.x2)return b}else if(y===b.y1&&a>=b.x1||y===b.y2&&a<b.x2||y>b.y1&&y<b.y2)return b}},me=ve([de(2,le.IBufferService),de(3,he.IMouseService),de(4,he.ISelectionService),de(5,le.IOptionsService)],me)}(pe.Disposable);ee.MouseZoneManager=fe},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(me,re){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,a){ne.__proto__=a}||function(ne,a){for(var y in a)a.hasOwnProperty(y)&&(ne[y]=a[y])})(me,re)},function(me,re){function ne(){this.constructor=me}ue(me,re),me.prototype=re===null?Object.create(re):(ne.prototype=re.prototype,new ne)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AccessibilityManager=void 0;var ve=te(18),de=te(11),pe=te(31),ae=te(7),he=te(2),le=te(32),fe=te(17),se=function(me){function re(ne,a){var y=me.call(this)||this;y._terminal=ne,y._renderService=a,y._liveRegionLineCount=0,y._charsToConsume=[],y._charsToAnnounce="",y._accessibilityTreeRoot=document.createElement("div"),y._accessibilityTreeRoot.classList.add("xterm-accessibility"),y._rowContainer=document.createElement("div"),y._rowContainer.classList.add("xterm-accessibility-tree"),y._rowContainer.setAttribute("role","list"),y._rowElements=[];for(var E=0;E<y._terminal.rows;E++)y._rowElements[E]=y._createAccessibilityTreeNode(),y._rowContainer.appendChild(y._rowElements[E]);if(y._topBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,0)},y._bottomBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,1)},y._rowElements[0].addEventListener("focus",y._topBoundaryFocusListener),y._rowElements[y._rowElements.length-1].addEventListener("focus",y._bottomBoundaryFocusListener),y._refreshRowsDimensions(),y._accessibilityTreeRoot.appendChild(y._rowContainer),y._renderRowsDebouncer=new pe.RenderDebouncer(y._renderRows.bind(y)),y._refreshRows(),y._liveRegion=document.createElement("div"),y._liveRegion.classList.add("live-region"),y._liveRegion.setAttribute("aria-live","assertive"),y._accessibilityTreeRoot.appendChild(y._liveRegion),!y._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return y._terminal.element.insertAdjacentElement("afterbegin",y._accessibilityTreeRoot),y.register(y._renderRowsDebouncer),y.register(y._terminal.onResize(function(b){return y._onResize(b.rows)})),y.register(y._terminal.onRender(function(b){return y._refreshRows(b.start,b.end)})),y.register(y._terminal.onScroll(function(){return y._refreshRows()})),y.register(y._terminal.onA11yChar(function(b){return y._onChar(b)})),y.register(y._terminal.onLineFeed(function(){return y._onChar(`
`)})),y.register(y._terminal.onA11yTab(function(b){return y._onTab(b)})),y.register(y._terminal.onKey(function(b){return y._onKey(b.key)})),y.register(y._terminal.onBlur(function(){return y._clearLiveRegion()})),y.register(y._renderService.onDimensionsChange(function(){return y._refreshRowsDimensions()})),y._screenDprMonitor=new le.ScreenDprMonitor,y.register(y._screenDprMonitor),y._screenDprMonitor.setListener(function(){return y._refreshRowsDimensions()}),y.register(ae.addDisposableDomListener(window,"resize",function(){return y._refreshRowsDimensions()})),y}return be(re,me),re.prototype.dispose=function(){me.prototype.dispose.call(this),fe.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},re.prototype._onBoundaryFocus=function(ne,a){var y=ne.target,E=this._rowElements[a===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")!==(a===0?"1":""+this._terminal.buffer.lines.length)&&ne.relatedTarget===E){var b,x;if(a===0?(b=y,x=this._rowElements.pop(),this._rowContainer.removeChild(x)):(b=this._rowElements.shift(),x=y,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),x.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){var z=this._createAccessibilityTreeNode();this._rowElements.unshift(z),this._rowContainer.insertAdjacentElement("afterbegin",z)}else z=this._createAccessibilityTreeNode(),this._rowElements.push(z),this._rowContainer.appendChild(z);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),ne.preventDefault(),ne.stopImmediatePropagation()}},re.prototype._onResize=function(ne){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>ne;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},re.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},re.prototype._onTab=function(ne){for(var a=0;a<ne;a++)this._onChar(" ")},re.prototype._onChar=function(ne){var a=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==ne&&(this._charsToAnnounce+=ne):this._charsToAnnounce+=ne,ne===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=ve.tooMuchOutput)),de.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},re.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,de.isMac&&fe.removeElementFromParent(this._liveRegion)},re.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},re.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},re.prototype._renderRows=function(ne,a){for(var y=this._terminal.buffer,E=y.lines.length.toString(),b=ne;b<=a;b++){var x=y.translateBufferLineToString(y.ydisp+b,!0),z=(y.ydisp+b+1).toString(),oe=this._rowElements[b];oe&&(x.length===0?oe.innerHTML="&nbsp;":oe.textContent=x,oe.setAttribute("aria-posinset",z),oe.setAttribute("aria-setsize",E))}this._announceCharacters()},re.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var ne=0;ne<this._terminal.rows;ne++)this._refreshRowDimensions(this._rowElements[ne])}},re.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},re.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},re}(he.Disposable);ee.AccessibilityManager=se},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(y,E){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var z in x)x.hasOwnProperty(z)&&(b[z]=x[z])})(y,E)},function(y,E){function b(){this.constructor=y}ue(y,E),y.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),ve=this&&this.__decorate||function(y,E,b,x){var z,oe=arguments.length,ie=oe<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ie=Reflect.decorate(y,E,b,x);else for(var ce=y.length-1;ce>=0;ce--)(z=y[ce])&&(ie=(oe<3?z(ie):oe>3?z(E,b,ie):z(E,b))||ie);return oe>3&&ie&&Object.defineProperty(E,b,ie),ie},de=this&&this.__param||function(y,E){return function(b,x){E(b,x,y)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRenderer=void 0;var pe=te(58),ae=te(9),he=te(2),le=te(5),fe=te(1),se=te(0),me=te(10),re=te(17),ne=1,a=function(y){function E(b,x,z,oe,ie,ce,ye,_e,xe){var Ce=y.call(this)||this;return Ce._colors=b,Ce._element=x,Ce._screenElement=z,Ce._viewportElement=oe,Ce._linkifier=ie,Ce._linkifier2=ce,Ce._charSizeService=ye,Ce._optionsService=_e,Ce._bufferService=xe,Ce._terminalClass=ne++,Ce._rowElements=[],Ce._rowContainer=document.createElement("div"),Ce._rowContainer.classList.add("xterm-rows"),Ce._rowContainer.style.lineHeight="normal",Ce._rowContainer.setAttribute("aria-hidden","true"),Ce._refreshRowElements(Ce._bufferService.cols,Ce._bufferService.rows),Ce._selectionContainer=document.createElement("div"),Ce._selectionContainer.classList.add("xterm-selection"),Ce._selectionContainer.setAttribute("aria-hidden","true"),Ce.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Ce._updateDimensions(),Ce._injectCss(),Ce._rowFactory=new pe.DomRendererRowFactory(document,Ce._optionsService,Ce._colors),Ce._element.classList.add("xterm-dom-renderer-owner-"+Ce._terminalClass),Ce._screenElement.appendChild(Ce._rowContainer),Ce._screenElement.appendChild(Ce._selectionContainer),Ce._linkifier.onShowLinkUnderline(function(Te){return Ce._onLinkHover(Te)}),Ce._linkifier.onHideLinkUnderline(function(Te){return Ce._onLinkLeave(Te)}),Ce._linkifier2.onShowLinkUnderline(function(Te){return Ce._onLinkHover(Te)}),Ce._linkifier2.onHideLinkUnderline(function(Te){return Ce._onLinkLeave(Te)}),Ce}return be(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new se.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),re.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.prototype.dispose.call(this)},E.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var b=0,x=this._rowElements;b<x.length;b++){var z=x[b];z.style.width=this.dimensions.canvasWidth+"px",z.style.height=this.dimensions.actualCellHeight+"px",z.style.lineHeight=this.dimensions.actualCellHeight+"px",z.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var oe=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=oe,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},E.prototype.setColors=function(b){this._colors=b,this._injectCss()},E.prototype._injectCss=function(){var b=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var x=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";x+=this._terminalSelector+" span:not(."+pe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+pe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+pe.ITALIC_CLASS+" { font-style: italic;}",x+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",x+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",x+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+":not(."+pe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",x+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(z,oe){x+=b._terminalSelector+" .xterm-fg-"+oe+" { color: "+z.css+"; }"+b._terminalSelector+" .xterm-bg-"+oe+" { background-color: "+z.css+"; }"}),x+=this._terminalSelector+" .xterm-fg-"+ae.INVERTED_DEFAULT_COLOR+" { color: "+me.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+ae.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=x},E.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},E.prototype._refreshRowElements=function(b,x){for(var z=this._rowElements.length;z<=x;z++){var oe=document.createElement("div");this._rowContainer.appendChild(oe),this._rowElements.push(oe)}for(;this._rowElements.length>x;)this._rowContainer.removeChild(this._rowElements.pop())},E.prototype.onResize=function(b,x){this._refreshRowElements(b,x),this._updateDimensions()},E.prototype.onCharSizeChanged=function(){this._updateDimensions()},E.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},E.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},E.prototype.onSelectionChanged=function(b,x,z){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&x){var oe=b[1]-this._bufferService.buffer.ydisp,ie=x[1]-this._bufferService.buffer.ydisp,ce=Math.max(oe,0),ye=Math.min(ie,this._bufferService.rows-1);if(!(ce>=this._bufferService.rows||ye<0)){var _e=document.createDocumentFragment();if(z)_e.appendChild(this._createSelectionElement(ce,b[0],x[0],ye-ce+1));else{var xe=oe===ce?b[0]:0,Ce=ce===ye?x[0]:this._bufferService.cols;_e.appendChild(this._createSelectionElement(ce,xe,Ce));var Te=ye-ce-1;if(_e.appendChild(this._createSelectionElement(ce+1,0,this._bufferService.cols,Te)),ce!==ye){var Me=ie===ye?x[0]:this._bufferService.cols;_e.appendChild(this._createSelectionElement(ye,0,Me))}}this._selectionContainer.appendChild(_e)}}},E.prototype._createSelectionElement=function(b,x,z,oe){oe===void 0&&(oe=1);var ie=document.createElement("div");return ie.style.height=oe*this.dimensions.actualCellHeight+"px",ie.style.top=b*this.dimensions.actualCellHeight+"px",ie.style.left=x*this.dimensions.actualCellWidth+"px",ie.style.width=this.dimensions.actualCellWidth*(z-x)+"px",ie},E.prototype.onCursorMove=function(){},E.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},E.prototype.clear=function(){for(var b=0,x=this._rowElements;b<x.length;b++)x[b].innerHTML=""},E.prototype.renderRows=function(b,x){for(var z=this._bufferService.buffer.ybase+this._bufferService.buffer.y,oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),ie=this._optionsService.options.cursorBlink,ce=b;ce<=x;ce++){var ye=this._rowElements[ce];ye.innerHTML="";var _e=ce+this._bufferService.buffer.ydisp,xe=this._bufferService.buffer.lines.get(_e),Ce=this._optionsService.options.cursorStyle;ye.appendChild(this._rowFactory.createRow(xe,_e===z,Ce,oe,ie,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(E.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),E.prototype.registerCharacterJoiner=function(b){return-1},E.prototype.deregisterCharacterJoiner=function(b){return!1},E.prototype._onLinkHover=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)},E.prototype._onLinkLeave=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)},E.prototype._setCellUnderline=function(b,x,z,oe,ie,ce){for(;b!==x||z!==oe;){var ye=this._rowElements[z];if(!ye)return;var _e=ye.children[b];_e&&(_e.style.textDecoration=ce?"underline":"none"),++b>=ie&&(b=0,z++)}},E=ve([de(6,le.ICharSizeService),de(7,fe.IOptionsService),de(8,fe.IBufferService)],E)}(he.Disposable);ee.DomRenderer=a},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRendererRowFactory=ee.CURSOR_STYLE_UNDERLINE_CLASS=ee.CURSOR_STYLE_BAR_CLASS=ee.CURSOR_STYLE_BLOCK_CLASS=ee.CURSOR_BLINK_CLASS=ee.CURSOR_CLASS=ee.UNDERLINE_CLASS=ee.ITALIC_CLASS=ee.DIM_CLASS=ee.BOLD_CLASS=void 0;var ue=te(9),be=te(3),ve=te(4),de=te(10);ee.BOLD_CLASS="xterm-bold",ee.DIM_CLASS="xterm-dim",ee.ITALIC_CLASS="xterm-italic",ee.UNDERLINE_CLASS="xterm-underline",ee.CURSOR_CLASS="xterm-cursor",ee.CURSOR_BLINK_CLASS="xterm-cursor-blink",ee.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",ee.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",ee.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var pe=function(){function he(le,fe,se){this._document=le,this._optionsService=fe,this._colors=se,this._workCell=new ve.CellData}return he.prototype.setColors=function(le){this._colors=le},he.prototype.createRow=function(le,fe,se,me,re,ne,a){for(var y=this._document.createDocumentFragment(),E=0,b=Math.min(le.length,a)-1;b>=0;b--)if(le.loadCell(b,this._workCell).getCode()!==be.NULL_CELL_CODE||fe&&b===me){E=b+1;break}for(b=0;b<E;b++){le.loadCell(b,this._workCell);var x=this._workCell.getWidth();if(x!==0){var z=this._document.createElement("span");if(x>1&&(z.style.width=ne*x+"px"),fe&&b===me)switch(z.classList.add(ee.CURSOR_CLASS),re&&z.classList.add(ee.CURSOR_BLINK_CLASS),se){case"bar":z.classList.add(ee.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(ee.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(ee.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&z.classList.add(ee.BOLD_CLASS),this._workCell.isItalic()&&z.classList.add(ee.ITALIC_CLASS),this._workCell.isDim()&&z.classList.add(ee.DIM_CLASS),this._workCell.isUnderline()&&z.classList.add(ee.UNDERLINE_CLASS),this._workCell.isInvisible()?z.textContent=be.WHITESPACE_CELL_CHAR:z.textContent=this._workCell.getChars()||be.WHITESPACE_CELL_CHAR;var oe=this._workCell.getFgColor(),ie=this._workCell.getFgColorMode(),ce=this._workCell.getBgColor(),ye=this._workCell.getBgColorMode(),_e=!!this._workCell.isInverse();if(_e){var xe=oe;oe=ce,ce=xe;var Ce=ie;ie=ye,ye=Ce}switch(ie){case 16777216:case 33554432:this._workCell.isBold()&&oe<8&&this._optionsService.options.drawBoldTextInBrightColors&&(oe+=8),this._applyMinimumContrast(z,this._colors.background,this._colors.ansi[oe])||z.classList.add("xterm-fg-"+oe);break;case 50331648:var Te=de.rgba.toColor(oe>>16&255,oe>>8&255,255&oe);this._applyMinimumContrast(z,this._colors.background,Te)||this._addStyle(z,"color:#"+ae(oe.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(z,this._colors.background,this._colors.foreground)||_e&&z.classList.add("xterm-fg-"+ue.INVERTED_DEFAULT_COLOR)}switch(ye){case 16777216:case 33554432:z.classList.add("xterm-bg-"+ce);break;case 50331648:this._addStyle(z,"background-color:#"+ae(ce.toString(16),"0",6));break;case 0:default:_e&&z.classList.add("xterm-bg-"+ue.INVERTED_DEFAULT_COLOR)}y.appendChild(z)}}return y},he.prototype._applyMinimumContrast=function(le,fe,se){if(this._optionsService.options.minimumContrastRatio===1)return!1;var me=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return me===void 0&&(me=de.color.ensureContrastRatio(fe,se,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,me!=null?me:null)),!!me&&(this._addStyle(le,"color:"+me.css),!0)},he.prototype._addStyle=function(le,fe){le.setAttribute("style",""+(le.getAttribute("style")||"")+fe+";")},he}();function ae(he,le,fe){for(;he.length<fe;)he=le+he;return he}ee.DomRendererRowFactory=pe},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.evaluateKeyboardEvent=void 0;var ue=te(12),be={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};ee.evaluateKeyboardEvent=function(ve,de,pe,ae){var he={type:0,cancel:!1,key:void 0},le=(ve.shiftKey?1:0)|(ve.altKey?2:0)|(ve.ctrlKey?4:0)|(ve.metaKey?8:0);switch(ve.keyCode){case 0:ve.key==="UIKeyInputUpArrow"?he.key=de?ue.C0.ESC+"OA":ue.C0.ESC+"[A":ve.key==="UIKeyInputLeftArrow"?he.key=de?ue.C0.ESC+"OD":ue.C0.ESC+"[D":ve.key==="UIKeyInputRightArrow"?he.key=de?ue.C0.ESC+"OC":ue.C0.ESC+"[C":ve.key==="UIKeyInputDownArrow"&&(he.key=de?ue.C0.ESC+"OB":ue.C0.ESC+"[B");break;case 8:if(ve.shiftKey){he.key=ue.C0.BS;break}if(ve.altKey){he.key=ue.C0.ESC+ue.C0.DEL;break}he.key=ue.C0.DEL;break;case 9:if(ve.shiftKey){he.key=ue.C0.ESC+"[Z";break}he.key=ue.C0.HT,he.cancel=!0;break;case 13:he.key=ve.altKey?ue.C0.ESC+ue.C0.CR:ue.C0.CR,he.cancel=!0;break;case 27:he.key=ue.C0.ESC,ve.altKey&&(he.key=ue.C0.ESC+ue.C0.ESC),he.cancel=!0;break;case 37:if(ve.metaKey)break;le?(he.key=ue.C0.ESC+"[1;"+(le+1)+"D",he.key===ue.C0.ESC+"[1;3D"&&(he.key=ue.C0.ESC+(pe?"b":"[1;5D"))):he.key=de?ue.C0.ESC+"OD":ue.C0.ESC+"[D";break;case 39:if(ve.metaKey)break;le?(he.key=ue.C0.ESC+"[1;"+(le+1)+"C",he.key===ue.C0.ESC+"[1;3C"&&(he.key=ue.C0.ESC+(pe?"f":"[1;5C"))):he.key=de?ue.C0.ESC+"OC":ue.C0.ESC+"[C";break;case 38:if(ve.metaKey)break;le?(he.key=ue.C0.ESC+"[1;"+(le+1)+"A",pe||he.key!==ue.C0.ESC+"[1;3A"||(he.key=ue.C0.ESC+"[1;5A")):he.key=de?ue.C0.ESC+"OA":ue.C0.ESC+"[A";break;case 40:if(ve.metaKey)break;le?(he.key=ue.C0.ESC+"[1;"+(le+1)+"B",pe||he.key!==ue.C0.ESC+"[1;3B"||(he.key=ue.C0.ESC+"[1;5B")):he.key=de?ue.C0.ESC+"OB":ue.C0.ESC+"[B";break;case 45:ve.shiftKey||ve.ctrlKey||(he.key=ue.C0.ESC+"[2~");break;case 46:he.key=le?ue.C0.ESC+"[3;"+(le+1)+"~":ue.C0.ESC+"[3~";break;case 36:he.key=le?ue.C0.ESC+"[1;"+(le+1)+"H":de?ue.C0.ESC+"OH":ue.C0.ESC+"[H";break;case 35:he.key=le?ue.C0.ESC+"[1;"+(le+1)+"F":de?ue.C0.ESC+"OF":ue.C0.ESC+"[F";break;case 33:ve.shiftKey?he.type=2:he.key=ue.C0.ESC+"[5~";break;case 34:ve.shiftKey?he.type=3:he.key=ue.C0.ESC+"[6~";break;case 112:he.key=le?ue.C0.ESC+"[1;"+(le+1)+"P":ue.C0.ESC+"OP";break;case 113:he.key=le?ue.C0.ESC+"[1;"+(le+1)+"Q":ue.C0.ESC+"OQ";break;case 114:he.key=le?ue.C0.ESC+"[1;"+(le+1)+"R":ue.C0.ESC+"OR";break;case 115:he.key=le?ue.C0.ESC+"[1;"+(le+1)+"S":ue.C0.ESC+"OS";break;case 116:he.key=le?ue.C0.ESC+"[15;"+(le+1)+"~":ue.C0.ESC+"[15~";break;case 117:he.key=le?ue.C0.ESC+"[17;"+(le+1)+"~":ue.C0.ESC+"[17~";break;case 118:he.key=le?ue.C0.ESC+"[18;"+(le+1)+"~":ue.C0.ESC+"[18~";break;case 119:he.key=le?ue.C0.ESC+"[19;"+(le+1)+"~":ue.C0.ESC+"[19~";break;case 120:he.key=le?ue.C0.ESC+"[20;"+(le+1)+"~":ue.C0.ESC+"[20~";break;case 121:he.key=le?ue.C0.ESC+"[21;"+(le+1)+"~":ue.C0.ESC+"[21~";break;case 122:he.key=le?ue.C0.ESC+"[23;"+(le+1)+"~":ue.C0.ESC+"[23~";break;case 123:he.key=le?ue.C0.ESC+"[24;"+(le+1)+"~":ue.C0.ESC+"[24~";break;default:if(!ve.ctrlKey||ve.shiftKey||ve.altKey||ve.metaKey)if(pe&&!ae||!ve.altKey||ve.metaKey)pe&&!ve.altKey&&!ve.ctrlKey&&ve.metaKey?ve.keyCode===65&&(he.type=1):ve.key&&!ve.ctrlKey&&!ve.altKey&&!ve.metaKey&&ve.keyCode>=48&&ve.key.length===1?he.key=ve.key:ve.key&&ve.ctrlKey&&ve.key==="_"&&(he.key=ue.C0.US);else{var fe=be[ve.keyCode],se=fe&&fe[ve.shiftKey?1:0];if(se)he.key=ue.C0.ESC+se;else if(ve.keyCode>=65&&ve.keyCode<=90){var me=ve.ctrlKey?ve.keyCode-64:ve.keyCode+32;he.key=ue.C0.ESC+String.fromCharCode(me)}}else ve.keyCode>=65&&ve.keyCode<=90?he.key=String.fromCharCode(ve.keyCode-64):ve.keyCode===32?he.key=ue.C0.NUL:ve.keyCode>=51&&ve.keyCode<=55?he.key=String.fromCharCode(ve.keyCode-51+27):ve.keyCode===56?he.key=ue.C0.DEL:ve.keyCode===219?he.key=ue.C0.ESC:ve.keyCode===220?he.key=ue.C0.FS:ve.keyCode===221&&(he.key=ue.C0.GS)}return he}},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(ne,a){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var b in E)E.hasOwnProperty(b)&&(y[b]=E[b])})(ne,a)},function(ne,a){function y(){this.constructor=ne}ue(ne,a),ne.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),ve=this&&this.__decorate||function(ne,a,y,E){var b,x=arguments.length,z=x<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,y):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(ne,a,y,E);else for(var oe=ne.length-1;oe>=0;oe--)(b=ne[oe])&&(z=(x<3?b(z):x>3?b(a,y,z):b(a,y))||z);return x>3&&z&&Object.defineProperty(a,y,z),z},de=this&&this.__param||function(ne,a){return function(y,E){a(y,E,ne)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderService=void 0;var pe=te(31),ae=te(0),he=te(2),le=te(32),fe=te(7),se=te(1),me=te(5),re=function(ne){function a(y,E,b,x,z,oe){var ie=ne.call(this)||this;if(ie._renderer=y,ie._rowCount=E,ie._isPaused=!1,ie._needsFullRefresh=!1,ie._isNextRenderRedrawOnly=!0,ie._needsSelectionRefresh=!1,ie._canvasWidth=0,ie._canvasHeight=0,ie._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ie._onDimensionsChange=new ae.EventEmitter,ie._onRender=new ae.EventEmitter,ie._onRefreshRequest=new ae.EventEmitter,ie.register({dispose:function(){return ie._renderer.dispose()}}),ie._renderDebouncer=new pe.RenderDebouncer(function(ye,_e){return ie._renderRows(ye,_e)}),ie.register(ie._renderDebouncer),ie._screenDprMonitor=new le.ScreenDprMonitor,ie._screenDprMonitor.setListener(function(){return ie.onDevicePixelRatioChange()}),ie.register(ie._screenDprMonitor),ie.register(oe.onResize(function(ye){return ie._fullRefresh()})),ie.register(x.onOptionChange(function(){return ie._renderer.onOptionsChanged()})),ie.register(z.onCharSizeChange(function(){return ie.onCharSizeChanged()})),ie._renderer.onRequestRedraw(function(ye){return ie.refreshRows(ye.start,ye.end,!0)}),ie.register(fe.addDisposableDomListener(window,"resize",function(){return ie.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ce=new IntersectionObserver(function(ye){return ie._onIntersectionChange(ye[ye.length-1])},{threshold:0});ce.observe(b),ie.register({dispose:function(){return ce.disconnect()}})}return ie}return be(a,ne),Object.defineProperty(a.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),a.prototype._onIntersectionChange=function(y){this._isPaused=y.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},a.prototype.refreshRows=function(y,E,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(y,E,this._rowCount))},a.prototype._renderRows=function(y,E){this._renderer.renderRows(y,E),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:y,end:E}),this._isNextRenderRedrawOnly=!0},a.prototype.resize=function(y,E){this._rowCount=E,this._fireOnCanvasResize()},a.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},a.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},a.prototype.dispose=function(){ne.prototype.dispose.call(this)},a.prototype.setRenderer=function(y){var E=this;this._renderer.dispose(),this._renderer=y,this._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},a.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},a.prototype.setColors=function(y){this._renderer.setColors(y),this._fullRefresh()},a.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},a.prototype.onResize=function(y,E){this._renderer.onResize(y,E),this._fullRefresh()},a.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},a.prototype.onBlur=function(){this._renderer.onBlur()},a.prototype.onFocus=function(){this._renderer.onFocus()},a.prototype.onSelectionChanged=function(y,E,b){this._selectionState.start=y,this._selectionState.end=E,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(y,E,b)},a.prototype.onCursorMove=function(){this._renderer.onCursorMove()},a.prototype.clear=function(){this._renderer.clear()},a.prototype.registerCharacterJoiner=function(y){return this._renderer.registerCharacterJoiner(y)},a.prototype.deregisterCharacterJoiner=function(y){return this._renderer.deregisterCharacterJoiner(y)},a=ve([de(3,se.IOptionsService),de(4,me.ICharSizeService),de(5,se.IBufferService)],a)}(he.Disposable);ee.RenderService=re},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(he,le,fe,se){var me,re=arguments.length,ne=re<3?le:se===null?se=Object.getOwnPropertyDescriptor(le,fe):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(he,le,fe,se);else for(var a=he.length-1;a>=0;a--)(me=he[a])&&(ne=(re<3?me(ne):re>3?me(le,fe,ne):me(le,fe))||ne);return re>3&&ne&&Object.defineProperty(le,fe,ne),ne},be=this&&this.__param||function(he,le){return function(fe,se){le(fe,se,he)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharSizeService=void 0;var ve=te(1),de=te(0),pe=function(){function he(le,fe,se){this._optionsService=se,this.width=0,this.height=0,this._onCharSizeChange=new de.EventEmitter,this._measureStrategy=new ae(le,fe,this._optionsService)}return Object.defineProperty(he.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),he.prototype.measure=function(){var le=this._measureStrategy.measure();le.width===this.width&&le.height===this.height||(this.width=le.width,this.height=le.height,this._onCharSizeChange.fire())},he=ue([be(2,ve.IOptionsService)],he)}();ee.CharSizeService=pe;var ae=function(){function he(le,fe,se){this._document=le,this._parentElement=fe,this._optionsService=se,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return he.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var le=this._measureElement.getBoundingClientRect();return le.width!==0&&le.height!==0&&(this._result.width=le.width,this._result.height=Math.ceil(le.height)),this._result},he}()},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(ae,he,le,fe){var se,me=arguments.length,re=me<3?he:fe===null?fe=Object.getOwnPropertyDescriptor(he,le):fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ae,he,le,fe);else for(var ne=ae.length-1;ne>=0;ne--)(se=ae[ne])&&(re=(me<3?se(re):me>3?se(he,le,re):se(he,le))||re);return me>3&&re&&Object.defineProperty(he,le,re),re},be=this&&this.__param||function(ae,he){return function(le,fe){he(le,fe,ae)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseService=void 0;var ve=te(5),de=te(30),pe=function(){function ae(he,le){this._renderService=he,this._charSizeService=le}return ae.prototype.getCoords=function(he,le,fe,se,me){return de.getCoords(he,le,fe,se,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,me)},ae.prototype.getRawByteCoords=function(he,le,fe,se){var me=this.getCoords(he,le,fe,se);return de.getRawByteCoords(me)},ae=ue([be(0,ve.IRenderService),be(1,ve.ICharSizeService)],ae)}();ee.MouseService=pe},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(se,me){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ue(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},de=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Linkifier2=void 0;var pe=te(1),ae=te(0),he=te(2),le=te(7),fe=function(se){function me(re){var ne=se.call(this)||this;return ne._bufferService=re,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new ae.EventEmitter),ne._onHideLinkUnderline=ne.register(new ae.EventEmitter),ne.register(he.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return be(me,se),Object.defineProperty(me.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),me.prototype.registerLinkProvider=function(re){var ne=this;return this._linkProviders.push(re),{dispose:function(){var a=ne._linkProviders.indexOf(re);a!==-1&&ne._linkProviders.splice(a,1)}}},me.prototype.attachToDom=function(re,ne,a){var y=this;this._element=re,this._mouseService=ne,this._renderService=a,this.register(le.addDisposableDomListener(this._element,"mouseleave",function(){y._isMouseOut=!0,y._clearCurrentLink()})),this.register(le.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(le.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},me.prototype._onMouseMove=function(re){if(this._lastMouseEvent=re,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=re.composedPath(),y=0;y<a.length;y++){var E=a[y];if(E.classList.contains("xterm"))break;if(E.classList.contains("xterm-hover"))return}this._lastBufferCell&&ne.x===this._lastBufferCell.x&&ne.y===this._lastBufferCell.y||(this._onHover(ne),this._lastBufferCell=ne)}}},me.prototype._onHover=function(re){if(this._activeLine!==re.y)return this._clearCurrentLink(),void this._askForLink(re,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,re)||(this._clearCurrentLink(),this._askForLink(re,!0))},me.prototype._askForLink=function(re,ne){var a=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=re.y);var y=!1;this._linkProviders.forEach(function(E,b){var x;ne?!((x=a._activeProviderReplies)===null||x===void 0)&&x.get(b)&&(y=a._checkLinkProviderResult(b,re,y)):E.provideLinks(re.y,function(z){var oe,ie;if(!a._isMouseOut){var ce=z==null?void 0:z.map(function(ye){return{link:ye}});(oe=a._activeProviderReplies)===null||oe===void 0||oe.set(b,ce),y=a._checkLinkProviderResult(b,re,y),((ie=a._activeProviderReplies)===null||ie===void 0?void 0:ie.size)===a._linkProviders.length&&a._removeIntersectingLinks(re.y,a._activeProviderReplies)}})})},me.prototype._removeIntersectingLinks=function(re,ne){for(var a=new Set,y=0;y<ne.size;y++){var E=ne.get(y);if(E)for(var b=0;b<E.length;b++)for(var x=E[b],z=x.link.range.start.y<re?0:x.link.range.start.x,oe=x.link.range.end.y>re?this._bufferService.cols:x.link.range.end.x,ie=z;ie<=oe;ie++){if(a.has(ie)){E.splice(b--,1);break}a.add(ie)}}},me.prototype._checkLinkProviderResult=function(re,ne,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(re),x=!1,z=0;z<re;z++)this._activeProviderReplies.has(z)&&!this._activeProviderReplies.get(z)||(x=!0);if(!x&&b){var oe=b.find(function(ce){return E._linkAtPosition(ce.link,ne)});oe&&(a=!0,this._handleNewLink(oe))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(z=0;z<this._activeProviderReplies.size;z++){var ie=(y=this._activeProviderReplies.get(z))===null||y===void 0?void 0:y.find(function(ce){return E._linkAtPosition(ce.link,ne)});if(ie){a=!0,this._handleNewLink(ie);break}}return a},me.prototype._onClick=function(re){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(re,this._currentLink.link.text)}},me.prototype._clearCurrentLink=function(re,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!re||!ne||this._currentLink.link.range.start.y>=re&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,he.disposeArray(this._linkCacheDisposables))},me.prototype._handleNewLink=function(re){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(re.link,a)&&(this._currentLink=re,this._currentLink.state={decorations:{underline:re.link.decorations===void 0||re.link.decorations.underline,pointerCursor:re.link.decorations===void 0||re.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,re.link,this._lastMouseEvent),re.link.decorations={},Object.defineProperties(re.link.decorations,{pointerCursor:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.pointerCursor},set:function(y){var E,b;!((E=ne._currentLink)===null||E===void 0)&&E.state&&ne._currentLink.state.decorations.pointerCursor!==y&&(ne._currentLink.state.decorations.pointerCursor=y,ne._currentLink.state.isHovered&&((b=ne._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",y)))}},underline:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.underline},set:function(y){var E,b,x;!((E=ne._currentLink)===null||E===void 0)&&E.state&&((x=(b=ne._currentLink)===null||b===void 0?void 0:b.state)===null||x===void 0?void 0:x.decorations.underline)!==y&&(ne._currentLink.state.decorations.underline=y,ne._currentLink.state.isHovered&&ne._fireUnderlineEvent(re.link,y))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(y){var E=y.start===0?0:y.start+1+ne._bufferService.buffer.ydisp;ne._clearCurrentLink(E,y.end+1+ne._bufferService.buffer.ydisp)})))}},me.prototype._linkHover=function(re,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!0),this._currentLink.state.decorations.pointerCursor&&re.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},me.prototype._fireUnderlineEvent=function(re,ne){var a=re.range,y=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-y-1,a.end.x,a.end.y-y-1,void 0);(ne?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)},me.prototype._linkLeave=function(re,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!1),this._currentLink.state.decorations.pointerCursor&&re.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},me.prototype._linkAtPosition=function(re,ne){var a=re.range.start.y===re.range.end.y,y=re.range.start.y<ne.y,E=re.range.end.y>ne.y;return(a&&re.range.start.x<=ne.x&&re.range.end.x>=ne.x||y&&re.range.end.x>=ne.x||E&&re.range.start.x<=ne.x||y&&E)&&re.range.start.y<=ne.y&&re.range.end.y>=ne.y},me.prototype._positionFromMouseEvent=function(re,ne,a){var y=a.getCoords(re,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},me.prototype._createLinkUnderlineEvent=function(re,ne,a,y,E){return{x1:re,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},me=ve([de(0,pe.IBufferService)],me)}(he.Disposable);ee.Linkifier2=fe},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreBrowserService=void 0;var ue=function(){function be(ve){this._textarea=ve}return Object.defineProperty(be.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),be}();ee.CoreBrowserService=ue},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(z,oe){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ce){ie.__proto__=ce}||function(ie,ce){for(var ye in ce)ce.hasOwnProperty(ye)&&(ie[ye]=ce[ye])})(z,oe)},function(z,oe){function ie(){this.constructor=z}ue(z,oe),z.prototype=oe===null?Object.create(oe):(ie.prototype=oe.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreTerminal=void 0;var ve=te(2),de=te(1),pe=te(66),ae=te(67),he=te(68),le=te(74),fe=te(75),se=te(0),me=te(76),re=te(77),ne=te(78),a=te(80),y=te(81),E=te(19),b=te(82),x=function(z){function oe(ie){var ce=z.call(this)||this;return ce._onBinary=new se.EventEmitter,ce._onData=new se.EventEmitter,ce._onLineFeed=new se.EventEmitter,ce._onResize=new se.EventEmitter,ce._onScroll=new se.EventEmitter,ce._instantiationService=new pe.InstantiationService,ce.optionsService=new le.OptionsService(ie),ce._instantiationService.setService(de.IOptionsService,ce.optionsService),ce._bufferService=ce.register(ce._instantiationService.createInstance(he.BufferService)),ce._instantiationService.setService(de.IBufferService,ce._bufferService),ce._logService=ce._instantiationService.createInstance(ae.LogService),ce._instantiationService.setService(de.ILogService,ce._logService),ce._coreService=ce.register(ce._instantiationService.createInstance(fe.CoreService,function(){return ce.scrollToBottom()})),ce._instantiationService.setService(de.ICoreService,ce._coreService),ce._coreMouseService=ce._instantiationService.createInstance(me.CoreMouseService),ce._instantiationService.setService(de.ICoreMouseService,ce._coreMouseService),ce._dirtyRowService=ce._instantiationService.createInstance(re.DirtyRowService),ce._instantiationService.setService(de.IDirtyRowService,ce._dirtyRowService),ce.unicodeService=ce._instantiationService.createInstance(ne.UnicodeService),ce._instantiationService.setService(de.IUnicodeService,ce.unicodeService),ce._charsetService=ce._instantiationService.createInstance(a.CharsetService),ce._instantiationService.setService(de.ICharsetService,ce._charsetService),ce._inputHandler=new E.InputHandler(ce._bufferService,ce._charsetService,ce._coreService,ce._dirtyRowService,ce._logService,ce.optionsService,ce._coreMouseService,ce.unicodeService),ce.register(se.forwardEvent(ce._inputHandler.onLineFeed,ce._onLineFeed)),ce.register(ce._inputHandler),ce.register(se.forwardEvent(ce._bufferService.onResize,ce._onResize)),ce.register(se.forwardEvent(ce._coreService.onData,ce._onData)),ce.register(se.forwardEvent(ce._coreService.onBinary,ce._onBinary)),ce.register(ce.optionsService.onOptionChange(function(ye){return ce._updateOptions(ye)})),ce._writeBuffer=new b.WriteBuffer(function(ye){return ce._inputHandler.parse(ye)}),ce}return be(oe,z),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){var ie;this._isDisposed||(z.prototype.dispose.call(this),(ie=this._windowsMode)===null||ie===void 0||ie.dispose(),this._windowsMode=void 0)},oe.prototype.write=function(ie,ce){this._writeBuffer.write(ie,ce)},oe.prototype.writeSync=function(ie){this._writeBuffer.writeSync(ie)},oe.prototype.resize=function(ie,ce){isNaN(ie)||isNaN(ce)||(ie=Math.max(ie,he.MINIMUM_COLS),ce=Math.max(ce,he.MINIMUM_ROWS),this._bufferService.resize(ie,ce))},oe.prototype.scroll=function(ie,ce){ce===void 0&&(ce=!1);var ye,_e=this._bufferService.buffer;(ye=this._cachedBlankLine)&&ye.length===this.cols&&ye.getFg(0)===ie.fg&&ye.getBg(0)===ie.bg||(ye=_e.getBlankLine(ie,ce),this._cachedBlankLine=ye),ye.isWrapped=ce;var xe=_e.ybase+_e.scrollTop,Ce=_e.ybase+_e.scrollBottom;if(_e.scrollTop===0){var Te=_e.lines.isFull;Ce===_e.lines.length-1?Te?_e.lines.recycle().copyFrom(ye):_e.lines.push(ye.clone()):_e.lines.splice(Ce+1,0,ye.clone()),Te?this._bufferService.isUserScrolling&&(_e.ydisp=Math.max(_e.ydisp-1,0)):(_e.ybase++,this._bufferService.isUserScrolling||_e.ydisp++)}else{var Me=Ce-xe+1;_e.lines.shiftElements(xe+1,Me-1,-1),_e.lines.set(Ce,ye.clone())}this._bufferService.isUserScrolling||(_e.ydisp=_e.ybase),this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom),this._onScroll.fire(_e.ydisp)},oe.prototype.scrollLines=function(ie,ce){var ye=this._bufferService.buffer;if(ie<0){if(ye.ydisp===0)return;this._bufferService.isUserScrolling=!0}else ie+ye.ydisp>=ye.ybase&&(this._bufferService.isUserScrolling=!1);var _e=ye.ydisp;ye.ydisp=Math.max(Math.min(ye.ydisp+ie,ye.ybase),0),_e!==ye.ydisp&&(ce||this._onScroll.fire(ye.ydisp))},oe.prototype.scrollPages=function(ie){this.scrollLines(ie*(this.rows-1))},oe.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},oe.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},oe.prototype.scrollToLine=function(ie){var ce=ie-this._bufferService.buffer.ydisp;ce!==0&&this.scrollLines(ce)},oe.prototype.addEscHandler=function(ie,ce){return this._inputHandler.addEscHandler(ie,ce)},oe.prototype.addDcsHandler=function(ie,ce){return this._inputHandler.addDcsHandler(ie,ce)},oe.prototype.addCsiHandler=function(ie,ce){return this._inputHandler.addCsiHandler(ie,ce)},oe.prototype.addOscHandler=function(ie,ce){return this._inputHandler.addOscHandler(ie,ce)},oe.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},oe.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},oe.prototype._updateOptions=function(ie){var ce;switch(ie){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ce=this._windowsMode)===null||ce===void 0||ce.dispose(),this._windowsMode=void 0)}},oe.prototype._enableWindowsMode=function(){var ie=this;if(!this._windowsMode){var ce=[];ce.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),ce.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(ie._bufferService),!1})),this._windowsMode={dispose:function(){for(var ye=0,_e=ce;ye<_e.length;ye++)_e[ye].dispose()}}}},oe}(ve.Disposable);ee.CoreTerminal=x},function(Ge,ee,te){"use strict";var ue=this&&this.__spreadArrays||function(){for(var ae=0,he=0,le=arguments.length;he<le;he++)ae+=arguments[he].length;var fe=Array(ae),se=0;for(he=0;he<le;he++)for(var me=arguments[he],re=0,ne=me.length;re<ne;re++,se++)fe[se]=me[re];return fe};Object.defineProperty(ee,"__esModule",{value:!0}),ee.InstantiationService=ee.ServiceCollection=void 0;var be=te(1),ve=te(14),de=function(){function ae(){for(var he=[],le=0;le<arguments.length;le++)he[le]=arguments[le];this._entries=new Map;for(var fe=0,se=he;fe<se.length;fe++){var me=se[fe],re=me[0],ne=me[1];this.set(re,ne)}}return ae.prototype.set=function(he,le){var fe=this._entries.get(he);return this._entries.set(he,le),fe},ae.prototype.forEach=function(he){this._entries.forEach(function(le,fe){return he(fe,le)})},ae.prototype.has=function(he){return this._entries.has(he)},ae.prototype.get=function(he){return this._entries.get(he)},ae}();ee.ServiceCollection=de;var pe=function(){function ae(){this._services=new de,this._services.set(be.IInstantiationService,this)}return ae.prototype.setService=function(he,le){this._services.set(he,le)},ae.prototype.getService=function(he){return this._services.get(he)},ae.prototype.createInstance=function(he){for(var le=[],fe=1;fe<arguments.length;fe++)le[fe-1]=arguments[fe];for(var se=ve.getServiceDependencies(he).sort(function(b,x){return b.index-x.index}),me=[],re=0,ne=se;re<ne.length;re++){var a=ne[re],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+he.name+" depends on UNKNOWN service "+a.id+".");me.push(y)}var E=se.length>0?se[0].index:le.length;if(le.length!==E)throw new Error("[createInstance] First service dependency of "+he.name+" at position "+(E+1)+" conflicts with "+le.length+" static arguments");return new(he.bind.apply(he,ue([void 0],ue(le,me))))},ae}();ee.InstantiationService=pe},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(le,fe,se,me){var re,ne=arguments.length,a=ne<3?fe:me===null?me=Object.getOwnPropertyDescriptor(fe,se):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(le,fe,se,me);else for(var y=le.length-1;y>=0;y--)(re=le[y])&&(a=(ne<3?re(a):ne>3?re(fe,se,a):re(fe,se))||a);return ne>3&&a&&Object.defineProperty(fe,se,a),a},be=this&&this.__param||function(le,fe){return function(se,me){fe(se,me,le)}},ve=this&&this.__spreadArrays||function(){for(var le=0,fe=0,se=arguments.length;fe<se;fe++)le+=arguments[fe].length;var me=Array(le),re=0;for(fe=0;fe<se;fe++)for(var ne=arguments[fe],a=0,y=ne.length;a<y;a++,re++)me[re]=ne[a];return me};Object.defineProperty(ee,"__esModule",{value:!0}),ee.LogService=ee.LogLevel=void 0;var de,pe=te(1);(function(le){le[le.DEBUG=0]="DEBUG",le[le.INFO=1]="INFO",le[le.WARN=2]="WARN",le[le.ERROR=3]="ERROR",le[le.OFF=4]="OFF"})(de=ee.LogLevel||(ee.LogLevel={}));var ae={debug:de.DEBUG,info:de.INFO,warn:de.WARN,error:de.ERROR,off:de.OFF},he=function(){function le(fe){var se=this;this._optionsService=fe,this._updateLogLevel(),this._optionsService.onOptionChange(function(me){me==="logLevel"&&se._updateLogLevel()})}return le.prototype._updateLogLevel=function(){this._logLevel=ae[this._optionsService.options.logLevel]},le.prototype._evalLazyOptionalParams=function(fe){for(var se=0;se<fe.length;se++)typeof fe[se]=="function"&&(fe[se]=fe[se]())},le.prototype._log=function(fe,se,me){this._evalLazyOptionalParams(me),fe.call.apply(fe,ve([console,"xterm.js: "+se],me))},le.prototype.debug=function(fe){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=de.DEBUG&&this._log(console.log,fe,se)},le.prototype.info=function(fe){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=de.INFO&&this._log(console.info,fe,se)},le.prototype.warn=function(fe){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=de.WARN&&this._log(console.warn,fe,se)},le.prototype.error=function(fe){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=de.ERROR&&this._log(console.error,fe,se)},le=ue([be(0,pe.IOptionsService)],le)}();ee.LogService=he},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(se,me){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ue(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},de=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferService=ee.MINIMUM_ROWS=ee.MINIMUM_COLS=void 0;var pe=te(1),ae=te(69),he=te(0),le=te(2);ee.MINIMUM_COLS=2,ee.MINIMUM_ROWS=1;var fe=function(se){function me(re){var ne=se.call(this)||this;return ne._optionsService=re,ne.isUserScrolling=!1,ne._onResize=new he.EventEmitter,ne.cols=Math.max(re.options.cols,ee.MINIMUM_COLS),ne.rows=Math.max(re.options.rows,ee.MINIMUM_ROWS),ne.buffers=new ae.BufferSet(re,ne),ne}return be(me,se),Object.defineProperty(me.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),me.prototype.dispose=function(){se.prototype.dispose.call(this),this.buffers.dispose()},me.prototype.resize=function(re,ne){this.cols=re,this.rows=ne,this.buffers.resize(re,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:re,rows:ne})},me.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ae.BufferSet(this._optionsService,this),this.isUserScrolling=!1},me=ve([de(0,pe.IOptionsService)],me)}(le.Disposable);ee.BufferService=fe},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(ae,he){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,fe){le.__proto__=fe}||function(le,fe){for(var se in fe)fe.hasOwnProperty(se)&&(le[se]=fe[se])})(ae,he)},function(ae,he){function le(){this.constructor=ae}ue(ae,he),ae.prototype=he===null?Object.create(he):(le.prototype=he.prototype,new le)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferSet=void 0;var ve=te(70),de=te(0),pe=function(ae){function he(le,fe){var se=ae.call(this)||this;return se._onBufferActivate=se.register(new de.EventEmitter),se._normal=new ve.Buffer(!0,le,fe),se._normal.fillViewportRows(),se._alt=new ve.Buffer(!1,le,fe),se._activeBuffer=se._normal,se.setupTabStops(),se}return be(he,ae),Object.defineProperty(he.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),he.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},he.prototype.activateAltBuffer=function(le){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(le),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},he.prototype.resize=function(le,fe){this._normal.resize(le,fe),this._alt.resize(le,fe)},he.prototype.setupTabStops=function(le){this._normal.setupTabStops(le),this._alt.setupTabStops(le)},he}(te(2).Disposable);ee.BufferSet=pe},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferStringIterator=ee.Buffer=ee.MAX_BUFFER_SIZE=void 0;var ue=te(71),be=te(16),ve=te(4),de=te(3),pe=te(72),ae=te(73),he=te(20),le=te(6);ee.MAX_BUFFER_SIZE=4294967295;var fe=function(){function me(re,ne,a){this._hasScrollback=re,this._optionsService=ne,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=be.DEFAULT_ATTR_DATA.clone(),this.savedCharset=he.DEFAULT_CHARSET,this.markers=[],this._nullCell=ve.CellData.fromCharData([0,de.NULL_CELL_CHAR,de.NULL_CELL_WIDTH,de.NULL_CELL_CODE]),this._whitespaceCell=ve.CellData.fromCharData([0,de.WHITESPACE_CELL_CHAR,de.WHITESPACE_CELL_WIDTH,de.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ue.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return me.prototype.getNullCell=function(re){return re?(this._nullCell.fg=re.fg,this._nullCell.bg=re.bg,this._nullCell.extended=re.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new le.ExtendedAttrs),this._nullCell},me.prototype.getWhitespaceCell=function(re){return re?(this._whitespaceCell.fg=re.fg,this._whitespaceCell.bg=re.bg,this._whitespaceCell.extended=re.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new le.ExtendedAttrs),this._whitespaceCell},me.prototype.getBlankLine=function(re,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(re),ne)},Object.defineProperty(me.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"isCursorInViewport",{get:function(){var re=this.ybase+this.y-this.ydisp;return re>=0&&re<this._rows},enumerable:!1,configurable:!0}),me.prototype._getCorrectBufferLength=function(re){if(!this._hasScrollback)return re;var ne=re+this._optionsService.options.scrollback;return ne>ee.MAX_BUFFER_SIZE?ee.MAX_BUFFER_SIZE:ne},me.prototype.fillViewportRows=function(re){if(this.lines.length===0){re===void 0&&(re=be.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(re))}},me.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ue.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},me.prototype.resize=function(re,ne){var a=this.getNullCell(be.DEFAULT_ATTR_DATA),y=this._getCorrectBufferLength(ne);if(y>this.lines.maxLength&&(this.lines.maxLength=y),this.lines.length>0){if(this._cols<re)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,a);var b=0;if(this._rows<ne)for(var x=this._rows;x<ne;x++)this.lines.length<ne+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new be.BufferLine(re,a)):this.ybase>0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new be.BufferLine(re,a)));else for(x=this._rows;x>ne;x--)this.lines.length>ne+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(y<this.lines.maxLength){var z=this.lines.length-y;z>0&&(this.lines.trimStart(z),this.ybase=Math.max(this.ybase-z,0),this.ydisp=Math.max(this.ydisp-z,0),this.savedY=Math.max(this.savedY-z,0)),this.lines.maxLength=y}this.x=Math.min(this.x,re-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,re-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(re,ne),this._cols>re))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,a);this._cols=re,this._rows=ne},Object.defineProperty(me.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),me.prototype._reflow=function(re,ne){this._cols!==re&&(re>this._cols?this._reflowLarger(re,ne):this._reflowSmaller(re,ne))},me.prototype._reflowLarger=function(re,ne){var a=pe.reflowLargerGetLinesToRemove(this.lines,this._cols,re,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(a.length>0){var y=pe.reflowLargerCreateNewLayout(this.lines,a);pe.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(re,ne,y.countRemoved)}},me.prototype._reflowLargerAdjustViewport=function(re,ne,a){for(var y=this.getNullCell(be.DEFAULT_ATTR_DATA),E=a;E-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<ne&&this.lines.push(new be.BufferLine(re,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},me.prototype._reflowSmaller=function(re,ne){for(var a=this.getNullCell(be.DEFAULT_ATTR_DATA),y=[],E=0,b=this.lines.length-1;b>=0;b--){var x=this.lines.get(b);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=re)){for(var z=[x];x.isWrapped&&b>0;)x=this.lines.get(--b),z.unshift(x);var oe=this.ybase+this.y;if(!(oe>=b&&oe<b+z.length)){var ie=z[z.length-1].getTrimmedLength(),ce=pe.reflowSmallerGetNewLineLengths(z,this._cols,re),ye=ce.length-z.length,_e=void 0;_e=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ye):Math.max(0,this.lines.length-this.lines.maxLength+ye);for(var xe=[],Ce=0;Ce<ye;Ce++){var Te=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);xe.push(Te)}xe.length>0&&(y.push({start:b+z.length+E,newLines:xe}),E+=xe.length),z.push.apply(z,xe);var Me=ce.length-1,pt=ce[Me];pt===0&&(pt=ce[--Me]);for(var Ve=z.length-ye-1,gt=ie;Ve>=0;){var Ae=Math.min(gt,pt);if(z[Me].copyCellsFrom(z[Ve],gt-Ae,pt-Ae,Ae,!0),(pt-=Ae)===0&&(pt=ce[--Me]),(gt-=Ae)===0){Ve--;var De=Math.max(Ve,0);gt=pe.getWrappedLineTrimmedLength(z,De,this._cols)}}for(Ce=0;Ce<z.length;Ce++)ce[Ce]<re&&z[Ce].setCell(ce[Ce],a);for(var Ie=ye-_e;Ie-- >0;)this.ybase===0?this.y<ne-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+E)-ne&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ye,this.ybase+ne-1)}}}if(y.length>0){var tt=[],Ze=[];for(Ce=0;Ce<this.lines.length;Ce++)Ze.push(this.lines.get(Ce));var bt=this.lines.length,wt=bt-1,Kt=0,Qt=y[Kt];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var rt=0;for(Ce=Math.min(this.lines.maxLength-1,bt+E-1);Ce>=0;Ce--)if(Qt&&Qt.start>wt+rt){for(var st=Qt.newLines.length-1;st>=0;st--)this.lines.set(Ce--,Qt.newLines[st]);Ce++,tt.push({index:wt+1,amount:Qt.newLines.length}),rt+=Qt.newLines.length,Qt=y[++Kt]}else this.lines.set(Ce,Ze[wt--]);var Ct=0;for(Ce=tt.length-1;Ce>=0;Ce--)tt[Ce].index+=Ct,this.lines.onInsertEmitter.fire(tt[Ce]),Ct+=tt[Ce].amount;var Gt=Math.max(0,bt+E-this.lines.maxLength);Gt>0&&this.lines.onTrimEmitter.fire(Gt)}},me.prototype.stringIndexToBufferIndex=function(re,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(re);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b<E;++b)if(y.get(b)[de.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[de.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[re,b];re++}return[re,0]},me.prototype.translateBufferLineToString=function(re,ne,a,y){a===void 0&&(a=0);var E=this.lines.get(re);return E?E.translateToString(ne,a,y):""},me.prototype.getWrappedRangeForLine=function(re){for(var ne=re,a=re;ne>0&&this.lines.get(ne).isWrapped;)ne--;for(;a+1<this.lines.length&&this.lines.get(a+1).isWrapped;)a++;return{first:ne,last:a}},me.prototype.setupTabStops=function(re){for(re!=null?this.tabs[re]||(re=this.prevStop(re)):(this.tabs={},re=0);re<this._cols;re+=this._optionsService.options.tabStopWidth)this.tabs[re]=!0},me.prototype.prevStop=function(re){for(re==null&&(re=this.x);!this.tabs[--re]&&re>0;);return re>=this._cols?this._cols-1:re<0?0:re},me.prototype.nextStop=function(re){for(re==null&&(re=this.x);!this.tabs[++re]&&re<this._cols;);return re>=this._cols?this._cols-1:re<0?0:re},me.prototype.addMarker=function(re){var ne=this,a=new ae.Marker(re);return this.markers.push(a),a.register(this.lines.onTrim(function(y){a.line-=y,a.line<0&&a.dispose()})),a.register(this.lines.onInsert(function(y){a.line>=y.index&&(a.line+=y.amount)})),a.register(this.lines.onDelete(function(y){a.line>=y.index&&a.line<y.index+y.amount&&a.dispose(),a.line>y.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return ne._removeMarker(a)})),a},me.prototype._removeMarker=function(re){this.markers.splice(this.markers.indexOf(re),1)},me.prototype.iterator=function(re,ne,a,y,E){return new se(this,re,ne,a,y,E)},me}();ee.Buffer=fe;var se=function(){function me(re,ne,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=re.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=re,this._trimRight=ne,this._startIndex=a,this._endIndex=y,this._startOverscan=E,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return me.prototype.hasNext=function(){return this._current<this._endIndex},me.prototype.next=function(){var re=this._buffer.getWrappedRangeForLine(this._current);re.first<this._startIndex-this._startOverscan&&(re.first=this._startIndex-this._startOverscan),re.last>this._endIndex+this._endOverscan&&(re.last=this._endIndex+this._endOverscan),re.first=Math.max(re.first,0),re.last=Math.min(re.last,this._buffer.lines.length);for(var ne="",a=re.first;a<=re.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=re.last+1,{range:re,content:ne}},me}();ee.BufferStringIterator=se},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CircularList=void 0;var ue=te(0),be=function(){function ve(de){this._maxLength=de,this.onDeleteEmitter=new ue.EventEmitter,this.onInsertEmitter=new ue.EventEmitter,this.onTrimEmitter=new ue.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(ve.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"maxLength",{get:function(){return this._maxLength},set:function(de){if(this._maxLength!==de){for(var pe=new Array(de),ae=0;ae<Math.min(de,this.length);ae++)pe[ae]=this._array[this._getCyclicIndex(ae)];this._array=pe,this._maxLength=de,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"length",{get:function(){return this._length},set:function(de){if(de>this._length)for(var pe=this._length;pe<de;pe++)this._array[pe]=void 0;this._length=de},enumerable:!1,configurable:!0}),ve.prototype.get=function(de){return this._array[this._getCyclicIndex(de)]},ve.prototype.set=function(de,pe){this._array[this._getCyclicIndex(de)]=pe},ve.prototype.push=function(de){this._array[this._getCyclicIndex(this._length)]=de,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},ve.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(ve.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),ve.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},ve.prototype.splice=function(de,pe){for(var ae=[],he=2;he<arguments.length;he++)ae[he-2]=arguments[he];if(pe){for(var le=de;le<this._length-pe;le++)this._array[this._getCyclicIndex(le)]=this._array[this._getCyclicIndex(le+pe)];this._length-=pe}for(le=this._length-1;le>=de;le--)this._array[this._getCyclicIndex(le+ae.length)]=this._array[this._getCyclicIndex(le)];for(le=0;le<ae.length;le++)this._array[this._getCyclicIndex(de+le)]=ae[le];if(this._length+ae.length>this._maxLength){var fe=this._length+ae.length-this._maxLength;this._startIndex+=fe,this._length=this._maxLength,this.onTrimEmitter.fire(fe)}else this._length+=ae.length},ve.prototype.trimStart=function(de){de>this._length&&(de=this._length),this._startIndex+=de,this._length-=de,this.onTrimEmitter.fire(de)},ve.prototype.shiftElements=function(de,pe,ae){if(!(pe<=0)){if(de<0||de>=this._length)throw new Error("start argument out of range");if(de+ae<0)throw new Error("Cannot shift elements in list beyond index 0");if(ae>0){for(var he=pe-1;he>=0;he--)this.set(de+he+ae,this.get(de+he));var le=de+pe+ae-this._length;if(le>0)for(this._length+=le;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(he=0;he<pe;he++)this.set(de+he+ae,this.get(de+he))}},ve.prototype._getCyclicIndex=function(de){return(this._startIndex+de)%this._maxLength},ve}();ee.CircularList=be},function(Ge,ee,te){"use strict";function ue(be,ve,de){if(ve===be.length-1)return be[ve].getTrimmedLength();var pe=!be[ve].hasContent(de-1)&&be[ve].getWidth(de-1)===1,ae=be[ve+1].getWidth(0)===2;return pe&&ae?de-1:de}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getWrappedLineTrimmedLength=ee.reflowSmallerGetNewLineLengths=ee.reflowLargerApplyNewLayout=ee.reflowLargerCreateNewLayout=ee.reflowLargerGetLinesToRemove=void 0,ee.reflowLargerGetLinesToRemove=function(be,ve,de,pe,ae){for(var he=[],le=0;le<be.length-1;le++){var fe=le,se=be.get(++fe);if(se.isWrapped){for(var me=[be.get(le)];fe<be.length&&se.isWrapped;)me.push(se),se=be.get(++fe);if(pe>=le&&pe<fe)le+=me.length-1;else{for(var re=0,ne=ue(me,re,ve),a=1,y=0;a<me.length;){var E=ue(me,a,ve),b=E-y,x=de-ne,z=Math.min(b,x);me[re].copyCellsFrom(me[a],y,ne,z,!1),(ne+=z)===de&&(re++,ne=0),(y+=z)===E&&(a++,y=0),ne===0&&re!==0&&me[re-1].getWidth(de-1)===2&&(me[re].copyCellsFrom(me[re-1],de-1,ne++,1,!1),me[re-1].setCell(de-1,ae))}me[re].replaceCells(ne,de,ae);for(var oe=0,ie=me.length-1;ie>0&&(ie>re||me[ie].getTrimmedLength()===0);ie--)oe++;oe>0&&(he.push(le+me.length-oe),he.push(oe)),le+=me.length-1}}}return he},ee.reflowLargerCreateNewLayout=function(be,ve){for(var de=[],pe=0,ae=ve[pe],he=0,le=0;le<be.length;le++)if(ae===le){var fe=ve[++pe];be.onDeleteEmitter.fire({index:le-he,amount:fe}),le+=fe-1,he+=fe,ae=ve[++pe]}else de.push(le);return{layout:de,countRemoved:he}},ee.reflowLargerApplyNewLayout=function(be,ve){for(var de=[],pe=0;pe<ve.length;pe++)de.push(be.get(ve[pe]));for(pe=0;pe<de.length;pe++)be.set(pe,de[pe]);be.length=ve.length},ee.reflowSmallerGetNewLineLengths=function(be,ve,de){for(var pe=[],ae=be.map(function(ne,a){return ue(be,a,ve)}).reduce(function(ne,a){return ne+a}),he=0,le=0,fe=0;fe<ae;){if(ae-fe<de){pe.push(ae-fe);break}he+=de;var se=ue(be,le,ve);he>se&&(he-=se,le++);var me=be[le].getWidth(he-1)===2;me&&he--;var re=me?de-1:de;pe.push(re),fe+=re}return pe},ee.getWrappedLineTrimmedLength=ue},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(pe,ae){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(he,le){he.__proto__=le}||function(he,le){for(var fe in le)le.hasOwnProperty(fe)&&(he[fe]=le[fe])})(pe,ae)},function(pe,ae){function he(){this.constructor=pe}ue(pe,ae),pe.prototype=ae===null?Object.create(ae):(he.prototype=ae.prototype,new he)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Marker=void 0;var ve=te(0),de=function(pe){function ae(he){var le=pe.call(this)||this;return le.line=he,le._id=ae._nextId++,le.isDisposed=!1,le._onDispose=new ve.EventEmitter,le}return be(ae,pe),Object.defineProperty(ae.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),ae.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},ae._nextId=1,ae}(te(2).Disposable);ee.Marker=de},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OptionsService=ee.DEFAULT_OPTIONS=ee.DEFAULT_BELL_SOUND=void 0;var ue=te(0),be=te(11),ve=te(33);ee.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",ee.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:ee.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:be.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var de=["cols","rows"],pe=function(){function ae(he){this._onOptionChange=new ue.EventEmitter,this.options=ve.clone(ee.DEFAULT_OPTIONS);for(var le=0,fe=Object.keys(he);le<fe.length;le++){var se=fe[le];if(se in this.options){var me=he[se];this.options[se]=me}}}return Object.defineProperty(ae.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ae.prototype.setOption=function(he,le){if(!(he in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+he+'"');if(de.indexOf(he)!==-1)throw new Error('Option "'+he+'" can only be set in the constructor');this.options[he]!==le&&(le=this._sanitizeAndValidateOption(he,le),this.options[he]!==le&&(this.options[he]=le,this._onOptionChange.fire(he)))},ae.prototype._sanitizeAndValidateOption=function(he,le){switch(he){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":le||(le=ee.DEFAULT_OPTIONS[he]);break;case"cursorWidth":le=Math.floor(le);case"lineHeight":case"tabStopWidth":if(le<1)throw new Error(he+" cannot be less than 1, value: "+le);break;case"minimumContrastRatio":le=Math.max(1,Math.min(21,Math.round(10*le)/10));break;case"scrollback":if((le=Math.min(le,4294967295))<0)throw new Error(he+" cannot be less than 0, value: "+le);break;case"fastScrollSensitivity":case"scrollSensitivity":if(le<=0)throw new Error(he+" cannot be less than or equal to 0, value: "+le)}return le},ae.prototype.getOption=function(he){if(!(he in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+he+'"');return this.options[he]},ae}();ee.OptionsService=pe},function(Ge,ee,te){"use strict";var ue,be=this&&this.__extends||(ue=function(re,ne){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var E in y)y.hasOwnProperty(E)&&(a[E]=y[E])})(re,ne)},function(re,ne){function a(){this.constructor=re}ue(re,ne),re.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),ve=this&&this.__decorate||function(re,ne,a,y){var E,b=arguments.length,x=b<3?ne:y===null?y=Object.getOwnPropertyDescriptor(ne,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(re,ne,a,y);else for(var z=re.length-1;z>=0;z--)(E=re[z])&&(x=(b<3?E(x):b>3?E(ne,a,x):E(ne,a))||x);return b>3&&x&&Object.defineProperty(ne,a,x),x},de=this&&this.__param||function(re,ne){return function(a,y){ne(a,y,re)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreService=void 0;var pe=te(1),ae=te(0),he=te(33),le=te(2),fe=Object.freeze({insertMode:!1}),se=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),me=function(re){function ne(a,y,E,b){var x=re.call(this)||this;return x._bufferService=y,x._logService=E,x._optionsService=b,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new ae.EventEmitter),x._onUserInput=x.register(new ae.EventEmitter),x._onBinary=x.register(new ae.EventEmitter),x._scrollToBottom=a,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=he.clone(fe),x.decPrivateModes=he.clone(se),x}return be(ne,re),Object.defineProperty(ne.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),ne.prototype.reset=function(){this.modes=he.clone(fe),this.decPrivateModes=he.clone(se)},ne.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),y&&this._onUserInput.fire(),this._logService.debug('sending data "'+a+'"',function(){return a.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(a)}},ne.prototype.triggerBinaryEvent=function(a){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+a+'"',function(){return a.split("").map(function(y){return y.charCodeAt(0)})}),this._onBinary.fire(a))},ne=ve([de(1,pe.IBufferService),de(2,pe.ILogService),de(3,pe.IOptionsService)],ne)}(le.Disposable);ee.CoreService=me},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},be=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreMouseService=void 0;var ve=te(1),de=te(0),pe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(se){return se.button!==4&&se.action===1&&(se.ctrl=!1,se.alt=!1,se.shift=!1,!0)}},VT200:{events:19,restrict:function(se){return se.action!==32}},DRAG:{events:23,restrict:function(se){return se.action!==32||se.button!==3}},ANY:{events:31,restrict:function(se){return!0}}};function ae(se,me){var re=(se.ctrl?16:0)|(se.shift?4:0)|(se.alt?8:0);return se.button===4?(re|=64,re|=se.action):(re|=3&se.button,4&se.button&&(re|=64),8&se.button&&(re|=128),se.action===32?re|=32:se.action!==0||me||(re|=3)),re}var he=String.fromCharCode,le={DEFAULT:function(se){var me=[ae(se,!1)+32,se.col+32,se.row+32];return me[0]>255||me[1]>255||me[2]>255?"":"\x1B[M"+he(me[0])+he(me[1])+he(me[2])},SGR:function(se){var me=se.action===0&&se.button!==4?"m":"M";return"\x1B[<"+ae(se,!0)+";"+se.col+";"+se.row+me}},fe=function(){function se(me,re){this._bufferService=me,this._coreService=re,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new de.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(pe);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,pe[y])}for(var E=0,b=Object.keys(le);E<b.length;E++){var x=b[E];this.addEncoding(x,le[x])}this.reset()}return se.prototype.addProtocol=function(me,re){this._protocols[me]=re},se.prototype.addEncoding=function(me,re){this._encodings[me]=re},Object.defineProperty(se.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(me){if(!this._protocols[me])throw new Error('unknown protocol "'+me+'"');this._activeProtocol=me,this._onProtocolChange.fire(this._protocols[me].events)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(me){if(!this._encodings[me])throw new Error('unknown encoding "'+me+'"');this._activeEncoding=me},enumerable:!1,configurable:!0}),se.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(se.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),se.prototype.triggerMouseEvent=function(me){if(me.col<0||me.col>=this._bufferService.cols||me.row<0||me.row>=this._bufferService.rows||me.button===4&&me.action===32||me.button===3&&me.action!==32||me.button!==4&&(me.action===2||me.action===3)||(me.col++,me.row++,me.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,me))||!this._protocols[this._activeProtocol].restrict(me))return!1;var re=this._encodings[this._activeEncoding](me);return re&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(re):this._coreService.triggerDataEvent(re,!0)),this._lastEvent=me,!0},se.prototype.explainEvents=function(me){return{down:!!(1&me),up:!!(2&me),drag:!!(4&me),move:!!(8&me),wheel:!!(16&me)}},se.prototype._compareEvents=function(me,re){return me.col===re.col&&me.row===re.row&&me.button===re.button&&me.action===re.action&&me.ctrl===re.ctrl&&me.alt===re.alt&&me.shift===re.shift},se=ue([be(0,ve.IBufferService),be(1,ve.ICoreService)],se)}();ee.CoreMouseService=fe},function(Ge,ee,te){"use strict";var ue=this&&this.__decorate||function(pe,ae,he,le){var fe,se=arguments.length,me=se<3?ae:le===null?le=Object.getOwnPropertyDescriptor(ae,he):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(pe,ae,he,le);else for(var re=pe.length-1;re>=0;re--)(fe=pe[re])&&(me=(se<3?fe(me):se>3?fe(ae,he,me):fe(ae,he))||me);return se>3&&me&&Object.defineProperty(ae,he,me),me},be=this&&this.__param||function(pe,ae){return function(he,le){ae(he,le,pe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DirtyRowService=void 0;var ve=te(1),de=function(){function pe(ae){this._bufferService=ae,this.clearRange()}return Object.defineProperty(pe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),pe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},pe.prototype.markDirty=function(ae){ae<this._start?this._start=ae:ae>this._end&&(this._end=ae)},pe.prototype.markRangeDirty=function(ae,he){if(ae>he){var le=ae;ae=he,he=le}ae<this._start&&(this._start=ae),he>this._end&&(this._end=he)},pe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},pe=ue([be(0,ve.IBufferService)],pe)}();ee.DirtyRowService=de},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeService=void 0;var ue=te(0),be=te(79),ve=function(){function de(){this._providers=Object.create(null),this._active="",this._onChange=new ue.EventEmitter;var pe=new be.UnicodeV6;this.register(pe),this._active=pe.version,this._activeProvider=pe}return Object.defineProperty(de.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"activeVersion",{get:function(){return this._active},set:function(pe){if(!this._providers[pe])throw new Error('unknown Unicode version "'+pe+'"');this._active=pe,this._activeProvider=this._providers[pe],this._onChange.fire(pe)},enumerable:!1,configurable:!0}),de.prototype.register=function(pe){this._providers[pe.version]=pe},de.prototype.wcwidth=function(pe){return this._activeProvider.wcwidth(pe)},de.prototype.getStringCellWidth=function(pe){for(var ae=0,he=pe.length,le=0;le<he;++le){var fe=pe.charCodeAt(le);if(55296<=fe&&fe<=56319){if(++le>=he)return ae+this.wcwidth(fe);var se=pe.charCodeAt(le);56320<=se&&se<=57343?fe=1024*(fe-55296)+se-56320+65536:ae+=this.wcwidth(se)}ae+=this.wcwidth(fe)}return ae},de}();ee.UnicodeService=ve},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeV6=void 0;var ue,be=te(15),ve=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],de=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],pe=function(){function ae(){if(this.version="6",!ue){ue=new Uint8Array(65536),be.fill(ue,1),ue[0]=0,be.fill(ue,0,1,32),be.fill(ue,0,127,160),be.fill(ue,2,4352,4448),ue[9001]=2,ue[9002]=2,be.fill(ue,2,11904,42192),ue[12351]=1,be.fill(ue,2,44032,55204),be.fill(ue,2,63744,64256),be.fill(ue,2,65040,65050),be.fill(ue,2,65072,65136),be.fill(ue,2,65280,65377),be.fill(ue,2,65504,65511);for(var he=0;he<ve.length;++he)be.fill(ue,0,ve[he][0],ve[he][1]+1)}}return ae.prototype.wcwidth=function(he){return he<32?0:he<127?1:he<65536?ue[he]:function(le,fe){var se,me=0,re=fe.length-1;if(le<fe[0][0]||le>fe[re][1])return!1;for(;re>=me;)if(le>fe[se=me+re>>1][1])me=se+1;else{if(!(le<fe[se][0]))return!0;re=se-1}return!1}(he,de)?0:he>=131072&&he<=196605||he>=196608&&he<=262141?2:1},ae}();ee.UnicodeV6=pe},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharsetService=void 0;var ue=function(){function be(){this.glevel=0,this._charsets=[]}return be.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},be.prototype.setgLevel=function(ve){this.glevel=ve,this.charset=this._charsets[ve]},be.prototype.setgCharset=function(ve,de){this._charsets[ve]=de,this.glevel===ve&&(this.charset=de)},be}();ee.CharsetService=ue},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.updateWindowsModeWrappedState=void 0;var ue=te(3);ee.updateWindowsModeWrappedState=function(be){var ve=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),de=ve==null?void 0:ve.get(be.cols-1),pe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);pe&&de&&(pe.isWrapped=de[ue.CHAR_DATA_CODE_INDEX]!==ue.NULL_CELL_CODE&&de[ue.CHAR_DATA_CODE_INDEX]!==ue.WHITESPACE_CELL_CODE)}},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WriteBuffer=void 0;var ue=function(){function be(ve){this._action=ve,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return be.prototype.writeSync=function(ve){if(this._writeBuffer.length){for(var de=this._bufferOffset;de<this._writeBuffer.length;++de){var pe=this._writeBuffer[de],ae=this._callbacks[de];this._action(pe),ae&&ae()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(ve)},be.prototype.write=function(ve,de){var pe=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return pe._innerWrite()})),this._pendingData+=ve.length,this._writeBuffer.push(ve),this._callbacks.push(de)},be.prototype._innerWrite=function(){for(var ve=this,de=Date.now();this._writeBuffer.length>this._bufferOffset;){var pe=this._writeBuffer[this._bufferOffset],ae=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(pe),this._pendingData-=pe.length,ae&&ae(),Date.now()-de>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return ve._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},be}();ee.WriteBuffer=ue},function(Ge,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.AddonManager=void 0;var ue=function(){function be(){this._addons=[]}return be.prototype.dispose=function(){for(var ve=this._addons.length-1;ve>=0;ve--)this._addons[ve].instance.dispose()},be.prototype.loadAddon=function(ve,de){var pe=this,ae={instance:de,dispose:de.dispose,isDisposed:!1};this._addons.push(ae),de.dispose=function(){return pe._wrappedAddonDispose(ae)},de.activate(ve)},be.prototype._wrappedAddonDispose=function(ve){if(!ve.isDisposed){for(var de=-1,pe=0;pe<this._addons.length;pe++)if(this._addons[pe]===ve){de=pe;break}if(de===-1)throw new Error("Could not dispose an addon that has not been loaded");ve.isDisposed=!0,ve.dispose.apply(ve.instance),this._addons.splice(de,1)}},be}();ee.AddonManager=ue}])})},62522:function(ot){"use strict";ot.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAABYCAYAAACJfF6vAAAAAXNSR0IArs4c6QAAIABJREFUeF7sXQe4FcXZfmd2T7n90jtYsFGModkVUGNJ7BVTVIxdI5ii/iYmxkRjEhV7ohF7wQaxBqOIxgqCQSkWUKRIv72csjvzP9/M7p7ZPefce8EGhOOD95wt0+ed9yvzDcO2z7YW2NYCm00LNL19cQ/H4j/nEt+vKK38LhtyVWazKdz/UEHY/1Bdt1V1Wwts1i3QMGviGRLyJgAVVFCb4YiykZNe2KwLvZUWbhswbqUdu61aW1YL1L0z4TrG8Cuz1IyxOytH3njOllWTraO024Bx6+jHbbXYglugcfaEC4TErZEqNAN4q2rUpEO24KptsUXfBoxbbNdtK/jW0AINsyfsC2CGlIgzBgGJaRzi9jKeeo2NuDO7NdRxS6zDNmDcEnttW5k32xYYP3XZFADfA6QFsKWTj+2/e7HCyld+azeU1S8AsDOAjxnEGZWjbn7z26rc+H8u/yWEPMti9kV3HdN7+rdVjs0h323AuDn0wrYybDUtMH7a8lsh5QW6Qqxl8rH9yopVrmHWhLMl8HcAL1UK93i21y0N30ZD/Hj66rJYKjMZAid5+T82+dj+J38bZdlc8twGjJtLT2wrx1bRAmc+tWy8ZLhb4yJWTz6mf69CFSO2WF9av5QxLG1w2CH99rmx9dtogDP/uXygFHIqgCG6zOyhxkzf0x4/ibnfRnk2lzy3WGBsmDXhTSkxFAxSAksB9jFneIFZztMVw25Zt7k08Jcpx7p9d6lAPD5BMHkKY/K33V9e8MSXSe+berf+zYmdEZO3VpZUnf6/5od35tTloyTkO15bz5t8bP89CrV7/bsTvg+B+2yOoWUjJq36pvomms/4aStugxTne6A4td/RfU+4ijHxbZVnc8l3SwbGP0ng0gIN6TDgXhv896Wjbli+uTT0xpZj7ZihR0gmJwPoocmH/E33GQv+sLHpfBvP18+eOBFS3sAYplWOnHTst1GGbyvPs5/5oqvjOGphZmBP3X1sv+MLAuOsCVM4w2sVIyfd9m2V1c93/D+XHQWBS7Kl8e8/cGhPsob/z3+2WGCsnz3hcEg8X7QHpUwxxi6uHDXpzi2tl2tG7z4ky8UcAHG/7BJ4vueM+d/fEupSN2viSwzyIAbMqxw1qSBj2hLqsallPGPqshYGlDCGP959TP9fR9ORn1yUaKy1llQ4bCf2LYnQm1q3/5X3tlhgbPrg4h6ilR0NoBJgO0vIsQB2zBuEUl5WvedN121JHbruoKHXCSlNZ986Bjat+4wPztgS6tEwa8JqSUyXyb9VjbzpvC2hzF9lGcdPXbYSQG8p+ZH3HNf32WjaTbMvPsQFP7xq5I2XfJX5bkvrq2uBLRYYC4on7168JxPsCgkcGdxnEFzKMRWjbnrtq2u2rzeltWOHPCKBU1QuDNNjrOXkzi99Wv/15vrVpV4/awL539mc48qKEZOu/upS3jJSGj91+ceA3D4Vk90f/sGA2mip62dPuF5IPNBp1KT/bhk1+t8r5VYFjH73Ncye8CspEbBECTxVPWpSQV3P5tjla8cOeVMCezNgJUtnd+v2xkeNm2M5i5WpbtaEJgaUMc4urxxx45+2pLJ/FWU9Y+qyxUz5MPY7uFB6DbMn/LNy5CSSdrZ9NtMW2CqBUT52otWwXZ80AMtr9wVVoyZpd4TN/LNu/916iZhFRiMLjP22x8sf/H4zL3Je8RpmT3xfSjlUQl5fPeqmX2xp5f+y5R0/bdkqJnDF3cf1J+NZ6FP3/mWdrHT69xUjb7zoy+az7f2vrwW2SmCsfeOCATxmf0ZOWV7TPV01avNfoSXA144d8iSAY6jcUoq9er6y0Hf9+PpGwVeccv27E2+DkOcD7M2qUTfSlrf/mc/oV6S9Q92KVY1Z9H/8pH55vom170w8llbryj1vJN/BbZ/NtAW2SmBsmD3xH1LKM/02t5j8XvnIm/69mfaBKtYXhwwZYbns94A83Ctn4/L6RJcRc+Zscftl62dPHAUp/8gku/1/DQDGP7XiO5KJI+85tn9B16r6WRNulen0b6r3vyNP97g5j89vs2xrxgw5jjGc0W3G/KMYIL+Jsmx1wNjwzoS9JZNvBGyR4f6qkZNO+yYa88vksWbskPcBDDXSeKrHjPlbjF70y9R9a3p3/NSlxyezpdNvP6l7U6F61c+e+EjVyBvHbWqdT3/mi10t1zlTSowF5E4ASwJYx4A5kvEn7L59HrlzBNviFtNi7bF27ODnJZhPFu5Yt1pMGLJw4dcevHfrA8bZE5+QUvqAslzEsHun706q29SB+E29t3bMkMslwzWUH62KEjisx4z5L37d+cvHYKEbZYlyoMJuqXFjpby8NCvczjEeY04qYYML2+ash+uyOMAtBlYGLsshEQNYDC6LcUtWA7Ic4EwIxjizOJjkAsxidJGJCsncwVLCBhhnknFIFWiBQzAOFuiDAbrHyKddswPJpNADlUkwSbsyBJikLWt0X0gmXMaRhbBWMmmtEKBnJHkjuABzIaUEE6SpqBdSNoOLLIfMgCHrZuM1YI4DLh3Eso4U1hqb7nGRzXJHCJltTJSiEYl0Fk5jFp+iBWdDMIaCW+bOfnpl/zuP6rOsUL81vTtxqCvkiVWjJl25Kf3q7cMm9yde7H0GLHGZnHjvMQOe2ZQ8Nrd31o4dulJC9vbLxYAVYHig+8vz/+/rLOtWBYzyldOTDWXVtBE/Ro3GGT+hYuQNpLPb7D9LDt6hqlyUUrTmnTjDn7q9PP/6YoWWr8BGBVhtLUqTtSXlJYmycgi7Ck4sASa7u+lYGWDFmO30hcNLYKE7wBOMsTgYejLJ4hDclpIiRYsqSG4ziVJIZlFUGElgxRnBkCLeGp0UYOuP1MidGzxaujGvqVdzjxf5bqCftyKY+UTTMB7JS89/1pezKO/Q+8wvT2TI0yoU3DMKHVSU6iUlY3AkAS1nrWDCYWA1krEWMAWiDgTWSMgUlzIlpFwvuJuyZXwFIFKIpzOOK1en+x1xmpVe+4ps/M+MkuSGJnRCC4YXB9lo/585bfmVUsqrAKxnDA8I4AMmmC0hhzOGEwB00esH9Zz8e1m834RbjmBkhNxiP6vHDrmCAaZaYi1n1v7dXp738ddZqa0KGGvfmrAdt/CZbjBWXzlyRRfGHt88N8MT9wFY7Us7VKRSg7O9GlsqYGdLIXgP1121I+OpXnDRHdyuZpbsxJjVSQpWCclKmJQ9pFBglpRSJomAqWmv0MDXwtDcMJAp+BGFq2KQYsJQ9Huh3/41Dzl1HxSARq93FHCZMFbovWLXjCnhI6AHZBpqc5/QbR/sdENFytce7Ppp5upEeekSRurhP+Lb/ug3Y2jpNxKly94hMktAm5IMKTCWAU9+zJCth4y3CCHXcJlOwyIWm21yXb4STDaCZ1rSPLH2Bvu2C/YQ//7znuL6Fd0WoIVdpTKXJz42P15hV10Mhis1c1f1md0Fy8b9fPG+q+OVxNSBRhc8ZsHiApylwUorIRprIMuTiv8z4cKVaV0hYUGIVkiXQ4hmSLcesu/2EIsBpDdApnpDDv8CEoMhscBodl0mfwR8KZ0gzZF1Ywf/SoKRzSDOwY/rNuP9uUYXfy1ftypglO9eWtUgUrXekrmyetSkvl9FqylxE4ivWwfLcsFdC6LbWjUog832xOLqllaXV9t2SUZaXTi3ezAZJ5GzJ3N5FzDeFRI9mc07A6ySwA2CE0urUF5FUiQhpS0J49RQ9yjYV1GB/4U08hFws6p1troPRLIcidUfdbxcHqAGOA6pYqZIiQyYbAVjDYDbCMbXCVc0AW7dYj4ocV/ZFUeu4X1I90gagvoRLf+87uQNl7/tSrdFZLJpIeBK+geImJWQkkHINIRwmCsAkYgxtyVLugomShgTMt0kZQLSlRAiDVkhITYkId1WyGoBIco1aKYciIGdIeesgmzsBbluIeSJj+s58k0ZTTreuG0/uVUBI1W1ftYE2mM8jCRAy2Kjyobd+O6mNNZvfwv+i8HlXbK1sifSvNrm8c7cinWyLd6VMbu7xa1qzqxO4LyLBOvCGKohUQnBysBo7Y0OB4PB+ZjnPRPmOLq0Siw1eifKrfw6mbxHsxdTxM3VPPe+yZY01zF5nS61foamIf2NDpIoI/OoapBZsbL65TPYROid/HLk6rOxvDZXyxxiFqqr10u6zY26FypYobbVdfV5ajgvP21SmTbvtD9Klr0HKxUOuZjPbr20aLiwMP+lnggUr6Fcw6QszUtxZ8mlmBffW1eDMTky/Urr8al76rq4XzRKiRop3TrhoEYKd42Q7jrhOGuyWacWqUxNS1OmkWWd1kw6kxbSW/yTQCKblK02kwkJ0ZxlMiGYcAUTMgaZtJtcR0JUuhCuC+E4EM0JuCs6w1UAOQgSV+XkmU2Zk9/kO1sdMDbOnnCClOwByeRKKXF39ahJ10YbVOno0n0rG+viXUsEujPBezLGegsXfTh4HyZZDylkD0antUlUMrBySXrLnOwUiKlqSHrj0pdkc0o5z4ziI1wIMQpN9RBihpV6vknGm4hRNAugTOkE1axStooc8nldHczuQmKsLm8Ah+qL94JWOOZLoAaaUTVDeftlNhE+QCC/jB6squS9awFa5Z4JkMtEMm8FYVRnszlVmbz6UTtoSVbZYAKVQyQ7PwFdB7NP9QoVXAuht7d6+Te9l0nFp1rRu57pviPc8i4o+Wx2MBT9quaqXAB28/oqVy4Fxt7w0gpg0gl7+aqsGZ4qGY9/lVDsWV1osi/tkX0Luzrz0N39Akm0YKCz0APPQEpxwVhKSlnPGKsTUtRIR9RIIdesRo+113e6uef2rR988qMVv56damiuyWRaW9GUTrkMrisgkjakEGUiVmFlU2sbnLIyOCGAfBxkSAsj+TeJeB3Ma6sDxkL1llMGHipS1rGMyb6Q6A3BukOgE5R+jmkLnz+PNvsuM2tYiMN0sOc3y8c2k/q0KZZvXBndss5o3XEUkkvnwG74OsKEtl2e9+L74v7yCWji1Xk9/oOWB3F0y30dGgkEwv8uOQ5TSnVMkCGZ2eLCxiszNnMaIOUGIeU615Fr4IgFaz9fMzXT4NZx28rYaSuTSDRkurXAmROHO5w051sAc9zqgdF9aKffs1b+a9J3RyHFJx8B2QgTigAvFVkymEqUaxVK1385yLRAS0eIhrYCe/YTM02TpAQkMELeTHDPk30NohGQqUh5FJnymZXHMXxx3rc2q+YxlvsgiUi5i+UR1ClCBAtaS6IEt+CKF1ZehfI18CJEJs2yRtQVfhbm2hgdNAER9wh5MfsSpSHjpWjdaS+wdAtKF7+dI+9RYlxkrQus/GZbRHDQJ9rm+Izaghp4Nf5ZejreSB4GlykbjPpcWvcz7JhZGGh9cgO+sE7mxqrrsDA+PHj/qOZ7cWTLg6GeUTRD4LP1S9b9JF3XsiZt8VSpY7c2JxozdiMyS5fCGT0T7ubOGrdqYEw/OmC3WGNinnClct+Jgk1uAhSnCG2Sh0KT9Ute+6bza7e4aoR4ui0PGUMLRQhoDEjx5LyNrU8gxptIv7GJtFsp/4G2EjbvheRn7+VcSc2F0v8uyqqR2mE4eUKh5KM3wFPk7/31VCSaarFcNvAemJM8EKutvqiUdTiq6T7wwu6YRVtwXmJv3F15OVK8DF3dL3DN+h/n1Yu63kk7Tyx/f8WfrCRrjgurWTK7pU42prEOmcGD4JiGyw531zf44FYNjM7kHU9mGf6oJN9eY7T4SuygnX32Za7GhUZ7VEHvqxA9lhcARjsd6LOOfKJg6AWV+42hIywg4gfF7cDMIEW+0h+a7eB9z12LgEGR0RFisKbay9N1hfSSAV0LJ+abdvKXq+KNp97xgDpfS9WeiBvpUJ/+muYnkxrr9SCY9CH2JrUeN795cu3XOmh/iJIKJJbMhVW3us1nzaIEY2MTMFTXMLy05I+x3JXAf9Nf3DyJQOmnTcU5vWKMv5fLjsOUygsRlyncsvqIXN2M14SUi5fPXXluvJQ1Omm3IcOtxngy0WyvrEv3BTLYzHWNWzUwtt65ww/jLn9QEDCaKBiwEV1909Jn8KO8GRoeqznbrX6wLXTK3StkVzRFvVw6+fBTeK5EmYtZp0JMJ1zW8DQKrwy5t3NukhD+hhPaz+IHL9ItEF1L/PIWneO0QYU2uXhGg8A6X2BUBj0YEn/1GxE4D4msyhwkhVYle3qA0Dv+4qDsTLRhxtXpcRI5zYKYsGMODbNvc22Q7bUzrOZa8Ib1hlwabqFC7VK4x8Iek+EeD/VSpA/yx3d0/CkzDQG9t6rnl8m7YtiZaqweuLf6Uvyg8T7skpkXeC+YI4tJ+fnn81b83OWsgUlrQ0yI2qxrN6WbmlpTnZAefifoCJICy/03SAvbyGqrBUbyPUxt6D8+LmJ3amAsNk2LgYffatH32gLAQgAZGi5eosWms5mnDzXR8hXLn7zSPF922sCilD2FaG9RGMkfJpX9wfrtDayaC1m3RN23xlwDlHSFXP8R5Nt/Arjt7XjRrDywDkdTi2KMlQAffhHQZWeIF84DpAO+ywmQiQrPckxT2N/5VoCf1X8KufQlr55ha63GM822Wbch4PtcCvHGNZDrFxVHcMq1/wHgIy4E3CzEa78Daj/xDMvR/or2abElAUBJN10WNw1k/LCaxSCxEE60u7y0IaIXXZK83il2v1Ce7aUV6XAhVi6dv/pKxniNbcu1krs16Ra7wSpraUqvRurxx+FcRdrIzfSzVQLjF8/0LpULM/0qZfx7JeXJmzVe+G4o+X57bfdNeJDkGsznN20xCZ+NRlmFv6eOtgSHffWizLNt2DbSregH65C/ALESiDf/AvH5zHzGyyy1DdkHTJNr5IRDT0Sk3W+H3Qq+y5GQzevh3rs/2K7HwDpIez+JFy6E/PRfHt8mNkZfuQJKxcyyzWFcDpVGgg0aB2vMH3VaC5+EePkXsE57A6wy2BbbZreIT56DeOF8nZ/6FBjK8QpYp/8HLF6uvI3dx44BBM1F3WdR4ZvtdgKsg3V8Y+fRo4F1tJ2DGJX/fI6r+e/7eftSR2jZES6scc+BdR8M8fnrcKf9UJW3raU1l4MpqvsuWDSQuUd8zZEYxnuz4Uy5xmSLhcZVWxDsv5v/np9DWPKSQqxa/uHqaxnnG6SUqzmz1ieYqM3EE42OW9f64C3IbgPGb3BV+OLvKE0vLqt0m53ybj26HF7WKXGzIB//Dn/aY4TRhIo8b8UB2rJMcQzShlNvshP40B+CJavgzv0H0LwmkmAhRuc9YieA8t5qosMmj9sqsEQ5ECsFq9oOfMRZGmhWzgGaVwP0fKwcLFain7dLIT5+FuKNP3lMqwAL8EY+6z4U9slTlbjs/udPkB9OhfWj6WAl2u1DNq7SaRA75RYYidWKqVqQGz6B+9gP9G+FWTofk1cRteSH3gq+sz7fy33tj5CpGlU3PvgUINkJ4oOHgHSt1o1W7wA2+ESwRKVidO67t0O8c6PO23TXNFtTuOD7/Rp8+E91Hm/8GfLd2zSr9T4KchTZlWC7nwbrIL0t17n/IMiaxV7ZuUeFiwwiagdKhPpaJe5lIBzYp78K1nVniMX/gvvPM2kLe2EQz0s60jcl3WDtcwmQqoNMNwKpWv03XQ+01kDWL1eLInNaIZ1WQDiA6xi6QlKH5FQfG8n/iigsik0qBibE6s8/WnujZfO1rovVUsq1Nhc1djbe4LgNLdsNQGZzNsBsVYyRxOc1s5Bsaiov4yzbqUvP6sPKqkomuT4wBh6x5rocFbLDQyb8pM8Pciu0b7jweaOaaDQhTnocvO9IiA+fhvPCxZ4uDUD1AMTO1MfPZB86CnLVewGoqGAwBZTnvkKe9d0H9okPKZFZkmjmZIBsi/7nZsG676Ymslj9AeTaBWBOC2SmFcg0AdlGyEwKsuYTyDV01Ehupc/l6Rl8mAV73D/BegyBbK2Dc/d+sI67D7z3cD3xnbQCAaqnEt/pn3TAynuoeso18+E8eoTB5nLtFtL22iWwTnkesnk1xMuXQ9Z+ohYT6+C/gg08FHBaIeY/Cla9Hfh2YyEzjRCLnoCYdw/QsAygxUehdAH6511jJZ1hETjFyyBXzIb4/FXwXY/yyu2V381CiixYWXewLgP14vLpTA0+6z+EePcOSGJqGuVDIE8AZB9xK1i/vVR5Vds4aUgnpVgzXWexUsjapZBLXoTMpnR/ZBohs9Q3zQqAZZ23xT+AzVw+Kt8uuyB22nRISnvtIr0gJjuBlXWB3LAEYtFUWPv+XAGiyjvTAmQaIFMaRClPd/Ydqj455pj/zWSNftNG4c+fEwFLVg72YclJCrl2xeK1t0DytczCSjCsdaS7oYzH62W8saXvjUizbaJ0sZXlq70uT4S1ZgCSLXVl5Yg51V26Vx9eVpW8MQDG3Lje9IwLEUR/BBFK0mTlcdhH3wk+YB/F3sS7d4OVdVK6OVT0gjX0FK2PW/8J7ZEGEhUaTKaekQcmoYLacbBEJ0iaWG5Ki4WK7nCgtDPi57wDWDbcWXdCLHgCiJcCsSRYvBIgYGhaBbn8zQLOf0YuUsA64ApYo87VmNO4GuK/98PaXx9a6L76B4gPHlQTk0RPWAnIT54D67ITrCNuV6DhPD0ekkT56I6fvJkmgdJuQOt6NaH5/leC9dhdM8QuO4OVds4VjAw0NZ9Ctm7Q4LvybYi3/wzJSDTNbW1U4rHPIGlFIda472UqTfHW9bAO+A34sNM73P/is9fgPDEOMPz/Qi+rRXAK+Hb7dTjN6IPurL/BfY0izhmBQCJmJdZ7BGKnPglZsxTZe8eqvuc7HAL7uLvUGHMeP1UvTKQ+GHsVeN8Reux9+gpYCY29LhAeMLZb0I2nk3lJMinWLl+y/jYKSk9nF4HJNSIrakqteJ1b1tjctxLp/1nGKB8bPBCuHAQpi8aPa7eTog/45jO1rBuj1XVBLlmZjGOJtBt3Um4ZHGdEMmH9lHbG+5+8Po9cMBlgVKj10yjozWAnED/jZQVQSnSNWGwL1pNAzVvh5cq5cB4bFwBjSOw0zSjVA2Af9hc1AVi8RInRsElUToDFEjnQI0bnZgE3o1lMthViyb/hvnylLpsPHqbMQNvKuuyK2OkvBEYN2VqD7B3DwYefDZaogniboqE5YBX9YJ/5uqqW89y5kKvngX/nNCXquXNuU2JbSBzxK+Qp9iSBunpAX6DwhtYxD4JvN0axaLF0plI38O+OV/VQrE1kYe14OFj3QSAdo/PcOQCPhZSFwRY7SlYIFYZRZa1CM3LwwaeCb7e/Bm0Sa0lHyWkxs8Gq+oFV9dELQs2nqlxixbtwFePXuswQ41UXBPiw8WBdd1GirFJfWDEwuwSs1x5gSTIm6Y9ib9TGavGkfPW0cF67HuLtSYEDkKnH87+zHQ5C7IR7FMATawSxQiphSTXEp6/CeeInavFDNoXY+JfAuuwAZ/rlcOdOzhmolH7T15WEtQPqqsf88vWI+Xp5s28LmhKlrFu3vOH5eNKqY3G7JlZi11rxWGOs1G7hiVjGSjBhKck+7Nmw0XgQfYGpEBkL2GkffqmwZF+LKK222z465M9w5cVqj7HpEqbcIjyBxHfV8xCo0IAwLZ0+EwjSMxuFGBhZn10JmRWQGQGRykJkSM/yDXy4hfhPZ6pJIVtrwUq7gFX2gkw1wJ17H9Bap9lOayPsH9wAVlIF57Ub4M6ZrEUwEktVDNZ2PiVdYA0frydGlpgjibQEABQrinR8HmWykmBq4nMNnrEyuO/cCqSKn8Kq2p/biJ3zpmKxxApJj5W9bQ8l9lm7/wjW3hfCfeV3kGs/QOzsWWoyOdN/AT5gP7AdD4Xzr4shl7wQ7LQMgYmBKvaJT4GVddWTlvJ4+FDYR98Lvv1BEIunQ3zwAFDWA/b3rldA4D5/gWLJfNg54AP2V7pS59lzizNs4cA66DrwPqNUu0rhQrxzG8RHTytWb+09AeKDRz0Rlqk2tPf7Jaz9LlEDNHPLd4GWdZ6xyke2In2j+s3XK2rDGuszArEfPQEWU0Fu1Mf98F9wpp2r+4PAkwA5VqbGi0xt0NHjinz4bkcjdvStECvmwvn3FWCl3cAHHwtryLFwFz4N8eGziB11qxKjlZhN8X/XLAQavoBM1UEseRli0TPhyCTtjbUvcV86AulaB3aJDavMhl1qgyUssBhX/2B5BjvfDchD17Z8gUO+JV5TBTu2qAdyOEKBh++AvXBi3e17VGRY9iIwdgwDSE9Cr3wEiSeYFHd0n7mwYKT1rwcYH9h1nJT8YSMoV0GfsHC7FytKIe4U2UDviSAaGAVEVkJkXIi0A2Q1MJq6k0JOLB0dA4XSCd4lJiZcMDcDa9+JsMdeDtm4Bumbh+UsiVIgfv5b4J0GwPnPJDiveae8+vvvPKZVzFxEYiMxFPvAn2uWSOxDKdU99kkskUDTyWgdFgR4lx1VEdN3HQK5blFBCddnDFR+a+S5kM3rEDvmFpVG5ubdwfvvA/u4fyiwdT98Fu7L/4f4+f9VE9B58TLw7Q4E3/lwBfDOi5dCLHzUK1euxXILn0Rs/Fs5dtZSg+zfvwP76HvAdzhYMyLSmxK7SlJgcAoBS0HYaZktA7MTEB8RMBJjzG1xC/WrcBA75gHwHccG3ZN94VeQn0xH7IdTFaMia7vzxGkQa96nOOCwD7wc1t4XqD5M37wH0Oody+I78kf87fP0cb5es6IX4uOfA6vonjesss9eCnfu/XpBUM+TTloTJ27nC1YaDHSfxw67GrJuBdyPXlDMnPUdAWvHMXDnPgCxej5iR1wHsfQNuHMfBMq6qrbjuxwG3nMwnNdvgfPqtR4wdnzaB0+amxk6YIqRjkRrTVYBokX/SmzwhAUe46qeKq57QF4L2vQjiuNCMyJsc881NgVrZ2hdgL83zWbHA6xroflNIr4Q7gk9Zy56O3pfFW3D2xdV2sK2K/e+obbhrUs6WXGMEILIOErHAAAgAElEQVQNqBx1w10dBQzzOfnQoGkyI8Pn5vpwvykJtvdOIJ5JFTSOVisFjKkcMLaXxJe/T8Cko+4TxtnDfozYkddDppuRuW0fSIv0g+VAohLxo28G6zwAYvm7EJ+/qXVp8XKIms/hzrymbT0j8cLv/hix718H6WaQuedoyJYNSomvxGYCRkFHfngiavchSJw9XQPj5CMhV7Ud41NLt5rxxM94GtLJIPvYaYidcDdYvBRi1ftwnrkQrKInYqdM8RjjZRDzH4F99GTwgQcpcMw8cITyGwxEt0gDWwf+BqzrrkqsJQNP5o6hiNH7Ox4Cd+49cF75NVjlAMTPelOD8x17KAOCfdhNsIacAPHhM8g+d64WcYM5Y0weSQB/IVjvYbB2OlTlnn1mAsSCJ2GNOg/2mMu16JhqQPaJ8RCfv4HYIX+ANepM1YbpG4dqXa5qD49ntDVIfANQsjPi46eBd90RYsV/wXsP1Zb9T9+AtcO+yviSuf8UiOUUsFYdzKD/UsT0eDGNk1SMnA8+RvUBklVg8QogSeqUcjjvPUxCP+wxl8KZfQ/ceY9p4F/2NuzRl8P6zgnITr8S7ux/dNAi/uVng3AkUrUOrFILdmkMPGnBImCMW+A2qRMIGDsC0JsOHHXTObKk4Sz+yYCxST1e/uDSgsDYOHviLULKC82bDJhROWrSQZvSRPKBXQ6Dw6YJgUTeqlogQf+ZYnmZ99v8TqsvRdPMEjBqUZoYY6H0o8wv90yuI/LZYW4zYTRNThNw2KlK56P+VfcHq+6riTuJyaQLa2cciGWzkL77CCXqFdt0Rm1kDToa8RPuUCKi+8E0rTMk0VfpHMuV0UWJcMpFpwQsUaqB8f4TFBDnPiHhRF32daykx0uc85LKI33zSFijLwPvNRSZR05F4uyZYCWVQTKZB4+F/GK2Knfs2Mlw339YibrayTxaaa0/IVUQ2+4AxE56BLK1HpnbCRj/AT7we5Ak7jev1+JmdX8tCtct021JTChRAZes/c94wFhk4JCVn5X2QuICHZIzO+0CBagkVtt7XajAUTZ+gezTF0N89h/YR/wF9vAfK/AiYITTkktZScse8EaiuvnAycp7In7a4+DdBkLWLkfm4TOQuOAllUbmiYtgDT0G1i4HQbbUIn3PCZBfzM9593AGnsgBY0hOKusK3mUn5c4k0y1K9UBSAS2MSncqXMQOvRr23ucg+8pfwUo7wd7zTGSmTYC16+Gwdj0Umacugjv/iSKRIwsqsUKt2pakVGh+CUcgVedqxkjidIkHjDELzGOMxXCxmERXDEuimKAKzlm2cRZ/MvURO8WrCHVmA4USlJAlYJjEXPmX7jMXri40fJhii9xaAYo9aH6krK18vroru+qqDii+8pN279v1IubImzuiNivo8UpJRtlzm3KsjreXY4wColUDY9SFOn+y5gNEGDz8X4WQTReS7/p9JE65O3iNDAbMd3amePHL5yg9I4m/1sAD1XNi+Xtw3rxNsUrli9ZSqwHAlF9yKQbfeL+9YB90GcgVhXXdAcyy4Mx9HLJ+mU4r06z0m7HRExUIuO89BueNWyDrV+jJrvwNCwCW0Y0K3PuM0MYh8pGzbCXeypoliP/4SfBee0B89qpya3HnP6aNEF0GQjathnSaQ04nofbWMrtus377IDZuigLCzK0EjHeB73QoxLK34C6aBlbSBfYBv1LGF2fG75Uu1tr9VPA+w+Au+iecZ84L+eapRI3thWoZq+yLxLlvaWB86ly4BNhUAgLmIScp0VoxbikQG/corJ0OVm2Yvml3lZ+pw1KqIaVCNJmpNsCwXsOQOPUesMqeCujTdx2tdrskJ+q8Mw+fBffzt5G8aAZYeTcNjg+cAbGEDFgcFLmdE40INq7nwIrv9n3Ej7lZq06U6oDGOY1t7RLkLn9P6Y7t4eOQefYyWP33hLX7sUg/MA72AZfAGjASaWKp5IIUDK6oySTXL21PPH+QROdMGM6IC6TqXc0YCRiTNniSxGjNGEFHqpljMIquHWZD5qDV/aPdStkvNzwcmwUmf+JKcWfPLgvnsMfhytGj7XprQ//qlz8g61rRD2ucM+E44eIeOgNcG6XYUgb5Ghjuqhw56Y22Xm7vnnvPznfCwVlqS6y5KBWw7oUw0A/p5CtUI3UPdY25eitgJJc6ATframDMeCdJRhi5and1zQSIIp0dvBs5vCkoF9Mg1XMI0LIesrUB9l5nIbbv2Sr97L9+j+ysycp1Bs0bEDvkN4gdcJG65372JpxX/gJ36dtaFCbLYRBsthDhot0lxD457GE/RPwHeveI8/5UOHMeUVZQsorb+5yjxTgp4cx/VgMiufvEyuG88w+4S8idxq+AHz3Hm5jCQfz4v4F16g/33fthj/kleOf+yL78JwUa8cOv0oD79l1w/vNnZfW2Rp4Fe8xlkKveR2bKOL0FzmyfCA4r6bHfnoj/8CllrU3fMhixo++EtfNhcN+7D9kXL1dW4sS570BmWpB9bgJYshL23heDVfeDu3Aask+fF1Y7KCdrhY66X0lHWdEfifP0MM48+VOIj2m3Dj3iwP7BLeB9hmuDFG1R7KH9QGXTeqRu2UNbtf0Atyq8qpd+kI/eTxXb+1y9UMUSui73joNY+jZ47+8g+bOXVXbpyePgfvIy+Pb7ITH+UTA7rnSp2eeuRvY/f8uJ0iRSGztz/Ca0Bh4CRscjrPwv4if/A7xzP2Rn3gixar7yOLCGjYM95Eikp5yL2P4XgvcegtTNByB+8p3gPXZF6u+HQ6x8L5h50V0weSzNuJD/rIdaoWgo+pruZgaXGGODgE1MUTFGW4vSpGMkw4vaiu4fuFbA2u/TGdN7wpzDxrz3iZUqji7A/fysj0//Mnuxg+Eq5/2iDNmGDBtx51d2Jq2krXlryl8RjhyV7+cQgVUTGf1o0d4Yz9vLHwHZoGECxkjiNAGjA6QzoUVSRxQxNMn6FI0gzmA09mJQypBsEyGhweomgNIuiB/1V9hDj1RMIjP9j0qsip94q9qJ0HrtborRWbsdgfhRfwKr0lvgRN0KiKWzkH3tZsg1C4MA3N44038qeiNJohkBrEWGFy/Qge+a47nlKCfibAoyTY7dzcqxWzuC0/e00kHRJCkgSOvqxkpQ8qt5ynKenf5HWMNOVuIhiWlUvviJf4M96Ailn8s89CPIbDOs7fZD7NCrVFu7i19B5vGf0GF6hm+e15IGQPIdRiN+ysMK+NI3D0HsyNtg7XI43PfuR/ZflyoxOnHeO5DZFoiPXoQ15JigO5y5DyA7/Vdg3m4OXRfj+AhvceGdBiJxzqsaGJ8gYHzeD+etfDVjB+efZOrMfRDZ5y4J3Jo0kCr1sbJeB2OZRNjD/ojYfufoR9JNECs+gFyzCJJYe2ln2KN+qO5lX/orBInOrQ2wdjsUsf1+Grh0Zd9+COkpF4KXeuqWaLxK10H8Rw/CHnwEUveeivhxN4BX9oQz7ymIlfPgLnoB9sjTwAeMgjN3CuJHXwekm9B67RAkfz4LvKoXWm/YE3LDZ4EVMjqcQ9ZJv74eMQlNR/90yGKRpbz+VTpGAkYlSlvgSQMYycikHCh8v82INUcNdgMFQ9gQsckYZaWvnOM95tQdwC5YV9DaHEGdoj/b0Xp1NJniz7XevdMOiayc5Qp0UZn5QTr9KClm/UNHcuYmUl5gAq+hAv9h3/1HWfgIFCPAqBo6V8agHP71cFSynAnbfC8qeUSov5oEe56O2H7nKh0PsYv0Uz+H885kWLsdhuQZjypdUMs1g8G67QS56gOgvCeSP31KDVy1Y6XuC7TesJdiACFA9McCsZqBo/VuidYGSNoO5oGe2u2gdqF4/oEkT5COjqzWtnYLYdKBILHY1/3lKYf0BXvoMUiMu0ul1fLXkUj+5EHwnrsh+/odyDz3f0p8jR9yBZz50xTzSZz9HJzXb1NuKLF9ztELwtQL4c5/MvChCw00+pGoQOLM6WCdt1dVFcvegVizSIE3+Q6SzyUZqqzvjPO2txEI/UHrGxtWI/3YjyHXfeT5J1KCBYYyjyFxyiPg2+mzT2T9SmSe/xXkZ68q/RwZf2KjL/UAima6C3fFbLiz71QGGO1W5qVN45ZEaXKKpbHgT9ZkJ5T87FWgtBqp+36ExFHXgnffqc2J4342G86cx5E4/jrd55O+pxzplfHFrIb/3XGUCG71+y7SUy5A/Khr1KJFxh3JY8i+eA3cRc+p7ZKJs/6pnpOuA+fNu5B98x+KyZJhT0kk/sfre/UnSjSKld58zhw7/nej7ASM6UapdYtKlPZ1jCROkyit9alF9YzGfAt8iw0cDaauAZqWjVomxZ7s3E8/+bLI9bUDIxXQuX1H8iF6gjxBQt64QekLLQkGapkoEXonPLOVhEMOvWR8oX8kSqfDBDgiUbfbfnkrqxeJL9pwNMFLLvgXWFlnOB88B9Z1R/BOfZCZfg3E8jkouejfevfFuiXg3QciM/MWiDUfIXnyrQqAMtP/BPez1yE+fyeY5OGy5n5R2rH9zgNL0j5pMq5UALQThYwvcdobnQTI2Vs5EpO/nPZvdBZNR2rySdq/0fuE6kcjULhInvcvWNuNgvv5u2i9ZYya+Fb/YZBNG+DMI7CzdNrxUmVp5VU9VWqpxy6E1W+4EtPJpUc7ufvCldHUUiDxw4dg7UqGlkY1YWlrmwIv2srmLwwBpyWLU1w7S7uO3iMsXDhv3AbnndsVTciBmEpF/Zc49m8hlhnUuXGNcnshVqe2zSlLvrc9UKE0bRZIAyIDd8V7cOdP1fVQHg++OJ1rQWvH0aqdnQ+no+SC6eCd+mtH73gy5Mfov+F+9Bpabz0C9t5nQCz7L8SqBVpCiOsAEXkfK4bSKxaq3VNKd632p3O0/HkkxLpPtIph6NGIfe9y8OreSsep+j1RCrFyPlIPnQGxfknIt7TYwO/I/MifEzo18zrFJ0g1SdjEFAkck1bIXYcCJwWxNc2zfkIFi+KCeTN8jzZDAfKH9gWfPtLupO7AA98IMFI5sjdvfxOAnwUBPyMNaVazrXLnkZxIWymrNLnrBMBIq+TXUc3IEKKgCANGqd7m1X2R/NFdSg/XesuhyrhQdqk+CCnz4l8R/94vlOWz5c97IXHsn2EP+h5Ewxq0Xr+vUsq397H6D0fJRS+qx8joQqxDMUjSlZHxJdUImW5Q+6RlayMSx/wR9q4Hwf3kdbT+jazeOd+/PIpCi/n2+8EefjLcj2fCeW8KEifehtieWiQs9hH1q9Dy51F6H7Cn38ub5T4zJ3eFk25HbOQpSE25UDGf5Kn/AO+1a3tVz92ntr1xL22sCoy5xuiQLuLH/x32d46HWL1IuUbZI37UQReRXDbpx86ES47RKlQj7RPXfoehcajiOHr0R9FK2tViwR52EpKn3KwSa73xEIiWWu1mk01BrP7QA3CPkZKlPmYwX1+soeBrvQajdOJrehFReuKEyq/56sGKxpZe8h+wCu2qR+MoNXmcWoSTZzzkAWUD0lMugrPgaWXo+SY+tLakm0SOLXqMkZy7lbuOdxQ6laXQnI6SU7/MhXBCJcXY3dZFn+poIV/B5+tAjILFkn/vXSpSiXdcIYeoBwosTb6Pc4frFVm61Pj0GCMpf2UrsQsyAhRgLcbxoL7A5OupcirksPycC1yWn6L/LlmDS3/xhlrds7MeRfqRs1UorbLfLVKTsvX2YxA/+mpYfYYi+940pKddirLLZumdMPNfQCsNau98rvyjMnWFrZ6DUfpLvR0v9fBFELWfKdZAaShXHfJzI3ZF3xNlsHY6UCnr3c/nomXSgYox6pS0+5H5Ca4Qg1LRc7jaoZI4+Vbw/t/V7h4UtcXbbkgiqVy3BOl/XQuxZkFuEVLJ5tLWUWw8h1zyv+09FPEDL0DqYTJQ0WTlsLbfG9aAEWDlxB7bXAIhm2uQfeV6r4za4T8YV1638e33QfywK5C69xQV4Yj3GwVr6NHgXQbobZvEeok9q10oxIJt75/e1kdMtvX2AzWLVZsHSJQ29ZjeOPaNMV4ZVPbky7rXaUiedKOSCJqu3A2yaa0qIvO2uAftTu+ppjbkW6/tyOUoccx1iB9wLrJznoCz6EUkx92m+pDGS/aNu8F33A/x0efDefdxpJ/9DWQTHbolQe5DJec8Cd5zF6QeOAvu/GfUTp5ceF9/IvpNZ/aXP0V1LMyctGzuS89d1d9yM4SMoHSagzK+EFv0RWmbaUd2ZZXOjbzo3PfVZ8EjxlyPQofF2GKeYiPYZZ8W39bVYVDRD35jwEiZNV/Xb0Qixl93BWhTbwc/hci9iYi5+8qNQjFGjzUq44tpHY1mGV2XzJN7zYlpPtdGsel8j/OegT1wb8imGqQeOh9IlMDabk/ER+ugDK33nq4mSsn4+zWjvPFg8H7fRfKkG9Qq33Lb0RBLXvPdsyP2SQ/gO/VH+ZXzNA44eqeLzFIg1FbtlEx/lb9bg2KmVp/dwXsMhLtqEVr+NDLHGINN3/4uhNxADwtGXhBcK+HhlTezVVQdan9COo+FFhxR5gzwtoTSrKB3yBldJeHFqNT+MLl9owHAhhcpVRAF3JH+MIcGgR3lYerWaPX0YzIqZmvMArKSKpDSoio5XetAHb7xxRCjA5OngYYhC6NE/IDzkTj2GrWQNF0xEGjx521kTBOKBm46EcUbAeOJNyO+7+lovf+ncOY8BmvnMUiefBN41+08RKMtjwJoqVPO8MQslThN/ygqUHUvZP59PZx5Uw3G3PbCk4OHqDhb7Hd4LhG7TjVD6xb9fwmufBjVzhfl4to+/OgnpDpjO899jzY7WDybzboHlfxq+X86CCgdeqz9knUomY4/lP1Lvz9IsCuUz6H3WiHY8Z0WfEujryA2VxDTwqwajtgiGV8IGGm/NDl4k1U6cCQwGVKYlIcPlw+vf9EhlA8furS83zCUnj8VrLQarfefDWunAxDf+0ehxmm5/Vg4H81E2S9ehfvpW0i/+Fe1wpeMuw2Ztx+A++mb2o3BeMuEBHWnpBolZz4MpBqQnnEzxOfvqhBgjMKRKUtw7qPmfef+yulcttRBNHwRWODNsz18C6F5Ho5ieKZ1sJBjqcGW8vqz4Nwzw3x7NTPdYPIKX0TU8t1ofC8DD1uD1T6MxSrVQrAfPO9bYNUFj1P5MX2D8kWsqH5Zi4E3xckkR3irBLL2cyNqQ35sygAqC5WbMSROuR3pJ3+hw4mprVVxZd22B+4D1nV7ZcBj5bQNkBz8adtk+Py3ltuPg/vRyx778+Ubz5JfcKzlH6fgPxaMEc9dR6fmzxndzrRmppoZrCRXOkZb7XrxQDGWE6VDwytvjfOIQEAnfTlHP8j1PJkU++WyiR1HoI49+Y0Do7yhb4mTBVmptUj9ZT6RiWcaX1zSBRnAGMqmEAn9MuXI+QuBd+qL2N6nI/381bCHnYjS8fcoVkeg5Lz7BFLTLtfmTRLjyMjgR+GhkdSRiDx+OUmUVaPDi5i9UeUvhFi5vavmfA8tH1HSRg+aLgOh0WQ2cqTBDWlUgTO5SxlO04GwZu4aK4ZqJuKFQLUdRtTGbd/xOCiHiooSnEgTRtgQEhdoIL9Z1QFaHsFVeftRf1QjFuk9o5DF9EyKAXtxPGkskFqAouwkCJRpF1aVMmw5C6d7W0U3aqDohzdhvvjAaCu2yLUPY0IDo7JKk7/mpqKP1yycs8X1aB3W7dL1/pkRm1C5wq9satG+VAFar+m1vw02wxHKzVN93J12h6juDN7UCL58MVgTiQHGwAhNDDMsj/+YjsRMrDEkSmc0Y2yrooUE87YEhsKCvOeKpAaSACNLaawEvKKH2gusDCJkfS0AfoXwJupkWIi1RjtBY4tmeUEZjUEdGt8+WQsxKd1KodPjvIzz5kYAbsaREb5jut/aClC07kmLvl5PBCDoiUeBGO31kgeIXnVCTK/QPG1v3hbtrzZHsdniOaaYl5c/sEJKzvDxaiH+71Ok0O4ZjwkZB05pQ60uQ6QkoaHhA1cUZMwxFTX6mnOh0DgvNFfMNizWbH6VPOcGtDYzaGD0wJGs7krHaACjP9iCAhs5hQoeLoHFIQQThycvX6WtkF/x51sBRqpD5g+97hISP6XGFD37wdljn1zVhID14VzwZfoAJhPY2upInzH6ojQFkWAeMAYJFZtFHen5jjR+W7O0vRlcKP3QCPceaKsORXu0HQbV7vIRKZw3C0K7morm7TVu4HiaS0tH7MpRSK3jy2evHWn6dp8phDBFXsp/tI2p4gN+gZhZ/ltRcA4t+iZItlcJ1fdt9KU5NqLjpNgYb29cRt9r73lflG4hpsgDxmgpUZopcPSt0ib2hbiP0Q7RvlDqacYeif/6i1Pba65Nvf+tAWPT/3XvEUvyBeT4LZNlWq/TpTvcgYOB0jJVH+v9WeDL29zSGKp3IEordx2pwo75wNheX0bHUxSQ/d+FxlZHMLWtMekDf1vMpth4b69eZrmLMQF1XWVOu4C8H74hQiWQO6XP45TaUZ+e9Qvti9SBf5oBfjkiGGY79K6y49DqaJBKz0Ibqlu08MYKWbQN2hjd6p22Ot1IP1eTcII5K6wpFhqJdnR2bQwwFpjpHV0nOzpWollsypgnUbq1hcM2gJHHmLcl0NsrHR34HZTZbQv1TjoztPSPNcs3Ffjae6+jXddeOht9X/62c2Vaxpa4UnYNtUcsDnfEAZBduyuLoPXOTLD1RgAMf39mgV5W4yuwSoeBcaML2MEXOsLDOphU6LGNSndTR7yZowdyoTnq6/iKjRLf7cQDRUVkzH/tVdwHV2U00yCrPXeIURieP/5uqejq5E+s9vLpyP0oEBbpgDb7JdpOHVaiGYy5DY1jR6qxuTxDRvLWZgJG2vHClI7Rimu2GPgxmsBoLp7FFizveQtoyDp8YMW1q8kv6Wv5fGvA2Hx5tzMtjn/QRgJzfKufsRjcAw4FKqqAbAbWay+CNdbled3ltR+NLwpUSzvjlPHFAcsa26C8JizEvtpadTsy/wq93xG86ggT9J8pNHcVczN1qF6PtsmiCrIh32iam/pRybc9SZlA0WQXxepWcCSb9TAy6kgbRvG9LWbcXnp590N0yQsGFzzkHQLVluRfTPlnFFrt1S8wNovN+I1qVzMf73sU3Iv1ayGmGF2bouKvn5ZmjB4okvElrv/5sRiVp5XXNu0x3mh9KZSjI3BxxbXrtPf81/D5VoBR/hY8k+k6Kyvk8KKdX1UNMeZw7XOXSYPNmw2+fKnh8qDfDDWavyVQnRwpINNuDhgLjYaCANEBqtAubTDQvhgKb2xnbhSF3NjEizwfHfX+Y+YsNl7VkWg6kHexBztax0LPFSlTB0qT5w9UrBgdLV6QZ97sMhvUG70daS+zEsXqXiidQqhVbJX1N+60lU575TDua8ZIbjqenjHhidHEGGmn6JexStPeIs4Wzt+wfo8Rd+IrC3oTrV6Hxs5X+VDTJVUHWbb1b0e07WAutx8IOdIwyqRagYZ68E8+BL6gwKXhUmmdl9DbXsmXMeOCF2CMAaLSl+jgLbocR0ZkdJkrsOypSwa78Db06kyDm5El3SxPG2kGluNIx+R7dURi0kfr3N5yba4+HahzUJz2qFlBW2sbM69Q3gX6L+d76aVl0J5wfxRwQ2m3zJvmutKhuRONqGO+ZI4hf9AXpXPGOI2CXHRs5bVfcfaQ1zTGBb9dyYruOzUpxthMjJGAkURpDouMLqRnJMqnfPN1gYJ1MpK9/lm4UygGheOIoytvqKN9jl/551thjM0/r35RCBwSuG8YSBV1ixO7DQV2HxbykmdPPw7W0qwNAJHO1g7etCPEA0Y6+6SDzWb2S+F4dW0v1x1hFOFncr/ChKcjKRWrlF/y/DSieYedSvIdqcPt4TuO+PmGW9Usf87ZN1w/cy4Xw1gzVf128RiY/spYjCxG38yvj48MujTR9tA1Ldxjha621WvF26TYiMj1b+F0275aCAML1ye/1n7KbY1Vc0NE/kiQ5EuD1iYtSivWGCfG6OkXaTugxxgDA5Y3IMwRQ76tCmw95NX5eH6vKkAPe6Pkr7X7f5m4i34rN8ye+EdIwSua669iY+5NfePA2PCziv0si7/qio7vZpc9egGDhgCdOgPNTWDTnyuMCurYFR2sVjNGB5y2zKnWNro5mEkFhoC/9Sg4klA/83GP/fDgnrfA4TH0qV+E4Z9PxYilT8D2z1cJXCgKyJN5oqPvh+kvlx4tM5/zv7crn3qVMV1FzLoGLVWorv5N754aeQbMRN1C/PshhPENB5EjH6M+qN6AjkYsVkkVCHgaKoc3IbRrR1SpaoBX0fhZHVhoCrWzaorotCsA737bh9rdbG+vfyPNG4Y+T7wIrQyFdBNmFGcvwbzjM83dRZF0g6YIPM/DiuGgqAXu5y0URh1VW+XGghKlPWBUbNEAxoAxlpVD7rob0LMPUFau31+zGuxVHdw37xPpRosR/5GHV93UoA812sSPfOxEq2G7Pp8B6McYFnGJn200MNKu2LVjBl8Bxn4CyL7dZywoo814HSkTGR2bL6qY4YKNDnZMmMt9Macmv7M8uVStJN7ECzCPnhF0DKYEhTxS4JjRJ/aZm5t0dv6JKvqXz14KSR76nsSTw6/B2zuMC1WzqmUVjpp3NYau0FGh/dTCGw8NB2gDdHLP5FxhwvPGZzFmljmeZVsUXVoi49D5zbnJmnPtzokq+m5OwR+wIH81VuZgcxIauzz0i8Lz2CHlhzq+SfW5vq7/MrjSu0fXKLykMjoztadFvxN+V8UG8zaEUBGD5veu5drULLpn96ZgNPosOKXX1LvDJJ0RoL8zhbbaI1I9R9cBLumMWf+7vk42ALquvkum0qB3PViMUBlzDSkw6HNjKddXuUnmj6Yw7JutnQtgEu13nz371/2ezrmPm3n74zyXSi4YRM79KuBgxujNjZXoBlpznIWFXHPkewOGROkoY/R8GHsD+/wAABucSURBVFUUPPI6OHEcUKLPIwo+ixYA71LovSJqi9woUWW2OWaVrmrYh44t6AgGFXqmftYECh31YHCP4bmNBsa1Y4dMkcBJfiKJDOtc/foH7cfKAlB7QenRMfCpjg6YnQdI5n5LP/1CBTTX7CiwqR1SZJH29ktzP0hBCIAjPhFmAMzIObf+dP37mIfRlOiC9RXbwaXzgI3P7sufwwmzL0PSMYIGm2gbraxZljAa6g0i5pY5owH8r7YlUZIQZJlDayp0YLkKpapOryegAhw6WUEyRsZ/VzCWVYGzGMvScdCS0z04YCwrmHrWEf67HA4kpcOFpANS6Oh6AkDun3ziez4GJ0To4328+cppFkU6L1Qvg1/Qa9625LxQAR1acY2+iIroqkjGGhME3aLzuCRhKEG3Bk9IySm8AZNCOQ1JAZtLWLQzmUnYELC4pO+SwhPFoP/SM+o3h9SnmUgZk3SN4o8JWAS8+tBvLSVFu98HAX8BC4edCW1Nymd3+fipr5htHx2Lhd6JElx/Yvlp5es4cjhSYPs76RhbmizYcdIvMs8iTTtY9QmByir9vcOB3n1Cc0k+Ow1s/froxq/gGbN/6Ts1rhDih1V3ND+8KcAo559f3tgS/1ACfkEcbmH3jQLGNQcPPh6CPeG12Ycc7JLuMz54oSMFkhNR0pQqf8+VcpdgNSgACgUVgtFOLvSeVyi9dVRvC6SAtQoYTZSN0kNTtDAzD6homEc6PIHPuo3AGzudjoV9Dg50n10al+K0189Bz/qP2m8OXxqKgDUxKwZGgOaCSYpImiHwAkNGgGckZMayZLLKcreXHM11sP+bgUX7RDPCoueYSyDImHRIzUrbplQoNg6a6WFG5iMOU+cwqXv6EpEm9Vtdo3vK95o8U9TZPSpJdd3rBvVXNavnjmi+5z/nNwpBrHnNZIfRhgu3vE4/UMDkwW74bfKAiUYeFN47/nUCRg+RVU/4bpT0HD2j/qqDlbyFnMDUg5zgvtbSqKWDnvU4sGKcHqMlMLWYgC0JVIWkqItxLhBnAjEpBJ0NmGASCehTNeNcihiBrQQSBL5Mg2oArCFcizZStBGD8d3+sGz7iY1LyAdGHxR1dDfPj9H3U917HyCbBdatA0jlVVoKLPaCb5vspxDJMOa0zbC0Nd28e7fJ2Og90w2zJt4pIc8ykPeqqj0n/W6jgHH12CFEMY9gwPPdEqnj2AuL24rpFWrn+rNLf8OA39OsjwzhQPGthVb/E9m4X2ANKdRVKh4jBWAmcZrgROrjU/XHTD0navqiRTh3X+AsZoZhWNp1OJ4cdS3WVO2sUo87zThh1qXY4/NnNbL48CIgWZKtI320YCwNsLS00CoZUi7jadholUBGcmJujBidQ/GiiZ35sQY0sAn0yKaPtaQsXReLT81YVoMXkUmLutSSHqPzJqpQXE+zNw10mv7RZJacUWPpe/4z6j0tDWnA01oHDZ7+tZwUl2tQxbsM8KUSEcE0G9UvQ0hSz+lh1LMeYG8sUwyNqQhomkCn2sADPaYDIPpDgwRq4ssKgujQQ2/I+HIitVYAlKo1KLShHlZ+7RmtbNRaOuiPar3gPXVqLEG757/uxaZQ95nWClCHqzw8xqrst8RSIYidyhiXMsEEkkyKJHNRYgkkpZRJLmWJbJX9KdyiytyD5lwFw+ojv9JRBUtunvhVy7VsWJTOCdO5J3OGHOF6xhdijN4/Yosq5okPjF7SbUNuIRkgjCBaXyKvq7yr9bIIuLT5s37Wxb8G2NXGQ29Ujlx5IGOPuxsFjGvGDFnLGLrEhLNjp5kfLu1oIRrPiA9iFp+VldB7/Tbp0/6K5QORYoykY8ySHESEK9fdZtaFiCjdN3MK5eqHCvRC+pEaK4Mknh3xa8wdmgsvtseiKRjzn+tQ0lqraQjN/Z1j9yLGUwQy68p3Kuve/EmTJhpCcpoPNJ3ImOfp3bgHWEpbpvV4ssJJ71LlusfV27HJTZa1wtPzqbWAJAoveoTS21GaaocfAZQPah7AabDTQMaZSz7xckPlrmUPDf7bOQctvfHRoeueXk7vkXJbPavCxitKqQBSKXO4vu9SUCB/xvjPqUb0LBIUstG7bxn3Ff7471Ei3kd/s9RpBRszTOhAP/N5oldueNYH91XN1X1trfF/e3VkLleHNyjAI9BS36mzci2pAFA/o6LvUsQ3RpK2pQBTarDTayp1sgJDyodkdQW66h61jMUYl8wR4MpQS897ek71vgZogliS8VVa6rr3jA+uTLCY/DhzjmKlvjHIDzfJPUUqFc4LY0lo68Uh1opYb6dRVKKOEreO9kk2zZBJaaOLb3ghl2S180XHPw6oTi5NM/eOdr/uVovJtHDdfarvyc5tr4xS/taun1X/R8bwS0Pp8BG33f0rht2idtNsHDCOHUKHEn/aY8YHHQ4ZJk9EvKE8/qoA2ysnc0UUq1Hx1kSnQqgW7T2/JbwDi7QBRusa1bZC5oVlUs95Da7S0AnpPdakqyC2SX+9397ZUvq+vmakoL772+AW7XQEnj/oWqQT+iD6ZKoOw+Y/gt0Wv4AeNYsE286etLz7qOTbA04btrjb6BGjP7nxsX0+u2uRMhkxRpFGKWsFaASQJP4qwCMxWDJlT+qdbbnEYWzeukTiX8rsQUyPnieW6AGpAlHJSFkm6JvUpgR11f+uAM8DRmoZx7Jw28iXftMQ7zWcSTc7aMOLt5308c/+TXilwMsDKfW+B2gK2ChXPz6SoANJlQtFbkT7z3MPTP1QkfSO953AMhxBMjesbbI6ej/NwxjMgU/66uhE8J91BRi9T799TWxagJn3FVgLMFdIRmV3XeoC/WE+2HrMkNLzQdTi9A79ttSSRGBqS+8aMU+PUVIa5IFhWSo6GCdIVODnSjpFlERzbkmLCSa5YpuOBk0Swwm7lDFIU1Ddk3RPA6syJtEt6m7pIGEtzVzu6TZzZ197veF3ivJz9XXYEezRyK1BS8Xp9b4zLpVTNt1XbLZAfGCzD2ieNDfQ6sKU+ExitHbVocp6+kWz13wdfyEcCDqjDWOM9z4H/tvQlN6n3+PwTpMrDJH1syY8Rqaf4K7EJzHGDyoddUOw93qjgHH1mCGLOLC++yvz928Plf37tT+J/55x/IYOVwuAxHdmLbIomKuUD0SFvGECNud9UX+IzamtgdqfUekaSX5R2OOdc+Qw7c7jgV14t4ZWAPqBW4N+8VvK+xvs9PJ/A2go74nnxlyLxQNGh5pHhWZQTDCn9ko6jWsunrnPry3XcTgnzkZ6QEYSSMAg9TUlXYlymdmx0nEuWZOIn5/lzLE0eGrA84Dvk96Hdtll3YtrbQ+k6D49p80KZEohxSXtGtBgR3/p923DX/5VTbzvsVTomGj9+IhPr75kZN1Ta+i3gywVSHWJ7ernY2TXNT5kdTA3XobuW/khZ0LPuvnM0NcKk/Uia9i5VLoZIEumJe8T5KUKlitUNmU8Q+n4t/1n6Lx6Lx3KIks2de+TFWDqMTrNlMCR8rT0NdqUwATNco91kgnLLwsBsaWBVz8H5nDJYtqur8BTid2UJgGra3HvpIHgGgEkKVGUSOyCu0zqZyg9BgJPrhwS6LuUlgJaYXHhyJLYisxNkkptgqH/3R/kAUKaSmddgdA88Pex+xMwoBSeyT4ATg2WCjg1+IPYoioggSKBIQGjJ0YrWuwFGgmxUcM7KIotUTwohj1KGcHl9dX3ZH/RFj7J9y/r1JROnS8kjmMMq1wbP+r03Ul15jsbBYxrxg6+k2xJPWbM92Kqtw2PG35of8+22LOOgDrmJzSbom5vCjULMEn/utFBeRY3490cu/NZo+fTqEDSi1Sv5FWv7N4qpWUq739B6ED9UACSBggGZaBONtQgBJif9dkHb3znLHzaZz8IP+S/l50t0mu7NS15+ZCPr31mQO27tcRpCbwc4UrLUjpFQeOLmI4StMBElkH2TbdOdCwsqk2WPgtXAx39s+k+gJk7/GyHFC+3f7DkqkXSAk0ZGXc0YKnfHgBJi6nrpByOW5DXj/jPFQ3xnqdR8eKyZeapSy64eOem15tM5XHCZjLlX/AOpUiQzdr/JIFkDLI1BSTt8HV1LcbU8Tv0DDlntJAY29rquInCLhZEUIjAm6PLShPpKyN0Co1ZRq3gfYg+0VeiCyXeX5YFS9LZONGh6j9E17OS0X16znyQ2eG8MmlweiZtaxClpiCPMDVGfFW2C0bvBddtSQDHFAgToFkaGDUYx4xrksG/t7LHWNaaPDnbecM1TufGLwgYHQJJR/IYPaP1iJyAkyiYSyCZlqUla9NTpEQ8b1umyRBDQYINQIwCZh6g5vSH1MOv7nUJRvz3PpS2bvAS0fNHhQTzWKFmiNroooFT6x8UgG0M8kTBw3w3gpqW0pCIEzo96E5rG53avrsxxcOaMYP3BWOvS5sP7fni+/PbSrruVOzALfutrIvuPqaZUnHBkHLG7jU/bYU5eahaPGcFjL7oS6xRue94Ry6TPKpYYthXJADFAmwwaCDtHOf1fg5D1WDwixN5P2uXYE3nndGa7Cw+Hjj60qrWxYtHLpvyBTFAy4bIusTamAKtWIyipGUVoMU8NihdNe0lTaS+TnrKChsnu3bCIWAjgJMeCMks5F9Hz/nrOfOO+FWXzNqsjwxKXZ9lssR7rhlAaYxJ9TcO9feGnV6/qCXW5bK4aH7gwiWHX97FWRoo/GQcsjwJKTOQDSTzpyFLyY3H+2Rb4TZ31uA2cANcDIbEib5xO2/h6ajSaJPHc6FjyfEY+OLVsJMOeIyAxAfRJrBupWA1JWANLng1gLo6fb5fUIAqgHnMk5M7bOTTnAYrBzkmA82kyi4H+Q4wNBOE608L+QrEJeMecLY6GlRpgaAYJ6VxsJQjWToGVuKClSzvcyRrLbkWahWQNbKq4YzmLms/JLAlIM4yybNZcALYhB1j/neWFaWJdZkZkqzbxuQJ1Fc+MSkCgGqO+tvO6BkFoDkUNcH23UGn4vkD/4B95/4NY9/8c7ASBrxCsUmyQHvH5xAYWp5u0TtRN9qYphTtz/eQ378xx5Q6IDy8cj3DyLcKtdmss2/XKSBV1SZ9NgoYKYe1Y4e8CIaa7i/PP6VYjqtORLfSGJ/pSDYoqLDBqtR7oZbwfCV8tZ/RsXmWk+hqYbLMYJXzwJEU/8pQ4jl8EyB6orYyisg4Ym4vMJRA8Do49uqANKoiFANKowzR4Cn6t7E7QQE7c5vL+V4yzuticQgCKwK1uIAgpiLJM86CTNIZ7zaTIgNJrCpZwoRIM9lLNu1puTi4pqriavJHKEtByjiTFOO8ItEgp+xyz4CPq0bfd8Vr2x9YlYAkp9LqZI651dDvUv2b1vfOLZC0XIkWSNEMefegx3ocvvCkNT0qIft28t4j09poOGxMDgg3aYRtwS+RYWPxzxC3O+dA0a4CsxrCIMnLwKgd/aquawLr4f2gezWtYJ1LIOkvnX9Y1wryRVAjhZeCNabBqlClQDW2rO8vmMsvzzWbXO12qxmbqmioYXEwAtbyOJTvAgFrmktO7NgSoqykxn1Pu/gYjR5gm/7iy0DGj9DX4BkjDQLM1kQ1VncehLcHn44Ptz9UZdB9w4c47/HDQqKgr3P3nbiVvtJnkL6Bx2eMJiaYUldUujTHUPSd6Pjy9Y1MLnFSYv9uT2HVpgzBjQbGdWN230VAvMcYO637jA8eL5Rp3SnsSRfsuA5FWtmUUrfzjm+dVuzQY4+kdyRuoxmlbl07vSOYzC2wbuJzSN4cBkQTBA2wDAFn9LrPcv3JwZBNlcQGpWKx+pJSJmRKg1pZBRfEUirjdVIkIKtLIDes1y917ge5dh3glkLuWo8rHeCJmnIolu5UhrUS13xnye8E7GGXvTLgyHRnyMEAFiwEUp0gh/eCfHwhZLdBtN0IAlfpU1a+hmb/n0nSJyzeeVwMvwPDwgijHJT7PVOtMcCcVWAUTmpBLRgG6eZK1ITfsxvBSpcNIWdlpfNVHy4fkXssUL52vAWsphzM8sC1IQNWjWpkRLqsc0v6EylREurcEMAV6CKfTNAtg00GPz0gmnzow/i0dy6gS2mqBmc+cyK61S1WcykXvIQMODpwr69L9A06PmhGycTXNXAsJmd2elSO2ZT0NxoYKZO1Y4eeLiFvZVwc1v2lhfqAY+Oz4URcyRi7SslY5smQHruLxppV/WGIy37DmWKAfz94zPui/pisUeXpxcnzxWpKyDsFU62IVCa3AjzVP1RuaddDJlfoa9oRTRt7DVk5d2qeN4qiwOmnaFy3ORYtT8qR2RLIHmWQTi2kU5EDp/RqSAIxerXxY0iaRDMPzBVt3y/wQKw3cifeX+V7LepynvnUso/AsGDysf1zk2lTRsO2d76xFigo9nsjr/bgoYOzQr5vFMa17MyQLpmPCYUwZ2cNpslasERP/Z3GUB+wN7MSOpRfCB1zkysqhkafDc05rwD0zufdR+DOI55UV8pa1+P0F09Drw2eNi0kDXoqJ0/fqOaOZ2wJVGL+6Yv+tI+gUO5YHC8tE7wjPeTPf/XXn5IeaxSQ13d7DG0aYop1+CYBIyW2ZuyQ3wH4OYCf9Jgxf6qZQe0xqJZxzIRk3/GP9NA+w74C10DBApYU9VxQUx8BTZ7j93rOzh9OO6oj0SuaYoq+8THVByxLmiX6CCC5BojVEWLmUNoExADho02pfcT88EjaNU+XmQaCzdHsuji+8xD8+/GFYCcOgsRVADXe7/KHbx6Tk+ehk+vg9/ZduKhQJ/7kqRU720x8BMamTj6m33Hf2MzeltHX2gJrxw5ZLoG+QSZMXt3j5QVXmplGwXXdcdg/buFZR6IiEJl9pAvp78OGFOM83WDs5nlqQOLB0XcikW3CoXOvQ0XLGm/06kmiR32uRFqjpOenvu7r6M0a5EzRsrknZKoLwLNg8QawkvXKouWtFQHSezOr6L5ZJaVrr5IPbVvuX/kIPBls47prk4FRgeOYIbcBOE8yXNNDzP8dm5nTR607ChU8jjMZMCKI4rBxZdvkp42AyH6P+b3n15e5dbseL6VNqmCHlS3/J4vXu8qpWrvA5FTw+iySnGomNwpC5TOh3hsT5DG0hkvc3eVJLNjUyjhn4xjCWPsuhBYfP70zpi07g0lMBvDS5GP7H7Kp+Wx7b/NqgTVjhrwFhr38UjHgje4z5u/XXinXHYVdEMNPLaB3ofhV5txgMUXlgp040WGvniXPeXJkJP9JY0ulvzVSbRNVPmOhkpGXrN4PRN60yoEu9/GO7VYX1C4kmoQ1u54opXEYNs/CLl85h8WaOrDH1khcO5z8lzv4x/+3d7WxTZVR+Dn9WBk4BjLWDdmmyBC2zg9C4g+/YIUpxAxKVIjGIKUgiBKJP4zEECDRxBh/kCEJbN0w/jAGYkdggsC6KUJUVJB1w8wfaiewdW5B0cDW9R7z9mN00G39uGs3ec/P3vOec97nNufe956vybUYkIIzHHY3uexY2G/l7VxQvFkheh+MCwro1dyGpi8Tkzjyqz0Lix5lRXMy4ON4V46zOeLb2MhbMryGXht2XmNsz7RDxFBuIWutexcYGwH8WG3JH7Qj+vCaJMdoQsBjNp1lxoNhNnUbnS4Ru/nfUffCGZm9yngHAY+H5eKLfV7TMy+6s6H5VLI3ndAbY8hYj7n4KWaqgnhKEY4R086pzqajo/Ej/y+LZxom9o5rBAefxoQyY73reLKBj1afdy0+01di0COytdZ9HAzRzaKz2pLnT42SNLYR4Geh9XSZPARkMOMKCK1E+Cq73rVlbO9saOuDgd1dIPF/7qeuNEU3b3LjuahLkNXASBXHKAzxzC+6gzUa0ZVikz/7HvwbgQ5B4c97DPgu74vmiG88Yi0XFaW1G1GY29AS95EzGjDaF5aUaBSuYKA/tKFVaE5WY9PP0axPNg/bMKeP8LK+Eq8PpntNrdvFjGJxbJmQNn5SxZIpIuVQkkRgTCIgSiH/LDV9qADrb2yATxqdzeJtMmmkmmMMWdxuLplB4PVgrAaQFfqdwJdEWhgBfzHoKqCkgWkSCCLl6z4Rp0g36HMyjpwdkZGIHWbTWQw8mgjT/s02XJ8SS5egpN0ZkcxrwzZinNHZMUjLcsBa2+YGc57/AUPaR2qW3XU6mTZKXRIBtREQzrGz1HSCgfBUm+U3B3nV1hsuT3XHGBL+6/y7x2VQxpNM/JgCiNrqB4JVVAP3w+gE+DS0dMrX11szrbE1rijScCB1mIv3gGld2FNIYdZsyGlo2jvc2lRcF8cpbyZa9T24nz4WtRSRyepwi5TIQOcK0KZqS15FKuyVOiUCaiLQZS4u6lPIFQrcMqEup971tJo6hpI1Yo4xktKuxTMn9vWMm8qKL12rV7qv6HxdhTH0dEwEFM8Ck5UJ9qAD+VYL2pLlPO9MROZIru2x4RkwrAY7lgylx+po2wZQAUi5zhpNXU359MMjaZeULREIIbC61r0CjPVareatqvLp38SDzKX5s7J02rSlYCXdpyiHc8PaGd4UgOoyOl39J9B4dMWyJqmOMRbD1ObtNM+exay1KMyNOQ0twaESamtRRx6/BoP3Gs4zY7vBjrhatqtjiZQiERgcAavDLYZQlfm/4hB9YF+WJ/obRk2dpXPm+qA5RoFKSXHiqTc6m/oDL+1m0xlizAtc47+NzubMqIUnyHjbOMYEcUrq8l4b9hBhpY6QS3v9zWgkSQRGHQJWh1t89vI7NQKO2y35wklGTZ5SU2N4IJSAq41TXJOf2w9fMFAqar8DrTQZJ4wNrqTl6UrHGPVtTA6jdy22M2MrAe/oq/B2crRKLRKB2BGwOtzioS16WAi6XG3JnxaLlI5Sk+iJ4m9PxODNOsKp9sv8U3YWilmnEbOlZgTliT7nZVn1TSdikZ8Ir3SMiaCn4lp+ERO8BohKolUEdOv6cC/tiz9zX0XTpCiJQEQErI62VoALQxcV+B7aZ7nnXLRweUpNFxiY7XeMGlomBjURaVcCLKaQ3hh/ybzV2NAcPpslWhVx80nHGDd06izkddB7FYiB1TsAFPilEjamVWK3OhqkFInAyCCw5qB7NyvYECbdXm3Jt0WrLdiMpmYI/otEeCO73vVptDLV4pOOUS0kY5TjXYs3WfGXfC0CBb7TBOmTtCo8H6M4yS4RSDoCLx1qK9T4+Dw40Pzc39Bcy3M/Ki+IulCjw1zygsh7DpY/iubevzPoay376to7cMTU0hI+CSNpe5SOMWlQD1TktaGOcUsqzg/6HjwxVN5iisyVaiUCERFYc/CPVayw3T9AQxDzgerlBTcGTY1R3KRjTNGN67NhnQLsCakn4KguHSuoArKkL0X3RKqNDwGrw11GoPcU4gM1S/Pe7R+dG5+4UbFKOsYU3QZ+BTneXlxk4DIBO/RVqByNTTdSBI9UKxFIKQLSMaYQ/t7VeFj/D76n/ZGn5aXQNKlaInBbI/Af7NFDa4Ye3CIAAAAASUVORK5CYII="},36459:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return te}});function te(ue){if(ue==null)throw new TypeError("Cannot destructure "+ue)}}}]);