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

224 lines
1.2 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],{89489:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},59477:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},81953:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},49198:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},87169:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},52671:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},8657:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},10906:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},56082:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},33853:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},15075:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},43531:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},76618:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},38819:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:ve}))},ie=ge.forwardRef(fe),ue=ie},21697:function(ht,Ve){"use strict";Ve.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},12085:function(ht,Ve){"use strict";Ve.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"}},45298:function(){"use strict"},60515:function(ht,Ve,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,fe=(le,me,ae)=>me in le?ge(le,me,{enumerable:!0,configurable:!0,writable:!0,value:ae}):le[me]=ae,ie=(le,me)=>{for(var ae in me||(me={}))ve.call(me,ae)&&fe(le,ae,me[ae]);if(be)for(var ae of be(me))Se.call(me,ae)&&fe(le,ae,me[ae]);return le};const ue=le=>React.createElement("svg",ie({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"})));Ve.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},88977:function(ht,Ve,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,fe=(le,me,ae)=>me in le?ge(le,me,{enumerable:!0,configurable:!0,writable:!0,value:ae}):le[me]=ae,ie=(le,me)=>{for(var ae in me||(me={}))ve.call(me,ae)&&fe(le,ae,me[ae]);if(be)for(var ae of be(me))Se.call(me,ae)&&fe(le,ae,me[ae]);return le};const ue=le=>React.createElement("svg",ie({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"})));Ve.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},20397:function(){"use strict";function ht(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(ht.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(ht.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(ht.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(ht.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 ht))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 Ve=[];function te(ne,a){var y=Ve.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ee(){var ne=Ve.pop();return ne===void 0?new go.Point:ne}function ge(ne){Ve.push(ne)}function be(ne,a,y,E,b,x,z,re,se){se||(se=new go.Point);var ce=ne-y,_e=b-z,ye=NaN,De=NaN;if(ce===0)if(_e===0)ne===y&&(ye=ne,De=a);else{var Ee=(x-re)/_e,je=x-Ee*b;ye=ne,De=Ee*ye+je}else if(_e===0){var Le=(a-E)/ce,ft=a-Le*ne;ye=b,De=Le*ye+ft}else{var Le=(a-E)/ce,Ee=(x-re)/_e,ft=a-Le*ne,je=x-Ee*b;ye=(je-ft)/(Le-Ee),De=Le*ye+ft}return se.x=ye,se.y=De,se}function ve(ne,a,y,E,b,x,z,re,se,ce,_e,ye,De,Ee){var je=1-se,Le=se,ft=ne*je+y*Le,Xe=a*je+E*Le,pt=y*je+b*Le,we=E*je+x*Le,Fe=b*je+z*Le,He=x*je+re*Le,st=ft*je+pt*Le,Ke=Xe*je+we*Le,mt=pt*je+Fe*Le,_t=we*je+He*Le,At=st*je+mt*Le,kt=Ke*je+_t*Le;ce.x=ft,ce.y=Xe,_e.x=st,_e.y=Ke,ye.x=At,ye.y=kt,De.x=mt,De.y=_t,Ee.x=Fe,Ee.y=He}var Se=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ht("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*ie,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=Se,b.spot2=fe,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,ie*a,0,a,(1-ie)*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,ie*y,(1-ie)*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,ie*y,ie*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-ie)*a,0,0,(1-ie)*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 ht("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 ht("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 ht("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 ht("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 ht("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 ue=[];function le(){var ne=ue.pop();return ne===void 0?[]:ne}function me(ne){ne.length=0,ue.push(ne)}function ae(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 he(ne){var a=oe(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 me(a),y}function oe(ne){for(var a=ae(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 re=a[z],se=a[z+1],ce=a[(E+z-1)%b],_e=a[(E+z+x)%b];y[z*2]=re,y[z*2+1]=be(re.x,re.y,ce.x,ce.y,se.x,se.y,_e.x,_e.y,new go.Point)}return y[y.length]=y[0],me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=ae(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()),me(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=ae(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()),me(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=ae(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()),me(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=ae(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()),me(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=ae(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()),me(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=ae(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()),me(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=ae(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()),me(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=oe(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()),me(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=oe(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()),me(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=oe(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()),me(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=oe(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()),me(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=oe(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()),me(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=oe(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()),me(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=he(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(),me(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=he(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(),me(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=he(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(),me(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=he(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(),me(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=he(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(),me(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=he(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(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ht("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ht("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 ht("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 re=Math.max(b-E,0);return re>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+re,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,re,re).close())),x.spot1=Se,x.spot2=fe,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 ht("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ht("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,re=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,x,z,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ie/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 ht("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 ht("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 ht("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,re=Math.atan2(y,a),se=E-Math.min(Math.cos(re)*E/2,x),ce=E-Math.min(Math.sin(re)*E/2,z),b=new go.Geometry,_e=new go.PathFigure(se,0,!0);return b.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),_e.add(new go.PathSegment(go.PathSegment.Line,a-se,0)),_e.add(new go.PathSegment(go.PathSegment.Line,a,ce)),_e.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,a,y-ce)),_e.add(new go.PathSegment(go.PathSegment.Line,a-se,y)),_e.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),_e.add(new go.PathSegment(go.PathSegment.Line,se,y)),_e.add(new go.PathSegment(go.PathSegment.Line,0,y-ce)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ht("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 ht("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 ht("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,ie*a,0,a,(.5-ie/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ie/2)*y,ie*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,re=0,se=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-se+re)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z+.05)*a,(.5-se+re-.02)*y)),x=.2,z=0,re=-.3,se=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-se+re)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),x=.2,z=-.3,re=0,se=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z-.05)*a,(.5-se+re-.02)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*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,re=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,re*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*re,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)),re=.75,b=new go.PathFigure((z+x)*a,re*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*re,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=ie*.5,x=.5,z=.5,re=.5,se=new go.PathFigure(z*a,(re-x)*y);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),x=.4,b=ie*.4;var ce=ee(),_e=ee(),ye=ee(),De=ee();ve(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.42,ce,_e,ye,De,De);var Ee=ee(),je=ee(),Le=ee();ve(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.58,De,De,Le,Ee,je);var ft=ee(),Xe=ee(),pt=ee();ve(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.42,ft,Xe,pt,De,De);var we=ee(),Fe=ee(),He=ee();return ve(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.58,De,De,He,we,Fe),se.add(new go.PathSegment(go.PathSegment.Move,He.x*a,He.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,we.x*a,we.y*y,Fe.x*a,Fe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ye.x*a,ye.y*y,ce.x*a,ce.y*y,_e.x*a,_e.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y).close()),se.add(new go.PathSegment(go.PathSegment.Move,pt.x*a,pt.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,Ee.x*a,Ee.y*y,je.x*a,je.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,pt.x*a,pt.y*y,ft.x*a,ft.y*y,Xe.x*a,Xe.y*y).close()),ge(ce),ge(_e),ge(ye),ge(De),ge(Ee),ge(je),ge(Le),ge(ft),ge(Xe),ge(pt),ge(we),ge(Fe),ge(He),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 ht("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=ie*.4,x=.4,z=.5,re=.5,se=ee(),ce=ee(),_e=ee(),ye=ee(),De=new go.PathFigure((z-x)*a,re*y,!1);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),ve(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.44,_e,ye,ce,se,se),De.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));var Ee=te(ce.x,ce.y);ve(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.56,se,se,ce,_e,ye);var je=te(ce.x,ce.y);De.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.95*.9)*a,Ee.y*.1*y)),De.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ee.y*.1*y)),De.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),De.add(new go.PathSegment(go.PathSegment.Line,a,0)),De.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),De.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*a,.15*y)),De.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*a,(je.y*.1+.05*.9)*y)),De.add(new go.PathSegment(go.PathSegment.Line,je.x*a,je.y*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),x=.35,b=ie*.35;var Le=new go.PathFigure(z*a,(re-x)*y,!1);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y));var ft=new go.PathFigure((z-x)*a,re*y,!1);return E.add(ft),ge(se),ge(ce),ge(_e),ge(ye),ge(Ee),ge(je),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,re=b*ie,se=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+re+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-re+z)*y,(.5+re+x)*a,(.5-b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+re+z)*y,(.5-re+x)*a,(.5+b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,re=b*ie;var se=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+re+z)*y,(.5+re+x)*a,(.5+b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y,(.5-re+x)*a,(.5-b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+re+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-re+z)*y));var se=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(se),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 ht("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ht("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,re=(.5+b/2)*y,se=new go.Geometry,ce=new go.PathFigure(0,z,!0);se.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,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,z/y);var _e=be(0,re/y,1,re/y,x/a,1,1,.5,ee());return se.spot2=new go.Spot(_e.x,_e.y),ge(_e),se}),go.Shape.setFigureParameter("Arrow2",0,new ht("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ht("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,re=z+b,se=new go.Geometry,ce=new go.PathFigure(0,z,!0);se.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,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,z/y);var _e=be(0,re/y,1,re/y,x/a,1,1,.5,ee());return se.spot2=new go.Spot(_e.x,_e.y),ge(_e),se}),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 ht("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,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var se=be(0,.5,.3,0,0,b/y,.1,b/y,ee());return z.spot1=new go.Spot(se.x,se.y),se=be(.7,1,1,.5,0,x/y,1,x/y,se),z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ht("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ht("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,re=(y-b)/2,se=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,se=y):(x=0,z=y,re=0,se=y));var ce=new go.Geometry,_e=new go.PathFigure(a,.5*y,!0);ce.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,re)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close());var ye=be(0,.5,.3,re/y,0,x/y,1,x/y,ee());return ce.spot1=new go.Spot(ye.x,ye.y),ye=be(.7,se/y,1,.5,0,z/y,1,z/y,ye),ce.spot2=new go.Spot(ye.x,ye.y),ge(ye),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new ht("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,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ht("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ht("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,re=(y-b)/2,se=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,se=y):(x=0,z=y,re=0,se=y));var ce=new go.Geometry,_e=new go.PathFigure(a,.5*y,!0);ce.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,0,se)),_e.add(new go.PathSegment(go.PathSegment.Line,0,re)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,re)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close()),ce.spot1=new go.Spot(0,x/y);var ye=be(.7,se/y,1,.5,0,z/y,1,z/y,ee());return ce.spot2=new go.Spot(ye.x,ye.y),ge(ye),ce}),go.Shape.setFigureParameter("Pointer",0,new ht("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,ee());return b.spot2=new go.Spot(z.x,z.y),ge(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ht("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,ee());return b.spot2=new go.Spot(z.x,z.y),ge(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ht("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,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ht("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,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("SquareArrow",0,new ht("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=ie*.5,x=ie*.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=ie*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ie*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-ie*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var re=new go.PathFigure(a,E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ie*E,(.5+x)*a,2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ie*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=ie*.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,ie*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ie*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-ie*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ie*E));var re=new go.PathFigure(0,y-E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ie*E,(.5-x)*a,y-2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ie*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=ie*.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-ie*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0));var re=new go.PathFigure(E,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ie*E,0,2*E,(.5-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ie*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=ie*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var re=new go.PathFigure(a-E,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ie*E,0,a-2*E,(.5-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ie*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=ie*b,re=ie*x,se=.5,ce=.1,_e=new go.PathFigure(se*a,(ce+x)*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se-b)*a,ce*y,(se-z)*a,(ce+x)*y,(se-b)*a,(ce+re)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-x)*y,(se-b)*a,(ce-re)*y,(se-z)*a,(ce-x)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se+b)*a,ce*y,(se+z)*a,(ce-x)*y,(se+b)*a,(ce-re)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+x)*y,(se+b)*a,(ce+re)*y,(se+z)*a,(ce+x)*y));var ye=.05,De=ie*ye;se=.05,ce=.25;var Ee=new go.PathFigure(.5*a,.2*y,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),se=.95,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ye)*a,ce*y,(se+De)*a,(ce-ye)*y,(se+ye)*a,(ce-De)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ye=.025,De=ie*ye,se=.825,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se+ye)*a,(ce-De)*y,(se+De)*a,(ce-ye)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ye)*a,ce*y,(se-De)*a,(ce-ye)*y,(se-ye)*a,(ce-De)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ye=.05,De=ie*ye,se=.5,ce=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se+ye)*a,(ce-De)*y,(se+De)*a,(ce-ye)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ye)*a,ce*y,(se-De)*a,(ce-ye)*y,(se-ye)*a,(ce-De)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ye=.025,De=ie*ye,se=.175,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se+ye)*a,(ce-De)*y,(se+De)*a,(ce-ye)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ye)*a,ce*y,(se-De)*a,(ce-ye)*y,(se-ye)*a,(ce-De)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ye=.05,De=ie*ye,se=.05,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se-ye)*a,(ce-De)*y,(se-De)*a,(ce-ye)*y)),Ee.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 ht("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=ie*.5,x=ie*.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 re=new go.PathFigure(a,.1*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),re.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=ie*.5,x=ie*.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 re=new go.PathFigure(a,.1*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),re.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=ie*.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 re=new go.PathFigure(0,b*y,!1);return E.add(re),re.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 re=new go.PathFigure(b*a,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),re.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=ie*.5,re=.5,se=new go.PathFigure(a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,y,a,(re+z)*y,(re+z)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,re*y,(re-z)*a,y,0,(re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,0,0,(re-z)*y,(re-z)*a,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,a,re*y,(re+z)*a,0,a,(re-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=ie*.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 re=new go.PathFigure(.5*b*a,b*y,!1);return E.add(re),re.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=ie*.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 re=new go.PathFigure(a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),re.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=ie*.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=ie*.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 re=new go.PathFigure(a,x*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var se=new go.PathFigure(.8*a,.75*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),se.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=ie*.1,x=.1,z=.9,re=.5,se=new go.PathFigure(.8*a,.5*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,y)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ce=new go.PathFigure((z+x)*a,re*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re-x)*y,(z+x)*a,(re-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=ie*.5,x=ie*.4,z=ie*.1,re=.1,se=.9,ce=.5,_e=new go.PathFigure(.8*a,.5*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),_e.add(new go.PathSegment(go.PathSegment.Line,0,y)),_e.add(new go.PathSegment(go.PathSegment.Line,0,0)),_e.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),_e.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ye=new go.PathFigure((se+re)*a,ce*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+re)*y,(se+re)*a,(ce+z)*y,(se+z)*a,(ce+re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,ce*y,(se-z)*a,(ce+re)*y,(se-re)*a,(ce+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-re)*y,(se-re)*a,(ce-z)*y,(se-z)*a,(ce-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,ce*y,(se+z)*a,(ce-re)*y,(se+re)*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=ie*b,z=0,re=.5,se=new go.PathFigure(.8*a,.5*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(re-b)*y,.7*a,(re-x)*y)),b=.1,x=ie*.1,z=.9,re=.5;var ce=new go.PathFigure((z-b)*a,re*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+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=ie*b,z=0,re=.5,se=new go.PathFigure(0,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(re-b)*y,.8*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(re+x)*y,(z+x+x)*a,(re+b)*y)),se.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=ie*b,z=.2,re=.5,se=new go.PathFigure(.1*a,0,!1);E.add(se),se.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,(re+x)*y,(z+x)*a,(re+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,(re-b)*y,.7*a,(re-x)*y)),b=.1,x=ie*.1,z=.9,re=.5;var _e=new go.PathFigure((z-b)*a,re*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+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=ie*b,z=.2,re=.5,se=new go.PathFigure(.1*a,0,!1);E.add(se),se.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,(re-b)*y,.9*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(re+x)*y,(z+x)*a,(re+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=ie*.1,x=.1,z=.1,re=.5,se=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,se.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=ie*.5,x=.5,z=.5,re=.5,se=new go.PathFigure((z-x)*a,re*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re-x)*y,(z+x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,re*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,re*y,z*a,(re-x)*y,z*a,(re+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=ie*.8,re=.8,se=0,ce=.5,_e=(b-a)/2,ye=(x-y)/2,De=new go.PathFigure(se*a+_e,(ce+re)*y+ye,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+_e,ce*y+ye,(se-z)*a+_e,(ce+re)*y+ye,(se-re)*a+_e,(ce+z)*y+ye)),De.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se-re)*a+_e,(ce-z)*y+ye,(se-z)*a+_e,(ce-re)*y+ye)),De.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+z*.5)*a+_e,ce*y+ye,se*a+_e,(ce-re)*y+ye,(se-re+z*.5)*a+_e,(ce-z)*y+ye)),De.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se-re+z*.5)*a+_e,(ce+z)*y+ye,se*a+_e,(ce+re)*y+ye).close()),z=ie*.4,re=.4,se=.2,ce=.5;var Ee=new go.PathFigure(se*a+_e,(ce+re)*y+ye,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+_e,ce*y+ye,(se-z)*a+_e,(ce+re)*y+ye,(se-re)*a+_e,(ce+z)*y+ye)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se-re)*a+_e,(ce-z)*y+ye,(se-z)*a+_e,(ce-re)*y+ye)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+z*.5)*a+_e,ce*y+ye,se*a+_e,(ce-re)*y+ye,(se-re+z*.5)*a+_e,(ce-z)*y+ye)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se-re+z*.5)*a+_e,(ce+z)*y+ye,se*a+_e,(ce+re)*y+ye).close()),z=ie*.2,re=.2,se=.5,ce=.5;var je=new go.PathFigure((se-re)*a+_e,ce*y+ye,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se-re)*a+_e,(ce-z)*y+ye,(se-z)*a+_e,(ce-re)*y+ye)),je.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+_e,ce*y+ye,(se+z)*a+_e,(ce-re)*y+ye,(se+re)*a+_e,(ce-z)*y+ye)),je.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se+re)*a+_e,(ce+z)*y+ye,(se+z)*a+_e,(ce+re)*y+ye)),je.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+_e,ce*y+ye,(se-z)*a+_e,(ce+re)*y+ye,(se-re)*a+_e,(ce+z)*y+ye)),z=ie*.4,re=.4,se=.8,ce=.5;var Le=new go.PathFigure(se*a+_e,(ce-re)*y+ye,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+_e,ce*y+ye,(se+z)*a+_e,(ce-re)*y+ye,(se+re)*a+_e,(ce-z)*y+ye)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se+re)*a+_e,(ce+z)*y+ye,(se+z)*a+_e,(ce+re)*y+ye)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-z*.5)*a+_e,ce*y+ye,se*a+_e,(ce+re)*y+ye,(se+re-z*.5)*a+_e,(ce+z)*y+ye)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se+re-z*.5)*a+_e,(ce-z)*y+ye,se*a+_e,(ce-re)*y+ye).close()),z=ie*.8,re=.8,se=1,ce=.5;var ft=new go.PathFigure(se*a+_e,(ce-re)*y+ye,!0);return E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+_e,ce*y+ye,(se+z)*a+_e,(ce-re)*y+ye,(se+re)*a+_e,(ce-z)*y+ye)),ft.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se+re)*a+_e,(ce+z)*y+ye,(se+z)*a+_e,(ce+re)*y+ye)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-z*.5)*a+_e,ce*y+ye,se*a+_e,(ce+re)*y+ye,(se+re-z*.5)*a+_e,(ce+z)*y+ye)),ft.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se+re-z*.5)*a+_e,(ce-z)*y+ye,se*a+_e,(ce-re)*y+ye).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 re=new go.PathFigure(0,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),re.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),re.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),re.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=ie*.4,x=.4,z=.5,re=.5,se=ee(),ce=ee(),_e=ee(),ye=ee();ve(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,se,se,ce,_e,ye);var De=te(ce.x,ce.y),Ee=new go.PathFigure(ce.x*a,ce.y*y,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),ve(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,_e,ye,ce,se,se),Ee.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)),b=ie*.3,x=.3,ve(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,_e,ye,ce,se,se),Ee.add(new go.PathSegment(go.PathSegment.Line,ce.x*a,ce.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ve(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,se,se,ce,_e,ye),Ee.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).close());var Ee=new go.PathFigure(.45*a,0,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ge(se),ge(ce),ge(_e),ge(ye),ge(De),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,re,se){z.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*a,(.8+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*a,(.5+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*a,(.5+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*a,(.8+se)*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,re=b*ie,se=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,_e=1,ye=.5,De=.5,Ee=0,je=new go.PathFigure(se*a,(1-ce)*y,!1);return E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,ye*y,_e*a,.7*y,_e*a,ye*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(De+x)*a,(Ee+x)*y,(.5+b+x)*a,(.5-re+x)*y,(.5+re+x)*a,(.5-b+x)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+re+z)*y,(.5-re+x)*a,.9*y)),je.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),je.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),je.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,re=.5,se=z,ce=Math.PI/4,_e=4*(1-Math.cos(ce))/(3*Math.sin(ce)),ye=_e*.5,De=z,Ee=z,je=_e*De,Le=_e*Ee;x.add(new go.PathSegment(go.PathSegment.Bezier,(re-De)*a,se*y,(re-(je+De)/2)*a,(se+(Ee+Le)/2)*y,(re-De)*a,(se+Le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(se-Ee)*y,(re-De)*a,(se-Le)*y,(re-je)*a,(se-Ee)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(re+De)*a,se*y,(re+je)*a,(se-Ee)*y,(re+De)*a,(se-Le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(re+De)*a,(se+Le)*y,(re+(je+De)/2)*a,(se+(Ee+Le)/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 ft=new go.PathFigure(.2*a,y,!1);E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Xe=new go.PathFigure(.8*a,y,!1);return E.add(Xe),Xe.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=ie*.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 re=new go.PathFigure(b*a,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),re.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.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,re=ie*.1,se=.2,ce=.9,_e=new go.PathFigure((se-z)*a,ce*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-z)*y,(se-z)*a,(ce-re)*y,(se-re)*a,(ce-z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se+z)*a,ce*y,(se+re)*a,(ce-z)*y,(se+z)*a,(ce-re)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+z)*y,(se+z)*a,(ce+re)*y,(se+re)*a,(ce+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se-z)*a,ce*y,(se-re)*a,(ce+z)*y,(se-z)*a,(ce+re)*y).close()),z=.1,re=ie*.1,se=.8,ce=.9;var ye=new go.PathFigure((se-z)*a,ce*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-z)*y,(se-z)*a,(ce-re)*y,(se-re)*a,(ce-z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+z)*a,ce*y,(se+re)*a,(ce-z)*y,(se+z)*a,(ce-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+z)*y,(se+z)*a,(ce+re)*y,(se+re)*a,(ce+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se-z)*a,ce*y,(se-re)*a,(ce+z)*y,(se-z)*a,(ce+re)*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 re=new go.PathFigure(.5*a,.7*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var se=.1,ce=ie*.1,_e=.1,ye=.9,De=new go.PathFigure((_e-se)*a,ye*y,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye-se)*y,(_e-se)*a,(ye-ce)*y,(_e-ce)*a,(ye-se)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(_e+se)*a,ye*y,(_e+ce)*a,(ye-se)*y,(_e+se)*a,(ye-ce)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye+se)*y,(_e+se)*a,(ye+ce)*y,(_e+ce)*a,(ye+se)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(_e-se)*a,ye*y,(_e-ce)*a,(ye+se)*y,(_e-se)*a,(ye+ce)*y)),se=.1,ce=ie*.1,_e=.4,ye=.9;var Ee=new go.PathFigure((_e-se)*a,ye*y,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye-se)*y,(_e-se)*a,(ye-ce)*y,(_e-ce)*a,(ye-se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(_e+se)*a,ye*y,(_e+ce)*a,(ye-se)*y,(_e+se)*a,(ye-ce)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye+se)*y,(_e+se)*a,(ye+ce)*y,(_e+ce)*a,(ye+se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(_e-se)*a,ye*y,(_e-ce)*a,(ye+se)*y,(_e-se)*a,(ye+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 _e=.05,ye=ie*.05,De=.175,Ee=.95,re=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y));var _e=.05,ye=ie*.05,De=.375,Ee=.95,se=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y));var _e=.05,ye=ie*.05,De=.625,Ee=.95,ce=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y));var _e=.05,ye=ie*.05,De=.825,Ee=.95,je=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y).close());var Le=new go.PathFigure(0,y,!1);return E.add(Le),Le.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 re=.05,se=ie*.05,ce=.35,_e=.775,ye=new go.PathFigure((ce-re)*a,_e*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(_e-re)*y,(ce-re)*a,(_e-se)*y,(ce-se)*a,(_e-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,_e*y,(ce+se)*a,(_e-re)*y,(ce+re)*a,(_e-se)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(_e+re)*y,(ce+re)*a,(_e+se)*y,(ce+se)*a,(_e+re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,_e*y,(ce-se)*a,(_e+re)*y,(ce-re)*a,(_e+se)*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=ie*.3,z=.5,re=.7,se=new go.PathFigure((z-b)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+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=ie*.5,z=.5,re=.5,se=new go.PathFigure((z-b)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+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=ie*.5,z=.5,re=.5,se=new go.PathFigure((z-b)*a,re*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y).close()),b=.05,x=ie*.05,z=.5,re=.8;var ce=new go.PathFigure((z-b)*a,re*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+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 re=new go.PathFigure(.678*a,.85*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var se=new go.PathFigure(.5*a,.1*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),se.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 re=new go.PathFigure(a*.612,y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var se=new go.PathFigure(a*.816,y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),se.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 re=new go.PathFigure(a*.055,.18*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),re.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var se=new go.PathFigure(a*1,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),se.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 re=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var se=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),se.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*ie,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 re=new go.PathFigure(a*.83,0,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var se=new go.PathFigure(a*.83,y*1,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),se.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),se.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*ie,x=y*.8,z=new go.Geometry,re=new go.PathFigure(E,0,!0);return z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),re.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),re.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),re.add(new go.PathSegment(go.PathSegment.Line,E,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),re.add(new go.PathSegment(go.PathSegment.Line,0,E)),re.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*ie,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")},11081: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 ht={},Ve="5.0",te={},ee=null,ge=!1,be=!1,ve=null,Se=!1,fe=null,ie=null,ue=0;ue<arguments.length;ue++){var le=arguments[ue];if(le!==null)switch(typeof le){case"number":Ve=le.toFixed(1);break;case"string":le.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ve=le:ve=le;break;case"object":typeof le.is3D!="undefined"?ee=le:te=le;break;case"boolean":ge=le,be=!0;break}}ee===null&&(ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!be&&(ge=!0)),ve!==null&&te.id===void 0&&(te.id=ve);var me="",ae="",he=!1,oe=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,re=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var se=function(rt){return parseFloat(rt)>4?parseFloat(rt):5};ht.setHTML5Codebase=function(rt,Qe){ie=rt,_t(rt,Qe)},ht.setJavaCodebase=ht.setJavaCodebaseVersion=ht.isCompiledInstalled=ht.setPreCompiledScriptPath=ht.setPreCompiledResourcePath=function(){},ht.setHTML5CodebaseVersion=function(rt,Qe){var Pt=parseFloat(rt);if(Pt!==NaN&&Pt<5){console.log("The GeoGebra HTML5 codebase version "+Pt+" is deprecated. Using version latest instead.");return}fe=rt,mt(rt,Qe)},ht.getHTML5CodebaseVersion=function(){return ne},ht.getParameters=function(){return te},ht.setFontsCSSURL=function(rt){z=rt},ht.setGiacJSURL=function(rt){},ht.setJNLPFile=function(rt){me=rt},ht.setJNLPBaseDir=function(rt){},ht.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",Pt=te.id,zt,Ct=!1,sn=0;sn<arguments.length;sn++){var Ze=arguments[sn];typeof Ze=="string"?(Ze=Ze.toLowerCase(),Ze.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Qe=Ze:Pt=arguments[sn]):typeof Ze=="boolean"?Ct=Ze:Ze instanceof HTMLElement&&(zt=Ze)}St();function St(){if(!Se){setTimeout(St,200);return}Qe=st(Qe);var xt=zt||document.getElementById(Pt);if(!xt){console.log("possibly bug on ajax loading? ");return}if(ht.removeExistingApplet(xt,!1),te.width===void 0&&xt.clientWidth&&(te.width=xt.clientWidth),te.height===void 0&&xt.clientHeight&&(te.height=xt.clientHeight),!(te.width&&te.height)&&Qe==="html5"&&(delete te.width,delete te.height),oe=Qe,Qe==="screenshot")Xe(xt,te);else{var ln=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?ln=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(ln=(!ce()||rt())&&_e()),ln?(oe="screenshot",we(xt,te,Ct,Qe)):ft(xt,te,Ct)}}};function ce(){try{return window.self!==window.top}catch(rt){return!0}}function _e(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ht.getViews=function(){return ee},ht.isJavaInstalled=function(){return!1};var ye=function(rt){var Qe=function(sn){var Ze=JSON.parse(sn),St=function(Gt){return Gt.type=="G"||Gt.type=="E"},xt=Ze.elements?Ze.elements.filter(St)[0]:Ze;if(!xt||!xt.url){Pt();return}te.fileName=xt.url,De(xt.settings||{}),ee.is3D=!0;var ln="https://www.geogebra.org/images/";ht.setPreviewImage(E||xt.previewUrl,ln+"GeoGebra_loading.png",ln+"applet_play.png"),rt()},Pt=function(){te.onError&&te.onError(),At("Error: Fetching material (id "+te.material_id+") failed.",te)},zt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ct="/materials/"+te.material_id+"?scope=basic";Ee("https://"+zt+"/api/proxy.php?path="+encodeURIComponent(Ct),Qe,Pt)};function De(rt){var Qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Pt){rt[Pt]=!!rt[Pt]}),Qe.forEach(function(Pt){te[Pt]===void 0&&rt[Pt]!==void 0&&(te[Pt]=rt[Pt])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function Ee(rt,Qe,Pt){var zt=new XMLHttpRequest;zt.open("GET",rt),zt.onload=function(){Qe(zt.responseText)},zt.onerror=Pt,zt.send()}ht.isHTML5Installed=function(){return!0},ht.getLoadedAppletType=function(){return oe},ht.setPreviewImage=function(rt,Qe,Pt){E=rt,b=Qe,x=Pt},ht.removeExistingApplet=function(rt,Qe){var Pt;typeof rt=="string"&&(rt=document.getElementById(rt)),oe=null;var zt=null;for(Pt=0;Pt<rt.childNodes.length;Pt++){var Ct=rt.childNodes[Pt],sn=Ct.className;sn==="applet_screenshot"?Qe?(Ct.style.display="block",oe="screenshot"):Ct.style.display="none":sn!=="applet_scaler prerender"&&(rt.removeChild(Ct),zt=sn&&sn.indexOf("appletParameters")!=-1?Ct.id:null,Pt--)}var Ze=te.id!==void 0?te.id:zt,St=window[Ze];St&&typeof St.getBase64=="function"&&(St.remove(),window[Ze]=null)},ht.refreshHitPoints=function(){if(se(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rt=ht.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},ht.startAnimation=function(){var rt=ht.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},ht.stopAnimation=function(){var rt=ht.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},ht.getAppletObject=function(){var rt=te.id!==void 0?te.id:"ggbApplet";return window[rt]},ht.resize=function(){};var je=function(rt,Qe,Pt){var zt=document.createElement("param");zt.setAttribute("name",Qe),zt.setAttribute("value",Pt),rt.appendChild(zt)},Le=function(rt){return rt&&rt!=="false"},ft=function(rt,Qe,Pt){se(ne)<=4.2&&(Pt=!0);var zt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(zt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ct=document.createElement("div");Ct.classList.add("appletParameters","notranslate");var sn=Qe.width,Ze=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(se(ne)<=4.4)Le(Qe.showToolBar)&&(Qe.height-=7),Le(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&Le(Qe.showToolBar)&&(Qe.width=605,sn=605);else{var St=100;(Le(Qe.showToolBar)||Le(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),St=Le(Qe.showMenuBar)?245:155),sn<St&&(Qe.width=St,sn=St)}Ct.style.border="none",Ct.style.display="inline-block";for(var xt in Qe)Qe.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&Ct.setAttribute("data-param-"+xt,Qe[xt]);z&&Ct.setAttribute("data-param-fontscssurl",z),ht.resize=function(){GGBAppletUtils.responsiveResize(rt,Qe)},window.addEventListener("resize",function(ze){ht.resize()});var ln=typeof Qe.appletOnLoad=="function"?Qe.appletOnLoad:function(){};if(!Pt&&Qe.width!==void 0){Qe.hasOwnProperty("showSplash")||Ct.setAttribute("data-param-showSplash","false");var Gt=rt.querySelector(".applet_scaler.prerender"),lt=Gt!==null;if(lt)var ct=Gt.querySelector(".ggb_preview");else{var ct=He(sn,Ze,Qe.borderColor,!1);Gt=document.createElement("div"),Gt.className="applet_scaler",Gt.style.position="relative",Gt.style.display="block",Gt.style.width=sn+"px",Gt.style.height=Ze+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),se(ne)>=5?(Qe.appletOnLoad=function(ze){var it=rt.querySelector(".ggb_preview");it&&it.parentNode.removeChild(it),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Gt),window.GGBT_wsf_view&&$(window).trigger("resize"),ln(ze)},lt||Gt.appendChild(ct)):Ct.appendChild(ct),Gt.appendChild(Ct),lt||rt.appendChild(Gt),setTimeout(function(){ht.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(Ct),rt.appendChild(Ge),Qe.appletOnLoad=function(ze){ht.resize(),ln(ze)}}function Ne(ze,it){it&&typeof it.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ze,it.appletOnLoad):renderGGBElement(ze),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",it)}function tt(ze,it){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ze,params:it}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(It){Ne(It.article,It.params)}),html5AppletsToProcess=null)},se(ne)<5&&(ze.className+=" geogebraweb")):Ne(ze,it)}if(zt){scriptLoadStarted=!0;for(var Et=0;Et<Ct.childNodes.length;Et++){var Ie=Ct.childNodes[Et].tagName;Ie==="TABLE"&&(Ct.removeChild(Ct.childNodes[Et]),Et--)}if(ggbHTML5LoadedScript!==null){var Oe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Oe!=null&&Oe.parentNode.removeChild(Oe)}var We=document.createElement("script"),ke=function(){tt(Ct,Qe)};We.src=ae+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=We.src,At("GeoGebra HTML5 codebase loaded: '"+ae+"'.",Qe),!ie&&(!fe||fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ke()):ae.requirejs?__webpack_require__.e(981).then(function(){var ze=[__webpack_require__(60981)];ke.apply(null,ze)}.bind(this)).catch(__webpack_require__.oe):(We.onload=ke,rt.appendChild(We))}else tt(Ct,Qe);Qe.height=Ze,Qe.width=sn},Xe=function(rt,Qe,Pt){var zt=He(Qe.width,Qe.height,Qe.borderColor,Pt),Ct=document.createElement("div");Ct.style.position="relative",Ct.style.display="block",Ct.style.width=Qe.width+"px",Ct.style.height=Qe.height+"px",Ct.className="applet_screenshot applet_scaler"+(Pt?" applet_screenshot_play":""),Ct.appendChild(zt);var sn=GGBAppletUtils.getScale(Qe,rt,Pt);Pt?(rt.appendChild(Fe()),window.GGBT_wsf_view||(rt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ct,"66%"),rt.appendChild(Ct),sn!==1&&!isNaN(sn)&&(GGBAppletUtils.scaleElement(Ct,sn),Ct.style.width=Qe.width+"px",Ct.style.height=Qe.height+"px",Ct.parentNode.style.width=Qe.width*sn+"px",Ct.parentNode.style.height=Qe.height*sn+"px"),ht.resize=function(){pt(rt,zt,Ct,Pt)},window.addEventListener("resize",function(Ze){ht.resize()}),ht.resize()};function pt(rt,Qe,Pt,zt){if(rt.contains(Qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(rt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(rt)}var Ct=GGBAppletUtils.getScale(te,rt,zt);Pt.parentNode!==null&&(!isNaN(Ct)&&Ct!==1?(GGBAppletUtils.scaleElement(Pt,Ct),Pt.parentNode.style.width=te.width*Ct+"px",Pt.parentNode.style.height=te.height*Ct+"px"):(GGBAppletUtils.scaleElement(Pt,1),Pt.parentNode.style.width=te.width+"px",Pt.parentNode.style.height=te.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()}}ht.onExitFullscreen=function(rt,Qe){Qe.appendChild(rt)};var we=function(rt,Qe,Pt,zt){Xe(rt,Qe,!0);for(var Ct=function(){var St=[];for(Ze=0;Ze<rt.childNodes.length;Ze++)St.push(rt.childNodes[Ze]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(rt,Qe.id),ln=document.getElementById("fullscreencontainer"),Gt=jQuery(rt).find(".fullscreencontent");Gt.length>0?(xt.remove(),Gt.attr("id","fullscreencontent").show(),jQuery(ln).append(Gt),window.dispatchEvent(new Event("resize"))):ft(xt,Qe,!1),window.GGBT_wsf_view.launchFullScreen(ln)}else oe=zt,ft(rt,Qe,!1);if(!window.GGBT_wsf_view)for(Ze=0;Ze<St.length;Ze++)rt.removeChild(St[Ze])},sn=rt.getElementsByClassName("ggb_preview_play"),Ze=0;Ze<sn.length;Ze++)sn[Ze].addEventListener("click",Ct,!1),sn[Ze].addEventListener("ontouchstart",Ct,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rt),_e()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Fe=function(){var rt=document.createElement("div");if(rt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Qe='.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");}',Pt=document.createElement("style");Pt.styleSheet?Pt.styleSheet.cssText=Qe:Pt.appendChild(document.createTextNode(Qe)),document.getElementsByTagName("head")[0].appendChild(Pt)}return rt},He=function(rt,Qe,Pt,zt){var Ct=document.createElement("div");Ct.className="ggb_preview",Ct.style.position="absolute",Ct.style.zIndex="90",Ct.style.width=rt-2+"px",Ct.style.height=Qe-2+"px",Ct.style.top="0px",Ct.style.left="0px",Ct.style.overflow="hidden",Ct.style.backgroundColor="white";var sn="lightgrey";Pt!==void 0&&(Pt==="none"?sn="transparent":sn=Pt),Ct.style.border="1px solid "+sn;var Ze=document.createElement("img");if(Ze.style.position="relative",Ze.style.zIndex="1000",Ze.style.top="-1px",Ze.style.left="-1px",E!==null&&Ze.setAttribute("src",E),Ze.style.opacity=.7,b!==null){var St,xt,ln;if(!zt){St=document.createElement("img"),St.style.position="absolute",St.style.zIndex="1001",St.style.opacity=1,Ze.style.opacity=.3,xt=360,xt>rt/4*3&&(xt=rt/4*3),ln=xt/5.8,St.setAttribute("src",b),St.setAttribute("width",xt),St.setAttribute("height",ln);var Gt=(rt-xt)/2,lt=(Qe-ln)/2;St.style.left=Gt+"px",St.style.top=lt+"px",Ct.appendChild(St)}}return Ct.appendChild(Ze),Ct},st=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],mt=function(rt,Qe){if(ne=rt,Qe){_t(ne,!0);return}var Pt=!ge;if(Pt){var zt=se(ne);!isNaN(zt)&&zt<4.4&&(Pt=!1)}var Ct,sn;window.location.protocol.substr(0,4)==="http"?Ct=window.location.protocol:Ct="http:";var Ze=ne.indexOf("//");Ze>0?sn=ne:Ze===0?sn=Ct+ne:sn="https://www.geogebra.org/apps/5.2.814.0/";for(var St in Ke)if(ne.slice(Ke[St].length*-1)===Ke[St]||ne.slice((Ke[St].length+1)*-1)===Ke[St]+"/"){_t(sn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Pt&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Le(te.showToolBar)&&!Le(te.showMenuBar)&&!Le(te.showAlgebraInput)&&!Le(te.enableRightClick)&&(!te.appName||te.appName=="classic")?sn+="webSimple/":sn+="web3d/",_t(sn,!1)},_t=function(rt,Qe){if(rt.requirejs){ae=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),ae=rt,Qe===null&&(Qe=rt.indexOf("http")===-1),he=Qe,a="web.nocache.js",y=!1;var Pt=ae.split("/");Pt.length>1&&(!Qe&&Pt[Pt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ke.indexOf(Pt[Pt.length-2])>=0&&(a=Pt[Pt.length-2]+".nocache.js")),Pt=rt.split("/"),ne=Pt[Pt.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 zt=parseFloat(ne);zt!==NaN&&zt<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+zt+" is deprecated. Using version latest instead."),mt("5.0",Qe))},At=function(rt,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(rt)};te.material_id!==void 0?ye(kt):kt();function kt(){var rt=Ve;fe!==null?rt=fe:parseFloat(rt)<5&&(rt="5.0"),mt(rt,!1),ie!==null&&_t(ie,he),Se=!0}return ht},GGBAppletUtils=function(){"use strict";function ht(){return window.GGBT_wsf_edit!==void 0}function Ve(Se,fe){fe!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+fe+","+fe+")",Se.style.webkitTransform="scale("+fe+","+fe+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function te(Se,fe,ie,ue,le,me){var ae=null;if(me!=null&&me!="")for(var he=Se.parentNode;he!=null;)if((" "+he.className+" ").indexOf(" "+me+" ")>-1){ae=he;break}else he=he.parentNode;var oe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(ae)oe=ae.offsetWidth,ne=Math.max(ue?ae.offsetWidth:0,ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(oe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=oe):(oe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=oe&&(le===void 0||!le)&&(document.dir==="rtl"?(E=oe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Se&&((ie===void 0||!ie)&&fe>0&&fe+y<oe?oe=fe:oe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(ne-=x)),{width:oe,height:ne}}function ee(Se,fe,ie,ue,le){if(Se.isScreenshoGenerator)return 1;var me=ue!==void 0&&ue,ae=Se.noScaleMargin!=null&&Se.noScaleMargin,he=function(re){return re&&re!=="false"},oe=he(Se.autoHeight),ne=te(fe,Se.width,ie,oe,me&&window.GGBT_wsf_view||ae,le),a=parseInt(ne.width),y=Se.width,E=Se.height;if(y===void 0){var b=fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=me?1:ne.height/E;return ie!==void 0&&!ie&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ge(Se,fe,ie){var ue=1,le,me=!1;if(Se.hasOwnProperty("allowUpscale")&&(me=Se.allowUpscale),Se.hasOwnProperty("scale")&&(ue=parseFloat(Se.scale),(isNaN(ue)||ue===null||ue===0)&&(ue=1),ue>1&&(me=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))le=ee(Se,fe,me,ie,Se.scaleContainerClass);else return ue;return me&&(!Se.hasOwnProperty("scale")||ue===1)?le:Math.min(ue,le)}function be(Se){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),ue=Se.getBoundingClientRect(),le=(fe-ue.width)/2,me=(ie-ue.height)/2;me<0&&(me=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?Se.style.left="40px":Se.style.left=le+"px",Se.style.top=me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(me<40?Se.style.top="40px":Se.style.top=me+"px",Se.style.left=le+"px")}function ve(Se,fe){var ie=Se.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var ue=ge(fe,Se);ht()&&ie.setAttribute("data-param-scale",ue);for(var le=null,me=0;me<Se.childNodes.length;me++)if(Se.childNodes[me].className!==void 0&&Se.childNodes[me].className.match(/^applet_scaler/)){le=Se.childNodes[me];break}if(le!==null&&le.querySelector(".noscale")!==null)return;var ae=fe.id!==void 0?fe.id:"ggbApplet",he=window[ae];(he==null||!he.recalculateEnvironments)&&le!==null&&!le.className.match(/fullscreen/)&&(le.parentNode.style.transform="",!isNaN(ue)&&ue!==1?(le.parentNode.style.width=fe.width*ue+"px",le.parentNode.style.height=fe.height*ue+"px",Ve(le,ue)):(Ve(le,1),le.parentNode.style.width=fe.width+"px",le.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:ve,isFlexibleWorksheetEditor:ht,positionCenter:be,getScale:ge,scaleElement:Ve}}();__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 ht=n.location.search;return ht.indexOf(J)!=-1||ht.indexOf(K)!=-1}function q(ht,Ve){}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(ht){var Ve=s[L].bindings;s[L].bindings=function(){for(var te=Ve?Ve():{},ee=ht[webModule.__softPermutationId],ge=O;ge<ee.length;ge++){var be=ee[ge];te[be[O]]=be[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var ht=o.createElement(Q);if(ht.id=L,ht.style.cssText=R+S,ht.tabIndex=-1,o.body.appendChild(ht),t=ht.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ve=document.compatMode==U?V:W;t.write(Ve+X),t.close()}}}function w(ht){function Ve(ee){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=ge();if(be){ee();return}function ve(){if(!be){if(!ge())return;be=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,ve,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,ve,!1);var Se=setInterval(function(){ve()},$)}function te(ee){var ge=u(),be=ge.body,ve=ge.createElement(_);ve.language=ab,ve.crossOrigin=W,ve.src=ee,webModule.__errFn&&(ve.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),be.appendChild(ve)}Ve(function(){te(ht)})}webModule.__startLoadingFragment=function(ht){return C(ht)},webModule.__installRunAsyncCode=function(ht){var Ve=u(),te=Ve.body,ee=Ve.createElement(_);ee.language=ab,ee.text=ht,te.appendChild(ee),te.removeChild(ee)};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(ht){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ht){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ht){var Ve=c[ht];return Ve==null?null:Ve},r=d,webModule.__errFn=e}function B(){function ht(Se){var fe=Se.lastIndexOf(rb);fe==-1&&(fe=Se.length);var ie=Se.indexOf(sb);ie==-1&&(ie=Se.length);var ue=Se.lastIndexOf(tb,Math.min(ie,fe));return ue>=O?Se.substring(O,ue+P):W}function Ve(Se){if(!Se.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=Se+vb,Se=ht(fe.src)}return Se}function te(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ee(){for(var Se=o.getElementsByTagName(_),fe=O;fe<Se.length;++fe)if(Se[fe].src.indexOf(xb)!=-1)return ht(Se[fe].src);return W}function ge(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function be(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var ve=te();return ve==W&&(ve=ee()),ve==W&&(ve=ge()),ve==W&&be()&&(ve=ht(o.location.href)),ve=Ve(ve),ve}function C(ht){return ht.match(/^\//)||ht.match(/^[a-zA-Z]+:\/\//)?ht:webModule.__moduleBase+ht}function D(){var ht=[],Ve=O,te=[],ee=[];function ge(Se){var fe=ee[Se](),ie=te[Se];if(fe in ie)return fe;var ue=[];for(var le in ie)ue[ie[le]]=le;throw r&&r(Se,ue,fe),null}if(__gwt_isKnownPropertyValue=function(Se,fe){return fe in te[Se]},webModule.__getPropMap=function(){var Se={};for(var fe in te)te.hasOwnProperty(fe)&&(Se[fe]=ge(fe));return Se},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var ve=be.indexOf(Db);ve!=-1&&(Ve=parseInt(be.substring(ve+P),$),be=be.substring(O,ve))}catch(Se){}return webModule.__softPermutationId=Ve,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})()},67303:function(ht,Ve,te){"use strict";te.d(Ve,{Ax:function(){return ve},Ds:function(){return Se},KI:function(){return ie},SI:function(){return be},f1:function(){return ge}});var ee=te(90524);function ge(ue){let le=!0;if(ue.length>0){for(let me=0;me<ue.length;me++)if(ue[me].compile_success==0||!ue[me].compile_success){le=!1;break}}else le=!1;return le}function be(ue,le=""){let me=[];for(let ae=0;ae<ue.length;ae++){let he=ue[ae],oe=le?`${le}/${he.name}`:`${he.name}`;me.push({title:he.name,type:he.type,isLeaf:he.type!=="tree",key:oe})}return me}function ve(ue,le,me){for(let ae=0;ae<ue.length;ae++){let he=ue[ae];if(he.key===le){he.children=me;break}he.children&&ve(he.children,le,me)}return ue}function Se(ue,le,me){let ae;return function(){let he=this,oe=arguments,ne=function(){ae=null,me||ue.apply(he,oe)},a=me&&!ae;clearTimeout(ae),ae=setTimeout(ne,le),a&&ue.apply(he,oe)}}const fe=!0,ie=ee.Z.API_SERVER},76346:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return b}});var ee=te(59301),ge=te(82093),be=te(1012),ve=te(92310),Se=te.n(ve),fe={upload:"upload___jpwPD"},ie=Object.defineProperty,ue=Object.defineProperties,le=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,oe=(x,z,re)=>z in x?ie(x,z,{enumerable:!0,configurable:!0,writable:!0,value:re}):x[z]=re,ne=(x,z)=>{for(var re in z||(z={}))ae.call(z,re)&&oe(x,re,z[re]);if(me)for(var re of me(z))he.call(z,re)&&oe(x,re,z[re]);return x},a=(x,z)=>ue(x,le(z)),y=(x,z,re)=>new Promise((se,ce)=>{var _e=Ee=>{try{De(re.next(Ee))}catch(je){ce(je)}},ye=Ee=>{try{De(re.throw(Ee))}catch(je){ce(je)}},De=Ee=>Ee.done?se(Ee.value):Promise.resolve(Ee.value).then(_e,ye);De((re=re.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:re,onComplete:se,onError:ce,onProgress:_e,onBefore:ye,onBeginInitFile:De,children:Ee,accept:je,className:Le,style:ft={},concurrency:Xe=4},pt)=>{let[we,Fe]=(0,ee.useState)("ready");const[He,st]=(0,ee.useState)(0),[Ke,mt]=(0,ee.useState)(""),[_t,At]=(0,ee.useState)(null),kt=(0,ee.useRef)(null),rt=(0,ee.useRef)((0,be.Z)()),Qe=(0,ee.useRef)(!1);(0,ee.useImperativeHandle)(pt,()=>({cancel:Ct,file:_t,uploadStatus:we}));const Pt=()=>{const Ze=document.getElementById(rt.current);Ze&&(Ze.value="")},zt=Ze=>y(void 0,null,function*(){var St;if(we==="uploading")return;De&&De(Ze);const xt=Ze.size,ln=Math.ceil(xt/x);Qe.current=!1,Fe("uploading"),st(0),mt("");try{const Gt=yield(0,ge.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:Ze.name,chunkCount:ln},z)});if(Qe.current||(Gt==null?void 0:Gt.status)!==0)throw new Error;const{upload_id:lt}=Gt;kt.current=new AbortController;const ct=[];let Ge=0;for(let Ie=0;Ie<ln;Ie++){const Oe=Ie*x,We=Math.min(Oe+x,xt),ke=Ze.slice(Oe,We),ze=new FormData;ze.append("chunk",ke),ze.append("fileName",Ze.name),ze.append("chunkIndex",(Ie+1).toString()),ze.append("uploadId",lt);for(const it in z)Object.prototype.hasOwnProperty.call(z,it)&&ze.append(it,z[it]);ct.push(()=>(0,ge.ZP)("/api/attachments/multipart_upload",{method:"POST",body:ze,signal:kt.current.signal},!0).then(it=>{console.log(it,444),Ge++;const It=Math.round(Ge/ln*100);st(It),_e&&_e(a(ne({},it),{file:Ze,percent:It}))}))}let Ne=0,tt=Xe;for(console.log(ct,"promises");Ne<ct.length;){const Ie=(St=ct.slice(Ne,Ne+tt))==null?void 0:St.map(Oe=>Oe());if(Ie.length>0){const Oe=yield Promise.all(Ie);Ne+=tt}}const Et=yield(0,ge.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:Ze.name,chunkCount:ln,uploadId:lt},z)});Et.object?(Fe("success"),Pt(),se&&se(a(ne({},Et),{file:Ze,percent:100}))):(Fe("error"),mt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Pt(),ce&&ce(Ze.name))}catch(Gt){Fe("error"),mt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Pt(),ce&&ce(Ze.name)}}),Ct=(0,ee.useCallback)(()=>{Qe.current=!0,kt.current&&(kt.current.abort(),re&&re())},[re]),sn=Ze=>{var St,xt;const ln=(xt=(St=Ze==null?void 0:Ze.target)==null?void 0:St.files)==null?void 0:xt[0];if(At(ln),we="ready",!!ln){if(ye){ye(ln)||zt(ln),Pt();return}zt(ln)}};return ee.createElement(ee.Fragment,null,ee.createElement("input",{type:"file",id:rt.current,style:{display:"none"},onChange:sn,accept:je}),ee.createElement("label",{className:Se()(fe.upload,Le),htmlFor:rt.current,style:ft},Ee))};var b=(0,ee.forwardRef)(E)},6077:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ae}});var ee=te(59301),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=te(92310),ve=te.n(be),Se=te(71418),fe=te(2859),ie=te(82093),ue=te(49661),le=(he,oe,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(re){y(re)}},b=z=>{try{x(ne.throw(z))}catch(re){y(re)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(he,oe)).next())}),ae=({data:he,className:oe,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ee.useRef)(null),re=(0,ee.useRef)(null),se=(0,ee.useRef)(null),ce=(0,ee.useRef)(null),[_e,ye]=(0,ee.useState)(!1),[De,Ee]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{se.current||(se.current=document.createElement("style"),document.head.appendChild(se.current)),he!=null&&he.visible?(document.body.setAttribute("data-custom","y-hidden"),se.current.innerHTML=" html { overflow-y: hidden; }",he!=null&&he.src&&je()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[he==null?void 0:he.visible]);const je=()=>le(void 0,null,function*(){ye(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const we=yield(0,ue.ZJ)(he==null?void 0:he.src);z.current.src="",z.current.src=we,z.current.onload=function(){pt()},ye(!1),Ee("")}),Le=()=>{document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",y()},ft=we=>le(void 0,null,function*(){ye(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Fe=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:we.dataUrl}});Fe!=null&&Fe.id&&!x?(yield(0,ie.ZP)(`/api/attachments/${he.id}/add_subitem.json`,{method:"post",body:{subitem_id:Fe==null?void 0:Fe.id,settings:JSON.stringify(we.state)}})).status===0&&E():Fe!=null&&Fe.id&&E(Fe),document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",ye(!1),Ee("")}),Xe=()=>{const we=document.querySelector('a[href="https://markerjs.com/"]');we&&we.parentNode&&(we.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(He=>{const st=document.querySelector(He.name);st&&st.setAttribute("title",He.title)})},pt=()=>{re.current=new fe.hP(z.current),re.current.targetRoot=ce.current,re.current.addEventListener("render",ft),re.current.addEventListener("beforeclose",Le),b&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),he!=null&&he.snapshotData&&re.current.restoreState(he.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Xe()},300)};return ee.createElement(ee.Fragment,null,(he==null?void 0:he.visible)&&ee.createElement(Se.Z,{spinning:_e,tip:De,style:{position:"absolute"}},ee.createElement("div",{ref:ce,className:ve()(ge.imageDimensions,oe,ne?ge.fullWidth:""),style:a},ee.createElement("img",{className:ge.img,ref:z}))))}},88615:function(ht,Ve,te){"use strict";var ee=te(59301),ge=te(95237),be=te(43604),ve=te(99313),Se=te(3113),fe=te(7664),ie=te(21697),ue=te(48136),le=te(59301);const me=(0,ee.forwardRef)(({callback:ae,showSaveButton:he,value:oe=""},ne)=>{const a=(0,ee.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=re=>{a.current.setValue(a.current.getValue()+" "+re.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:`$$${re.value}$$`}),re.name),le.createElement("div",{className:ie.Z.children},re.children.map((ce,_e)=>le.createElement("div",{key:_e},le.createElement("h1",null,ce.name),le.createElement(ge.Z,{gutter:[10,10]},ce.data.map((ye,De)=>le.createElement(be.Z,{key:De,onClick:()=>b(ye),className:ie.Z.diamond},le.createElement(fe.Z,{value:"`$$"+ye.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},E.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:"`$$"+re.value+"$$`"}),re.name),le.createElement("div",{className:ie.Z.children},re.children.map((ce,_e)=>le.createElement("div",{key:_e},ce.name&&le.createElement("h1",null,ce.name),le.createElement(ge.Z,{gutter:[10,10]},ce.data.map((ye,De)=>le.createElement(be.Z,{key:De,onClick:()=>b(ye),className:ie.Z.diamond},le.createElement(fe.Z,{value:"`$$"+ye.value+"$$`"}))))))))))}],z=()=>{var re=document.createElement("div");re.innerHTML=a.current.getValue();var se=re.innerText;return ae&&ae(se),se};return(0,ee.useImperativeHandle)(ne,()=>({getData:z})),le.createElement("div",{className:ie.Z.mathWrap},le.createElement(ve.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},oe||""),he&&le.createElement("div",{className:ie.Z.button},le.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ve.Z=me},766:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ve}});var ee=te(76560),ge={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=te(59301),ve=({message:Se,className:fe,children:ie,style:ue={}})=>be.createElement("div",{className:`custom-spinner ${ge.idsRingWrapper} ${fe}`},be.createElement("div",{className:ge.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),Se?be.createElement("p",{style:ue},Se):null,ie,be.createElement(ee.Outlet,null))},72015:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ve}});var ee=te(59301),ge=te(33796),be=te(59301),ve=({defaultX:Se="40%",leftChild:fe,rightChild:ie,className:ue,hideResize:le=!1})=>{const[me,ae]=(0,ee.useState)(Se),he=(0,ee.useRef)();function oe(){he.current=!0}(0,ee.useEffect)(()=>{function y(b){he.current&&(ge.Z.publish("resize-move-bar",b),ae(b.pageX))}function E(){he.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",E)}},[]);const ne=typeof me=="number"&&me!==.01?`${me}px`:Se,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${ue}`},be.createElement("section",{style:{width:ne,display:me===.01?"none":""}},fe),be.createElement("section",{className:"resize-x-bar",onMouseDown:oe},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}},ie))}},46685:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return fe}});var ee=te(59301),ge={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=te(92310),ve=te.n(be),fe=({className:ie,style:ue={},leftNode:le,leftTitle:me="\u81EA\u6D4B\u8F93\u5165",rightNode:ae,rightTitle:he="\u8FD0\u884C\u7ED3\u679C"})=>ee.createElement("div",{className:ve()(ge.result,ie),style:ue},ee.createElement("div",{className:ge.left},ee.createElement("div",{className:ge.title},ee.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),ee.createElement("span",null,me)),ee.createElement("div",{className:ge.leftNode},le)),ee.createElement("div",{className:ge.right},ee.createElement("div",{className:ge.title},ee.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),ee.createElement("span",null,he)),ee.createElement("div",{className:ge.rightNode},ae)))},38273:function(ht,Ve,te){"use strict";var ee=te(59301);const ge=ve=>String(ve).length===1?`0${ve}`:ve,be=({className:ve="",onChange:Se,defaultValue:fe=0})=>{const[ie,ue]=(0,ee.useState)(fe);(0,ee.useEffect)(()=>{const he=setTimeout(()=>{ue(ie+1e3)},1e3);return Se(ie+1e3),()=>{clearInterval(he)}},[ie]);const le=parseInt(ie/(60*6e4))||"00",me=parseInt(ie%(60*6e4)/6e4)||"00",ae=parseInt(ie%6e4/1e3)||"00";return ee.createElement("div",{className:ve},ge(le),":",ge(me),":",ge(ae))};Ve.Z=be},93152:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return a}});var ee=te(59301),ge=te(8591),be=te(38854),ve=te(60513),Se=te(81098),fe=te(34055),ie=te(56102),ue=te(2610),le={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"},me=(y,E,b)=>new Promise((x,z)=>{var re=_e=>{try{ce(b.next(_e))}catch(ye){z(ye)}},se=_e=>{try{ce(b.throw(_e))}catch(ye){z(ye)}},ce=_e=>_e.done?x(_e.value):Promise.resolve(_e.value).then(re,se);ce((b=b.apply(y,E)).next())});function ae(y){if(isNaN(y))return{minutes:"00",seconds:"00"};const E=new Date(y*1e3).toISOString().substr(11,8);return{hour:E.substr(0,2),minutes:E.substr(3,2),seconds:E.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function he(y,E){return y-E}function oe(y){y.sort(he);let E=0;for(let b=0;b<y.length-1;b++){let x=Math.abs(y[b+1]-y[b]);x<21&&(E+=x)}return E}const ne=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var a=(0,ee.forwardRef)(({allow_skip:y,src:E,toLog:b,videoId:x,logWatchHistory:z,courseId:re=null,startTime:se,handlePause:ce=()=>{},handlePlay:_e=()=>{},handlePlayEnded:ye=()=>{},autoPlay:De=!1,onPlayEnded:Ee=()=>{},isShowWaterMark:je=!0},Le)=>{var ft;const pt=((ft=E==null?void 0:E.split("."))==null?void 0:ft.pop())==="flv",we=(0,ee.useRef)(),Fe=(0,ee.useRef)(),He=(0,ee.useRef)(),st=(0,ee.useRef)(),Ke=(0,ee.useRef)(),mt=(0,ee.useRef)(),_t=(0,ee.useRef)(),At=(0,ee.useRef)(),kt=(0,ee.useRef)(),rt=(0,ee.useRef)(),Qe=(0,ee.useRef)(),Pt=(0,ee.useRef)(),zt=(0,ee.useRef)(),Ct=(0,ee.useRef)(),sn=navigator.userAgent.toLowerCase().match(ne),Ze=sn?sn[0]:"pc",St=(0,ee.useRef)(!1),xt=(0,fe.eY)();let ln=0,Gt=0,lt=0,ct=null,Ge=!1,Ne=20,tt=1,Et=!1,Ie=!1,Oe=[];(0,ee.useImperativeHandle)(Le,()=>({getLastUpdatedTime:()=>we.current.currentTime,getDuration:()=>we.current.duration})),ge.ZP.config({maxCount:1,getContainer:()=>He.current});const We=(0,ee.useCallback)((Lt,Ht=!1)=>{let yt={point:we.current.currentTime};ct?(yt.log_id=ct,yt.watch_duration=oe(Oe),yt.total_duration=Gt):(re?(yt.video_id=parseInt(x,10),yt.course_id=re):yt.video_id=x,yt.duration=ln,yt.device=Ze),Ht&&(yt.ed="1");function fn(){return me(this,null,function*(){Et=!0,ct=yield z==null?void 0:z(yt),Et=!1,Lt&&Lt()})}fn()},[x,re]);(0,ee.useEffect)(()=>{we.current&&(st.current.style.display="none",Ke.current.style.display="block"),ge.ZP.destroy();let Lt=null;return ve.Z.isSupported&&pt&&E&&(E==null?void 0:E.indexOf(".m3u8"))<0?(Lt=ve.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:E,muted:!1}),we.current&&(Lt.attachMediaElement(we.current),Lt.load())):we.current.setAttribute("src",E),ze(),()=>{Lt&&(Lt.unload(),Lt.pause(),Lt.destroy(),Lt=null)}},[we,pt,E]);function ke(){we.current.paused?(st.current.style.display="none",Ke.current.style.display="block"):(st.current.style.display="block",Ke.current.style.display="none")}function ze(){Qe.current.style.display="none",zt.current.style.display="none",Pt.current.style.display="none",we.current.muted||we.current.volume===0?Qe.current.style.display="block":we.current.volume>0&&we.current.volume<=.5?zt.current.style.display="block":Pt.current.style.display="block"}(0,ee.useEffect)(()=>{const Lt=document.getElementById("play"),Ht=document.querySelectorAll(".playback-icons use");function yt(){_e(),se&&!St.current&&(we.current.currentTime=se),St.current=!0,Oe.push(we.current.currentTime),Ge||(Ge=!0,b&&We())}function fn(){return me(this,null,function*(){ke(),Oe.push(we.current.currentTime),b&&We(()=>{ct=null,lt=0,Ge=!1,Et=!1,Ie=!1,Oe=[],Gt=0,tt=1},!0),Ee()})}function un(){mt.current.value=Math.round(we.current.currentTime),_t.current.value=Math.round(we.current.currentTime)}function bt(){const tn=ae(Math.round(we.current.currentTime));kt.current.innerText=`${tn.hour>0?tn.hour+":":""}${tn.minutes}:${tn.seconds}`,kt.current.setAttribute("datetime",`${tn.hour>0?" "+tn.hour+" ":""}${tn.minutes}m ${tn.seconds}s`)}function Sn(){var tn,Xn,sr,Wn,lr,Or,Rr;const Er=Math.round((tn=we.current)==null?void 0:tn.duration);(sr=(Xn=mt.current)==null?void 0:Xn.setAttribute)==null||sr.call(Xn,"max",Er),(lr=(Wn=_t.current)==null?void 0:Wn.setAttribute)==null||lr.call(Wn,"max",Er);const Nr=ae(Er);At.current&&(At.current.innerText=`${Nr.hour>0?Nr.hour+":":""}${Nr.minutes}:${Nr.seconds}`,(Rr=(Or=At.current).setAttribute)==null||Rr.call(Or,"datetime",`${Nr.hour>0?" "+Nr.hour+" ":""}${Nr.minutes}m ${Nr.seconds}s`))}function pn(){try{const tn=Math.round(we.current.duration);mt.current.setAttribute("max",tn),_t.current.setAttribute("max",tn);const Xn=ae(tn);At.current.innerText=`${Xn.hour>0?Xn.hour+":":""}${Xn.minutes}:${Xn.seconds}`,At.current.setAttribute("datetime",`${Xn.hour>0?" "+Xn.hour+" ":""}${Xn.minutes}m ${Xn.seconds}s`),un(),bt();const{width:sr,height:Wn,x:lr,y:Or}=Fe.current.getBoundingClientRect();if(lr<0||Or<0||!sr)return;if(!Ie){let Rr=we.current.currentTime,Er=Rr-lt;Math.abs(Er)<10?(Gt+=Math.abs(Er),lt=Rr,Et||Gt-tt*Ne>=0&&(tt++,Oe.push(lt),b&&We())):(lt=Rr,b&&We())}}catch(tn){console.log(tn)}}function Fn(){Ie=!0}function xn(){we.current.playing&&Oe.push(we.current.currentTime,lt),lt=we.current.currentTime,Ie=!1}function Kn(){ln=we.current.duration,ln<=20&&(Ne=ln/3),we.current.addEventListener("play",yt)}function er(tn){tn.preventDefault(),(0,ue.vp)()?(we.current.style.width="100%",we.current.style.height="100%"):we.current.style.cssText=""}function Vn(){ce()}function Yn(tn){if(!y){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Xn=tn.target.dataset.seek?tn.target.dataset.seek:tn.target.value;we.current.currentTime=Xn,_t.current.value=Xn,mt.current.value=Xn}function pr(tn){const Xn=Math.round(tn.offsetX/tn.target.clientWidth*parseInt(tn.target.getAttribute("max"),10));mt.current.setAttribute("data-seek",Xn);const sr=ae(Xn);rt.current.textContent=`${sr.hour>0?sr.hour+":":""}${sr.minutes}:${sr.seconds}`;const Wn=we.current.getBoundingClientRect();rt.current.style.left=`${tn.pageX-Wn.left}px`}function vr(tn){switch(tn.code){case"Space":tn.preventDefault(),Dt();break;case"ArrowRight":if(tn.preventDefault(),!y){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(we.current.currentTime>=we.current.duration)break;we.current.currentTime=parseInt(we.current.currentTime)+5,un();break;case"ArrowLeft":if(tn.preventDefault(),!y){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(we.current.currentTime===0)break;we.current.currentTime=parseInt(we.current.currentTime)-5,un();break;case"ArrowUp":tn.preventDefault(),we.current.volume<1&&(we.current.volume=(parseInt(we.current.volume*10)+1)/10);break;case"ArrowDown":tn.preventDefault(),we.current.volume>0&&(we.current.volume=(parseInt(we.current.volume*10)-1)/10);break}}return He.current.addEventListener((0,ue.gH)(),er),we.current.addEventListener("canplay",Kn),we.current.addEventListener("ended",fn),we.current.addEventListener("seeking",Fn),we.current.addEventListener("seeked",xn),we.current.addEventListener("loadedmetadata",Sn),mt.current.addEventListener("mousemove",pr),mt.current.addEventListener("input",Yn),we.current.addEventListener("timeupdate",pn),we.current.addEventListener("pause",Vn),we.current.addEventListener("volumechange",ze),document.addEventListener("keydown",vr),()=>{var tn,Xn,sr,Wn,lr,Or,Rr,Er,Nr,cr,Xr,$t;(tn=we.current)==null||tn.removeEventListener("canplay",Kn),(Xn=we.current)==null||Xn.removeEventListener("play",yt),(sr=we.current)==null||sr.removeEventListener("ended",fn),(Wn=we.current)==null||Wn.removeEventListener("seeking",Fn),(lr=we.current)==null||lr.removeEventListener("seeked",xn),(Or=mt.current)==null||Or.removeEventListener("mousemove",pr),(Rr=mt.current)==null||Rr.removeEventListener("input",Yn),(Er=we.current)==null||Er.removeEventListener("timeupdate",pn),(Nr=we.current)==null||Nr.removeEventListener("pause",Vn),(cr=we.current)==null||cr.removeEventListener("loadedmetadata",Sn),(Xr=we.current)==null||Xr.removeEventListener("volumechange",ze),document.removeEventListener("keydown",vr),($t=we.current)!=null&&$t.playing&&(Oe.push(lt,we.current.currentTime),b&&We())}},[we,E]),(0,ee.useEffect)(()=>{if(we.current.onended=()=>{ye(we)},we.current.oncontextmenu=()=>!1,(E==null?void 0:E.indexOf(".m3u8"))>-1){if(we.current.canPlayType("application/vnd.apple.mpegurl"))we.current.src=E;else if(Se.ZP.isSupported()){var Lt=new Se.ZP;Lt.loadSource(E),Lt.attachMedia(we.current)}}},[E]);const[it,It]=(0,ee.useState)(1),Dt=()=>{we.current.paused||we.current.ended?we.current.play():we.current.pause(),ke()};function jt(){we.current.muted=!we.current.muted,we.current.muted?(Ct.current.setAttribute("data-volume",volume.value),Ct.current.value=0):Ct.current.value=Ct.current.dataset.volume}return ee.createElement("div",{style:{position:"relative"},ref:He},ee.createElement("div",{ref:Fe,className:`${le.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${le.animate__loop}`},je&&xt?xt.login:" "),ee.createElement("div",{className:le.container},ee.createElement("div",{className:le["video-container"],id:"video-container"},ee.createElement("div",{className:le["playback-animation"],id:"playback-animation"},ee.createElement("svg",{className:le["playback-icons"]},ee.createElement("use",{className:"hidden",href:"#play-icon"}),ee.createElement("use",{href:"#pause"}))),ee.createElement("video",{className:le.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:we,autoPlay:De}),ee.createElement("div",{className:`${le["video-controls"]} `,id:"video-controls"},ee.createElement("div",{className:le["bottom-controls"]},ee.createElement("div",{className:le["left-controls"]},ee.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Dt},ee.createElement("svg",{className:le["playback-icons"]},ee.createElement("use",{ref:Ke,href:"#play-icon"}),ee.createElement("use",{ref:st,style:{display:"none"},href:"#pause"}))),ee.createElement("div",{className:le.time},ee.createElement("time",{id:"time-elapsed",ref:kt},"00:00"),ee.createElement("span",null," / "),ee.createElement("time",{id:"duration",ref:At},"00:00"))),ee.createElement("div",{className:le["right-controls"]},y&&ee.createElement(be.Z,{placement:"top",overlayClassName:le.rateOverlay,getPopupContainer:Lt=>Lt.parentNode,menu:{items:[{key:"1",label:ee.createElement("span",{onClick:()=>{It(1),we.current.playbackRate=1}},"1.0x")},{key:"2",label:ee.createElement("span",{onClick:()=>{It(1.5),we.current.playbackRate=1.5}},"1.5x")},{key:"3",label:ee.createElement("span",{onClick:()=>{It(2),we.current.playbackRate=2}},"2.0x")}]}},ee.createElement("div",{className:`${le.controlText} mr5`},"\u500D\u901F")),ee.createElement(ie.CopyToClipboard,{text:E,onCopy:()=>ge.ZP.success("\u590D\u5236\u6210\u529F")},ee.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},ee.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),ee.createElement("div",{className:le["volume-controls"]},ee.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:le["volume-button"],id:"volume-button",onClick:jt},ee.createElement("i",{ref:Qe,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),ee.createElement("i",{ref:zt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),ee.createElement("i",{ref:Pt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),ee.createElement("input",{className:le.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Ct,style:{display:"none"},onClick:ze})),ee.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:le["fullscreen-button"],onClick:()=>{(0,ue.vp)()?(0,ue.BU)():(0,ue.Dj)(He.current)}},ee.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),ee.createElement("div",{className:le["video-progress"]},ee.createElement("progress",{ref:_t,value:"0",min:"0"}),ee.createElement("input",{className:le.seek,ref:mt,value:"0",min:"0",type:"range",step:"1"}),ee.createElement("div",{className:le["seek-tooltip"],ref:rt,id:"seek-tooltip"},"00:00"))))),ee.createElement("svg",{style:{display:"none"}},ee.createElement("defs",null,ee.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},ee.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),ee.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},ee.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),ee.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},ee.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"})))))})},35584:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return bn}});var ee=te(59301),ge=te(33796),be=te(15277),ve=te(92310),Se=te.n(ve),fe=te(32855),ie=te(27247),ue=te(74430),le=te(11913),me=te(34666),ae=te(43079),he=te(55468),oe=te(18929),ne=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],a=ee.createContext(null),y=0;function E(Rt,$e){var Mt=ee.useState(function(){return y+=1,String(y)}),Ft=(0,le.Z)(Mt,1),wt=Ft[0],Bt=ee.useContext(a),Kt={data:$e,canPreview:Rt};return ee.useEffect(function(){if(Bt)return Bt.register(wt,Kt)},[]),ee.useEffect(function(){Bt&&Bt.register(wt,Kt)},[Rt,$e]),wt}function b(Rt){return new Promise(function($e){var Mt=document.createElement("img");Mt.onerror=function(){return $e(!1)},Mt.onload=function(){return $e(!0)},Mt.src=Rt})}function x(Rt){var $e=Rt.src,Mt=Rt.isCustomPlaceholder,Ft=Rt.fallback,wt=(0,ee.useState)(Mt?"loading":"normal"),Bt=(0,le.Z)(wt,2),Kt=Bt[0],Xt=Bt[1],yn=(0,ee.useRef)(!1),Nn=Kt==="error";(0,ee.useEffect)(function(){b($e).then(function(Jn){Jn||Xt("error")})},[$e]),(0,ee.useEffect)(function(){Mt&&!yn.current?Xt("loading"):Nn&&Xt("normal")},[$e]);var Un=function(){Xt("normal")},cn=function(rr){yn.current=!1,Kt==="loading"&&rr!=null&&rr.complete&&(rr.naturalWidth||rr.naturalHeight)&&(yn.current=!0,Un())},Ln=Nn&&Ft?{src:Ft}:{onLoad:Un,src:$e};return[cn,Ln,Kt]}var z=te(86923),re=te(8224),se=te(10228),ce=te(48736);function _e(Rt,$e,Mt,Ft){var wt=$e+Mt,Bt=(Mt-Ft)/2;if(Mt>Ft){if($e>0)return(0,ue.Z)({},Rt,Bt);if($e<0&&wt<Ft)return(0,ue.Z)({},Rt,-Bt)}else if($e<0||wt>Ft)return(0,ue.Z)({},Rt,$e<0?Bt:-Bt);return{}}function ye(Rt,$e,Mt,Ft){var wt=(0,he.g1)(),Bt=wt.width,Kt=wt.height,Xt=null;return Rt<=Bt&&$e<=Kt?Xt={x:0,y:0}:(Rt>Bt||$e>Kt)&&(Xt=(0,ie.Z)((0,ie.Z)({},_e("x",Mt,Rt,Bt)),_e("y",Ft,$e,Kt))),Xt}var De=te(13697),Ee=te(16089),je={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Le(Rt,$e,Mt,Ft){var wt=(0,ee.useRef)(null),Bt=(0,ee.useRef)([]),Kt=(0,ee.useState)(je),Xt=(0,le.Z)(Kt,2),yn=Xt[0],Nn=Xt[1],Un=function(rr){Nn(je),Ft&&!(0,De.Z)(je,yn)&&Ft({transform:je,action:rr})},cn=function(rr,fr){wt.current===null&&(Bt.current=[],wt.current=(0,Ee.Z)(function(){Nn(function(Ut){var Lr=Ut;return Bt.current.forEach(function(dr){Lr=(0,ie.Z)((0,ie.Z)({},Lr),dr)}),wt.current=null,Ft==null||Ft({transform:Lr,action:fr}),Lr})})),Bt.current.push((0,ie.Z)((0,ie.Z)({},yn),rr))},Ln=function(rr,fr,Ut,Lr){var dr=Rt.current,Qr=dr.width,Sr=dr.height,on=dr.offsetWidth,wn=dr.offsetHeight,Hn=dr.offsetLeft,mn=dr.offsetTop,ir=rr,ar=yn.scale*rr;ar>Mt?(ir=Mt/yn.scale,ar=Mt):ar<$e&&(ir=$e/yn.scale,ar=$e);var Br=Ut!=null?Ut:innerWidth/2,Fr=Lr!=null?Lr:innerHeight/2,Zr=ir-1,Co=Zr*Qr*.5,So=Zr*Sr*.5,Mo=Zr*(Br-yn.x-Hn),Ao=Zr*(Fr-yn.y-mn),fo=yn.x-(Mo-Co),Bo=yn.y-(Ao-So);if(rr<1&&ar===1){var _o=on*ar,Eo=wn*ar,Io=(0,he.g1)(),jr=Io.width,no=Io.height;_o<=jr&&Eo<=no&&(fo=0,Bo=0)}cn({x:fo,y:Bo,scale:ar},fr)};return{transform:yn,resetTransform:Un,updateTransform:cn,dispatchZoomChange:Ln}}var ft=te(43403),Xe=te(77900),pt=function($e){var Mt=$e.visible,Ft=$e.maskTransitionName,wt=$e.getContainer,Bt=$e.prefixCls,Kt=$e.rootClassName,Xt=$e.icons,yn=$e.countRender,Nn=$e.showSwitch,Un=$e.showProgress,cn=$e.current,Ln=$e.transform,Jn=$e.count,rr=$e.scale,fr=$e.minScale,Ut=$e.maxScale,Lr=$e.closeIcon,dr=$e.onSwitchLeft,Qr=$e.onSwitchRight,Sr=$e.onClose,on=$e.onZoomIn,wn=$e.onZoomOut,Hn=$e.onRotateRight,mn=$e.onRotateLeft,ir=$e.onFlipX,ar=$e.onFlipY,Br=$e.toolbarRender,Fr=(0,ee.useContext)(a),Zr=Xt.rotateLeft,Co=Xt.rotateRight,So=Xt.zoomIn,Mo=Xt.zoomOut,Ao=Xt.close,fo=Xt.left,Bo=Xt.right,_o=Xt.flipX,Eo=Xt.flipY,Io="".concat(Bt,"-operations-operation");ee.useEffect(function(){var Wr=function(yo){yo.keyCode===se.Z.ESC&&Sr()};return Mt&&window.addEventListener("keydown",Wr),function(){window.removeEventListener("keydown",Wr)}},[Mt]);var jr=[{icon:Eo,onClick:ar,type:"flipY"},{icon:_o,onClick:ir,type:"flipX"},{icon:Zr,onClick:mn,type:"rotateLeft"},{icon:Co,onClick:Hn,type:"rotateRight"},{icon:Mo,onClick:wn,type:"zoomOut",disabled:rr===fr},{icon:So,onClick:on,type:"zoomIn",disabled:rr===Ut}],no=jr.map(function(Wr){var co,yo=Wr.icon,ko=Wr.onClick,Kr=Wr.type,ho=Wr.disabled;return ee.createElement("div",{className:Se()(Io,(co={},(0,ue.Z)(co,"".concat(Bt,"-operations-operation-").concat(Kr),!0),(0,ue.Z)(co,"".concat(Bt,"-operations-operation-disabled"),!!ho),co)),onClick:ko,key:Kr},yo)}),Oo=ee.createElement("div",{className:"".concat(Bt,"-operations")},no);return ee.createElement(Xe.default,{visible:Mt,motionName:Ft},function(Wr){var co=Wr.className,yo=Wr.style;return ee.createElement(ft.Z,{open:!0,getContainer:wt!=null?wt:document.body},ee.createElement("div",{className:Se()("".concat(Bt,"-operations-wrapper"),co,Kt),style:yo},Lr===null?null:ee.createElement("button",{className:"".concat(Bt,"-close"),onClick:Sr},Lr||Ao),Nn&&ee.createElement(ee.Fragment,null,ee.createElement("div",{className:Se()("".concat(Bt,"-switch-left"),(0,ue.Z)({},"".concat(Bt,"-switch-left-disabled"),cn===0)),onClick:dr},fo),ee.createElement("div",{className:Se()("".concat(Bt,"-switch-right"),(0,ue.Z)({},"".concat(Bt,"-switch-right-disabled"),cn===Jn-1)),onClick:Qr},Bo)),ee.createElement("div",{className:"".concat(Bt,"-footer")},Un&&ee.createElement("div",{className:"".concat(Bt,"-progress")},yn?yn(cn+1,Jn):"".concat(cn+1," / ").concat(Jn)),Br?Br(Oo,(0,ie.Z)({icons:{flipYIcon:no[0],flipXIcon:no[1],rotateLeftIcon:no[2],rotateRightIcon:no[3],zoomOutIcon:no[4],zoomInIcon:no[5]},actions:{onFlipY:ar,onFlipX:ir,onRotateLeft:mn,onRotateRight:Hn,onZoomOut:wn,onZoomIn:on},transform:Ln},Fr?{current:cn,total:Jn}:{})):Oo)))})},we=pt,Fe=1,He=1,st=["fallback","src","imgRef"],Ke=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],mt=function($e){var Mt=$e.fallback,Ft=$e.src,wt=$e.imgRef,Bt=(0,ae.Z)($e,st),Kt=x({src:Ft,fallback:Mt}),Xt=(0,le.Z)(Kt,2),yn=Xt[0],Nn=Xt[1];return ee.createElement("img",(0,fe.Z)({ref:function(cn){wt.current=cn,yn(cn)}},Bt,Nn))},_t=function($e){var Mt=$e.prefixCls,Ft=$e.src,wt=$e.alt,Bt=$e.fallback,Kt=$e.movable,Xt=Kt===void 0?!0:Kt,yn=$e.onClose,Nn=$e.visible,Un=$e.icons,cn=Un===void 0?{}:Un,Ln=$e.rootClassName,Jn=$e.closeIcon,rr=$e.getContainer,fr=$e.current,Ut=fr===void 0?0:fr,Lr=$e.count,dr=Lr===void 0?1:Lr,Qr=$e.countRender,Sr=$e.scaleStep,on=Sr===void 0?.5:Sr,wn=$e.minScale,Hn=wn===void 0?1:wn,mn=$e.maxScale,ir=mn===void 0?50:mn,ar=$e.transitionName,Br=ar===void 0?"zoom":ar,Fr=$e.maskTransitionName,Zr=Fr===void 0?"fade":Fr,Co=$e.imageRender,So=$e.imgCommonProps,Mo=$e.toolbarRender,Ao=$e.onTransform,fo=$e.onChange,Bo=(0,ae.Z)($e,Ke),_o=(0,ee.useRef)(),Eo=(0,ee.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Io=(0,ee.useState)(!1),jr=(0,le.Z)(Io,2),no=jr[0],Oo=jr[1],Wr=(0,ee.useContext)(a),co=Wr&&dr>1,yo=Wr&&dr>=1,ko=Le(_o,Hn,ir,Ao),Kr=ko.transform,ho=ko.resetTransform,wo=ko.updateTransform,mo=ko.dispatchZoomChange,oi=(0,ee.useState)(!0),ti=(0,le.Z)(oi,2),ni=ti[0],Ro=ti[1],xo=Kr.rotate,Lo=Kr.scale,Xo=Kr.x,Zo=Kr.y,gi=Se()((0,ue.Z)({},"".concat(Mt,"-moving"),no));(0,ee.useEffect)(function(){ni||Ro(!0)},[ni]);var Zn=function(){ho("close")},Cn=function(){mo(Fe+on,"zoomIn")},In=function(){mo(Fe/(Fe+on),"zoomOut")},Gn=function(){wo({rotate:xo+90},"rotateRight")},yr=function(){wo({rotate:xo-90},"rotateLeft")},Dr=function(){wo({flipX:!Kr.flipX},"flipX")},zr=function(){wo({flipY:!Kr.flipY},"flipY")},eo=function(gr){gr==null||gr.preventDefault(),gr==null||gr.stopPropagation(),Ut>0&&(Ro(!1),ho("prev"),fo==null||fo(Ut-1,Ut))},oo=function(gr){gr==null||gr.preventDefault(),gr==null||gr.stopPropagation(),Ut<dr-1&&(Ro(!1),ho("next"),fo==null||fo(Ut+1,Ut))},io=function(){if(Nn&&no){Oo(!1);var gr=Eo.current,Gr=gr.transformX,lo=gr.transformY,Fo=Xo!==Gr&&Zo!==lo;if(!Fo)return;var ri=_o.current.offsetWidth*Lo,Qo=_o.current.offsetHeight*Lo,Jo=_o.current.getBoundingClientRect(),Uo=Jo.left,Si=Jo.top,_i=xo%180!==0,yi=ye(_i?Qo:ri,_i?ri:Qo,Uo,Si);yi&&wo((0,ie.Z)({},yi),"dragRebound")}},Go=function(gr){!Xt||gr.button!==0||(gr.preventDefault(),gr.stopPropagation(),Eo.current={deltaX:gr.pageX-Kr.x,deltaY:gr.pageY-Kr.y,transformX:Kr.x,transformY:Kr.y},Oo(!0))},Po=function(gr){Nn&&no&&wo({x:gr.pageX-Eo.current.deltaX,y:gr.pageY-Eo.current.deltaY},"move")},fi=function(gr){if(!(!Nn||gr.deltaY==0)){var Gr=Math.abs(gr.deltaY/100),lo=Math.min(Gr,He),Fo=Fe+lo*on;gr.deltaY>0&&(Fo=Fe/Fo),mo(Fo,"wheel",gr.clientX,gr.clientY)}},li=function(gr){!Nn||!co||(gr.keyCode===se.Z.LEFT?eo():gr.keyCode===se.Z.RIGHT&&oo())},ci=function(gr){Nn&&(Lo!==1?wo({x:0,y:0,scale:1},"doubleClick"):mo(Fe+on,"doubleClick",gr.clientX,gr.clientY))};(0,ee.useEffect)(function(){var Hr,gr,Gr,lo;if(Xt){Gr=(0,re.Z)(window,"mouseup",io,!1),lo=(0,re.Z)(window,"mousemove",Po,!1);try{window.top!==window.self&&(Hr=(0,re.Z)(window.top,"mouseup",io,!1),gr=(0,re.Z)(window.top,"mousemove",Po,!1))}catch(Fo){(0,ce.Kp)(!1,"[rc-image] ".concat(Fo))}}return function(){var Fo,ri,Qo,Jo;(Fo=Gr)===null||Fo===void 0||Fo.remove(),(ri=lo)===null||ri===void 0||ri.remove(),(Qo=Hr)===null||Qo===void 0||Qo.remove(),(Jo=gr)===null||Jo===void 0||Jo.remove()}},[Nn,no,Xo,Zo,xo,Xt]),(0,ee.useEffect)(function(){var Hr=(0,re.Z)(window,"keydown",li,!1);return function(){Hr.remove()}},[Nn,co,Ut]);var Ei=ee.createElement(mt,(0,fe.Z)({},So,{width:$e.width,height:$e.height,imgRef:_o,className:"".concat(Mt,"-img"),alt:wt,style:{transform:"translate3d(".concat(Kr.x,"px, ").concat(Kr.y,"px, 0) scale3d(").concat(Kr.flipX?"-":"").concat(Lo,", ").concat(Kr.flipY?"-":"").concat(Lo,", 1) rotate(").concat(xo,"deg)"),transitionDuration:!ni&&"0s"},fallback:Bt,src:Ft,onWheel:fi,onMouseDown:Go,onDoubleClick:ci}));return ee.createElement(ee.Fragment,null,ee.createElement(z.Z,(0,fe.Z)({transitionName:Br,maskTransitionName:Zr,closable:!1,keyboard:!0,prefixCls:Mt,onClose:yn,visible:Nn,wrapClassName:gi,rootClassName:Ln,getContainer:rr},Bo,{afterClose:Zn}),ee.createElement("div",{className:"".concat(Mt,"-img-wrapper")},Co?Co(Ei,(0,ie.Z)({transform:Kr},Wr?{current:Ut}:{})):Ei)),ee.createElement(we,{visible:Nn,transform:Kr,maskTransitionName:Zr,closeIcon:Jn,getContainer:rr,prefixCls:Mt,rootClassName:Ln,icons:cn,countRender:Qr,showSwitch:co,showProgress:yo,current:Ut,count:dr,scale:Lo,minScale:Hn,maxScale:ir,toolbarRender:Mo,onSwitchLeft:eo,onSwitchRight:oo,onZoomIn:Cn,onZoomOut:In,onRotateRight:Gn,onRotateLeft:yr,onFlipX:Dr,onFlipY:zr,onClose:yn}))},At=_t,kt=te(3300);function rt(Rt){var $e=ee.useState({}),Mt=(0,le.Z)($e,2),Ft=Mt[0],wt=Mt[1],Bt=ee.useCallback(function(Xt,yn){return wt(function(Nn){return(0,ie.Z)((0,ie.Z)({},Nn),{},(0,ue.Z)({},Xt,yn))}),function(){wt(function(Nn){var Un=(0,ie.Z)({},Nn);return delete Un[Xt],Un})}},[]),Kt=ee.useMemo(function(){return Rt?Rt.map(function(Xt){if(typeof Xt=="string")return{data:{src:Xt}};var yn={};return Object.keys(Xt).forEach(function(Nn){["src"].concat((0,kt.Z)(ne)).includes(Nn)&&(yn[Nn]=Xt[Nn])}),{data:yn}}):Object.keys(Ft).reduce(function(Xt,yn){var Nn=Ft[yn],Un=Nn.canPreview,cn=Nn.data;return Un&&Xt.push({data:cn,id:yn}),Xt},[])},[Rt,Ft]);return[Kt,Bt]}var Qe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Pt=["src"],zt=function($e){var Mt,Ft=$e.previewPrefixCls,wt=Ft===void 0?"rc-image-preview":Ft,Bt=$e.children,Kt=$e.icons,Xt=Kt===void 0?{}:Kt,yn=$e.items,Nn=$e.preview,Un=$e.fallback,cn=(0,me.Z)(Nn)==="object"?Nn:{},Ln=cn.visible,Jn=cn.onVisibleChange,rr=cn.getContainer,fr=cn.current,Ut=cn.movable,Lr=cn.minScale,dr=cn.maxScale,Qr=cn.countRender,Sr=cn.closeIcon,on=cn.onChange,wn=cn.onTransform,Hn=cn.toolbarRender,mn=cn.imageRender,ir=(0,ae.Z)(cn,Qe),ar=rt(yn),Br=(0,le.Z)(ar,2),Fr=Br[0],Zr=Br[1],Co=(0,oe.Z)(0,{value:fr}),So=(0,le.Z)(Co,2),Mo=So[0],Ao=So[1],fo=(0,ee.useState)(!1),Bo=(0,le.Z)(fo,2),_o=Bo[0],Eo=Bo[1],Io=((Mt=Fr[Mo])===null||Mt===void 0?void 0:Mt.data)||{},jr=Io.src,no=(0,ae.Z)(Io,Pt),Oo=(0,oe.Z)(!!Ln,{value:Ln,onChange:function(xo,Lo){Jn==null||Jn(xo,Lo,Mo)}}),Wr=(0,le.Z)(Oo,2),co=Wr[0],yo=Wr[1],ko=(0,ee.useState)(null),Kr=(0,le.Z)(ko,2),ho=Kr[0],wo=Kr[1],mo=ee.useCallback(function(Ro,xo,Lo){var Xo=Fr.findIndex(function(Zo){return Zo.id===Ro});yo(!0),wo({x:xo,y:Lo}),Ao(Xo<0?0:Xo),Eo(!0)},[Fr]);ee.useEffect(function(){co?_o||Ao(0):Eo(!1)},[co]);var oi=function(xo,Lo){Ao(xo),on==null||on(xo,Lo)},ti=function(){yo(!1),wo(null)},ni=ee.useMemo(function(){return{register:Zr,onPreview:mo}},[Zr,mo]);return ee.createElement(a.Provider,{value:ni},Bt,ee.createElement(At,(0,fe.Z)({"aria-hidden":!co,movable:Ut,visible:co,prefixCls:wt,closeIcon:Sr,onClose:ti,mousePosition:ho,imgCommonProps:no,src:jr,fallback:Un,icons:Xt,minScale:Lr,maxScale:dr,getContainer:rr,current:Mo,count:Fr.length,countRender:Qr,onTransform:wn,toolbarRender:Hn,imageRender:mn,onChange:oi},ir)))},Ct=zt,sn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Ze=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],St=function($e){var Mt=$e.src,Ft=$e.alt,wt=$e.onPreviewClose,Bt=$e.prefixCls,Kt=Bt===void 0?"rc-image":Bt,Xt=$e.previewPrefixCls,yn=Xt===void 0?"".concat(Kt,"-preview"):Xt,Nn=$e.placeholder,Un=$e.fallback,cn=$e.width,Ln=$e.height,Jn=$e.style,rr=$e.preview,fr=rr===void 0?!0:rr,Ut=$e.className,Lr=$e.onClick,dr=$e.onError,Qr=$e.wrapperClassName,Sr=$e.wrapperStyle,on=$e.rootClassName,wn=(0,ae.Z)($e,sn),Hn=Nn&&Nn!==!0,mn=(0,me.Z)(fr)==="object"?fr:{},ir=mn.src,ar=mn.visible,Br=ar===void 0?void 0:ar,Fr=mn.onVisibleChange,Zr=Fr===void 0?wt:Fr,Co=mn.getContainer,So=Co===void 0?void 0:Co,Mo=mn.mask,Ao=mn.maskClassName,fo=mn.movable,Bo=mn.icons,_o=mn.scaleStep,Eo=mn.minScale,Io=mn.maxScale,jr=mn.imageRender,no=mn.toolbarRender,Oo=(0,ae.Z)(mn,Ze),Wr=ir!=null?ir:Mt,co=(0,oe.Z)(!!Br,{value:Br,onChange:Zr}),yo=(0,le.Z)(co,2),ko=yo[0],Kr=yo[1],ho=x({src:Mt,isCustomPlaceholder:Hn,fallback:Un}),wo=(0,le.Z)(ho,3),mo=wo[0],oi=wo[1],ti=wo[2],ni=(0,ee.useState)(null),Ro=(0,le.Z)(ni,2),xo=Ro[0],Lo=Ro[1],Xo=(0,ee.useContext)(a),Zo=!!fr,gi=function(){Kr(!1),Lo(null)},Zn=Se()(Kt,Qr,on,(0,ue.Z)({},"".concat(Kt,"-error"),ti==="error")),Cn=(0,ee.useMemo)(function(){var Dr={};return ne.forEach(function(zr){$e[zr]!==void 0&&(Dr[zr]=$e[zr])}),Dr},ne.map(function(Dr){return $e[Dr]})),In=(0,ee.useMemo)(function(){return(0,ie.Z)((0,ie.Z)({},Cn),{},{src:Wr})},[Wr,Cn]),Gn=E(Zo,In),yr=function(zr){var eo=(0,he.os)(zr.target),oo=eo.left,io=eo.top;Xo?Xo.onPreview(Gn,oo,io):(Lo({x:oo,y:io}),Kr(!0)),Lr==null||Lr(zr)};return ee.createElement(ee.Fragment,null,ee.createElement("div",(0,fe.Z)({},wn,{className:Zn,onClick:Zo?yr:Lr,style:(0,ie.Z)({width:cn,height:Ln},Sr)}),ee.createElement("img",(0,fe.Z)({},Cn,{className:Se()("".concat(Kt,"-img"),(0,ue.Z)({},"".concat(Kt,"-img-placeholder"),Nn===!0),Ut),style:(0,ie.Z)({height:Ln},Jn),ref:mo},oi,{width:cn,height:Ln,onError:dr})),ti==="loading"&&ee.createElement("div",{"aria-hidden":"true",className:"".concat(Kt,"-placeholder")},Nn),Mo&&Zo&&ee.createElement("div",{className:Se()("".concat(Kt,"-mask"),Ao),style:{display:(Jn==null?void 0:Jn.display)==="none"?"none":void 0}},Mo)),!Xo&&Zo&&ee.createElement(At,(0,fe.Z)({"aria-hidden":!ko,visible:ko,prefixCls:yn,onClose:gi,mousePosition:xo,src:Wr,alt:Ft,fallback:Un,getContainer:So,icons:Bo,movable:fo,scaleStep:_o,minScale:Eo,maxScale:Io,rootClassName:on,imageRender:jr,imgCommonProps:Cn,toolbarRender:no},Oo)))};St.PreviewGroup=Ct,St.displayName="Image";var xt=St,ln=xt,Gt=te(62892),lt=te(36355),ct=te(31724),Ge=te(99267),Ne=te(33853),tt=te(38819),Et={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"},Ie=Et,Oe=te(7657),We=function($e,Mt){return ee.createElement(Oe.Z,(0,fe.Z)({},$e,{ref:Mt,icon:Ie}))},ke=ee.forwardRef(We),ze=ke,it={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"},It=it,Dt=function($e,Mt){return ee.createElement(Oe.Z,(0,fe.Z)({},$e,{ref:Mt,icon:It}))},jt=ee.forwardRef(Dt),Lt=jt,Ht={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"},yt=Ht,fn=function($e,Mt){return ee.createElement(Oe.Z,(0,fe.Z)({},$e,{ref:Mt,icon:yt}))},un=ee.forwardRef(fn),bt=un,Sn={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"},pn=Sn,Fn=function($e,Mt){return ee.createElement(Oe.Z,(0,fe.Z)({},$e,{ref:Mt,icon:pn}))},xn=ee.forwardRef(Fn),Kn=xn,er={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"},Vn=er,Yn=function($e,Mt){return ee.createElement(Oe.Z,(0,fe.Z)({},$e,{ref:Mt,icon:Vn}))},pr=ee.forwardRef(Yn),vr=pr,tn=te(64993),Xn=te(73819),sr=te(17313),Wn=te(29878),lr=te(1950),Or=te(83116),Rr=te(37613);const Er=Rt=>({position:Rt||"absolute",inset:0}),Nr=Rt=>{const{iconCls:$e,motionDurationSlow:Mt,paddingXXS:Ft,marginXXS:wt,prefixCls:Bt,colorTextLightSolid:Kt}=Rt;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Kt,background:new tn.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Mt}`,[`.${Bt}-mask-info`]:Object.assign(Object.assign({},sr.vS),{padding:`0 ${Ft}px`,[$e]:{marginInlineEnd:wt,svg:{verticalAlign:"baseline"}}})}},cr=Rt=>{const{previewCls:$e,modalMaskBg:Mt,paddingSM:Ft,marginXL:wt,margin:Bt,paddingLG:Kt,previewOperationColorDisabled:Xt,previewOperationHoverColor:yn,motionDurationSlow:Nn,iconCls:Un,colorTextLightSolid:cn}=Rt,Ln=new tn.C(Mt).setAlpha(.1),Jn=Ln.clone().setAlpha(.2);return{[`${$e}-footer`]:{position:"fixed",bottom:wt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Rt.previewOperationColor},[`${$e}-progress`]:{marginBottom:Bt},[`${$e}-close`]:{position:"fixed",top:wt,right:{_skip_check_:!0,value:wt},display:"flex",color:cn,backgroundColor:Ln.toRgbString(),borderRadius:"50%",padding:Ft,outline:0,border:0,cursor:"pointer",transition:`all ${Nn}`,"&:hover":{backgroundColor:Jn.toRgbString()},[`& > ${Un}`]:{fontSize:Rt.previewOperationSize}},[`${$e}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Kt}px`,backgroundColor:Ln.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ft,padding:Ft,cursor:"pointer",transition:`all ${Nn}`,userSelect:"none",[`&:not(${$e}-operations-operation-disabled):hover > ${Un}`]:{color:yn},"&-disabled":{color:Xt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Un}`]:{fontSize:Rt.previewOperationSize}}}}},Xr=Rt=>{const{modalMaskBg:$e,iconCls:Mt,previewOperationColorDisabled:Ft,previewCls:wt,zIndexPopup:Bt,motionDurationSlow:Kt}=Rt,Xt=new tn.C($e).setAlpha(.1),yn=Xt.clone().setAlpha(.2);return{[`${wt}-switch-left, ${wt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Bt+1,display:"flex",alignItems:"center",justifyContent:"center",width:Rt.imagePreviewSwitchSize,height:Rt.imagePreviewSwitchSize,marginTop:-Rt.imagePreviewSwitchSize/2,color:Rt.previewOperationColor,background:Xt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Kt}`,userSelect:"none","&:hover":{background:yn.toRgbString()},"&-disabled":{"&, &:hover":{color:Ft,background:"transparent",cursor:"not-allowed",[`> ${Mt}`]:{cursor:"not-allowed"}}},[`> ${Mt}`]:{fontSize:Rt.previewOperationSize}},[`${wt}-switch-left`]:{insetInlineStart:Rt.marginSM},[`${wt}-switch-right`]:{insetInlineEnd:Rt.marginSM}}},$t=Rt=>{const{motionEaseOut:$e,previewCls:Mt,motionDurationSlow:Ft,componentCls:wt}=Rt;return[{[`${wt}-preview-root`]:{[Mt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Mt}-body`]:Object.assign(Object.assign({},Er()),{overflow:"hidden"}),[`${Mt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ft} ${$e} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Er()),{transition:`transform ${Ft} ${$e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Mt}-moving`]:{[`${Mt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${wt}-preview-root`]:{[`${Mt}-wrap`]:{zIndex:Rt.zIndexPopup}}},{[`${wt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Rt.zIndexPopup+1},"&":[cr(Rt),Xr(Rt)]}]},de=Rt=>{const{componentCls:$e}=Rt;return{[$e]:{position:"relative",display:"inline-block",[`${$e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${$e}-img-placeholder`]:{backgroundColor:Rt.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${$e}-mask`]:Object.assign({},Nr(Rt)),[`${$e}-mask:hover`]:{opacity:1},[`${$e}-placeholder`]:Object.assign({},Er())}}},pe=Rt=>{const{previewCls:$e}=Rt;return{[`${$e}-root`]:(0,Wn._y)(Rt,"zoom"),"&":(0,lr.J$)(Rt,!0)}};var Pe=(0,Or.Z)("Image",Rt=>{const $e=`${Rt.componentCls}-preview`,Mt=(0,Rr.TS)(Rt,{previewCls:$e,modalMaskBg:new tn.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Rt.controlHeightLG});return[de(Mt),$t(Mt),(0,Xn.QA)((0,Rr.TS)(Mt,{componentCls:$e})),pe(Mt)]},Rt=>({zIndexPopup:Rt.zIndexPopupBase+80,previewOperationColor:new tn.C(Rt.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new tn.C(Rt.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new tn.C(Rt.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Rt.fontSizeIcon*1.5})),xe=function(Rt,$e){var Mt={};for(var Ft in Rt)Object.prototype.hasOwnProperty.call(Rt,Ft)&&$e.indexOf(Ft)<0&&(Mt[Ft]=Rt[Ft]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Ft=Object.getOwnPropertySymbols(Rt);wt<Ft.length;wt++)$e.indexOf(Ft[wt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Ft[wt])&&(Mt[Ft[wt]]=Rt[Ft[wt]]);return Mt};const Be={rotateLeft:ee.createElement(ze,null),rotateRight:ee.createElement(Lt,null),zoomIn:ee.createElement(Kn,null),zoomOut:ee.createElement(vr,null),close:ee.createElement(Ge.Z,null),left:ee.createElement(Ne.Z,null),right:ee.createElement(tt.Z,null),flipX:ee.createElement(bt,null),flipY:ee.createElement(bt,{rotate:90})};var ut=Rt=>{var{previewPrefixCls:$e,preview:Mt}=Rt,Ft=xe(Rt,["previewPrefixCls","preview"]);const{getPrefixCls:wt}=ee.useContext(lt.E_),Bt=wt("image",$e),Kt=`${Bt}-preview`,Xt=wt(),[yn,Nn]=Pe(Bt),Un=ee.useMemo(()=>{var cn;if(Mt===!1)return Mt;const Ln=typeof Mt=="object"?Mt:{},Jn=Se()(Nn,(cn=Ln.rootClassName)!==null&&cn!==void 0?cn:"");return Object.assign(Object.assign({},Ln),{transitionName:(0,Gt.m)(Xt,"zoom",Ln.transitionName),maskTransitionName:(0,Gt.m)(Xt,"fade",Ln.maskTransitionName),rootClassName:Jn})},[Mt]);return yn(ee.createElement(ln.PreviewGroup,Object.assign({preview:Un,previewPrefixCls:Kt,icons:Be},Ft)))},nn=function(Rt,$e){var Mt={};for(var Ft in Rt)Object.prototype.hasOwnProperty.call(Rt,Ft)&&$e.indexOf(Ft)<0&&(Mt[Ft]=Rt[Ft]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Ft=Object.getOwnPropertySymbols(Rt);wt<Ft.length;wt++)$e.indexOf(Ft[wt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Ft[wt])&&(Mt[Ft[wt]]=Rt[Ft[wt]]);return Mt};const Zt=Rt=>{const{prefixCls:$e,preview:Mt,className:Ft,rootClassName:wt,style:Bt}=Rt,Kt=nn(Rt,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:Xt,locale:yn=ct.Z,getPopupContainer:Nn,image:Un}=ee.useContext(lt.E_),cn=Xt("image",$e),Ln=Xt(),Jn=yn.Image||ct.Z.Image,[rr,fr]=Pe(cn),Ut=Se()(wt,fr),Lr=Se()(Ft,fr,Un==null?void 0:Un.className),dr=ee.useMemo(()=>{if(Mt===!1)return Mt;const Sr=typeof Mt=="object"?Mt:{},{getContainer:on}=Sr,wn=nn(Sr,["getContainer"]);return Object.assign(Object.assign({mask:ee.createElement("div",{className:`${cn}-mask-info`},ee.createElement(be.Z,null),Jn==null?void 0:Jn.preview),icons:Be},wn),{getContainer:on||Nn,transitionName:(0,Gt.m)(Ln,"zoom",Sr.transitionName),maskTransitionName:(0,Gt.m)(Ln,"fade",Sr.maskTransitionName)})},[Mt,Jn]),Qr=Object.assign(Object.assign({},Un==null?void 0:Un.style),Bt);return rr(ee.createElement(ln,Object.assign({prefixCls:cn,preview:dr,rootClassName:Ut,className:Lr,style:Qr},Kt)))};Zt.PreviewGroup=ut;var qt=Zt,bn=()=>{const[Rt,$e]=(0,ee.useState)(""),[Mt,Ft]=(0,ee.useState)(0);let[wt,Bt]=(0,ee.useState)(),[Kt,Xt]=(0,ee.useState)();const[yn,Nn]=(0,ee.useState)(!1),Un=(0,ee.useRef)("");(0,ee.useEffect)(()=>ge.Z.subscribe("preview-image",on=>{$e(on),console.log(dr.current),document.body.style.overflow="hidden"}),[]),(0,ee.useEffect)(()=>(document.addEventListener("keydown",cn),()=>{document.removeEventListener("keydown",cn)}),[]),(0,ee.useEffect)(()=>{Un.current=Rt},[Rt]);function cn(Sr){Sr.keyCode==27&&Un.current&&Ln()}function Ln(){document.body.style.overflow="auto",Bt(void 0),Xt(void 0),Ft(0),$e("")}function Jn(){Ft(Mt+90)}function rr(){wt=dr.current.width*1.1,Kt=dr.current.height*1.1,Xt(Kt),Bt(wt)}function fr(){wt=dr.current.width/1.1,Kt=dr.current.height/1.1,Xt(Kt),Bt(wt)}const Ut=(0,ee.useRef)(),Lr=(0,ee.useRef)(),dr=(0,ee.useRef)(),Qr=Sr=>{(Sr.nativeEvent.target===Ut.current||Sr.nativeEvent.target===Lr.current)&&Ln()};return ee.createElement(ee.Fragment,null,Rt?ee.createElement("div",null,ee.createElement("div",{className:"preview-wrp-group",ref:Lr},ee.createElement(qt,{className:"image-preview",src:Rt,style:{display:"none"},preview:{visible:!0,src:Rt,movable:!1,onVisibleChange:Sr=>{$e("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},44905:function(ht,Ve,te){"use strict";te.d(Ve,{h:function(){return re}});var ee=te(59301),ge=te(57809),be=te(78241),ve=te(3113),Se=te(89780),fe=te.n(Se),ie=te(66543),ue=te(59598),le=Object.defineProperty,me=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(se,ce,_e)=>ce in se?le(se,ce,{enumerable:!0,configurable:!0,writable:!0,value:_e}):se[ce]=_e,y=(se,ce)=>{for(var _e in ce||(ce={}))oe.call(ce,_e)&&a(se,_e,ce[_e]);if(he)for(var _e of he(ce))ne.call(ce,_e)&&a(se,_e,ce[_e]);return se},E=(se,ce)=>me(se,ae(ce));const b=ge.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"]};Ve.Z=({callback:se,onCancel:ce})=>{const[_e,ye]=(0,ee.useState)("python");function De(je){ye(z[je][1])}function Ee(je){se(je)}return ee.createElement(be.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),ee.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(ge.default,{getPopupContainer:je=>je.parentNode,onChange:De},Object.keys(z).map(je=>ee.createElement(b,{key:je,value:je},z[je][0])))),ee.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(re,{mode:_e})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(ve.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function re({value:se,onChange:ce,mode:_e,options:ye={}}){const De=(0,ee.useRef)(),[Ee,je]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(Ee){let Le=function(ft){const Xe=ft.getValue();ce&&ce(Xe)};return Ee.on("change",Le),()=>{Ee.off("change",Le)}}},[Ee,ce]),(0,ee.useEffect)(()=>{Ee&&Ee.setOption("mode",_e)},[Ee,_e]),(0,ee.useEffect)(()=>{Ee&&(se!==Ee.getValue()||se==="")&&setTimeout(()=>{Ee.setValue(se||"")},300)},[Ee,se]),(0,ee.useEffect)(()=>{if(De.current&&!Ee){const Le=fe().fromTextArea(De.current,y({mode:_e,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ye));je(Le)}},[De.current,Ee]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:De}))}},89389:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(59301),ge=te(89780),be=te.n(ge),ve=te(76374),Se=te(66543),fe=te(6313),ie=te(25717),ue=te(99498),le=te(25419),me=te(67549),ae=te(7664),he=({value:pe="",className:Pe,showTextOnly:xe,showLines:Be,style:ot={}})=>{const ut=(0,ee.useMemo)(()=>"",[pe]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},oe=te(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(pe,Pe,xe)=>Pe in pe?ne(pe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[Pe]=xe,re=(pe,Pe)=>{for(var xe in Pe||(Pe={}))b.call(Pe,xe)&&z(pe,xe,Pe[xe]);if(E)for(var xe of E(Pe))x.call(Pe,xe)&&z(pe,xe,Pe[xe]);return pe},se=(pe,Pe)=>a(pe,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 _e({onActionCallback:pe,title:Pe,icon:xe,actionName:Be,className:ot="",children:ut}){function nn(){pe(Be)}return oe.createElement("a",{title:Pe,className:ot,onClick:nn},oe.createElement("i",{className:`${xe}`}),ut)}var ye=({watch:pe,showNullButton:Pe,showNullProgramButton:xe,onActionCallback:Be,fullScreen:ot,insertTemp:ut,hidetoolBar:nn,extraUse:Zt})=>{const qt=[...ce,{title:`${pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!nn&&qt.map((bn,Rt)=>oe.createElement("li",{key:Rt},bn.actionName?oe.createElement(_e,se(re({},bn),{onActionCallback:Be})):oe.createElement("span",{className:"v-line"}))),Pe?oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&oe.createElement("li",null,Zt),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(_e,{icon:`${ot?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ot?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Be})))},De=te(75790),Ee=te(78241),je=te(92832),Le=te(3113),ft=Object.defineProperty,Xe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,st=(pe,Pe,xe)=>Pe in pe?ft(pe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[Pe]=xe,Ke=(pe,Pe)=>{for(var xe in Pe||(Pe={}))Fe.call(Pe,xe)&&st(pe,xe,Pe[xe]);if(we)for(var xe of we(Pe))He.call(Pe,xe)&&st(pe,xe,Pe[xe]);return pe},mt=(pe,Pe)=>Xe(pe,pt(Pe));const _t={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:pe,onCancel:Pe})=>{function xe(Be){pe(Be)}return ee.createElement(Ee.default,mt(Ke({},_t),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xe,style:{width:500}}),ee.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(je.default,null)),ee.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(je.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Le.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},kt=te(44905),rt=te(45596),Qe=te(43418),Pt=te(95237),zt=te(6077),Ct=te(59301),sn=({callback:pe,onCancel:Pe})=>{const xe=document.createElement("canvas"),Be=xe.getContext("2d");xe.width=1e3,xe.height=800,Be.fillStyle="#ffffff",Be.fillRect(0,0,xe.width,xe.height);const ot=xe.toDataURL("image/png");return Ct.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ct.createElement(Pt.Z,{style:{height:"100vh"}},Ct.createElement(zt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ot,visible:!0,title:String(Date.now())},onOk:ut=>{pe({src:ut.url})},onClose:Pe})))},Ze=te(12378);function St(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(St,go.CommandHandler),St.prototype.canAlignSelection=function(){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<2)},St.prototype.alignLeft=function(){var pe=this.diagram;pe.startTransaction("aligning left");var Pe=1/0;pe.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.x,Pe))}),pe.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe,xe.position.y))}),pe.commitTransaction("aligning left")},St.prototype.alignRight=function(){var pe=this.diagram;pe.startTransaction("aligning right");var Pe=-1/0;pe.selection.each(function(xe){if(!(xe instanceof go.Link)){var Be=xe.actualBounds.x+xe.actualBounds.width;Pe=Math.max(Be,Pe)}}),pe.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe-xe.actualBounds.width,xe.position.y))}),pe.commitTransaction("aligning right")},St.prototype.alignTop=function(){var pe=this.diagram;pe.startTransaction("alignTop");var Pe=1/0;pe.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.y,Pe))}),pe.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,Pe))}),pe.commitTransaction("alignTop")},St.prototype.alignBottom=function(){var pe=this.diagram;pe.startTransaction("aligning bottom");var Pe=-1/0;pe.selection.each(function(xe){if(!(xe instanceof go.Link)){var Be=xe.actualBounds.y+xe.actualBounds.height;Pe=Math.max(Be,Pe)}}),pe.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,Pe-xe.actualBounds.height))}),pe.commitTransaction("aligning bottom")},St.prototype.alignCenterX=function(){var pe=this.diagram,Pe=pe.selection.first();if(Pe){pe.startTransaction("aligning Center X");var xe=Pe.actualBounds.x+Pe.actualBounds.width/2;pe.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(xe-Be.actualBounds.width/2,Be.actualBounds.y))}),pe.commitTransaction("aligning Center X")}},St.prototype.alignCenterY=function(){var pe=this.diagram,Pe=pe.selection.first();if(Pe){pe.startTransaction("aligning Center Y");var xe=Pe.actualBounds.y+Pe.actualBounds.height/2;pe.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.actualBounds.x,xe-Be.actualBounds.height/2))}),pe.commitTransaction("aligning Center Y")}},St.prototype.alignColumn=function(pe){var Pe=this.diagram;Pe.startTransaction("align Column"),pe===void 0&&(pe=0),pe=parseFloat(pe);var xe=new Array;Pe.selection.each(function(Zt){Zt instanceof go.Link||xe.push(Zt)});for(var Be=0;Be<xe.length-1;Be++){var ot=xe[Be],ut=ot.actualBounds.y+ot.actualBounds.height+pe,nn=xe[Be+1];nn.move(new go.Point(ot.actualBounds.x,ut))}Pe.commitTransaction("align Column")},St.prototype.alignRow=function(pe){pe===void 0&&(pe=0),pe=parseFloat(pe);var Pe=this.diagram;Pe.startTransaction("align Row");var xe=new Array;Pe.selection.each(function(Zt){Zt instanceof go.Link||xe.push(Zt)});for(var Be=0;Be<xe.length-1;Be++){var ot=xe[Be],ut=ot.actualBounds.x+ot.actualBounds.width+pe,nn=xe[Be+1];nn.move(new go.Point(ut,ot.actualBounds.y))}Pe.commitTransaction("align Row")},St.prototype.canRotate=function(pe){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},St.prototype.rotate=function(pe){pe===void 0&&(pe=90);var Pe=this.diagram;Pe.startTransaction("rotate "+pe.toString());var Pe=this.diagram;Pe.selection.each(function(xe){xe instanceof go.Link||xe instanceof go.Group||(xe.angle+=pe)}),Pe.commitTransaction("rotate "+pe.toString())},St.prototype.pullToFront=function(){var pe=this.diagram;pe.startTransaction("pullToFront");var Pe=new go.Map;pe.selection.each(function(xe){Pe.set(xe.layer,0)}),Pe.iteratorKeys.each(function(xe){var Be=0;xe.parts.each(function(ot){if(!ot.isSelected){var ut=ot.zOrder;isNaN(ut)?ot.zOrder=0:Be=Math.max(Be,ut)}}),Pe.set(xe,Be)}),pe.selection.each(function(xe){St._assignZOrder(xe,Pe.get(xe.layer)+1)}),pe.commitTransaction("pullToFront")},St.prototype.pushToBack=function(){var pe=this.diagram;pe.startTransaction("pushToBack");var Pe=new go.Map;pe.selection.each(function(xe){Pe.set(xe.layer,0)}),Pe.iteratorKeys.each(function(xe){var Be=0;xe.parts.each(function(ot){if(!ot.isSelected){var ut=ot.zOrder;isNaN(ut)?ot.zOrder=0:Be=Math.min(Be,ut)}}),Pe.set(xe,Be)}),pe.selection.each(function(xe){St._assignZOrder(xe,Pe.get(xe.layer)-1-St._findGroupDepth(xe))}),pe.commitTransaction("pushToBack")},St._assignZOrder=function(pe,Pe,xe){xe===void 0&&(xe=pe),pe.layer===xe.layer&&(pe.zOrder=Pe),pe instanceof go.Group&&pe.memberParts.each(function(Be){St._assignZOrder(Be,Pe+1,xe)})},St._findGroupDepth=function(pe){if(pe instanceof go.Group){var Pe=0;return pe.memberParts.each(function(xe){Pe=Math.max(Pe,St._findGroupDepth(xe))}),Pe+1}else return 0},St.prototype.doKeyDown=function(){var pe=this.diagram;if(pe!==null){var Pe=pe.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var xe=this.arrowKeyBehavior;if(xe==="none")return;if(xe==="select"){this._arrowKeySelect();return}else if(xe==="move"){this._arrowKeyMove();return}else if(xe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},St.prototype._getAllParts=function(){var pe=new Array;return this.diagram.nodes.each(function(Pe){pe.push(Pe)}),this.diagram.parts.each(function(Pe){pe.push(Pe)}),pe},St.prototype._arrowKeyMove=function(){var pe=this.diagram,Pe=pe.lastInput,xe=0,Be=0;if(Pe.control||Pe.meta)xe=1,Be=1;else if(pe.grid!==null){var ot=pe.grid.gridCellSize;Be=ot.width,xe=ot.height}pe.startTransaction("arrowKeyMove"),pe.selection.each(function(ut){Pe.key==="Up"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y-xe)):Pe.key==="Down"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y+xe)):Pe.key==="Left"?ut.move(new go.Point(ut.actualBounds.x-Be,ut.actualBounds.y)):Pe.key==="Right"&&ut.move(new go.Point(ut.actualBounds.x+Be,ut.actualBounds.y))}),pe.commitTransaction("arrowKeyMove")},St.prototype._arrowKeySelect=function(){var pe=this.diagram,Pe=pe.lastInput,xe=null;Pe.key==="Up"?xe=this._findNearestPartTowards(270):Pe.key==="Down"?xe=this._findNearestPartTowards(90):Pe.key==="Left"?xe=this._findNearestPartTowards(180):Pe.key==="Right"&&(xe=this._findNearestPartTowards(0)),xe!==null&&(Pe.shift?xe.isSelected=!0:Pe.control||Pe.meta?xe.isSelected=!xe.isSelected:pe.select(xe))},St.prototype._findNearestPartTowards=function(pe){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var xe=Pe.actualBounds.center,Be=this._getAllParts(),ot=1/0,ut=Pe,nn=0;nn<Be.length;nn++){var Zt=Be[nn];if(Zt!==Pe&&Zt.canSelect()){var qt=Zt.actualBounds.center,bn=xe.directionPoint(qt),Rt=this._angleCloseness(bn,pe);if(Rt<=45){var $e=xe.distanceSquaredPoint(qt);$e*=1+Math.sin(Rt*Math.PI/180),$e<ot&&(ot=$e,ut=Zt)}}}return ut},St.prototype._angleCloseness=function(pe,Pe){return Math.min(Math.abs(Pe-pe),Math.min(Math.abs(Pe+360-pe),Math.abs(Pe-360-pe)))},St.prototype._arrowKeyTree=function(){var pe=this.diagram,Pe=pe.selection.first();if(Pe instanceof go.Node){var xe=pe.lastInput;if(xe.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)pe.commandHandler.canExpandTree(Pe)&&pe.commandHandler.expandTree(Pe);else{var Be=this._sortTreeChildrenByY(Pe).first();Be!==null&&pe.select(Be)}}else if(xe.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)pe.commandHandler.canCollapseTree(Pe)&&pe.commandHandler.collapseTree(Pe);else{var ot=Pe.findTreeParentNode();ot!==null&&pe.select(ot)}else if(xe.key==="Up"){var ot=Pe.findTreeParentNode();if(ot!==null){var ut=this._sortTreeChildrenByY(ot),nn=ut.indexOf(Pe);if(nn>0){for(var Zt=ut.elt(nn-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var qt=this._sortTreeChildrenByY(Zt);Zt=qt.last()}Zt!==null&&pe.select(Zt)}else pe.select(ot)}}else if(xe.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Be=this._sortTreeChildrenByY(Pe).first();Be!==null&&pe.select(Be)}else for(;Pe!==null;){var ot=Pe.findTreeParentNode();if(ot===null)break;var ut=this._sortTreeChildrenByY(ot),nn=ut.indexOf(Pe);if(nn<ut.length-1){pe.select(ut.elt(nn+1));break}else Pe=ot}var bn=pe.selection.first();bn!==null&&pe.scrollToRect(bn.actualBounds)}},St.prototype._sortTreeChildrenByY=function(pe){var Pe=new go.List().addAll(pe.findTreeChildrenNodes());return Pe.sort(function(xe,Be){var ot=xe.location,ut=Be.location;return ot.y<ut.y?-1:ot.y>ut.y?1:ot.x<ut.x?-1:ot.x>ut.x?1:0}),Pe},St.prototype.copyToClipboard=function(pe){go.CommandHandler.prototype.copyToClipboard.call(this,pe),this._lastPasteOffset.set(this.pasteOffset)},St.prototype.pasteFromClipboard=function(){var pe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(pe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),pe},Object.defineProperty(St.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(pe){if(pe!=="move"&&pe!=="select"&&pe!=="scroll"&&pe!=="tree"&&pe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+pe);this._arrowKeyBehavior=pe}}),Object.defineProperty(St.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(pe){if(!(pe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+pe);this._pasteOffset.set(pe)}});var xt=St,ln=te(20397),Gt=te(43604),lt=te(82093),ct={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=te(59301),Ne=(pe,Pe,xe)=>new Promise((Be,ot)=>{var ut=qt=>{try{Zt(xe.next(qt))}catch(bn){ot(bn)}},nn=qt=>{try{Zt(xe.throw(qt))}catch(bn){ot(bn)}},Zt=qt=>qt.done?Be(qt.value):Promise.resolve(qt.value).then(ut,nn);Zt((xe=xe.apply(pe,Pe)).next())});function tt({onCancel:pe,callback:Pe}){let xe=(0,ee.useRef)(),Be=(0,ee.useRef)(),ot=(0,ee.useRef)(),ut=(0,ee.useRef)(!1);const nn=(0,ee.useRef)(!1),[Zt,qt]=(0,ee.useState)(0);function bn(){const $e=Ze.bx.make,Mt={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"};xe.current=new Ze.S0(Be.current,{padding:20,grid:$e(Ze.s_,"Grid",$e(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$e(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:on=>{var wn=on.diagram.commandHandler.addTopLevelParts(on.diagram.selection,!0);wn||on.diagram.currentTool.doCancel()},commandHandler:$e(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:on=>{var wn=on.subject;wn.location=wn.location.copy().snapToGridPoint(on.diagram.grid.gridOrigin,on.diagram.grid.gridCellSize),setTimeout(()=>{on.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:on=>{var wn=on.subject;setTimeout(()=>{on.diagram.commandHandler.editTextBlock()})},LinkRelinked:on=>{var wn=on.parameter.part;wn.invalidateConnectedLinks();var Hn=on.subject;on.diagram.toolManager.linkingTool.isForwards?Hn.toNode.invalidateConnectedLinks():Hn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=$e(Ze.NB,"Auto",{locationSpot:Ze.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ze.$u(120,60),minSize:new Ze.$u(40,40),resizable:!0,resizeCellSize:new Ze.$u(10,10),rotatable:!0},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),new Ze.KX("desiredSize","size",Ze.$u.parse).makeTwoWay(Ze.$u.stringify),$e(Ze.bn,{name:"SHAPE",fill:Mt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("figure"),new Ze.KX("fill"),new Ze.KX("stroke","borderColor"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),$e(Ze.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),$e(Ze.al,{margin:1,textAlign:"center",overflow:Ze.al.OverflowEllipsis,editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=$e("ToolTip",$e(Ze.s_,"Vertical",{maxSize:new Ze.$u(200,NaN)},$e(Ze.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ze.KX("text")),$e(Ze.al,{font:"10pt sans-serif",textAlign:"center"},new Ze.KX("text","details"))));function Ft(on,wn){var Hn=(mn,ir)=>{mn.handled=!0,mn.diagram.model.commit(ar=>{var Br=ir.part.adornedPart,Fr=new Ze.E9().setRectSpot(Br.actualBounds,on);Fr.subtract(Br.location),Fr.scale(2,2),Fr.x+=Math.sign(Fr.x)*130,Fr.y+=Math.sign(Fr.y)*130,Fr.add(Br.location),Fr.snapToGridPoint(mn.diagram.grid.gridOrigin,mn.diagram.grid.gridCellSize);var Zr=ar.copyNodeData(Br.data);ar.setGroupKeyForNodeData(Zr,ar.getGroupKeyForNodeData(Br.data)),ar.addNodeData(Zr);var Co={from:Br.key,to:ar.getKeyForNodeData(Zr)};ar.addLinkData(Co);var So=mn.diagram.findNodeForData(Zr);So.location=Fr,mn.diagram.select(So),setTimeout(()=>{mn.diagram.commandHandler.editTextBlock()},20)})};return $e(Ze.bn,{figure:wn,alignment:on,alignmentFocus:on.opposite(),width:on.equals(Ze.z6.Top)||on.equals(Ze.z6.Bottom)?25:18,height:on.equals(Ze.z6.Top)||on.equals(Ze.z6.Bottom)?18:25,fill:"orange",stroke:Mt.white,strokeWidth:4,mouseEnter:(mn,ir)=>ir.fill="dodgerblue",mouseLeave:(mn,ir)=>ir.fill="orange",isActionable:!0,click:Hn,contextClick:Hn})}function wt(on){return $e(Ze.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:(wn,Hn)=>Hn.fill="dodgerblue",mouseLeave:(wn,Hn)=>Hn.fill="orange",click:(wn,Hn)=>{wn.diagram.commandHandler.showContextMenu(Hn.part.adornedPart)}},on||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=$e(Ze.uz,"Spot",$e(Ze.Vm,{padding:10}),Ft(Ze.z6.Top,"TriangleUp"),Ft(Ze.z6.Left,"TriangleLeft"),Ft(Ze.z6.Right,"TriangleRight"),Ft(Ze.z6.Bottom,"TriangleDown"),wt({alignment:new Ze.z6(.75,0)}));function Bt(on,wn){return(Hn,mn)=>{Hn.handled=!0,Hn.diagram.model.commit(ir=>{ir.set(mn.part.adornedPart.data,on,wn)})}}function Kt(on,wn){return wn||(wn="color"),$e(Ze.bn,{width:16,height:16,stroke:"lightgray",fill:on,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.stroke="dodgerblue",mouseLeave:(Hn,mn)=>mn.stroke="lightgray",click:Bt(wn,on),contextClick:Bt(wn,on)})}function Xt(){return[$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(Mt.white,"fill"),Kt(Mt.beige,"fill"),Kt(Mt.extralightblue,"fill"),Kt(Mt.extralightred,"fill"))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(Mt.lightgray,"fill"),Kt(Mt.lightgreen,"fill"),Kt(Mt.lightblue,"fill"),Kt(Mt.lightred,"fill")))]}function yn(){return[$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(Mt.black),Kt(Mt.green),Kt(Mt.blue),Kt(Mt.red))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(Mt.white),Kt(Mt.magenta),Kt(Mt.purple),Kt(Mt.orange)))]}function Nn(on,wn){return wn||(wn="thickness"),$e(Ze.bn,"LineH",{width:16,height:16,strokeWidth:on,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:Bt(wn,on),contextClick:Bt(wn,on)})}function Un(on,wn){return wn||(wn="dash"),$e(Ze.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:on,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:Bt(wn,on),contextClick:Bt(wn,on)})}function cn(){return[$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Nn(1),Nn(2),Nn(3),Nn(4))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Un(null),Un([2,4]),Un([4,4])))]}function Ln(on,wn){return wn||(wn="figure"),$e(Ze.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:on,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.fill="dodgerblue",mouseLeave:(Hn,mn)=>mn.fill="lightgray",click:Bt(wn,on),contextClick:Bt(wn,on)})}xe.current.nodeTemplate.contextMenu=$e("ContextMenu",$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Ln("Rectangle"),Ln("RoundedRectangle"),Ln("Ellipse"),Ln("Diamond"))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Ln("Parallelogram2"),Ln("ManualOperation"),Ln("Procedure"),Ln("Cylinder1"))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Ln("Terminator"),Ln("CreateRequest"),Ln("Document"),Ln("TriangleDown"))),Xt(),yn(),cn()),xe.current.groupTemplate=$e(Ze.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ze.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(on,wn)=>{var Hn=wn.addMembers(wn.diagram.selection,!0);Hn||wn.diagram.currentTool.doCancel()},avoidable:!1},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),$e(Ze.s_,"Auto",{name:"BODY"},$e(Ze.bn,{parameter1:10,fill:Mt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("fill"),new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),$e(Ze.Vm,{background:"transparent",margin:20})),$e(Ze.al,{alignment:Ze.z6.Top,alignmentFocus:Ze.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ze.KX("text"),new Ze.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=$e(Ze.uz,"Spot",$e(Ze.s_,"Auto",$e(Ze.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),$e(Ze.Vm,{margin:1.5})),wt({alignment:Ze.z6.TopRight,alignmentFocus:Ze.z6.BottomRight})),xe.current.groupTemplate.contextMenu=$e("ContextMenu",Xt(),yn(),cn()),xe.current.linkTemplate=$e(Ze.rU,{layerName:"Foreground",routing:Ze.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ze.KX("fromSpot","fromSpot",Ze.z6.parse),new Ze.KX("toSpot","toSpot",Ze.z6.parse),new Ze.KX("fromShortLength","dir",on=>on>=1?10:0),new Ze.KX("toShortLength","dir",on=>on>=1?10:0),new Ze.KX("points").makeTwoWay(),$e(Ze.bn,{strokeWidth:2},new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),$e(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,0),segmentOrientation:Ze.rU.OrientAlong,alignmentFocus:Ze.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",on=>on===1)),$e(Ze.bn,{segmentIndex:-1,segmentOffset:new Ze.E9(-10,6),segmentOrientation:Ze.rU.OrientPlus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",on=>on>=1),new Ze.KX("width","thickness",on=>7+3*on),new Ze.KX("height","thickness",on=>7+3*on),new Ze.KX("segmentOffset","thickness",on=>new Ze.E9(-15,4+1.5*on))),$e(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,-6),segmentOrientation:Ze.rU.OrientMinus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",on=>on===2),new Ze.KX("width","thickness",on=>7+3*on),new Ze.KX("height","thickness",on=>7+3*on),new Ze.KX("segmentOffset","thickness",on=>new Ze.E9(-15,4+1.5*on))),$e(Ze.al,{alignmentFocus:new Ze.z6(0,1,-4,0),editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=$e(Ze.uz,$e(Ze.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Jn(2)},new Ze.KX("pathPattern","thickness",Jn)),wt({alignmentFocus:new Ze.z6(0,0,-6,-4)}));function Jn(on){return $e(Ze.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(on+4).toString()+" H3"})}function rr(on){var wn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return on===0?wn="M0 0 M16 16 M0 8 L16 8":on===2&&(wn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),$e(Ze.bn,{geometryString:wn,margin:2,background:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:Bt("dir",on),contextClick:Bt("dir",on)})}function fr(on){var wn=(Hn,mn)=>{Hn.handled=!0,Hn.diagram.model.commit(ir=>{var ar=mn.part.adornedPart;ir.set(ar.data,on?"toSpot":"fromSpot",Ze.z6.stringify(Ze.z6.AllSides)),(on?ar.toNode:ar.fromNode).invalidateConnectedLinks()})};return $e(Ze.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:wn,contextClick:wn})}function Ut(on,wn){var Hn=0,mn=Ze.z6.RightSide;on.equals(Ze.z6.Top)?(Hn=270,mn=Ze.z6.TopSide):on.equals(Ze.z6.Left)?(Hn=180,mn=Ze.z6.LeftSide):on.equals(Ze.z6.Bottom)&&(Hn=90,mn=Ze.z6.BottomSide),wn||(Hn-=180);var ir=(ar,Br)=>{ar.handled=!0,ar.diagram.model.commit(Fr=>{var Zr=Br.part.adornedPart;Fr.set(Zr.data,wn?"toSpot":"fromSpot",Ze.z6.stringify(mn)),(wn?Zr.toNode:Zr.fromNode).invalidateConnectedLinks()})};return $e(Ze.bn,{alignment:on,alignmentFocus:on.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Hn,background:"transparent",mouseEnter:(ar,Br)=>Br.background="dodgerblue",mouseLeave:(ar,Br)=>Br.background="transparent",click:ir,contextClick:ir})}xe.current.linkTemplate.contextMenu=$e("ContextMenu",yn(),cn(),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",rr(0),rr(1),rr(2))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",$e(Ze.s_,"Spot",fr(!1),Ut(Ze.z6.Top,!1),Ut(Ze.z6.Left,!1),Ut(Ze.z6.Right,!1),Ut(Ze.z6.Bottom,!1)),$e(Ze.s_,"Spot",{margin:new Ze.Zt(0,0,0,2)},fr(!0),Ut(Ze.z6.Top,!0),Ut(Ze.z6.Left,!0),Ut(Ze.z6.Right,!0),Ut(Ze.z6.Bottom,!0)))));const Lr=`{ "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 dr=["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 Qr(on){return console.log("shapeName:",on),dr.indexOf(on)>=0}var Sr=new Ze.YI(ot.current,{maxSelectionCount:1,linkTemplate:$e(Ze.rU,{locationSpot:Ze.z6.Center,selectionAdornmentTemplate:$e(Ze.uz,"Link",{locationSpot:Ze.z6.Center},$e(Ze.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),$e(Ze.bn,{toArrow:"Standard",stroke:null}))},{routing:Ze.rU.AvoidsNodes,curve:Ze.rU.JumpOver,corner:5,toShortLength:4},new Ze.KX("points"),$e(Ze.bn,{isPanelMain:!0,strokeWidth:2}),$e(Ze.bn,{toArrow:"Standard",stroke:null})),model:new Ze.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ze.bn.getFigureGenerators().toArray().map(on=>({text:"\u672A\u547D\u540D",size:"100 100",figure:on.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(on){var wn;const Hn=on.subject.part;var mn=(wn=document.activeElement)==null?void 0:wn.value;typeof mn=="string"&&mn.trim()===""&&xe.current.model.commit(function(ir){ir.set(Hn.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),Sr.nodeTemplate=$e(Ze.NB,"Auto",{locationSpot:Ze.z6.Center},new Ze.KX("location","location",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),$e(Ze.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 Ze.KX("stroke").makeTwoWay(),new Ze.KX("fill").makeTwoWay(),new Ze.KX("figure")),$e(Ze.al,{margin:new Ze.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ze.$u(16,16),maxSize:new Ze.$u(10,NaN),textAlign:"center",editable:!0},new Ze.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=$e(Ze.s_,"Grid",$e(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$e(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xe.current.grid.visible=!0,xe.current.grid.gridCellStroke="darkgray",xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xe.current,xe.current}const Rt=()=>Ne(this,null,function*(){var $e=xe.current.makeImage();const Mt=yield(0,lt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:$e.src}});Pe({src:Mt.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{bn()},500),qt(Zt+1),()=>{xe.current=null}),[]),Ge.createElement("div",{ref:nn,className:ut.current?`${ct.maxH60} body-overflow-initial`:"body-overflow-initial"},Ge.createElement(Qe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ge.createElement(Pt.Z,null,Ge.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ge.createElement(Gt.Z,{onClick:()=>{var $e,Mt,Ft=xe.current.selection.first();if(ut.current=!ut.current,document.activeElement&&Ft){let wt=(Mt=($e=document.activeElement)==null?void 0:$e.value)==null?void 0:Mt.trim();typeof wt=="string"&&xe.current.model.commit(function(Bt){Bt.set(Ft.data,"text",wt||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}qt(Zt+1)}},Ge.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:pe},Ge.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ct.flowChartWrp},Ge.createElement("div",{style:{display:"flex",height:"100%"}},Ge.createElement("div",{style:{width:"300px",height:"100%"}},Ge.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ge.createElement("div",{style:{height:"calc(100% - 50px)"},className:ct.myPaletteDiv,ref:ot})),Ge.createElement("div",{style:{flex:1,position:"relative"}},Ge.createElement("div",{ref:Be,style:{height:"80vh"}}))),Ge.createElement("div",{className:"tr"},Ge.createElement(Le.ZP,{size:"large",onClick:Rt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Et=tt,Ie=te(5112),Oe=te(5871);const We=Ie.ZP.Group,ke={margin:"0 8px"};var ze=({callback:pe,onCancel:Pe})=>{function xe(Be){pe(Be)}return ee.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xe},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:ke},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:ke},"\u884C\u6570"),ee.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Oe.Z,null)),ee.createElement("span",{style:ke},"\u5217\u6570"),ee.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Oe.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(Ee.default.Item,{name:"align"},ee.createElement(We,null,ee.createElement(Ie.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(Ie.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(Ie.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(Ie.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Le.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},it=te(49770),It=te(11081),Dt=te.n(It),Lt=(0,ee.forwardRef)(({use3d:pe,width:Pe,height:xe,callback:Be,showSaveButton:ot},ut)=>{const nn=(0,ee.useRef)(),Zt=(0,ee.useRef)(),[qt,bn]=(0,ee.useState)(!1),Rt=(0,ee.useRef)({id:nn,appName:"graphing",width:Pe||1e3,height:xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{Zt.current=new(Dt())(Rt.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const $e=()=>{var Mt=window.ggbApplet.getPNGBase64(1,!0,72);return Be&&Be(Mt),Mt};return(0,ee.useEffect)(()=>{Rt.current.appName=qt?"3D":"graphing",Zt.current.inject("applet_container")},[qt]),(0,ee.useEffect)(()=>{bn(pe)},[pe]),(0,ee.useImperativeHandle)(ut,()=>({getImgData:$e})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:nn}),ee.createElement(Pt.Z,{align:"middle"},ee.createElement(Gt.Z,{flex:1},ee.createElement(it.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:qt,onChange:Mt=>bn(Mt)})),ee.createElement(Gt.Z,null,ee.createElement(Le.ZP,{size:"large",onClick:$e,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=te(88615),yt=te(1012),fn=te(8591);const un="link",bt="upload-image",Sn="add-flowchart",pn="draw-image",Fn="add-flowchart",xn="code-block",Kn="add-table",er="------------",Vn={default:er,left:`:${er}`,center:`:${er}:`,right:`${er}:`};var Yn=te(17904),pr=(pe,Pe,xe)=>new Promise((Be,ot)=>{var ut=qt=>{try{Zt(xe.next(qt))}catch(bn){ot(bn)}},nn=qt=>{try{Zt(xe.throw(qt))}catch(bn){ot(bn)}},Zt=qt=>qt.done?Be(qt.value):Promise.resolve(qt.value).then(ut,nn);Zt((xe=xe.apply(pe,Pe)).next())});function vr(){}let tn=0;const Xn=1e4,sr="\u2581",Wn="@\u2581\u2581@",lr="@\u2581@",Or=`
**\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`,Rr=["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 Er(pe){return/^\d+$/.test(pe)?`${pe}px`:pe}const cr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xr={[cr+"-B"]:"bold",[cr+"-I"]:"italic"},$t={[un]:"\u6DFB\u52A0\u94FE\u63A5",[xn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[bt]:"\u6DFB\u52A0\u56FE\u7247",[pn]:"\u6DFB\u52A0\u753B\u56FE",[Sn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var de=({defaultValue:pe="",onChange:Pe,width:xe="100%",height:Be=400,miniToolbar:ot=!1,isFocus:ut=!1,watch:nn,insertTemp:Zt,mode:qt="markdown",id:bn="markdown-editor-id",showResizeBar:Rt=!1,noStorage:$e=!1,showNullButton:Mt=!1,showNullProgramButton:Ft=!1,hidetoolBar:wt=!1,fullScreen:Bt=!1,onBlur:Kt,onCMBeforeChange:Xt,onFullScreen:yn,className:Nn="",disablePaste:Un=!1,disabled:cn=!1,disabledFill:Ln=!1,placeholder:Jn="",values:rr="",extraUse:fr})=>{const[Ut,Lr]=(0,ee.useState)(null),[dr,Qr]=(0,ee.useState)(pe),[Sr,on]=(0,ee.useState)(nn),[wn,Hn]=(0,ee.useState)(Bt),[mn,ir]=(0,ee.useState)(""),[ar,Br]=(0,ee.useState)(0),[Fr,Zr]=(0,ee.useState)(Be),[Co,So]=(0,ee.useState)(!1),Mo=(0,ee.useRef)((0,yt.Z)()),Ao=(0,ee.useRef)(!1),fo=(0,ee.useRef)(),[Bo,_o]=(0,ee.useState)(0),[Eo,Io]=(0,ee.useState)(0),jr=(0,ee.useRef)(),no=(0,ee.useRef)(),Oo=(0,ee.useRef)(),Wr=(0,ee.useRef)(),co=()=>pr(void 0,null,function*(){var Zn;const Cn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Mo.current}});(Zn=Cn==null?void 0:Cn.attachments)!=null&&Zn.length&&(console.log("cm:",Ut,jr),Cn.attachments.map(In=>{In.content_type.indexOf("image")>-1?Ut.replaceSelection(`![,](/api/attachments/${In.id}?type=${In.content_type})`):In.content_type.indexOf("video")>-1?Ut.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):In.content_type.indexOf("pdf")>-1?Ut.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${In.id}?type=${In.content_type}&disposition=inline" target="_blank">${In.name}</a>`):Ut.replaceSelection(`[${In.name}](${ENV.API_SERVER}/api/attachments/${In.id}?type=${In.content_type})`)}))});(0,ee.useEffect)(()=>{const Zn=window.scrollY||window.pageYOffset;Qr(rr),Ut==null||Ut.setValue(rr),window.scrollTo(0,Zn)},[rr]),(0,ee.useEffect)(()=>{yn==null||yn(wn)},[wn]),(0,ee.useEffect)(()=>{if(jr.current){let Zn=function(In,Gn){var yr;if(Un){Gn.preventDefault();return}const Dr=Gn.clipboardData;if(Dr){const zr=Dr.types.toString(),eo=Dr.items;if(zr==="Files"||Dr.types.indexOf("Files")>-1){if(Gn.preventDefault(),qt=="stex")return;try{let oo=eo[1];((yr=eo[0])==null?void 0:yr.kind)==="file"&&(oo=eo[0]);const io=oo.getAsFile(),Go=io.name.split(".").pop();(0,rt.I)(io,Po=>{var fi,li,ci;Po.id?((fi=io==null?void 0:io.type)==null?void 0:fi.indexOf("image"))>-1?Cn.replaceSelection(`<img width="100%" src="/api/attachments/${Po.id}?type=${Po.content_type})" alt="" />`):((li=io==null?void 0:io.type)==null?void 0:li.indexOf("video"))>-1?Cn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Po.id}"></video>`):((ci=io==null?void 0:io.type)==null?void 0:ci.indexOf("pdf"))>-1?Cn.replaceSelection(`<a href="/api/attachments/${Po.id}?type=${io.type}&disposition=inline" target="_blank">${io.name}</a>`):Rr.includes(Go)?Cn.replaceSelection(`<a href="/api/attachments/${Po.id}?type=office&disposition=inline" target="_blank">${io.name}</a>`):Cn.replaceSelection(`[${io.name}](/api/attachments/${Po.id}?type=${Po.content_type})`):(Po==null?void 0:Po.status)===401&&(fn.ZP.warning((Po==null?void 0:Po.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(oo){fn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Cn=be().fromTextArea(jr.current,{mode:qt,lineNumbers:!ot,lineWrapping:!0,value:pe,autoCloseTags:!Ft,autoCloseBrackets:!0});return Cn.on("keyup",function(In,Gn){Gn.keyCode===8&&(In.getValue()==""?Cn.setOption("placeholder",Jn):Cn.setOption("placeholder",null))}),Cn.on("keydown",function(In,Gn){if(Gn.keyCode===8){var yr=ko(In);yr&&Gn.preventDefault()}}),ut&&Cn.focus(),Cn.on("paste",Zn),Cn.on("dragleave",function(In,Gn){no.current.classList.remove("mouse-hover-md")}),cn&&Cn.on("beforeChange",function(In,Gn){(Gn.origin==="paste"||Gn.origin==="+input")&&Gn.cancel()}),Lr(Cn),()=>{Cn.off("paste",Zn)}}},[]);const yo=(0,ee.useCallback)(()=>{if(no.current)try{}catch(Zn){console.log(Zn,"---- to set md editor body height")}},[Fr,no,wn]);(0,ee.useEffect)(()=>{function Zn(){let Cn=new ve.Z(In=>{for(let Gn of In)(Gn.target.offsetHeight>0||Gn.target.offsetWidth>0)&&(yo(),Ut.setSize("100%","100%"),Ut.refresh())});return Cn.observe(jr.current.parentElement),Cn}if(Ut){const Cn=Zn();return()=>{var In,Gn;(In=jr.current)!=null&&In.parentElement&&Cn.unobserve((Gn=jr.current)==null?void 0:Gn.parentElement)}}},[Ut,yo]),(0,ee.useEffect)(()=>{if(Ut){let Zn=[];for(const[Cn,In]of Object.entries(Xr)){let Gn={[Cn]:()=>{Kr(In)}};Zn.push(Gn),Ut.addKeyMap(Gn)}return fo.current=setInterval(()=>{Ao.current&&co()},4e3),()=>{clearInterval(fo.current);for(let Cn of Zn)Ut.removeKeyMap(Cn)}}},[Ut]),(0,ee.useEffect)(()=>{Bt!==wn&&Hn(Bt)},[Bt]),(0,Yn.Z)(()=>{if(!$e&&ar>0){let Zn=new Date().getTime(),Cn=window.sessionStorage.getItem(bn);Zn>=ar+Xn&&(!Cn||Cn!==dr)&&(window.sessionStorage.setItem(bn,dr),So(!0))}},Xn),(0,ee.useEffect)(()=>{on(nn)},[Ut,nn]),(0,ee.useEffect)(()=>{Ut&&ut&&Ut.focus()},[Ut,ut]),(0,ee.useEffect)(()=>{if(Sr&&Ut){let Zn=function(In){let Gn=In.target;if(Wr.current){let yr=Gn.scrollTop/Gn.scrollHeight;Wr.current.scrollTop=Wr.current.scrollHeight*yr}};const Cn=Ut.getScrollerElement();return Cn.addEventListener("scroll",Zn),()=>{Cn.removeEventListener("scroll",Zn)}}},[Ut,Sr]),(0,ee.useEffect)(()=>{if(Ut&&Xt){let Zn=function(Cn,In){Xt(Cn,In)};return Ut.on("beforeChange",Zn),()=>{Ut.off("beforeChange",Zn)}}},[Ut,Xt]),(0,ee.useEffect)(()=>{if(Ut&&Kt){let Zn=function(){Kt(Ut.getValue())};return Ut.on("blur",Zn),()=>{Ut.off("blur",Zn)}}},[Ut,Kt]);function ko(Zn,Cn){var In=Zn.getDoc(),Gn=In.getCursor(),yr=In.getLine(Gn.line),Dr=yr.charAt(Gn.ch-1),zr=yr.lastIndexOf("@\u2581@",Gn.ch),eo=yr.lastIndexOf("@\u2581\u2581@",Gn.ch),oo=zr>eo?zr:eo,io=zr>eo?3:4;if(Wn.indexOf(Dr)===-1)return null;if(console.log("change1:",Cn,Zn,yr,Gn,oo,zr,eo,Dr),oo>=0&&Gn.ch-oo<5){var Go=oo+io;return In.replaceRange("",{line:Gn.line,ch:oo},{line:Gn.line,ch:Go}),{line:Gn.line,ch:Go}}return null}(0,ee.useEffect)(()=>{if(Ut){let Zn=function(Cn,In){const Gn=Cn.getValue();Qr(Gn),Br(new Date().getTime()),Cn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Ft?Pe(Gn,xo(Gn)):Pe(Gn))};return Ut.on("change",Zn),()=>{Ut.off("change",Zn)}}},[Ut,Pe]),(0,ee.useEffect)(()=>{if(Ut)if(pe==null)Ut.setValue(""),Qr("");else{const Zn=window.scrollY||window.pageYOffset;pe!==Ut.getValue()&&(Ut.setValue(pe),Qr(pe),Ut.setCursor(cn?1:Ut.lineCount(),0),window.scrollTo(0,Zn))}},[Ut,pe]);const Kr=(0,ee.useCallback)(Zn=>{const Cn=Ut.getCursor(),In=Ut.getSelection();let Gn=In.split(`
`);switch(Zn){case"bold":return Ut.replaceSelection("**"+In+"**"),In===""&&Ut.setCursor(Cn.line,Cn.ch+2),Ut.focus();case"italic":return Ut.replaceSelection("*"+In+"*"),In===""&&Ut.setCursor(Cn.line,Cn.ch+1),Ut.focus();case"code":return Ut.replaceSelection("`"+In+"`"),In===""&&Ut.setCursor(Cn.line,Cn.ch+1),Ut.focus();case"inline-latex":return ir("inline-latex"),Ut.focus();case"latex":return Ut.replaceSelection("```latex\n"+In+"\n```"),Ut.setCursor(Cn.line+1,In.length+1),Ut.focus();case"line-break":return Ut.replaceSelection(`<br/>
`),Ut.focus();case"list-ul":return In===""?Ut.replaceSelection("- "+In):Ut.replaceSelection(Gn.map(yr=>yr===""?"":`- ${yr}`).join(`
`)),Ut.focus();case"list-ol":return In===""?Ut.replaceSelection("1. "+In):Ut.replaceSelection(Gn.map((yr,Dr)=>yr===""?"":`${Dr+1}. ${yr}`).join(`
`)),Ut.focus();case"add-null-ch":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(sr),Ut.focus();case"add-signal":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(lr),Ut.focus();case"add-multiple":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(Wn),Ut.focus();case"inster-template-1":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(Or),Ut.focus();case"eraser":return Ut.setValue(""),Ut.focus();case"trigger-watch":return on(!Sr),Ut.focus();case"trigger-full-screen":return Hn(!wn),Ut.focus();case un:ir(un);return;case xn:ir(xn);return;case bt:ir(bt);return;case pn:ir(pn);return;case"maths-latex":ir("maths-latex");return;case Sn:ir(Sn);return;case Kn:ir(Kn);return;default:throw new Error}},[Ut,Sr,wn]),ho=(0,ee.useCallback)((Zn,Cn)=>{var In,Gn,yr,Dr,zr,eo;switch(ir(""),mn){case un:const{title:fi,link:li}=Zn;return Ut.replaceSelection(`[${fi}](${li})`),Ut.focus();case xn:const{language:ci,content:Ei}=Zn;return Ut.replaceSelection(["```"+ci,Ei,"```"].join(`
`)),Ut.focus();case"maths-latex":for(var oo=atob(Zn),io=new Uint8Array(oo.length),Go=0;Go<oo.length;Go++)io[Go]=oo.charCodeAt(Go);var Po=new Blob([io],{type:"image/png"});(0,rt.I)(Po,Uo=>{Uo.id?Ut.replaceSelection(`![,](/api/attachments/${Uo.id}?type=${Uo.content_type})`):(Uo==null?void 0:Uo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ut.replaceSelection("`$$"+Zn+"$$`");break;case bt:case pn:case Fn:const{src:Hr,alt:gr}=Zn,Gr=Cn,lo=(yr=(Gn=(In=Gr==null?void 0:Gr.name)==null?void 0:In.split("."))==null?void 0:Gn.pop)==null?void 0:yr.call(Gn);return((Dr=Gr==null?void 0:Gr.type)==null?void 0:Dr.indexOf("image"))>-1||!(Gr!=null&&Gr.type)?Gr.align||Gr.width?Ut.replaceSelection(`<p style="text-align:${Gr.align||"initial"}"><img width="${Gr.width?Gr.width+"%":"initial"}" src="${Hr}" alt="${gr||""}" /></p>`):Ut.replaceSelection(`<img width="100%" src="${Hr}" alt="${gr||""}" />`):((zr=Gr==null?void 0:Gr.type)==null?void 0:zr.indexOf("video"))>-1?Ut.replaceSelection(`<video width="100%" controls src="${Hr}"></video>`):((eo=Gr==null?void 0:Gr.type)==null?void 0:eo.indexOf("pdf"))>-1?Ut.replaceSelection(`<a href="${Hr}?type=${Gr.type}&disposition=inline" target="_blank">${Gr.name}</a>`):Rr.includes(lo)?Ut.replaceSelection(`<a href="${Hr}?type=office&disposition=inline" target="_blank">${Gr.name}</a>`):Ut.replaceSelection(`[${Gr.name}](${Hr})`),Ut.focus();case Kn:const{row:Fo,col:ri,align:Qo}=Zn;let Jo=`
`;for(let Uo=0;Uo<Fo;Uo++){let Si=[],_i=[];for(let yi=0;yi<ri;yi++)Uo===1&&_i.push(Vn[Qo]),Si.push(" ");Uo===1&&(Jo+=`| ${_i.join(" | ")} |
`),Jo+=`| ${Si.join(ri===1?"":" | ")} |
`}return Ut.replaceSelection(Jo+`
`),Ut.focus();default:throw new Error}},[Ut,mn]),wo=(0,ee.useMemo)(()=>{switch(mn){case un:return ee.createElement(At,{callback:ho,onCancel:mo});case xn:return ee.createElement(kt.Z,{callback:ho,onCancel:mo});case bt:return ee.createElement(rt.Z,{callback:ho,onCancel:mo});case Sn:return ee.createElement(Et,{callback:ho,onCancel:mo});case Kn:return ee.createElement(ze,{callback:ho,onCancel:mo});case"maths-latex":return ee.createElement(Lt,{showSaveButton:!0,callback:ho});case"inline-latex":return ee.createElement(Ht.Z,{showSaveButton:!0,callback:ho});default:return null}},[mn]);function mo(){ir("")}(0,ee.useEffect)(()=>{if(Oo.current){let Zn=function(zr){yr=!0,Dr=zr.pageY},Cn=function(){yr=!1},In=function(zr){if(yr){let eo=zr.pageY-Dr;eo<0&&(eo=0),eo>300&&(eo=300);let oo=Be+eo+"px";Zr(oo)}},Gn=Oo.current,yr=!1,Dr=0;return Gn.addEventListener("mousedown",Zn),document.addEventListener("mousemove",In),document.addEventListener("mouseup",Cn),()=>{Gn.removeEventListener("mousedown",Zn),document.removeEventListener("mousemove",In),document.removeEventListener("mouseup",Cn)}}},[Ut,Oo]),(0,ee.useEffect)(()=>{Zr(Be)},[Be]);const oi=Er(xe),ti=Er(Fr),ni={width:oi,height:ti},Ro=(0,ee.useMemo)(()=>{if(ar){let Zn=new Date(ar),Cn=Zn.getHours(),In=Zn.getMinutes(),Gn=Zn.getSeconds();return Cn=Cn<10?"0"+Cn:Cn,In=In<10?"0"+In:In,Gn=Gn<10?"0"+Gn:Gn,`${Cn}:${In}:${Gn}`}return 0},[ar]),xo=Zn=>{const Cn=[];if(Ft){let In=-1;Zn=Zn.replace(/(@▁▁@|@▁@)/g,function(Gn,yr,Dr){Cn.push({multiLine:Gn!==lr})})}return Cn};function Lo(){window.sessionStorage.removeItem(bn),So(!1),Br(0)}function Xo(){So(!1),Br(0),Ut.setValue(window.sessionStorage.getItem(bn))}(0,ee.useEffect)(()=>{$t[mn]&&mn!==pn&&mn!==Sn&&setTimeout(()=>{const Zn=document.getElementsByClassName("markdown-popup-form")[0],Cn=window.innerWidth/2-Zn.offsetWidth/2,In=window.innerHeight/2-Zn.offsetHeight/2;_o(Cn),Io(In)},0)},[mn]);const Zo=Zn=>{Zn.preventDefault();const Cn=Zn.clientX-Bo,In=Zn.clientY-Eo;document.body.onmousemove=Gn=>{let yr=Gn.clientX-Cn,Dr=Gn.clientY-In;const zr=document.getElementsByClassName("markdown-popup-form")[0],eo=window.innerWidth-zr.offsetWidth,oo=window.innerHeight-zr.offsetHeight;yr=Math.max(0,Math.min(yr,eo)),Dr=Math.max(0,Math.min(Dr,oo)),gi(Gn.clientX,Gn.clientY,Cn,In)&&(_o(yr),Io(Dr))},document.body.onmouseup=function(){document.body.onmousemove=null}},gi=(Zn,Cn,In,Gn)=>{const yr=document.body.clientHeight,Dr=document.body.clientWidth;return Zn<20&&In>Zn||Zn>Dr-20&&In<Zn||Cn<20&&Gn>Cn||Cn>yr-20&&Gn<Cn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:no},ee.createElement("div",{className:`markdown-editor-container ${Nn} ${Sr?"on-preview":""} ${ot?"mini":""} ${wn?"full-screen":""}`,style:ni},ee.createElement(ye,{insertTemp:Zt,watch:Sr,fullScreen:wn,showNullButton:Mt,showNullProgramButton:Ft,onActionCallback:Kr,hidetoolBar:wt,extraUse:fr}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:jr,placeholder:Jn})),Sr?ee.createElement("div",{ref:Wr,className:"preview-container"},qt==="stex"&&ee.createElement(he,{value:dr}),qt!=="stex"&&ee.createElement(ae.Z,{disabledFill:Ln,showProgramFill:Ft,value:dr})):null))),Rt?ee.createElement("a",{ref:Oo,className:"editor-resize"}):null,mn===pn&&ee.createElement(sn,{callback:ho,onCancel:mo}),mn===Sn&&ee.createElement(Et,{callback:ho,onCancel:mo}),ee.createElement(De.Z,null,$t[mn]&&mn!==pn&&mn!==Sn?ee.createElement(Qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Bo,top:Eo},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:Zo},$t[mn]),open:!0,onCancel:mo,footer:null,destroyOnClose:!0,width:mn===Sn?"1200px":null,height:mn===Sn?"80vh":null,className:"markdown-popup-form"},wo):null))}},45596:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return _e},I:function(){return De}});var ee=te(78241),ge=te(8591),be=te(92832),ve=te(81327),Se=te(5871),fe=te(5112),ie=te(3113),ue=te(67303),le=te(59301),me=te(34055),ae=te(59301),he=Object.defineProperty,oe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(Ee,je,Le)=>je in Ee?he(Ee,je,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ee[je]=Le,x=(Ee,je)=>{for(var Le in je||(je={}))y.call(je,Le)&&b(Ee,Le,je[Le]);if(a)for(var Le of a(je))E.call(je,Le)&&b(Ee,Le,je[Le]);return Ee},z=(Ee,je)=>oe(Ee,ne(je));const{useForm:re}=ee.default,se={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var _e=({callback:Ee,onCancel:je})=>{const[Le]=re();let ft=(0,le.useRef)();function Xe(Fe){ft.current.width=Le.getFieldValue("width"),ft.current.align=Le.getFieldValue("align"),Ee(Fe,ft.current)}function pt(Fe,He){if(Fe.status===-1){ge.ZP.error(Fe.message);return}Le.setFieldsValue({src:`/api/attachments/${Fe.id}`,type:He.type})}function we(Fe){let He=Fe.target.files[0];ft.current=He,De(He,pt)}return ae.createElement(ee.default,z(x({form:Le},ce),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),ae.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ae.createElement("div",{className:"flex-container"},ae.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ae.createElement(be.default,{style:se})),ae.createElement(ye,{onFileChange:we}))),ae.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ae.createElement(be.default,{style:{width:264}})),ae.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ae.createElement(ve.Z,null,ae.createElement(ee.default.Item,{name:"width",style:{margin:0}},ae.createElement(Se.Z,{style:{width:264}})),ae.createElement("span",{className:"ml8"},"%"))),ae.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ae.createElement(fe.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"}]})),ae.createElement("aside",null,ae.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ae.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ie.ZP,{type:"default",onClick:je},"\u53D6\u6D88"))))};function ye({onFileChange:Ee}){return ae.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ae.createElement("input",{type:"file",onChange:Ee}))}function De(Ee,je){if(!Ee)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,me.bg)())throw ge.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Ee),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var ft=new window.XMLHttpRequest;ft.withCredentials=!0,ft.addEventListener("load",function(Xe){je(JSON.parse(Xe.target.responseText),Ee)},!1),ft.addEventListener("error",function(Xe){console.error(Xe)},!1),ft.open("POST",`${ue.KI}/api/attachments.json`),ft.send(Le)}},75790:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return be}});var ee=te(59301),ge=te(4676);class be extends ee.Component{constructor(Se){super(Se);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,ge.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},64536:function(ht,Ve,te){"use strict";var ee=te(45298),ge=te(57809),be=te(49770),ve=te(59301);const Se=ge.default.Option;Ve.Z=({isTheoretical:fe,onFontSizeChange:ie,cmFontSize:ue,cmCodeMode:le,autoFormat:me,onCodeModeChange:ae,onTabToSpace:he,onAutoFormat:oe,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x,shixun_environment_id:z,shixun_environments:re})=>{var se;const ce={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},_e=(se=re==null?void 0:re.find(ye=>ye.shixun_environment_id===z))==null?void 0:se.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(ge.default,{bordered:!1,size:"small",value:le,onChange:ae},ve.createElement(Se,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ve.createElement(Se,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!fe&&ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ve.createElement(ge.default,{bordered:!1,size:"small",value:ue,onChange:ie},ve.createElement(Se,{value:12},"12px"),ve.createElement(Se,{value:14},"14px"),ve.createElement(Se,{value:16},"16px"),ve.createElement(Se,{value:18},"18px"),ve.createElement(Se,{value:20},"20px"),ve.createElement(Se,{value:22},"22px"))),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"Tab\u8F6C\u6362"),ve.createElement(be.Z,{checked:y,onChange:he})),ve.createElement("div",{className:"file-item",onClick:ne},ve.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!fe&&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),!fe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,_e&&ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),ve.createElement("span",null,_e)),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")))))}},17904:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ge}});var ee=te(59301);function ge(be,ve){const Se=(0,ee.useRef)();(0,ee.useEffect)(()=>{Se.current=be}),(0,ee.useEffect)(()=>{function fe(){Se.current()}if(ve!==null){let ie=setInterval(fe,ve);return()=>clearInterval(ie)}},[ve])}},40148:function(ht,Ve,te){"use strict";te.d(Ve,{Im:function(){return Ee},ZP:function(){return we},gZ:function(){return Xe}});var ee=te(59301),ge=te(92832),be=te(3113),ve=te(84105),Se=te(87395),fe=te(49162),ie=te(24334),ue=te(766),le=te(7664),me=te(49661),ae=te(46685),he=te(34376),oe=te(92310),ne=te.n(oe),a=te(59301),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,se=(Fe,He,st)=>He in Fe?y(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:st}):Fe[He]=st,ce=(Fe,He)=>{for(var st in He||(He={}))z.call(He,st)&&se(Fe,st,He[st]);if(x)for(var st of x(He))re.call(He,st)&&se(Fe,st,He[st]);return Fe},_e=(Fe,He)=>E(Fe,b(He));const{TextArea:ye}=ge.default,De={visible:!1,tabIndex:"0"},Ee={[fe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[fe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[fe.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 je=(Fe=>(Fe[Fe.SET_VISIBLE=0]="SET_VISIBLE",Fe[Fe.SET_TABINDEX=1]="SET_TABINDEX",Fe))(je||{});function Le(Fe,He){switch(He.type){case 0:return _e(ce({},Fe),{visible:He.payload});case 1:return _e(ce({},Fe),{tabIndex:He.payload});default:throw new Error}}function ft({value:Fe,className:He}){const[st,Ke]=(0,ee.useState)(!1),mt=(0,ee.useRef)(),_t=(0,ee.useRef)();return(0,ee.useEffect)(()=>{st&&(_t.current.reset(),_t.current.write((0,me.pp)(Fe||"")))},[Fe,st]),(0,ee.useEffect)(()=>{var At,kt,rt,Qe;if(mt.current){_t.current=new he.Terminal({fontSize:14,disableStdin:!0}),_t.current.open(mt.current);const Pt=mt.current.offsetWidth-14,zt=((Qe=(rt=(kt=(At=_t.current)==null?void 0:At._core)==null?void 0:kt._renderService)==null?void 0:rt.dimensions)==null?void 0:Qe.actualCellWidth)||9.5,Ct=Math.ceil(Pt/zt);_t.current.resize(Ct,8),Ke(!0)}},[]),a.createElement("div",{ref:mt,className:ne()("XtermText-valueRef",He)})}function Xe(Fe){const{status:He,error_msg:st,output:Ke,input:mt,expected_output:_t,is_file:At,input_file_url:kt,output_file_url:rt,expected_output_file_url:Qe}=Fe;let Pt=null;const zt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(He){case fe.h.NOMATCH:Pt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!At&&a.createElement(ft,{className:"mb10",value:mt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(kt,mt)},mt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!At&&a.createElement(ft,{className:"mb10",value:Ke&&ie.Base64.decode(Ke)||""}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(rt,Ke)},Ke)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!At&&a.createElement(ft,{className:"mb10",value:_t&&ie.Base64.decode(_t)||""}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Qe,_t)},_t)));break;case fe.h.EXECUTEFAILURE:Pt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(le.Z,{value:mt,style:zt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(kt,mt)},mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(st)));break;case fe.h.COMPILEFAILURE:Pt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(le.Z,{value:mt,style:zt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(kt,mt)},mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(st)));break;case fe.h.PODFAILURE:Pt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:Pt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Pt," ")}function pt(Fe){const{status:He,error_msg:st,execute_time:Ke,output:mt,input:_t,expected_output:At,is_file:kt,input_file_url:rt,output_file_url:Qe,expected_output_file_url:Pt}=Fe;let zt=null;switch(He){case fe.h.OK:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ke,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(mt)));break;case fe.h.NOMATCH:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,_t)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",mt&&ie.Base64.decode(mt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",At&&ie.Base64.decode(At)));break;case fe.h.EXECUTEFAILURE:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,_t)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(st)));break;case fe.h.COMPILEFAILURE:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,_t)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(st)));break;case fe.h.PODFAILURE:zt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:zt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",zt," ")}var we=({id:Fe,is_file:He,input:st,debuging:Ke,submitting:mt,executingMessage:_t,debugResult:At,onChangeInput:kt,onDebugCode:rt,onSubmitCode:Qe})=>{const[Pt,zt]=(0,ee.useReducer)(Le,De),{visible:Ct,tabIndex:sn}=Pt;(0,ee.useEffect)(()=>{zt({type:0,payload:!1})},[Fe]);function Ze(Gt){let lt=Gt.target.id;zt({type:1,payload:lt})}function St(){zt({type:0,payload:!Ct})}const xt=(0,ee.useMemo)(()=>{if(At){const{status:Gt}=At;return a.createElement(a.Fragment,null,pt(At))}return null},[At]);function ln(){zt({type:0,payload:!0}),zt({type:1,payload:"1"}),rt()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Ct?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(ae.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(ye,{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:He?"":st,onChange:kt}),rightNode:Ke?a.createElement(ue.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):At?xt: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 ${Ct?"up":""}`,onClick:St},Ct?a.createElement(ve.Z,null):a.createElement(Se.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:Ke,onClick:ln},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:mt,disabled:mt,onClick:()=>{zt({type:0,payload:!1}),Qe()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},63342:function(ht,Ve,te){"use strict";te.r(Ve),te.d(Ve,{default:function(){return Ue}});var ee=te(59301),ge=te(10906),be=te(76618),ve=te(76560),Se=te(31797),fe=te(8591),ie=te(43418),ue=te(71418),le=te(57809),me=te(59205),ae=te(72015),he=te(90524),oe=te(87169),ne=te(43428),a=te(51124),y=te(75790),E=te(89613),b=te(64536),x=te(59301),z=Object.defineProperty,re=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,De=(Ce,Me,Re)=>Me in Ce?z(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Ee=(Ce,Me)=>{for(var Re in Me||(Me={}))_e.call(Me,Re)&&De(Ce,Re,Me[Re]);if(ce)for(var Re of ce(Me))ye.call(Me,Re)&&De(Ce,Re,Me[Re]);return Ce},je=(Ce,Me)=>re(Ce,se(Me));const Le={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var ft=(Ce=>(Ce[Ce.set_font_size=0]="set_font_size",Ce[Ce.set_theme=1]="set_theme",Ce[Ce.on_tab_to_space=2]="on_tab_to_space",Ce[Ce.set_show_editor_setting=3]="set_show_editor_setting",Ce))(ft||{});function Xe(Ce,Me){switch(Me.type){case 3:return je(Ee({},Ce),{showEditorSetting:Me.payload});case 1:return je(Ee({},Ce),{theme:Me.payload});case 0:return je(Ee({},Ce),{fontSize:Me.payload});case 2:return je(Ee({},Ce),{tabToSpace:Me.payload});default:throw new Error}}var pt=({isLoading:Ce,value:Me,onChange:Re,language:Je,onUpdateCode:qe,ActionBarRender:nt=et=>x.createElement(we,{onShowCodeSetting:et})})=>{const[et,dt]=(0,ee.useReducer)(Xe,Le),{theme:gt,fontSize:vt,showEditorSetting:Wt,tabToSpace:Nt}=et,Vt=(0,ee.useRef)(),Ot=(0,ee.useRef)(),Yt={onFontSizeChange:vn=>{dt({type:0,payload:vn}),(0,E.t)("cmFontSize",vn)},tabToSpace:Nt,cmFontSize:vt,className:"oj",cmCodeMode:gt,onTabToSpace:vn=>{dt({type:2,payload:vn}),(0,E.t)("cmTabToSpace",vn)},onCodeModeChange:vn=>{dt({type:1,payload:vn}),(0,E.t)("cmCodeMode",vn)}};function Qt(){dt({type:3,payload:!1})}function _n(){dt({type:3,payload:!0})}const an={value:Me,language:Je,theme:gt,height:"calc(100% - 56px)",options:{fontSize:vt,insertSpaces:Nt},onChange:vn=>{Re(vn),Ot.current=vn,clearTimeout(Vt.current),Vt.current=setTimeout(()=>{qe(Ot.current)},1e4)},onEditBlur:vn=>{Ot.current&&qe(Ot.current)}};return x.createElement(ee.Fragment,null,x.createElement("div",{className:"code-panel-container"},nt(_n),!Ce&&x.createElement(a.ZP,Ee({},an))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Wt,onClose:Qt},x.createElement(b.Z,Ee({},Yt)))))};function we({onShowCodeSetting:Ce}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Ce},x.createElement("i",{className:"iconfont icon-shezhi"})))}var Fe=te(24334),He=te(12085),st=te(40148),Ke=te(92832),mt=te(78241),_t=te(3113);const{TextArea:At}=Ke.default,kt=5e3;var rt=({callback:Ce,onCancel:Me,notes:Re})=>{function Je(qe){Ce(qe)}return ee.createElement(mt.default,{className:"note-form-panel",onFinish:Je,initialValues:{notes:Re}},ee.createElement(mt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:kt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${kt}`}]},ee.createElement(At,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),ee.createElement(mt.default.Item,{style:{textAlign:"right"}},ee.createElement(_t.ZP,{type:"ghost",onClick:Me,style:{marginRight:10}}," \u53D6\u6D88 "),ee.createElement(_t.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},Qe={"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"},Pt={pagination:"pagination___npPu7",info:"info___aRH6C"},zt=te(1710),Ct=te(58421),sn=te(58617),Ze=te(81953),St=te(49162),xt=te(49661),ln=te(61186),Gt=te.n(ln);const{Column:lt}=zt.default;var ct=({submitResult:Ce,submitting:Me,submitRecords:Re,page:Je,onPageChange:qe,topicId:nt})=>{const{status:et,id:dt,input:gt,output:vt,expected_output:Wt,is_file:Nt,input_file_url:Vt,output_file_url:Ot,expected_output_file_url:Yt,error_msg:Qt}=Ce||{},{records:_n,records_count:an}=Re||{},vn=(0,ve.useParams)();function On(){Nt?(0,xt.vQ)(Fe.Base64.decode(Qt)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,xt.vQ)(Fe.Base64.decode(vt)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return ee.createElement(ue.Z,{spinning:Me,tip:"\u8BC4\u6D4B\u4E2D...",indicator:ee.createElement(sn.Z,{style:{fontSize:24},spin:!0})},dt?ee.createElement(ee.Fragment,null,ee.createElement("ul",{className:Pt.info},ee.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",ee.createElement("span",{className:et===St.h.OK?"c-green":"c-red"},st.Im[et])),ee.createElement("li",{className:Pt.error},ee.createElement("a",{onClick:On},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",ee.createElement(Ze.Z,null)," ")),ee.createElement("li",null,ee.createElement(ve.Link,{to:`/problems/${nt}/record-detail/${dt}?backId=${vn==null?void 0:vn.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),et!==St.h.OK?ee.createElement(ee.Fragment,null,ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),ee.createElement("pre",null,!Nt&&gt,Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(Vt,gt)},gt)),ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,(et===4||et===5)&&Fe.Base64.decode(Qt),et!=4&&et!=5&&(Nt?ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(Ot,vt)},vt):Fe.Base64.decode(vt))),ee.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,!Nt&&Fe.Base64.decode(Wt),Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(Yt,Wt)},Wt))):null):null,(_n==null?void 0:_n.length)>0?ee.createElement(zt.default,{dataSource:_n,rowKey:"id",pagination:!1},ee.createElement(lt,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(Jt,hn)=>ee.createElement("span",null," ",Gt()(Jt).format("YYYY-MM-DD HH:mm:ss"))}),ee.createElement(lt,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(Jt,hn)=>{var Tt;return ee.createElement(ve.Link,{className:Jt===0?"c-green":"c-red",to:`/problems/${nt}/record-detail/${hn.id}?backId=${vn==null?void 0:vn.save_identifier}`},(Tt=st.Im[Jt])==null?void 0:Tt.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),ee.createElement(lt,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),ee.createElement(lt,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),ee.createElement(lt,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,an>15?ee.createElement(Ct.Z,{className:Pt.pagination,current:Je,pageSize:15,total:an,onChange:qe}):null)},Ge=te(57884),Ne=te(12563),tt=te(81327),Et={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Ie=te(7664),Oe=te(59301);const We={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var ke=({hack:Ce,onTriggerPraise:Me,toDiscuss:Re})=>{const{language:Je,difficulty:qe,time_limit:nt,username:et,user_path:dt,user_praise:gt,comments_count:vt,praises_count:Wt,description:Nt,pass_count:Vt,submit_count:Ot}=Ce,Yt=(0,ve.useLocation)();console.log(Ce.language,"language");const Qt=We[qe];return Oe.createElement(Oe.Fragment,null,Oe.createElement("ul",{className:Et.info},Oe.createElement("li",null,"\u96BE\u5EA6\uFF1A",Oe.createElement(Ne.default,{color:Qt==null?void 0:Qt.color},Qt==null?void 0:Qt.name)),Oe.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Oe.createElement("b",null,nt,"\u79D2"))),Oe.createElement(Ie.Z,{value:Nt,className:Et.desc}),Oe.createElement("ul",{className:Et["commit-info"]},Oe.createElement("li",null,Oe.createElement(tt.Z,{size:4},Oe.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Oe.createElement("b",null,Vt))),Oe.createElement("li",null,Oe.createElement(tt.Z,{size:4},Oe.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Oe.createElement("b",null,Ot))," "),Oe.createElement("li",{style:{flex:"1 0 0"}}),Oe.createElement("li",null,Oe.createElement(tt.Z,{size:4},Oe.createElement("i",{className:"iconfont icon-huifu1",onClick:Re})," ",Oe.createElement("b",null,vt))," ")))},ze=te(33796),it=Object.defineProperty,It=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Lt=(Ce,Me,Re)=>Me in Ce?it(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Ht=(Ce,Me)=>{for(var Re in Me||(Me={}))Dt.call(Me,Re)&&Lt(Ce,Re,Me[Re]);if(It)for(var Re of It(Me))jt.call(Me,Re)&&Lt(Ce,Re,Me[Re]);return Ce};const yt=Ce=>React.createElement("svg",Ht({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Ce),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 fn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",un=te(82093);function bt(Ce){return(0,un.U2)("comments.json",Ce)}function Sn(Ce){return(0,un.v_)(`/discusses/${Ce}/plus.json`,{container_type:"Discuss",type:1})}function pn(Ce){return(0,un.v_)("comments/reply.json",Ce)}function Fn(Ce){return(0,un.v_)("comments.json",Ce)}function xn(Ce){return(0,un.v_)(`comments/${Ce==null?void 0:Ce.id}/hidden.json`,Ce)}function Kn(Ce){return(0,un.IV)(`comments/${Ce==null?void 0:Ce.id}.json`)}var er=te(46541),Vn=te(34055);function Yn({author:Ce}){return ee.createElement("a",{href:`/users/${Ce.login}`,target:"_blank"},ee.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${he.Z.IMG_SERVER}/images/${Ce.image_url}`,width:"50"}))}function pr({data:Ce,index:Me,parentDiscussIndex:Re,user:Je,onSetActionType:qe}){const{author:nt,can_delete:et,content:dt,id:gt,time:vt}=Ce;function Wt(){qe({id:gt,index:Me,type:"delete-discuss",parentDiscussIndex:Re,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Nt=Je.admin||et||nt.user_id===Je.user_id;return ee.createElement("div",{className:"discuss-item-container second-discuss "},ee.createElement(Yn,{author:nt}),ee.createElement("section",null,ee.createElement("div",{className:"discuss-info"},ee.createElement("a",{href:`/users/${nt.login}`,target:"_blank"},nt.name),ee.createElement("span",{className:"grey"},vt),ee.createElement("div",{className:"btn-group",style:{marginBottom:0}},Nt?ee.createElement("a",{onClick:Wt,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null)),ee.createElement(Ie.Z,{className:"discuss-content",value:dt})))}var vr=({user:Ce,data:Me,index:Re,onPlusDiscuss:Je,onSetActionType:qe,activeDiscussIndex:nt,onReplyDiscuss:et,onSetActiveDiscussIndex:dt})=>{const{content:gt,children:vt,hidden:Wt,id:Nt,praise_count:Vt,time:Ot,user_praise:Yt,can_delete:Qt,author:_n}=Me;console.log(Qt&&(!vt||vt.length==0),"children22");function an(){dt(Nt)}function vn(){Je(Nt,!Yt,Re)}function On(){qe({id:Nt,index:Re,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Jt(){qe({id:Nt,index:Re,params:{hidden:Wt?"0":"1"},type:"hidden-discuss",message:Wt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const hn=Ce.admin||Ce.user_id===_n.user_id;return ee.createElement("div",{className:"discuss-item-container",key:Nt},ee.createElement(Yn,{author:_n}),ee.createElement("section",null,ee.createElement("div",{className:"discuss-info"},ee.createElement("a",{href:`/users/${_n.login}`,target:"_blank"}," ",_n.name," "),ee.createElement("span",{className:"grey"},Ot)),ee.createElement(Ie.Z,{className:"discuss-content",value:gt}),vt&&vt.length>0?ee.createElement("div",{className:"reply-discuss-container"},vt.map((Tt,rn)=>ee.createElement(pr,{key:Tt.id,data:Tt,index:rn,user:Ce,onSetActionType:qe,parentDiscussIndex:Re}))):null,ee.createElement("div",{className:"btn-group"},(0,Vn.Ny)()?ee.createElement("a",{onClick:Jt,title:Wt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},ee.createElement("i",{className:Wt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Qt&&(!vt||vt.length==0)?ee.createElement("a",{onClick:On,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null,ee.createElement("a",{onClick:an,title:"\u56DE\u590D"}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," "),ee.createElement("a",{onClick:vn,className:Yt?"c-orange":""},ee.createElement("i",{className:Yt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),ee.createElement("span",null,Vt||""))),ee.createElement(er.Z,{id:Nt,activeDiscussIndex:nt,onReplyDiscuss:et})))},tn=te(35584),Xn=te(89389),sr=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())}),Wn=({user_praise:Ce,praise_count:Me,praisePlus:Re,onCreateDiscuss:Je,discuss_count:qe})=>{const[nt,et]=(0,ee.useState)(!1),[dt,gt]=(0,ee.useState)("");function vt(Ot){gt(Ot)}function Wt(){et(!0)}function Nt(){et(!1)}function Vt(){return sr(this,null,function*(){Je(dt),gt(""),et(!1)})}return ee.createElement("div",{className:`dis-input-editor-container ${nt?"active":""} `},ee.createElement("div",{className:nt?"text-area hide":"text-area"},ee.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Wt}),ee.createElement("a",{style:{alignItems:"center"}}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",qe," "),ee.createElement("a",{className:"c-light-black",onClick:Re,style:{alignItems:"center"},title:Ce?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ee.createElement("i",{className:`mr3 ${Ce?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),Me?ee.createElement("span",null,Me):"")),nt?ee.createElement("div",{className:"input-mask",onClick:Nt}):null,ee.createElement("div",{className:nt?"md-container":"md-container hide"},ee.createElement(Xn.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:dt,height:240,onChange:vt}),ee.createElement("div",{className:"tip-container",onClick:Nt},ee.createElement("a",{className:"btn-send",onClick:Vt}," \u53D1\u9001 "))))},lr=Object.defineProperty,Or=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,Xr=(Ce,Me,Re)=>Me in Ce?lr(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,$t=(Ce,Me)=>{for(var Re in Me||(Me={}))Nr.call(Me,Re)&&Xr(Ce,Re,Me[Re]);if(Er)for(var Re of Er(Me))cr.call(Me,Re)&&Xr(Ce,Re,Me[Re]);return Ce},de=(Ce,Me)=>Or(Ce,Rr(Me)),pe=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var xe=(Ce=>(Ce[Ce.GET_DISCUSSES=0]="GET_DISCUSSES",Ce[Ce.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Ce[Ce.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Ce[Ce.PLUS_DISCUSS=3]="PLUS_DISCUSS",Ce[Ce.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Ce[Ce.SET_PAGE=5]="SET_PAGE",Ce[Ce.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Ce))(xe||{});function Be(Ce,Me){switch(Me.type){case 6:return de($t({},Ce),{loading:!0});case 0:return $t($t({},Ce),Me.payload);case 1:return $t($t({},Ce),Me.payload);case 4:return $t($t({},Ce),Me.payload);case 3:return $t($t({},Ce),Me.payload);case 5:return $t($t({},Ce),Me.payload);case 2:return $t($t({},Ce),Me.payload);default:throw new Error}}var ot=({user:Ce,identifier:Me,hack:Re,onTriggerPraise:Je,setDiscussTotal:qe})=>{const[nt,et]=(0,ee.useReducer)(Be,Pe),{loading:dt,page:gt,data:vt,count:Wt,actionType:Nt,activeDiscussIndex:Vt}=nt;console.log("---",nt);const Ot=(0,ee.useCallback)(()=>pe(void 0,null,function*(){et({type:6});const Tt=yield bt({container_type:"Practice",container_identifier:Me,limit:10,page:gt}),{comments:rn,disscuss_count:dn}=Tt;et({type:0,payload:{data:rn,count:dn,loading:!1}}),qe(dn)}),[gt,Me]);(0,ee.useEffect)(()=>{Ot()},[Me,gt]);function Yt(Tt){et({type:5,payload:{page:Tt}})}function Qt(Tt){et({type:4,payload:{actionType:Tt}})}function _n(Tt){et(Vt===Tt?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Tt}})}function an(Tt,rn,dn){return pe(this,null,function*(){try{const Dn=yield Sn(Tt);vt[dn].user_praise=rn,vt[dn].praise_count=Dn.praise_count,et({type:3,payload:{data:[...vt]}})}catch(Dn){console.log(Dn)}})}function vn(){return pe(this,null,function*(){const{id:Tt,params:rn,type:dn,index:Dn,parentDiscussIndex:qn}=Nt;dn==="hidden-discuss"&&(console.log(rn,"params"),yield xn($t({id:Tt,container_type:"Practice",container_identifier:Me},rn)),qn?vt[qn].children[Dn].hidden=rn.hidden==1:vt[Dn].hidden=rn.hidden==1,et({type:4,payload:{actionType:null,data:[...vt]}})),dn==="delete-discuss"&&(yield Kn({id:Tt,container_type:"Practice",container_identifier:Me}),et({type:4,payload:{actionType:null}}),yield Ot())})}function On(){et({type:4,payload:{actionType:null}})}function Jt(Tt,rn){return pe(this,null,function*(){try{yield pn({container_type:"Practice",container_identifier:Me,comments:{content:rn,parent_id:Tt}}),Ot()}catch(dn){console.log(dn)}})}function hn(Tt){return pe(this,null,function*(){et({type:6}),yield Fn({comments:{content:Tt},container_type:"Practice",container_identifier:Me}),Ot()})}return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"discuss-panel"},vt.length===0?ee.createElement(Ge.Z,null):ee.createElement(ue.Z,{spinning:dt},vt.map((Tt,rn)=>ee.createElement(vr,{onReplyDiscuss:Jt,onPlusDiscuss:an,onSetActiveDiscussIndex:_n,onSetActionType:Qt,data:Tt,index:rn,user:Ce,activeDiscussIndex:Vt}))),Wt>10?ee.createElement("div",{className:"pagination-container mt10 mb10"},ee.createElement(Ct.Z,{showQuickJumper:!0,onChange:Yt,current:gt,total:Wt,showTotal:Tt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Tt),"\u6761\u6570\u636E")})):null),ee.createElement(Wn,{user_praise:Re.user_praise,praise_count:Re.praises_count,praisePlus:Je,discuss_count:Re.comments_count,onCreateDiscuss:hn}),ee.createElement(y.Z,null,ee.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!Nt,onOk:vn,onCancel:On},ee.createElement("p",null,Nt?Nt.message:"")),ee.createElement(tn.Z,null)))},ut={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"},nn={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"},Zt=Object.defineProperty,qt=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,$e=(Ce,Me,Re)=>Me in Ce?Zt(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Mt=(Ce,Me)=>{for(var Re in Me||(Me={}))bn.call(Me,Re)&&$e(Ce,Re,Me[Re]);if(qt)for(var Re of qt(Me))Rt.call(Me,Re)&&$e(Ce,Re,Me[Re]);return Ce};const Ft=Ce=>React.createElement("svg",Mt({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Ce),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 wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Bt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Nn=(Ce,Me,Re)=>Me in Ce?Bt(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Un=(Ce,Me)=>{for(var Re in Me||(Me={}))Xt.call(Me,Re)&&Nn(Ce,Re,Me[Re]);if(Kt)for(var Re of Kt(Me))yn.call(Me,Re)&&Nn(Ce,Re,Me[Re]);return Ce};const cn=Ce=>React.createElement("svg",Un({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),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 Ln="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Jn=Object.defineProperty,rr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Lr=(Ce,Me,Re)=>Me in Ce?Jn(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,dr=(Ce,Me)=>{for(var Re in Me||(Me={}))fr.call(Me,Re)&&Lr(Ce,Re,Me[Re]);if(rr)for(var Re of rr(Me))Ut.call(Me,Re)&&Lr(Ce,Re,Me[Re]);return Ce};const Qr=Ce=>React.createElement("svg",dr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),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 Sr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",on=Object.defineProperty,wn=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,ir=(Ce,Me,Re)=>Me in Ce?on(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,ar=(Ce,Me)=>{for(var Re in Me||(Me={}))Hn.call(Me,Re)&&ir(Ce,Re,Me[Re]);if(wn)for(var Re of wn(Me))mn.call(Me,Re)&&ir(Ce,Re,Me[Re]);return Ce};const Br=Ce=>React.createElement("svg",ar({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),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 Fr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Zr=Object.defineProperty,Co=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Ao=(Ce,Me,Re)=>Me in Ce?Zr(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,fo=(Ce,Me)=>{for(var Re in Me||(Me={}))So.call(Me,Re)&&Ao(Ce,Re,Me[Re]);if(Co)for(var Re of Co(Me))Mo.call(Me,Re)&&Ao(Ce,Re,Me[Re]);return Ce};const Bo=Ce=>React.createElement("svg",fo({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Ce),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 _o="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Io=({style:Ce={},onClick:Me,onAssist:Re,onHide:Je,data:qe,active:nt,showLine:et})=>ee.createElement(ee.Fragment,null,ee.createElement("div",{className:nt===(qe==null?void 0:qe.id)?`${nn.list} ${nn.active}`:nn.list,style:Ce,onClick:()=>Me(qe)},(qe==null?void 0:qe.video)&&ee.createElement("div",{className:nn.left},ee.createElement("img",{src:qe==null?void 0:qe.video_cover}),ee.createElement("div",null,ee.createElement("img",{src:wt}),ee.createElement("span",null,qe==null?void 0:qe.video_duration)),ee.createElement("div",{className:nn.mask})),ee.createElement("div",{className:nn.right},ee.createElement("div",{className:nn.name},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(qe==null?void 0:qe.image_url),width:30,height:30}),ee.createElement("div",{title:qe==null?void 0:qe.name,className:nn.title},qe==null?void 0:qe.name),(qe==null?void 0:qe.is_authority)&&ee.createElement("div",{className:nn.b},"\u5B98\u65B9"),(qe==null?void 0:qe.is_excellent)&&ee.createElement("div",{className:nn.a},"\u7CBE\u9009")),ee.createElement("div",{className:nn.des},ee.createElement(Ie.Z,{showLines:2,showTextOnly:!0,value:(qe==null?void 0:qe.content)||"\u6682\u65E0\u5185\u5BB9"})),ee.createElement("div",{className:nn.tag},ee.createElement("span",{className:"current",onClick:dt=>{dt.stopPropagation(),Re(qe)}},ee.createElement("img",{src:qe!=null&&qe.user_liker?Sr:Ln}),ee.createElement("span",{style:{color:qe!=null&&qe.user_liker?"#0152d9":"#656f87"}},qe==null?void 0:qe.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Fr}),ee.createElement("span",null,qe==null?void 0:qe.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:_o}),ee.createElement("span",null,qe==null?void 0:qe.viewed_count)),(0,Vn.Ny)()&&ee.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:dt=>{dt.stopPropagation(),Je(qe)}},qe!=null&&qe.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),et&&ee.createElement("div",{className:nn.line})),jr={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"},no=te(6848),Oo=Object.defineProperty,Wr=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,ko=(Ce,Me,Re)=>Me in Ce?Oo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Kr=(Ce,Me)=>{for(var Re in Me||(Me={}))co.call(Me,Re)&&ko(Ce,Re,Me[Re]);if(Wr)for(var Re of Wr(Me))yo.call(Me,Re)&&ko(Ce,Re,Me[Re]);return Ce};const ho=Ce=>React.createElement("svg",Kr({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Ce),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 wo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",mo=Object.defineProperty,oi=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Ro=(Ce,Me,Re)=>Me in Ce?mo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,xo=(Ce,Me)=>{for(var Re in Me||(Me={}))ti.call(Me,Re)&&Ro(Ce,Re,Me[Re]);if(oi)for(var Re of oi(Me))ni.call(Me,Re)&&Ro(Ce,Re,Me[Re]);return Ce};const Lo=Ce=>React.createElement("svg",xo({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Ce),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 Xo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Zo=Object.defineProperty,gi=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,In=(Ce,Me,Re)=>Me in Ce?Zo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Gn=(Ce,Me)=>{for(var Re in Me||(Me={}))Zn.call(Me,Re)&&In(Ce,Re,Me[Re]);if(gi)for(var Re of gi(Me))Cn.call(Me,Re)&&In(Ce,Re,Me[Re]);return Ce};const yr=Ce=>React.createElement("svg",Gn({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Ce),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 Dr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",zr=te(76346),eo=Object.defineProperty,oo=Object.defineProperties,io=Object.getOwnPropertyDescriptors,Go=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,li=(Ce,Me,Re)=>Me in Ce?eo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,ci=(Ce,Me)=>{for(var Re in Me||(Me={}))Po.call(Me,Re)&&li(Ce,Re,Me[Re]);if(Go)for(var Re of Go(Me))fi.call(Me,Re)&&li(Ce,Re,Me[Re]);return Ce},Ei=(Ce,Me)=>oo(Ce,io(Me)),Hr=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())}),Gr=({onClose:Ce,onOk:Me,identifier:Re,active:Je})=>{var qe,nt;const[et]=mt.default.useForm(),[dt,gt]=(0,ee.useState)({}),[vt,Wt]=(0,ee.useState)(!1),[Nt,Vt]=(0,ee.useState)(!1),[Ot,Yt]=(0,ee.useState)([]),Qt=(0,Vn.eY)(),_n=(0,ve.useParams)(),an=(0,ee.useRef)();(0,ee.useEffect)(()=>{Je&&vn()},[Je]);const vn=()=>Hr(void 0,null,function*(){var gn,Tn,kn,Qn,Ur,tr,Yr,_r,Ar,Tr;const jn=yield(0,me.M3)(Re,{active:Je});if((jn==null?void 0:jn.status)===0){const En={name:(gn=jn==null?void 0:jn.data)==null?void 0:gn.name,content:(Tn=jn==null?void 0:jn.data)==null?void 0:Tn.content};et.setFieldsValue(En),gt(En),(Qn=(kn=jn==null?void 0:jn.data)==null?void 0:kn.videos)!=null&&Qn[0]&&Yt([{video_id:(Yr=(tr=(Ur=jn==null?void 0:jn.data)==null?void 0:Ur.videos)==null?void 0:tr[0])==null?void 0:Yr.video_id,name:(Tr=(Ar=(_r=jn==null?void 0:jn.data)==null?void 0:_r.videos)==null?void 0:Ar[0])==null?void 0:Tr.title,loaded:100}])}}),On=(gn,Tn)=>{gt(ci({},Tn))},Jt=gn=>Hr(void 0,null,function*(){const Tn={videos:Ot,articles:gn};Vt(!0);let kn;Je?(Tn.active=Je,kn=yield(0,me.gu)(Re,Tn)):kn=yield(0,me.bx)(Re,Tn),(kn==null?void 0:kn.status)===0&&(console.log(Je||(kn==null?void 0:kn.id),44),Me(Je||(kn==null?void 0:kn.id))),Vt(!1)}),hn=(gn,Tn)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ee.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Tn?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Tn?Yt([]):(an.current.cancel(),Yt([]))}})},Tt=()=>ee.createElement(zr.Z,Ei(ci({},Pn),{ref:an}),ee.createElement("div",{className:jr.main},ee.createElement("img",{src:wo,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),rn=gn=>ee.createElement("div",{className:jr.mainLoading},ee.createElement("div",{className:jr.proWarp},ee.createElement("div",{className:jr.pro},ee.createElement("div",{style:{width:gn}})),ee.createElement("span",null,gn||0,"%")),ee.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),ee.createElement("div",{className:jr.tip},ee.createElement(no.Z,{getPopupContainer:Tn=>Tn.parentNode,title:ee.createElement("div",null,ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.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"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},ee.createElement("img",{src:Dr,alt:""})))),dn=gn=>ee.createElement("div",{className:jr.mainSucceed},ee.createElement("img",{src:Xo,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),ee.createElement("div",{className:jr.tip},ee.createElement(no.Z,{getPopupContainer:Tn=>Tn.parentNode,title:ee.createElement("div",null,ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.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"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},ee.createElement("img",{src:Dr,alt:""}))),ee.createElement("div",{className:jr.del,onClick:()=>hn(gn.name,gn.loaded==100)},ee.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Dn=()=>ee.createElement(ee.Fragment,null,Ot==null?void 0:Ot.map((gn,Tn)=>ee.createElement(ee.Fragment,{key:Tn},gn.loaded==100?dn(gn):rn(gn.loaded)))),qn=()=>{ie.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:Ce})},Pn={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:gn=>{const kn=gn.name.toLowerCase();return kn&&kn.indexOf(".avi")==-1&&kn.indexOf(".flv")==-1&&kn.indexOf(".f4v")==-1&&kn.indexOf(".m4v")==-1&&kn.indexOf(".mov")==-1&&kn.indexOf(".mp4")==-1&&kn.indexOf(".rmvb")==-1&&kn.indexOf(".swf")==-1&&kn.indexOf(".webm")==-1&&kn.indexOf(".wmv")==-1?(fe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):gn.size>1024*1024*1024?(fe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Ot!=null&&Ot.find(Qn=>Qn.name===gn.name)?(fe.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:gn=>{Yt([{name:gn.filename,loaded:0}])},onComplete:gn=>{Yt([{name:gn.filename,loaded:gn.percent,video_id:gn.id}])},onError:()=>{Yt([])},onProgress:gn=>{Yt([{name:gn.filename,loaded:gn.percent}])},chunkSize:1024*1024*2,options:{user_id:(qe=Qt==null?void 0:Qt.userInfo)==null?void 0:qe.user_id}},Mn=Ot==null?void 0:Ot.length;return ee.createElement("div",{className:jr.listForm},ee.createElement("header",null,Je?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),ee.createElement("section",{className:jr.scroll,id:"sss"},ee.createElement("div",{className:jr.formWrap}," ",ee.createElement(mt.default,{form:et,scrollToFirstError:!0,layout:"vertical",onValuesChange:On,onFinish:Jt},ee.createElement(mt.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"}]},ee.createElement(Ke.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((nt=dt.name)==null?void 0:nt.length)||0}/60`})),ee.createElement(mt.default.Item,{name:"content",label:"\u5185\u5BB9:"},ee.createElement(Xn.Z,{defaultValue:dt.content||"",watch:!0})))),ee.createElement("div",{className:jr.upload},Mn?Dn():Tt())),ee.createElement("div",{className:jr.btns},ee.createElement(_t.ZP,{onClick:qn,type:"primary",ghost:!0},"\u5173\u95ED"),ee.createElement(_t.ZP,{loading:Nt,disabled:vt,onClick:()=>et.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},lo={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"},Fo=te(61621),ri=Object.defineProperty,Qo=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable,Si=(Ce,Me,Re)=>Me in Ce?ri(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,_i=(Ce,Me)=>{for(var Re in Me||(Me={}))Jo.call(Me,Re)&&Si(Ce,Re,Me[Re]);if(Qo)for(var Re of Qo(Me))Uo.call(Me,Re)&&Si(Ce,Re,Me[Re]);return Ce};const yi=Ce=>React.createElement("svg",_i({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Ce),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 ta="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",wa=Object.defineProperty,xa=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,na=(Ce,Me,Re)=>Me in Ce?wa(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,ra=(Ce,Me)=>{for(var Re in Me||(Me={}))La.call(Me,Re)&&na(Ce,Re,Me[Re]);if(xa)for(var Re of xa(Me))wi.call(Me,Re)&&na(Ce,Re,Me[Re]);return Ce};const Da=Ce=>React.createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ce),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 Ma="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Aa=Object.defineProperty,Ni=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Zi=(Ce,Me,Re)=>Me in Ce?Aa(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,aa=(Ce,Me)=>{for(var Re in Me||(Me={}))oa.call(Me,Re)&&Zi(Ce,Re,Me[Re]);if(Ni)for(var Re of Ni(Me))ia.call(Me,Re)&&Zi(Ce,Re,Me[Re]);return Ce};const ds=Ce=>React.createElement("svg",aa({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Ce),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 sa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Wi={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"},la=te(95237),Bi=te(43604),ii={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"},Ia=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())});const ca=({id:Ce,cb:Me})=>{const[Re,Je]=(0,ee.useState)("");return ee.createElement("aside",{className:"mt10"},ee.createElement(Xn.Z,{defaultValue:Re,id:"writeForumsReviewId",onChange:qe=>{Je(qe)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bi.Z,{flex:"1"}),ee.createElement(Bi.Z,null,ee.createElement(_t.ZP,{type:"primary",size:"middle",onClick:()=>Ia(void 0,null,function*(){Re===""?fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):Me(Ce,Re)})},"\u53D1\u9001"))))},Oa=({data:Ce})=>{var Me;return ee.createElement("div",{className:ii.thirdlyLevelDiscuss},ee.createElement("span",{className:"c-grey-333"},ee.createElement("span",{className:"font 14 c-light-primary"},(Me=Ce==null?void 0:Ce.author)==null?void 0:Me.name),"@",ee.createElement("span",{className:"font 14 c-light-primary"},Ce==null?void 0:Ce.parent_name),":"),ee.createElement(Ie.Z,{value:Ce==null?void 0:Ce.content}))},Ra=({data:Ce,onReplyDiscuss:Me,thirdlyReply:Re,setThirdlyReply:Je})=>{var qe,nt,et,dt;const gt=(0,Vn.eY)();return console.log(gt,"user"),ee.createElement("div",{className:ii.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((qe=Ce==null?void 0:Ce.author)==null?void 0:qe.image_url)}),ee.createElement("div",{className:ii.wrap},ee.createElement("div",{className:"font14",style:{marginBottom:6}},ee.createElement("span",{className:"c-grey-333"},(nt=Ce==null?void 0:Ce.author)==null?void 0:nt.name),(gt==null?void 0:gt.login)!==((et=Ce==null?void 0:Ce.author)==null?void 0:et.login)&&ee.createElement("span",{onClick:()=>Je(Ce==null?void 0:Ce.id),className:"c-grey-999 current",style:{float:"right"}},ee.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),ee.createElement("span",null,"\u56DE\u590D"))),ee.createElement(Ie.Z,{value:Ce==null?void 0:Ce.content}),(dt=Ce==null?void 0:Ce.children)==null?void 0:dt.map(vt=>ee.createElement(Oa,{key:vt.id,data:vt})),Re===(Ce==null?void 0:Ce.id)&&ee.createElement("div",null,ee.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:Me}),ee.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>Je(null),className:"c-light-primary current"},ee.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),ee.createElement("div",{className:ii.line})))};var Ki=({data:Ce,onReplyDiscuss:Me,secondReply:Re,setSecondReply:Je,thirdlyReply:qe,setThirdlyReply:nt,onPlusDiscuss:et})=>{var dt,gt,vt,Wt;const[Nt,Vt]=(0,ee.useState)(!1);return console.log(Ce,"data"),ee.createElement("div",{className:ii.discussItem},ee.createElement("div",{className:ii.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((dt=Ce==null?void 0:Ce.author)==null?void 0:dt.image_url)}),ee.createElement("div",{className:ii.wrap},ee.createElement("div",{className:"font14",style:{marginBottom:6}},ee.createElement("span",{className:"c-grey-333 mr30"},(gt=Ce==null?void 0:Ce.author)==null?void 0:gt.name),ee.createElement("span",{className:"c-grey-999"},Ce==null?void 0:Ce.time)),ee.createElement(Ie.Z,{value:Ce==null?void 0:Ce.content}),ee.createElement("div",{className:ii.btns},ee.createElement("div",{onClick:()=>et(Ce==null?void 0:Ce.id),className:Ce!=null&&Ce.user_praise?"c-light-primary":"c-grey-999"},ee.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),ee.createElement("span",null,Ce==null?void 0:Ce.praise_count)),ee.createElement("div",{onClick:()=>{var Ot;((Ot=Ce==null?void 0:Ce.children)==null?void 0:Ot.length)!==0&&(Je(null),Vt(!Nt))},style:{color:Nt?"#0152d9":"#999999"}},ee.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),ee.createElement("span",null,Nt?"\u6536\u8D77\u8BC4\u8BBA":(vt=Ce==null?void 0:Ce.children)==null?void 0:vt.length)),ee.createElement("div",{onClick:()=>{Vt(!1),Je(Re===(Ce==null?void 0:Ce.id)?null:Ce==null?void 0:Ce.id)},style:{color:Re===(Ce==null?void 0:Ce.id)?"#0152d9":"#999999"}},ee.createElement("i",{className:"iconfont icon-huifu3 mr3"}),ee.createElement("span",null,Re===(Ce==null?void 0:Ce.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Re===(Ce==null?void 0:Ce.id)&&ee.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:(Ot,Yt)=>{Me(Ot,Yt),Vt(!0)}}),Nt&&ee.createElement("div",{className:ii.secondLevelDiscuss},(Wt=Ce==null?void 0:Ce.children)==null?void 0:Wt.map(Ot=>ee.createElement(Ra,{thirdlyReply:qe,setThirdlyReply:nt,key:Ot.id,data:Ot,onReplyDiscuss:Me}))))))},ki=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())}),hi=({identifier:Ce,active:Me,onOk:Re})=>{const[Je,qe]=(0,ee.useState)(""),[nt,et]=(0,ee.useState)(1),[dt,gt]=(0,ee.useState)([]),[vt,Wt]=(0,ee.useState)(0),[Nt,Vt]=(0,ee.useState)(null),[Ot,Yt]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{Qt(1),et(1)},[Me]);const Qt=Jt=>ki(void 0,null,function*(){const hn=yield bt({container_type:"QuestionSolutionArticle",container_identifier:Me,limit:5,page:Jt});hn!=null&&hn.comments&&(gt((hn==null?void 0:hn.comments)||[]),et(Jt),Wt(hn==null?void 0:hn.disscuss_count))}),_n=()=>ki(void 0,null,function*(){if(Je===""){fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const Jt=yield Fn({comments:{content:Je},container_type:"QuestionSolutionArticle",container_identifier:Me});Jt!=null&&Jt.discuss&&(qe(""),Qt(nt),Re())}),an=(Jt,hn,Tt)=>ki(void 0,null,function*(){const rn=yield pn({container_type:"QuestionSolutionArticle",container_identifier:Me,comments:{content:hn,parent_id:Jt}});Vt(null),Yt(null),Qt(nt)}),vn=Jt=>ki(void 0,null,function*(){const hn=yield Sn(Jt);Qt(nt)}),On=Jt=>{et(Jt),Qt(Jt)};return ee.createElement("div",{className:Wi.discuss},ee.createElement("aside",{className:Wi.reply,style:{borderWidth:vt?1:0}},ee.createElement(Xn.Z,{defaultValue:Je,id:"writeForumsReviewId",onChange:Jt=>{qe(Jt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bi.Z,{flex:"1"}),ee.createElement(Bi.Z,null,ee.createElement(_t.ZP,{type:"primary",size:"middle",onClick:()=>_n()},"\u53D1\u9001")))),dt==null?void 0:dt.map(Jt=>ee.createElement(Ki,{secondReply:Nt,setSecondReply:Vt,thirdlyReply:Ot,setThirdlyReply:Yt,key:Jt.id,data:Jt,onReplyDiscuss:an,onPlusDiscuss:vn})),ee.createElement(Ct.Z,{className:Wi.pagination,showTotal:Jt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Jt),"\u6761\u6570\u636E"),current:nt,onChange:On,total:vt,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Vi=te(93152),Yi=Object.defineProperty,Fi=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable,Na=(Ce,Me,Re)=>Me in Ce?Yi(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Ba=(Ce,Me)=>{for(var Re in Me||(Me={}))da.call(Me,Re)&&Na(Ce,Re,Me[Re]);if(Fi)for(var Re of Fi(Me))ua.call(Me,Re)&&Na(Ce,Re,Me[Re]);return Ce},Xi=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())}),ka=({active:Ce,identifier:Me,onAssist:Re,onEdit:Je,onArticlesSkip:qe,onClose:nt,onOk:et,onDelete:dt,detailsIndex:gt,btnShowStatus:vt})=>{var Wt,Nt,Vt,Ot,Yt,Qt,_n,an,vn,On;const[Jt,hn]=(0,ee.useState)(!0),[Tt,rn]=(0,ee.useState)({});(0,ee.useEffect)(()=>{Ce&&dn()},[Ce,gt]);const dn=(Mn=!0)=>Xi(void 0,null,function*(){Mn&&hn(!0);const gn=yield(0,me.wO)(Me,{active:Ce});(gn==null?void 0:gn.status)===0&&rn((gn==null?void 0:gn.data)||{}),hn(!1)}),Dn=Mn=>Xi(void 0,null,function*(){const gn=yield(0,me.qe)(Me,Ba({active:Ce},Mn));(gn==null?void 0:gn.status)===0&&(dn(!1),et())}),qn=Mn=>Xi(void 0,null,function*(){(yield(0,me.Rg)(Me,{active:Mn==null?void 0:Mn.id})).status===0&&(dn(!1),et())}),en=Mn=>{ie.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:()=>dt(Mn)})},Pn=()=>{dn(!1),et()};return ee.createElement("div",{className:lo.listDetails},ee.createElement(Fo.Z,{className:"pt20 pl20 pr20",loading:Jt,active:!0,paragraph:{rows:5}},ee.createElement("div",{className:lo.head},ee.createElement("div",{className:lo.name},ee.createElement("div",{title:Tt==null?void 0:Tt.name,className:lo.title},Tt==null?void 0:Tt.name),(Tt==null?void 0:Tt.is_authority)&&ee.createElement("div",{className:lo.b},"\u5B98\u65B9"),(Tt==null?void 0:Tt.is_excellent)&&ee.createElement("div",{className:lo.a},"\u7CBE\u9009")),ee.createElement("div",{className:lo.tag},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(Tt==null?void 0:Tt.image_url)}),ee.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Tt==null?void 0:Tt.username),ee.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Gt()(Tt==null?void 0:Tt.created_at).format("YYYY-MM-DD")),ee.createElement("span",null,ee.createElement("img",{src:Ln}),ee.createElement("span",null,Tt==null?void 0:Tt.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Fr}),ee.createElement("span",null,Tt==null?void 0:Tt.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:_o}),ee.createElement("span",null,Tt==null?void 0:Tt.viewed_count)),ee.createElement("div",{className:lo.btn},((0,Vn.Ny)()||(Tt==null?void 0:Tt.is_self))&&ee.createElement(ee.Fragment,null,ee.createElement(_t.ZP,{onClick:()=>en(Tt),type:"primary",ghost:!0},"\u5220\u9664"),ee.createElement(_t.ZP,{onClick:()=>Je(Tt),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Vn.Ny)()&&ee.createElement(_t.ZP,{onClick:()=>Dn({is_authority:!(Tt!=null&&Tt.is_authority)}),type:"primary"},ee.createElement("img",{src:Ma}),Tt!=null&&Tt.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Vn.Ny)()&&ee.createElement(_t.ZP,{onClick:()=>Dn({is_excellent:!(Tt!=null&&Tt.is_excellent)}),type:"primary"},ee.createElement("img",{src:ta}),Tt!=null&&Tt.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),ee.createElement("div",{className:lo.scroll},((Nt=(Wt=Tt==null?void 0:Tt.videos)==null?void 0:Wt[0])==null?void 0:Nt.id)&&ee.createElement("div",{className:lo.video},ee.createElement(ue.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Ot=(Vt=Tt==null?void 0:Tt.videos)==null?void 0:Vt[0])!=null&&Ot.transcoded)},ee.createElement(Vi.Z,{poster:(Qt=(Yt=Tt==null?void 0:Tt.videos)==null?void 0:Yt[0])==null?void 0:Qt.cover_url,src:((an=(_n=Tt==null?void 0:Tt.videos)==null?void 0:_n[0])==null?void 0:an.play_url)||"",videoId:(On=(vn=Tt==null?void 0:Tt.videos)==null?void 0:vn[0])==null?void 0:On.id,logWatchHistory:()=>{}}))),ee.createElement(Ie.Z,{className:lo.html,value:(Tt==null?void 0:Tt.content)||""}),ee.createElement("div",{onClick:()=>qn(Tt),className:lo.g},ee.createElement("img",{className:"mr10",src:(Tt!=null&&Tt.user_liker,sa)}),ee.createElement("span",null,Tt==null?void 0:Tt.praises_count)),ee.createElement(hi,{onOk:Pn,active:Ce,identifier:Me})),ee.createElement("div",{className:lo.btns},ee.createElement(_t.ZP,{onClick:()=>nt(),type:"primary",ghost:!0},"\u5173\u95ED"),vt[0]&&ee.createElement(_t.ZP,{onClick:Mn=>qe(Mn,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),vt[1]&&ee.createElement(_t.ZP,{onClick:Mn=>qe(Mn,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},ji=Object.defineProperty,zi=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,fa=(Ce,Me,Re)=>Me in Ce?ji(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Qi=(Ce,Me)=>{for(var Re in Me||(Me={}))Hi.call(Me,Re)&&fa(Ce,Re,Me[Re]);if(zi)for(var Re of zi(Me))ga.call(Me,Re)&&fa(Ce,Re,Me[Re]);return Ce};const Fa=Ce=>React.createElement("svg",Qi({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ce),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 ha="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",ma=te(59477),Ji=te(89489),ja=Object.defineProperty,pa=Object.defineProperties,za=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,Ii=(Ce,Me,Re)=>Me in Ce?ja(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,qo=(Ce,Me)=>{for(var Re in Me||(Me={}))Ha.call(Me,Re)&&Ii(Ce,Re,Me[Re]);if(va)for(var Re of va(Me))Ai.call(Me,Re)&&Ii(Ce,Re,Me[Re]);return Ce},Ga=(Ce,Me)=>pa(Ce,za(Me)),Oi=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())}),hs=({identifier:Ce,tabStatus:Me,setFilterListTotal:Re,setListStatus:Je})=>{const qe={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[nt,et]=(0,ee.useState)(qo({},qe));const[dt,gt]=(0,ee.useState)(!1),[vt,Wt]=(0,ee.useState)(0),[Nt,Vt]=(0,ee.useState)(1),[Ot,Yt]=(0,ee.useState)(null),[Qt,_n]=(0,ee.useState)([]),[an,vn]=(0,ee.useState)([!0,!0]),[On,Jt]=(0,ee.useState)(0),hn=(0,ee.useRef)(null);(0,ee.useEffect)(()=>{Tn()},[Me]),(0,ee.useEffect)(()=>{Tt()},[Ot]),(0,ee.useEffect)(()=>{dn(qo({},qe)),Tn()},[Ce]),(0,ee.useEffect)(()=>(window.addEventListener("resize",rn),Je(On),()=>{window.removeEventListener("resize",rn)}),[On]);const Tt=()=>Oi(void 0,null,function*(){if(!Ot){vn([!0,!0]);return}const jn=[!0,!0],En=Qt==null?void 0:Qt.findIndex(Bn=>Bn.id===Ot);En===0&&nt.page===1&&(jn[0]=!1),(nt.page-1)*nt.limit+(En+1)===nt.total&&(jn[1]=!1),vn(jn)}),rn=()=>{var jn;if(On){const En=window.innerWidth-((jn=hn.current)==null?void 0:jn.clientWidth);Wt(En)}},dn=jn=>Oi(void 0,null,function*(){var En,Bn,$n;gt(!0);const An=yield(0,me.WH)(Ce,jn);return(An==null?void 0:An.status)===0&&(_n(((En=An==null?void 0:An.data)==null?void 0:En.articles)||[]),et(Ga(qo({},jn),{total:(Bn=An==null?void 0:An.data)==null?void 0:Bn.articles_count})),Re(($n=An==null?void 0:An.data)==null?void 0:$n.articles_count)),gt(!1),An}),Dn=()=>{(nt==null?void 0:nt.sort_direction)===null?nt.sort_direction="asc":(nt==null?void 0:nt.sort_direction)==="asc"?nt.sort_direction="desc":(nt==null?void 0:nt.sort_direction)==="desc"&&(nt.sort_direction=null),nt.page=1,Tn(),et(qo({},nt)),dn(nt)},qn=()=>{nt.page=1,nt.search=nt==null?void 0:nt.save_search,Tn(),et(qo({},nt)),dn(nt)},en=()=>{var jn;const En=document.getElementsByClassName("btn-resize");En[0].style.visibility="hidden";const Bn=window.innerWidth-((jn=hn.current)==null?void 0:jn.clientWidth);Wt(Bn)},Pn=()=>{en(),Jt(1)},Mn=jn=>{en(),Yt(jn==null?void 0:jn.id),Jt(3)},gn=jn=>{en(),Yt(jn==null?void 0:jn.id),Jt(2)},Tn=()=>{const jn=document.getElementsByClassName("btn-resize");jn[0].style.visibility="visible",Wt(0),Jt(0),Yt(null)},kn=jn=>{Jt(3),Yt(jn),nt.page=1,et(qo({},nt)),dn(nt)},Qn=jn=>{Jt(3),Yt(jn),et(qo({},nt)),dn(nt)},Ur=jn=>{et(qo({},nt)),dn(nt)},tr=jn=>Oi(void 0,null,function*(){(yield(0,me.Rg)(Ce,{active:jn==null?void 0:jn.id})).status===0&&(dn(nt),Vt(Nt+1))}),Yr=jn=>Oi(void 0,null,function*(){(yield(0,me.rL)(Ce,{active:jn==null?void 0:jn.id})).status===0&&(dn(nt),Vt(Nt+1))}),_r=jn=>Oi(void 0,null,function*(){(yield(0,me.de)(Ce,{active:jn==null?void 0:jn.id})).status===0&&(Tn(),dn(nt))}),Ar=jn=>{nt.page=jn,et(qo({},nt)),dn(nt)},Tr=(jn,En)=>Oi(void 0,null,function*(){var Bn,$n,An,br;const Rn=Qt==null?void 0:Qt.findIndex(zn=>zn.id===Ot);if(console.log(Rn,En,22),En==="prev"){if(Rn===void 0){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Rn===0){if(nt.page===1){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(nt.page!==1){nt.page=nt.page-1,et(qo({},nt));const zn=yield dn(nt);if((zn==null?void 0:zn.status)===0){const hr=(An=zn==null?void 0:zn.data)==null?void 0:An.articles[(($n=(Bn=zn==null?void 0:zn.data)==null?void 0:Bn.articles)==null?void 0:$n.length)-1];Yt(hr==null?void 0:hr.id),console.log(jn.target,555)}}}else{const zn=Qt[Rn-1];Yt(zn==null?void 0:zn.id)}}if(En==="next"){if(Rn===void 0){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((nt.page-1)*nt.limit+(Rn+1)===nt.total){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Rn+1===nt.limit){nt.page=nt.page+1,et(qo({},nt));const zn=yield dn(nt);if((zn==null?void 0:zn.status)===0){const hr=(br=zn==null?void 0:zn.data)==null?void 0:br.articles[0];Yt(hr==null?void 0:hr.id)}}else{const zn=Qt[Rn+1];Yt(zn==null?void 0:zn.id)}}});return ee.createElement("div",{className:ut.wrap,ref:hn},ee.createElement("div",{className:ut.head},ee.createElement("div",{className:ut.sort,onClick:Dn},ee.createElement("span",null,"\u6700\u65B0"),ee.createElement("aside",null,ee.createElement(ma.Z,{style:{color:(nt==null?void 0:nt.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),ee.createElement(Ji.Z,{style:{color:(nt==null?void 0:nt.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),ee.createElement(Ke.default.Search,{value:nt.save_search,className:ut["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:jn=>{nt.save_search=jn.target.value,et(qo({},nt))},onSearch:qn}),ee.createElement("div",{onClick:Pn,className:ut.btn},ee.createElement("img",{src:ha}),"\u5199\u9898\u89E3")),ee.createElement("div",{className:ut.listWarp},ee.createElement(ue.Z,{spinning:dt,className:"mt20"},Qt==null?void 0:Qt.map((jn,En)=>{let Bn=!0;return En+1===Qt.length&&En!==0&&(Bn=!1),ee.createElement(Io,{active:Ot,key:jn.id,data:jn,showLine:Bn,onClick:Mn,onAssist:tr,onHide:Yr})}),(Qt==null?void 0:Qt.length)===0&&ee.createElement(Ge.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),ee.createElement(Ct.Z,{className:ut.pagination,showTotal:jn=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},jn),"\u6761\u6570\u636E"),total:nt.total,showSizeChanger:!1,current:nt==null?void 0:nt.page,onChange:Ar,hideOnSinglePage:!0,showQuickJumper:!0}),On>0&&ee.createElement("div",{className:ut.fixedRight,style:{width:vt}},On===1&&ee.createElement(Gr,{identifier:Ce,onClose:Tn,onOk:kn}),On===2&&ee.createElement(Gr,{active:Ot,identifier:Ce,onClose:Tn,onOk:Qn}),On===3&&ee.createElement(ka,{btnShowStatus:an,onArticlesSkip:Tr,detailsIndex:Nt,active:Ot,identifier:Ce,onClose:Tn,onOk:Ur,onEdit:gn,onAssist:tr,onDelete:_r})))},xi={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"},ms=Object.defineProperty,Ua=Object.defineProperties,$a=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable,Sa=(Ce,Me,Re)=>Me in Ce?ms(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Pi=(Ce,Me)=>{for(var Re in Me||(Me={}))Wa.call(Me,Re)&&Sa(Ce,Re,Me[Re]);if(Za)for(var Re of Za(Me))ps.call(Me,Re)&&Sa(Ce,Re,Me[Re]);return Ce},qi=(Ce,Me)=>Ua(Ce,$a(Me)),Gi=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())}),Ss=({visible:Ce,onVisible:Me,value:Re,onChange:Je,setIndex:qe})=>{var nt;const et={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[dt,gt]=(0,ee.useState)(et);const[vt,Wt]=(0,ee.useState)([]),[Nt,Vt]=(0,ee.useState)([]),[Ot,Yt]=(0,ee.useState)(!1),Qt=(0,ee.useRef)([]),_n=(0,ee.useRef)(null),an=(0,ve.useParams)();(0,ee.useEffect)(()=>(an!=null&&an.id&&(_n.current=setInterval(()=>{vn(30)},3e4)),()=>{clearInterval(_n.current)}),[]);const vn=en=>Gi(void 0,null,function*(){const Pn=yield(0,me.uc)(an==null?void 0:an.id,{practice_time:en})});(0,ee.useEffect)(()=>{dn(dt),Tt()},[]),(0,ee.useEffect)(()=>(window.addEventListener("click",Jt),()=>{window.removeEventListener("click",Jt)}),[an==null?void 0:an.save_identifier,Ce]),(0,ee.useEffect)(()=>{const en=Qt.current.findIndex(kn=>kn.identifier===(an==null?void 0:an.save_identifier)),Pn=Qt.current[en-1],Mn=Qt.current[en+1],gn=document.getElementById("oj-prev"),Tn=document.getElementById("oj-next");Pn?gn.style.display="block":gn.style.display="none",Mn?Tn.style.display="block":Tn.style.display="none"},[an==null?void 0:an.save_identifier,Qt.current]);const On=(en,Pn)=>{if(en.id===Pn)return en;for(let Mn=0,gn=en;gn=gn.parentNode;Mn++){if(gn.id===Pn)return gn;if(gn==document.documentElement)return!1}},Jt=en=>Gi(void 0,null,function*(){!On(en.target,"oj-drawer")&&Ce&&Me(!1);const Pn=Qt.current.findIndex(Tn=>Tn.identifier===(an==null?void 0:an.save_identifier)),Mn=Qt.current[Pn-1],gn=Qt.current[Pn+1];if(en.target.id==="oj-prev"){if(!Mn||Pn===-1){fe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Dn(Mn==null?void 0:Mn.identifier),qe("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}if(en.target.id==="oj-next"||en.target.id==="oj-modal-next"){if(!gn||Pn===-1){fe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Dn(gn==null?void 0:gn.identifier),qe("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}});(0,ee.useEffect)(()=>{Je(an==null?void 0:an.save_identifier);const en=Nt.findIndex(Pn=>Pn.some(Mn=>Mn.identifier===(an==null?void 0:an.save_identifier)));gt(en===-1?qi(Pi({},dt),{page:1}):qi(Pi({},dt),{page:en+1}))},[an==null?void 0:an.save_identifier,Nt]);const hn=en=>{dt.page=1,dt.tag_discipline_id=en,gt(Pi({},dt)),dn(dt)},Tt=()=>Gi(void 0,null,function*(){const en=yield(0,un.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Wt(en.tag_disciplines||[])}),rn=en=>{dt.page=1,dt.difficulty=typeof en=="number"?en:null,gt(Pi({},dt)),dn(dt)},dn=en=>Gi(void 0,null,function*(){var Pn,Mn;Yt(!0);const gn=yield(0,me.KC)(en);if(gn!=null&&gn.practices_list){for(var Tn=(Pn=gn==null?void 0:gn.practices_list)==null?void 0:Pn.length,kn=[],Qn=0;Qn<Tn;Qn+=dt==null?void 0:dt.per_page)kn.push((Mn=gn==null?void 0:gn.practices_list)==null?void 0:Mn.slice(Qn,Qn+(dt==null?void 0:dt.per_page)));gt(qi(Pi({},dt),{total:gn==null?void 0:gn.practices_count})),Qt.current=(gn==null?void 0:gn.practices_list)||[],Vt(kn)}Yt(!1)}),Dn=(en,Pn)=>Gi(void 0,null,function*(){const Mn=yield(0,un.ZP)(`/api/practices/${en}/start`,{method:"get"});(Mn==null?void 0:Mn.status)===0&&ve.history.push(`/problems/${Mn==null?void 0:Mn.identifier}/oj/${en}`)}),qn=en=>{dt.page=en,gt(Pi({},dt))};return ee.createElement("div",{className:xi.wrap,id:"oj-drawer",style:{left:Ce?0:-700}},ee.createElement("div",{className:xi.head},ee.createElement("div",{className:xi.title},"\u9898\u76EE\u5217\u8868"),ee.createElement(Ke.default.Search,{value:dt==null?void 0:dt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:en=>{dt.save_search=en.target.value,gt(Pi({},dt))},onSearch:()=>{dt.page=1,dt.search=dt.save_search,gt(Pi({},dt)),dn(dt)}}),ee.createElement(le.default,{value:dt==null?void 0:dt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:en=>en.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:hn},vt.map(en=>ee.createElement(le.default.Option,{key:en.id,value:en.id},en.name))),ee.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:en=>en.parentNode,value:dt==null?void 0:dt.difficulty,onChange:rn},ee.createElement(le.default.Option,{value:1},"\u7B80\u5355"),ee.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),ee.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),ee.createElement("div",{className:xi.content},ee.createElement(ue.Z,{spinning:Ot},(nt=Nt==null?void 0:Nt[dt.page-1])==null?void 0:nt.map(en=>ee.createElement("div",{key:en.identifier,className:xi.list,onClick:Pn=>Dn(en.identifier,Pn)},ee.createElement("i",{style:{visibility:Re===en.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),ee.createElement("span",{style:{fontWeight:Re===en.identifier?"bold":400,color:Re===en.identifier?"#ffffff":"#bac4cd"},title:en==null?void 0:en.name},en.name),(en==null?void 0:en.difficulty)===1&&ee.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(en==null?void 0:en.difficulty)===2&&ee.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(en==null?void 0:en.difficulty)===3&&ee.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),ee.createElement("div",{className:xi.footer},ee.createElement(Ct.Z,{showTotal:en=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},en),"\u6761\u6570\u636E"),total:dt.total,pageSize:dt==null?void 0:dt.per_page,current:dt==null?void 0:dt.page,showSizeChanger:!1,onChange:qn,showQuickJumper:!0,hideOnSinglePage:!0})))},Ka=({hack:Ce,onTriggerPraise:Me,topicId:Re,page:Je,onPageChange:qe,user:nt,submitRecords:et,submitting:dt,submitResult:gt})=>{const[vt]=(0,ve.useSearchParams)(),Wt=(0,ve.useLocation)(),[Nt,Vt]=(0,ee.useState)(vt.get("tab")||"0"),[Ot,Yt]=(0,ee.useState)(0),[Qt,_n]=(0,ee.useState)(0),[an,vn]=(0,ee.useState)(0),[On,Jt]=(0,ee.useState)(),[hn,Tt]=(0,ee.useState)(!1);function rn(Dn){const qn=Dn.target.id;if(Nt==="3"&&qn!==Nt&&(Qt===1||Qt===2)){ie.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:()=>{Vt(qn)}});return}Vt(qn)}(0,ee.useEffect)(()=>ze.Z.subscribe("to-commit-info",()=>{Vt("1")}),[]);function dn(){Vt("2")}return ee.createElement("div",{className:Qe["left-panel"]},ee.createElement("ul",{className:`${Qe["s-navs"]} ${Qe["bg-white"]} ${Qe.b1}`},ee.createElement("li",{className:"mr40 current"},ee.createElement("img",{onClick:()=>Tt(!0),src:fn})),ee.createElement("li",{className:Qe["oj-mr"]},ee.createElement("a",{className:Nt==="0"?Qe.active:"",id:"0",onClick:rn},"\u4EFB\u52A1\u63CF\u8FF0")),ee.createElement("li",{className:Qe["oj-mr"]},ee.createElement("a",{className:Nt==="3"?Qe.active:"",id:"3",onClick:rn},"\u9898\u89E3",an?`(${an})`:"")),ee.createElement("li",{className:Qe["oj-mr"]},ee.createElement("a",{className:Nt==="2"?Qe.active:"",id:"2",onClick:rn},"\u8BC4\u8BBA",Ot?`(${Ot})`:"")),ee.createElement("li",null,ee.createElement("a",{className:Nt==="1"?Qe.active:"",id:"1",onClick:rn},"\u63D0\u4EA4\u8BB0\u5F55"))),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},ee.createElement(ke,{hack:Ce,onTriggerPraise:Me,toDiscuss:dn})),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="1"?"":"hide"}`},et!=null&&et.records_count?ee.createElement(ct,{page:Je,onPageChange:qe,topicId:Re,submitting:dt,submitRecords:et,submitResult:gt}):ee.createElement(Ge.Z,null)),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="2"?"":"hide"}`,style:{padding:0}},ee.createElement(ot,{setDiscussTotal:Yt,user:nt,identifier:Ce.identifier,hack:Ce,onTriggerPraise:Me})),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="3"?"":"hide"}`,style:{padding:0}},ee.createElement(hs,{setListStatus:_n,setFilterListTotal:vn,tabStatus:Nt,identifier:Ce.identifier})),ee.createElement(Ss,{visible:hn,setIndex:Vt,onVisible:Dn=>Tt(Dn),value:On,onChange:Dn=>Jt(Dn)}))},_s=te(38273),Va=te(62522),ys=te(60515),Ya=te(88977),Ps=te(89392),Xa=te.n(Ps),bs=te(56102),or=te(59301),Cs=Object.defineProperty,Qa=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,ya=(Ce,Me,Re)=>Me in Ce?Cs(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[Me]=Re,Vr=(Ce,Me)=>{for(var Re in Me||(Me={}))Ja.call(Me,Re)&&ya(Ce,Re,Me[Re]);if(Ri)for(var Re of Ri(Me))_a.call(Me,Re)&&ya(Ce,Re,Me[Re]);return Ce},po=(Ce,Me)=>Qa(Ce,Es(Me)),qa=(Ce,Me)=>{var Re={};for(var Je in Ce)Ja.call(Ce,Je)&&Me.indexOf(Je)<0&&(Re[Je]=Ce[Je]);if(Ce!=null&&Ri)for(var Je of Ri(Ce))Me.indexOf(Je)<0&&_a.call(Ce,Je)&&(Re[Je]=Ce[Je]);return Re},Wo=(Ce,Me,Re)=>new Promise((Je,qe)=>{var nt=gt=>{try{dt(Re.next(gt))}catch(vt){qe(vt)}},et=gt=>{try{dt(Re.throw(gt))}catch(vt){qe(vt)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(nt,et);dt((Re=Re.apply(Ce,Me)).next())});const{Countdown:ws}=Se.default,di={Java:"java",C:"c",Python:"py","C++":"c"};var es=(Ce=>(Ce[Ce.SET_LOADING=0]="SET_LOADING",Ce[Ce.GET_DATA=1]="GET_DATA",Ce[Ce.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Ce[Ce.SET_DATA=3]="SET_DATA",Ce[Ce.SET_DEBUGING=4]="SET_DEBUGING",Ce[Ce.SET_SUBMITING=5]="SET_SUBMITING",Ce[Ce.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Ce[Ce.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Ce[Ce.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Ce[Ce.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Ce[Ce.SET_PAGE=10]="SET_PAGE",Ce[Ce.GET_LANGUAGE=11]="GET_LANGUAGE",Ce[Ce.GET_DRAWER=12]="GET_DRAWER",Ce))(es||{});function Ui(){return new Date().getTime()}const Ae={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 Te(Ce,Me){switch(Me.type){case 1:return Vr(Vr({},Ce),Me.payload);case 3:return po(Vr({},Ce),{data:Me.payload});case 0:return po(Vr({},Ce),{loading:Me.payload});case 11:return po(Vr({},Ce),{languageList:Me.payload});case 12:return po(Vr({},Ce),{drawerData:Me.payload});case 9:return po(Vr({},Ce),{showNote:Me.payload});case 4:return po(Vr({},Ce),{debuging:Me.payload});case 5:return po(Vr({},Ce),{submitting:Me.payload});case 2:return po(Vr({},Ce),{submitRecords:Me.payload});case 10:return po(Vr({},Ce),{submitRecordPage:Me.payload});case 6:return po(Vr({},Ce),{executingMessage:Me.payload});case 7:return Vr(Vr({},Ce),Me.payload);case 8:return Vr(Vr({},Ce),Me.payload);default:throw new Error}}var Ue=({children:Ce})=>{var Me,Re,Je,qe;const[nt,et]=(0,ee.useReducer)(Te,Ae),{id:dt}=(0,ve.useParams)(),gt=(0,ve.useLocation)(),[vt]=(0,ve.useSearchParams)(),{languageValue:Wt,languageList:Nt,loading:Vt,data:Ot,debugResult:Yt,submitResult:Qt,submitRecords:_n,submitRecordPage:an,showNote:vn,debuging:On,submitting:Jt,executingMessage:hn}=nt,[Tt,rn]=(0,ee.useState)("#FFF"),[dn,Dn]=(0,ee.useState)(null),[qn,en]=(0,ee.useState)({}),[Pn,Mn]=(0,ee.useState)(!1),gn=(0,ee.useRef)(null),Tn=(0,ee.useRef)(null),kn=Ot==null?void 0:Ot.user,Qn=Ot==null?void 0:Ot.hack;(0,ee.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,ee.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,ee.useEffect)(()=>{var nr;if(Pn){const mr=document.getElementById("oj-next"),to=document.getElementById("oj-modal-next");((nr=mr==null?void 0:mr.style)==null?void 0:nr.display)==="none"?to.style.display="none":to.style.display="block"}},[Pn]),(0,ee.useEffect)(()=>{function nr(){return Wo(this,null,function*(){var mr,to,Ir;const wr=yield(0,me.fu)(dt);if(wr.status===401)document.location.href="/user/login";else{wr.hack=wr.practice,wr.hack.code=Fe.Base64.decode((mr=wr==null?void 0:wr.hack)==null?void 0:mr.code);const jo=`${kn==null?void 0:kn.login}-language`;localStorage.getItem(jo)&&(wr.hack.language=localStorage.getItem(jo)),Tn.current=Xa().cloneDeep(wr),Tn.current.language=(to=wr==null?void 0:wr.hack)==null?void 0:to.language,et({type:1,payload:{loading:!1,data:wr}}),et({type:8,payload:{languageValue:(Ir=wr==null?void 0:wr.hack)==null?void 0:Ir.language}})}})}dt&&nr()},[dt]),(0,ee.useEffect)(()=>{et({type:8,payload:{debugResult:void 0}}),Yr(),Mn(!1)},[dt]),(0,ee.useEffect)(()=>{clearTimeout(gn.current)},[dt]),(0,ee.useEffect)(()=>{tr()},[dt,an]);const Ur=()=>{window.parent.postMessage("backExercise","*")};function tr(){return Wo(this,null,function*(){try{const nr=yield(0,me.zO)(dt,{limit:15,page:an});et({type:2,payload:nr})}catch(nr){console.log(nr)}})}function Yr(){return Wo(this,null,function*(){try{const nr=yield(0,me.dd)(dt);et({type:11,payload:nr==null?void 0:nr.data})}catch(nr){console.log(nr)}})}function _r(nr){et({type:10,payload:nr})}function Ar(nr){return Wo(this,null,function*(){var mr,to,Ir;const wr=((Ir=(to=(mr=window==null?void 0:window.location)==null?void 0:mr.pathname)==null?void 0:to.split("/"))==null?void 0:Ir[2])||dt;return yield(0,me.n4)(wr,nr||{code:Fe.Base64.encode(Qn.code),language:Wt})})}function Tr(){return Wo(this,null,function*(){var nr;if(!Qn.code||((nr=Qn.code)==null?void 0:nr.trim())===""){fe.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(!Jt){et({type:5,payload:!0});try{if(ze.Z.publish("to-commit-info"),(yield Ar()).status===0){let xr=function(){return Wo(this,null,function*(){const{status:$r,data:Jr}=yield(0,me.rX)(dt,"submit"),ur=Ui()-Cr>(wr*jo+3)*1e3;if($r!==0&&!ur&&setTimeout(xr,1e3),ur){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),et({type:5,payload:!1});return}if($r===0){Jr.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const To=yield(0,me.zO)(dt,{limit:15,page:an});et({type:8,payload:po(Vr({},nt),{submitResult:Jr,submitting:!1,submitRecords:To})}),(Jr==null?void 0:Jr.status)===0&&Mn(!0)}})},to={};const Ir=yield(0,me.bM)(dt,to);if(Ir.status===-1&&vt.get("exercisesId")){window.parent.location.href=`/classrooms/${vt.get("coursesId")}/exercise/${vt.get("exercisesId")}/detail`;return}const{time_limit:wr,test_case_size:jo}=Qn,Cr=Ui();(Ir==null?void 0:Ir.status)>-1?xr():et({type:4,payload:!1})}}catch(mr){et({type:5,payload:!1})}}})}function jn(){return Wo(this,null,function*(){var nr;if(!Qn.code||((nr=Qn.code)==null?void 0:nr.trim())===""){fe.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}nt.debuging=!0,et({type:4,payload:!0});try{if((yield Ar()).status===0){let Cr=function(){return Wo(this,null,function*(){const{status:xr,message:$r,data:Jr}=yield(0,me.rX)(dt,"debug"),ur=Ui()-jo>(to+3)*1e3;if(xr!==0&&!ur&&(et({type:6,payload:$r}),setTimeout(Cr,1e3)),ur){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),et({type:4,payload:!1});return}xr===0&&(et({type:4,payload:!1}),Jr.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),et({type:7,payload:po(Vr({},nt),{debugResult:Jr,debuging:!1})}))})};const{time_limit:to}=Qn;let Ir={input:encodeURIComponent(Ot.test_case.input)};const wr=yield(0,me.MU)(dt,Ir);if(wr.status===-1&&vt.get("exercisesId")){window.parent.location.href=`/classrooms/${vt.get("coursesId")}/exercise/${vt.get("exercisesId")}/detail`;return}const jo=Ui();(wr==null?void 0:wr.status)>-1?Cr():et({type:4,payload:!1})}else et({type:4,payload:!1})}catch(mr){console.log(mr)}finally{}})}function En(nr){var mr;clearTimeout(gn.current),gn.current=setTimeout(()=>{var to;Ar({code:Fe.Base64.encode(nr),language:(to=Tn==null?void 0:Tn.current)==null?void 0:to.language})},2e3),et({type:3,payload:po(Vr({},Tn==null?void 0:Tn.current),{hack:po(Vr({},(mr=Tn==null?void 0:Tn.current)==null?void 0:mr.hack),{code:nr})})})}function Bn(nr){let mr=nr.target.value;et({type:3,payload:po(Vr({},Ot),{test_case:{input:mr}})})}const $n=nr=>Wo(void 0,null,function*(){var mr;if(et({type:0,payload:!0}),(yield Ar()).status===0){et({type:8,payload:{languageValue:nr}}),Tn.current.language=nr;const Ir=`${kn==null?void 0:kn.login}-language`;localStorage.setItem(Ir,nr);const wr=yield(0,me.dd)(dt);if(wr.status===0){const jo=(mr=wr==null?void 0:wr.data)==null?void 0:mr.find(Cr=>Cr.language===nr);En(Fe.Base64.decode(jo.code))}setTimeout(()=>{et({type:0,payload:!1})},300)}});function An(){return Wo(this,null,function*(){try{const nr=yield(0,me.H7)(dt,{language:Wt});nr.status===401?ve.history.replace("/login",{from:gt.pathname}):(En(Fe.Base64.decode(nr.code)),Yr())}catch(nr){console.log(nr)}})}function br(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:or.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",or.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return Wo(this,null,function*(){const nr=yield(0,me.fi)(dt,{language:Wt});nr.status===401?ve.history.replace("/login",{from:gt.pathname}):En(Fe.Base64.decode(nr.code))})}})}function Rn(){et({type:9,payload:!0})}function zn(){et({type:9,payload:!1})}function hr(nr){return Wo(this,null,function*(){yield(0,me.MK)(dt,nr),et({type:1,payload:{showNote:!1,data:po(Vr({},Ot),{hack:po(Vr({},Qn),{notes:nr.notes})})}})})}const Pr={input:(Me=Ot==null?void 0:Ot.test_case)==null?void 0:Me.input,is_file:(Re=Ot==null?void 0:Ot.test_case)==null?void 0:Re.is_file,language:((Je=Tn.current)==null?void 0:Je.language)||(Qn==null?void 0:Qn.language),code:Qn==null?void 0:Qn.code,title:"main."+di[Qn==null?void 0:Qn.language],modify_code:Qn==null?void 0:Qn.modify_code,notes:Qn==null?void 0:Qn.notes,debugResult:Yt,debuging:On,submitting:Jt,executingMessage:hn,id:dt,languageValue:Wt,languageList:Nt,onChangeLanguage:$n,onCancelNote:zn,onAddNote:hr,showNote:vn,onShowNote:Rn,onSubmitCode:Tr,onChangeCode:En,onChangeInput:Bn,onDebugCode:jn,onResetCode:An,onSyncCode:br,onUpdateCode:Ar};function Do(){return Wo(this,null,function*(){const{praise_count:nr}=yield(0,me.vl)(Qn.id,{container_type:"Hack",type:1});let mr=po(Vr({},Ot),{hack:po(Vr({},Qn),{praises_count:nr,user_praise:!Qn.user_praise})});et({type:3,payload:mr})})}const bo={topicId:dt,submitResult:Qt,submitRecords:_n,submitting:Jt,page:an,onPageChange:_r,hack:Qn,user:Ot==null?void 0:Ot.user,onTriggerPraise:Do};return console.log(Ot,Tn==null?void 0:Tn.current,"data--------"),or.createElement(or.Fragment,null,or.createElement(ue.Z,{className:"oj-custom-large-spin",size:"large",spinning:Vt},Ot?or.createElement("div",{className:"oj-custom-warp"},or.createElement("header",{className:He.Z.header,style:{minWidth:1200}},or.createElement("div",null,or.createElement("img",{src:`${he.Z.IMG_SERVER}/images/${kn.image_url}`,alt:"user",width:30}),or.createElement("span",null,kn.name)),or.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},or.createElement("div",null,Qn.name),or.createElement(_s.Z,{onChange:nr=>{},className:"font12 c-grey-999"})),or.createElement(bs.CopyToClipboard,{text:`${(qe=window.location)==null?void 0:qe.origin}/problems/${Qn.identifier}/share`,onCopy:()=>fe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},or.createElement("span",{className:He.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",or.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Qn.edit_privilege?or.createElement(ve.Link,{className:He.Z.btn_back,to:`/problems/${Qn.identifier}/ojedit`,style:{marginRight:10}}," ",or.createElement(ge.Z,null)," \u7F16\u8F91"):null,or.createElement(ve.Link,{className:He.Z.btn_back,onClick:()=>{},to:"/problems"}," ",or.createElement(be.Z,null),"\u9000\u51FA")),or.createElement(ae.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:or.createElement(Ka,Vr({},bo)),rightChild:or.createElement(at,Vr({},Pr))})):null),or.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:Pn,className:"oj-modal"},or.createElement("section",{className:"oj-modal-content"},or.createElement("div",{className:"oj-modal-head"},or.createElement("img",{src:Va,alt:""}),or.createElement("i",{onClick:()=>Mn(!1),className:"iconfont icon-guanbi1"})),or.createElement("aside",null,or.createElement("img",{className:"mr30",src:Ya.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",or.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Qt==null?void 0:Qt.execute_time,"s"),"\u4F18\u4E8E",or.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Qt==null?void 0:Qt.time_better_than)||100,"%"),"\u7684\u7528\u6237"),or.createElement("aside",{className:"mb50"},or.createElement("img",{src:ys.Z,className:"mr30"}),or.createElement("span",{className:"oj-modal-tt"},or.createElement("span",null,or.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),or.createElement("span",{className:"c-light-primary"},Qt==null?void 0:Qt.execute_memory,"mb")),or.createElement("span",null,or.createElement("span",null))),"\u4F18\u4E8E",or.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Qt==null?void 0:Qt.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),or.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Ye({languageValue:Ce,languageList:Me,onChangeLanguage:Re,title:Je,modify_code:qe,onSyncCode:nt,onShowCodeSetting:et,onResetCode:dt}){const gt=(0,ve.useLocation)(),vt=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:or.createElement(oe.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:dt})};return or.createElement("div",{className:"action-bar"},or.createElement(le.default,{className:"oj-select",value:Ce,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Re},Me==null?void 0:Me.map(Wt=>or.createElement(le.default.Option,{key:Wt.language,value:Wt.language},Wt.language))),or.createElement("span",null),or.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:vt},or.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),or.createElement("a",{onClick:et},or.createElement("i",{className:"iconfont icon-shezhi"})))}function at(Ce){var Me=Ce,{id:Re,input:Je,is_file:qe,showNote:nt,onShowNote:et,notes:dt,onCancelNote:gt,onAddNote:vt,debugResult:Wt,language:Nt,debuging:Vt,submitting:Ot,executingMessage:Yt,code:Qt,onSubmitCode:_n,onDebugCode:an,onChangeCode:vn,onChangeInput:On,onUpdateCode:Jt}=Me,hn=qa(Me,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Tt(dn){return or.createElement(Ye,po(Vr({},hn),{onShowCodeSetting:dn}))}const rn={id:Re,input:Je,debugResult:Wt,debuging:Vt,is_file:qe,submitting:Ot,executingMessage:Yt,onDebugCode:an,onChangeCode:vn,onSubmitCode:_n,onChangeInput:On};return or.createElement("div",{className:"right-panel"},or.createElement(pt,{onUpdateCode:()=>{},language:Nt,value:Qt,onChange:vn,ActionBarRender:Tt}),or.createElement("div",{className:`note-form-area ${nt?"active":""}`},or.createElement(rt,{onCancel:gt,notes:dt,callback:vt})),or.createElement(st.ZP,Vr({},rn)))}},49162:function(ht,Ve,te){"use strict";te.d(Ve,{h:function(){return ee}});var ee=(ge=>(ge[ge.NOMATCH=-1]="NOMATCH",ge[ge.OK=0]="OK",ge[ge.TIMEOUT=2]="TIMEOUT",ge[ge.PODFAILURE=3]="PODFAILURE",ge[ge.COMPILEFAILURE=4]="COMPILEFAILURE",ge[ge.EXECUTEFAILURE=5]="EXECUTEFAILURE",ge[ge.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ge))(ee||{})},59205:function(ht,Ve,te){"use strict";te.d(Ve,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return ue},MU:function(){return ve},Rg:function(){return re},WH:function(){return a},X6:function(){return fe},bM:function(){return be},bx:function(){return y},dd:function(){return he},de:function(){return ce},fi:function(){return me},fu:function(){return ge},gu:function(){return E},n4:function(){return ae},qe:function(){return z},rL:function(){return se},rX:function(){return ie},uc:function(){return _e},vl:function(){return oe},wO:function(){return x},zO:function(){return Se}});var ee=te(82093);function ge(ye){return(0,ee.U2)(`mypractices/${ye}.json`,{hidePopLogin:!0})}function be(ye,De){return(0,ee.v_)(`mypractices/${ye}/code_submit.json`,De)}function ve(ye,De){return(0,ee.v_)(`mypractices/${ye}/code_debug.json`,De)}function Se(ye,De){return De.language&&(De.language=encodeURIComponent(De.language)),(0,ee.U2)(`mypractices/${ye}/submit_records.json`,De)}function fe(ye){return(0,ee.U2)("mypractices/record_detail.json",{id:ye})}function ie(ye,De){return(0,ee.U2)(`mypractices/${ye}/result.json`,{mode:De})}function ue(ye,De){return(0,ee.v_)(`mypractices/${ye}/add_notes.json`,De)}function le(ye,De){return(0,ee.v_)(`mypractices/${ye}/restore_initial_code.json`,De)}function me(ye,De){return(0,ee.v_)(`mypractices/${ye}/sync_code.json`,De)}function ae(ye,De){return(0,ee.v_)(`mypractices/${ye}/update_code.json`,De)}function he(ye){return(0,ee.v_)(`mypractices/${ye}/initial_codes.json`)}function oe(ye,De){return(0,ee.v_)(`discusses/${ye}/plus.json`,De)}function ne(ye){return(0,ee.U2)("practices/practices_list.json",ye)}function a(ye,De){return(0,ee.U2)(`practices/${ye}/question_solution_articles`,De)}function y(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles`,De)}function E(ye,De){return(0,ee.gz)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}`,De)}function b(ye,De){return(0,ee.U2)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/edit`,De)}function x(ye,De){return(0,ee.U2)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}`,De)}function z(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/set_authority_or_excellent`,De)}function re(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/praise_or_treads`,De)}function se(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/hide`)}function ce(ye,De){return(0,ee.IV)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}`,De)}function _e(ye,De){return(0,ee.v_)(`mypractices/${ye}/update_practice_time_sum`,De)}},46541:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return oe}});var ee=te(59301),ge=te(8591),be=te(6848),ve=te(71418),Se=te(95237),fe=te(43604),ie=te(58421),ue=te(3113),le=te(89389),me=te(82093),ae=te(7664),he=(a,y,E)=>new Promise((b,x)=>{var z=ce=>{try{se(E.next(ce))}catch(_e){x(_e)}},re=ce=>{try{se(E.throw(ce))}catch(_e){x(_e)}},se=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(z,re);se((E=E.apply(a,y)).next())}),oe=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,z]=(0,ee.useState)(""),[re,se]=(0,ee.useState)(!1);function ce(ye){z(ye)}function _e(){if(!x){ge.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),z("")}return(0,ee.useEffect)(()=>{y!=a&&se(!1)},[y]),ee.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},ee.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&&ee.createElement(be.Z,{color:"#fff",open:re,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:re,activeDiscussIndex:y,onChange:ce,setIsOpen:se}),overlayStyle:{maxWidth:600}},ee.createElement("a",{title:re?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>se(!re)},ee.createElement("i",{className:"iconfont icon-dianzan11"})))}),ee.createElement("a",{onClick:_e,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,ee.useState)(!1),[b,x]=(0,ee.useState)([]),[z,re]=(0,ee.useState)(1);(0,ee.useEffect)(()=>{a!=null&&a.isOpen?se():(re(1),x([]))},[a==null?void 0:a.isOpen]);const se=()=>he(void 0,null,function*(){E(!0);const ce=yield(0,me.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 ee.createElement(ve.Z,{spinning:y},ee.createElement("div",{style:{color:"#000"}},ee.createElement(ae.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[z-1])||""}),ee.createElement(Se.Z,{justify:"end",align:"middle"},ee.createElement(fe.Z,null,ee.createElement(ie.Z,{simple:!0,current:z,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ce=>{re(ce)}})),ee.createElement(fe.Z,null,ee.createElement(ue.ZP,{onClick:()=>he(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")))))}},2610:function(ht,Ve,te){"use strict";te.d(Ve,{BU:function(){return ge},Dj:function(){return ee},gH:function(){return be},vp:function(){return ve}});function ee(Se){try{Se.mozRequestFullScreen?Se.mozRequestFullScreen():Se.webkitRequestFullScreen&&Se.webkitRequestFullScreen()}catch(fe){console.log(fe,":e")}}function ge(){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 Se=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,fe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Se),window.isFullScreen?window.isFullScreen:Se!=null}},89613:function(ht,Ve,te){"use strict";te.d(Ve,{G:function(){return Se},t:function(){return ve}});var ee=te(7062),ge=te.n(ee);const be=null;function ve(fe,ie){let ue=ge().get("__ec");ue||(ue={}),ue[fe]=ie,ge().set("__ec",ue)}function Se(fe,ie){let ue=ge().get("__ec");return ue?ue[fe]===void 0?ie:ue[fe]:ie}},60513:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return Xr}});class ee{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(de,pe){return de.__proto__=pe,de},Object.assign=Object.assign||function(de){if(de==null)throw new TypeError("Cannot convert undefined or null to object");let pe=Object(de);for(let Pe=1;Pe<arguments.length;Pe++){let xe=arguments[Pe];if(xe!=null)for(let Be in xe)xe.hasOwnProperty(Be)&&(pe[Be]=xe[Be])}return pe},typeof self.Promise!="function"&&te(3867).polyfill()}}ee.install();var ge=ee,be=te(86204),ve=te.n(be);class Se{static e(de,pe){(!de||Se.FORCE_GLOBAL_TAG)&&(de=Se.GLOBAL_TAG);let Pe=`[${de}] > ${pe}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","error",Pe),Se.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(de,pe){(!de||Se.FORCE_GLOBAL_TAG)&&(de=Se.GLOBAL_TAG);let Pe=`[${de}] > ${pe}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","info",Pe),Se.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(de,pe){(!de||Se.FORCE_GLOBAL_TAG)&&(de=Se.GLOBAL_TAG);let Pe=`[${de}] > ${pe}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","warn",Pe),Se.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(de,pe){(!de||Se.FORCE_GLOBAL_TAG)&&(de=Se.GLOBAL_TAG);let Pe=`[${de}] > ${pe}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","debug",Pe),Se.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(de,pe){(!de||Se.FORCE_GLOBAL_TAG)&&(de=Se.GLOBAL_TAG);let Pe=`[${de}] > ${pe}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","verbose",Pe),Se.ENABLE_VERBOSE&&console.log(Pe)}}Se.GLOBAL_TAG="flv.js",Se.FORCE_GLOBAL_TAG=!1,Se.ENABLE_ERROR=!0,Se.ENABLE_INFO=!0,Se.ENABLE_WARN=!0,Se.ENABLE_DEBUG=!0,Se.ENABLE_VERBOSE=!0,Se.ENABLE_CALLBACK=!1,Se.emitter=new(ve());var fe=Se;class ie{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(de){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=de,this._totalBytes+=de):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=de,this._totalBytes+=de):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=de,this._totalBytes+=de,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let de=(this._now()-this._lastCheckpoint)/1e3;return de==0&&(de=1),this._intervalBytes/de/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let de=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/de/1024}}var ue=ie;class le{constructor(de){this._message=de}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class me extends le{constructor(de){super(de)}get name(){return"IllegalStateException"}}class ae extends le{constructor(de){super(de)}get name(){return"InvalidArgumentException"}}class he extends le{constructor(de){super(de)}get name(){return"NotImplementedException"}}const oe={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(de){this._type=de||"undefined",this._status=oe.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=oe.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===oe.kConnecting||this._status===oe.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(de){this._onContentLengthKnown=de}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(de){this._onURLRedirect=de}get onDataArrival(){return this._onDataArrival}set onDataArrival(de){this._onDataArrival=de}get onError(){return this._onError}set onError(de){this._onError=de}get onComplete(){return this._onComplete}set onComplete(de){this._onComplete=de}open(de,pe){throw new he("Unimplemented abstract function!")}abort(){throw new he("Unimplemented abstract function!")}}let y={};function E(){let $t=self.navigator.userAgent.toLowerCase(),de=/(edge)\/([\w.]+)/.exec($t)||/(opr)[\/]([\w.]+)/.exec($t)||/(chrome)[ \/]([\w.]+)/.exec($t)||/(iemobile)[\/]([\w.]+)/.exec($t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+)/.exec($t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec($t)||/(msie) ([\w.]+)/.exec($t)||$t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec($t)||$t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec($t)||[],pe=/(ipad)/.exec($t)||/(ipod)/.exec($t)||/(windows phone)/.exec($t)||/(iphone)/.exec($t)||/(kindle)/.exec($t)||/(android)/.exec($t)||/(windows)/.exec($t)||/(mac)/.exec($t)||/(linux)/.exec($t)||/(cros)/.exec($t)||[],Pe={browser:de[5]||de[3]||de[1]||"",version:de[2]||de[4]||"0",majorVersion:de[4]||de[2]||"0",platform:pe[0]||""},xe={};if(Pe.browser){xe[Pe.browser]=!0;let Be=Pe.majorVersion.split(".");xe.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},Be.length>1&&(xe.version.minor=parseInt(Be[1],10)),Be.length>2&&(xe.version.build=parseInt(Be[2],10))}if(Pe.platform&&(xe[Pe.platform]=!0),(xe.chrome||xe.opr||xe.safari)&&(xe.webkit=!0),xe.rv||xe.iemobile){xe.rv&&delete xe.rv;let Be="msie";Pe.browser=Be,xe[Be]=!0}if(xe.edge){delete xe.edge;let Be="msedge";Pe.browser=Be,xe[Be]=!0}if(xe.opr){let Be="opera";Pe.browser=Be,xe[Be]=!0}if(xe.safari&&xe.android){let Be="android";Pe.browser=Be,xe[Be]=!0}xe.name=Pe.browser,xe.platform=Pe.platform;for(let Be in y)y.hasOwnProperty(Be)&&delete y[Be];Object.assign(y,xe)}E();var b=y;class x extends a{static isSupported(){try{let de=b.msedge&&b.version.minor>=15048,pe=b.msedge?de:!0;return self.fetch&&self.ReadableStream&&pe}catch(de){return!1}}constructor(de,pe){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=de,this._config=pe,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(de,pe){this._dataSource=de,this._range=pe;let Pe=de.url;this._config.reuseRedirectedURL&&de.redirectedURL!=null&&(Pe=de.redirectedURL);let xe=this._seekHandler.getConfig(Pe,pe),Be=new self.Headers;if(typeof xe.headers=="object"){let ut=xe.headers;for(let nn in ut)ut.hasOwnProperty(nn)&&Be.append(nn,ut[nn])}let ot={method:"GET",headers:Be,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let ut in this._config.headers)Be.append(ut,this._config.headers[ut]);de.cors===!1&&(ot.mode="same-origin"),de.withCredentials&&(ot.credentials="include"),de.referrerPolicy&&(ot.referrerPolicy=de.referrerPolicy),this._status=oe.kConnecting,self.fetch(xe.url,ot).then(ut=>{if(this._requestAbort){this._requestAbort=!1,this._status=oe.kIdle;return}if(ut.ok&&ut.status>=200&&ut.status<=299){if(ut.url!==xe.url&&this._onURLRedirect){let Zt=this._seekHandler.removeURLParameters(ut.url);this._onURLRedirect(Zt)}let nn=ut.headers.get("Content-Length");return nn!=null&&(this._contentLength=parseInt(nn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,ut.body.getReader())}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ut.status,msg:ut.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+ut.status+" "+ut.statusText)}).catch(ut=>{if(this._status=oe.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:ut.message});else throw ut})}abort(){this._requestAbort=!0}_pump(de){return de.read().then(pe=>{if(pe.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=oe.kError;let Pe=ne.EARLY_EOF,xe={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,xe);else throw new le(xe.msg)}else this._status=oe.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=oe.kComplete,de.cancel();this._status=oe.kBuffering;let Pe=pe.value.buffer,xe=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,xe,this._receivedLength),this._pump(de)}}).catch(pe=>{if(pe.code===11&&b.msedge)return;this._status=oe.kError;let Pe=0,xe=null;if((pe.code===19||pe.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,xe={code:pe.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,xe={code:pe.code,msg:pe.message}),this._onError)this._onError(Pe,xe);else throw new le(xe.msg)})}}var z=x;class re extends a{static isSupported(){try{let de=new XMLHttpRequest;return de.open("GET","https://example.com",!0),de.responseType="moz-chunked-arraybuffer",de.responseType==="moz-chunked-arraybuffer"}catch(de){return fe.w("MozChunkedLoader",de.message),!1}}constructor(de,pe){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=de,this._config=pe,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(de,pe){this._dataSource=de,this._range=pe;let Pe=de.url;this._config.reuseRedirectedURL&&de.redirectedURL!=null&&(Pe=de.redirectedURL);let xe=this._seekHandler.getConfig(Pe,pe);this._requestURL=xe.url;let Be=this._xhr=new XMLHttpRequest;if(Be.open("GET",xe.url,!0),Be.responseType="moz-chunked-arraybuffer",Be.onreadystatechange=this._onReadyStateChange.bind(this),Be.onprogress=this._onProgress.bind(this),Be.onloadend=this._onLoadEnd.bind(this),Be.onerror=this._onXhrError.bind(this),de.withCredentials&&(Be.withCredentials=!0),typeof xe.headers=="object"){let ot=xe.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}if(typeof this._config.headers=="object"){let ot=this._config.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}this._status=oe.kConnecting,Be.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=oe.kComplete}_onReadyStateChange(de){let pe=de.target;if(pe.readyState===2){if(pe.responseURL!=null&&pe.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(pe.responseURL);this._onURLRedirect(Pe)}if(pe.status!==0&&(pe.status<200||pe.status>299))if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:pe.status,msg:pe.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+pe.status+" "+pe.statusText);else this._status=oe.kBuffering}}_onProgress(de){if(this._status===oe.kError)return;this._contentLength===null&&de.total!==null&&de.total!==0&&(this._contentLength=de.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let pe=de.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=pe.byteLength,this._onDataArrival&&this._onDataArrival(pe,Pe,this._receivedLength)}_onLoadEnd(de){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===oe.kError)return;this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(de){this._status=oe.kError;let pe=0,Pe=null;if(this._contentLength&&de.loaded<this._contentLength?(pe=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(pe=ne.EXCEPTION,Pe={code:-1,msg:de.constructor.name+" "+de.type}),this._onError)this._onError(pe,Pe);else throw new le(Pe.msg)}}var se=re;class ce extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let de=new XMLHttpRequest;return de.open("GET","https://example.com",!0),de.responseType="ms-stream",de.responseType==="ms-stream"}catch(de){return Log.w("MSStreamLoader",de.message),!1}}constructor(de,pe){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=de,this._config=pe,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(de,pe){this._internalOpen(de,pe,!1)}_internalOpen(de,pe,Pe){this._dataSource=de,Pe?this._currentRange=pe:this._totalRange=pe;let xe=de.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?xe=this._currentRedirectedURL:de.redirectedURL!=null&&(xe=de.redirectedURL));let Be=this._seekHandler.getConfig(xe,pe);this._currentRequestURL=Be.url;let ot=this._reader=new self.MSStreamReader;ot.onprogress=this._msrOnProgress.bind(this),ot.onload=this._msrOnLoad.bind(this),ot.onerror=this._msrOnError.bind(this);let ut=this._xhr=new XMLHttpRequest;if(ut.open("GET",Be.url,!0),ut.responseType="ms-stream",ut.onreadystatechange=this._xhrOnReadyStateChange.bind(this),ut.onerror=this._xhrOnError.bind(this),de.withCredentials&&(ut.withCredentials=!0),typeof Be.headers=="object"){let nn=Be.headers;for(let Zt in nn)nn.hasOwnProperty(Zt)&&ut.setRequestHeader(Zt,nn[Zt])}if(typeof this._config.headers=="object"){let nn=this._config.headers;for(let Zt in nn)nn.hasOwnProperty(Zt)&&ut.setRequestHeader(Zt,nn[Zt])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,ut.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(de){let pe=de.target;if(pe.readyState===2)if(pe.status>=200&&pe.status<=299){if(this._status=LoaderStatus.kBuffering,pe.responseURL!=null){let xe=this._seekHandler.removeURLParameters(pe.responseURL);pe.responseURL!==this._currentRequestURL&&xe!==this._currentRedirectedURL&&(this._currentRedirectedURL=xe,this._onURLRedirect&&this._onURLRedirect(xe))}let Pe=pe.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let xe=parseInt(Pe);xe>0&&(this._contentLength=xe,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:pe.status,msg:pe.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+pe.status+" "+pe.statusText);else if(pe.readyState===3&&pe.status>=200&&pe.status<=299){this._status=LoaderStatus.kBuffering;let Pe=pe.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(de){this._status=LoaderStatus.kError;let pe=LoaderErrors.EXCEPTION,Pe={code:-1,msg:de.constructor.name+" "+de.type};if(this._onError)this._onError(pe,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(de){let Pe=de.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let xe=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let Be=this._totalRange.from+this._receivedLength;this._receivedLength+=xe.byteLength,this._onDataArrival&&this._onDataArrival(xe,Be,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Be+xe.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let de={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,de,!0)}}_msrOnLoad(de){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(de){this._status=LoaderStatus.kError;let pe=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(pe=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(pe=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:de.constructor.name+" "+de.type}),this._onError)this._onError(pe,Pe);else throw new RuntimeException(Pe.msg)}}var _e=null;class ye extends a{static isSupported(){try{let de=new XMLHttpRequest;return de.open("GET","https://example.com",!0),de.responseType="arraybuffer",de.responseType==="arraybuffer"}catch(de){return fe.w("RangeLoader",de.message),!1}}constructor(de,pe){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=de,this._config=pe,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 ue,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(de,pe){this._dataSource=de,this._range=pe,this._status=oe.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 de=this._currentChunkSizeKB*1024,pe=this._range.from+this._receivedLength,Pe=pe+de;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:pe,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(de,pe){this._lastTimeLoaded=0;let Pe=de.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:de.redirectedURL!=null&&(Pe=de.redirectedURL));let xe=this._seekHandler.getConfig(Pe,pe);this._currentRequestURL=xe.url;let Be=this._xhr=new XMLHttpRequest;if(Be.open("GET",xe.url,!0),Be.responseType="arraybuffer",Be.onreadystatechange=this._onReadyStateChange.bind(this),Be.onprogress=this._onProgress.bind(this),Be.onload=this._onLoad.bind(this),Be.onerror=this._onXhrError.bind(this),de.withCredentials&&(Be.withCredentials=!0),typeof xe.headers=="object"){let ot=xe.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}if(typeof this._config.headers=="object"){let ot=this._config.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}Be.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=oe.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(de){let pe=de.target;if(pe.readyState===2){if(pe.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(pe.responseURL);pe.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(pe.status>=200&&pe.status<=299){if(this._waitForTotalLength)return;this._status=oe.kBuffering}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:pe.status,msg:pe.statusText});else throw new le("RangeLoader: Http code invalid, "+pe.status+" "+pe.statusText)}}_onProgress(de){if(this._status===oe.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let xe=de.total;this._internalAbort(),xe!=null&xe!==0&&(this._totalLength=xe)}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 pe=de.loaded-this._lastTimeLoaded;this._lastTimeLoaded=de.loaded,this._speedSampler.addBytes(pe)}_normalizeSpeed(de){let pe=this._chunkSizeKBList,Pe=pe.length-1,xe=0,Be=0,ot=Pe;if(de<pe[0])return pe[0];for(;Be<=ot;){if(xe=Be+Math.floor((ot-Be)/2),xe===Pe||de>=pe[xe]&&de<pe[xe+1])return pe[xe];pe[xe]<de?Be=xe+1:ot=xe-1}}_onLoad(de){if(this._status===oe.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let pe=this._speedSampler.lastSecondKBps;if(pe===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(pe=this._speedSampler.currentKBps)),pe!==0){let ot=this._normalizeSpeed(pe);this._currentSpeedNormalized!==ot&&(this._currentSpeedNormalized=ot,this._currentChunkSizeKB=ot)}let Pe=de.target.response,xe=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Be=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Be=!0,this._onDataArrival&&this._onDataArrival(Pe,xe,this._receivedLength),Be&&(this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(de){this._status=oe.kError;let pe=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(pe=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(pe=ne.EXCEPTION,Pe={code:-1,msg:de.constructor.name+" "+de.type}),this._onError)this._onError(pe,Pe);else throw new le(Pe.msg)}}var De=ye;class Ee extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(de){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(de){try{let pe=this._ws=new self.WebSocket(de.url);pe.binaryType="arraybuffer",pe.onopen=this._onWebSocketOpen.bind(this),pe.onclose=this._onWebSocketClose.bind(this),pe.onmessage=this._onWebSocketMessage.bind(this),pe.onerror=this._onWebSocketError.bind(this),this._status=oe.kConnecting}catch(pe){this._status=oe.kError;let Pe={code:pe.code,msg:pe.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new le(Pe.msg)}}abort(){let de=this._ws;de&&(de.readyState===0||de.readyState===1)&&(this._requestAbort=!0,de.close()),this._ws=null,this._status=oe.kComplete}_onWebSocketOpen(de){this._status=oe.kBuffering}_onWebSocketClose(de){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=oe.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(de){if(de.data instanceof ArrayBuffer)this._dispatchArrayBuffer(de.data);else if(de.data instanceof Blob){let pe=new FileReader;pe.onload=()=>{this._dispatchArrayBuffer(pe.result)},pe.readAsArrayBuffer(de.data)}else{this._status=oe.kError;let pe={code:-1,msg:"Unsupported WebSocket message type: "+de.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,pe);else throw new le(pe.msg)}}_dispatchArrayBuffer(de){let pe=de,Pe=this._receivedLength;this._receivedLength+=pe.byteLength,this._onDataArrival&&this._onDataArrival(pe,Pe,this._receivedLength)}_onWebSocketError(de){this._status=oe.kError;let pe={code:de.code,msg:de.message};if(this._onError)this._onError(ne.EXCEPTION,pe);else throw new le(pe.msg)}}var je=Ee;class Le{constructor(de){this._zeroStart=de||!1}getConfig(de,pe){let Pe={};if(pe.from!==0||pe.to!==-1){let xe;pe.to!==-1?xe=`bytes=${pe.from.toString()}-${pe.to.toString()}`:xe=`bytes=${pe.from.toString()}-`,Pe.Range=xe}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:de,headers:Pe}}removeURLParameters(de){return de}}var ft=Le;class Xe{constructor(de,pe){this._startName=de,this._endName=pe}getConfig(de,pe){let Pe=de;if(pe.from!==0||pe.to!==-1){let xe=!0;Pe.indexOf("?")===-1&&(Pe+="?",xe=!1),xe&&(Pe+="&"),Pe+=`${this._startName}=${pe.from.toString()}`,pe.to!==-1&&(Pe+=`&${this._endName}=${pe.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(de){let pe=de.split("?")[0],Pe,xe=de.indexOf("?");xe!==-1&&(Pe=de.substring(xe+1));let Be="";if(Pe!=null&&Pe.length>0){let ot=Pe.split("&");for(let ut=0;ut<ot.length;ut++){let nn=ot[ut].split("="),Zt=ut>0;nn[0]!==this._startName&&nn[0]!==this._endName&&(Zt&&(Be+="&"),Be+=ot[ut])}}return Be.length===0?pe:pe+"?"+Be}}var pt=Xe;class we{constructor(de,pe,Pe){this.TAG="IOController",this._config=pe,this._extraData=Pe,this._stashInitialSize=1024*384,pe.stashInitialSize!=null&&pe.stashInitialSize>0&&(this._stashInitialSize=pe.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,pe.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=de,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(de.url),this._refTotalLength=de.filesize?de.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new ue,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(de){this._extraData=de}get onDataArrival(){return this._onDataArrival}set onDataArrival(de){this._onDataArrival=de}get onSeeked(){return this._onSeeked}set onSeeked(de){this._onSeeked=de}get onError(){return this._onError}set onError(de){this._onError=de}get onComplete(){return this._onComplete}set onComplete(de){this._onComplete=de}get onRedirect(){return this._onRedirect}set onRedirect(de){this._onRedirect=de}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(de){this._onRecoveredEarlyEof=de}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===De?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let de=this._config;if(de.seekType==="range")this._seekHandler=new ft(this._config.rangeLoadZeroStart);else if(de.seekType==="param"){let pe=de.seekParamStart||"bstart",Pe=de.seekParamEnd||"bend";this._seekHandler=new pt(pe,Pe)}else if(de.seekType==="custom"){if(typeof de.customSeekHandler!="function")throw new ae("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new de.customSeekHandler}else throw new ae(`Invalid seekType in config: ${de.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=je;else if(z.isSupported())this._loaderClass=z;else if(se.isSupported())this._loaderClass=se;else if(De.isSupported())this._loaderClass=De;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(de){this._currentRange={from:0,to:-1},de&&(this._currentRange.from=de),this._speedSampler.reset(),de||(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 de=this._resumeFrom;this._resumeFrom=0,this._internalSeek(de,!0)}}seek(de){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(de,!0)}_internalSeek(de,pe){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(pe),this._loader.destroy(),this._loader=null;let Pe={from:de,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(de){if(!de||typeof de!="string"||de.length===0)throw new ae("Url must be a non-empty string!");this._dataSource.url=de}_expandBuffer(de){let pe=this._stashSize;for(;pe+1024*1024*1<de;)pe*=2;if(pe+=1024*1024*1,pe===this._bufferSize)return;let Pe=new ArrayBuffer(pe);if(this._stashUsed>0){let xe=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,pe).set(xe,0)}this._stashBuffer=Pe,this._bufferSize=pe}_normalizeSpeed(de){let pe=this._speedNormalizeList,Pe=pe.length-1,xe=0,Be=0,ot=Pe;if(de<pe[0])return pe[0];for(;Be<=ot;){if(xe=Be+Math.floor((ot-Be)/2),xe===Pe||de>=pe[xe]&&de<pe[xe+1])return pe[xe];pe[xe]<de?Be=xe+1:ot=xe-1}}_adjustStashSize(de){let pe=0;this._config.isLive||de<512?pe=de:de>=512&&de<=1024?pe=Math.floor(de*1.5):pe=de*2,pe>8192&&(pe=8192);let Pe=pe*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=pe*1024}_dispatchChunks(de,pe){return this._currentRange.to=pe+de.byteLength-1,this._onDataArrival(de,pe)}_onURLRedirect(de){this._redirectedURL=de,this._onRedirect&&this._onRedirect(de)}_onContentLengthKnown(de){de&&this._fullRequestFlag&&(this._totalLength=de,this._fullRequestFlag=!1)}_onLoaderChunkArrival(de,pe,Pe){if(!this._onDataArrival)throw new me("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(de.byteLength);let xe=this._speedSampler.lastSecondKBps;if(xe!==0){let Be=this._normalizeSpeed(xe);this._speedNormalized!==Be&&(this._speedNormalized=Be,this._adjustStashSize(Be))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=pe),this._stashUsed+de.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(de),this._stashUsed),this._stashUsed+=de.byteLength;else{let Be=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let ot=this._stashBuffer.slice(0,this._stashUsed),ut=this._dispatchChunks(ot,this._stashByteStart);if(ut<ot.byteLength){if(ut>0){let nn=new Uint8Array(ot,ut);Be.set(nn,0),this._stashUsed=nn.byteLength,this._stashByteStart+=ut}}else this._stashUsed=0,this._stashByteStart+=ut;this._stashUsed+de.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+de.byteLength),Be=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Be.set(new Uint8Array(de),this._stashUsed),this._stashUsed+=de.byteLength}else{let ot=this._dispatchChunks(de,pe);if(ot<de.byteLength){let ut=de.byteLength-ot;ut>this._bufferSize&&(this._expandBuffer(ut),Be=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Be.set(new Uint8Array(de,ot),0),this._stashUsed+=ut,this._stashByteStart=pe+ot}}}else if(this._stashUsed===0){let Be=this._dispatchChunks(de,pe);if(Be<de.byteLength){let ot=de.byteLength-Be;ot>this._bufferSize&&this._expandBuffer(ot),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(de,Be),0),this._stashUsed+=ot,this._stashByteStart=pe+Be}}else{this._stashUsed+de.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+de.byteLength);let Be=new Uint8Array(this._stashBuffer,0,this._bufferSize);Be.set(new Uint8Array(de),this._stashUsed),this._stashUsed+=de.byteLength;let ot=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(ot<this._stashUsed&&ot>0){let ut=new Uint8Array(this._stashBuffer,ot);Be.set(ut,0)}this._stashUsed-=ot,this._stashByteStart+=ot}}_flushStashBuffer(de){if(this._stashUsed>0){let pe=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(pe,this._stashByteStart),xe=pe.byteLength-Pe;if(Pe<pe.byteLength)if(de)fe.w(this.TAG,`${xe} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let Be=new Uint8Array(this._stashBuffer,0,this._bufferSize),ot=new Uint8Array(pe,Pe);Be.set(ot,0),this._stashUsed=ot.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,xe}return 0}_onLoaderComplete(de,pe){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(de,pe){switch(fe.e(this.TAG,`Loader error, code = ${pe.code}, msg = ${pe.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,de=ne.UNRECOVERABLE_EARLY_EOF),de){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(fe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}de=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(de,pe);else throw new le("IOException: "+pe.msg)}}var Fe=we;const He={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 st(){return Object.assign({},He)}class Ke{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let de=new Fe({},st()),pe=de.loaderType;return de.destroy(),pe=="fetch-stream-loader"||pe=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let de=new Fe({},st()),pe=de.loaderType;return de.destroy(),pe}static supportNativeMediaPlayback(de){Ke.videoElement==null&&(Ke.videoElement=window.document.createElement("video"));let pe=Ke.videoElement.canPlayType(de);return pe==="probably"||pe=="maybe"}static getFeatureList(){let de={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return de.mseFlvPlayback=Ke.supportMSEH264Playback(),de.networkStreamIO=Ke.supportNetworkStreamIO(),de.networkLoaderName=Ke.getNetworkLoaderTypeName(),de.mseLiveFlvPlayback=de.mseFlvPlayback&&de.networkStreamIO,de.nativeMP4H264Playback=Ke.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),de.nativeWebmVP8Playback=Ke.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),de.nativeWebmVP9Playback=Ke.supportNativeMediaPlayback('video/webm; codecs="vp9"'),de}}var mt=Ke,At={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 kt{static get forceGlobalTag(){return fe.FORCE_GLOBAL_TAG}static set forceGlobalTag(de){fe.FORCE_GLOBAL_TAG=de,kt._notifyChange()}static get globalTag(){return fe.GLOBAL_TAG}static set globalTag(de){fe.GLOBAL_TAG=de,kt._notifyChange()}static get enableAll(){return fe.ENABLE_VERBOSE&&fe.ENABLE_DEBUG&&fe.ENABLE_INFO&&fe.ENABLE_WARN&&fe.ENABLE_ERROR}static set enableAll(de){fe.ENABLE_VERBOSE=de,fe.ENABLE_DEBUG=de,fe.ENABLE_INFO=de,fe.ENABLE_WARN=de,fe.ENABLE_ERROR=de,kt._notifyChange()}static get enableDebug(){return fe.ENABLE_DEBUG}static set enableDebug(de){fe.ENABLE_DEBUG=de,kt._notifyChange()}static get enableVerbose(){return fe.ENABLE_VERBOSE}static set enableVerbose(de){fe.ENABLE_VERBOSE=de,kt._notifyChange()}static get enableInfo(){return fe.ENABLE_INFO}static set enableInfo(de){fe.ENABLE_INFO=de,kt._notifyChange()}static get enableWarn(){return fe.ENABLE_WARN}static set enableWarn(de){fe.ENABLE_WARN=de,kt._notifyChange()}static get enableError(){return fe.ENABLE_ERROR}static set enableError(de){fe.ENABLE_ERROR=de,kt._notifyChange()}static getConfig(){return{globalTag:fe.GLOBAL_TAG,forceGlobalTag:fe.FORCE_GLOBAL_TAG,enableVerbose:fe.ENABLE_VERBOSE,enableDebug:fe.ENABLE_DEBUG,enableInfo:fe.ENABLE_INFO,enableWarn:fe.ENABLE_WARN,enableError:fe.ENABLE_ERROR,enableCallback:fe.ENABLE_CALLBACK}}static applyConfig(de){fe.GLOBAL_TAG=de.globalTag,fe.FORCE_GLOBAL_TAG=de.forceGlobalTag,fe.ENABLE_VERBOSE=de.enableVerbose,fe.ENABLE_DEBUG=de.enableDebug,fe.ENABLE_INFO=de.enableInfo,fe.ENABLE_WARN=de.enableWarn,fe.ENABLE_ERROR=de.enableError,fe.ENABLE_CALLBACK=de.enableCallback}static _notifyChange(){let de=kt.emitter;if(de.listenerCount("change")>0){let pe=kt.getConfig();de.emit("change",pe)}}static registerListener(de){kt.emitter.addListener("change",de)}static removeListener(de){kt.emitter.removeListener("change",de)}static addLogListener(de){fe.emitter.addListener("log",de),fe.emitter.listenerCount("log")>0&&(fe.ENABLE_CALLBACK=!0,kt._notifyChange())}static removeLogListener(de){fe.emitter.removeListener("log",de),fe.emitter.listenerCount("log")===0&&(fe.ENABLE_CALLBACK=!1,kt._notifyChange())}}kt.emitter=new(ve());var rt=kt;class Qe{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 de=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,pe=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&&de&&pe}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(de){if(this.keyframesIndex==null)return null;let pe=this.keyframesIndex,Pe=this._search(pe.times,de);return{index:Pe,milliseconds:pe.times[Pe],fileposition:pe.filepositions[Pe]}}_search(de,pe){let Pe=0,xe=de.length-1,Be=0,ot=0,ut=xe;for(pe<de[0]&&(Pe=0,ot=ut+1);ot<=ut;)if(Be=ot+Math.floor((ut-ot)/2),Be===xe||pe>=de[Be]&&pe<de[Be+1]){Pe=Be;break}else de[Be]<pe?ot=Be+1:ut=Be-1;return Pe}}var Pt=Qe;function zt($t,de,pe){let Pe=$t;if(de+pe<Pe.length){for(;pe--;)if((Pe[++de]&192)!==128)return!1;return!0}else return!1}function Ct($t){let de=[],pe=$t,Pe=0,xe=$t.length;for(;Pe<xe;){if(pe[Pe]<128){de.push(String.fromCharCode(pe[Pe])),++Pe;continue}else if(!(pe[Pe]<192)){if(pe[Pe]<224){if(zt(pe,Pe,1)){let Be=(pe[Pe]&31)<<6|pe[Pe+1]&63;if(Be>=128){de.push(String.fromCharCode(Be&65535)),Pe+=2;continue}}}else if(pe[Pe]<240){if(zt(pe,Pe,2)){let Be=(pe[Pe]&15)<<12|(pe[Pe+1]&63)<<6|pe[Pe+2]&63;if(Be>=2048&&(Be&63488)!==55296){de.push(String.fromCharCode(Be&65535)),Pe+=3;continue}}}else if(pe[Pe]<248&&zt(pe,Pe,3)){let Be=(pe[Pe]&7)<<18|(pe[Pe+1]&63)<<12|(pe[Pe+2]&63)<<6|pe[Pe+3]&63;if(Be>65536&&Be<1114112){Be-=65536,de.push(String.fromCharCode(Be>>>10|55296)),de.push(String.fromCharCode(Be&1023|56320)),Pe+=4;continue}}}de.push("\uFFFD"),++Pe}return de.join("")}var sn=Ct;let Ze=function(){let $t=new ArrayBuffer(2);return new DataView($t).setInt16(0,256,!0),new Int16Array($t)[0]===256}();class St{static parseScriptData(de,pe,Pe){let xe={};try{let Be=St.parseValue(de,pe,Pe),ot=St.parseValue(de,pe+Be.size,Pe-Be.size);xe[Be.data]=ot.data}catch(Be){fe.e("AMF",Be.toString())}return xe}static parseObject(de,pe,Pe){if(Pe<3)throw new me("Data not enough when parse ScriptDataObject");let xe=St.parseString(de,pe,Pe),Be=St.parseValue(de,pe+xe.size,Pe-xe.size),ot=Be.objectEnd;return{data:{name:xe.data,value:Be.data},size:xe.size+Be.size,objectEnd:ot}}static parseVariable(de,pe,Pe){return St.parseObject(de,pe,Pe)}static parseString(de,pe,Pe){if(Pe<2)throw new me("Data not enough when parse String");let Be=new DataView(de,pe,Pe).getUint16(0,!Ze),ot;return Be>0?ot=sn(new Uint8Array(de,pe+2,Be)):ot="",{data:ot,size:2+Be}}static parseLongString(de,pe,Pe){if(Pe<4)throw new me("Data not enough when parse LongString");let Be=new DataView(de,pe,Pe).getUint32(0,!Ze),ot;return Be>0?ot=sn(new Uint8Array(de,pe+4,Be)):ot="",{data:ot,size:4+Be}}static parseDate(de,pe,Pe){if(Pe<10)throw new me("Data size invalid when parse Date");let xe=new DataView(de,pe,Pe),Be=xe.getFloat64(0,!Ze),ot=xe.getInt16(8,!Ze);return Be+=ot*60*1e3,{data:new Date(Be),size:10}}static parseValue(de,pe,Pe){if(Pe<1)throw new me("Data not enough when parse Value");let xe=new DataView(de,pe,Pe),Be=1,ot=xe.getUint8(0),ut,nn=!1;try{switch(ot){case 0:ut=xe.getFloat64(1,!Ze),Be+=8;break;case 1:{ut=!!xe.getUint8(1),Be+=1;break}case 2:{let Zt=St.parseString(de,pe+1,Pe-1);ut=Zt.data,Be+=Zt.size;break}case 3:{ut={};let Zt=0;for((xe.getUint32(Pe-4,!Ze)&16777215)===9&&(Zt=3);Be<Pe-4;){let qt=St.parseObject(de,pe+Be,Pe-Be-Zt);if(qt.objectEnd)break;ut[qt.data.name]=qt.data.value,Be+=qt.size}Be<=Pe-3&&(xe.getUint32(Be-1,!Ze)&16777215)===9&&(Be+=3);break}case 8:{ut={},Be+=4;let Zt=0;for((xe.getUint32(Pe-4,!Ze)&16777215)===9&&(Zt=3);Be<Pe-8;){let qt=St.parseVariable(de,pe+Be,Pe-Be-Zt);if(qt.objectEnd)break;ut[qt.data.name]=qt.data.value,Be+=qt.size}Be<=Pe-3&&(xe.getUint32(Be-1,!Ze)&16777215)===9&&(Be+=3);break}case 9:ut=void 0,Be=1,nn=!0;break;case 10:{ut=[];let Zt=xe.getUint32(1,!Ze);Be+=4;for(let qt=0;qt<Zt;qt++){let bn=St.parseValue(de,pe+Be,Pe-Be);ut.push(bn.data),Be+=bn.size}break}case 11:{let Zt=St.parseDate(de,pe+1,Pe-1);ut=Zt.data,Be+=Zt.size;break}case 12:{let Zt=St.parseString(de,pe+1,Pe-1);ut=Zt.data,Be+=Zt.size;break}default:Be=Pe,fe.w("AMF","Unsupported AMF value type "+ot)}}catch(Zt){fe.e("AMF",Zt.toString())}return{data:ut,size:Be,objectEnd:nn}}}var xt=St;class ln{constructor(de){this.TAG="ExpGolomb",this._buffer=de,this._buffer_index=0,this._total_bytes=de.byteLength,this._total_bits=de.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let de=this._total_bytes-this._buffer_index;if(de<=0)throw new me("ExpGolomb: _fillCurrentWord() but no bytes available");let pe=Math.min(4,de),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+pe)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=pe,this._current_word_bits_left=pe*8}readBits(de){if(de>32)throw new ae("ExpGolomb: readBits() bits exceeded max 32bits!");if(de<=this._current_word_bits_left){let ot=this._current_word>>>32-de;return this._current_word<<=de,this._current_word_bits_left-=de,ot}let pe=this._current_word_bits_left?this._current_word:0;pe=pe>>>32-this._current_word_bits_left;let Pe=de-this._current_word_bits_left;this._fillCurrentWord();let xe=Math.min(Pe,this._current_word_bits_left),Be=this._current_word>>>32-xe;return this._current_word<<=xe,this._current_word_bits_left-=xe,pe=pe<<xe|Be,pe}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let de;for(de=0;de<this._current_word_bits_left;de++)if(this._current_word&2147483648>>>de)return this._current_word<<=de,this._current_word_bits_left-=de,de;return this._fillCurrentWord(),de+this._skipLeadingZero()}readUEG(){let de=this._skipLeadingZero();return this.readBits(de+1)-1}readSEG(){let de=this.readUEG();return de&1?de+1>>>1:-1*(de>>>1)}}var Gt=ln;class lt{static _ebsp2rbsp(de){let pe=de,Pe=pe.byteLength,xe=new Uint8Array(Pe),Be=0;for(let ot=0;ot<Pe;ot++)ot>=2&&pe[ot]===3&&pe[ot-1]===0&&pe[ot-2]===0||(xe[Be]=pe[ot],Be++);return new Uint8Array(xe.buffer,0,Be)}static parseSPS(de){let pe=lt._ebsp2rbsp(de),Pe=new Gt(pe);Pe.readByte();let xe=Pe.readByte();Pe.readByte();let Be=Pe.readByte();Pe.readUEG();let ot=lt.getProfileString(xe),ut=lt.getLevelString(Be),nn=1,Zt=420,qt=[0,420,422,444],bn=8;if((xe===100||xe===110||xe===122||xe===244||xe===44||xe===83||xe===86||xe===118||xe===128||xe===138||xe===144)&&(nn=Pe.readUEG(),nn===3&&Pe.readBits(1),nn<=3&&(Zt=qt[nn]),bn=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Hn=nn!==3?8:12;for(let mn=0;mn<Hn;mn++)Pe.readBool()&&(mn<6?lt._skipScalingList(Pe,16):lt._skipScalingList(Pe,64))}Pe.readUEG();let Rt=Pe.readUEG();if(Rt===0)Pe.readUEG();else if(Rt===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let Hn=Pe.readUEG();for(let mn=0;mn<Hn;mn++)Pe.readSEG()}let $e=Pe.readUEG();Pe.readBits(1);let Mt=Pe.readUEG(),Ft=Pe.readUEG(),wt=Pe.readBits(1);wt===0&&Pe.readBits(1),Pe.readBits(1);let Bt=0,Kt=0,Xt=0,yn=0;Pe.readBool()&&(Bt=Pe.readUEG(),Kt=Pe.readUEG(),Xt=Pe.readUEG(),yn=Pe.readUEG());let Un=1,cn=1,Ln=0,Jn=!0,rr=0,fr=0;if(Pe.readBool()){if(Pe.readBool()){let Hn=Pe.readByte(),mn=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ir=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Hn>0&&Hn<16?(Un=mn[Hn-1],cn=ir[Hn-1]):Hn===255&&(Un=Pe.readByte()<<8|Pe.readByte(),cn=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 Hn=Pe.readBits(32),mn=Pe.readBits(32);Jn=Pe.readBool(),rr=mn,fr=Hn*2,Ln=rr/fr}}let Lr=1;(Un!==1||cn!==1)&&(Lr=Un/cn);let dr=0,Qr=0;if(nn===0)dr=1,Qr=2-wt;else{let Hn=nn===3?1:2,mn=nn===1?2:1;dr=Hn,Qr=mn*(2-wt)}let Sr=(Mt+1)*16,on=(2-wt)*((Ft+1)*16);Sr-=(Bt+Kt)*dr,on-=(Xt+yn)*Qr;let wn=Math.ceil(Sr*Lr);return Pe.destroy(),Pe=null,{profile_string:ot,level_string:ut,bit_depth:bn,ref_frames:$e,chroma_format:Zt,chroma_format_string:lt.getChromaFormatString(Zt),frame_rate:{fixed:Jn,fps:Ln,fps_den:fr,fps_num:rr},sar_ratio:{width:Un,height:cn},codec_size:{width:Sr,height:on},present_size:{width:wn,height:on}}}static _skipScalingList(de,pe){let Pe=8,xe=8,Be=0;for(let ot=0;ot<pe;ot++)xe!==0&&(Be=de.readSEG(),xe=(Pe+Be+256)%256),Pe=xe===0?Pe:xe}static getProfileString(de){switch(de){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(de){return(de/10).toFixed(1)}static getChromaFormatString(de){switch(de){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var ct=lt,Ne={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function tt($t){return $t>>>8&255|($t&255)<<8}function Et($t){return($t&4278190080)>>>24|($t&16711680)>>>8|($t&65280)<<8|($t&255)<<24}function Ie($t,de){return $t[de]<<24|$t[de+1]<<16|$t[de+2]<<8|$t[de+3]}class Oe{constructor(de,pe){this.TAG="FLVDemuxer",this._config=pe,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=de.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=de.hasAudioTrack,this._hasVideo=de.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Pt,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(de){let pe=new Uint8Array(de),Pe={match:!1};if(pe[0]!==70||pe[1]!==76||pe[2]!==86||pe[3]!==1)return Pe;let xe=(pe[4]&4)>>>2!==0,Be=(pe[4]&1)!==0,ot=Ie(pe,5);return ot<9?Pe:{match:!0,consumed:ot,dataOffset:ot,hasAudioTrack:xe,hasVideoTrack:Be}}bindDataSource(de){return de.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(de){this._onTrackMetadata=de}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(de){this._onMediaInfo=de}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(de){this._onMetaDataArrived=de}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(de){this._onScriptDataArrived=de}get onError(){return this._onError}set onError(de){this._onError=de}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(de){this._onDataAvailable=de}get timestampBase(){return this._timestampBase}set timestampBase(de){this._timestampBase=de}get overridedDuration(){return this._duration}set overridedDuration(de){this._durationOverrided=!0,this._duration=de,this._mediaInfo.duration=de}set overridedHasAudio(de){this._hasAudioFlagOverrided=!0,this._hasAudio=de,this._mediaInfo.hasAudio=de}set overridedHasVideo(de){this._hasVideoFlagOverrided=!0,this._hasVideo=de,this._mediaInfo.hasVideo=de}resetMediaInfo(){this._mediaInfo=new Pt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(de,pe){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new me("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,xe=this._littleEndian;if(pe===0)if(de.byteLength>13)Pe=Oe.probe(de).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,pe+Pe!==this._dataOffset&&fe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(de,Pe).getUint32(0,!xe)!==0&&fe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<de.byteLength;){this._dispatch=!0;let Be=new DataView(de,Pe);if(Pe+11+4>de.byteLength)break;let ot=Be.getUint8(0),ut=Be.getUint32(0,!xe)&16777215;if(Pe+11+ut+4>de.byteLength)break;if(ot!==8&&ot!==9&&ot!==18){fe.w(this.TAG,`Unsupported tag type ${ot}, skipped`),Pe+=11+ut+4;continue}let nn=Be.getUint8(4),Zt=Be.getUint8(5),qt=Be.getUint8(6),bn=Be.getUint8(7),Rt=qt|Zt<<8|nn<<16|bn<<24;(Be.getUint32(7,!xe)&16777215)!==0&&fe.w(this.TAG,"Meet tag which has StreamID != 0!");let Mt=Pe+11;switch(ot){case 8:this._parseAudioData(de,Mt,ut,Rt);break;case 9:this._parseVideoData(de,Mt,ut,Rt,pe+Pe);break;case 18:this._parseScriptData(de,Mt,ut);break}let Ft=Be.getUint32(11+ut,!xe);Ft!==11+ut&&fe.w(this.TAG,`Invalid PrevTagSize ${Ft}`),Pe+=11+ut+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(de,pe,Pe){let xe=xt.parseScriptData(de,pe,Pe);if(xe.hasOwnProperty("onMetaData")){if(xe.onMetaData==null||typeof xe.onMetaData!="object"){fe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&fe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=xe;let Be=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Be)),typeof Be.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Be.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Be.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Be.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Be.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Be.audiodatarate),typeof Be.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Be.videodatarate),typeof Be.width=="number"&&(this._mediaInfo.width=Be.width),typeof Be.height=="number"&&(this._mediaInfo.height=Be.height),typeof Be.duration=="number"){if(!this._durationOverrided){let ot=Math.floor(Be.duration*this._timescale);this._duration=ot,this._mediaInfo.duration=ot}}else this._mediaInfo.duration=0;if(typeof Be.framerate=="number"){let ot=Math.floor(Be.framerate*1e3);if(ot>0){let ut=ot/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=ut,this._referenceFrameRate.fps_num=ot,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=ut}}if(typeof Be.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let ot=Be.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(ot),Be.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Be,fe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(xe).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},xe))}_parseKeyframesIndex(de){let pe=[],Pe=[];for(let xe=1;xe<de.times.length;xe++){let Be=this._timestampBase+Math.floor(de.times[xe]*1e3);pe.push(Be),Pe.push(de.filepositions[xe])}return{times:pe,filepositions:Pe}}_parseAudioData(de,pe,Pe,xe){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Be=this._littleEndian,ut=new DataView(de,pe,Pe).getUint8(0),nn=ut>>>4;if(nn!==2&&nn!==10){this._onError(Ne.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+nn);return}let Zt=0,qt=(ut&12)>>>2;if(qt>=0&&qt<=4)Zt=this._flvSoundRateTable[qt];else{this._onError(Ne.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+qt);return}let bn=(ut&2)>>>1,Rt=ut&1,$e=this._audioMetadata,Mt=this._audioTrack;if($e||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),$e=this._audioMetadata={},$e.type="audio",$e.id=Mt.id,$e.timescale=this._timescale,$e.duration=this._duration,$e.audioSampleRate=Zt,$e.channelCount=Rt===0?1:2),nn===10){let Ft=this._parseAACAudioData(de,pe+1,Pe-1);if(Ft==null)return;if(Ft.packetType===0){$e.config&&fe.w(this.TAG,"Found another AudioSpecificConfig!");let wt=Ft.data;$e.audioSampleRate=wt.samplingRate,$e.channelCount=wt.channelCount,$e.codec=wt.codec,$e.originalCodec=wt.originalCodec,$e.config=wt.config,$e.refSampleDuration=1024/$e.audioSampleRate*$e.timescale,fe.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",$e);let Bt=this._mediaInfo;Bt.audioCodec=$e.originalCodec,Bt.audioSampleRate=$e.audioSampleRate,Bt.audioChannelCount=$e.channelCount,Bt.hasVideo?Bt.videoCodec!=null&&(Bt.mimeType='video/x-flv; codecs="'+Bt.videoCodec+","+Bt.audioCodec+'"'):Bt.mimeType='video/x-flv; codecs="'+Bt.audioCodec+'"',Bt.isComplete()&&this._onMediaInfo(Bt)}else if(Ft.packetType===1){let wt=this._timestampBase+xe,Bt={unit:Ft.data,length:Ft.data.byteLength,dts:wt,pts:wt};Mt.samples.push(Bt),Mt.length+=Ft.data.length}else fe.e(this.TAG,`Flv: Unsupported AAC data type ${Ft.packetType}`)}else if(nn===2){if(!$e.codec){let Kt=this._parseMP3AudioData(de,pe+1,Pe-1,!0);if(Kt==null)return;$e.audioSampleRate=Kt.samplingRate,$e.channelCount=Kt.channelCount,$e.codec=Kt.codec,$e.originalCodec=Kt.originalCodec,$e.refSampleDuration=1152/$e.audioSampleRate*$e.timescale,fe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",$e);let Xt=this._mediaInfo;Xt.audioCodec=$e.codec,Xt.audioSampleRate=$e.audioSampleRate,Xt.audioChannelCount=$e.channelCount,Xt.audioDataRate=Kt.bitRate,Xt.hasVideo?Xt.videoCodec!=null&&(Xt.mimeType='video/x-flv; codecs="'+Xt.videoCodec+","+Xt.audioCodec+'"'):Xt.mimeType='video/x-flv; codecs="'+Xt.audioCodec+'"',Xt.isComplete()&&this._onMediaInfo(Xt)}let Ft=this._parseMP3AudioData(de,pe+1,Pe-1,!1);if(Ft==null)return;let wt=this._timestampBase+xe,Bt={unit:Ft,length:Ft.byteLength,dts:wt,pts:wt};Mt.samples.push(Bt),Mt.length+=Ft.length}}_parseAACAudioData(de,pe,Pe){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let xe={},Be=new Uint8Array(de,pe,Pe);return xe.packetType=Be[0],Be[0]===0?xe.data=this._parseAACAudioSpecificConfig(de,pe+1,Pe-1):xe.data=Be.subarray(1),xe}_parseAACAudioSpecificConfig(de,pe,Pe){let xe=new Uint8Array(de,pe,Pe),Be=null,ot=0,ut=0,nn=null,Zt=0,qt=null;if(ot=ut=xe[0]>>>3,Zt=(xe[0]&7)<<1|xe[1]>>>7,Zt<0||Zt>=this._mpegSamplingRates.length){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let bn=this._mpegSamplingRates[Zt],Rt=(xe[1]&120)>>>3;if(Rt<0||Rt>=8){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}ot===5&&(qt=(xe[1]&7)<<1|xe[2]>>>7,nn=(xe[2]&124)>>>2);let $e=self.navigator.userAgent.toLowerCase();return $e.indexOf("firefox")!==-1?Zt>=6?(ot=5,Be=new Array(4),qt=Zt-3):(ot=2,Be=new Array(2),qt=Zt):$e.indexOf("android")!==-1?(ot=2,Be=new Array(2),qt=Zt):(ot=5,qt=Zt,Be=new Array(4),Zt>=6?qt=Zt-3:Rt===1&&(ot=2,Be=new Array(2),qt=Zt)),Be[0]=ot<<3,Be[0]|=(Zt&15)>>>1,Be[1]=(Zt&15)<<7,Be[1]|=(Rt&15)<<3,ot===5&&(Be[1]|=(qt&15)>>>1,Be[2]=(qt&1)<<7,Be[2]|=8,Be[3]=0),{config:Be,samplingRate:bn,channelCount:Rt,codec:"mp4a.40."+ot,originalCodec:"mp4a.40."+ut}}_parseMP3AudioData(de,pe,Pe,xe){if(Pe<4){fe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Be=this._littleEndian,ot=new Uint8Array(de,pe,Pe),ut=null;if(xe){if(ot[0]!==255)return;let nn=ot[1]>>>3&3,Zt=(ot[1]&6)>>1,qt=(ot[2]&240)>>>4,bn=(ot[2]&12)>>>2,$e=(ot[3]>>>6&3)!==3?2:1,Mt=0,Ft=0,wt=34,Bt="mp3";switch(nn){case 0:Mt=this._mpegAudioV25SampleRateTable[bn];break;case 2:Mt=this._mpegAudioV20SampleRateTable[bn];break;case 3:Mt=this._mpegAudioV10SampleRateTable[bn];break}switch(Zt){case 1:wt=34,qt<this._mpegAudioL3BitRateTable.length&&(Ft=this._mpegAudioL3BitRateTable[qt]);break;case 2:wt=33,qt<this._mpegAudioL2BitRateTable.length&&(Ft=this._mpegAudioL2BitRateTable[qt]);break;case 3:wt=32,qt<this._mpegAudioL1BitRateTable.length&&(Ft=this._mpegAudioL1BitRateTable[qt]);break}ut={bitRate:Ft,samplingRate:Mt,channelCount:$e,codec:Bt,originalCodec:Bt}}else ut=ot;return ut}_parseVideoData(de,pe,Pe,xe,Be){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let ot=new Uint8Array(de,pe,Pe)[0],ut=(ot&240)>>>4,nn=ot&15;if(nn!==7){this._onError(Ne.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${nn}`);return}this._parseAVCVideoPacket(de,pe+1,Pe-1,xe,Be,ut)}_parseAVCVideoPacket(de,pe,Pe,xe,Be,ot){if(Pe<4){fe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let ut=this._littleEndian,nn=new DataView(de,pe,Pe),Zt=nn.getUint8(0),bn=(nn.getUint32(0,!ut)&16777215)<<8>>8;if(Zt===0)this._parseAVCDecoderConfigurationRecord(de,pe+4,Pe-4);else if(Zt===1)this._parseAVCVideoData(de,pe+4,Pe-4,xe,Be,ot,bn);else if(Zt!==2){this._onError(Ne.FORMAT_ERROR,`Flv: Invalid video packet type ${Zt}`);return}}_parseAVCDecoderConfigurationRecord(de,pe,Pe){if(Pe<7){fe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let xe=this._videoMetadata,Be=this._videoTrack,ot=this._littleEndian,ut=new DataView(de,pe,Pe);xe?typeof xe.avcc!="undefined"&&fe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),xe=this._videoMetadata={},xe.type="video",xe.id=Be.id,xe.timescale=this._timescale,xe.duration=this._duration);let nn=ut.getUint8(0),Zt=ut.getUint8(1),qt=ut.getUint8(2),bn=ut.getUint8(3);if(nn!==1||Zt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ut.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ne.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Rt=ut.getUint8(5)&31;if(Rt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Rt>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Rt}`);let $e=6;for(let Ft=0;Ft<Rt;Ft++){let wt=ut.getUint16($e,!ot);if($e+=2,wt===0)continue;let Bt=new Uint8Array(de,pe+$e,wt);$e+=wt;let Kt=ct.parseSPS(Bt);if(Ft!==0)continue;xe.codecWidth=Kt.codec_size.width,xe.codecHeight=Kt.codec_size.height,xe.presentWidth=Kt.present_size.width,xe.presentHeight=Kt.present_size.height,xe.profile=Kt.profile_string,xe.level=Kt.level_string,xe.bitDepth=Kt.bit_depth,xe.chromaFormat=Kt.chroma_format,xe.sarRatio=Kt.sar_ratio,xe.frameRate=Kt.frame_rate,(Kt.frame_rate.fixed===!1||Kt.frame_rate.fps_num===0||Kt.frame_rate.fps_den===0)&&(xe.frameRate=this._referenceFrameRate);let Xt=xe.frameRate.fps_den,yn=xe.frameRate.fps_num;xe.refSampleDuration=xe.timescale*(Xt/yn);let Nn=Bt.subarray(1,4),Un="avc1.";for(let Ln=0;Ln<3;Ln++){let Jn=Nn[Ln].toString(16);Jn.length<2&&(Jn="0"+Jn),Un+=Jn}xe.codec=Un;let cn=this._mediaInfo;cn.width=xe.codecWidth,cn.height=xe.codecHeight,cn.fps=xe.frameRate.fps,cn.profile=xe.profile,cn.level=xe.level,cn.refFrames=Kt.ref_frames,cn.chromaFormat=Kt.chroma_format_string,cn.sarNum=xe.sarRatio.width,cn.sarDen=xe.sarRatio.height,cn.videoCodec=Un,cn.hasAudio?cn.audioCodec!=null&&(cn.mimeType='video/x-flv; codecs="'+cn.videoCodec+","+cn.audioCodec+'"'):cn.mimeType='video/x-flv; codecs="'+cn.videoCodec+'"',cn.isComplete()&&this._onMediaInfo(cn)}let Mt=ut.getUint8($e);if(Mt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Mt>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Mt}`);$e++;for(let Ft=0;Ft<Mt;Ft++){let wt=ut.getUint16($e,!ot);$e+=2,wt!==0&&($e+=wt)}xe.avcc=new Uint8Array(Pe),xe.avcc.set(new Uint8Array(de,pe,Pe),0),fe.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",xe)}_parseAVCVideoData(de,pe,Pe,xe,Be,ot,ut){let nn=this._littleEndian,Zt=new DataView(de,pe,Pe),qt=[],bn=0,Rt=0;const $e=this._naluLengthSize;let Mt=this._timestampBase+xe,Ft=ot===1;for(;Rt<Pe;){if(Rt+4>=Pe){fe.w(this.TAG,`Malformed Nalu near timestamp ${Mt}, offset = ${Rt}, dataSize = ${Pe}`);break}let wt=Zt.getUint32(Rt,!nn);if($e===3&&(wt>>>=8),wt>Pe-$e){fe.w(this.TAG,`Malformed Nalus near timestamp ${Mt}, NaluSize > DataSize!`);return}let Bt=Zt.getUint8(Rt+$e)&31;Bt===5&&(Ft=!0);let Kt=new Uint8Array(de,pe+Rt,$e+wt),Xt={type:Bt,data:Kt};qt.push(Xt),bn+=Kt.byteLength,Rt+=$e+wt}if(qt.length){let wt=this._videoTrack,Bt={units:qt,length:bn,isKeyframe:Ft,dts:Mt,cts:ut,pts:Mt+ut};Ft&&(Bt.fileposition=Be),wt.samples.push(Bt),wt.length+=bn}}}var We=Oe;class ke{static init(){ke.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 pe in ke.types)ke.types.hasOwnProperty(pe)&&(ke.types[pe]=[pe.charCodeAt(0),pe.charCodeAt(1),pe.charCodeAt(2),pe.charCodeAt(3)]);let de=ke.constants={};de.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),de.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),de.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),de.STSC=de.STCO=de.STTS,de.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),de.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]),de.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]),de.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),de.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),de.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(de){let pe=8,Pe=null,xe=Array.prototype.slice.call(arguments,1),Be=xe.length;for(let ut=0;ut<Be;ut++)pe+=xe[ut].byteLength;Pe=new Uint8Array(pe),Pe[0]=pe>>>24&255,Pe[1]=pe>>>16&255,Pe[2]=pe>>>8&255,Pe[3]=pe&255,Pe.set(de,4);let ot=8;for(let ut=0;ut<Be;ut++)Pe.set(xe[ut],ot),ot+=xe[ut].byteLength;return Pe}static generateInitSegment(de){let pe=ke.box(ke.types.ftyp,ke.constants.FTYP),Pe=ke.moov(de),xe=new Uint8Array(pe.byteLength+Pe.byteLength);return xe.set(pe,0),xe.set(Pe,pe.byteLength),xe}static moov(de){let pe=ke.mvhd(de.timescale,de.duration),Pe=ke.trak(de),xe=ke.mvex(de);return ke.box(ke.types.moov,pe,Pe,xe)}static mvhd(de,pe){return ke.box(ke.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,de>>>24&255,de>>>16&255,de>>>8&255,de&255,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&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(de){return ke.box(ke.types.trak,ke.tkhd(de),ke.mdia(de))}static tkhd(de){let pe=de.id,Pe=de.duration,xe=de.presentWidth,Be=de.presentHeight;return ke.box(ke.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&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,xe>>>8&255,xe&255,0,0,Be>>>8&255,Be&255,0,0]))}static mdia(de){return ke.box(ke.types.mdia,ke.mdhd(de),ke.hdlr(de),ke.minf(de))}static mdhd(de){let pe=de.timescale,Pe=de.duration;return ke.box(ke.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(de){let pe=null;return de.type==="audio"?pe=ke.constants.HDLR_AUDIO:pe=ke.constants.HDLR_VIDEO,ke.box(ke.types.hdlr,pe)}static minf(de){let pe=null;return de.type==="audio"?pe=ke.box(ke.types.smhd,ke.constants.SMHD):pe=ke.box(ke.types.vmhd,ke.constants.VMHD),ke.box(ke.types.minf,pe,ke.dinf(),ke.stbl(de))}static dinf(){return ke.box(ke.types.dinf,ke.box(ke.types.dref,ke.constants.DREF))}static stbl(de){return ke.box(ke.types.stbl,ke.stsd(de),ke.box(ke.types.stts,ke.constants.STTS),ke.box(ke.types.stsc,ke.constants.STSC),ke.box(ke.types.stsz,ke.constants.STSZ),ke.box(ke.types.stco,ke.constants.STCO))}static stsd(de){return de.type==="audio"?de.codec==="mp3"?ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.mp3(de)):ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.mp4a(de)):ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.avc1(de))}static mp3(de){let pe=de.channelCount,Pe=de.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,pe,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return ke.box(ke.types[".mp3"],xe)}static mp4a(de){let pe=de.channelCount,Pe=de.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,pe,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return ke.box(ke.types.mp4a,xe,ke.esds(de))}static esds(de){let pe=de.config||[],Pe=pe.length,xe=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(pe).concat([6,1,2]));return ke.box(ke.types.esds,xe)}static avc1(de){let pe=de.avcc,Pe=de.codecWidth,xe=de.codecHeight,Be=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,xe>>>8&255,xe&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 ke.box(ke.types.avc1,Be,ke.box(ke.types.avcC,pe))}static mvex(de){return ke.box(ke.types.mvex,ke.trex(de))}static trex(de){let pe=de.id,Pe=new Uint8Array([0,0,0,0,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return ke.box(ke.types.trex,Pe)}static moof(de,pe){return ke.box(ke.types.moof,ke.mfhd(de.sequenceNumber),ke.traf(de,pe))}static mfhd(de){let pe=new Uint8Array([0,0,0,0,de>>>24&255,de>>>16&255,de>>>8&255,de&255]);return ke.box(ke.types.mfhd,pe)}static traf(de,pe){let Pe=de.id,xe=ke.box(ke.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Be=ke.box(ke.types.tfdt,new Uint8Array([0,0,0,0,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255])),ot=ke.sdtp(de),ut=ke.trun(de,ot.byteLength+16+16+8+16+8+8);return ke.box(ke.types.traf,xe,Be,ut,ot)}static sdtp(de){let pe=de.samples||[],Pe=pe.length,xe=new Uint8Array(4+Pe);for(let Be=0;Be<Pe;Be++){let ot=pe[Be].flags;xe[Be+4]=ot.isLeading<<6|ot.dependsOn<<4|ot.isDependedOn<<2|ot.hasRedundancy}return ke.box(ke.types.sdtp,xe)}static trun(de,pe){let Pe=de.samples||[],xe=Pe.length,Be=12+16*xe,ot=new Uint8Array(Be);pe+=8+Be,ot.set([0,0,15,1,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255,pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255],0);for(let ut=0;ut<xe;ut++){let nn=Pe[ut].duration,Zt=Pe[ut].size,qt=Pe[ut].flags,bn=Pe[ut].cts;ot.set([nn>>>24&255,nn>>>16&255,nn>>>8&255,nn&255,Zt>>>24&255,Zt>>>16&255,Zt>>>8&255,Zt&255,qt.isLeading<<2|qt.dependsOn,qt.isDependedOn<<6|qt.hasRedundancy<<4|qt.isNonSync,0,0,bn>>>24&255,bn>>>16&255,bn>>>8&255,bn&255],12+16*ut)}return ke.box(ke.types.trun,ot)}static mdat(de){return ke.box(ke.types.mdat,de)}}ke.init();var ze=ke;class it{static getSilentFrame(de,pe){if(de==="mp4a.40.2"){if(pe===1)return new Uint8Array([0,200,0,128,35,128]);if(pe===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(pe===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(pe===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(pe===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(pe===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(pe===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(pe===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(pe===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 It=it;class Dt{constructor(de,pe,Pe,xe,Be){this.dts=de,this.pts=pe,this.duration=Pe,this.originalDts=xe,this.isSyncPoint=Be,this.fileposition=null}}class jt{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(de){de.isSyncPoint=!0,this.syncPoints.push(de)}}class Lt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(de){let pe=this._list;de.length!==0&&(pe.length>0&&de[0].originalDts<pe[pe.length-1].originalDts&&this.clear(),Array.prototype.push.apply(pe,de))}getLastSyncPointBeforeDts(de){if(this._list.length==0)return null;let pe=this._list,Pe=0,xe=pe.length-1,Be=0,ot=0,ut=xe;for(de<pe[0].dts&&(Pe=0,ot=ut+1);ot<=ut;)if(Be=ot+Math.floor((ut-ot)/2),Be===xe||de>=pe[Be].dts&&de<pe[Be+1].dts){Pe=Be;break}else pe[Be].dts<de?ot=Be+1:ut=Be-1;return this._list[Pe]}}class Ht{constructor(de){this._type=de,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(de){let pe=this._list;if(pe.length===0)return-2;let Pe=pe.length-1,xe=0,Be=0,ot=Pe,ut=0;if(de<pe[0].originalBeginDts)return ut=-1,ut;for(;Be<=ot;)if(xe=Be+Math.floor((ot-Be)/2),xe===Pe||de>pe[xe].lastSample.originalDts&&de<pe[xe+1].originalBeginDts){ut=xe;break}else pe[xe].originalBeginDts<de?Be=xe+1:ot=xe-1;return ut}_searchNearestSegmentAfter(de){return this._searchNearestSegmentBefore(de)+1}append(de){let pe=this._list,Pe=de,xe=this._lastAppendLocation,Be=0;xe!==-1&&xe<pe.length&&Pe.originalBeginDts>=pe[xe].lastSample.originalDts&&(xe===pe.length-1||xe<pe.length-1&&Pe.originalBeginDts<pe[xe+1].originalBeginDts)?Be=xe+1:pe.length>0&&(Be=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Be,this._list.splice(Be,0,Pe)}getLastSegmentBefore(de){let pe=this._searchNearestSegmentBefore(de);return pe>=0?this._list[pe]:null}getLastSampleBefore(de){let pe=this.getLastSegmentBefore(de);return pe!=null?pe.lastSample:null}getLastSyncPointBefore(de){let pe=this._searchNearestSegmentBefore(de),Pe=this._list[pe].syncPoints;for(;Pe.length===0&&pe>0;)pe--,Pe=this._list[pe].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class yt{constructor(de){this.TAG="MP4Remuxer",this._config=de,this._isLive=de.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 Ht("audio"),this._videoSegmentInfoList=new Ht("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(de){return de.onDataAvailable=this.remux.bind(this),de.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(de){this._onInitSegment=de}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(de){this._onMediaSegment=de}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(de){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(de,pe){if(!this._onMediaSegment)throw new me("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(de,pe),this._remuxVideo(pe),this._remuxAudio(de)}_onTrackMetadataReceived(de,pe){let Pe=null,xe="mp4",Be=pe.codec;if(de==="audio")this._audioMeta=pe,pe.codec==="mp3"&&this._mp3UseMpegAudio?(xe="mpeg",Be="",Pe=new Uint8Array):Pe=ze.generateInitSegment(pe);else if(de==="video")this._videoMeta=pe,Pe=ze.generateInitSegment(pe);else return;if(!this._onInitSegment)throw new me("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(de,{type:de,data:Pe.buffer,codec:Be,container:`${de}/${xe}`,mediaDuration:pe.duration})}_calculateDtsBase(de,pe){this._dtsBaseInited||(de.samples&&de.samples.length&&(this._audioDtsBase=de.samples[0].dts),pe.samples&&pe.samples.length&&(this._videoDtsBase=pe.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let de=this._videoStashedLastSample,pe=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};de!=null&&(Pe.samples.push(de),Pe.length=de.length);let xe={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};pe!=null&&(xe.samples.push(pe),xe.length=pe.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(xe,!0)}_remuxAudio(de,pe){if(this._audioMeta==null)return;let Pe=de,xe=Pe.samples,Be,ot=-1,ut=-1,nn=-1,Zt=this._audioMeta.refSampleDuration,qt=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,bn=this._dtsBaseInited&&this._audioNextDts===void 0,Rt=!1;if(!xe||xe.length===0||xe.length===1&&!pe)return;let $e=0,Mt=null,Ft=0;qt?($e=0,Ft=Pe.length):($e=8,Ft=8+Pe.length);let wt=null;if(xe.length>1&&(wt=xe.pop(),Ft-=wt.length),this._audioStashedLastSample!=null){let cn=this._audioStashedLastSample;this._audioStashedLastSample=null,xe.unshift(cn),Ft+=cn.length}wt!=null&&(this._audioStashedLastSample=wt);let Bt=xe[0].dts-this._dtsBase;if(this._audioNextDts)Be=Bt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Be=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Rt=!0);else{let cn=this._audioSegmentInfoList.getLastSampleBefore(Bt);if(cn!=null){let Ln=Bt-(cn.originalDts+cn.duration);Ln<=3&&(Ln=0);let Jn=cn.dts+cn.duration+Ln;Be=Bt-Jn}else Be=0}if(Rt){let cn=Bt-Be,Ln=this._videoSegmentInfoList.getLastSegmentBefore(Bt);if(Ln!=null&&Ln.beginDts<cn){let Jn=It.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Jn){let rr=Ln.beginDts,fr=cn-Ln.beginDts;fe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${rr}, duration: ${fr}`),xe.unshift({unit:Jn,dts:rr,pts:rr}),Ft+=Jn.byteLength}}else Rt=!1}let Kt=[];for(let cn=0;cn<xe.length;cn++){let Ln=xe[cn],Jn=Ln.unit,rr=Ln.dts-this._dtsBase,fr=rr-Be;ot===-1&&(ot=fr);let Ut=0;cn!==xe.length-1?Ut=xe[cn+1].dts-this._dtsBase-Be-fr:wt!=null?Ut=wt.dts-this._dtsBase-Be-fr:Kt.length>=1?Ut=Kt[Kt.length-1].duration:Ut=Math.floor(Zt);let Lr=!1,dr=null;if(Ut>Zt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Lr=!0;let Qr=Math.abs(Ut-Zt),Sr=Math.ceil(Qr/Zt),on=fr+Zt;fe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${fr+Ut} ms, expected: ${fr+Math.round(Zt)} ms, delta: ${Math.round(Qr)} ms, generate: ${Sr} frames`);let wn=It.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);wn==null&&(fe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),wn=Jn),dr=[];for(let mn=0;mn<Sr;mn++){let ir=Math.round(on);if(dr.length>0){let Br=dr[dr.length-1];Br.duration=ir-Br.dts}let ar={dts:ir,pts:ir,cts:0,unit:wn,size:wn.byteLength,duration:0,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};dr.push(ar),Ft+=ar.size,on+=Zt}let Hn=dr[dr.length-1];Hn.duration=fr+Ut-Hn.dts,Ut=Math.round(Zt)}Kt.push({dts:fr,pts:fr,cts:0,unit:Ln.unit,size:Ln.unit.byteLength,duration:Ut,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Lr&&Kt.push.apply(Kt,dr)}qt?Mt=new Uint8Array(Ft):(Mt=new Uint8Array(Ft),Mt[0]=Ft>>>24&255,Mt[1]=Ft>>>16&255,Mt[2]=Ft>>>8&255,Mt[3]=Ft&255,Mt.set(ze.types.mdat,4));for(let cn=0;cn<Kt.length;cn++){let Ln=Kt[cn].unit;Mt.set(Ln,$e),$e+=Ln.byteLength}let Xt=Kt[Kt.length-1];ut=Xt.dts+Xt.duration,this._audioNextDts=ut;let yn=new jt;yn.beginDts=ot,yn.endDts=ut,yn.beginPts=ot,yn.endPts=ut,yn.originalBeginDts=Kt[0].originalDts,yn.originalEndDts=Xt.originalDts+Xt.duration,yn.firstSample=new Dt(Kt[0].dts,Kt[0].pts,Kt[0].duration,Kt[0].originalDts,!1),yn.lastSample=new Dt(Xt.dts,Xt.pts,Xt.duration,Xt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(yn),Pe.samples=Kt,Pe.sequenceNumber++;let Nn=null;qt?Nn=new Uint8Array:Nn=ze.moof(Pe,ot),Pe.samples=[],Pe.length=0;let Un={type:"audio",data:this._mergeBoxes(Nn,Mt).buffer,sampleCount:Kt.length,info:yn};qt&&bn&&(Un.timestampOffset=ot),this._onMediaSegment("audio",Un)}_remuxVideo(de,pe){if(this._videoMeta==null)return;let Pe=de,xe=Pe.samples,Be,ot=-1,ut=-1,nn=-1,Zt=-1;if(!xe||xe.length===0||xe.length===1&&!pe)return;let qt=8,bn=null,Rt=8+de.length,$e=null;if(xe.length>1&&($e=xe.pop(),Rt-=$e.length),this._videoStashedLastSample!=null){let Xt=this._videoStashedLastSample;this._videoStashedLastSample=null,xe.unshift(Xt),Rt+=Xt.length}$e!=null&&(this._videoStashedLastSample=$e);let Mt=xe[0].dts-this._dtsBase;if(this._videoNextDts)Be=Mt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Be=0;else{let Xt=this._videoSegmentInfoList.getLastSampleBefore(Mt);if(Xt!=null){let yn=Mt-(Xt.originalDts+Xt.duration);yn<=3&&(yn=0);let Nn=Xt.dts+Xt.duration+yn;Be=Mt-Nn}else Be=0}let Ft=new jt,wt=[];for(let Xt=0;Xt<xe.length;Xt++){let yn=xe[Xt],Nn=yn.dts-this._dtsBase,Un=yn.isKeyframe,cn=Nn-Be,Ln=yn.cts,Jn=cn+Ln;ot===-1&&(ot=cn,nn=Jn);let rr=0;if(Xt!==xe.length-1?rr=xe[Xt+1].dts-this._dtsBase-Be-cn:$e!=null?rr=$e.dts-this._dtsBase-Be-cn:wt.length>=1?rr=wt[wt.length-1].duration:rr=Math.floor(this._videoMeta.refSampleDuration),Un){let fr=new Dt(cn,Jn,rr,yn.dts,!0);fr.fileposition=yn.fileposition,Ft.appendSyncPoint(fr)}wt.push({dts:cn,pts:Jn,cts:Ln,units:yn.units,size:yn.length,isKeyframe:Un,duration:rr,originalDts:Nn,flags:{isLeading:0,dependsOn:Un?2:1,isDependedOn:Un?1:0,hasRedundancy:0,isNonSync:Un?0:1}})}bn=new Uint8Array(Rt),bn[0]=Rt>>>24&255,bn[1]=Rt>>>16&255,bn[2]=Rt>>>8&255,bn[3]=Rt&255,bn.set(ze.types.mdat,4);for(let Xt=0;Xt<wt.length;Xt++){let yn=wt[Xt].units;for(;yn.length;){let Un=yn.shift().data;bn.set(Un,qt),qt+=Un.byteLength}}let Bt=wt[wt.length-1];if(ut=Bt.dts+Bt.duration,Zt=Bt.pts+Bt.duration,this._videoNextDts=ut,Ft.beginDts=ot,Ft.endDts=ut,Ft.beginPts=nn,Ft.endPts=Zt,Ft.originalBeginDts=wt[0].originalDts,Ft.originalEndDts=Bt.originalDts+Bt.duration,Ft.firstSample=new Dt(wt[0].dts,wt[0].pts,wt[0].duration,wt[0].originalDts,wt[0].isKeyframe),Ft.lastSample=new Dt(Bt.dts,Bt.pts,Bt.duration,Bt.originalDts,Bt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ft),Pe.samples=wt,Pe.sequenceNumber++,this._forceFirstIDR){let Xt=wt[0].flags;Xt.dependsOn=2,Xt.isNonSync=0}let Kt=ze.moof(Pe,ot);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Kt,bn).buffer,sampleCount:wt.length,info:Ft})}_mergeBoxes(de,pe){let Pe=new Uint8Array(de.byteLength+pe.byteLength);return Pe.set(de,0),Pe.set(pe,de.byteLength),Pe}}var fn=yt,bt={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 Sn{constructor(de,pe){this.TAG="TransmuxingController",this._emitter=new(ve()),this._config=pe,de.segments||(de.segments=[{duration:de.duration,filesize:de.filesize,url:de.url}]),typeof de.cors!="boolean"&&(de.cors=!0),typeof de.withCredentials!="boolean"&&(de.withCredentials=!1),this._mediaDataSource=de,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(xe=>{xe.timestampBase=Pe,Pe+=xe.duration,xe.cors=de.cors,xe.withCredentials=de.withCredentials,pe.referrerPolicy&&(xe.referrerPolicy=pe.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(de,pe){this._emitter.addListener(de,pe)}off(de,pe){this._emitter.removeListener(de,pe)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(de,pe){this._currentSegmentIndex=de;let Pe=this._mediaDataSource.segments[de],xe=this._ioctl=new Fe(Pe,this._config,de);xe.onError=this._onIOException.bind(this),xe.onSeeked=this._onIOSeeked.bind(this),xe.onComplete=this._onIOComplete.bind(this),xe.onRedirect=this._onIORedirect.bind(this),xe.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),pe?this._demuxer.bindDataSource(this._ioctl):xe.onDataArrival=this._onInitChunkArrival.bind(this),xe.open(pe)}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(de){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let pe=this._searchSegmentIndexContains(de);if(pe===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[pe];if(Pe==null)this._pendingSeekTime=de;else{let xe=Pe.getNearestKeyframe(de);this._remuxer.seek(xe.milliseconds),this._ioctl.seek(xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds}}else{let Pe=this._mediaInfo.segments[pe];if(Pe==null)this._pendingSeekTime=de,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(pe);else{let xe=Pe.getNearestKeyframe(de);this._internalAbort(),this._remuxer.seek(de),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[pe].timestampBase,this._loadSegment(pe,xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds,this._reportSegmentMediaInfo(pe)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(de){let pe=this._mediaDataSource.segments,Pe=pe.length-1;for(let xe=0;xe<pe.length;xe++)if(de<pe[xe].timestampBase){Pe=xe-1;break}return Pe}_onInitChunkArrival(de,pe){let Pe=null,xe=0;if(pe>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,xe=this._demuxer.parseChunks(de,pe);else if((Pe=We.probe(de)).match){this._demuxer=new We(Pe,this._config),this._remuxer||(this._remuxer=new fn(this._config));let Be=this._mediaDataSource;Be.duration!=null&&!isNaN(Be.duration)&&(this._demuxer.overridedDuration=Be.duration),typeof Be.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Be.hasAudio),typeof Be.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Be.hasVideo),this._demuxer.timestampBase=Be.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),xe=this._demuxer.parseChunks(de,pe)}else Pe=null,fe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(bt.DEMUX_ERROR,Ne.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),xe=0;return xe}_onMediaInfo(de){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},de),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Pt.prototype));let pe=Object.assign({},de);Object.setPrototypeOf(pe,Pt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=pe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(de){this._emitter.emit(bt.METADATA_ARRIVED,de)}_onScriptDataArrived(de){this._emitter.emit(bt.SCRIPTDATA_ARRIVED,de)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(de){let Pe=de+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(bt.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(de){let pe=this._ioctl.extraData;this._mediaDataSource.segments[pe].redirectedURL=de}_onIORecoveredEarlyEof(){this._emitter.emit(bt.RECOVERED_EARLY_EOF)}_onIOException(de,pe){fe.e(this.TAG,`IOException: type = ${de}, code = ${pe.code}, msg = ${pe.msg}`),this._emitter.emit(bt.IO_ERROR,de,pe),this._disableStatisticsReporter()}_onDemuxException(de,pe){fe.e(this.TAG,`DemuxException: type = ${de}, info = ${pe}`),this._emitter.emit(bt.DEMUX_ERROR,de,pe)}_onRemuxerInitSegmentArrival(de,pe){this._emitter.emit(bt.INIT_SEGMENT,de,pe)}_onRemuxerMediaSegmentArrival(de,pe){if(this._pendingSeekTime==null&&(this._emitter.emit(bt.MEDIA_SEGMENT,de,pe),this._pendingResolveSeekPoint!=null&&de==="video")){let Pe=pe.info.syncPoints,xe=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===xe&&(xe=Pe[0].pts),this._emitter.emit(bt.RECOMMEND_SEEKPOINT,xe)}}_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(de){let pe=this._mediaInfo.segments[de],Pe=Object.assign({},pe);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(bt.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let de={};de.url=this._ioctl.currentURL,de.hasRedirect=this._ioctl.hasRedirect,de.hasRedirect&&(de.redirectedURL=this._ioctl.currentRedirectedURL),de.speed=this._ioctl.currentSpeed,de.loaderType=this._ioctl.loaderType,de.currentSegmentIndex=this._currentSegmentIndex,de.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(bt.STATISTICS_INFO,de)}}var pn=Sn,xn=function($t){let de="TransmuxingWorker",pe=null,Pe=Ft.bind(this);ge.install(),$t.addEventListener("message",function(wt){switch(wt.data.cmd){case"init":pe=new pn(wt.data.param[0],wt.data.param[1]),pe.on(bt.IO_ERROR,Rt.bind(this)),pe.on(bt.DEMUX_ERROR,$e.bind(this)),pe.on(bt.INIT_SEGMENT,xe.bind(this)),pe.on(bt.MEDIA_SEGMENT,Be.bind(this)),pe.on(bt.LOADING_COMPLETE,ot.bind(this)),pe.on(bt.RECOVERED_EARLY_EOF,ut.bind(this)),pe.on(bt.MEDIA_INFO,nn.bind(this)),pe.on(bt.METADATA_ARRIVED,Zt.bind(this)),pe.on(bt.SCRIPTDATA_ARRIVED,qt.bind(this)),pe.on(bt.STATISTICS_INFO,bn.bind(this)),pe.on(bt.RECOMMEND_SEEKPOINT,Mt.bind(this));break;case"destroy":pe&&(pe.destroy(),pe=null),$t.postMessage({msg:"destroyed"});break;case"start":pe.start();break;case"stop":pe.stop();break;case"seek":pe.seek(wt.data.param);break;case"pause":pe.pause();break;case"resume":pe.resume();break;case"logging_config":{let Bt=wt.data.param;rt.applyConfig(Bt),Bt.enableCallback===!0?rt.addLogListener(Pe):rt.removeLogListener(Pe);break}}});function xe(wt,Bt){let Kt={msg:bt.INIT_SEGMENT,data:{type:wt,data:Bt}};$t.postMessage(Kt,[Bt.data])}function Be(wt,Bt){let Kt={msg:bt.MEDIA_SEGMENT,data:{type:wt,data:Bt}};$t.postMessage(Kt,[Bt.data])}function ot(){let wt={msg:bt.LOADING_COMPLETE};$t.postMessage(wt)}function ut(){let wt={msg:bt.RECOVERED_EARLY_EOF};$t.postMessage(wt)}function nn(wt){let Bt={msg:bt.MEDIA_INFO,data:wt};$t.postMessage(Bt)}function Zt(wt){let Bt={msg:bt.METADATA_ARRIVED,data:wt};$t.postMessage(Bt)}function qt(wt){let Bt={msg:bt.SCRIPTDATA_ARRIVED,data:wt};$t.postMessage(Bt)}function bn(wt){let Bt={msg:bt.STATISTICS_INFO,data:wt};$t.postMessage(Bt)}function Rt(wt,Bt){$t.postMessage({msg:bt.IO_ERROR,data:{type:wt,info:Bt}})}function $e(wt,Bt){$t.postMessage({msg:bt.DEMUX_ERROR,data:{type:wt,info:Bt}})}function Mt(wt){$t.postMessage({msg:bt.RECOMMEND_SEEKPOINT,data:wt})}function Ft(wt,Bt){$t.postMessage({msg:"logcat_callback",data:{type:wt,logcat:Bt}})}};class Kn{constructor(de,pe){if(this.TAG="Transmuxer",this._emitter=new(ve()),pe.enableWorker&&typeof Worker!="undefined")try{let Pe=te(82059);this._worker=Pe(xn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[de,pe]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},rt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:rt.getConfig()})}catch(Pe){fe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new pn(de,pe)}else this._controller=new pn(de,pe);if(this._controller){let Pe=this._controller;Pe.on(bt.IO_ERROR,this._onIOError.bind(this)),Pe.on(bt.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(bt.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(bt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(bt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(bt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(bt.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(bt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(bt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(bt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(bt.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(de,pe){this._emitter.addListener(de,pe)}off(de,pe){this._emitter.removeListener(de,pe)}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(de){this._worker?this._worker.postMessage({cmd:"seek",param:de}):this._controller.seek(de)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(de,pe){Promise.resolve().then(()=>{this._emitter.emit(bt.INIT_SEGMENT,de,pe)})}_onMediaSegment(de,pe){Promise.resolve().then(()=>{this._emitter.emit(bt.MEDIA_SEGMENT,de,pe)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(bt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(bt.RECOVERED_EARLY_EOF)})}_onMediaInfo(de){Promise.resolve().then(()=>{this._emitter.emit(bt.MEDIA_INFO,de)})}_onMetaDataArrived(de){Promise.resolve().then(()=>{this._emitter.emit(bt.METADATA_ARRIVED,de)})}_onScriptDataArrived(de){Promise.resolve().then(()=>{this._emitter.emit(bt.SCRIPTDATA_ARRIVED,de)})}_onStatisticsInfo(de){Promise.resolve().then(()=>{this._emitter.emit(bt.STATISTICS_INFO,de)})}_onIOError(de,pe){Promise.resolve().then(()=>{this._emitter.emit(bt.IO_ERROR,de,pe)})}_onDemuxError(de,pe){Promise.resolve().then(()=>{this._emitter.emit(bt.DEMUX_ERROR,de,pe)})}_onRecommendSeekpoint(de){Promise.resolve().then(()=>{this._emitter.emit(bt.RECOMMEND_SEEKPOINT,de)})}_onLoggingConfigChanged(de){this._worker&&this._worker.postMessage({cmd:"logging_config",param:de})}_onWorkerMessage(de){let pe=de.data,Pe=pe.data;if(pe.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(pe.msg){case bt.INIT_SEGMENT:case bt.MEDIA_SEGMENT:this._emitter.emit(pe.msg,Pe.type,Pe.data);break;case bt.LOADING_COMPLETE:case bt.RECOVERED_EARLY_EOF:this._emitter.emit(pe.msg);break;case bt.MEDIA_INFO:Object.setPrototypeOf(Pe,Pt.prototype),this._emitter.emit(pe.msg,Pe);break;case bt.METADATA_ARRIVED:case bt.SCRIPTDATA_ARRIVED:case bt.STATISTICS_INFO:this._emitter.emit(pe.msg,Pe);break;case bt.IO_ERROR:case bt.DEMUX_ERROR:this._emitter.emit(pe.msg,Pe.type,Pe.info);break;case bt.RECOMMEND_SEEKPOINT:this._emitter.emit(pe.msg,Pe);break;case"logcat_callback":fe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var er=Kn,Yn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class pr{constructor(de){this.TAG="MSEController",this._config=de,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 Lt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(de,pe){this._emitter.addListener(de,pe)}off(de,pe){this._emitter.removeListener(de,pe)}attachMediaElement(de){if(this._mediaSource)throw new me("MediaSource has been attached to an HTMLMediaElement!");let pe=this._mediaSource=new window.MediaSource;pe.addEventListener("sourceopen",this.e.onSourceOpen),pe.addEventListener("sourceended",this.e.onSourceEnded),pe.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=de,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),de.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let de=this._mediaSource;for(let pe in this._sourceBuffers){let Pe=this._pendingSegments[pe];Pe.splice(0,Pe.length),this._pendingSegments[pe]=null,this._pendingRemoveRanges[pe]=null,this._lastInitSegments[pe]=null;let xe=this._sourceBuffers[pe];if(xe){if(de.readyState!=="closed"){try{de.removeSourceBuffer(xe)}catch(Be){fe.e(this.TAG,Be.message)}xe.removeEventListener("error",this.e.onSourceBufferError),xe.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[pe]=null,this._sourceBuffers[pe]=null}}if(de.readyState==="open")try{de.endOfStream()}catch(pe){fe.e(this.TAG,pe.message)}de.removeEventListener("sourceopen",this.e.onSourceOpen),de.removeEventListener("sourceended",this.e.onSourceEnded),de.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(de,pe){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(de),this._pendingSegments[de.type].push(de);return}let Pe=de,xe=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(xe+=`;codecs=${Pe.codec}`);let Be=!1;if(fe.v(this.TAG,"Received Initialization Segment, mimeType: "+xe),this._lastInitSegments[Pe.type]=Pe,xe!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])fe.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${xe}`);else{Be=!0;try{let ot=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(xe);ot.addEventListener("error",this.e.onSourceBufferError),ot.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(ot){fe.e(this.TAG,ot.message),this._emitter.emit(Yn.ERROR,{code:ot.code,msg:ot.message});return}}this._mimeTypes[Pe.type]=xe}pe||this._pendingSegments[Pe.type].push(Pe),Be||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(de){let pe=de;this._pendingSegments[pe.type].push(pe),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[pe.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(de){for(let pe in this._sourceBuffers){if(!this._sourceBuffers[pe])continue;let Pe=this._sourceBuffers[pe];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Be){fe.e(this.TAG,Be.message)}this._idrList.clear();let xe=this._pendingSegments[pe];if(xe.splice(0,xe.length),this._mediaSource.readyState!=="closed"){for(let Be=0;Be<Pe.buffered.length;Be++){let ot=Pe.buffered.start(Be),ut=Pe.buffered.end(Be);this._pendingRemoveRanges[pe].push({start:ot,end:ut})}if(Pe.updating||this._doRemoveRanges(),b.safari){let Be=this._lastInitSegments[pe];Be&&(this._pendingSegments[pe].push(Be),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let de=this._mediaSource,pe=this._sourceBuffers;if(!de||de.readyState!=="open"){de&&de.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}pe.video&&pe.video.updating||pe.audio&&pe.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,de.endOfStream())}getNearestKeyframe(de){return this._idrList.getLastSyncPointBeforeDts(de)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let de=this._mediaElement.currentTime;for(let pe in this._sourceBuffers){let Pe=this._sourceBuffers[pe];if(Pe){let xe=Pe.buffered;if(xe.length>=1&&de-xe.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let de=this._mediaElement.currentTime;for(let pe in this._sourceBuffers){let Pe=this._sourceBuffers[pe];if(Pe){let xe=Pe.buffered,Be=!1;for(let ot=0;ot<xe.length;ot++){let ut=xe.start(ot),nn=xe.end(ot);if(ut<=de&&de<nn+3){if(de-ut>=this._config.autoCleanupMaxBackwardDuration){Be=!0;let Zt=de-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[pe].push({start:ut,end:Zt})}}else nn<de&&(Be=!0,this._pendingRemoveRanges[pe].push({start:ut,end:nn}))}Be&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let de=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||de.video&&de.video.updating||de.audio&&de.audio.updating)return;let pe=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(pe)||Pe>pe)&&(fe.v(this.TAG,`Update MediaSource duration from ${pe} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let de in this._pendingRemoveRanges){if(!this._sourceBuffers[de]||this._sourceBuffers[de].updating)continue;let pe=this._sourceBuffers[de],Pe=this._pendingRemoveRanges[de];for(;Pe.length&&!pe.updating;){let xe=Pe.shift();pe.remove(xe.start,xe.end)}}}_doAppendSegments(){let de=this._pendingSegments;for(let pe in de)if(!(!this._sourceBuffers[pe]||this._sourceBuffers[pe].updating)&&de[pe].length>0){let Pe=de[pe].shift();if(Pe.timestampOffset){let xe=this._sourceBuffers[pe].timestampOffset,Be=Pe.timestampOffset/1e3;Math.abs(xe-Be)>.1&&(fe.v(this.TAG,`Update MPEG audio timestampOffset from ${xe} to ${Be}`),this._sourceBuffers[pe].timestampOffset=Be),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[pe].appendBuffer(Pe.data),this._isBufferFull=!1,pe==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(xe){this._pendingSegments[pe].unshift(Pe),xe.code===22?(this._isBufferFull||this._emitter.emit(Yn.BUFFER_FULL),this._isBufferFull=!0):(fe.e(this.TAG,xe.message),this._emitter.emit(Yn.ERROR,{code:xe.code,msg:xe.message}))}}}_onSourceOpen(){if(fe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let de=this._pendingSourceBufferInit;for(;de.length;){let pe=de.shift();this.appendInitSegment(pe,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Yn.SOURCE_OPEN)}_onSourceEnded(){fe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){fe.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 de=this._pendingSegments;return de.video.length>0||de.audio.length>0}_hasPendingRemoveRanges(){let de=this._pendingRemoveRanges;return de.video.length>0||de.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Yn.UPDATE_END)}_onSourceBufferError(de){fe.e(this.TAG,`SourceBuffer Error: ${de}`)}}var vr=pr;const tn={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Xn={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:Ne.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ne.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ne.CODEC_UNSUPPORTED};class sr{constructor(de,pe){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ve()),this._config=st(),typeof pe=="object"&&Object.assign(this._config,pe),de.type.toLowerCase()!=="flv")throw new ae("FlvPlayer requires an flv MediaDataSource input!");de.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=de,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(de,pe){de===At.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):de===At.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(de,pe)}off(de,pe){this._emitter.removeListener(de,pe)}attachMediaElement(de){if(this._mediaElement=de,de.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),de.addEventListener("seeking",this.e.onvSeeking),de.addEventListener("canplay",this.e.onvCanPlay),de.addEventListener("stalled",this.e.onvStalled),de.addEventListener("progress",this.e.onvProgress),this._msectl=new vr(this._config),this._msectl.on(Yn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Yn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Yn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Yn.ERROR,pe=>{this._emitter.emit(At.ERROR,tn.MEDIA_ERROR,Xn.MEDIA_MSE_ERROR,pe)}),this._msectl.attachMediaElement(de),this._pendingSeekTime!=null)try{de.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(pe){}}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 me("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new me("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 er(this._mediaDataSource,this._config),this._transmuxer.on(bt.INIT_SEGMENT,(de,pe)=>{this._msectl.appendInitSegment(pe)}),this._transmuxer.on(bt.MEDIA_SEGMENT,(de,pe)=>{if(this._msectl.appendMediaSegment(pe),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;pe.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(fe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(bt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(At.LOADING_COMPLETE)}),this._transmuxer.on(bt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(At.RECOVERED_EARLY_EOF)}),this._transmuxer.on(bt.IO_ERROR,(de,pe)=>{this._emitter.emit(At.ERROR,tn.NETWORK_ERROR,de,pe)}),this._transmuxer.on(bt.DEMUX_ERROR,(de,pe)=>{this._emitter.emit(At.ERROR,tn.MEDIA_ERROR,de,{code:-1,msg:pe})}),this._transmuxer.on(bt.MEDIA_INFO,de=>{this._mediaInfo=de,this._emitter.emit(At.MEDIA_INFO,Object.assign({},de))}),this._transmuxer.on(bt.METADATA_ARRIVED,de=>{this._emitter.emit(At.METADATA_ARRIVED,de)}),this._transmuxer.on(bt.SCRIPTDATA_ARRIVED,de=>{this._emitter.emit(At.SCRIPTDATA_ARRIVED,de)}),this._transmuxer.on(bt.STATISTICS_INFO,de=>{this._statisticsInfo=this._fillStatisticsInfo(de),this._emitter.emit(At.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(bt.RECOMMEND_SEEKPOINT,de=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=de/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(de){this._mediaElement.volume=de}get muted(){return this._mediaElement.muted}set muted(de){this._mediaElement.muted=de}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(de){this._mediaElement?this._internalSeek(de):this._pendingSeekTime=de}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(de){if(de.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return de;let pe=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let Be=this._mediaElement.getVideoPlaybackQuality();Pe=Be.totalVideoFrames,xe=Be.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):pe=!1;return pe&&(de.decodedFrames=Pe,de.droppedFrames=xe),de}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let de=this._mediaElement.buffered,pe=this._mediaElement.currentTime,Pe=0,xe=0;for(let Be=0;Be<de.length;Be++){let ot=de.start(Be),ut=de.end(Be);if(ot<=pe&&pe<ut){Pe=ot,xe=ut;break}}xe>=pe+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(fe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){fe.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 de=this._mediaElement.currentTime,pe=this._mediaElement.buffered,Pe=!1;for(let xe=0;xe<pe.length;xe++){let Be=pe.start(xe),ot=pe.end(xe);if(de>=Be&&de<ot){de>=ot-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(fe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(de){let pe=this._mediaElement.buffered;for(let Pe=0;Pe<pe.length;Pe++){let xe=pe.start(Pe),Be=pe.end(Pe);if(de>=xe&&de<Be)return!0}return!1}_internalSeek(de){let pe=this._isTimepointBuffered(de),Pe=!1,xe=0;if(de<1&&this._mediaElement.buffered.length>0){let Be=this._mediaElement.buffered.start(0);(Be<1&&de<Be||b.safari)&&(Pe=!0,xe=b.safari?.1:Be)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=xe;else if(pe){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=de;else{let Be=this._msectl.getNearestKeyframe(Math.floor(de*1e3));this._requestSetTime=!0,Be!=null?this._mediaElement.currentTime=Be.dts/1e3:this._mediaElement.currentTime=de}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(de),this._transmuxer.seek(Math.floor(de*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=de)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let de=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(de)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(de),this._transmuxer.seek(Math.floor(de*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=de))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(de){let pe=this._mediaElement;if(de||!this._receivedCanPlay||pe.readyState<2){let Pe=pe.buffered;Pe.length>0&&pe.currentTime<Pe.start(0)&&(fe.w(this.TAG,`Playback seems stuck at ${pe.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(de){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(de){let pe=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(pe<1&&Pe.length>0){let xe=Pe.start(0);if(xe<1&&pe<xe||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:xe;return}}if(this._isTimepointBuffered(pe)){if(this._alwaysSeekKeyframe){let xe=this._msectl.getNearestKeyframe(Math.floor(pe*1e3));xe!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=xe.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:pe,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(de){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(de){this._checkAndResumeStuckPlayback(!0)}_onvProgress(de){this._checkAndResumeStuckPlayback()}}var Wn=sr;class lr{constructor(de,pe){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(ve()),this._config=st(),typeof pe=="object"&&Object.assign(this._config,pe),de.type.toLowerCase()==="flv")throw new ae("NativePlayer does't support flv MediaDataSource input!");if(de.hasOwnProperty("segments"))throw new ae(`NativePlayer(${de.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=de,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(de,pe){de===At.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):de===At.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(de,pe)}off(de,pe){this._emitter.removeListener(de,pe)}attachMediaElement(de){if(this._mediaElement=de,de.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{de.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(pe){}}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 me("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(de){this._mediaElement.volume=de}get muted(){return this._mediaElement.muted}set muted(de){this._mediaElement.muted=de}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(de){this._mediaElement?this._mediaElement.currentTime=de:this._pendingSeekTime=de}get mediaInfo(){let pe={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(pe.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(pe.width=this._mediaElement.videoWidth,pe.height=this._mediaElement.videoHeight)),pe}get statisticsInfo(){let de={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return de;let pe=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let Be=this._mediaElement.getVideoPlaybackQuality();Pe=Be.totalVideoFrames,xe=Be.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):pe=!1;return pe&&(de.decodedFrames=Pe,de.droppedFrames=xe),de}_onvLoadedMetadata(de){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}}var Or=lr;ge.install();function Rr($t,de){let pe=$t;if(pe==null||typeof pe!="object")throw new ae("MediaDataSource must be an javascript object!");if(!pe.hasOwnProperty("type"))throw new ae("MediaDataSource must has type field to indicate video file type!");switch(pe.type){case"flv":return new Wn(pe,de);default:return new Or(pe,de)}}function Er(){return mt.supportMSEH264Playback()}function Nr(){return mt.getFeatureList()}let cr={};cr.createPlayer=Rr,cr.isSupported=Er,cr.getFeatureList=Nr,cr.BaseLoader=a,cr.LoaderStatus=oe,cr.LoaderErrors=ne,cr.Events=At,cr.ErrorTypes=tn,cr.ErrorDetails=Xn,cr.FlvPlayer=Wn,cr.NativePlayer=Or,cr.LoggingControl=rt,Object.defineProperty(cr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Xr=cr},50371:function(ht,Ve){"use strict";function te(){const ee=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge<arguments.length;ge++){const be=ge<0||arguments.length<=ge?void 0:arguments[ge];be&&Object.keys(be).forEach(ve=>{const Se=be[ve];Se!==void 0&&(ee[ve]=Se)})}return ee}Ve.Z=te},13845:function(ht,Ve,te){"use strict";te.d(Ve,{F:function(){return ee},Z:function(){return ge}});function ee(be){return be!=null&&be===be.window}function ge(be,ve){var Se,fe;if(typeof window=="undefined")return 0;const ie=ve?"scrollTop":"scrollLeft";let ue=0;return ee(be)?ue=be[ve?"pageYOffset":"pageXOffset"]:be instanceof Document?ue=be.documentElement[ie]:(be instanceof HTMLElement||be)&&(ue=be[ie]),be&&!ee(be)&&typeof ue!="number"&&(ue=(fe=((Se=be.ownerDocument)!==null&&Se!==void 0?Se:be).documentElement)===null||fe===void 0?void 0:fe[ie]),ue}},56762:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ge}});var ee=te(59301);function ge(){const[,be]=ee.useReducer(ve=>ve+1,0);return be}},68031:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ve}});var ee=te(16089);function ge(Se,fe,ie,ue){const le=ie-fe;return Se/=ue/2,Se<1?le/2*Se*Se*Se+fe:le/2*((Se-=2)*Se*Se+2)+fe}var be=te(13845);function ve(Se){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:ue,duration:le=450}=fe,me=ie(),ae=(0,be.Z)(me,!0),he=Date.now(),oe=()=>{const a=Date.now()-he,y=ge(a>le?le:a,ae,Se,le);(0,be.F)(me)?me.scrollTo(window.pageXOffset,y):me instanceof Document||me.constructor.name==="HTMLDocument"?me.documentElement.scrollTop=y:me.scrollTop=y,a<le?(0,ee.Z)(oe):typeof ue=="function"&&ue()};(0,ee.Z)(oe)}},24905:function(ht,Ve,te){"use strict";te.d(Ve,{default:function(){return _e}});var ee=te(92310),ge=te.n(ee),be=te(5630),ve=te(59301),Se=te(36355),fe=te(1684),ie=te(32441),le=ve.createContext(null),me=te(98447),ae=te(14088),he=te(4572),oe=function(ye,De){var Ee={};for(var je in ye)Object.prototype.hasOwnProperty.call(ye,je)&&De.indexOf(je)<0&&(Ee[je]=ye[je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,je=Object.getOwnPropertySymbols(ye);Le<je.length;Le++)De.indexOf(je[Le])<0&&Object.prototype.propertyIsEnumerable.call(ye,je[Le])&&(Ee[je[Le]]=ye[je[Le]]);return Ee};const ne=(ye,De)=>{var Ee;const{prefixCls:je,className:Le,rootClassName:ft,children:Xe,indeterminate:pt=!1,style:we,onMouseEnter:Fe,onMouseLeave:He,skipGroup:st=!1,disabled:Ke}=ye,mt=oe(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:_t,direction:At,checkbox:kt}=ve.useContext(Se.E_),rt=ve.useContext(le),{isFormItemInput:Qe}=ve.useContext(ie.aM),Pt=ve.useContext(fe.Z),zt=(Ee=(rt==null?void 0:rt.disabled)||Ke)!==null&&Ee!==void 0?Ee:Pt,Ct=ve.useRef(mt.value);ve.useEffect(()=>{rt==null||rt.registerValue(mt.value)},[]),ve.useEffect(()=>{if(!st)return mt.value!==Ct.current&&(rt==null||rt.cancelValue(Ct.current),rt==null||rt.registerValue(mt.value),Ct.current=mt.value),()=>rt==null?void 0:rt.cancelValue(mt.value)},[mt.value]);const sn=_t("checkbox",je),[Ze,St]=(0,me.ZP)(sn),xt=Object.assign({},mt);rt&&!st&&(xt.onChange=function(){mt.onChange&&mt.onChange.apply(mt,arguments),rt.toggleOption&&rt.toggleOption({label:Xe,value:mt.value})},xt.name=rt.name,xt.checked=rt.value.includes(mt.value));const ln=ge()(`${sn}-wrapper`,{[`${sn}-rtl`]:At==="rtl",[`${sn}-wrapper-checked`]:xt.checked,[`${sn}-wrapper-disabled`]:zt,[`${sn}-wrapper-in-form-item`]:Qe},kt==null?void 0:kt.className,Le,ft,St),Gt=ge()({[`${sn}-indeterminate`]:pt},he.A,St),lt=pt?"mixed":void 0;return Ze(ve.createElement(ae.Z,{component:"Checkbox",disabled:zt},ve.createElement("label",{className:ln,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),we),onMouseEnter:Fe,onMouseLeave:He},ve.createElement(be.Z,Object.assign({"aria-checked":lt},xt,{prefixCls:sn,className:Gt,disabled:zt,ref:De})),Xe!==void 0&&ve.createElement("span",null,Xe))))};var y=ve.forwardRef(ne),E=te(3300),b=te(2738),x=function(ye,De){var Ee={};for(var je in ye)Object.prototype.hasOwnProperty.call(ye,je)&&De.indexOf(je)<0&&(Ee[je]=ye[je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,je=Object.getOwnPropertySymbols(ye);Le<je.length;Le++)De.indexOf(je[Le])<0&&Object.prototype.propertyIsEnumerable.call(ye,je[Le])&&(Ee[je[Le]]=ye[je[Le]]);return Ee};const z=(ye,De)=>{const{defaultValue:Ee,children:je,options:Le=[],prefixCls:ft,className:Xe,rootClassName:pt,style:we,onChange:Fe}=ye,He=x(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:st,direction:Ke}=ve.useContext(Se.E_),[mt,_t]=ve.useState(He.value||Ee||[]),[At,kt]=ve.useState([]);ve.useEffect(()=>{"value"in He&&_t(He.value||[])},[He.value]);const rt=ve.useMemo(()=>Le.map(ct=>typeof ct=="string"||typeof ct=="number"?{label:ct,value:ct}:ct),[Le]),Qe=ct=>{kt(Ge=>Ge.filter(Ne=>Ne!==ct))},Pt=ct=>{kt(Ge=>[].concat((0,E.Z)(Ge),[ct]))},zt=ct=>{const Ge=mt.indexOf(ct.value),Ne=(0,E.Z)(mt);Ge===-1?Ne.push(ct.value):Ne.splice(Ge,1),"value"in He||_t(Ne),Fe==null||Fe(Ne.filter(tt=>At.includes(tt)).sort((tt,Et)=>{const Ie=rt.findIndex(We=>We.value===tt),Oe=rt.findIndex(We=>We.value===Et);return Ie-Oe}))},Ct=st("checkbox",ft),sn=`${Ct}-group`,[Ze,St]=(0,me.ZP)(Ct),xt=(0,b.Z)(He,["value","disabled"]),ln=Le.length?rt.map(ct=>ve.createElement(y,{prefixCls:Ct,key:ct.value.toString(),disabled:"disabled"in ct?ct.disabled:He.disabled,value:ct.value,checked:mt.includes(ct.value),onChange:ct.onChange,className:`${sn}-item`,style:ct.style,title:ct.title},ct.label)):je,Gt={toggleOption:zt,value:mt,disabled:He.disabled,name:He.name,registerValue:Pt,cancelValue:Qe},lt=ge()(sn,{[`${sn}-rtl`]:Ke==="rtl"},Xe,pt,St);return Ze(ve.createElement("div",Object.assign({className:lt,style:we},xt,{ref:De}),ve.createElement(le.Provider,{value:Gt},ln)))},re=ve.forwardRef(z);var se=ve.memo(re);const ce=y;ce.Group=se,ce.__ANT_CHECKBOX=!0;var _e=ce},98447:function(ht,Ve,te){"use strict";te.d(Ve,{C2:function(){return Se}});var ee=te(17313),ge=te(37613),be=te(83116);const ve=fe=>{const{checkboxCls:ie}=fe,ue=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:fe.marginXS,[`> ${fe.antCls}-row`]:{flex:1}}),[ue]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ue}`]:{marginInlineStart:0},[`&${ue}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:fe.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,ee.oN)(fe))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:fe.checkboxSize,height:fe.checkboxSize,direction:"ltr",backgroundColor:fe.colorBgContainer,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,borderRadius:fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:fe.checkboxSize/14*5,height:fe.checkboxSize/14*8,border:`${fe.lineWidthBold}px solid ${fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${fe.motionDurationFast} ${fe.motionEaseInBack}, opacity ${fe.motionDurationFast}`}},"& + span":{paddingInlineStart:fe.paddingXS,paddingInlineEnd:fe.paddingXS}})},{[`
${ue}:not(${ue}-disabled),
${ie}:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{borderColor:fe.colorPrimary}},[`${ue}:not(${ue}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:fe.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:fe.colorPrimary,borderColor:fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${fe.motionDurationMid} ${fe.motionEaseOutBack} ${fe.motionDurationFast}`}}},[`
${ue}-checked:not(${ue}-disabled),
${ie}-checked:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:fe.colorBgContainer,borderColor:fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:fe.fontSizeLG/2,height:fe.fontSizeLG/2,backgroundColor:fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ue}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,"&:after":{borderColor:fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:fe.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:fe.colorTextDisabled}}}]};function Se(fe,ie){const ue=(0,ge.TS)(ie,{checkboxCls:`.${fe}`,checkboxSize:ie.controlInteractiveSize});return[ve(ue)]}Ve.ZP=(0,be.Z)("Checkbox",(fe,ie)=>{let{prefixCls:ue}=ie;return[Se(ue,fe)]})},43428:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return Ze}});var ee=te(92310),ge=te.n(ee),be=te(27247),ve=te(11913),Se=te(43403),fe=te(34280),ie=te(59301),ue=ie.createContext(null),le=ie.createContext({}),me=ue,ae=te(74430),he=te(32855),oe=te(77900),ne=te(10228),a=te(26112),y=te(70425),E=function(xt){var ln=xt.prefixCls,Gt=xt.className,lt=xt.style,ct=xt.children,Ge=xt.containerRef,Ne=xt.id,tt=xt.onMouseEnter,Et=xt.onMouseOver,Ie=xt.onMouseLeave,Oe=xt.onClick,We=xt.onKeyDown,ke=xt.onKeyUp,ze={onMouseEnter:tt,onMouseOver:Et,onMouseLeave:Ie,onClick:Oe,onKeyDown:We,onKeyUp:ke},it=ie.useContext(le),It=it.panel,Dt=(0,y.useComposeRef)(It,Ge);return ie.createElement(ie.Fragment,null,ie.createElement("div",(0,he.Z)({id:Ne,className:ge()("".concat(ln,"-content"),Gt),style:(0,be.Z)({},lt),"aria-modal":"true",role:"dialog",ref:Dt},ze),ct))},b=E,x=te(48736);function z(St){return typeof St=="string"&&String(Number(St))===St?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(St)):St}function re(St){warning(!("wrapperClassName"in St),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!St.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var se={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ce(St,xt){var ln,Gt,lt,ct,Ge=St.prefixCls,Ne=St.open,tt=St.placement,Et=St.inline,Ie=St.push,Oe=St.forceRender,We=St.autoFocus,ke=St.keyboard,ze=St.rootClassName,it=St.rootStyle,It=St.zIndex,Dt=St.className,jt=St.id,Lt=St.style,Ht=St.motion,yt=St.width,fn=St.height,un=St.children,bt=St.contentWrapperStyle,Sn=St.mask,pn=St.maskClosable,Fn=St.maskMotion,xn=St.maskClassName,Kn=St.maskStyle,er=St.afterOpenChange,Vn=St.onClose,Yn=St.onMouseEnter,pr=St.onMouseOver,vr=St.onMouseLeave,tn=St.onClick,Xn=St.onKeyDown,sr=St.onKeyUp,Wn=ie.useRef(),lr=ie.useRef(),Or=ie.useRef();ie.useImperativeHandle(xt,function(){return Wn.current});var Rr=function(bn){var Rt=bn.keyCode,$e=bn.shiftKey;switch(Rt){case ne.Z.TAB:{if(Rt===ne.Z.TAB){if(!$e&&document.activeElement===Or.current){var Mt;(Mt=lr.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}else if($e&&document.activeElement===lr.current){var Ft;(Ft=Or.current)===null||Ft===void 0||Ft.focus({preventScroll:!0})}}break}case ne.Z.ESC:{Vn&&ke&&(bn.stopPropagation(),Vn(bn));break}}};ie.useEffect(function(){if(Ne&&We){var qt;(qt=Wn.current)===null||qt===void 0||qt.focus({preventScroll:!0})}},[Ne]);var Er=ie.useState(!1),Nr=(0,ve.Z)(Er,2),cr=Nr[0],Xr=Nr[1],$t=ie.useContext(me),de;Ie===!1?de={distance:0}:Ie===!0?de={}:de=Ie||{};var pe=(ln=(Gt=(lt=de)===null||lt===void 0?void 0:lt.distance)!==null&&Gt!==void 0?Gt:$t==null?void 0:$t.pushDistance)!==null&&ln!==void 0?ln:180,Pe=ie.useMemo(function(){return{pushDistance:pe,push:function(){Xr(!0)},pull:function(){Xr(!1)}}},[pe]);ie.useEffect(function(){if(Ne){var qt;$t==null||(qt=$t.push)===null||qt===void 0||qt.call($t)}else{var bn;$t==null||(bn=$t.pull)===null||bn===void 0||bn.call($t)}},[Ne]),ie.useEffect(function(){return function(){var qt;$t==null||(qt=$t.pull)===null||qt===void 0||qt.call($t)}},[]);var xe=Sn&&ie.createElement(oe.default,(0,he.Z)({key:"mask"},Fn,{visible:Ne}),function(qt,bn){var Rt=qt.className,$e=qt.style;return ie.createElement("div",{className:ge()("".concat(Ge,"-mask"),Rt,xn),style:(0,be.Z)((0,be.Z)({},$e),Kn),onClick:pn&&Ne?Vn:void 0,ref:bn})}),Be=typeof Ht=="function"?Ht(tt):Ht,ot={};if(cr&&pe)switch(tt){case"top":ot.transform="translateY(".concat(pe,"px)");break;case"bottom":ot.transform="translateY(".concat(-pe,"px)");break;case"left":ot.transform="translateX(".concat(pe,"px)");break;default:ot.transform="translateX(".concat(-pe,"px)");break}tt==="left"||tt==="right"?ot.width=z(yt):ot.height=z(fn);var ut={onMouseEnter:Yn,onMouseOver:pr,onMouseLeave:vr,onClick:tn,onKeyDown:Xn,onKeyUp:sr},nn=ie.createElement(oe.default,(0,he.Z)({key:"panel"},Be,{visible:Ne,forceRender:Oe,onVisibleChanged:function(bn){er==null||er(bn)},removeOnLeave:!1,leavedClassName:"".concat(Ge,"-content-wrapper-hidden")}),function(qt,bn){var Rt=qt.className,$e=qt.style;return ie.createElement("div",(0,he.Z)({className:ge()("".concat(Ge,"-content-wrapper"),Rt),style:(0,be.Z)((0,be.Z)((0,be.Z)({},ot),$e),bt)},(0,a.Z)(St,{data:!0})),ie.createElement(b,(0,he.Z)({id:jt,containerRef:bn,prefixCls:Ge,className:Dt,style:Lt},ut),un))}),Zt=(0,be.Z)({},it);return It&&(Zt.zIndex=It),ie.createElement(me.Provider,{value:Pe},ie.createElement("div",{className:ge()(Ge,"".concat(Ge,"-").concat(tt),ze,(ct={},(0,ae.Z)(ct,"".concat(Ge,"-open"),Ne),(0,ae.Z)(ct,"".concat(Ge,"-inline"),Et),ct)),style:Zt,tabIndex:-1,ref:Wn,onKeyDown:Rr},xe,ie.createElement("div",{tabIndex:0,ref:lr,style:se,"aria-hidden":"true","data-sentinel":"start"}),nn,ie.createElement("div",{tabIndex:0,ref:Or,style:se,"aria-hidden":"true","data-sentinel":"end"})))}var _e=ie.forwardRef(ce),ye=_e,De=function(xt){var ln=xt.open,Gt=ln===void 0?!1:ln,lt=xt.prefixCls,ct=lt===void 0?"rc-drawer":lt,Ge=xt.placement,Ne=Ge===void 0?"right":Ge,tt=xt.autoFocus,Et=tt===void 0?!0:tt,Ie=xt.keyboard,Oe=Ie===void 0?!0:Ie,We=xt.width,ke=We===void 0?378:We,ze=xt.mask,it=ze===void 0?!0:ze,It=xt.maskClosable,Dt=It===void 0?!0:It,jt=xt.getContainer,Lt=xt.forceRender,Ht=xt.afterOpenChange,yt=xt.destroyOnClose,fn=xt.onMouseEnter,un=xt.onMouseOver,bt=xt.onMouseLeave,Sn=xt.onClick,pn=xt.onKeyDown,Fn=xt.onKeyUp,xn=xt.panelRef,Kn=ie.useState(!1),er=(0,ve.Z)(Kn,2),Vn=er[0],Yn=er[1],pr=ie.useState(!1),vr=(0,ve.Z)(pr,2),tn=vr[0],Xn=vr[1];(0,fe.Z)(function(){Xn(!0)},[]);var sr=tn?Gt:!1,Wn=ie.useRef(),lr=ie.useRef();(0,fe.Z)(function(){sr&&(lr.current=document.activeElement)},[sr]);var Or=function(Xr){var $t;if(Yn(Xr),Ht==null||Ht(Xr),!Xr&&lr.current&&!(($t=Wn.current)!==null&&$t!==void 0&&$t.contains(lr.current))){var de;(de=lr.current)===null||de===void 0||de.focus({preventScroll:!0})}},Rr=ie.useMemo(function(){return{panel:xn}},[xn]);if(!Lt&&!Vn&&!sr&&yt)return null;var Er={onMouseEnter:fn,onMouseOver:un,onMouseLeave:bt,onClick:Sn,onKeyDown:pn,onKeyUp:Fn},Nr=(0,be.Z)((0,be.Z)({},xt),{},{open:sr,prefixCls:ct,placement:Ne,autoFocus:Et,keyboard:Oe,width:ke,mask:it,maskClosable:Dt,inline:jt===!1,afterOpenChange:Or,ref:Wn},Er);return ie.createElement(le.Provider,{value:Rr},ie.createElement(Se.Z,{open:sr||Lt||Vn,autoDestroy:!1,getContainer:jt,autoLock:it&&(sr||Vn)},ie.createElement(ye,Nr)))},Ee=De,je=Ee,Le=te(62892),ft=te(36355),Xe=te(32441),pt=te(47729),Fe=St=>{const{prefixCls:xt,title:ln,footer:Gt,extra:lt,closeIcon:ct,closable:Ge,onClose:Ne,headerStyle:tt,drawerStyle:Et,bodyStyle:Ie,footerStyle:Oe,children:We}=St,ke=ie.useCallback(jt=>ie.createElement("button",{type:"button",onClick:Ne,"aria-label":"Close",className:`${xt}-close`},jt),[Ne]),[ze,it]=(0,pt.Z)(Ge,ct,ke,void 0,!0),It=ie.useMemo(()=>!ln&&!ze?null:ie.createElement("div",{style:tt,className:ge()(`${xt}-header`,{[`${xt}-header-close-only`]:ze&&!ln&&!lt})},ie.createElement("div",{className:`${xt}-header-title`},it,ln&&ie.createElement("div",{className:`${xt}-title`},ln)),lt&&ie.createElement("div",{className:`${xt}-extra`},lt)),[ze,it,lt,tt,xt,ln]),Dt=ie.useMemo(()=>{if(!Gt)return null;const jt=`${xt}-footer`;return ie.createElement("div",{className:jt,style:Oe},Gt)},[Gt,Oe,xt]);return ie.createElement("div",{className:`${xt}-wrapper-body`,style:Et},It,ie.createElement("div",{className:`${xt}-body`,style:Ie},We),Dt)},He=te(33234),st=te(83116),Ke=te(37613),_t=St=>{const{componentCls:xt,motionDurationSlow:ln}=St,Gt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ln}`}}};return{[xt]:{[`${xt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ln}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${xt}-panel-motion`]:{"&-left":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const At=St=>{const{componentCls:xt,zIndexPopup:ln,colorBgMask:Gt,colorBgElevated:lt,motionDurationSlow:ct,motionDurationMid:Ge,padding:Ne,paddingLG:tt,fontSizeLG:Et,lineHeightLG:Ie,lineWidth:Oe,lineType:We,colorSplit:ke,marginSM:ze,colorIcon:it,colorIconHover:It,colorText:Dt,fontWeightStrong:jt,footerPaddingBlock:Lt,footerPaddingInline:Ht}=St,yt=`${xt}-content-wrapper`;return{[xt]:{position:"fixed",inset:0,zIndex:ln,pointerEvents:"none","&-pure":{position:"relative",background:lt,[`&${xt}-left`]:{boxShadow:St.boxShadowDrawerLeft},[`&${xt}-right`]:{boxShadow:St.boxShadowDrawerRight},[`&${xt}-top`]:{boxShadow:St.boxShadowDrawerUp},[`&${xt}-bottom`]:{boxShadow:St.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${xt}-mask`]:{position:"absolute",inset:0,zIndex:ln,background:Gt,pointerEvents:"auto"},[yt]:{position:"absolute",zIndex:ln,maxWidth:"100vw",transition:`all ${ct}`,"&-hidden":{display:"none"}},[`&-left > ${yt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:St.boxShadowDrawerLeft},[`&-right > ${yt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:St.boxShadowDrawerRight},[`&-top > ${yt}`]:{top:0,insetInline:0,boxShadow:St.boxShadowDrawerUp},[`&-bottom > ${yt}`]:{bottom:0,insetInline:0,boxShadow:St.boxShadowDrawerDown},[`${xt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:lt,pointerEvents:"auto"},[`${xt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${xt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ne}px ${tt}px`,fontSize:Et,lineHeight:Ie,borderBottom:`${Oe}px ${We} ${ke}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${xt}-extra`]:{flex:"none"},[`${xt}-close`]:{display:"inline-block",marginInlineEnd:ze,color:it,fontWeight:jt,fontSize:Et,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ge}`,textRendering:"auto","&:focus, &:hover":{color:It,textDecoration:"none"}},[`${xt}-title`]:{flex:1,margin:0,color:Dt,fontWeight:St.fontWeightStrong,fontSize:Et,lineHeight:Ie},[`${xt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:tt,overflow:"auto"},[`${xt}-footer`]:{flexShrink:0,padding:`${Lt}px ${Ht}px`,borderTop:`${Oe}px ${We} ${ke}`},"&-rtl":{direction:"rtl"}}}};var kt=(0,st.Z)("Drawer",St=>{const xt=(0,Ke.TS)(St,{});return[At(xt),_t(xt)]},St=>({zIndexPopup:St.zIndexPopupBase,footerPaddingBlock:St.paddingXS,footerPaddingInline:St.padding})),rt=te(11575),Qe=function(St,xt){var ln={};for(var Gt in St)Object.prototype.hasOwnProperty.call(St,Gt)&&xt.indexOf(Gt)<0&&(ln[Gt]=St[Gt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Gt=Object.getOwnPropertySymbols(St);lt<Gt.length;lt++)xt.indexOf(Gt[lt])<0&&Object.prototype.propertyIsEnumerable.call(St,Gt[lt])&&(ln[Gt[lt]]=St[Gt[lt]]);return ln};const Pt=null,zt={distance:180},Ct=St=>{var xt;const{rootClassName:ln,width:Gt,height:lt,size:ct="default",mask:Ge=!0,push:Ne=zt,open:tt,afterOpenChange:Et,onClose:Ie,prefixCls:Oe,getContainer:We,style:ke,className:ze,visible:it,afterVisibleChange:It}=St,Dt=Qe(St,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:jt,getPrefixCls:Lt,direction:Ht,drawer:yt}=ie.useContext(ft.E_),fn=Lt("drawer",Oe),[un,bt]=kt(fn),Sn=We===void 0&&jt?()=>jt(document.body):We,pn=ge()({"no-mask":!Ge,[`${fn}-rtl`]:Ht==="rtl"},ln,bt),Fn=ie.useMemo(()=>Gt!=null?Gt:ct==="large"?736:378,[Gt,ct]),xn=ie.useMemo(()=>lt!=null?lt:ct==="large"?736:378,[lt,ct]),Kn={motionName:(0,Le.m)(fn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},er=Yn=>({motionName:(0,Le.m)(fn,`panel-motion-${Yn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Vn=(0,rt.H)();return un(ie.createElement(He.BR,null,ie.createElement(Xe.Ux,{status:!0,override:!0},ie.createElement(je,Object.assign({prefixCls:fn,onClose:Ie,maskMotion:Kn,motion:er},Dt,{open:tt!=null?tt:it,mask:Ge,push:Ne,width:Fn,height:xn,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),ke),className:ge()(yt==null?void 0:yt.className,ze),rootClassName:pn,getContainer:Sn,afterOpenChange:Et!=null?Et:It,panelRef:Vn}),ie.createElement(Fe,Object.assign({prefixCls:fn},Dt,{onClose:Ie}))))))},sn=St=>{const{prefixCls:xt,style:ln,className:Gt,placement:lt="right"}=St,ct=Qe(St,["prefixCls","style","className","placement"]),{getPrefixCls:Ge}=ie.useContext(ft.E_),Ne=Ge("drawer",xt),[tt,Et]=kt(Ne),Ie=ge()(Ne,`${Ne}-pure`,`${Ne}-${lt}`,Et,Gt);return tt(ie.createElement("div",{className:Ie,style:ln},ie.createElement(Fe,Object.assign({prefixCls:Ne},ct))))};Ct._InternalPanelDoNotUseOrYouWillBeFired=sn;var Ze=Ct},91857:function(ht,Ve,te){"use strict";var ee=te(59301),ge=te(38819),be=te(92310),ve=te.n(be),Se=te(31561),fe=te(70425),ie=te(18929),ue=te(2738),le=te(79676),me=te(53487),ae=te(92343),he=te(36355),oe=te(20834),ne=te(40875),a=te(88088),y=te(47211);const E=null,b=se=>{const{menu:ce,arrow:_e,prefixCls:ye,children:De,trigger:Ee,disabled:je,dropdownRender:Le,getPopupContainer:ft,overlayClassName:Xe,rootClassName:pt,open:we,onOpenChange:Fe,visible:He,onVisibleChange:st,mouseEnterDelay:Ke=.15,mouseLeaveDelay:mt=.1,autoAdjustOverflow:_t=!0,placement:At="",overlay:kt,transitionName:rt}=se,{getPopupContainer:Qe,getPrefixCls:Pt,direction:zt}=ee.useContext(he.E_),Ct=ee.useMemo(()=>{const ze=Pt();return rt!==void 0?rt:At.includes("top")?`${ze}-slide-down`:`${ze}-slide-up`},[Pt,At,rt]),sn=ee.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:zt==="rtl"?"bottomRight":"bottomLeft",[At,zt]),Ze=Pt("dropdown",ye),[St,xt]=(0,y.Z)(Ze),[,ln]=(0,a.Z)(),Gt=ee.Children.only(De),lt=(0,ae.Tm)(Gt,{className:ve()(`${Ze}-trigger`,{[`${Ze}-rtl`]:zt==="rtl"},Gt.props.className),disabled:je}),ct=je?[]:Ee;let Ge;ct&&ct.includes("contextMenu")&&(Ge=!0);const[Ne,tt]=(0,ie.Z)(!1,{value:we!=null?we:He}),Et=(0,fe.useEvent)(ze=>{Fe==null||Fe(ze),st==null||st(ze),tt(ze)}),Ie=ve()(Xe,pt,xt,{[`${Ze}-rtl`]:zt==="rtl"}),Oe=(0,le.Z)({arrowPointAtCenter:typeof _e=="object"&&_e.pointAtCenter,autoAdjustOverflow:_t,offset:ln.marginXXS,arrowWidth:_e?ln.sizePopupArrow:0,borderRadius:ln.borderRadius}),We=ee.useCallback(()=>{tt(!1)},[]),ke=()=>{let ze;return ce!=null&&ce.items?ze=ee.createElement(oe.default,Object.assign({},ce)):typeof kt=="function"?ze=kt():ze=kt,Le&&(ze=Le(ze)),ze=ee.Children.only(typeof ze=="string"?ee.createElement("span",null,ze):ze),ee.createElement(ne.J,{prefixCls:`${Ze}-menu`,expandIcon:ee.createElement("span",{className:`${Ze}-menu-submenu-arrow`},ee.createElement(ge.Z,{className:`${Ze}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:We,validator:it=>{let{mode:It}=it}},ze)};return St(ee.createElement(Se.Z,Object.assign({alignPoint:Ge},(0,ue.Z)(se,["rootClassName"]),{mouseEnterDelay:Ke,mouseLeaveDelay:mt,visible:Ne,builtinPlacements:Oe,arrow:!!_e,overlayClassName:Ie,prefixCls:Ze,getPopupContainer:ft||Qe,transitionName:Ct,trigger:ct,overlay:ke,placement:sn,onVisibleChange:Et}),lt))};function x(se){return Object.assign(Object.assign({},se),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,me.Z)(b,"dropdown",se=>se,x),re=se=>ee.createElement(z,Object.assign({},se),ee.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=re,Ve.Z=b},38854:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return a}});var ee=te(91857),ge=te(92310),be=te.n(ge),ve=te(59301),Se=te(18785),fe=te(3113),ie=te(36355),ue=te(81327),le=te(33234),me=te(47211),ae=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 he=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ve.useContext(ie.E_),{prefixCls:z,type:re="default",danger:se,disabled:ce,loading:_e,onClick:ye,htmlType:De,children:Ee,className:je,menu:Le,arrow:ft,autoFocus:Xe,overlay:pt,trigger:we,align:Fe,open:He,onOpenChange:st,placement:Ke,getPopupContainer:mt,href:_t,icon:At=ve.createElement(Se.Z,null),title:kt,buttonsRender:rt=ke=>ke,mouseEnterDelay:Qe,mouseLeaveDelay:Pt,overlayClassName:zt,overlayStyle:Ct,destroyPopupOnHide:sn,dropdownRender:Ze}=y,St=ae(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"]),xt=b("dropdown",z),ln=`${xt}-button`,[Gt,lt]=(0,me.Z)(xt),ct={menu:Le,arrow:ft,autoFocus:Xe,align:Fe,disabled:ce,trigger:ce?[]:we,onOpenChange:st,getPopupContainer:mt||E,mouseEnterDelay:Qe,mouseLeaveDelay:Pt,overlayClassName:zt,overlayStyle:Ct,destroyPopupOnHide:sn,dropdownRender:Ze},{compactSize:Ge,compactItemClassnames:Ne}=(0,le.ri)(xt,x),tt=be()(ln,Ne,je,lt);"overlay"in y&&(ct.overlay=pt),"open"in y&&(ct.open=He),"placement"in y?ct.placement=Ke:ct.placement=x==="rtl"?"bottomLeft":"bottomRight";const Et=ve.createElement(fe.ZP,{type:re,danger:se,disabled:ce,loading:_e,onClick:ye,htmlType:De,href:_t,title:kt},Ee),Ie=ve.createElement(fe.ZP,{type:re,danger:se,icon:At}),[Oe,We]=rt([Et,Ie]);return Gt(ve.createElement(ue.Z.Compact,Object.assign({className:tt,size:Ge,block:!0},St),Oe,ve.createElement(ee.Z,Object.assign({},ct),We)))};he.__ANT_BUTTON=!0;var oe=he;const ne=ee.Z;ne.Button=oe;var a=ne},47211:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ae}});var ee=te(17313),ge=te(13826),be=te(92899),ve=te(29878),Se=te(19447),fe=te(83116),ie=te(37613),le=he=>{const{componentCls:oe,menuCls:ne,colorError:a,colorTextLightSolid:y}=he,E=`${ne}-item`;return{[`${oe}, ${oe}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const me=he=>{const{componentCls:oe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:re,fontSize:se,dropdownEdgeChildPadding:ce,colorTextDisabled:_e,fontSizeIcon:ye,controlPaddingHorizontal:De,colorBgElevated:Ee}=he;return[{[oe]:Object.assign(Object.assign({},(0,ee.Wf)(he)),{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:ye}},[`${oe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ye},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${oe}-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${oe}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${oe}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${oe}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottomRight`]:{animationName:ge.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-topRight`]:{animationName:ge.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottomRight`]:{animationName:ge.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-topRight`]:{animationName:ge.ly}})},(0,Se.ZP)(he,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${oe} ${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}},[`${oe}, ${oe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ce,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary},(0,ee.Qy)(he)),{[`${ne}-item-group-title`]:{padding:`${re}px ${De}px`,color:he.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:se,marginInlineEnd:he.marginXS,fontSize:he.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:`${re}px ${De}px`,color:he.colorText,fontWeight:"normal",fontSize:se,lineHeight:he.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:he.borderRadiusSM,"&:hover, &-active":{backgroundColor:he.controlItemBgHover}},(0,ee.Qy)(he)),{"&-selected":{color:he.colorPrimary,backgroundColor:he.controlItemBgActive,"&:hover, &-active":{backgroundColor:he.controlItemBgActiveHover}},"&-disabled":{color:_e,cursor:"not-allowed","&:hover":{color:_e,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${he.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:he.colorSplit},[`${oe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:he.paddingXS,[`${oe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:he.colorTextDescription,fontSize:ye,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${he.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:De+he.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${oe}-menu-submenu-title`]:{[`&, ${oe}-menu-submenu-arrow-icon`]:{color:_e,backgroundColor:Ee,cursor:"not-allowed"}},[`${ne}-submenu-selected ${oe}-menu-submenu-title`]:{color:he.colorPrimary}})}},[(0,ge.oN)(he,"slide-up"),(0,ge.oN)(he,"slide-down"),(0,be.Fm)(he,"move-up"),(0,be.Fm)(he,"move-down"),(0,ve._y)(he,"zoom-big")]]};var ae=(0,fe.Z)("Dropdown",(he,oe)=>{let{rootPrefixCls:ne}=oe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:re,borderRadiusLG:se}=he,ce=(E-b*x)/2,{dropdownArrowOffset:_e}=(0,Se.fS)({contentRadius:se}),ye=(0,ie.TS)(he,{menuCls:`${re}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:_e,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:z});return[me(ye),le(ye)]},he=>({zIndexPopup:he.zIndexPopupBase+50}))},8628:function(ht,Ve,te){"use strict";var ee=te(59301),ge=te(34280),be=te(56762),ve=te(69507);function Se(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,ee.useRef)({}),ue=(0,be.Z)(),le=(0,ve.ZP)();return(0,ge.Z)(()=>{const me=le.subscribe(ae=>{ie.current=ae,fe&&ue()});return()=>le.unsubscribe(me)},[]),ie.current}Ve.Z=Se},45818:function(ht,Ve,te){"use strict";te.d(Ve,{D:function(){return z},Z:function(){return ce}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(ye,De){return ge.createElement(Se.Z,(0,ee.Z)({},ye,{ref:De,icon:ve}))},ie=ge.forwardRef(fe),ue=ie,le=te(33853),me=te(38819),ae=te(92310),he=te.n(ae),oe=te(2738),a=_e=>!isNaN(parseFloat(_e))&&isFinite(_e),y=te(36355),E=te(84966),b=function(_e,ye){var De={};for(var Ee in _e)Object.prototype.hasOwnProperty.call(_e,Ee)&&ye.indexOf(Ee)<0&&(De[Ee]=_e[Ee]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ee=Object.getOwnPropertySymbols(_e);je<Ee.length;je++)ye.indexOf(Ee[je])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ee[je])&&(De[Ee[je]]=_e[Ee[je]]);return De};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ge.createContext({}),re=(()=>{let _e=0;return function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _e+=1,`${ye}${_e}`}})();var ce=ge.forwardRef((_e,ye)=>{const{prefixCls:De,className:Ee,trigger:je,children:Le,defaultCollapsed:ft=!1,theme:Xe="dark",style:pt={},collapsible:we=!1,reverseArrow:Fe=!1,width:He=200,collapsedWidth:st=80,zeroWidthTriggerStyle:Ke,breakpoint:mt,onCollapse:_t,onBreakpoint:At}=_e,kt=b(_e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,ge.useContext)(E.Gs),[Qe,Pt]=(0,ge.useState)("collapsed"in _e?_e.collapsed:ft),[zt,Ct]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in _e&&Pt(_e.collapsed)},[_e.collapsed]);const sn=(lt,ct)=>{"collapsed"in _e||Pt(lt),_t==null||_t(lt,ct)},Ze=(0,ge.useRef)();Ze.current=lt=>{Ct(lt.matches),At==null||At(lt.matches),Qe!==lt.matches&&sn(lt.matches,"responsive")},(0,ge.useEffect)(()=>{function lt(Ge){return Ze.current(Ge)}let ct;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&mt&&mt in x){ct=Ge(`(max-width: ${x[mt]})`);try{ct.addEventListener("change",lt)}catch(Ne){ct.addListener(lt)}lt(ct)}}return()=>{try{ct==null||ct.removeEventListener("change",lt)}catch(Ge){ct==null||ct.removeListener(lt)}}},[mt]),(0,ge.useEffect)(()=>{const lt=re("ant-sider-");return rt.addSider(lt),()=>rt.removeSider(lt)},[]);const St=()=>{sn(!Qe,"clickTrigger")},{getPrefixCls:xt}=(0,ge.useContext)(y.E_),ln=()=>{const lt=xt("layout-sider",De),ct=(0,oe.Z)(kt,["collapsed"]),Ge=Qe?st:He,Ne=a(Ge)?`${Ge}px`:String(Ge),tt=parseFloat(String(st||0))===0?ge.createElement("span",{onClick:St,className:he()(`${lt}-zero-width-trigger`,`${lt}-zero-width-trigger-${Fe?"right":"left"}`),style:Ke},je||ge.createElement(ue,null)):null,Oe={expanded:Fe?ge.createElement(me.Z,null):ge.createElement(le.Z,null),collapsed:Fe?ge.createElement(le.Z,null):ge.createElement(me.Z,null)}[Qe?"collapsed":"expanded"],We=je!==null?tt||ge.createElement("div",{className:`${lt}-trigger`,onClick:St,style:{width:Ne}},je||Oe):null,ke=Object.assign(Object.assign({},pt),{flex:`0 0 ${Ne}`,maxWidth:Ne,minWidth:Ne,width:Ne}),ze=he()(lt,`${lt}-${Xe}`,{[`${lt}-collapsed`]:!!Qe,[`${lt}-has-trigger`]:we&&je!==null&&!tt,[`${lt}-below`]:!!zt,[`${lt}-zero-width`]:parseFloat(Ne)===0},Ee);return ge.createElement("aside",Object.assign({className:ze},ct,{style:ke,ref:ye}),ge.createElement("div",{className:`${lt}-children`},Le),we||zt&&tt?We:null)},Gt=ge.useMemo(()=>({siderCollapsed:Qe}),[Qe]);return ge.createElement(z.Provider,{value:Gt},ln())})},84966:function(ht,Ve,te){"use strict";te.d(Ve,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return oe},ZP:function(){return re}});var ee=te(3300),ge=te(92310),be=te.n(ge),ve=te(2738),Se=te(59301),fe=te(36355),ie=te(83116),le=se=>{const{componentCls:ce,bodyBg:_e,lightSiderBg:ye,lightTriggerBg:De,lightTriggerColor:Ee}=se;return{[`${ce}-sider-light`]:{background:ye,[`${ce}-sider-trigger`]:{color:Ee,background:De},[`${ce}-sider-zero-width-trigger`]:{color:Ee,background:De,border:`1px solid ${_e}`,borderInlineStart:0}}}};const me=se=>{const{antCls:ce,componentCls:_e,colorText:ye,triggerColor:De,footerBg:Ee,triggerBg:je,headerHeight:Le,headerPadding:ft,headerColor:Xe,footerPadding:pt,triggerHeight:we,zeroTriggerHeight:Fe,zeroTriggerWidth:He,motionDurationMid:st,motionDurationSlow:Ke,fontSize:mt,borderRadius:_t,bodyBg:At,headerBg:kt,siderBg:rt}=se;return{[_e]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{boxSizing:"border-box"},[`&${_e}-has-sider`]:{flexDirection:"row",[`> ${_e}, > ${_e}-content`]:{width:0}},[`${_e}-header, &${_e}-footer`]:{flex:"0 0 auto"},[`${_e}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${st}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:De,lineHeight:`${we}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${st}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Le,insetInlineEnd:-He,zIndex:1,width:He,height:Fe,color:De,fontSize:se.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:_t,borderEndEndRadius:_t,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:_t,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_t}}}}},le(se)),{"&-rtl":{direction:"rtl"}}),[`${_e}-header`]:{height:Le,padding:ft,color:Xe,lineHeight:`${Le}px`,background:kt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${_e}-footer`]:{padding:pt,color:ye,fontSize:mt,background:Ee},[`${_e}-content`]:{flex:"auto",minHeight:0}}};var ae=(0,ie.Z)("Layout",se=>[me(se)],se=>{const{colorBgLayout:ce,controlHeight:_e,controlHeightLG:ye,colorText:De,controlHeightSM:Ee,marginXXS:je,colorTextLightSolid:Le,colorBgContainer:ft}=se,Xe=ye*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:_e*2,headerPadding:`0 ${Xe}px`,headerColor:De,footerPadding:`${Ee}px ${Xe}px`,footerBg:ce,siderBg:"#001529",triggerHeight:ye+je*2,triggerBg:"#002140",triggerColor:Le,zeroTriggerWidth:ye,zeroTriggerHeight:ye,lightSiderBg:ft,lightTriggerBg:ft,lightTriggerColor:De}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),he=function(se,ce){var _e={};for(var ye in se)Object.prototype.hasOwnProperty.call(se,ye)&&ce.indexOf(ye)<0&&(_e[ye]=se[ye]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ye=Object.getOwnPropertySymbols(se);De<ye.length;De++)ce.indexOf(ye[De])<0&&Object.prototype.propertyIsEnumerable.call(se,ye[De])&&(_e[ye[De]]=se[ye[De]]);return _e};const oe=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(se){let{suffixCls:ce,tagName:_e,displayName:ye}=se;return De=>Se.forwardRef((je,Le)=>Se.createElement(De,Object.assign({ref:Le,suffixCls:ce,tagName:_e},je)))}const a=Se.forwardRef((se,ce)=>{const{prefixCls:_e,suffixCls:ye,className:De,tagName:Ee}=se,je=he(se,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Le}=Se.useContext(fe.E_),ft=Le("layout",_e),[Xe,pt]=ae(ft),we=ye?`${ft}-${ye}`:ft;return Xe(Se.createElement(Ee,Object.assign({className:be()(_e||we,De,pt),ref:ce},je)))}),y=Se.forwardRef((se,ce)=>{const{direction:_e}=Se.useContext(fe.E_),[ye,De]=Se.useState([]),{prefixCls:Ee,className:je,rootClassName:Le,children:ft,hasSider:Xe,tagName:pt,style:we}=se,Fe=he(se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,ve.Z)(Fe,["suffixCls"]),{getPrefixCls:st,layout:Ke}=Se.useContext(fe.E_),mt=st("layout",Ee),[_t,At]=ae(mt),kt=be()(mt,{[`${mt}-has-sider`]:typeof Xe=="boolean"?Xe:ye.length>0,[`${mt}-rtl`]:_e==="rtl"},Ke==null?void 0:Ke.className,je,Le,At),rt=Se.useMemo(()=>({siderHook:{addSider:Qe=>{De(Pt=>[].concat((0,ee.Z)(Pt),[Qe]))},removeSider:Qe=>{De(Pt=>Pt.filter(zt=>zt!==Qe))}}}),[]);return _t(Se.createElement(oe.Provider,{value:rt},Se.createElement(pt,Object.assign({ref:ce,className:kt,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),we)},He),ft)))}),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 re=E},40875:function(ht,Ve,te){"use strict";te.d(Ve,{J:function(){return fe}});var ee=te(59301),ge=te(33234),be=te(70425),ve=function(ie,ue){var le={};for(var me in ie)Object.prototype.hasOwnProperty.call(ie,me)&&ue.indexOf(me)<0&&(le[me]=ie[me]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,me=Object.getOwnPropertySymbols(ie);ae<me.length;ae++)ue.indexOf(me[ae])<0&&Object.prototype.propertyIsEnumerable.call(ie,me[ae])&&(le[me[ae]]=ie[me[ae]]);return le};const Se=ee.createContext(null),fe=ee.forwardRef((ie,ue)=>{const{children:le}=ie,me=ve(ie,["children"]),ae=ee.useContext(Se),he=ee.useMemo(()=>Object.assign(Object.assign({},ae),me),[ae,me.prefixCls,me.mode,me.selectable]);return ee.createElement(Se.Provider,{value:he},ee.createElement(ge.BR,null,(0,be.supportNodeRef)(le)?ee.cloneElement(le,{ref:ue}):le))});Ve.Z=Se},20834:function(ht,Ve,te){"use strict";te.d(Ve,{default:function(){return Gt}});var ee=te(15285),ge=te(59301),be=te(45818),ve=te(92310),Se=te.n(ve),fe=te(36355),ie=function(lt,ct){var Ge={};for(var Ne in lt)Object.prototype.hasOwnProperty.call(lt,Ne)&&ct.indexOf(Ne)<0&&(Ge[Ne]=lt[Ne]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ne=Object.getOwnPropertySymbols(lt);tt<Ne.length;tt++)ct.indexOf(Ne[tt])<0&&Object.prototype.propertyIsEnumerable.call(lt,Ne[tt])&&(Ge[Ne[tt]]=lt[Ne[tt]]);return Ge},le=lt=>{const{prefixCls:ct,className:Ge,dashed:Ne}=lt,tt=ie(lt,["prefixCls","className","dashed"]),{getPrefixCls:Et}=ge.useContext(fe.E_),Ie=Et("menu",ct),Oe=Se()({[`${Ie}-item-divider-dashed`]:!!Ne},Ge);return ge.createElement(ee.iz,Object.assign({className:Oe},tt))},me=te(11592),ae=te(2738),he=te(6848),oe=te(92343),a=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=lt=>{var ct;const{className:Ge,children:Ne,icon:tt,title:Et,danger:Ie}=lt,{prefixCls:Oe,firstLevel:We,direction:ke,disableMenuItemTitleTooltip:ze,inlineCollapsed:it}=ge.useContext(a),It=fn=>{const un=ge.createElement("span",{className:`${Oe}-title-content`},Ne);return(!tt||(0,oe.l$)(Ne)&&Ne.type==="span")&&Ne&&fn&&We&&typeof Ne=="string"?ge.createElement("div",{className:`${Oe}-inline-collapsed-noicon`},Ne.charAt(0)):un},{siderCollapsed:Dt}=ge.useContext(be.D);let jt=Et;typeof Et=="undefined"?jt=We?Ne:"":Et===!1&&(jt="");const Lt={title:jt};!Dt&&!it&&(Lt.title=null,Lt.open=!1);const Ht=(0,me.Z)(Ne).length;let yt=ge.createElement(ee.ck,Object.assign({},(0,ae.Z)(lt,["title","icon","danger"]),{className:Se()({[`${Oe}-item-danger`]:Ie,[`${Oe}-item-only-child`]:(tt?Ht+1:Ht)===1},Ge),title:typeof Et=="string"?Et:void 0}),(0,oe.Tm)(tt,{className:Se()((0,oe.l$)(tt)?(ct=tt.props)===null||ct===void 0?void 0:ct.className:"",`${Oe}-item-icon`)}),It(it));return ze||(yt=ge.createElement(he.Z,Object.assign({},Lt,{placement:ke==="rtl"?"left":"right",overlayClassName:`${Oe}-inline-collapsed-tooltip`}),yt)),yt},x=lt=>{var ct;const{popupClassName:Ge,icon:Ne,title:tt,theme:Et}=lt,Ie=ge.useContext(a),{prefixCls:Oe,inlineCollapsed:We,theme:ke}=Ie,ze=(0,ee.Xl)();let it;if(!Ne)it=We&&!ze.length&&tt&&typeof tt=="string"?ge.createElement("div",{className:`${Oe}-inline-collapsed-noicon`},tt.charAt(0)):ge.createElement("span",{className:`${Oe}-title-content`},tt);else{const Dt=(0,oe.l$)(tt)&&tt.type==="span";it=ge.createElement(ge.Fragment,null,(0,oe.Tm)(Ne,{className:Se()((0,oe.l$)(Ne)?(ct=Ne.props)===null||ct===void 0?void 0:ct.className:"",`${Oe}-item-icon`)}),Dt?tt:ge.createElement("span",{className:`${Oe}-title-content`},tt))}const It=ge.useMemo(()=>Object.assign(Object.assign({},Ie),{firstLevel:!1}),[Ie]);return ge.createElement(a.Provider,{value:It},ge.createElement(ee.Wd,Object.assign({},(0,ae.Z)(lt,["icon"]),{title:it,popupClassName:Se()(Oe,Ge,`${Oe}-${Et||ke}`)})))},z=te(18785),re=te(70425),se=te(62892),ce=te(40875),_e=function(lt,ct){var Ge={};for(var Ne in lt)Object.prototype.hasOwnProperty.call(lt,Ne)&&ct.indexOf(Ne)<0&&(Ge[Ne]=lt[Ne]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ne=Object.getOwnPropertySymbols(lt);tt<Ne.length;tt++)ct.indexOf(Ne[tt])<0&&Object.prototype.propertyIsEnumerable.call(lt,Ne[tt])&&(Ge[Ne[tt]]=lt[Ne[tt]]);return Ge};function ye(lt){return(lt||[]).map((ct,Ge)=>{if(ct&&typeof ct=="object"){const Ne=ct,{label:tt,children:Et,key:Ie,type:Oe}=Ne,We=_e(Ne,["label","children","key","type"]),ke=Ie!=null?Ie:`tmp-${Ge}`;return Et||Oe==="group"?Oe==="group"?ge.createElement(ee.BW,Object.assign({key:ke},We,{title:tt}),ye(Et)):ge.createElement(x,Object.assign({key:ke},We,{title:tt}),ye(Et)):Oe==="divider"?ge.createElement(le,Object.assign({key:ke},We)):ge.createElement(E,Object.assign({key:ke},We),tt)}return null}).filter(ct=>ct)}function De(lt){return ge.useMemo(()=>lt&&ye(lt),[lt])}var Ee=te(64993),je=te(17313),Le=te(8378),ft=te(13826),Xe=te(29878),pt=te(83116),we=te(37613),He=lt=>{const{componentCls:ct,motionDurationSlow:Ge,horizontalLineHeight:Ne,colorSplit:tt,lineWidth:Et,lineType:Ie,itemPaddingInline:Oe}=lt;return{[`${ct}-horizontal`]:{lineHeight:Ne,border:0,borderBottom:`${Et}px ${Ie} ${tt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ct}-item, ${ct}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Oe},[`> ${ct}-item:hover,
> ${ct}-item-active,
> ${ct}-submenu ${ct}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ct}-item, ${ct}-submenu-title`]:{transition:[`border-color ${Ge}`,`background ${Ge}`].join(",")},[`${ct}-submenu-arrow`]:{display:"none"}}}},Ke=lt=>{let{componentCls:ct,menuArrowOffset:Ge}=lt;return{[`${ct}-rtl`]:{direction:"rtl"},[`${ct}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ct}-rtl${ct}-vertical,
${ct}-submenu-rtl ${ct}-vertical`]:{[`${ct}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(45deg) translateY(${Ge})`}}}}};const mt=lt=>Object.assign({},(0,je.oN)(lt));var At=(lt,ct)=>{const{componentCls:Ge,itemColor:Ne,itemSelectedColor:tt,groupTitleColor:Et,itemBg:Ie,subMenuItemBg:Oe,itemSelectedBg:We,activeBarHeight:ke,activeBarWidth:ze,activeBarBorderWidth:it,motionDurationSlow:It,motionEaseInOut:Dt,motionEaseOut:jt,itemPaddingInline:Lt,motionDurationMid:Ht,itemHoverColor:yt,lineType:fn,colorSplit:un,itemDisabledColor:bt,dangerItemColor:Sn,dangerItemHoverColor:pn,dangerItemSelectedColor:Fn,dangerItemActiveBg:xn,dangerItemSelectedBg:Kn,itemHoverBg:er,itemActiveBg:Vn,menuSubMenuBg:Yn,horizontalItemSelectedColor:pr,horizontalItemSelectedBg:vr,horizontalItemBorderRadius:tn,horizontalItemHoverBg:Xn,popupBg:sr}=lt;return{[`${Ge}-${ct}, ${Ge}-${ct} > ${Ge}`]:{color:Ne,background:Ie,[`&${Ge}-root:focus-visible`]:Object.assign({},mt(lt)),[`${Ge}-item-group-title`]:{color:Et},[`${Ge}-submenu-selected`]:{[`> ${Ge}-submenu-title`]:{color:tt}},[`${Ge}-item-disabled, ${Ge}-submenu-disabled`]:{color:`${bt} !important`},[`${Ge}-item:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{[`&:hover, > ${Ge}-submenu-title:hover`]:{color:yt}},[`&:not(${Ge}-horizontal)`]:{[`${Ge}-item:not(${Ge}-item-selected)`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:Vn}},[`${Ge}-submenu-title`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:Vn}}},[`${Ge}-item-danger`]:{color:Sn,[`&${Ge}-item:hover`]:{[`&:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{color:pn}},[`&${Ge}-item:active`]:{background:xn}},[`${Ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ge}-item-selected`]:{color:tt,[`&${Ge}-item-danger`]:{color:Fn},"a, a:hover":{color:"inherit"}},[`& ${Ge}-item-selected`]:{backgroundColor:We,[`&${Ge}-item-danger`]:{backgroundColor:Kn}},[`${Ge}-item, ${Ge}-submenu-title`]:{[`&:not(${Ge}-item-disabled):focus-visible`]:Object.assign({},mt(lt))},[`&${Ge}-submenu > ${Ge}`]:{backgroundColor:Yn},[`&${Ge}-popup > ${Ge}`]:{backgroundColor:sr},[`&${Ge}-horizontal`]:Object.assign(Object.assign({},ct==="dark"?{borderBottom:0}:{}),{[`> ${Ge}-item, > ${Ge}-submenu`]:{top:it,marginTop:-it,marginBottom:0,borderRadius:tn,"&::after":{position:"absolute",insetInline:Lt,bottom:0,borderBottom:`${ke}px solid transparent`,transition:`border-color ${It} ${Dt}`,content:'""'},"&:hover, &-active, &-open":{background:Xn,"&::after":{borderBottomWidth:ke,borderBottomColor:pr}},"&-selected":{color:pr,backgroundColor:vr,"&:hover":{backgroundColor:vr},"&::after":{borderBottomWidth:ke,borderBottomColor:pr}}}}),[`&${Ge}-root`]:{[`&${Ge}-inline, &${Ge}-vertical`]:{borderInlineEnd:`${it}px ${fn} ${un}`}},[`&${Ge}-inline`]:{[`${Ge}-sub${Ge}-inline`]:{background:Oe},[`${Ge}-item, ${Ge}-submenu-title`]:it&&ze?{width:`calc(100% + ${it}px)`}:{},[`${Ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ze}px solid ${tt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${jt}`,`opacity ${Ht} ${jt}`].join(","),content:'""'},[`&${Ge}-item-danger`]:{"&::after":{borderInlineEndColor:Fn}}},[`${Ge}-selected, ${Ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${Dt}`,`opacity ${Ht} ${Dt}`].join(",")}}}}}};const kt=lt=>{const{componentCls:ct,itemHeight:Ge,itemMarginInline:Ne,padding:tt,menuArrowSize:Et,marginXS:Ie,itemMarginBlock:Oe}=lt,We=tt+Et+Ie;return{[`${ct}-item`]:{position:"relative",overflow:"hidden"},[`${ct}-item, ${ct}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`,paddingInline:tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ne,marginBlock:Oe,width:`calc(100% - ${Ne*2}px)`},[`> ${ct}-item,
> ${ct}-submenu > ${ct}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`},[`${ct}-item-group-list ${ct}-submenu-title,
${ct}-submenu-title`]:{paddingInlineEnd:We}}};var Qe=lt=>{const{componentCls:ct,iconCls:Ge,itemHeight:Ne,colorTextLightSolid:tt,dropdownWidth:Et,controlHeightLG:Ie,motionDurationMid:Oe,motionEaseOut:We,paddingXL:ke,itemMarginInline:ze,fontSizeLG:it,motionDurationSlow:It,paddingXS:Dt,boxShadowSecondary:jt,collapsedWidth:Lt,collapsedIconSize:Ht}=lt,yt={height:Ne,lineHeight:`${Ne}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ct]:{"&-inline, &-vertical":Object.assign({[`&${ct}-root`]:{boxShadow:"none"}},kt(lt))},[`${ct}-submenu-popup`]:{[`${ct}-vertical`]:Object.assign(Object.assign({},kt(lt)),{boxShadow:jt})}},{[`${ct}-submenu-popup ${ct}-vertical${ct}-sub`]:{minWidth:Et,maxHeight:`calc(100vh - ${Ie*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ct}-inline`]:{width:"100%",[`&${ct}-root`]:{[`${ct}-item, ${ct}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${It}`,`background ${It}`,`padding ${Oe} ${We}`].join(","),[`> ${ct}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ct}-sub${ct}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ct}-submenu > ${ct}-submenu-title`]:yt,[`& ${ct}-item-group-title`]:{paddingInlineStart:ke}},[`${ct}-item`]:yt}},{[`${ct}-inline-collapsed`]:{width:Lt,[`&${ct}-root`]:{[`${ct}-item, ${ct}-submenu ${ct}-submenu-title`]:{[`> ${ct}-inline-collapsed-noicon`]:{fontSize:it,textAlign:"center"}}},[`> ${ct}-item,
> ${ct}-item-group > ${ct}-item-group-list > ${ct}-item,
> ${ct}-item-group > ${ct}-item-group-list > ${ct}-submenu > ${ct}-submenu-title,
> ${ct}-submenu > ${ct}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${it/2}px - ${ze}px)`,textOverflow:"clip",[`
${ct}-submenu-arrow,
${ct}-submenu-expand-icon
`]:{opacity:0},[`${ct}-item-icon, ${Ge}`]:{margin:0,fontSize:Ht,lineHeight:`${Ne}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ct}-item-icon, ${Ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ct}-item-icon, ${Ge}`]:{display:"none"},"a, a:hover":{color:tt}},[`${ct}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:Dt})}}]};const Pt=lt=>{const{componentCls:ct,motionDurationSlow:Ge,motionDurationMid:Ne,motionEaseInOut:tt,motionEaseOut:Et,iconCls:Ie,iconSize:Oe,iconMarginInlineEnd:We}=lt;return{[`${ct}-item, ${ct}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${Ge} ${tt}`].join(","),[`${ct}-item-icon, ${Ie}`]:{minWidth:Oe,fontSize:Oe,transition:[`font-size ${Ne} ${Et}`,`margin ${Ge} ${tt}`,`color ${Ge}`].join(","),"+ span":{marginInlineStart:We,opacity:1,transition:[`opacity ${Ge} ${tt}`,`margin ${Ge}`,`color ${Ge}`].join(",")}},[`${ct}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${ct}-item-only-child`]:{[`> ${Ie}, > ${ct}-item-icon`]:{marginInlineEnd:0}}},[`${ct}-item-disabled, ${ct}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ct}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zt=lt=>{const{componentCls:ct,motionDurationSlow:Ge,motionEaseInOut:Ne,borderRadius:tt,menuArrowSize:Et,menuArrowOffset:Ie}=lt;return{[`${ct}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:lt.margin,width:Et,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ge} ${Ne}, opacity ${Ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Et*.6,height:Et*.15,backgroundColor:"currentcolor",borderRadius:tt,transition:[`background ${Ge} ${Ne}`,`transform ${Ge} ${Ne}`,`top ${Ge} ${Ne}`,`color ${Ge} ${Ne}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ie})`},"&::after":{transform:`rotate(-45deg) translateY(${Ie})`}}}}},Ct=lt=>{const{antCls:ct,componentCls:Ge,fontSize:Ne,motionDurationSlow:tt,motionDurationMid:Et,motionEaseInOut:Ie,paddingXS:Oe,padding:We,colorSplit:ke,lineWidth:ze,zIndexPopup:it,borderRadiusLG:It,subMenuItemBorderRadius:Dt,menuArrowSize:jt,menuArrowOffset:Lt,lineType:Ht,menuPanelMaskInset:yt,groupTitleLineHeight:fn,groupTitleFontSize:un}=lt;return[{"":{[`${Ge}`]:Object.assign(Object.assign({},(0,je.dF)()),{"&-hidden":{display:"none"}})},[`${Ge}-submenu-hidden`]:{display:"none"}},{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(lt)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ne,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${tt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ge}-item`]:{flex:"none"}},[`${Ge}-item, ${Ge}-submenu, ${Ge}-submenu-title`]:{borderRadius:lt.itemBorderRadius},[`${Ge}-item-group-title`]:{padding:`${Oe}px ${We}px`,fontSize:un,lineHeight:fn,transition:`all ${tt}`},[`&-horizontal ${Ge}-submenu`]:{transition:[`border-color ${tt} ${Ie}`,`background ${tt} ${Ie}`].join(",")},[`${Ge}-submenu, ${Ge}-submenu-inline`]:{transition:[`border-color ${tt} ${Ie}`,`background ${tt} ${Ie}`,`padding ${Et} ${Ie}`].join(",")},[`${Ge}-submenu ${Ge}-sub`]:{cursor:"initial",transition:[`background ${tt} ${Ie}`,`padding ${tt} ${Ie}`].join(",")},[`${Ge}-title-content`]:{transition:`color ${tt}`},[`${Ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ke,borderStyle:Ht,borderWidth:0,borderTopWidth:ze,marginBlock:ze,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Pt(lt)),{[`${Ge}-item-group`]:{[`${Ge}-item-group-list`]:{margin:0,padding:0,[`${Ge}-item, ${Ge}-submenu-title`]:{paddingInline:`${Ne*2}px ${We}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:it,borderRadius:It,boxShadow:"none",transformOrigin:"0 0",[`&${Ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${yt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:yt},"\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:lt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:lt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:lt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:lt.paddingXS},[`> ${Ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:It},Pt(lt)),zt(lt)),{[`${Ge}-item, ${Ge}-submenu > ${Ge}-submenu-title`]:{borderRadius:Dt},[`${Ge}-submenu-title::after`]:{transition:`transform ${tt} ${Ie}`}})}}),zt(lt)),{[`&-inline-collapsed ${Ge}-submenu-arrow,
&-inline ${Ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Lt})`},"&::after":{transform:`rotate(45deg) translateX(-${Lt})`}},[`${Ge}-submenu-open${Ge}-submenu-inline > ${Ge}-submenu-title > ${Ge}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Lt})`},"&::before":{transform:`rotate(45deg) translateX(${Lt})`}}})},{[`${ct}-layout-header`]:{[Ge]:{lineHeight:"inherit"}}}]};var sn=(lt,ct)=>(0,pt.Z)("Menu",Ne=>{if(ct===!1)return[];const{colorBgElevated:tt,colorPrimary:Et,colorTextLightSolid:Ie,controlHeightLG:Oe,fontSize:We,darkItemColor:ke,darkDangerItemColor:ze,darkItemBg:it,darkSubMenuItemBg:It,darkItemSelectedColor:Dt,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Lt,darkItemHoverBg:Ht,darkGroupTitleColor:yt,darkItemHoverColor:fn,darkItemDisabledColor:un,darkDangerItemHoverColor:bt,darkDangerItemSelectedColor:Sn,darkDangerItemActiveBg:pn}=Ne,Fn=We/7*5,xn=(0,we.TS)(Ne,{menuArrowSize:Fn,menuHorizontalHeight:Oe*1.15,menuArrowOffset:`${Fn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:tt}),Kn=(0,we.TS)(xn,{itemColor:ke,itemHoverColor:fn,groupTitleColor:yt,itemSelectedColor:Dt,itemBg:it,popupBg:it,subMenuItemBg:It,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ht,itemDisabledColor:un,dangerItemColor:ze,dangerItemHoverColor:bt,dangerItemSelectedColor:Sn,dangerItemActiveBg:pn,dangerItemSelectedBg:Lt,menuSubMenuBg:It,horizontalItemSelectedColor:Ie,horizontalItemSelectedBg:Et});return[Ct(xn),He(xn),Qe(xn),At(xn,"light"),At(Kn,"dark"),Ke(xn),(0,Le.Z)(xn),(0,ft.oN)(xn,"slide-up"),(0,ft.oN)(xn,"slide-down"),(0,Xe._y)(xn,"zoom-big")]},Ne=>{const{colorPrimary:tt,colorError:Et,colorTextDisabled:Ie,colorErrorBg:Oe,colorText:We,colorTextDescription:ke,colorBgContainer:ze,colorFillAlter:it,colorFillContent:It,lineWidth:Dt,lineWidthBold:jt,controlItemBgActive:Lt,colorBgTextHover:Ht,controlHeightLG:yt,lineHeight:fn,colorBgElevated:un,marginXXS:bt,padding:Sn,fontSize:pn,controlHeightSM:Fn,fontSizeLG:xn,colorTextLightSolid:Kn,colorErrorHover:er}=Ne,Vn=new Ee.C(Kn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ne.zIndexPopupBase+50,radiusItem:Ne.borderRadiusLG,itemBorderRadius:Ne.borderRadiusLG,radiusSubMenuItem:Ne.borderRadiusSM,subMenuItemBorderRadius:Ne.borderRadiusSM,colorItemText:We,itemColor:We,colorItemTextHover:We,itemHoverColor:We,colorItemTextHoverHorizontal:tt,horizontalItemHoverColor:tt,colorGroupTitle:ke,groupTitleColor:ke,colorItemTextSelected:tt,itemSelectedColor:tt,colorItemTextSelectedHorizontal:tt,horizontalItemSelectedColor:tt,colorItemBg:ze,itemBg:ze,colorItemBgHover:Ht,itemHoverBg:Ht,colorItemBgActive:It,itemActiveBg:Lt,colorSubItemBg:it,subMenuItemBg:it,colorItemBgSelected:Lt,itemSelectedBg:Lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Dt,activeBarBorderWidth:Dt,colorItemTextDisabled:Ie,itemDisabledColor:Ie,colorDangerItemText:Et,dangerItemColor:Et,colorDangerItemTextHover:Et,dangerItemHoverColor:Et,colorDangerItemTextSelected:Et,dangerItemSelectedColor:Et,colorDangerItemBgActive:Oe,dangerItemActiveBg:Oe,colorDangerItemBgSelected:Oe,dangerItemSelectedBg:Oe,itemMarginInline:Ne.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:yt,groupTitleLineHeight:fn,collapsedWidth:yt*2,popupBg:un,itemMarginBlock:bt,itemPaddingInline:Sn,horizontalLineHeight:`${yt*1.15}px`,iconSize:pn,iconMarginInlineEnd:Fn-pn,collapsedIconSize:xn,groupTitleFontSize:pn,darkItemDisabledColor:new Ee.C(Kn).setAlpha(.25).toRgbString(),darkItemColor:Vn,darkDangerItemColor:Et,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kn,darkItemSelectedBg:tt,darkDangerItemSelectedBg:Et,darkItemHoverBg:"transparent",darkGroupTitleColor:Vn,darkItemHoverColor:Kn,darkDangerItemHoverColor:er,darkDangerItemSelectedColor:Kn,darkDangerItemActiveBg:Et}},{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"]]})(lt),Ze=function(lt,ct){var Ge={};for(var Ne in lt)Object.prototype.hasOwnProperty.call(lt,Ne)&&ct.indexOf(Ne)<0&&(Ge[Ne]=lt[Ne]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ne=Object.getOwnPropertySymbols(lt);tt<Ne.length;tt++)ct.indexOf(Ne[tt])<0&&Object.prototype.propertyIsEnumerable.call(lt,Ne[tt])&&(Ge[Ne[tt]]=lt[Ne[tt]]);return Ge},xt=(0,ge.forwardRef)((lt,ct)=>{var Ge,Ne;const tt=ge.useContext(ce.Z),Et=tt||{},{getPrefixCls:Ie,getPopupContainer:Oe,direction:We,menu:ke}=ge.useContext(fe.E_),ze=Ie(),{prefixCls:it,className:It,style:Dt,theme:jt="light",expandIcon:Lt,_internalDisableMenuItemTitleTooltip:Ht,inlineCollapsed:yt,siderCollapsed:fn,items:un,children:bt,rootClassName:Sn,mode:pn,selectable:Fn,onClick:xn,overflowedIndicatorPopupClassName:Kn}=lt,er=Ze(lt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vn=(0,ae.Z)(er,["collapsedWidth"]),Yn=De(un)||bt;(Ge=Et.validator)===null||Ge===void 0||Ge.call(Et,{mode:pn});const pr=(0,re.useEvent)(function(){var cr;xn==null||xn.apply(void 0,arguments),(cr=Et.onClick)===null||cr===void 0||cr.call(Et)}),vr=Et.mode||pn,tn=Fn!=null?Fn:Et.selectable,Xn=ge.useMemo(()=>fn!==void 0?fn:yt,[yt,fn]),sr={horizontal:{motionName:`${ze}-slide-up`},inline:(0,se.Z)(ze),other:{motionName:`${ze}-zoom-big`}},Wn=Ie("menu",it||Et.prefixCls),[lr,Or]=sn(Wn,!tt),Rr=Se()(`${Wn}-${jt}`,ke==null?void 0:ke.className,It);let Er;if(typeof Lt=="function")Er=Lt;else if(Lt===null||Lt===!1)Er=null;else if(Et.expandIcon===null||Et.expandIcon===!1)Er=null;else{const cr=Lt!=null?Lt:Et.expandIcon;Er=(0,oe.Tm)(cr,{className:Se()(`${Wn}-submenu-expand-icon`,(0,oe.l$)(cr)?(Ne=cr.props)===null||Ne===void 0?void 0:Ne.className:"")})}const Nr=ge.useMemo(()=>({prefixCls:Wn,inlineCollapsed:Xn||!1,direction:We,firstLevel:!0,theme:jt,mode:vr,disableMenuItemTitleTooltip:Ht}),[Wn,Xn,We,Ht,jt]);return lr(ge.createElement(ce.Z.Provider,{value:null},ge.createElement(a.Provider,{value:Nr},ge.createElement(ee.ZP,Object.assign({getPopupContainer:Oe,overflowedIndicator:ge.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Wn,`${Wn}-${jt}`,Kn),mode:vr,selectable:tn,onClick:pr},Vn,{inlineCollapsed:Xn,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Dt),className:Rr,prefixCls:Wn,direction:We,defaultMotions:sr,expandIcon:Er,ref:ct,rootClassName:Se()(Sn,Or)}),Yn))))});const ln=(0,ge.forwardRef)((lt,ct)=>{const Ge=(0,ge.useRef)(null),Ne=ge.useContext(be.D);return(0,ge.useImperativeHandle)(ct,()=>({menu:Ge.current,focus:tt=>{var Et;(Et=Ge.current)===null||Et===void 0||Et.focus(tt)}})),ge.createElement(xt,Object.assign({ref:Ge},lt,Ne))});ln.Item=E,ln.SubMenu=x,ln.Divider=le,ln.ItemGroup=ee.BW;var Gt=ln},58421:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return Et}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(Oe,We){return ge.createElement(Se.Z,(0,ee.Z)({},Oe,{ref:We,icon:ve}))},ie=ge.forwardRef(fe),ue=ie,le=te(49198),me=te(33853),ae=te(38819),he=te(92310),oe=te.n(he),ne=te(74430),a=te(27247),y=te(33377),E=te(93912),b=te(18881),x=te(85461),z=te(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},se=re,ce=te(91735),_e=function(Ie){(0,b.Z)(We,Ie);var Oe=(0,x.Z)(We);function We(){var ke;(0,y.Z)(this,We);for(var ze=arguments.length,it=new Array(ze),It=0;It<ze;It++)it[It]=arguments[It];return ke=Oe.call.apply(Oe,[this].concat(it)),ke.state={goInputText:""},ke.getValidValue=function(){var Dt=ke.state.goInputText;return!Dt||Number.isNaN(Dt)?void 0:Number(Dt)},ke.buildOptionText=function(Dt){return"".concat(Dt," ").concat(ke.props.locale.items_per_page)},ke.changeSize=function(Dt){ke.props.changeSize(Number(Dt))},ke.handleChange=function(Dt){ke.setState({goInputText:Dt.target.value})},ke.handleBlur=function(Dt){var jt=ke.props,Lt=jt.goButton,Ht=jt.quickGo,yt=jt.rootPrefixCls,fn=ke.state.goInputText;Lt||fn===""||(ke.setState({goInputText:""}),!(Dt.relatedTarget&&(Dt.relatedTarget.className.indexOf("".concat(yt,"-item-link"))>=0||Dt.relatedTarget.className.indexOf("".concat(yt,"-item"))>=0))&&Ht(ke.getValidValue()))},ke.go=function(Dt){var jt=ke.state.goInputText;jt!==""&&(Dt.keyCode===se.ENTER||Dt.type==="click")&&(ke.setState({goInputText:""}),ke.props.quickGo(ke.getValidValue()))},ke}return(0,E.Z)(We,[{key:"getPageSizeOptions",value:function(){var ze=this.props,it=ze.pageSize,It=ze.pageSizeOptions;return It.some(function(Dt){return Dt.toString()===it.toString()})?It:It.concat([it.toString()]).sort(function(Dt,jt){var Lt=Number.isNaN(Number(Dt))?0:Number(Dt),Ht=Number.isNaN(Number(jt))?0:Number(jt);return Lt-Ht})}},{key:"render",value:function(){var ze=this,it=this.props,It=it.pageSize,Dt=it.locale,jt=it.rootPrefixCls,Lt=it.changeSize,Ht=it.quickGo,yt=it.goButton,fn=it.selectComponentClass,un=it.buildOptionText,bt=it.selectPrefixCls,Sn=it.disabled,pn=this.state.goInputText,Fn="".concat(jt,"-options"),xn=fn,Kn=null,er=null,Vn=null;if(!Lt&&!Ht)return null;var Yn=this.getPageSizeOptions();if(Lt&&xn){var pr=Yn.map(function(vr,tn){return ge.createElement(xn.Option,{key:tn,value:vr.toString()},(un||ze.buildOptionText)(vr))});Kn=ge.createElement(xn,{disabled:Sn,prefixCls:bt,showSearch:!1,className:"".concat(Fn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(It||Yn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(tn){return tn.parentNode},"aria-label":Dt.page_size,defaultOpen:!1},pr)}return Ht&&(yt&&(Vn=typeof yt=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Sn,className:"".concat(Fn,"-quick-jumper-button")},Dt.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},yt)),er=ge.createElement("div",{className:"".concat(Fn,"-quick-jumper")},Dt.jump_to,ge.createElement("input",{disabled:Sn,type:"text",value:pn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Dt.page}),Dt.page,Vn)),ge.createElement("li",{className:"".concat(Fn)},Kn,er)}}]),We}(ge.Component);_e.defaultProps={pageSizeOptions:["10","20","50","100"]};var ye=_e,De=function(Oe){var We,ke=Oe.rootPrefixCls,ze=Oe.page,it=Oe.active,It=Oe.className,Dt=Oe.showTitle,jt=Oe.onClick,Lt=Oe.onKeyPress,Ht=Oe.itemRender,yt="".concat(ke,"-item"),fn=oe()(yt,"".concat(yt,"-").concat(ze),(We={},(0,ne.Z)(We,"".concat(yt,"-active"),it),(0,ne.Z)(We,"".concat(yt,"-disabled"),!ze),(0,ne.Z)(We,Oe.className,It),We)),un=function(){jt(ze)},bt=function(Fn){Lt(Fn,jt,ze)},Sn=Ht(ze,"page",ge.createElement("a",{rel:"nofollow"},ze));return Sn?ge.createElement("li",{title:Dt?ze.toString():null,className:fn,onClick:un,onKeyPress:bt,tabIndex:0},Sn):null},Ee=De;function je(){}function Le(Ie){var Oe=Number(Ie);return typeof Oe=="number"&&!Number.isNaN(Oe)&&isFinite(Oe)&&Math.floor(Oe)===Oe}var ft=function(Oe,We,ke){return ke};function Xe(Ie,Oe,We){var ke=typeof Ie=="undefined"?Oe.pageSize:Ie;return Math.floor((We.total-1)/ke)+1}var pt=function(Ie){(0,b.Z)(We,Ie);var Oe=(0,x.Z)(We);function We(ke){var ze;(0,y.Z)(this,We),ze=Oe.call(this,ke),ze.paginationNode=ge.createRef(),ze.getJumpPrevPage=function(){return Math.max(1,ze.state.current-(ze.props.showLessItems?3:5))},ze.getJumpNextPage=function(){return Math.min(Xe(void 0,ze.state,ze.props),ze.state.current+(ze.props.showLessItems?3:5))},ze.getItemIcon=function(Lt,Ht){var yt=ze.props.prefixCls,fn=Lt||ge.createElement("button",{type:"button","aria-label":Ht,className:"".concat(yt,"-item-link")});return typeof Lt=="function"&&(fn=ge.createElement(Lt,(0,a.Z)({},ze.props))),fn},ze.isValid=function(Lt){var Ht=ze.props.total;return Le(Lt)&&Lt!==ze.state.current&&Le(Ht)&&Ht>0},ze.shouldDisplayQuickJumper=function(){var Lt=ze.props,Ht=Lt.showQuickJumper,yt=Lt.total,fn=ze.state.pageSize;return yt<=fn?!1:Ht},ze.handleKeyDown=function(Lt){(Lt.keyCode===se.ARROW_UP||Lt.keyCode===se.ARROW_DOWN)&&Lt.preventDefault()},ze.handleKeyUp=function(Lt){var Ht=ze.getValidValue(Lt),yt=ze.state.currentInputValue;Ht!==yt&&ze.setState({currentInputValue:Ht}),Lt.keyCode===se.ENTER?ze.handleChange(Ht):Lt.keyCode===se.ARROW_UP?ze.handleChange(Ht-1):Lt.keyCode===se.ARROW_DOWN&&ze.handleChange(Ht+1)},ze.handleBlur=function(Lt){var Ht=ze.getValidValue(Lt);ze.handleChange(Ht)},ze.changePageSize=function(Lt){var Ht=ze.state.current,yt=Xe(Lt,ze.state,ze.props);Ht=Ht>yt?yt:Ht,yt===0&&(Ht=ze.state.current),typeof Lt=="number"&&("pageSize"in ze.props||ze.setState({pageSize:Lt}),"current"in ze.props||ze.setState({current:Ht,currentInputValue:Ht})),ze.props.onShowSizeChange(Ht,Lt),"onChange"in ze.props&&ze.props.onChange&&ze.props.onChange(Ht,Lt)},ze.handleChange=function(Lt){var Ht=ze.props,yt=Ht.disabled,fn=Ht.onChange,un=ze.state,bt=un.pageSize,Sn=un.current,pn=un.currentInputValue;if(ze.isValid(Lt)&&!yt){var Fn=Xe(void 0,ze.state,ze.props),xn=Lt;return Lt>Fn?xn=Fn:Lt<1&&(xn=1),"current"in ze.props||ze.setState({current:xn}),xn!==pn&&ze.setState({currentInputValue:xn}),fn(xn,bt),xn}return Sn},ze.prev=function(){ze.hasPrev()&&ze.handleChange(ze.state.current-1)},ze.next=function(){ze.hasNext()&&ze.handleChange(ze.state.current+1)},ze.jumpPrev=function(){ze.handleChange(ze.getJumpPrevPage())},ze.jumpNext=function(){ze.handleChange(ze.getJumpNextPage())},ze.hasPrev=function(){return ze.state.current>1},ze.hasNext=function(){return ze.state.current<Xe(void 0,ze.state,ze.props)},ze.runIfEnter=function(Lt,Ht){if(Lt.key==="Enter"||Lt.charCode===13){for(var yt=arguments.length,fn=new Array(yt>2?yt-2:0),un=2;un<yt;un++)fn[un-2]=arguments[un];Ht.apply(void 0,fn)}},ze.runIfEnterPrev=function(Lt){ze.runIfEnter(Lt,ze.prev)},ze.runIfEnterNext=function(Lt){ze.runIfEnter(Lt,ze.next)},ze.runIfEnterJumpPrev=function(Lt){ze.runIfEnter(Lt,ze.jumpPrev)},ze.runIfEnterJumpNext=function(Lt){ze.runIfEnter(Lt,ze.jumpNext)},ze.handleGoTO=function(Lt){(Lt.keyCode===se.ENTER||Lt.type==="click")&&ze.handleChange(ze.state.currentInputValue)},ze.renderPrev=function(Lt){var Ht=ze.props,yt=Ht.prevIcon,fn=Ht.itemRender,un=fn(Lt,"prev",ze.getItemIcon(yt,"prev page")),bt=!ze.hasPrev();return(0,ge.isValidElement)(un)?(0,ge.cloneElement)(un,{disabled:bt}):un},ze.renderNext=function(Lt){var Ht=ze.props,yt=Ht.nextIcon,fn=Ht.itemRender,un=fn(Lt,"next",ze.getItemIcon(yt,"next page")),bt=!ze.hasNext();return(0,ge.isValidElement)(un)?(0,ge.cloneElement)(un,{disabled:bt}):un};var it=ke.onChange!==je,It="current"in ke;It&&!it&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Dt=ke.defaultCurrent;"current"in ke&&(Dt=ke.current);var jt=ke.defaultPageSize;return"pageSize"in ke&&(jt=ke.pageSize),Dt=Math.min(Dt,Xe(jt,void 0,ke)),ze.state={current:Dt,currentInputValue:Dt,pageSize:jt},ze}return(0,E.Z)(We,[{key:"componentDidUpdate",value:function(ze,it){var It=this.props.prefixCls;if(it.current!==this.state.current&&this.paginationNode.current){var Dt=this.paginationNode.current.querySelector(".".concat(It,"-item-").concat(it.current));if(Dt&&document.activeElement===Dt){var jt;Dt==null||(jt=Dt.blur)===null||jt===void 0||jt.call(Dt)}}}},{key:"getValidValue",value:function(ze){var it=ze.target.value,It=Xe(void 0,this.state,this.props),Dt=this.state.currentInputValue,jt;return it===""?jt=it:Number.isNaN(Number(it))?jt=Dt:it>=It?jt=It:jt=Number(it),jt}},{key:"getShowSizeChanger",value:function(){var ze=this.props,it=ze.showSizeChanger,It=ze.total,Dt=ze.totalBoundaryShowSizeChanger;return typeof it!="undefined"?it:It>Dt}},{key:"render",value:function(){var ze=this.props,it=ze.prefixCls,It=ze.className,Dt=ze.style,jt=ze.disabled,Lt=ze.hideOnSinglePage,Ht=ze.total,yt=ze.locale,fn=ze.showQuickJumper,un=ze.showLessItems,bt=ze.showTitle,Sn=ze.showTotal,pn=ze.simple,Fn=ze.itemRender,xn=ze.showPrevNextJumpers,Kn=ze.jumpPrevIcon,er=ze.jumpNextIcon,Vn=ze.selectComponentClass,Yn=ze.selectPrefixCls,pr=ze.pageSizeOptions,vr=this.state,tn=vr.current,Xn=vr.pageSize,sr=vr.currentInputValue;if(Lt===!0&&Ht<=Xn)return null;var Wn=Xe(void 0,this.state,this.props),lr=[],Or=null,Rr=null,Er=null,Nr=null,cr=null,Xr=fn&&fn.goButton,$t=un?1:2,de=tn-1>0?tn-1:0,pe=tn+1<Wn?tn+1:Wn,Pe=(0,z.Z)(this.props,{aria:!0,data:!0}),xe=Sn&&ge.createElement("li",{className:"".concat(it,"-total-text")},Sn(Ht,[Ht===0?0:(tn-1)*Xn+1,tn*Xn>Ht?Ht:tn*Xn]));if(pn){Xr&&(typeof Xr=="boolean"?cr=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yt.jump_to_confirm):cr=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Xr),cr=ge.createElement("li",{title:bt?"".concat(yt.jump_to).concat(tn,"/").concat(Wn):null,className:"".concat(it,"-simple-pager")},cr));var Be=this.renderPrev(de);return ge.createElement("ul",(0,ee.Z)({className:oe()(it,"".concat(it,"-simple"),(0,ne.Z)({},"".concat(it,"-disabled"),jt),It),style:Dt,ref:this.paginationNode},Pe),xe,Be?ge.createElement("li",{title:bt?yt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:oe()("".concat(it,"-prev"),(0,ne.Z)({},"".concat(it,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Be):null,ge.createElement("li",{title:bt?"".concat(tn,"/").concat(Wn):null,className:"".concat(it,"-simple-pager")},ge.createElement("input",{type:"text",value:sr,disabled:jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(it,"-slash")},"/"),Wn),ge.createElement("li",{title:bt?yt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:oe()("".concat(it,"-next"),(0,ne.Z)({},"".concat(it,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(pe)),cr)}if(Wn<=3+$t*2){var ot={locale:yt,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:bt,itemRender:Fn};Wn||lr.push(ge.createElement(Ee,(0,ee.Z)({},ot,{key:"noPager",page:1,className:"".concat(it,"-item-disabled")})));for(var ut=1;ut<=Wn;ut+=1){var nn=tn===ut;lr.push(ge.createElement(Ee,(0,ee.Z)({},ot,{key:ut,page:ut,active:nn})))}}else{var Zt=un?yt.prev_3:yt.prev_5,qt=un?yt.next_3:yt.next_5,bn=Fn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Kn,"prev page")),Rt=Fn(this.getJumpNextPage(),"jump-next",this.getItemIcon(er,"next page"));xn&&(Or=bn?ge.createElement("li",{title:bt?Zt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:oe()("".concat(it,"-jump-prev"),(0,ne.Z)({},"".concat(it,"-jump-prev-custom-icon"),!!Kn))},bn):null,Rr=Rt?ge.createElement("li",{title:bt?qt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:oe()("".concat(it,"-jump-next"),(0,ne.Z)({},"".concat(it,"-jump-next-custom-icon"),!!er))},Rt):null),Nr=ge.createElement(Ee,{locale:yt,last:!0,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Wn,page:Wn,active:!1,showTitle:bt,itemRender:Fn}),Er=ge.createElement(Ee,{locale:yt,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:bt,itemRender:Fn});var $e=Math.max(1,tn-$t),Mt=Math.min(tn+$t,Wn);tn-1<=$t&&(Mt=1+$t*2),Wn-tn<=$t&&($e=Wn-$t*2);for(var Ft=$e;Ft<=Mt;Ft+=1){var wt=tn===Ft;lr.push(ge.createElement(Ee,{locale:yt,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ft,page:Ft,active:wt,showTitle:bt,itemRender:Fn}))}tn-1>=$t*2&&tn!==3&&(lr[0]=(0,ge.cloneElement)(lr[0],{className:"".concat(it,"-item-after-jump-prev")}),lr.unshift(Or)),Wn-tn>=$t*2&&tn!==Wn-2&&(lr[lr.length-1]=(0,ge.cloneElement)(lr[lr.length-1],{className:"".concat(it,"-item-before-jump-next")}),lr.push(Rr)),$e!==1&&lr.unshift(Er),Mt!==Wn&&lr.push(Nr)}var Bt=!this.hasPrev()||!Wn,Kt=!this.hasNext()||!Wn,Xt=this.renderPrev(de),yn=this.renderNext(pe);return ge.createElement("ul",(0,ee.Z)({className:oe()(it,It,(0,ne.Z)({},"".concat(it,"-disabled"),jt)),style:Dt,ref:this.paginationNode},Pe),xe,Xt?ge.createElement("li",{title:bt?yt.prev_page:null,onClick:this.prev,tabIndex:Bt?null:0,onKeyPress:this.runIfEnterPrev,className:oe()("".concat(it,"-prev"),(0,ne.Z)({},"".concat(it,"-disabled"),Bt)),"aria-disabled":Bt},Xt):null,lr,yn?ge.createElement("li",{title:bt?yt.next_page:null,onClick:this.next,tabIndex:Kt?null:0,onKeyPress:this.runIfEnterNext,className:oe()("".concat(it,"-next"),(0,ne.Z)({},"".concat(it,"-disabled"),Kt)),"aria-disabled":Kt},yn):null,ge.createElement(ye,{disabled:jt,locale:yt,rootPrefixCls:it,selectComponentClass:Vn,selectPrefixCls:Yn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:tn,pageSize:Xn,pageSizeOptions:pr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Xr}))}}],[{key:"getDerivedStateFromProps",value:function(ze,it){var It={};if("current"in ze&&(It.current=ze.current,ze.current!==it.current&&(It.currentInputValue=It.current)),"pageSize"in ze&&ze.pageSize!==it.pageSize){var Dt=it.current,jt=Xe(ze.pageSize,it,ze);Dt=Dt>jt?jt:Dt,"current"in ze||(It.current=Dt,It.currentInputValue=Dt),It.pageSize=ze.pageSize}return It}}]),We}(ge.Component);pt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:ce.Z,style:{},itemRender:ft,totalBoundaryShowSizeChanger:50};var we=pt,Fe=te(22075),He=te(36355),st=te(19716),Ke=te(8628),mt=te(9763),_t=te(57809);const At=Ie=>ge.createElement(_t.default,Object.assign({},Ie,{showSearch:!0,size:"small"})),kt=Ie=>ge.createElement(_t.default,Object.assign({},Ie,{showSearch:!0,size:"middle"}));At.Option=_t.default.Option,kt.Option=_t.default.Option;var rt=te(9937),Qe=te(17313),Pt=te(83116),zt=te(37613);const Ct=Ie=>{const{componentCls:Oe}=Ie;return{[`${Oe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Oe}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Oe}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}}},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`${Oe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ie.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ie.colorBorder,backgroundColor:Ie.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ie.itemActiveBgDisabled},a:{color:Ie.itemActiveColorDisabled}}},[`${Oe}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Oe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Oe}-simple-pager`]:{color:Ie.colorTextDisabled},[`${Oe}-jump-prev, ${Oe}-jump-next`]:{[`${Oe}-item-link-icon`]:{opacity:0},[`${Oe}-item-ellipsis`]:{opacity:1}}},[`&${Oe}-simple`]:{[`${Oe}-prev, ${Oe}-next`]:{[`&${Oe}-disabled ${Oe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},sn=Ie=>{const{componentCls:Oe}=Ie;return{[`&${Oe}-mini ${Oe}-total-text, &${Oe}-mini ${Oe}-simple-pager`]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`},[`&${Oe}-mini ${Oe}-item`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM-2}px`},[`&${Oe}-mini:not(${Oe}-disabled) ${Oe}-item:not(${Oe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive}},[`&${Oe}-mini ${Oe}-prev, &${Oe}-mini ${Oe}-next`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Oe}-mini:not(${Oe}-disabled)`]:{[`${Oe}-prev, ${Oe}-next`]:{[`&:hover ${Oe}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Oe}-item-link`]:{backgroundColor:Ie.colorBgTextActive},[`&${Oe}-disabled:hover ${Oe}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Oe}-mini ${Oe}-prev ${Oe}-item-link,
&${Oe}-mini ${Oe}-next ${Oe}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`}},[`&${Oe}-mini ${Oe}-jump-prev, &${Oe}-mini ${Oe}-jump-next`]:{height:Ie.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Oe}-mini ${Oe}-options`]:{marginInlineStart:Ie.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ie.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,rt.x0)(Ie)),{width:Ie.paginationMiniQuickJumperInputWidth,height:Ie.controlHeightSM})}}}},Ze=Ie=>{const{componentCls:Oe}=Ie;return{[`
&${Oe}-simple ${Oe}-prev,
&${Oe}-simple ${Oe}-next
`]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`,verticalAlign:"top",[`${Oe}-item-link`]:{height:Ie.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive},"&::after":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`}}},[`&${Oe}-simple ${Oe}-simple-pager`]:{display:"inline-block",height:Ie.itemSizeSM,marginInlineEnd:Ie.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ie.marginXS,padding:`0 ${Ie.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ie.itemInputBg,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadius,outline:"none",transition:`border-color ${Ie.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ie.colorPrimary},"&:focus":{borderColor:Ie.colorPrimaryHover,boxShadow:`${Ie.inputOutlineOffset}px 0 ${Ie.controlOutlineWidth}px ${Ie.controlOutline}`},"&[disabled]":{color:Ie.colorTextDisabled,backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,cursor:"not-allowed"}}}}},St=Ie=>{const{componentCls:Oe}=Ie;return{[`${Oe}-jump-prev, ${Oe}-jump-next`]:{outline:0,[`${Oe}-item-container`]:{position:"relative",[`${Oe}-item-link-icon`]:{color:Ie.colorPrimary,fontSize:Ie.fontSizeSM,opacity:0,transition:`all ${Ie.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Oe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ie.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ie.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ie.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ie.motionDurationMid}`}},"&:hover":{[`${Oe}-item-link-icon`]:{opacity:1},[`${Oe}-item-ellipsis`]:{opacity:0}}},[`
${Oe}-prev,
${Oe}-jump-prev,
${Oe}-jump-next
`]:{marginInlineEnd:Ie.marginXS},[`
${Oe}-prev,
${Oe}-next,
${Oe}-jump-prev,
${Oe}-jump-next
`]:{display:"inline-block",minWidth:Ie.itemSize,height:Ie.itemSize,color:Ie.colorText,fontFamily:Ie.fontFamily,lineHeight:`${Ie.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}`},[`${Oe}-prev, ${Oe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ie.colorText,cursor:"pointer",userSelect:"none"},[`${Oe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ie.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,borderRadius:Ie.borderRadius,outline:"none",transition:`all ${Ie.motionDurationMid}`},[`&:hover ${Oe}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Oe}-item-link`]:{backgroundColor:Ie.colorBgTextActive},[`&${Oe}-disabled:hover`]:{[`${Oe}-item-link`]:{backgroundColor:"transparent"}}},[`${Oe}-slash`]:{marginInlineEnd:Ie.paginationSlashMarginInlineEnd,marginInlineStart:Ie.paginationSlashMarginInlineStart},[`${Oe}-options`]:{display:"inline-block",marginInlineStart:Ie.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ie.controlHeight,marginInlineStart:Ie.marginXS,lineHeight:`${Ie.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,rt.ik)(Ie)),{width:Ie.controlHeightLG*1.25,height:Ie.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ie.marginXS,marginInlineEnd:Ie.marginXS})}}}},xt=Ie=>{const{componentCls:Oe}=Ie;return{[`${Oe}-item`]:{display:"inline-block",minWidth:Ie.itemSize,height:Ie.itemSize,marginInlineEnd:Ie.marginXS,fontFamily:Ie.fontFamily,lineHeight:`${Ie.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,borderRadius:Ie.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ie.paginationItemPaddingInline}px`,color:Ie.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Oe}-item-active)`]:{"&:hover":{transition:`all ${Ie.motionDurationMid}`,backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive}},"&-active":{fontWeight:Ie.fontWeightStrong,backgroundColor:Ie.itemActiveBg,borderColor:Ie.colorPrimary,a:{color:Ie.colorPrimary},"&:hover":{borderColor:Ie.colorPrimaryHover},"&:hover a":{color:Ie.colorPrimaryHover}}}}},ln=Ie=>{const{componentCls:Oe}=Ie;return{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(Ie)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Oe}-total-text`]:{display:"inline-block",height:Ie.itemSize,marginInlineEnd:Ie.marginXS,lineHeight:`${Ie.itemSize-2}px`,verticalAlign:"middle"}}),xt(Ie)),St(Ie)),Ze(Ie)),sn(Ie)),Ct(Ie)),{[`@media only screen and (max-width: ${Ie.screenLG}px)`]:{[`${Oe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ie.screenSM}px)`]:{[`${Oe}-options`]:{display:"none"}}}),[`&${Ie.componentCls}-rtl`]:{direction:"rtl"}}},Gt=Ie=>{const{componentCls:Oe}=Ie;return{[`${Oe}${Oe}-disabled:not(${Oe}-mini)`]:{"&, &:hover":{[`${Oe}-item-link`]:{borderColor:Ie.colorBorder}},"&:focus-visible":{[`${Oe}-item-link`]:{borderColor:Ie.colorBorder}},[`${Oe}-item, ${Oe}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,[`&:hover:not(${Oe}-item-active)`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,a:{color:Ie.colorTextDisabled}},[`&${Oe}-item-active`]:{backgroundColor:Ie.itemActiveBgDisabled}},[`${Oe}-prev, ${Oe}-next`]:{"&:hover button":{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,color:Ie.colorTextDisabled},[`${Oe}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder}}},[`${Oe}:not(${Oe}-mini)`]:{[`${Oe}-prev, ${Oe}-next`]:{"&:hover button":{borderColor:Ie.colorPrimaryHover,backgroundColor:Ie.itemBg},[`${Oe}-item-link`]:{backgroundColor:Ie.itemLinkBg,borderColor:Ie.colorBorder},[`&:hover ${Oe}-item-link`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,color:Ie.colorPrimary},[`&${Oe}-disabled`]:{[`${Oe}-item-link`]:{borderColor:Ie.colorBorder,color:Ie.colorTextDisabled}}},[`${Oe}-item`]:{backgroundColor:Ie.itemBg,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,[`&:hover:not(${Oe}-item-active)`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,a:{color:Ie.colorPrimary}},"&-active":{borderColor:Ie.colorPrimary}}}}},lt=Ie=>{const{componentCls:Oe}=Ie;return{[`${Oe}:not(${Oe}-disabled)`]:{[`${Oe}-item`]:Object.assign({},(0,Qe.Qy)(Ie)),[`${Oe}-jump-prev, ${Oe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Oe}-item-link-icon`]:{opacity:1},[`${Oe}-item-ellipsis`]:{opacity:0}},(0,Qe.oN)(Ie))},[`${Oe}-prev, ${Oe}-next`]:{[`&:focus-visible ${Oe}-item-link`]:Object.assign({},(0,Qe.oN)(Ie))}}}};var ct=(0,Pt.Z)("Pagination",Ie=>{const Oe=(0,zt.TS)(Ie,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ie.marginXXS/2,paginationMiniQuickJumperInputWidth:Ie.controlHeightLG*1.1,paginationItemPaddingInline:Ie.marginXXS*1.5,paginationEllipsisLetterSpacing:Ie.marginXXS/2,paginationSlashMarginInlineStart:Ie.marginXXS,paginationSlashMarginInlineEnd:Ie.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e5)(Ie),(0,rt.TM)(Ie));return[ln(Oe),lt(Oe),Ie.wireframe&&Gt(Oe)]},Ie=>({itemBg:Ie.colorBgContainer,itemSize:Ie.controlHeight,itemSizeSM:Ie.controlHeightSM,itemActiveBg:Ie.colorBgContainer,itemLinkBg:Ie.colorBgContainer,itemActiveColorDisabled:Ie.colorTextDisabled,itemActiveBgDisabled:Ie.controlItemBgActiveDisabled,itemInputBg:Ie.colorBgContainer,miniOptionsSizeChangerTop:0})),Ge=function(Ie,Oe){var We={};for(var ke in Ie)Object.prototype.hasOwnProperty.call(Ie,ke)&&Oe.indexOf(ke)<0&&(We[ke]=Ie[ke]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ke=Object.getOwnPropertySymbols(Ie);ze<ke.length;ze++)Oe.indexOf(ke[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ie,ke[ze])&&(We[ke[ze]]=Ie[ke[ze]]);return We},tt=Ie=>{const{prefixCls:Oe,selectPrefixCls:We,className:ke,rootClassName:ze,style:it,size:It,locale:Dt,selectComponentClass:jt,responsive:Lt,showSizeChanger:Ht}=Ie,yt=Ge(Ie,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:fn}=(0,Ke.Z)(Lt),{getPrefixCls:un,direction:bt,pagination:Sn={}}=ge.useContext(He.E_),pn=un("pagination",Oe),[Fn,xn]=ct(pn),Kn=Ht!=null?Ht:Sn.showSizeChanger,er=ge.useMemo(()=>{const Wn=ge.createElement("span",{className:`${pn}-item-ellipsis`},"\u2022\u2022\u2022"),lr=ge.createElement("button",{className:`${pn}-item-link`,type:"button",tabIndex:-1},bt==="rtl"?ge.createElement(ae.Z,null):ge.createElement(me.Z,null)),Or=ge.createElement("button",{className:`${pn}-item-link`,type:"button",tabIndex:-1},bt==="rtl"?ge.createElement(me.Z,null):ge.createElement(ae.Z,null)),Rr=ge.createElement("a",{className:`${pn}-item-link`},ge.createElement("div",{className:`${pn}-item-container`},bt==="rtl"?ge.createElement(le.Z,{className:`${pn}-item-link-icon`}):ge.createElement(ue,{className:`${pn}-item-link-icon`}),Wn)),Er=ge.createElement("a",{className:`${pn}-item-link`},ge.createElement("div",{className:`${pn}-item-container`},bt==="rtl"?ge.createElement(ue,{className:`${pn}-item-link-icon`}):ge.createElement(le.Z,{className:`${pn}-item-link-icon`}),Wn));return{prevIcon:lr,nextIcon:Or,jumpPrevIcon:Rr,jumpNextIcon:Er}},[bt,pn]),[Vn]=(0,mt.Z)("Pagination",Fe.Z),Yn=Object.assign(Object.assign({},Vn),Dt),pr=(0,st.Z)(It),vr=pr==="small"||!!(fn&&!pr&&Lt),tn=un("select",We),Xn=oe()({[`${pn}-mini`]:vr,[`${pn}-rtl`]:bt==="rtl"},Sn==null?void 0:Sn.className,ke,ze,xn),sr=Object.assign(Object.assign({},Sn==null?void 0:Sn.style),it);return Fn(ge.createElement(we,Object.assign({},er,yt,{style:sr,prefixCls:pn,selectPrefixCls:tn,className:Xn,selectComponentClass:jt||(vr?At:kt),locale:Yn,showSizeChanger:Kn})))},Et=tt},61621:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ct}});var ee=te(92310),ge=te.n(ee),be=te(59301),ve=te(36355),Se=te(2738),ie=Ge=>{const{prefixCls:Ne,className:tt,style:Et,size:Ie,shape:Oe}=Ge,We=ge()({[`${Ne}-lg`]:Ie==="large",[`${Ne}-sm`]:Ie==="small"}),ke=ge()({[`${Ne}-circle`]:Oe==="circle",[`${Ne}-square`]:Oe==="square",[`${Ne}-round`]:Oe==="round"}),ze=be.useMemo(()=>typeof Ie=="number"?{width:Ie,height:Ie,lineHeight:`${Ie}px`}:{},[Ie]);return be.createElement("span",{className:ge()(Ne,We,ke,tt),style:Object.assign(Object.assign({},ze),Et)})},ue=te(36237),le=te(83116),me=te(37613);const ae=new ue.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),he=Ge=>({height:Ge,lineHeight:`${Ge}px`}),oe=Ge=>Object.assign({width:Ge},he(Ge)),ne=Ge=>({background:Ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ae,animationDuration:Ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Ge=>Object.assign({width:Ge*5,minWidth:Ge*5},he(Ge)),y=Ge=>{const{skeletonAvatarCls:Ne,gradientFromColor:tt,controlHeight:Et,controlHeightLG:Ie,controlHeightSM:Oe}=Ge;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:tt},oe(Et)),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"},[`${Ne}${Ne}-lg`]:Object.assign({},oe(Ie)),[`${Ne}${Ne}-sm`]:Object.assign({},oe(Oe))}},E=Ge=>{const{controlHeight:Ne,borderRadiusSM:tt,skeletonInputCls:Et,controlHeightLG:Ie,controlHeightSM:Oe,gradientFromColor:We}=Ge;return{[`${Et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:tt},a(Ne)),[`${Et}-lg`]:Object.assign({},a(Ie)),[`${Et}-sm`]:Object.assign({},a(Oe))}},b=Ge=>Object.assign({width:Ge},he(Ge)),x=Ge=>{const{skeletonImageCls:Ne,imageSizeBase:tt,gradientFromColor:Et,borderRadiusSM:Ie}=Ge;return{[`${Ne}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Et,borderRadius:Ie},b(tt*2)),{[`${Ne}-path`]:{fill:"#bfbfbf"},[`${Ne}-svg`]:Object.assign(Object.assign({},b(tt)),{maxWidth:tt*4,maxHeight:tt*4}),[`${Ne}-svg${Ne}-svg-circle`]:{borderRadius:"50%"}}),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"}}},z=(Ge,Ne,tt)=>{const{skeletonButtonCls:Et}=Ge;return{[`${tt}${Et}-circle`]:{width:Ne,minWidth:Ne,borderRadius:"50%"},[`${tt}${Et}-round`]:{borderRadius:Ne}}},re=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},he(Ge)),se=Ge=>{const{borderRadiusSM:Ne,skeletonButtonCls:tt,controlHeight:Et,controlHeightLG:Ie,controlHeightSM:Oe,gradientFromColor:We}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${tt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:Ne,width:Et*2,minWidth:Et*2},re(Et))},z(Ge,Et,tt)),{[`${tt}-lg`]:Object.assign({},re(Ie))}),z(Ge,Ie,`${tt}-lg`)),{[`${tt}-sm`]:Object.assign({},re(Oe))}),z(Ge,Oe,`${tt}-sm`))},ce=Ge=>{const{componentCls:Ne,skeletonAvatarCls:tt,skeletonTitleCls:Et,skeletonParagraphCls:Ie,skeletonButtonCls:Oe,skeletonInputCls:We,skeletonImageCls:ke,controlHeight:ze,controlHeightLG:it,controlHeightSM:It,gradientFromColor:Dt,padding:jt,marginSM:Lt,borderRadius:Ht,titleHeight:yt,blockRadius:fn,paragraphLiHeight:un,controlHeightXS:bt,paragraphMarginTop:Sn}=Ge;return{[`${Ne}`]:{display:"table",width:"100%",[`${Ne}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${tt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt},oe(ze)),[`${tt}-circle`]:{borderRadius:"50%"},[`${tt}-lg`]:Object.assign({},oe(it)),[`${tt}-sm`]:Object.assign({},oe(It))},[`${Ne}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Et}`]:{width:"100%",height:yt,background:Dt,borderRadius:fn,[`+ ${Ie}`]:{marginBlockStart:It}},[`${Ie}`]:{padding:0,"> li":{width:"100%",height:un,listStyle:"none",background:Dt,borderRadius:fn,"+ li":{marginBlockStart:bt}}},[`${Ie}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ne}-content`]:{[`${Et}, ${Ie} > li`]:{borderRadius:Ht}}},[`${Ne}-with-avatar ${Ne}-content`]:{[`${Et}`]:{marginBlockStart:Lt,[`+ ${Ie}`]:{marginBlockStart:Sn}}},[`${Ne}${Ne}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},se(Ge)),y(Ge)),E(Ge)),x(Ge)),[`${Ne}${Ne}-block`]:{width:"100%",[`${Oe}`]:{width:"100%"},[`${We}`]:{width:"100%"}},[`${Ne}${Ne}-active`]:{[`
${Et},
${Ie} > li,
${tt},
${Oe},
${We},
${ke}
`]:Object.assign({},ne(Ge))}}};var _e=(0,le.Z)("Skeleton",Ge=>{const{componentCls:Ne}=Ge,tt=(0,me.TS)(Ge,{skeletonAvatarCls:`${Ne}-avatar`,skeletonTitleCls:`${Ne}-title`,skeletonParagraphCls:`${Ne}-paragraph`,skeletonButtonCls:`${Ne}-button`,skeletonInputCls:`${Ne}-input`,skeletonImageCls:`${Ne}-image`,imageSizeBase:Ge.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ge.gradientFromColor} 25%, ${Ge.gradientToColor} 37%, ${Ge.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ce(tt)]},Ge=>{const{colorFillContent:Ne,colorFill:tt}=Ge,Et=Ne,Ie=tt;return{color:Et,colorGradientEnd:Ie,gradientFromColor:Et,gradientToColor:Ie,titleHeight:Ge.controlHeight/2,blockRadius:Ge.borderRadiusSM,paragraphMarginTop:Ge.marginLG+Ge.marginXXS,paragraphLiHeight:Ge.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),De=Ge=>{const{prefixCls:Ne,className:tt,rootClassName:Et,active:Ie,shape:Oe="circle",size:We="default"}=Ge,{getPrefixCls:ke}=be.useContext(ve.E_),ze=ke("skeleton",Ne),[it,It]=_e(ze),Dt=(0,Se.Z)(Ge,["prefixCls","className"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie},tt,Et,It);return it(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-avatar`,shape:Oe,size:We},Dt))))},je=Ge=>{const{prefixCls:Ne,className:tt,rootClassName:Et,active:Ie,block:Oe=!1,size:We="default"}=Ge,{getPrefixCls:ke}=be.useContext(ve.E_),ze=ke("skeleton",Ne),[it,It]=_e(ze),Dt=(0,Se.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie,[`${ze}-block`]:Oe},tt,Et,It);return it(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-button`,size:We},Dt))))};const Le="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 Xe=Ge=>{const{prefixCls:Ne,className:tt,rootClassName:Et,style:Ie,active:Oe}=Ge,{getPrefixCls:We}=be.useContext(ve.E_),ke=We("skeleton",Ne),[ze,it]=_e(ke),It=ge()(ke,`${ke}-element`,{[`${ke}-active`]:Oe},tt,Et,it);return ze(be.createElement("div",{className:It},be.createElement("div",{className:ge()(`${ke}-image`,tt),style:Ie},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ke}-image-svg`},be.createElement("path",{d:Le,className:`${ke}-image-path`})))))},we=Ge=>{const{prefixCls:Ne,className:tt,rootClassName:Et,active:Ie,block:Oe,size:We="default"}=Ge,{getPrefixCls:ke}=be.useContext(ve.E_),ze=ke("skeleton",Ne),[it,It]=_e(ze),Dt=(0,Se.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie,[`${ze}-block`]:Oe},tt,Et,It);return it(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-input`,size:We},Dt))))},Fe=te(32855),He={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"},st=He,Ke=te(7657),mt=function(Ne,tt){return be.createElement(Ke.Z,(0,Fe.Z)({},Ne,{ref:tt,icon:st}))},_t=be.forwardRef(mt),At=_t,rt=Ge=>{const{prefixCls:Ne,className:tt,rootClassName:Et,style:Ie,active:Oe,children:We}=Ge,{getPrefixCls:ke}=be.useContext(ve.E_),ze=ke("skeleton",Ne),[it,It]=_e(ze),Dt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Oe},It,tt,Et),jt=We!=null?We:be.createElement(At,null);return it(be.createElement("div",{className:Dt},be.createElement("div",{className:ge()(`${ze}-image`,tt),style:Ie},jt)))},Qe=te(3300),zt=Ge=>{const Ne=ke=>{const{width:ze,rows:it=2}=Ge;if(Array.isArray(ze))return ze[ke];if(it-1===ke)return ze},{prefixCls:tt,className:Et,style:Ie,rows:Oe}=Ge,We=(0,Qe.Z)(Array(Oe)).map((ke,ze)=>be.createElement("li",{key:ze,style:{width:Ne(ze)}}));return be.createElement("ul",{className:ge()(tt,Et),style:Ie},We)},sn=Ge=>{let{prefixCls:Ne,className:tt,width:Et,style:Ie}=Ge;return be.createElement("h3",{className:ge()(Ne,tt),style:Object.assign({width:Et},Ie)})};function Ze(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function St(Ge,Ne){return Ge&&!Ne?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xt(Ge,Ne){return!Ge&&Ne?{width:"38%"}:Ge&&Ne?{width:"50%"}:{}}function ln(Ge,Ne){const tt={};return(!Ge||!Ne)&&(tt.width="61%"),!Ge&&Ne?tt.rows=3:tt.rows=2,tt}const Gt=Ge=>{const{prefixCls:Ne,loading:tt,className:Et,rootClassName:Ie,style:Oe,children:We,avatar:ke=!1,title:ze=!0,paragraph:it=!0,active:It,round:Dt}=Ge,{getPrefixCls:jt,direction:Lt,skeleton:Ht}=be.useContext(ve.E_),yt=jt("skeleton",Ne),[fn,un]=_e(yt);if(tt||!("loading"in Ge)){const bt=!!ke,Sn=!!ze,pn=!!it;let Fn;if(bt){const er=Object.assign(Object.assign({prefixCls:`${yt}-avatar`},St(Sn,pn)),Ze(ke));Fn=be.createElement("div",{className:`${yt}-header`},be.createElement(ie,Object.assign({},er)))}let xn;if(Sn||pn){let er;if(Sn){const Yn=Object.assign(Object.assign({prefixCls:`${yt}-title`},xt(bt,pn)),Ze(ze));er=be.createElement(sn,Object.assign({},Yn))}let Vn;if(pn){const Yn=Object.assign(Object.assign({prefixCls:`${yt}-paragraph`},ln(bt,Sn)),Ze(it));Vn=be.createElement(zt,Object.assign({},Yn))}xn=be.createElement("div",{className:`${yt}-content`},er,Vn)}const Kn=ge()(yt,{[`${yt}-with-avatar`]:bt,[`${yt}-active`]:It,[`${yt}-rtl`]:Lt==="rtl",[`${yt}-round`]:Dt},Ht==null?void 0:Ht.className,Et,Ie,un);return fn(be.createElement("div",{className:Kn,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Oe)},Fn,xn))}return typeof We!="undefined"?We:null};Gt.Button=je,Gt.Avatar=De,Gt.Input=we,Gt.Image=Xe,Gt.Node=rt;var lt=Gt,ct=lt},31797:function(ht,Ve,te){"use strict";te.d(Ve,{default:function(){return _e}});var ee=te(59301),ge=te(56762),be=te(92343),ve=te(92310),Se=te.n(ve),fe=te(36355),ie=te(61621),le=ye=>{const{value:De,formatter:Ee,precision:je,decimalSeparator:Le,groupSeparator:ft="",prefixCls:Xe}=ye;let pt;if(typeof Ee=="function")pt=Ee(De);else{const we=String(De),Fe=we.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Fe||we==="-")pt=we;else{const He=Fe[1];let st=Fe[2]||"0",Ke=Fe[4]||"";st=st.replace(/\B(?=(\d{3})+(?!\d))/g,ft),typeof je=="number"&&(Ke=Ke.padEnd(je,"0").slice(0,je>0?je:0)),Ke&&(Ke=`${Le}${Ke}`),pt=[ee.createElement("span",{key:"int",className:`${Xe}-content-value-int`},He,st),Ke&&ee.createElement("span",{key:"decimal",className:`${Xe}-content-value-decimal`},Ke)]}}return ee.createElement("span",{className:`${Xe}-content-value`},pt)},me=te(17313),ae=te(83116),he=te(37613);const oe=ye=>{const{componentCls:De,marginXXS:Ee,padding:je,colorTextDescription:Le,titleFontSize:ft,colorTextHeading:Xe,contentFontSize:pt,fontFamily:we}=ye;return{[`${De}`]:Object.assign(Object.assign({},(0,me.Wf)(ye)),{[`${De}-title`]:{marginBottom:Ee,color:Le,fontSize:ft},[`${De}-skeleton`]:{paddingTop:je},[`${De}-content`]:{color:Xe,fontSize:pt,fontFamily:we,[`${De}-content-value`]:{display:"inline-block",direction:"ltr"},[`${De}-content-prefix, ${De}-content-suffix`]:{display:"inline-block"},[`${De}-content-prefix`]:{marginInlineEnd:Ee},[`${De}-content-suffix`]:{marginInlineStart:Ee}}})}};var ne=(0,ae.Z)("Statistic",ye=>{const De=(0,he.TS)(ye,{});return[oe(De)]},ye=>{const{fontSizeHeading3:De,fontSize:Ee}=ye;return{titleFontSize:Ee,contentFontSize:De}}),y=ye=>{const{prefixCls:De,className:Ee,rootClassName:je,style:Le,valueStyle:ft,value:Xe=0,title:pt,valueRender:we,prefix:Fe,suffix:He,loading:st=!1,onMouseEnter:Ke,onMouseLeave:mt,decimalSeparator:_t=".",groupSeparator:At=","}=ye,{getPrefixCls:kt,direction:rt,statistic:Qe}=ee.useContext(fe.E_),Pt=kt("statistic",De),[zt,Ct]=ne(Pt),sn=ee.createElement(le,Object.assign({decimalSeparator:_t,groupSeparator:At,prefixCls:Pt},ye,{value:Xe})),Ze=Se()(Pt,{[`${Pt}-rtl`]:rt==="rtl"},Qe==null?void 0:Qe.className,Ee,je,Ct);return zt(ee.createElement("div",{className:Ze,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Le),onMouseEnter:Ke,onMouseLeave:mt},pt&&ee.createElement("div",{className:`${Pt}-title`},pt),ee.createElement(ie.Z,{paragraph:!1,loading:st,className:`${Pt}-skeleton`},ee.createElement("div",{style:ft,className:`${Pt}-content`},Fe&&ee.createElement("span",{className:`${Pt}-content-prefix`},Fe),we?we(sn):sn,He&&ee.createElement("span",{className:`${Pt}-content-suffix`},He)))))};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(ye,De){let Ee=ye;const je=/\[[^\]]*]/g,Le=(De.match(je)||[]).map(we=>we.slice(1,-1)),ft=De.replace(je,"[]"),Xe=E.reduce((we,Fe)=>{let[He,st]=Fe;if(we.includes(He)){const Ke=Math.floor(Ee/st);return Ee-=Ke*st,we.replace(new RegExp(`${He}+`,"g"),mt=>{const _t=mt.length;return Ke.toString().padStart(_t,"0")})}return we},ft);let pt=0;return Xe.replace(je,()=>{const we=Le[pt];return pt+=1,we})}function x(ye,De){const{format:Ee=""}=De,je=new Date(ye).getTime(),Le=Date.now(),ft=Math.max(je-Le,0);return b(ft,Ee)}const z=1e3/30;function re(ye){return new Date(ye).getTime()}const se=ye=>{const{value:De,format:Ee="HH:mm:ss",onChange:je,onFinish:Le}=ye,ft=(0,ge.Z)(),Xe=ee.useRef(null),pt=()=>{Le==null||Le(),Xe.current&&(clearInterval(Xe.current),Xe.current=null)},we=()=>{const st=re(De);st>=Date.now()&&(Xe.current=setInterval(()=>{ft(),je==null||je(st-Date.now()),st<Date.now()&&pt()},z))};ee.useEffect(()=>(we(),()=>{Xe.current&&(clearInterval(Xe.current),Xe.current=null)}),[De]);const Fe=(st,Ke)=>x(st,Object.assign(Object.assign({},Ke),{format:Ee})),He=st=>(0,be.Tm)(st,{title:void 0});return ee.createElement(y,Object.assign({},ye,{valueRender:He,formatter:Fe}))};var ce=ee.memo(se);y.Countdown=ce;var _e=y},15969:function(ht,Ve,te){"use strict";te.d(Ve,{N:function(){return ee}});const ee=ge=>({color:ge.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ge.motionDurationSlow}`,"&:focus, &:hover":{color:ge.colorLinkHover},"&:active":{color:ge.colorLinkActive}})},1710:function(ht,Ve,te){"use strict";te.d(Ve,{default:function(){return Ui}});var ee={},ge="rc-table-internal-hook",be=te(11913),ve=te(6089),Se=te(34280),fe=te(13697),ie=te(59301),ue=te(4676);function le(Ae){var Te=ie.createContext(void 0),Ue=function(at){var Ce=at.value,Me=at.children,Re=ie.useRef(Ce);Re.current=Ce;var Je=ie.useState(function(){return{getValue:function(){return Re.current},listeners:new Set}}),qe=(0,be.Z)(Je,1),nt=qe[0];return(0,Se.Z)(function(){(0,ue.unstable_batchedUpdates)(function(){nt.listeners.forEach(function(et){et(Ce)})})},[Ce]),ie.createElement(Te.Provider,{value:nt},Me)};return{Context:Te,Provider:Ue,defaultValue:Ae}}function me(Ae,Te){var Ue=(0,ve.Z)(typeof Te=="function"?Te:function(et){if(Te===void 0)return et;if(!Array.isArray(Te))return et[Te];var dt={};return Te.forEach(function(gt){dt[gt]=et[gt]}),dt}),Ye=ie.useContext(Ae==null?void 0:Ae.Context),at=Ye||{},Ce=at.listeners,Me=at.getValue,Re=ie.useRef();Re.current=Ue(Ye?Me():Ae==null?void 0:Ae.defaultValue);var Je=ie.useState({}),qe=(0,be.Z)(Je,2),nt=qe[1];return(0,Se.Z)(function(){if(!Ye)return;function et(dt){var gt=Ue(dt);(0,fe.Z)(Re.current,gt,!0)||nt({})}return Ce.add(et),function(){Ce.delete(et)}},[Ye]),Re.current}var ae=te(32855),he=te(8654);function oe(){var Ae=ie.createContext(null);function Te(){return ie.useContext(Ae)}function Ue(at,Ce){var Me=(0,he.Yr)(at),Re=function(qe,nt){var et=Me?{ref:nt}:{},dt=ie.useRef(0),gt=ie.useRef(qe),vt=Te();return vt!==null?ie.createElement(at,(0,ae.Z)({},qe,et)):((!Ce||Ce(gt.current,qe))&&(dt.current+=1),gt.current=qe,ie.createElement(Ae.Provider,{value:dt.current},ie.createElement(at,(0,ae.Z)({},qe,et))))};return Me?ie.forwardRef(Re):Re}function Ye(at,Ce){var Me=(0,he.Yr)(at),Re=function(qe,nt){var et=Me?{ref:nt}:{};return Te(),ie.createElement(at,(0,ae.Z)({},qe,et))};return Me?ie.memo(ie.forwardRef(Re),Ce):ie.memo(Re,Ce)}return{makeImmutable:Ue,responseImmutable:Ye,useImmutableMark:Te}}var ne=oe(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=oe(),x=b.makeImmutable,z=b.responseImmutable,re=b.useImmutableMark,se=le(),ce=se;function _e(Ae,Te){var Ue=ie.useRef(0);Ue.current+=1;var Ye=ie.useRef(Ae),at=[];Object.keys(Ae||{}).map(function(Me){var Re;(Ae==null?void 0:Ae[Me])!==((Re=Ye.current)===null||Re===void 0?void 0:Re[Me])&&at.push(Me)}),Ye.current=Ae;var Ce=ie.useRef([]);return at.length&&(Ce.current=at),ie.useDebugValue(Ue.current),ie.useDebugValue(Ce.current.join(", ")),Te&&console.log("".concat(Te,":"),Ue.current,Ce.current),Ue.current}var ye=null,De=ie.memo(function(){var Ae=_e();return ie.createElement("h1",null,"Render Times: ",Ae)});De.displayName="RenderBlock";var Ee=te(34666),je=te(27247),Le=te(74430),ft=te(92310),Xe=te.n(ft),pt=te(80547),we=te(97938),Fe=te(48736),He=ie.createContext({renderWithProps:!1}),st=He,Ke="RC_TABLE_KEY";function mt(Ae){return Ae==null?[]:Array.isArray(Ae)?Ae:[Ae]}function _t(Ae){var Te=[],Ue={};return Ae.forEach(function(Ye){for(var at=Ye||{},Ce=at.key,Me=at.dataIndex,Re=Ce||mt(Me).join("-")||Ke;Ue[Re];)Re="".concat(Re,"_next");Ue[Re]=!0,Te.push(Re)}),Te}function At(Ae){return Ae!=null}function kt(Ae){return Ae&&(0,Ee.Z)(Ae)==="object"&&!Array.isArray(Ae)&&!ie.isValidElement(Ae)}function rt(Ae,Te,Ue,Ye,at,Ce){var Me=ie.useContext(st),Re=re(),Je=(0,pt.Z)(function(){if(At(Ye))return[Ye];var qe=Te==null||Te===""?[]:Array.isArray(Te)?Te:[Te],nt=(0,we.Z)(Ae,qe),et=nt,dt=void 0;if(at){var gt=at(nt,Ae,Ue);kt(gt)?(et=gt.children,dt=gt.props,Me.renderWithProps=!0):et=gt}return[et,dt]},[Re,Ae,Ye,Te,at,Ue],function(qe,nt){if(Ce){var et=(0,be.Z)(qe,2),dt=et[1],gt=(0,be.Z)(nt,2),vt=gt[1];return Ce(vt,dt)}return Me.renderWithProps?!0:!(0,fe.Z)(qe,nt,!0)});return Je}function Qe(Ae,Te,Ue,Ye){var at=Ae+Te-1;return Ae<=Ye&&at>=Ue}function Pt(Ae,Te){return me(ce,function(Ue){var Ye=Qe(Ae,Te||1,Ue.hoverStartRow,Ue.hoverEndRow);return[Ye,Ue.onHover]})}var zt=function(Te){var Ue=Te.ellipsis,Ye=Te.rowType,at=Te.children,Ce,Me=Ue===!0?{showTitle:!0}:Ue;return Me&&(Me.showTitle||Ye==="header")&&(typeof at=="string"||typeof at=="number"?Ce=at.toString():ie.isValidElement(at)&&typeof at.props.children=="string"&&(Ce=at.props.children)),Ce};function Ct(Ae){var Te,Ue,Ye,at,Ce,Me,Re,Je,qe=Ae.component,nt=Ae.children,et=Ae.ellipsis,dt=Ae.scope,gt=Ae.prefixCls,vt=Ae.className,Wt=Ae.align,Nt=Ae.record,Vt=Ae.render,Ot=Ae.dataIndex,Yt=Ae.renderIndex,Qt=Ae.shouldCellUpdate,_n=Ae.index,an=Ae.rowType,vn=Ae.colSpan,On=Ae.rowSpan,Jt=Ae.fixLeft,hn=Ae.fixRight,Tt=Ae.firstFixLeft,rn=Ae.lastFixLeft,dn=Ae.firstFixRight,Dn=Ae.lastFixRight,qn=Ae.appendNode,en=Ae.additionalProps,Pn=en===void 0?{}:en,Mn=Ae.isSticky,gn="".concat(gt,"-cell"),Tn=me(ce,["supportSticky","allColumnsFixedLeft"]),kn=Tn.supportSticky,Qn=Tn.allColumnsFixedLeft,Ur=rt(Nt,Ot,Yt,nt,Vt,Qt),tr=(0,be.Z)(Ur,2),Yr=tr[0],_r=tr[1],Ar={},Tr=typeof Jt=="number"&&kn,jn=typeof hn=="number"&&kn;Tr&&(Ar.position="sticky",Ar.left=Jt),jn&&(Ar.position="sticky",Ar.right=hn);var En=(Te=(Ue=(Ye=_r==null?void 0:_r.colSpan)!==null&&Ye!==void 0?Ye:Pn.colSpan)!==null&&Ue!==void 0?Ue:vn)!==null&&Te!==void 0?Te:1,Bn=(at=(Ce=(Me=_r==null?void 0:_r.rowSpan)!==null&&Me!==void 0?Me:Pn.rowSpan)!==null&&Ce!==void 0?Ce:On)!==null&&at!==void 0?at:1,$n=Pt(_n,Bn),An=(0,be.Z)($n,2),br=An[0],Rn=An[1],zn=function(Ir){var wr;Nt&&Rn(_n,_n+Bn-1),Pn==null||(wr=Pn.onMouseEnter)===null||wr===void 0||wr.call(Pn,Ir)},hr=function(Ir){var wr;Nt&&Rn(-1,-1),Pn==null||(wr=Pn.onMouseLeave)===null||wr===void 0||wr.call(Pn,Ir)};if(En===0||Bn===0)return null;var Pr=(Re=Pn.title)!==null&&Re!==void 0?Re:zt({rowType:an,ellipsis:et,children:Yr}),Do=Xe()(gn,vt,(Je={},(0,Le.Z)(Je,"".concat(gn,"-fix-left"),Tr&&kn),(0,Le.Z)(Je,"".concat(gn,"-fix-left-first"),Tt&&kn),(0,Le.Z)(Je,"".concat(gn,"-fix-left-last"),rn&&kn),(0,Le.Z)(Je,"".concat(gn,"-fix-left-all"),rn&&Qn&&kn),(0,Le.Z)(Je,"".concat(gn,"-fix-right"),jn&&kn),(0,Le.Z)(Je,"".concat(gn,"-fix-right-first"),dn&&kn),(0,Le.Z)(Je,"".concat(gn,"-fix-right-last"),Dn&&kn),(0,Le.Z)(Je,"".concat(gn,"-ellipsis"),et),(0,Le.Z)(Je,"".concat(gn,"-with-append"),qn),(0,Le.Z)(Je,"".concat(gn,"-fix-sticky"),(Tr||jn)&&Mn&&kn),(0,Le.Z)(Je,"".concat(gn,"-row-hover"),!_r&&br),Je),Pn.className,_r==null?void 0:_r.className),bo={};Wt&&(bo.textAlign=Wt);var nr=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Ar),Pn.style),bo),_r==null?void 0:_r.style),mr=Yr;return(0,Ee.Z)(mr)==="object"&&!Array.isArray(mr)&&!ie.isValidElement(mr)&&(mr=null),et&&(rn||dn)&&(mr=ie.createElement("span",{className:"".concat(gn,"-content")},mr)),ie.createElement(qe,(0,ae.Z)({},_r,Pn,{className:Do,style:nr,title:Pr,scope:dt,onMouseEnter:zn,onMouseLeave:hr,colSpan:En!==1?En:null,rowSpan:Bn!==1?Bn:null}),qn,mr)}var sn=ie.memo(Ct);function Ze(Ae,Te,Ue,Ye,at,Ce){var Me=Ue[Ae]||{},Re=Ue[Te]||{},Je,qe;Me.fixed==="left"?Je=Ye.left[at==="rtl"?Te:Ae]:Re.fixed==="right"&&(qe=Ye.right[at==="rtl"?Ae:Te]);var nt=!1,et=!1,dt=!1,gt=!1,vt=Ue[Te+1],Wt=Ue[Ae-1],Nt=!(Ce!=null&&Ce.children);if(at==="rtl"){if(Je!==void 0){var Vt=Wt&&Wt.fixed==="left";gt=!Vt&&Nt}else if(qe!==void 0){var Ot=vt&&vt.fixed==="right";dt=!Ot&&Nt}}else if(Je!==void 0){var Yt=vt&&vt.fixed==="left";nt=!Yt&&Nt}else if(qe!==void 0){var Qt=Wt&&Wt.fixed==="right";et=!Qt&&Nt}return{fixLeft:Je,fixRight:qe,lastFixLeft:nt,firstFixRight:et,lastFixRight:dt,firstFixLeft:gt,isSticky:Ye.isSticky}}var St=ie.createContext({}),xt=St;function ln(Ae){var Te=Ae.className,Ue=Ae.index,Ye=Ae.children,at=Ae.colSpan,Ce=at===void 0?1:at,Me=Ae.rowSpan,Re=Ae.align,Je=me(ce,["prefixCls","direction"]),qe=Je.prefixCls,nt=Je.direction,et=ie.useContext(xt),dt=et.scrollColumnIndex,gt=et.stickyOffsets,vt=et.flattenColumns,Wt=et.columns,Nt=Ue+Ce-1,Vt=Nt+1===dt?Ce+1:Ce,Ot=Ze(Ue,Ue+Vt-1,vt,gt,nt,Wt==null?void 0:Wt[Ue]);return ie.createElement(sn,(0,ae.Z)({className:Te,index:Ue,component:"td",prefixCls:qe,record:null,dataIndex:null,align:Re,colSpan:Vt,rowSpan:Me,render:function(){return Ye}},Ot))}var Gt=te(43079),lt=["children"];function ct(Ae){var Te=Ae.children,Ue=(0,Gt.Z)(Ae,lt);return ie.createElement("tr",Ue,Te)}function Ge(Ae){var Te=Ae.children;return Te}Ge.Row=ct,Ge.Cell=ln;var Ne=Ge;function tt(Ae){var Te=Ae.children,Ue=Ae.stickyOffsets,Ye=Ae.flattenColumns,at=Ae.columns,Ce=me(ce,"prefixCls"),Me=Ye.length-1,Re=Ye[Me],Je=ie.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:Ye,scrollColumnIndex:Re!=null&&Re.scrollbar?Me:null,columns:at}},[Re,Ye,Me,Ue,at]);return ie.createElement(xt.Provider,{value:Je},ie.createElement("tfoot",{className:"".concat(Ce,"-summary")},Te))}var Et=z(tt),Ie=Ne,Oe=te(70425),We=te(29301),ke=te(29194),ze=te(24514),it=te(75152),It=te(26112);function Dt(Ae,Te,Ue,Ye,at,Ce,Me){Ae.push({record:Te,indent:Ue,index:Me});var Re=Ce(Te),Je=at==null?void 0:at.has(Re);if(Te&&Array.isArray(Te[Ye])&&Je)for(var qe=0;qe<Te[Ye].length;qe+=1)Dt(Ae,Te[Ye][qe],Ue+1,Ye,at,Ce,qe)}function jt(Ae,Te,Ue,Ye){var at=ie.useMemo(function(){if(Ue!=null&&Ue.size){for(var Ce=[],Me=0;Me<(Ae==null?void 0:Ae.length);Me+=1){var Re=Ae[Me];Dt(Ce,Re,0,Te,Ue,Ye,Me)}return Ce}return Ae==null?void 0:Ae.map(function(Je,qe){return{record:Je,indent:0,index:qe}})},[Ae,Te,Ue,Ye]);return at}function Lt(Ae){var Te=Ae.prefixCls,Ue=Ae.children,Ye=Ae.component,at=Ae.cellComponent,Ce=Ae.className,Me=Ae.expanded,Re=Ae.colSpan,Je=Ae.isEmpty,qe=me(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),nt=qe.scrollbarSize,et=qe.fixHeader,dt=qe.fixColumn,gt=qe.componentWidth,vt=qe.horizonScroll,Wt=Ue;return(Je?vt&&gt:dt)&&(Wt=ie.createElement("div",{style:{width:gt-(et?nt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Te,"-expanded-row-fixed")},Wt)),ie.createElement(Ye,{className:Ce,style:{display:Me?null:"none"}},ie.createElement(sn,{component:at,prefixCls:Te,colSpan:Re},Wt))}var Ht=Lt;function yt(Ae,Te,Ue,Ye){var at=me(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ce=at.flattenColumns,Me=at.expandableType,Re=at.expandedKeys,Je=at.childrenColumnName,qe=at.onTriggerExpand,nt=at.rowExpandable,et=at.onRow,dt=at.expandRowByClick,gt=at.rowClassName,vt=Me==="nest",Wt=Me==="row"&&(!nt||nt(Ae)),Nt=Wt||vt,Vt=Re&&Re.has(Te),Ot=Je&&Ae&&Ae[Je],Yt=(0,Oe.useEvent)(qe),Qt=et==null?void 0:et(Ae,Ue),_n=Qt==null?void 0:Qt.onClick,an=function(hn){dt&&Nt&&qe(Ae,hn);for(var Tt=arguments.length,rn=new Array(Tt>1?Tt-1:0),dn=1;dn<Tt;dn++)rn[dn-1]=arguments[dn];_n==null||_n.apply(void 0,[hn].concat(rn))},vn;typeof gt=="string"?vn=gt:typeof gt=="function"&&(vn=gt(Ae,Ue,Ye));var On=_t(Ce);return(0,je.Z)((0,je.Z)({},at),{},{columnsKey:On,nestExpandable:vt,expanded:Vt,hasNestChildren:Ot,record:Ae,onTriggerExpand:Yt,rowSupportExpand:Wt,expandable:Nt,rowProps:(0,je.Z)((0,je.Z)({},Qt),{},{className:Xe()(vn,Qt==null?void 0:Qt.className),onClick:an})})}function fn(Ae,Te,Ue,Ye,at){var Ce=Ae.record,Me=Ae.prefixCls,Re=Ae.columnsKey,Je=Ae.fixedInfoList,qe=Ae.expandIconColumnIndex,nt=Ae.nestExpandable,et=Ae.indentSize,dt=Ae.expandIcon,gt=Ae.expanded,vt=Ae.hasNestChildren,Wt=Ae.onTriggerExpand,Nt=Re[Ue],Vt=Je[Ue],Ot;Ue===(qe||0)&&nt&&(Ot=ie.createElement(ie.Fragment,null,ie.createElement("span",{style:{paddingLeft:"".concat(et*Ye,"px")},className:"".concat(Me,"-row-indent indent-level-").concat(Ye)}),dt({prefixCls:Me,expanded:gt,expandable:vt,record:Ce,onExpand:Wt})));var Yt;return Te.onCell&&(Yt=Te.onCell(Ce,at)),{key:Nt,fixedInfo:Vt,appendCellNode:Ot,additionalCellProps:Yt||{}}}function un(Ae){var Te=Ae.className,Ue=Ae.style,Ye=Ae.record,at=Ae.index,Ce=Ae.renderIndex,Me=Ae.rowKey,Re=Ae.indent,Je=Re===void 0?0:Re,qe=Ae.rowComponent,nt=Ae.cellComponent,et=Ae.scopeCellComponent,dt=yt(Ye,Me,at,Je),gt=dt.prefixCls,vt=dt.flattenColumns,Wt=dt.expandedRowClassName,Nt=dt.expandedRowRender,Vt=dt.rowProps,Ot=dt.expanded,Yt=dt.rowSupportExpand,Qt=ie.useState(!1),_n=(0,be.Z)(Qt,2),an=_n[0],vn=_n[1];ie.useEffect(function(){Ot&&vn(!0)},[Ot]);var On=ie.createElement(qe,(0,ae.Z)({},Vt,{"data-row-key":Me,className:Xe()(Te,"".concat(gt,"-row"),"".concat(gt,"-row-level-").concat(Je),Vt==null?void 0:Vt.className),style:(0,je.Z)((0,je.Z)({},Ue),Vt==null?void 0:Vt.style)}),vt.map(function(rn,dn){var Dn=rn.render,qn=rn.dataIndex,en=rn.className,Pn=fn(dt,rn,dn,Je,at),Mn=Pn.key,gn=Pn.fixedInfo,Tn=Pn.appendCellNode,kn=Pn.additionalCellProps;return ie.createElement(sn,(0,ae.Z)({className:en,ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:rn.rowScope?et:nt,prefixCls:gt,key:Mn,record:Ye,index:at,renderIndex:Ce,dataIndex:qn,render:Dn,shouldCellUpdate:rn.shouldCellUpdate},gn,{appendNode:Tn,additionalProps:kn}))})),Jt;if(Yt&&(an||Ot)){var hn=Nt(Ye,at,Je+1,Ot),Tt=Wt&&Wt(Ye,at,Je);Jt=ie.createElement(Ht,{expanded:Ot,className:Xe()("".concat(gt,"-expanded-row"),"".concat(gt,"-expanded-row-level-").concat(Je+1),Tt),prefixCls:gt,component:qe,cellComponent:nt,colSpan:vt.length,isEmpty:!1},hn)}return ie.createElement(ie.Fragment,null,On,Jt)}un.displayName="BodyRow";var bt=z(un);function Sn(Ae){var Te=Ae.columnKey,Ue=Ae.onColumnResize,Ye=ie.useRef();return ie.useEffect(function(){Ye.current&&Ue(Te,Ye.current.offsetWidth)},[]),ie.createElement(We.Z,{data:Te},ie.createElement("td",{ref:Ye,style:{padding:0,border:0,height:0}},ie.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function pn(Ae){var Te=Ae.prefixCls,Ue=Ae.columnsKey,Ye=Ae.onColumnResize;return ie.createElement("tr",{"aria-hidden":"true",className:"".concat(Te,"-measure-row"),style:{height:0,fontSize:0}},ie.createElement(We.Z.Collection,{onBatchResize:function(Ce){Ce.forEach(function(Me){var Re=Me.data,Je=Me.size;Ye(Re,Je.offsetWidth)})}},Ue.map(function(at){return ie.createElement(Sn,{key:at,columnKey:at,onColumnResize:Ye})})))}function Fn(Ae){var Te=Ae.data,Ue=Ae.measureColumnWidth,Ye=me(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),at=Ye.prefixCls,Ce=Ye.getComponent,Me=Ye.onColumnResize,Re=Ye.flattenColumns,Je=Ye.getRowKey,qe=Ye.expandedKeys,nt=Ye.childrenColumnName,et=Ye.emptyNode,dt=jt(Te,nt,qe,Je),gt=ie.useRef({renderWithProps:!1}),vt=Ce(["body","wrapper"],"tbody"),Wt=Ce(["body","row"],"tr"),Nt=Ce(["body","cell"],"td"),Vt=Ce(["body","cell"],"th"),Ot;Te.length?Ot=dt.map(function(Qt,_n){var an=Qt.record,vn=Qt.indent,On=Qt.index,Jt=Je(an,_n);return ie.createElement(bt,{key:Jt,rowKey:Jt,record:an,index:_n,renderIndex:On,rowComponent:Wt,cellComponent:Nt,scopeCellComponent:Vt,getRowKey:Je,indent:vn})}):Ot=ie.createElement(Ht,{expanded:!0,className:"".concat(at,"-placeholder"),prefixCls:at,component:Wt,cellComponent:Nt,colSpan:Re.length,isEmpty:!0},et);var Yt=_t(Re);return ie.createElement(st.Provider,{value:gt.current},ie.createElement(vt,{className:"".concat(at,"-tbody")},Ue&&ie.createElement(pn,{prefixCls:at,columnsKey:Yt,onColumnResize:Me}),Ot))}Fn.displayName="Body";var xn=z(Fn),Kn=["expandable"],er="RC_TABLE_INTERNAL_COL_DEFINE";function Vn(Ae){var Te=Ae.expandable,Ue=(0,Gt.Z)(Ae,Kn),Ye;return"expandable"in Ae?Ye=(0,je.Z)((0,je.Z)({},Ue),Te):Ye=Ue,Ye.showExpandColumn===!1&&(Ye.expandIconColumnIndex=-1),Ye}var Yn=["columnType"];function pr(Ae){for(var Te=Ae.colWidths,Ue=Ae.columns,Ye=Ae.columCount,at=[],Ce=Ye||Ue.length,Me=!1,Re=Ce-1;Re>=0;Re-=1){var Je=Te[Re],qe=Ue&&Ue[Re],nt=qe&&qe[er];if(Je||nt||Me){var et=nt||{},dt=et.columnType,gt=(0,Gt.Z)(et,Yn);at.unshift(ie.createElement("col",(0,ae.Z)({key:Re,style:{width:Je}},gt))),Me=!0}}return ie.createElement("colgroup",null,at)}var vr=pr,tn=te(3300),Xn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sr(Ae,Te){return(0,ie.useMemo)(function(){for(var Ue=[],Ye=0;Ye<Te;Ye+=1){var at=Ae[Ye];if(at!==void 0)Ue[Ye]=at;else return null}return Ue},[Ae.join("_"),Te])}var Wn=ie.forwardRef(function(Ae,Te){var Ue=Ae.className,Ye=Ae.noData,at=Ae.columns,Ce=Ae.flattenColumns,Me=Ae.colWidths,Re=Ae.columCount,Je=Ae.stickyOffsets,qe=Ae.direction,nt=Ae.fixHeader,et=Ae.stickyTopOffset,dt=Ae.stickyBottomOffset,gt=Ae.stickyClassName,vt=Ae.onScroll,Wt=Ae.maxContentScroll,Nt=Ae.children,Vt=(0,Gt.Z)(Ae,Xn),Ot=me(ce,["prefixCls","scrollbarSize","isSticky"]),Yt=Ot.prefixCls,Qt=Ot.scrollbarSize,_n=Ot.isSticky,an=_n&&!nt?0:Qt,vn=ie.useRef(null),On=ie.useCallback(function(en){(0,he.mH)(Te,en),(0,he.mH)(vn,en)},[]);ie.useEffect(function(){var en;function Pn(Mn){var gn=Mn,Tn=gn.currentTarget,kn=gn.deltaX;kn&&(vt({currentTarget:Tn,scrollLeft:Tn.scrollLeft+kn}),Mn.preventDefault())}return(en=vn.current)===null||en===void 0||en.addEventListener("wheel",Pn),function(){var Mn;(Mn=vn.current)===null||Mn===void 0||Mn.removeEventListener("wheel",Pn)}},[]);var Jt=ie.useMemo(function(){return Ce.every(function(en){return en.width})},[Ce]),hn=Ce[Ce.length-1],Tt={fixed:hn?hn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Yt,"-cell-scrollbar")}}},rn=(0,ie.useMemo)(function(){return an?[].concat((0,tn.Z)(at),[Tt]):at},[an,at]),dn=(0,ie.useMemo)(function(){return an?[].concat((0,tn.Z)(Ce),[Tt]):Ce},[an,Ce]),Dn=(0,ie.useMemo)(function(){var en=Je.right,Pn=Je.left;return(0,je.Z)((0,je.Z)({},Je),{},{left:qe==="rtl"?[].concat((0,tn.Z)(Pn.map(function(Mn){return Mn+an})),[0]):Pn,right:qe==="rtl"?en:[].concat((0,tn.Z)(en.map(function(Mn){return Mn+an})),[0]),isSticky:_n})},[an,Je,_n]),qn=sr(Me,Re);return ie.createElement("div",{style:(0,je.Z)({overflow:"hidden"},_n?{top:et,bottom:dt}:{}),ref:On,className:Xe()(Ue,(0,Le.Z)({},gt,!!gt))},ie.createElement("table",{style:{tableLayout:"fixed",visibility:Ye||qn?null:"hidden"}},(!Ye||!Wt||Jt)&&ie.createElement(vr,{colWidths:qn?[].concat((0,tn.Z)(qn),[an]):[],columCount:Re+1,columns:dn}),Nt((0,je.Z)((0,je.Z)({},Vt),{},{stickyOffsets:Dn,columns:rn,flattenColumns:dn}))))});Wn.displayName="FixedHolder";var lr=ie.memo(Wn);function Or(Ae){var Te=Ae.cells,Ue=Ae.stickyOffsets,Ye=Ae.flattenColumns,at=Ae.rowComponent,Ce=Ae.cellComponent,Me=Ae.tdCellComponent,Re=Ae.onHeaderRow,Je=Ae.index,qe=me(ce,["prefixCls","direction"]),nt=qe.prefixCls,et=qe.direction,dt;Re&&(dt=Re(Te.map(function(vt){return vt.column}),Je));var gt=_t(Te.map(function(vt){return vt.column}));return ie.createElement(at,dt,Te.map(function(vt,Wt){var Nt=vt.column,Vt=Ze(vt.colStart,vt.colEnd,Ye,Ue,et,Nt),Ot;return Nt&&Nt.onHeaderCell&&(Ot=vt.column.onHeaderCell(Nt)),ie.createElement(sn,(0,ae.Z)({},vt,{scope:Nt.title?vt.colSpan>1?"colgroup":"col":null,ellipsis:Nt.ellipsis,align:Nt.align,component:Nt.title?Ce:Me,prefixCls:nt,key:gt[Wt]},Vt,{additionalProps:Ot,rowType:"header"}))}))}Or.displayName="HeaderRow";var Rr=Or;function Er(Ae){var Te=[];function Ue(Me,Re){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Te[Je]=Te[Je]||[];var qe=Re,nt=Me.filter(Boolean).map(function(et){var dt={key:et.key,className:et.className||"",children:et.title,column:et,colStart:qe},gt=1,vt=et.children;return vt&&vt.length>0&&(gt=Ue(vt,qe,Je+1).reduce(function(Wt,Nt){return Wt+Nt},0),dt.hasSubColumns=!0),"colSpan"in et&&(gt=et.colSpan),"rowSpan"in et&&(dt.rowSpan=et.rowSpan),dt.colSpan=gt,dt.colEnd=dt.colStart+gt-1,Te[Je].push(dt),qe+=gt,gt});return nt}Ue(Ae,0);for(var Ye=Te.length,at=function(Re){Te[Re].forEach(function(Je){!("rowSpan"in Je)&&!Je.hasSubColumns&&(Je.rowSpan=Ye-Re)})},Ce=0;Ce<Ye;Ce+=1)at(Ce);return Te}function Nr(Ae){var Te=Ae.stickyOffsets,Ue=Ae.columns,Ye=Ae.flattenColumns,at=Ae.onHeaderRow,Ce=me(ce,["prefixCls","getComponent"]),Me=Ce.prefixCls,Re=Ce.getComponent,Je=ie.useMemo(function(){return Er(Ue)},[Ue]),qe=Re(["header","wrapper"],"thead"),nt=Re(["header","row"],"tr"),et=Re(["header","cell"],"th"),dt=Re(["header","cell"],"td");return ie.createElement(qe,{className:"".concat(Me,"-thead")},Je.map(function(gt,vt){var Wt=ie.createElement(Rr,{key:vt,flattenColumns:Ye,cells:gt,stickyOffsets:Te,rowComponent:nt,cellComponent:et,tdCellComponent:dt,onHeaderRow:at,index:vt});return Wt}))}var cr=z(Nr),Xr=te(11592);function $t(Ae){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?Ae*parseFloat(Te)/100:null}function de(Ae,Te){return ie.useMemo(function(){if(Te&&Te>0){var Ue=0,Ye=0;Ae.forEach(function(qe){var nt=$t(Te,qe.width);nt?Ue+=nt:Ye+=1});var at=Te-Ue,Ce=Ye,Me=at/Ye,Re=0,Je=Ae.map(function(qe){var nt=(0,je.Z)({},qe),et=$t(Te,nt.width);if(et)nt.width=et;else{var dt=Math.floor(Me);nt.width=Ce===1?at:dt,at-=dt,Ce-=1}return Re+=nt.width,nt});return[Je,Re]}return[Ae,Te]},[Ae,Te])}var pe=["children"],Pe=["fixed"];function xe(Ae){return(0,Xr.Z)(Ae).filter(function(Te){return ie.isValidElement(Te)}).map(function(Te){var Ue=Te.key,Ye=Te.props,at=Ye.children,Ce=(0,Gt.Z)(Ye,pe),Me=(0,je.Z)({key:Ue},Ce);return at&&(Me.children=xe(at)),Me})}function Be(Ae){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.filter(function(Ue){return Ue&&(0,Ee.Z)(Ue)==="object"}).reduce(function(Ue,Ye,at){var Ce=Ye.fixed,Me=Ce===!0?"left":Ce,Re="".concat(Te,"-").concat(at),Je=Ye.children;return Je&&Je.length>0?[].concat((0,tn.Z)(Ue),(0,tn.Z)(Be(Je,Re).map(function(qe){return(0,je.Z)({fixed:Me},qe)}))):[].concat((0,tn.Z)(Ue),[(0,je.Z)((0,je.Z)({key:Re},Ye),{},{fixed:Me})])},[])}function ot(Ae){for(var Te=!0,Ue=0;Ue<Ae.length;Ue+=1){var Ye=Ae[Ue];if(Te&&Ye.fixed!=="left")Te=!1;else if(!Te&&Ye.fixed==="left"){warning(!1,"Index ".concat(Ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var at=!0,Ce=Ae.length-1;Ce>=0;Ce-=1){var Me=Ae[Ce];if(at&&Me.fixed!=="right")at=!1;else if(!at&&Me.fixed==="right"){warning(!1,"Index ".concat(Ce+1," of `columns` missing `fixed='right'` prop."));break}}}function ut(Ae){return Ae.map(function(Te){var Ue=Te.fixed,Ye=(0,Gt.Z)(Te,Pe),at=Ue;return Ue==="left"?at="right":Ue==="right"&&(at="left"),(0,je.Z)({fixed:at},Ye)})}function nn(Ae,Te){var Ue=Ae.prefixCls,Ye=Ae.columns,at=Ae.children,Ce=Ae.expandable,Me=Ae.expandedKeys,Re=Ae.columnTitle,Je=Ae.getRowKey,qe=Ae.onTriggerExpand,nt=Ae.expandIcon,et=Ae.rowExpandable,dt=Ae.expandIconColumnIndex,gt=Ae.direction,vt=Ae.expandRowByClick,Wt=Ae.columnWidth,Nt=Ae.fixed,Vt=Ae.scrollWidth,Ot=ie.useMemo(function(){return Ye||xe(at)},[Ye,at]),Yt=ie.useMemo(function(){if(Ce){var hn,Tt=Ot.slice();if(!Tt.includes(ee)){var rn=dt||0;rn>=0&&Tt.splice(rn,0,ee)}var dn=Tt.indexOf(ee);Tt=Tt.filter(function(Pn,Mn){return Pn!==ee||Mn===dn});var Dn=Ot[dn],qn;(Nt==="left"||Nt)&&!dt?qn="left":(Nt==="right"||Nt)&&dt===Ot.length?qn="right":qn=Dn?Dn.fixed:null;var en=(hn={},(0,Le.Z)(hn,er,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Le.Z)(hn,"title",Re),(0,Le.Z)(hn,"fixed",qn),(0,Le.Z)(hn,"className","".concat(Ue,"-row-expand-icon-cell")),(0,Le.Z)(hn,"width",Wt),(0,Le.Z)(hn,"render",function(Mn,gn,Tn){var kn=Je(gn,Tn),Qn=Me.has(kn),Ur=et?et(gn):!0,tr=nt({prefixCls:Ue,expanded:Qn,expandable:Ur,record:gn,onExpand:qe});return vt?ie.createElement("span",{onClick:function(_r){return _r.stopPropagation()}},tr):tr}),hn);return Tt.map(function(Pn){return Pn===ee?en:Pn})}return Ot.filter(function(Pn){return Pn!==ee})},[Ce,Ot,Je,Me,nt,gt]),Qt=ie.useMemo(function(){var hn=Yt;return Te&&(hn=Te(hn)),hn.length||(hn=[{render:function(){return null}}]),hn},[Te,Yt,gt]),_n=ie.useMemo(function(){return gt==="rtl"?ut(Be(Qt)):Be(Qt)},[Qt,gt,Vt]),an=de(_n,Vt),vn=(0,be.Z)(an,2),On=vn[0],Jt=vn[1];return[Qt,On,Jt]}var Zt=nn;function qt(Ae){var Te,Ue=Ae.prefixCls,Ye=Ae.record,at=Ae.onExpand,Ce=Ae.expanded,Me=Ae.expandable,Re="".concat(Ue,"-row-expand-icon");if(!Me)return ie.createElement("span",{className:Xe()(Re,"".concat(Ue,"-row-spaced"))});var Je=function(nt){at(Ye,nt),nt.stopPropagation()};return ie.createElement("span",{className:Xe()(Re,(Te={},(0,Le.Z)(Te,"".concat(Ue,"-row-expanded"),Ce),(0,Le.Z)(Te,"".concat(Ue,"-row-collapsed"),!Ce),Te)),onClick:Je})}function bn(Ae,Te,Ue){var Ye=[];function at(Ce){(Ce||[]).forEach(function(Me,Re){Ye.push(Te(Me,Re)),at(Me[Ue])})}return at(Ae),Ye}function Rt(Ae,Te,Ue){var Ye=Vn(Ae),at=Ye.expandIcon,Ce=Ye.expandedRowKeys,Me=Ye.defaultExpandedRowKeys,Re=Ye.defaultExpandAllRows,Je=Ye.expandedRowRender,qe=Ye.onExpand,nt=Ye.onExpandedRowsChange,et=Ye.childrenColumnName,dt=at||qt,gt=et||"children",vt=ie.useMemo(function(){return Je?"row":Ae.expandable&&Ae.internalHooks===ge&&Ae.expandable.__PARENT_RENDER_ICON__||Te.some(function(_n){return _n&&(0,Ee.Z)(_n)==="object"&&_n[gt]})?"nest":!1},[!!Je,Te]),Wt=ie.useState(function(){return Me||(Re?bn(Te,Ue,gt):[])}),Nt=(0,be.Z)(Wt,2),Vt=Nt[0],Ot=Nt[1],Yt=ie.useMemo(function(){return new Set(Ce||Vt||[])},[Ce,Vt]),Qt=ie.useCallback(function(_n){var an=Ue(_n,Te.indexOf(_n)),vn,On=Yt.has(an);On?(Yt.delete(an),vn=(0,tn.Z)(Yt)):vn=[].concat((0,tn.Z)(Yt),[an]),Ot(vn),qe&&qe(!On,_n),nt&&nt(vn)},[Ue,Yt,Te,qe,nt]);return[Ye,vt,Yt,dt,gt,Qt]}function $e(Ae,Te,Ue,Ye){var at=Ae.map(function(Ce,Me){return Ze(Me,Me,Ae,Te,Ue,Ye==null?void 0:Ye[Me])});return(0,pt.Z)(function(){return at},[at],function(Ce,Me){return!(0,fe.Z)(Ce,Me)})}function Mt(Ae){var Te=(0,ie.useRef)(Ae),Ue=(0,ie.useState)({}),Ye=(0,be.Z)(Ue,2),at=Ye[1],Ce=(0,ie.useRef)(null),Me=(0,ie.useRef)([]);function Re(Je){Me.current.push(Je);var qe=Promise.resolve();Ce.current=qe,qe.then(function(){if(Ce.current===qe){var nt=Me.current,et=Te.current;Me.current=[],nt.forEach(function(dt){Te.current=dt(Te.current)}),Ce.current=null,et!==Te.current&&at({})}})}return(0,ie.useEffect)(function(){return function(){Ce.current=null}},[]),[Te.current,Re]}function Ft(Ae){var Te=(0,ie.useRef)(Ae||null),Ue=(0,ie.useRef)();function Ye(){window.clearTimeout(Ue.current)}function at(Me){Te.current=Me,Ye(),Ue.current=window.setTimeout(function(){Te.current=null,Ue.current=void 0},100)}function Ce(){return Te.current}return(0,ie.useEffect)(function(){return Ye},[]),[at,Ce]}function wt(){var Ae=ie.useState(-1),Te=(0,be.Z)(Ae,2),Ue=Te[0],Ye=Te[1],at=ie.useState(-1),Ce=(0,be.Z)(at,2),Me=Ce[0],Re=Ce[1],Je=ie.useCallback(function(qe,nt){Ye(qe),Re(nt)},[]);return[Ue,Me,Je]}var Bt=te(47273),Kt=(0,Bt.Z)()?window:null;function Xt(Ae,Te){var Ue=(0,Ee.Z)(Ae)==="object"?Ae:{},Ye=Ue.offsetHeader,at=Ye===void 0?0:Ye,Ce=Ue.offsetSummary,Me=Ce===void 0?0:Ce,Re=Ue.offsetScroll,Je=Re===void 0?0:Re,qe=Ue.getContainer,nt=qe===void 0?function(){return Kt}:qe,et=nt()||Kt;return ie.useMemo(function(){var dt=!!Ae;return{isSticky:dt,stickyClassName:dt?"".concat(Te,"-sticky-holder"):"",offsetHeader:at,offsetSummary:Me,offsetScroll:Je,container:et}},[Je,at,Me,Te,et])}function yn(Ae,Te,Ue){var Ye=(0,ie.useMemo)(function(){for(var at=[],Ce=[],Me=0,Re=0,Je=0;Je<Te;Je+=1)if(Ue==="rtl"){Ce[Je]=Re,Re+=Ae[Je]||0;var qe=Te-Je-1;at[qe]=Me,Me+=Ae[qe]||0}else{at[Je]=Me,Me+=Ae[Je]||0;var nt=Te-Je-1;Ce[nt]=Re,Re+=Ae[nt]||0}return{left:at,right:Ce}},[Ae,Te,Ue]);return Ye}var Nn=yn;function Un(Ae){var Te=Ae.className,Ue=Ae.children;return ie.createElement("div",{className:Te},Ue)}var cn=Un,Ln=te(8224),Jn=te(55468),rr=function(Te,Ue){var Ye,at,Ce=Te.scrollBodyRef,Me=Te.onScroll,Re=Te.offsetScroll,Je=Te.container,qe=me(ce,"prefixCls"),nt=((Ye=Ce.current)===null||Ye===void 0?void 0:Ye.scrollWidth)||0,et=((at=Ce.current)===null||at===void 0?void 0:at.clientWidth)||0,dt=nt&&et*(et/nt),gt=ie.useRef(),vt=Mt({scrollLeft:0,isHiddenScrollBar:!1}),Wt=(0,be.Z)(vt,2),Nt=Wt[0],Vt=Wt[1],Ot=ie.useRef({delta:0,x:0}),Yt=ie.useState(!1),Qt=(0,be.Z)(Yt,2),_n=Qt[0],an=Qt[1],vn=function(){an(!1)},On=function(dn){dn.persist(),Ot.current.delta=dn.pageX-Nt.scrollLeft,Ot.current.x=0,an(!0),dn.preventDefault()},Jt=function(dn){var Dn,qn=dn||((Dn=window)===null||Dn===void 0?void 0:Dn.event),en=qn.buttons;if(!_n||en===0){_n&&an(!1);return}var Pn=Ot.current.x+dn.pageX-Ot.current.x-Ot.current.delta;Pn<=0&&(Pn=0),Pn+dt>=et&&(Pn=et-dt),Me({scrollLeft:Pn/et*(nt+2)}),Ot.current.x=dn.pageX},hn=function(){if(Ce.current){var dn=(0,Jn.os)(Ce.current).top,Dn=dn+Ce.current.offsetHeight,qn=Je===window?document.documentElement.scrollTop+window.innerHeight:(0,Jn.os)(Je).top+Je.clientHeight;Dn-(0,it.Z)()<=qn||dn>=qn-Re?Vt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!0})}):Vt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!1})})}},Tt=function(dn){Vt(function(Dn){return(0,je.Z)((0,je.Z)({},Dn),{},{scrollLeft:dn/nt*et||0})})};return ie.useImperativeHandle(Ue,function(){return{setScrollLeft:Tt}}),ie.useEffect(function(){var rn=(0,Ln.Z)(document.body,"mouseup",vn,!1),dn=(0,Ln.Z)(document.body,"mousemove",Jt,!1);return hn(),function(){rn.remove(),dn.remove()}},[dt,_n]),ie.useEffect(function(){var rn=(0,Ln.Z)(Je,"scroll",hn,!1),dn=(0,Ln.Z)(window,"resize",hn,!1);return function(){rn.remove(),dn.remove()}},[Je]),ie.useEffect(function(){Nt.isHiddenScrollBar||Vt(function(rn){var dn=Ce.current;return dn?(0,je.Z)((0,je.Z)({},rn),{},{scrollLeft:dn.scrollLeft/dn.scrollWidth*dn.clientWidth}):rn})},[Nt.isHiddenScrollBar]),nt<=et||!dt||Nt.isHiddenScrollBar?null:ie.createElement("div",{style:{height:(0,it.Z)(),width:et,bottom:Re},className:"".concat(qe,"-sticky-scroll")},ie.createElement("div",{onMouseDown:On,ref:gt,className:Xe()("".concat(qe,"-sticky-scroll-bar"),(0,Le.Z)({},"".concat(qe,"-sticky-scroll-bar-active"),_n)),style:{width:"".concat(dt,"px"),transform:"translate3d(".concat(Nt.scrollLeft,"px, 0, 0)")}}))},fr=ie.forwardRef(rr);function Ut(Ae){return null}var Lr=Ut;function dr(Ae){return null}var Qr=dr,Sr="rc-table",on=[],wn={};function Hn(){return"No Data"}function mn(Ae){var Te,Ue=(0,je.Z)({rowKey:"key",prefixCls:Sr,emptyText:Hn},Ae),Ye=Ue.prefixCls,at=Ue.className,Ce=Ue.rowClassName,Me=Ue.style,Re=Ue.data,Je=Ue.rowKey,qe=Ue.scroll,nt=Ue.tableLayout,et=Ue.direction,dt=Ue.title,gt=Ue.footer,vt=Ue.summary,Wt=Ue.caption,Nt=Ue.id,Vt=Ue.showHeader,Ot=Ue.components,Yt=Ue.emptyText,Qt=Ue.onRow,_n=Ue.onHeaderRow,an=Ue.internalHooks,vn=Ue.transformColumns,On=Ue.internalRefs,Jt=Ue.tailor,hn=Ue.sticky,Tt=Re||on,rn=!!Tt.length,dn=an===ge,Dn=ie.useCallback(function(kr,ro){return(0,we.Z)(Ot,kr)||ro},[Ot]),qn=ie.useMemo(function(){return typeof Je=="function"?Je:function(kr){var ro=kr&&kr[Je];return ro}},[Je]),en=Dn(["body"]),Pn=wt(),Mn=(0,be.Z)(Pn,3),gn=Mn[0],Tn=Mn[1],kn=Mn[2],Qn=Rt(Ue,Tt,qn),Ur=(0,be.Z)(Qn,6),tr=Ur[0],Yr=Ur[1],_r=Ur[2],Ar=Ur[3],Tr=Ur[4],jn=Ur[5],En=qe==null?void 0:qe.x,Bn=ie.useState(0),$n=(0,be.Z)(Bn,2),An=$n[0],br=$n[1],Rn=Zt((0,je.Z)((0,je.Z)((0,je.Z)({},Ue),tr),{},{expandable:!!tr.expandedRowRender,columnTitle:tr.columnTitle,expandedKeys:_r,getRowKey:qn,onTriggerExpand:jn,expandIcon:Ar,expandIconColumnIndex:tr.expandIconColumnIndex,direction:et,scrollWidth:dn&&Jt&&typeof En=="number"?En:null}),dn?vn:null),zn=(0,be.Z)(Rn,3),hr=zn[0],Pr=zn[1],Do=zn[2],bo=Do!=null?Do:En,nr=ie.useMemo(function(){return{columns:hr,flattenColumns:Pr}},[hr,Pr]),mr=ie.useRef(),to=ie.useRef(),Ir=ie.useRef(),wr=ie.useRef(),jo=ie.useRef(),Cr=ie.useState(!1),xr=(0,be.Z)(Cr,2),$r=xr[0],Jr=xr[1],uo=ie.useState(!1),ur=(0,be.Z)(uo,2),To=ur[0],zo=ur[1],ei=Mt(new Map),mi=(0,be.Z)(ei,2),ui=mi[0],ea=mi[1],bi=_t(Pr),ai=bi.map(function(kr){return ui.get(kr)}),Ko=ie.useMemo(function(){return ai},[ai.join("_")]),$o=Nn(Ko,Pr.length,et),vo=qe&&At(qe.y),ao=qe&&At(bo)||!!tr.fixed,pi=ao&&Pr.some(function(kr){var ro=kr.fixed;return ro}),Ti=ie.useRef(),Li=Xt(hn,Ye),vi=Li.isSticky,Pa=Li.offsetHeader,ts=Li.offsetSummary,Mr=Li.offsetScroll,qr=Li.stickyClassName,No=Li.container,so=ie.useMemo(function(){return vt==null?void 0:vt(Tt)},[vt,Tt]),Ho=(vo||vi)&&ie.isValidElement(so)&&so.type===Ne&&so.props.fixed,Vo,Yo,Ci;vo&&(Yo={overflowY:"scroll",maxHeight:qe.y}),ao&&(Vo={overflowX:"auto"},vo||(Yo={overflowY:"hidden"}),Ci={width:bo===!0?"auto":bo,minWidth:"100%"});var xs=ie.useCallback(function(kr,ro){(0,ke.Z)(mr.current)&&ea(function(si){if(si.get(kr)!==ro){var Di=new Map(si);return Di.set(kr,ro),Di}return si})},[]),$s=Ft(null),Ls=(0,be.Z)($s,2),Zs=Ls[0],Ds=Ls[1];function ba(kr,ro){ro&&(typeof ro=="function"?ro(kr):ro.scrollLeft!==kr&&(ro.scrollLeft=kr,ro.scrollLeft!==kr&&setTimeout(function(){ro.scrollLeft=kr},0)))}var $i=(0,ve.Z)(function(kr){var ro=kr.currentTarget,si=kr.scrollLeft,Di=et==="rtl",Mi=typeof si=="number"?si:ro.scrollLeft,Us=ro||wn;if(!Ds()||Ds()===Us){var as;Zs(Us),ba(Mi,to.current),ba(Mi,Ir.current),ba(Mi,jo.current),ba(Mi,(as=Ti.current)===null||as===void 0?void 0:as.setScrollLeft)}var ss=ro||to.current;if(ss){var ls=ss.scrollWidth,cs=ss.clientWidth;if(ls===cs){Jr(!1),zo(!1);return}Di?(Jr(-Mi<ls-cs),zo(-Mi>0)):(Jr(Mi>0),zo(Mi<ls-cs))}}),Ms=function(){ao&&Ir.current?$i({currentTarget:Ir.current}):(Jr(!1),zo(!1))},Ws=function(ro){var si=ro.width;si!==An&&(Ms(),br(mr.current?mr.current.offsetWidth:si))},As=ie.useRef(!1);ie.useEffect(function(){As.current&&Ms()},[ao,Re,hr.length]),ie.useEffect(function(){As.current=!0},[]);var Ks=ie.useState(0),Is=(0,be.Z)(Ks,2),Ca=Is[0],Os=Is[1],Vs=ie.useState(!0),Rs=(0,be.Z)(Vs,2),Ts=Rs[0],Ys=Rs[1];ie.useEffect(function(){(!Jt||!dn)&&(Ir.current instanceof Element?Os((0,it.o)(Ir.current).width):Os((0,it.o)(wr.current).width)),Ys((0,ze.G)("position","sticky"))},[]),ie.useEffect(function(){dn&&On&&(On.body.current=Ir.current)});var Xs=ie.useCallback(function(kr){return ie.createElement(ie.Fragment,null,ie.createElement(cr,kr),Ho==="top"&&ie.createElement(Et,kr,so))},[Ho,so]),Qs=ie.useCallback(function(kr){return ie.createElement(Et,kr,so)},[so]),Ns=Dn(["table"],"table"),Ea=ie.useMemo(function(){return nt||(pi?bo==="max-content"?"auto":"fixed":vo||vi||Pr.some(function(kr){var ro=kr.ellipsis;return ro})?"fixed":"auto")},[vo,pi,Pr,nt,vi]),ns,rs={colWidths:Ko,columCount:Pr.length,stickyOffsets:$o,onHeaderRow:_n,fixHeader:vo,scroll:qe},Bs=ie.useMemo(function(){return rn?null:typeof Yt=="function"?Yt():Yt},[rn,Yt]),ks=ie.createElement(xn,{data:Tt,measureColumnWidth:vo||ao||vi}),Fs=ie.createElement(vr,{colWidths:Pr.map(function(kr){var ro=kr.width;return ro}),columns:Pr}),js=Wt!=null?ie.createElement("caption",{className:"".concat(Ye,"-caption")},Wt):void 0,Js=(0,It.Z)(Ue,{data:!0}),zs=(0,It.Z)(Ue,{aria:!0});if(vo||vi){var os;typeof en=="function"?(os=en(Tt,{scrollbarSize:Ca,ref:Ir,onScroll:$i}),rs.colWidths=Pr.map(function(kr,ro){var si=kr.width,Di=ro===Pr.length-1?si-Ca:si;return typeof Di=="number"&&!Number.isNaN(Di)?Di:0})):os=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Vo),Yo),onScroll:$i,ref:Ir,className:Xe()("".concat(Ye,"-body"))},ie.createElement(Ns,(0,ae.Z)({style:(0,je.Z)((0,je.Z)({},Ci),{},{tableLayout:Ea})},zs),js,Fs,ks,!Ho&&so&&ie.createElement(Et,{stickyOffsets:$o,flattenColumns:Pr,columns:hr},so)));var Hs=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Tt.length,maxContentScroll:ao&&bo==="max-content"},rs),nr),{},{direction:et,stickyClassName:qr,onScroll:$i});ns=ie.createElement(ie.Fragment,null,Vt!==!1&&ie.createElement(lr,(0,ae.Z)({},Hs,{stickyTopOffset:Pa,className:"".concat(Ye,"-header"),ref:to}),Xs),os,Ho&&Ho!=="top"&&ie.createElement(lr,(0,ae.Z)({},Hs,{stickyBottomOffset:ts,className:"".concat(Ye,"-summary"),ref:jo}),Qs),vi&&ie.createElement(fr,{ref:Ti,offsetScroll:Mr,scrollBodyRef:Ir,onScroll:$i,container:No}))}else ns=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Vo),Yo),className:Xe()("".concat(Ye,"-content")),onScroll:$i,ref:Ir},ie.createElement(Ns,(0,ae.Z)({style:(0,je.Z)((0,je.Z)({},Ci),{},{tableLayout:Ea})},zs),js,Fs,Vt!==!1&&ie.createElement(cr,(0,ae.Z)({},rs,nr)),ks,so&&ie.createElement(Et,{stickyOffsets:$o,flattenColumns:Pr,columns:hr},so)));var is=ie.createElement("div",(0,ae.Z)({className:Xe()(Ye,at,(Te={},(0,Le.Z)(Te,"".concat(Ye,"-rtl"),et==="rtl"),(0,Le.Z)(Te,"".concat(Ye,"-ping-left"),$r),(0,Le.Z)(Te,"".concat(Ye,"-ping-right"),To),(0,Le.Z)(Te,"".concat(Ye,"-layout-fixed"),nt==="fixed"),(0,Le.Z)(Te,"".concat(Ye,"-fixed-header"),vo),(0,Le.Z)(Te,"".concat(Ye,"-fixed-column"),pi),(0,Le.Z)(Te,"".concat(Ye,"-scroll-horizontal"),ao),(0,Le.Z)(Te,"".concat(Ye,"-has-fix-left"),Pr[0]&&Pr[0].fixed),(0,Le.Z)(Te,"".concat(Ye,"-has-fix-right"),Pr[Pr.length-1]&&Pr[Pr.length-1].fixed==="right"),Te)),style:Me,id:Nt,ref:mr},Js),dt&&ie.createElement(cn,{className:"".concat(Ye,"-title")},dt(Tt)),ie.createElement("div",{ref:wr,className:"".concat(Ye,"-container")},ns),gt&&ie.createElement(cn,{className:"".concat(Ye,"-footer")},gt(Tt)));ao&&(is=ie.createElement(We.Z,{onResize:Ws},is));var Gs=$e(Pr,$o,et,hr),qs=ie.useMemo(function(){return{scrollX:bo,prefixCls:Ye,getComponent:Dn,scrollbarSize:Ca,direction:et,fixedInfoList:Gs,isSticky:vi,supportSticky:Ts,componentWidth:An,fixHeader:vo,fixColumn:pi,horizonScroll:ao,tableLayout:Ea,rowClassName:Ce,expandedRowClassName:tr.expandedRowClassName,expandIcon:Ar,expandableType:Yr,expandRowByClick:tr.expandRowByClick,expandedRowRender:tr.expandedRowRender,onTriggerExpand:jn,expandIconColumnIndex:tr.expandIconColumnIndex,indentSize:tr.indentSize,allColumnsFixedLeft:Pr.every(function(kr){return kr.fixed==="left"}),emptyNode:Bs,columns:hr,flattenColumns:Pr,onColumnResize:xs,hoverStartRow:gn,hoverEndRow:Tn,onHover:kn,rowExpandable:tr.rowExpandable,onRow:Qt,getRowKey:qn,expandedKeys:_r,childrenColumnName:Tr}},[bo,Ye,Dn,Ca,et,Gs,vi,Ts,An,vo,pi,ao,Ea,Ce,tr.expandedRowClassName,Ar,Yr,tr.expandRowByClick,tr.expandedRowRender,jn,tr.expandIconColumnIndex,tr.indentSize,Bs,hr,Pr,xs,gn,Tn,kn,tr.rowExpandable,Qt,qn,_r,Tr]);return ie.createElement(ce.Provider,{value:qs},is)}function ir(Ae){return x(mn,Ae)}var ar=ir();ar.EXPAND_COLUMN=ee,ar.INTERNAL_HOOKS=ge,ar.Column=Lr,ar.ColumnGroup=Qr,ar.Summary=Ie;var Br=ar,Fr=te(6790),Zr=le(null),Co=le(null);function So(Ae,Te,Ue){var Ye=Te||1;return Ue[Ae+Ye]-(Ue[Ae]||0)}function Mo(Ae){var Te=Ae.rowInfo,Ue=Ae.column,Ye=Ae.colIndex,at=Ae.indent,Ce=Ae.index,Me=Ae.renderIndex,Re=Ae.record,Je=Ae.style,qe=Ae.className,nt=Ae.inverse,et=Ae.getHeight,dt=Ue.render,gt=Ue.dataIndex,vt=Ue.className,Wt=Ue.width,Nt=me(Co,["columnsOffset"]),Vt=Nt.columnsOffset,Ot=fn(Te,Ue,Ye,at,Ce),Yt=Ot.key,Qt=Ot.fixedInfo,_n=Ot.appendCellNode,an=Ot.additionalCellProps,vn=an.style,On=an.colSpan,Jt=On===void 0?1:On,hn=an.rowSpan,Tt=hn===void 0?1:hn,rn=Ye-1,dn=So(rn,Jt,Vt),Dn=Jt>1?Wt-dn:0,qn=(0,je.Z)((0,je.Z)((0,je.Z)({},vn),Je),{},{flex:"0 0 ".concat(dn,"px"),width:"".concat(dn,"px"),marginRight:Dn,pointerEvents:"auto"}),en=ie.useMemo(function(){return nt?Tt<=1:Jt===0||Tt===0||Tt>1},[Tt,Jt,nt]);en?qn.visibility="hidden":nt&&(qn.height=et==null?void 0:et(Tt));var Pn=en?function(){return null}:dt,Mn={};return(Tt===0||Jt===0)&&(Mn.rowSpan=1,Mn.colSpan=1),ie.createElement(sn,(0,ae.Z)({className:Xe()(vt,qe),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:"div",prefixCls:Te.prefixCls,key:Yt,record:Re,index:Ce,renderIndex:Me,dataIndex:gt,render:Pn,shouldCellUpdate:Ue.shouldCellUpdate},Qt,{appendNode:_n,additionalProps:(0,je.Z)((0,je.Z)({},an),{},{style:qn},Mn)}))}var Ao=Mo,fo=["data","index","className","rowKey","style","extra","getHeight"],Bo=ie.forwardRef(function(Ae,Te){var Ue=Ae.data,Ye=Ae.index,at=Ae.className,Ce=Ae.rowKey,Me=Ae.style,Re=Ae.extra,Je=Ae.getHeight,qe=(0,Gt.Z)(Ae,fo),nt=Ue.record,et=Ue.indent,dt=Ue.index,gt=me(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),vt=gt.scrollX,Wt=gt.flattenColumns,Nt=gt.prefixCls,Vt=gt.fixColumn,Ot=gt.componentWidth,Yt=yt(nt,Ce,Ye,et),Qt=Yt.rowSupportExpand,_n=Yt.expanded,an=Yt.rowProps,vn=Yt.expandedRowRender,On=Yt.expandedRowClassName,Jt;if(Qt&&_n){var hn=vn(nt,Ye,et+1,_n),Tt=On==null?void 0:On(nt,Ye,et),rn={};Vt&&(rn={style:(0,Le.Z)({},"--virtual-width","".concat(Ot,"px"))});var dn="".concat(Nt,"-expanded-row-cell");Jt=ie.createElement("div",{className:Xe()("".concat(Nt,"-expanded-row"),"".concat(Nt,"-expanded-row-level-").concat(et+1),Tt)},ie.createElement(sn,{component:"div",prefixCls:Nt,className:Xe()(dn,(0,Le.Z)({},"".concat(dn,"-fixed"),Vt)),additionalProps:rn},hn))}var Dn=(0,je.Z)((0,je.Z)({},Me),{},{width:vt});Re&&(Dn.position="absolute",Dn.pointerEvents="none");var qn=ie.createElement("div",(0,ae.Z)({},an,qe,{ref:Qt?null:Te,className:Xe()(at,"".concat(Nt,"-row"),an==null?void 0:an.className,(0,Le.Z)({},"".concat(Nt,"-row-extra"),Re)),style:(0,je.Z)((0,je.Z)({},Dn),an==null?void 0:an.style)}),Wt.map(function(en,Pn){return ie.createElement(Ao,{key:Pn,rowInfo:Yt,column:en,colIndex:Pn,indent:et,index:Ye,renderIndex:dt,record:nt,inverse:Re,getHeight:Je})}));return Qt?ie.createElement("div",{ref:Te},qn,Jt):qn}),_o=z(Bo),Eo=_o,Io=ie.forwardRef(function(Ae,Te){var Ue=Ae.data,Ye=Ae.onScroll,at=me(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ce=at.flattenColumns,Me=at.onColumnResize,Re=at.getRowKey,Je=at.expandedKeys,qe=at.prefixCls,nt=at.childrenColumnName,et=at.emptyNode,dt=at.scrollX,gt=me(Zr),vt=gt.scrollY,Wt=gt.listItemHeight,Nt=ie.useRef(),Vt=jt(Ue,nt,Je,Re),Ot=ie.useMemo(function(){var Jt=0;return Ce.map(function(hn){var Tt=hn.width,rn=hn.key;return Jt+=Tt,[rn,Tt,Jt]})},[Ce]),Yt=ie.useMemo(function(){return Ot.map(function(Jt){return Jt[2]})},[Ot]);ie.useEffect(function(){Ot.forEach(function(Jt){var hn=(0,be.Z)(Jt,2),Tt=hn[0],rn=hn[1];Me(Tt,rn)})},[Ot]),ie.useImperativeHandle(Te,function(){var Jt={};return Object.defineProperty(Jt,"scrollLeft",{get:function(){var Tt;return((Tt=Nt.current)===null||Tt===void 0?void 0:Tt.getScrollInfo().x)||0},set:function(Tt){var rn;(rn=Nt.current)===null||rn===void 0||rn.scrollTo({left:Tt})}}),Jt});var Qt=function(hn,Tt){var rn,dn=(rn=Vt[Tt])===null||rn===void 0?void 0:rn.record,Dn=hn.onCell;if(Dn){var qn,en=Dn(dn,Tt);return(qn=en==null?void 0:en.rowSpan)!==null&&qn!==void 0?qn:1}return 1},_n=function(hn){var Tt=hn.start,rn=hn.end,dn=hn.getSize,Dn=hn.offsetY;if(rn<0)return null;for(var qn=Ce.filter(function(En){return Qt(En,Tt)===0}),en=Tt,Pn=function(Bn){if(qn=qn.filter(function($n){return Qt($n,Bn)===0}),!qn.length)return en=Bn,"break"},Mn=Tt;Mn>=0;Mn-=1){var gn=Pn(Mn);if(gn==="break")break}for(var Tn=Ce.filter(function(En){return Qt(En,rn)!==1}),kn=rn,Qn=function(Bn){if(Tn=Tn.filter(function($n){return Qt($n,Bn)!==1}),!Tn.length)return kn=Math.max(Bn-1,rn),"break"},Ur=rn;Ur<Vt.length;Ur+=1){var tr=Qn(Ur);if(tr==="break")break}for(var Yr=[],_r=function(Bn){var $n=Vt[Bn];if(!$n)return"continue";Ce.some(function(An){return Qt(An,Bn)>1})&&Yr.push(Bn)},Ar=en;Ar<=kn;Ar+=1)var Tr=_r(Ar);var jn=Yr.map(function(En){var Bn=Vt[En],$n=Re(Bn.record,En),An=function(zn){var hr=En+zn-1,Pr=Re(Vt[hr].record,hr),Do=dn($n,Pr);return Do.bottom-Do.top},br=dn($n);return ie.createElement(Eo,{key:En,data:Bn,rowKey:$n,index:En,style:{top:-Dn+br.top},extra:!0,getHeight:An})});return jn},an=ie.useMemo(function(){return{columnsOffset:Yt}},[Yt]),vn="".concat(qe,"-tbody"),On;return Vt.length?On=ie.createElement(Fr.Z,{fullHeight:!1,ref:Nt,className:Xe()(vn,"".concat(vn,"-virtual")),height:vt,itemHeight:Wt||24,data:Vt,itemKey:function(hn){return Re(hn.record)},scrollWidth:dt,onVirtualScroll:function(hn){var Tt=hn.x;Ye({scrollLeft:Tt})},extraRender:_n},function(Jt,hn,Tt){var rn=Re(Jt.record,hn);return ie.createElement(Eo,(0,ae.Z)({data:Jt,rowKey:rn,index:hn},Tt))}):On=ie.createElement("div",{className:Xe()("".concat(qe,"-placeholder"))},ie.createElement(sn,{component:"div",prefixCls:qe},et)),ie.createElement(Co.Provider,{value:an},On)}),jr=z(Io),no=jr,Oo=function(Te,Ue){var Ye=Ue.ref,at=Ue.onScroll;return ie.createElement(no,{ref:Ye,data:Te,onScroll:at})},Wr=100;function co(Ae){var Te=Ae.columns,Ue=Ae.scroll,Ye=Ae.prefixCls,at=Ye===void 0?Sr:Ye,Ce=Ae.className,Me=Ae.listItemHeight,Re=Ue||{},Je=Re.x,qe=Re.y;typeof Je!="number"&&(Je=((Te||[]).length+1)*Wr),typeof qe!="number"&&(qe=500);var nt=ie.useMemo(function(){return{scrollY:qe,listItemHeight:Me}},[qe,Me]);return ie.createElement(Zr.Provider,{value:nt},ie.createElement(Br,(0,ae.Z)({},Ae,{className:Xe()(Ce,"".concat(at,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Ue),{},{x:Je}),components:{body:Oo},columns:Te,internalHooks:ge,tailor:!0})))}function yo(Ae){return x(co,Ae)}var ko=yo(),Kr=null;function ho(Ae){return null}var wo=ho;function mo(Ae){return null}var oi=mo,ti=te(2738),ni=te(68031),Ro=te(36355),xo=te(93891),Lo=te(19716),Xo=te(8628),Zo=te(31724),gi=te(58421),Zn=te(71418),Cn=te(88088);function In(Ae){return function(Ue){let{prefixCls:Ye,onExpand:at,record:Ce,expanded:Me,expandable:Re}=Ue;const Je=`${Ye}-row-expand-icon`;return ie.createElement("button",{type:"button",onClick:qe=>{at(Ce,qe),qe.stopPropagation()},className:Xe()(Je,{[`${Je}-spaced`]:!Re,[`${Je}-expanded`]:Re&&Me,[`${Je}-collapsed`]:Re&&!Me}),"aria-label":Me?Ae.collapse:Ae.expand,"aria-expanded":Me})}}var Gn=In;function yr(Ae,Te){return"key"in Ae&&Ae.key!==void 0&&Ae.key!==null?Ae.key:Ae.dataIndex?Array.isArray(Ae.dataIndex)?Ae.dataIndex.join("."):Ae.dataIndex:Te}function Dr(Ae,Te){return Te?`${Te}-${Ae}`:`${Ae}`}function zr(Ae,Te){return typeof Ae=="function"?Ae(Te):Ae}function eo(Ae,Te){const Ue=zr(Ae,Te);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue}var oo={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"},io=oo,Go=te(7657),Po=function(Te,Ue){return ie.createElement(Go.Z,(0,ae.Z)({},Te,{ref:Ue,icon:io}))},fi=ie.forwardRef(Po),li=fi,ci=te(56762);function Ei(Ae){const Te=ie.useRef(Ae),Ue=(0,ci.Z)();return[()=>Te.current,Ye=>{Te.current=Ye,Ue()}]}var Hr=te(3113),gr=te(24905),Gr=te(38854),lo=te(64165),Fo=te(20834),ri=te(40875),Qo=te(5112),Jo=te(17574),Uo=te(47472),Si=te(92832);function _i(Ae){let{value:Te,onChange:Ue,filterSearch:Ye,tablePrefixCls:at,locale:Ce}=Ae;return Ye?ie.createElement("div",{className:`${at}-filter-dropdown-search`},ie.createElement(Si.default,{prefix:ie.createElement(Uo.Z,null),placeholder:Ce.filterSearchPlaceholder,onChange:Ue,value:Te,htmlSize:1,className:`${at}-filter-dropdown-search-input`})):null}var yi=_i,ta=te(10228);const wa=Ae=>{const{keyCode:Te}=Ae;Te===ta.Z.ENTER&&Ae.stopPropagation()};var La=ie.forwardRef((Ae,Te)=>ie.createElement("div",{className:Ae.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:wa,ref:Te},Ae.children));function wi(Ae){let Te=[];return(Ae||[]).forEach(Ue=>{let{value:Ye,children:at}=Ue;Te.push(Ye),at&&(Te=[].concat((0,tn.Z)(Te),(0,tn.Z)(wi(at))))}),Te}function na(Ae){return Ae.some(Te=>{let{children:Ue}=Te;return Ue})}function ra(Ae,Te){return typeof Te=="string"||typeof Te=="number"?Te==null?void 0:Te.toString().toLowerCase().includes(Ae.trim().toLowerCase()):!1}function Da(Ae){let{filters:Te,prefixCls:Ue,filteredKeys:Ye,filterMultiple:at,searchValue:Ce,filterSearch:Me}=Ae;return Te.map((Re,Je)=>{const qe=String(Re.value);if(Re.children)return{key:qe||Je,label:Re.text,popupClassName:`${Ue}-dropdown-submenu`,children:Da({filters:Re.children,prefixCls:Ue,filteredKeys:Ye,filterMultiple:at,searchValue:Ce,filterSearch:Me})};const nt=at?gr.default:Qo.ZP,et={key:Re.value!==void 0?qe:Je,label:ie.createElement(ie.Fragment,null,ie.createElement(nt,{checked:Ye.includes(qe)}),ie.createElement("span",null,Re.text))};return Ce.trim()?typeof Me=="function"?Me(Ce,Re)?et:null:ra(Ce,Re.text)?et:null:et})}function Ma(Ae){var Te,Ue;const{tablePrefixCls:Ye,prefixCls:at,column:Ce,dropdownPrefixCls:Me,columnKey:Re,filterMultiple:Je,filterMode:qe="menu",filterSearch:nt=!1,filterState:et,triggerFilter:dt,locale:gt,children:vt,getPopupContainer:Wt}=Ae,{filterDropdownOpen:Nt,onFilterDropdownOpenChange:Vt,filterResetToDefaultFilteredValue:Ot,defaultFilteredValue:Yt,filterDropdownVisible:Qt,onFilterDropdownVisibleChange:_n}=Ce,[an,vn]=ie.useState(!1),On=!!(et&&(!((Te=et.filteredKeys)===null||Te===void 0)&&Te.length||et.forceFiltered)),Jt=Rn=>{vn(Rn),Vt==null||Vt(Rn),_n==null||_n(Rn)},hn=(Ue=Nt!=null?Nt:Qt)!==null&&Ue!==void 0?Ue:an,Tt=et==null?void 0:et.filteredKeys,[rn,dn]=Ei(Tt||[]),Dn=Rn=>{let{selectedKeys:zn}=Rn;dn(zn)},qn=(Rn,zn)=>{let{node:hr,checked:Pr}=zn;Dn(Je?{selectedKeys:Rn}:{selectedKeys:Pr&&hr.key?[hr.key]:[]})};ie.useEffect(()=>{an&&Dn({selectedKeys:Tt||[]})},[Tt]);const[en,Pn]=ie.useState([]),Mn=Rn=>{Pn(Rn)},[gn,Tn]=ie.useState(""),kn=Rn=>{const{value:zn}=Rn.target;Tn(zn)};ie.useEffect(()=>{an||Tn("")},[an]);const Qn=Rn=>{const zn=Rn&&Rn.length?Rn:null;if(zn===null&&(!et||!et.filteredKeys)||(0,fe.Z)(zn,et==null?void 0:et.filteredKeys,!0))return null;dt({column:Ce,key:Re,filteredKeys:zn})},Ur=()=>{Jt(!1),Qn(rn())},tr=function(){let{confirm:Rn,closeDropdown:zn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Rn&&Qn([]),zn&&Jt(!1),Tn(""),dn(Ot?(Yt||[]).map(hr=>String(hr)):[])},Yr=function(){let{closeDropdown:Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Rn&&Jt(!1),Qn(rn())},_r=Rn=>{Rn&&Tt!==void 0&&dn(Tt||[]),Jt(Rn),!Rn&&!Ce.filterDropdown&&Ur()},Ar=Xe()({[`${Me}-menu-without-submenu`]:!na(Ce.filters||[])}),Tr=Rn=>{if(Rn.target.checked){const zn=wi(Ce==null?void 0:Ce.filters).map(hr=>String(hr));dn(zn)}else dn([])},jn=Rn=>{let{filters:zn}=Rn;return(zn||[]).map((hr,Pr)=>{const Do=String(hr.value),bo={title:hr.text,key:hr.value!==void 0?Do:Pr};return hr.children&&(bo.children=jn({filters:hr.children})),bo})},En=Rn=>{var zn;return Object.assign(Object.assign({},Rn),{text:Rn.title,value:Rn.key,children:((zn=Rn.children)===null||zn===void 0?void 0:zn.map(hr=>En(hr)))||[]})};let Bn;if(typeof Ce.filterDropdown=="function")Bn=Ce.filterDropdown({prefixCls:`${Me}-custom`,setSelectedKeys:Rn=>Dn({selectedKeys:Rn}),selectedKeys:rn(),confirm:Yr,clearFilters:tr,filters:Ce.filters,visible:hn,close:()=>{Jt(!1)}});else if(Ce.filterDropdown)Bn=Ce.filterDropdown;else{const Rn=rn()||[],zn=()=>(Ce.filters||[]).length===0?ie.createElement(lo.Z,{image:lo.Z.PRESENTED_IMAGE_SIMPLE,description:gt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):qe==="tree"?ie.createElement(ie.Fragment,null,ie.createElement(yi,{filterSearch:nt,value:gn,onChange:kn,tablePrefixCls:Ye,locale:gt}),ie.createElement("div",{className:`${Ye}-filter-dropdown-tree`},Je?ie.createElement(gr.default,{checked:Rn.length===wi(Ce.filters).length,indeterminate:Rn.length>0&&Rn.length<wi(Ce.filters).length,className:`${Ye}-filter-dropdown-checkall`,onChange:Tr},gt.filterCheckall):null,ie.createElement(Jo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Je,checkStrictly:!Je,className:`${Me}-menu`,onCheck:qn,checkedKeys:Rn,selectedKeys:Rn,showIcon:!1,treeData:jn({filters:Ce.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:gn.trim()?Pr=>typeof nt=="function"?nt(gn,En(Pr)):ra(gn,Pr.title):void 0}))):ie.createElement(ie.Fragment,null,ie.createElement(yi,{filterSearch:nt,value:gn,onChange:kn,tablePrefixCls:Ye,locale:gt}),ie.createElement(Fo.default,{selectable:!0,multiple:Je,prefixCls:`${Me}-menu`,className:Ar,onSelect:Dn,onDeselect:Dn,selectedKeys:Rn,getPopupContainer:Wt,openKeys:en,onOpenChange:Mn,items:Da({filters:Ce.filters||[],filterSearch:nt,prefixCls:at,filteredKeys:rn(),filterMultiple:Je,searchValue:gn})})),hr=()=>Ot?(0,fe.Z)((Yt||[]).map(Pr=>String(Pr)),Rn,!0):Rn.length===0;Bn=ie.createElement(ie.Fragment,null,zn(),ie.createElement("div",{className:`${at}-dropdown-btns`},ie.createElement(Hr.ZP,{type:"link",size:"small",disabled:hr(),onClick:()=>tr()},gt.filterReset),ie.createElement(Hr.ZP,{type:"primary",size:"small",onClick:Ur},gt.filterConfirm)))}Ce.filterDropdown&&(Bn=ie.createElement(ri.J,{selectable:void 0},Bn));const $n=()=>ie.createElement(La,{className:`${at}-dropdown`},Bn);let An;typeof Ce.filterIcon=="function"?An=Ce.filterIcon(On):Ce.filterIcon?An=Ce.filterIcon:An=ie.createElement(li,null);const{direction:br}=ie.useContext(Ro.E_);return ie.createElement("div",{className:`${at}-column`},ie.createElement("span",{className:`${Ye}-column-title`},vt),ie.createElement(Gr.Z,{dropdownRender:$n,trigger:["click"],open:hn,onOpenChange:_r,getPopupContainer:Wt,placement:br==="rtl"?"bottomLeft":"bottomRight"},ie.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${at}-trigger`,{active:On}),onClick:Rn=>{Rn.stopPropagation()}},An)))}var Aa=Ma;function Ni(Ae,Te,Ue){let Ye=[];return(Ae||[]).forEach((at,Ce)=>{var Me;const Re=Dr(Ce,Ue);if(at.filters||"filterDropdown"in at||"onFilter"in at)if("filteredValue"in at){let Je=at.filteredValue;"filterDropdown"in at||(Je=(Me=Je==null?void 0:Je.map(String))!==null&&Me!==void 0?Me:Je),Ye.push({column:at,key:yr(at,Re),filteredKeys:Je,forceFiltered:at.filtered})}else Ye.push({column:at,key:yr(at,Re),filteredKeys:Te&&at.defaultFilteredValue?at.defaultFilteredValue:void 0,forceFiltered:at.filtered});"children"in at&&(Ye=[].concat((0,tn.Z)(Ye),(0,tn.Z)(Ni(at.children,Te,Re))))}),Ye}function oa(Ae,Te,Ue,Ye,at,Ce,Me,Re){return Ue.map((Je,qe)=>{const nt=Dr(qe,Re),{filterMultiple:et=!0,filterMode:dt,filterSearch:gt}=Je;let vt=Je;if(vt.filters||vt.filterDropdown){const Wt=yr(vt,nt),Nt=Ye.find(Vt=>{let{key:Ot}=Vt;return Wt===Ot});vt=Object.assign(Object.assign({},vt),{title:Vt=>ie.createElement(Aa,{tablePrefixCls:Ae,prefixCls:`${Ae}-filter`,dropdownPrefixCls:Te,column:vt,columnKey:Wt,filterState:Nt,filterMultiple:et,filterMode:dt,filterSearch:gt,triggerFilter:Ce,locale:at,getPopupContainer:Me},zr(Je.title,Vt))})}return"children"in vt&&(vt=Object.assign(Object.assign({},vt),{children:oa(Ae,Te,vt.children,Ye,at,Ce,Me,nt)})),vt})}function ia(Ae){const Te={};return Ae.forEach(Ue=>{let{key:Ye,filteredKeys:at,column:Ce}=Ue;const{filters:Me,filterDropdown:Re}=Ce;if(Re)Te[Ye]=at||null;else if(Array.isArray(at)){const Je=wi(Me);Te[Ye]=Je.filter(qe=>at.includes(String(qe)))}else Te[Ye]=null}),Te}function Zi(Ae,Te){return Te.reduce((Ue,Ye)=>{const{column:{onFilter:at,filters:Ce},filteredKeys:Me}=Ye;return at&&Me&&Me.length?Ue.filter(Re=>Me.some(Je=>{const qe=wi(Ce),nt=qe.findIndex(dt=>String(dt)===String(Je)),et=nt!==-1?qe[nt]:Je;return at(et,Re)})):Ue},Ae)}const aa=Ae=>Ae.flatMap(Te=>"children"in Te?[Te].concat((0,tn.Z)(aa(Te.children||[]))):[Te]);function ds(Ae){let{prefixCls:Te,dropdownPrefixCls:Ue,mergedColumns:Ye,onFilterChange:at,getPopupContainer:Ce,locale:Me}=Ae;const Re=ie.useMemo(()=>aa(Ye||[]),[Ye]),[Je,qe]=ie.useState(()=>Ni(Re,!0)),nt=ie.useMemo(()=>{const vt=Ni(Re,!1);if(vt.length===0)return vt;let Wt=!0,Nt=!0;if(vt.forEach(Vt=>{let{filteredKeys:Ot}=Vt;Ot!==void 0?Wt=!1:Nt=!1}),Wt){const Vt=(Re||[]).map((Ot,Yt)=>yr(Ot,Dr(Yt)));return Je.filter(Ot=>{let{key:Yt}=Ot;return Vt.includes(Yt)}).map(Ot=>{const Yt=Re[Vt.findIndex(Qt=>Qt===Ot.key)];return Object.assign(Object.assign({},Ot),{column:Object.assign(Object.assign({},Ot.column),Yt),forceFiltered:Yt.filtered})})}return vt},[Re,Je]),et=ie.useMemo(()=>ia(nt),[nt]),dt=vt=>{const Wt=nt.filter(Nt=>{let{key:Vt}=Nt;return Vt!==vt.key});Wt.push(vt),qe(Wt),at(ia(Wt),Wt)};return[vt=>oa(Te,Ue,vt,nt,Me,dt,Ce),nt,et]}var sa=ds;function Wi(Ae,Te,Ue){const Ye=ie.useRef({});function at(Ce){if(!Ye.current||Ye.current.data!==Ae||Ye.current.childrenColumnName!==Te||Ye.current.getRowKey!==Ue){let Re=function(Je){Je.forEach((qe,nt)=>{const et=Ue(qe,nt);Me.set(et,qe),qe&&typeof qe=="object"&&Te in qe&&Re(qe[Te]||[])})};const Me=new Map;Re(Ae),Ye.current={data:Ae,childrenColumnName:Te,kvMap:Me,getRowKey:Ue}}return Ye.current.kvMap.get(Ce)}return[at]}var la=te(50371),Bi=function(Ae,Te){var Ue={};for(var Ye in Ae)Object.prototype.hasOwnProperty.call(Ae,Ye)&&Te.indexOf(Ye)<0&&(Ue[Ye]=Ae[Ye]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ye=Object.getOwnPropertySymbols(Ae);at<Ye.length;at++)Te.indexOf(Ye[at])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Ye[at])&&(Ue[Ye[at]]=Ae[Ye[at]]);return Ue};const ii=10;function Ia(Ae,Te){const Ue={current:Ae.current,pageSize:Ae.pageSize};return Object.keys(Te&&typeof Te=="object"?Te:{}).forEach(at=>{const Ce=Ae[at];typeof Ce!="function"&&(Ue[at]=Ce)}),Ue}function ca(Ae,Te,Ue){const Ye=Ue&&typeof Ue=="object"?Ue:{},{total:at=0}=Ye,Ce=Bi(Ye,["total"]),[Me,Re]=(0,ie.useState)(()=>({current:"defaultCurrent"in Ce?Ce.defaultCurrent:1,pageSize:"defaultPageSize"in Ce?Ce.defaultPageSize:ii})),Je=(0,la.Z)(Me,Ce,{total:at>0?at:Ae}),qe=Math.ceil((at||Ae)/Je.pageSize);Je.current>qe&&(Je.current=qe||1);const nt=(dt,gt)=>{Re({current:dt!=null?dt:1,pageSize:gt||Je.pageSize})},et=(dt,gt)=>{var vt;Ue&&((vt=Ue.onChange)===null||vt===void 0||vt.call(Ue,dt,gt)),nt(dt,gt),Te(dt,gt||(Je==null?void 0:Je.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},Je),{onChange:et}),nt]}var Oa=ca,Ra=te(84105),Ta=te(35654),Ki=te(90782),ki=te(71430),us=te(18929);const hi={},Vi="SELECT_ALL",Yi="SELECT_INVERT",Fi="SELECT_NONE",da=[],ua=(Ae,Te)=>{let Ue=[];return(Te||[]).forEach(Ye=>{Ue.push(Ye),Ye&&typeof Ye=="object"&&Ae in Ye&&(Ue=[].concat((0,tn.Z)(Ue),(0,tn.Z)(ua(Ae,Ye[Ae]))))}),Ue};var Ba=(Ae,Te)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:Ye,defaultSelectedRowKeys:at,getCheckboxProps:Ce,onChange:Me,onSelect:Re,onSelectAll:Je,onSelectInvert:qe,onSelectNone:nt,onSelectMultiple:et,columnWidth:dt,type:gt,selections:vt,fixed:Wt,renderCell:Nt,hideSelectAll:Vt,checkStrictly:Ot=!0}=Te||{},{prefixCls:Yt,data:Qt,pageData:_n,getRecordByKey:an,getRowKey:vn,expandType:On,childrenColumnName:Jt,locale:hn,getPopupContainer:Tt}=Ae,[rn,dn]=(0,us.Z)(Ye||at||da,{value:Ye}),Dn=ie.useRef(new Map),qn=(0,ie.useCallback)(En=>{if(Ue){const Bn=new Map;En.forEach($n=>{let An=an($n);!An&&Dn.current.has($n)&&(An=Dn.current.get($n)),Bn.set($n,An)}),Dn.current=Bn}},[an,Ue]);ie.useEffect(()=>{qn(rn)},[rn]);const{keyEntities:en}=(0,ie.useMemo)(()=>{if(Ot)return{keyEntities:null};let En=Qt;if(Ue){const Bn=new Set(Qt.map((An,br)=>vn(An,br))),$n=Array.from(Dn.current).reduce((An,br)=>{let[Rn,zn]=br;return Bn.has(Rn)?An:An.concat(zn)},[]);En=[].concat((0,tn.Z)(En),(0,tn.Z)($n))}return(0,ki.I8)(En,{externalGetKey:vn,childrenPropName:Jt})},[Qt,vn,Ot,Jt,Ue]),Pn=(0,ie.useMemo)(()=>ua(Jt,_n),[Jt,_n]),Mn=(0,ie.useMemo)(()=>{const En=new Map;return Pn.forEach((Bn,$n)=>{const An=vn(Bn,$n),br=(Ce?Ce(Bn):null)||{};En.set(An,br)}),En},[Pn,vn,Ce]),gn=(0,ie.useCallback)(En=>{var Bn;return!!(!((Bn=Mn.get(vn(En)))===null||Bn===void 0)&&Bn.disabled)},[Mn,vn]),[Tn,kn]=(0,ie.useMemo)(()=>{if(Ot)return[rn||[],[]];const{checkedKeys:En,halfCheckedKeys:Bn}=(0,Ki.S)(rn,!0,en,gn);return[En||[],Bn]},[rn,Ot,en,gn]),Qn=(0,ie.useMemo)(()=>{const En=gt==="radio"?Tn.slice(0,1):Tn;return new Set(En)},[Tn,gt]),Ur=(0,ie.useMemo)(()=>gt==="radio"?new Set:new Set(kn),[kn,gt]),[tr,Yr]=(0,ie.useState)(null);ie.useEffect(()=>{Te||dn(da)},[!!Te]);const _r=(0,ie.useCallback)((En,Bn)=>{let $n,An;qn(En),Ue?($n=En,An=En.map(br=>Dn.current.get(br))):($n=[],An=[],En.forEach(br=>{const Rn=an(br);Rn!==void 0&&($n.push(br),An.push(Rn))})),dn($n),Me==null||Me($n,An,{type:Bn})},[dn,an,Me,Ue]),Ar=(0,ie.useCallback)((En,Bn,$n,An)=>{if(Re){const br=$n.map(Rn=>an(Rn));Re(an(En),Bn,br,An)}_r($n,"single")},[Re,an,_r]),Tr=(0,ie.useMemo)(()=>!vt||Vt?null:(vt===!0?[Vi,Yi,Fi]:vt).map(Bn=>Bn===Vi?{key:"all",text:hn.selectionAll,onSelect(){_r(Qt.map(($n,An)=>vn($n,An)).filter($n=>{const An=Mn.get($n);return!(An!=null&&An.disabled)||Qn.has($n)}),"all")}}:Bn===Yi?{key:"invert",text:hn.selectInvert,onSelect(){const $n=new Set(Qn);_n.forEach((br,Rn)=>{const zn=vn(br,Rn),hr=Mn.get(zn);hr!=null&&hr.disabled||($n.has(zn)?$n.delete(zn):$n.add(zn))});const An=Array.from($n);qe&&qe(An),_r(An,"invert")}}:Bn===Fi?{key:"none",text:hn.selectNone,onSelect(){nt==null||nt(),_r(Array.from(Qn).filter($n=>{const An=Mn.get($n);return An==null?void 0:An.disabled}),"none")}}:Bn).map(Bn=>Object.assign(Object.assign({},Bn),{onSelect:function(){for(var $n,An,br=arguments.length,Rn=new Array(br),zn=0;zn<br;zn++)Rn[zn]=arguments[zn];(An=Bn.onSelect)===null||An===void 0||($n=An).call.apply($n,[Bn].concat(Rn)),Yr(null)}})),[vt,Qn,_n,vn,qe,_r]);return[(0,ie.useCallback)(En=>{var Bn;if(!Te)return En.filter(Cr=>Cr!==hi);let $n=(0,tn.Z)(En);const An=new Set(Qn),br=Pn.map(vn).filter(Cr=>!Mn.get(Cr).disabled),Rn=br.every(Cr=>An.has(Cr)),zn=br.some(Cr=>An.has(Cr)),hr=()=>{const Cr=[];Rn?br.forEach($r=>{An.delete($r),Cr.push($r)}):br.forEach($r=>{An.has($r)||(An.add($r),Cr.push($r))});const xr=Array.from(An);Je==null||Je(!Rn,xr.map($r=>an($r)),Cr.map($r=>an($r))),_r(xr,"all"),Yr(null)};let Pr;if(gt!=="radio"){let Cr;if(Tr){const ur={getPopupContainer:Tt,items:Tr.map((To,zo)=>{const{key:ei,text:mi,onSelect:ui}=To;return{key:ei!=null?ei:zo,onClick:()=>{ui==null||ui(br)},label:mi}})};Cr=ie.createElement("div",{className:`${Yt}-selection-extra`},ie.createElement(Gr.Z,{menu:ur,getPopupContainer:Tt},ie.createElement("span",null,ie.createElement(Ra.Z,null))))}const xr=Pn.map((ur,To)=>{const zo=vn(ur,To),ei=Mn.get(zo)||{};return Object.assign({checked:An.has(zo)},ei)}).filter(ur=>{let{disabled:To}=ur;return To}),$r=!!xr.length&&xr.length===Pn.length,Jr=$r&&xr.every(ur=>{let{checked:To}=ur;return To}),uo=$r&&xr.some(ur=>{let{checked:To}=ur;return To});Pr=!Vt&&ie.createElement("div",{className:`${Yt}-selection`},ie.createElement(gr.default,{checked:$r?Jr:!!Pn.length&&Rn,indeterminate:$r?!Jr&&uo:!Rn&&zn,onChange:hr,disabled:Pn.length===0||$r,"aria-label":Cr?"Custom selection":"Select all",skipGroup:!0}),Cr)}let Do;gt==="radio"?Do=(Cr,xr,$r)=>{const Jr=vn(xr,$r),uo=An.has(Jr);return{node:ie.createElement(Qo.ZP,Object.assign({},Mn.get(Jr),{checked:uo,onClick:ur=>ur.stopPropagation(),onChange:ur=>{An.has(Jr)||Ar(Jr,!0,[Jr],ur.nativeEvent)}})),checked:uo}}:Do=(Cr,xr,$r)=>{var Jr;const uo=vn(xr,$r),ur=An.has(uo),To=Ur.has(uo),zo=Mn.get(uo);let ei;return On==="nest"?ei=To:ei=(Jr=zo==null?void 0:zo.indeterminate)!==null&&Jr!==void 0?Jr:To,{node:ie.createElement(gr.default,Object.assign({},zo,{indeterminate:ei,checked:ur,skipGroup:!0,onClick:mi=>mi.stopPropagation(),onChange:mi=>{let{nativeEvent:ui}=mi;const{shiftKey:ea}=ui;let bi=-1,ai=-1;if(ea&&Ot){const Ko=new Set([tr,uo]);br.some(($o,vo)=>{if(Ko.has($o))if(bi===-1)bi=vo;else return ai=vo,!0;return!1})}if(ai!==-1&&bi!==ai&&Ot){const Ko=br.slice(bi,ai+1),$o=[];ur?Ko.forEach(ao=>{An.has(ao)&&($o.push(ao),An.delete(ao))}):Ko.forEach(ao=>{An.has(ao)||($o.push(ao),An.add(ao))});const vo=Array.from(An);et==null||et(!ur,vo.map(ao=>an(ao)),$o.map(ao=>an(ao))),_r(vo,"multiple")}else{const Ko=Tn;if(Ot){const $o=ur?(0,Ta._5)(Ko,uo):(0,Ta.L0)(Ko,uo);Ar(uo,!ur,$o,ui)}else{const $o=(0,Ki.S)([].concat((0,tn.Z)(Ko),[uo]),!0,en,gn),{checkedKeys:vo,halfCheckedKeys:ao}=$o;let pi=vo;if(ur){const Ti=new Set(vo);Ti.delete(uo),pi=(0,Ki.S)(Array.from(Ti),{checked:!1,halfCheckedKeys:ao},en,gn).checkedKeys}Ar(uo,!ur,pi,ui)}}Yr(ur?null:uo)}})),checked:ur}};const bo=(Cr,xr,$r)=>{const{node:Jr,checked:uo}=Do(Cr,xr,$r);return Nt?Nt(uo,xr,$r,Jr):Jr};if(!$n.includes(hi))if($n.findIndex(Cr=>{var xr;return((xr=Cr[er])===null||xr===void 0?void 0:xr.columnType)==="EXPAND_COLUMN"})===0){const[Cr,...xr]=$n;$n=[Cr,hi].concat((0,tn.Z)(xr))}else $n=[hi].concat((0,tn.Z)($n));const nr=$n.indexOf(hi);$n=$n.filter((Cr,xr)=>Cr!==hi||xr===nr);const mr=$n[nr-1],to=$n[nr+1];let Ir=Wt;Ir===void 0&&((to==null?void 0:to.fixed)!==void 0?Ir=to.fixed:(mr==null?void 0:mr.fixed)!==void 0&&(Ir=mr.fixed)),Ir&&mr&&((Bn=mr[er])===null||Bn===void 0?void 0:Bn.columnType)==="EXPAND_COLUMN"&&mr.fixed===void 0&&(mr.fixed=Ir);const wr=Xe()(`${Yt}-selection-col`,{[`${Yt}-selection-col-with-dropdown`]:vt&&gt==="checkbox"}),jo={fixed:Ir,width:dt,className:`${Yt}-selection-column`,title:Te.columnTitle||Pr,render:bo,onCell:Te.onCell,[er]:{className:wr}};return $n.map(Cr=>Cr===hi?jo:Cr)},[vn,Pn,Te,Tn,Qn,Ur,dt,Tr,On,tr,Mn,et,Ar,gn]),Qn]},Xi=te(89489),gs=te(59477),ka=te(6848);const ji="ascend",zi="descend";function Hi(Ae){return typeof Ae.sorter=="object"&&typeof Ae.sorter.multiple=="number"?Ae.sorter.multiple:!1}function ga(Ae){return typeof Ae=="function"?Ae:Ae&&typeof Ae=="object"&&Ae.compare?Ae.compare:!1}function fa(Ae,Te){return Te?Ae[Ae.indexOf(Te)+1]:Ae[0]}function Qi(Ae,Te,Ue){let Ye=[];function at(Ce,Me){Ye.push({column:Ce,key:yr(Ce,Me),multiplePriority:Hi(Ce),sortOrder:Ce.sortOrder})}return(Ae||[]).forEach((Ce,Me)=>{const Re=Dr(Me,Ue);Ce.children?("sortOrder"in Ce&&at(Ce,Re),Ye=[].concat((0,tn.Z)(Ye),(0,tn.Z)(Qi(Ce.children,Te,Re)))):Ce.sorter&&("sortOrder"in Ce?at(Ce,Re):Te&&Ce.defaultSortOrder&&Ye.push({column:Ce,key:yr(Ce,Re),multiplePriority:Hi(Ce),sortOrder:Ce.defaultSortOrder}))}),Ye}function Fa(Ae,Te,Ue,Ye,at,Ce,Me,Re){return(Te||[]).map((Je,qe)=>{const nt=Dr(qe,Re);let et=Je;if(et.sorter){const dt=et.sortDirections||at,gt=et.showSorterTooltip===void 0?Me:et.showSorterTooltip,vt=yr(et,nt),Wt=Ue.find(On=>{let{key:Jt}=On;return Jt===vt}),Nt=Wt?Wt.sortOrder:null,Vt=fa(dt,Nt);let Ot;if(Je.sortIcon)Ot=Je.sortIcon({sortOrder:Nt});else{const On=dt.includes(ji)&&ie.createElement(gs.Z,{className:Xe()(`${Ae}-column-sorter-up`,{active:Nt===ji})}),Jt=dt.includes(zi)&&ie.createElement(Xi.Z,{className:Xe()(`${Ae}-column-sorter-down`,{active:Nt===zi})});Ot=ie.createElement("span",{className:Xe()(`${Ae}-column-sorter`,{[`${Ae}-column-sorter-full`]:!!(On&&Jt)})},ie.createElement("span",{className:`${Ae}-column-sorter-inner`,"aria-hidden":"true"},On,Jt))}const{cancelSort:Yt,triggerAsc:Qt,triggerDesc:_n}=Ce||{};let an=Yt;Vt===zi?an=_n:Vt===ji&&(an=Qt);const vn=typeof gt=="object"?gt:{title:an};et=Object.assign(Object.assign({},et),{className:Xe()(et.className,{[`${Ae}-column-sort`]:Nt}),title:On=>{const Jt=ie.createElement("div",{className:`${Ae}-column-sorters`},ie.createElement("span",{className:`${Ae}-column-title`},zr(Je.title,On)),Ot);return gt?ie.createElement(ka.Z,Object.assign({},vn),Jt):Jt},onHeaderCell:On=>{const Jt=Je.onHeaderCell&&Je.onHeaderCell(On)||{},hn=Jt.onClick,Tt=Jt.onKeyDown;Jt.onClick=Dn=>{Ye({column:Je,key:vt,sortOrder:Vt,multiplePriority:Hi(Je)}),hn==null||hn(Dn)},Jt.onKeyDown=Dn=>{Dn.keyCode===ta.Z.ENTER&&(Ye({column:Je,key:vt,sortOrder:Vt,multiplePriority:Hi(Je)}),Tt==null||Tt(Dn))};const rn=eo(Je.title,{}),dn=rn==null?void 0:rn.toString();return Nt?Jt["aria-sort"]=Nt==="ascend"?"ascending":"descending":Jt["aria-label"]=dn||"",Jt.className=Xe()(Jt.className,`${Ae}-column-has-sorters`),Jt.tabIndex=0,Je.ellipsis&&(Jt.title=(rn!=null?rn:"").toString()),Jt}})}return"children"in et&&(et=Object.assign(Object.assign({},et),{children:Fa(Ae,et.children,Ue,Ye,at,Ce,Me,nt)})),et})}function ha(Ae){const{column:Te,sortOrder:Ue}=Ae;return{column:Te,order:Ue,field:Te.dataIndex,columnKey:Te.key}}function ma(Ae){const Te=Ae.filter(Ue=>{let{sortOrder:Ye}=Ue;return Ye}).map(ha);return Te.length===0&&Ae.length?Object.assign(Object.assign({},ha(Ae[Ae.length-1])),{column:void 0}):Te.length<=1?Te[0]||{}:Te}function Ji(Ae,Te,Ue){const Ye=Te.slice().sort((Me,Re)=>Re.multiplePriority-Me.multiplePriority),at=Ae.slice(),Ce=Ye.filter(Me=>{let{column:{sorter:Re},sortOrder:Je}=Me;return ga(Re)&&Je});return Ce.length?at.sort((Me,Re)=>{for(let Je=0;Je<Ce.length;Je+=1){const qe=Ce[Je],{column:{sorter:nt},sortOrder:et}=qe,dt=ga(nt);if(dt&&et){const gt=dt(Me,Re,et);if(gt!==0)return et===ji?gt:-gt}}return 0}).map(Me=>{const Re=Me[Ue];return Re?Object.assign(Object.assign({},Me),{[Ue]:Ji(Re,Te,Ue)}):Me}):at}function ja(Ae){let{prefixCls:Te,mergedColumns:Ue,onSorterChange:Ye,sortDirections:at,tableLocale:Ce,showSorterTooltip:Me}=Ae;const[Re,Je]=ie.useState(Qi(Ue,!0)),qe=ie.useMemo(()=>{let vt=!0;const Wt=Qi(Ue,!1);if(!Wt.length)return Re;const Nt=[];function Vt(Yt){vt?Nt.push(Yt):Nt.push(Object.assign(Object.assign({},Yt),{sortOrder:null}))}let Ot=null;return Wt.forEach(Yt=>{Ot===null?(Vt(Yt),Yt.sortOrder&&(Yt.multiplePriority===!1?vt=!1:Ot=!0)):(Ot&&Yt.multiplePriority!==!1||(vt=!1),Vt(Yt))}),Nt},[Ue,Re]),nt=ie.useMemo(()=>{const vt=qe.map(Wt=>{let{column:Nt,sortOrder:Vt}=Wt;return{column:Nt,order:Vt}});return{sortColumns:vt,sortColumn:vt[0]&&vt[0].column,sortOrder:vt[0]&&vt[0].order}},[qe]);function et(vt){let Wt;vt.multiplePriority===!1||!qe.length||qe[0].multiplePriority===!1?Wt=[vt]:Wt=[].concat((0,tn.Z)(qe.filter(Nt=>{let{key:Vt}=Nt;return Vt!==vt.key})),[vt]),Je(Wt),Ye(ma(Wt),Wt)}return[vt=>Fa(Te,vt,qe,et,at,Ce,Me),qe,nt,()=>ma(qe)]}function pa(Ae,Te){return Ae.map(Ue=>{const Ye=Object.assign({},Ue);return Ye.title=zr(Ue.title,Te),"children"in Ye&&(Ye.children=pa(Ye.children,Te)),Ye})}function za(Ae){return[ie.useCallback(Ue=>pa(Ue,Ae),[Ae])]}var va=ir((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ye}=Te;return Ue!==Ye}),Ha=yo((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ye}=Te;return Ue!==Ye}),Ai=te(64993),Ii=te(17313),qo=te(83116),Ga=te(37613),fs=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`,Ye=(at,Ce,Me)=>({[`&${Te}-${at}`]:{[`> ${Te}-container`]:{[`> ${Te}-content, > ${Te}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Te}-expanded-row-fixed`]:{margin:`-${Ce}px -${Me+Ae.lineWidth}px`}}}}}});return{[`${Te}-wrapper`]:{[`${Te}${Te}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Te}-title`]:{border:Ue,borderBottom:0},[`> ${Te}-container`]:{borderInlineStart:Ue,borderTop:Ue,[`
> ${Te}-content,
> ${Te}-header,
> ${Te}-body,
> ${Te}-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:Ue},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ue},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Te}-cell-fix-right-first::after`]:{borderInlineEnd:Ue}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Te}-expanded-row-fixed`]:{margin:`-${Ae.tablePaddingVertical}px -${Ae.tablePaddingHorizontal+Ae.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ae.lineWidth,bottom:0,borderInlineEnd:Ue,content:'""'}}}}}},[`&${Te}-scroll-horizontal`]:{[`> ${Te}-container > ${Te}-body`]:{"> table > tbody":{[`
> tr${Te}-expanded-row,
> tr${Te}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ye("middle",Ae.tablePaddingVerticalMiddle,Ae.tablePaddingHorizontalMiddle)),Ye("small",Ae.tablePaddingVerticalSmall,Ae.tablePaddingHorizontalSmall)),{[`> ${Te}-footer`]:{border:Ue,borderTop:0}}),[`${Te}-cell`]:{[`${Te}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ae.lineWidth}px 0 ${Ae.lineWidth}px ${Ae.tableHeaderBg}`}},[`${Te}-bordered ${Te}-cell-scrollbar`]:{borderInlineEnd:Ue}}}},xi=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-cell-ellipsis`]:Object.assign(Object.assign({},Ii.vS),{wordBreak:"keep-all",[`
&${Te}-cell-fix-left-last,
&${Te}-cell-fix-right-first
`]:{overflow:"visible",[`${Te}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Te}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ua=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-tbody > tr${Te}-placeholder`]:{textAlign:"center",color:Ae.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ae.colorBgContainer}}}}},$a=te(15969),Wa=Ae=>{const{componentCls:Te,antCls:Ue,controlInteractiveSize:Ye,motionDurationSlow:at,lineWidth:Ce,paddingXS:Me,lineType:Re,tableBorderColor:Je,tableExpandIconBg:qe,tableExpandColumnWidth:nt,borderRadius:et,fontSize:dt,fontSizeSM:gt,lineHeight:vt,tablePaddingVertical:Wt,tablePaddingHorizontal:Nt,tableExpandedRowBg:Vt,paddingXXS:Ot}=Ae,Yt=Ye/2-Ce,Qt=Yt*2+Ce*3,_n=`${Ce}px ${Re} ${Je}`,an=Ot-Ce;return{[`${Te}-wrapper`]:{[`${Te}-expand-icon-col`]:{width:nt},[`${Te}-row-expand-icon-cell`]:{textAlign:"center",[`${Te}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Te}-row-indent`]:{height:1,float:"left"},[`${Te}-row-expand-icon`]:Object.assign(Object.assign({},(0,$a.N)(Ae)),{position:"relative",float:"left",boxSizing:"border-box",width:Qt,height:Qt,padding:0,color:"inherit",lineHeight:`${Qt}px`,background:qe,border:_n,borderRadius:et,transform:`scale(${Ye/Qt})`,transition:`all ${at}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${at} ease-out`,content:'""'},"&::before":{top:Yt,insetInlineEnd:an,insetInlineStart:an,height:Ce},"&::after":{top:an,bottom:an,insetInlineStart:Yt,width:Ce,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"}}),[`${Te}-row-indent + ${Te}-row-expand-icon`]:{marginTop:(dt*vt-Ce*3)/2-Math.ceil((gt*1.4-Ce*3)/2),marginInlineEnd:Me},[`tr${Te}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Vt}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Te}-expanded-row-fixed`]:{position:"relative",margin:`-${Wt}px -${Nt}px`,padding:`${Wt}px ${Nt}px`}}}},Sa=Ae=>{const{componentCls:Te,antCls:Ue,iconCls:Ye,tableFilterDropdownWidth:at,tableFilterDropdownSearchWidth:Ce,paddingXXS:Me,paddingXS:Re,colorText:Je,lineWidth:qe,lineType:nt,tableBorderColor:et,tableHeaderIconColor:dt,fontSizeSM:gt,tablePaddingHorizontal:vt,borderRadius:Wt,motionDurationSlow:Nt,colorTextDescription:Vt,colorPrimary:Ot,tableHeaderFilterActiveBg:Yt,colorTextDisabled:Qt,tableFilterDropdownBg:_n,tableFilterDropdownHeight:an,controlItemBgHover:vn,controlItemBgActive:On,boxShadowSecondary:Jt,filterDropdownMenuBg:hn}=Ae,Tt=`${Ue}-dropdown`,rn=`${Te}-filter-dropdown`,dn=`${Ue}-tree`,Dn=`${qe}px ${nt} ${et}`;return[{[`${Te}-wrapper`]:{[`${Te}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Te}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Me,marginInline:`${Me}px ${-vt/2}px`,padding:`0 ${Me}px`,color:dt,fontSize:gt,borderRadius:Wt,cursor:"pointer",transition:`all ${Nt}`,"&:hover":{color:Vt,background:Yt},"&.active":{color:Ot}}}},{[`${Ue}-dropdown`]:{[rn]:Object.assign(Object.assign({},(0,Ii.Wf)(Ae)),{minWidth:at,backgroundColor:_n,borderRadius:Wt,boxShadow:Jt,overflow:"hidden",[`${Tt}-menu`]:{maxHeight:an,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:hn,"&:empty::after":{display:"block",padding:`${Re}px 0`,color:Qt,fontSize:gt,textAlign:"center",content:'"Not Found"'}},[`${rn}-tree`]:{paddingBlock:`${Re}px 0`,paddingInline:Re,[dn]:{padding:0},[`${dn}-treenode ${dn}-node-content-wrapper:hover`]:{backgroundColor:vn},[`${dn}-treenode-checkbox-checked ${dn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:On}}},[`${rn}-search`]:{padding:Re,borderBottom:Dn,"&-input":{input:{minWidth:Ce},[Ye]:{color:Qt}}},[`${rn}-checkall`]:{width:"100%",marginBottom:Me,marginInlineStart:Me},[`${rn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Re-qe}px ${Re}px`,overflow:"hidden",borderTop:Dn}})}},{[`${Ue}-dropdown ${rn}, ${rn}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:Re,color:Je},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qi=Ae=>{const{componentCls:Te,lineWidth:Ue,colorSplit:Ye,motionDurationSlow:at,zIndexTableFixed:Ce,tableBg:Me,zIndexTableSticky:Re}=Ae,Je=Ye;return{[`${Te}-wrapper`]:{[`
${Te}-cell-fix-left,
${Te}-cell-fix-right
`]:{position:"sticky !important",zIndex:Ce,background:Me},[`
${Te}-cell-fix-left-first::after,
${Te}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ue,width:30,transform:"translateX(100%)",transition:`box-shadow ${at}`,content:'""',pointerEvents:"none"},[`${Te}-cell-fix-left-all::after`]:{display:"none"},[`
${Te}-cell-fix-right-first::after,
${Te}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ue,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${at}`,content:'""',pointerEvents:"none"},[`${Te}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Re+1,width:30,transition:`box-shadow ${at}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Te}-ping-left`]:{[`&:not(${Te}-has-fix-left) ${Te}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Je}`}},[`
${Te}-cell-fix-left-first::after,
${Te}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Je}`},[`${Te}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Te}-ping-right`]:{[`&:not(${Te}-has-fix-right) ${Te}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Je}`}},[`
${Te}-cell-fix-right-first::after,
${Te}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Je}`}}}}},vs=Ae=>{const{componentCls:Te,antCls:Ue}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-pagination${Ue}-pagination`]:{margin:`${Ae.margin}px 0`},[`${Te}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ae.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ka=Ae=>{const{componentCls:Te,tableRadius:Ue}=Ae;return{[`${Te}-wrapper`]:{[Te]:{[`${Te}-title, ${Te}-header`]:{borderRadius:`${Ue}px ${Ue}px 0 0`},[`${Te}-title + ${Te}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Te}-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:Ue,borderStartEndRadius:Ue,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ue},"> *:last-child":{borderStartEndRadius:Ue}}},"&-footer":{borderRadius:`0 0 ${Ue}px ${Ue}px`}}}}},Va=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Te}-pagination-left`]:{justifyContent:"flex-end"},[`${Te}-pagination-right`]:{justifyContent:"flex-start"},[`${Te}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Te}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Te}-row-indent`]:{float:"right"}}}}},Ya=Ae=>{const{componentCls:Te,antCls:Ue,iconCls:Ye,fontSizeIcon:at,padding:Ce,paddingXS:Me,tableHeaderIconColor:Re,tableHeaderIconColorHover:Je,tableSelectionColumnWidth:qe}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-selection-col`]:{width:qe,[`&${Te}-selection-col-with-dropdown`]:{width:qe+at+Ce/4}},[`${Te}-bordered ${Te}-selection-col`]:{width:qe+Me*2,[`&${Te}-selection-col-with-dropdown`]:{width:qe+at+Ce/4+Me*2}},[`
table tr th${Te}-selection-column,
table tr td${Te}-selection-column
`]:{paddingInlineEnd:Ae.paddingXS,paddingInlineStart:Ae.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Te}-selection-column${Te}-cell-fix-left`]:{zIndex:Ae.zIndexTableFixed+1},[`table tr th${Te}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Te}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Te}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ae.tablePaddingHorizontal/4}px`,[Ye]:{color:Re,fontSize:at,verticalAlign:"baseline","&:hover":{color:Je}}}}}},Xa=Ae=>{const{componentCls:Te}=Ae,Ue=(Ye,at,Ce,Me)=>({[`${Te}${Te}-${Ye}`]:{fontSize:Me,[`
${Te}-title,
${Te}-footer,
${Te}-cell,
${Te}-thead > tr > th,
${Te}-tbody > tr > th,
${Te}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${at}px ${Ce}px`},[`${Te}-filter-trigger`]:{marginInlineEnd:`-${Ce/2}px`},[`${Te}-expanded-row-fixed`]:{margin:`-${at}px -${Ce}px`},[`${Te}-tbody`]:{[`${Te}-wrapper:only-child ${Te}`]:{marginBlock:`-${at}px`,marginInline:`${Ae.tableExpandColumnWidth-Ce}px -${Ce}px`}},[`${Te}-selection-column`]:{paddingInlineStart:`${Ce/4}px`}}});return{[`${Te}-wrapper`]:Object.assign(Object.assign({},Ue("middle",Ae.tablePaddingVerticalMiddle,Ae.tablePaddingHorizontalMiddle,Ae.tableFontSizeMiddle)),Ue("small",Ae.tablePaddingVerticalSmall,Ae.tablePaddingHorizontalSmall,Ae.tableFontSizeSmall))}},or=Ae=>{const{componentCls:Te,marginXXS:Ue,fontSizeIcon:Ye,tableHeaderIconColor:at,tableHeaderIconColorHover:Ce}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-thead th${Te}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"&:hover":{background:Ae.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ae.colorPrimary},[`
&${Te}-cell-fix-left:hover,
&${Te}-cell-fix-right:hover
`]:{background:Ae.tableFixedHeaderSortActiveBg}},[`${Te}-thead th${Te}-column-sort`]:{background:Ae.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Te}-column-sort`]:{background:Ae.tableBodySortBg},[`${Te}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Te}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Te}-column-sorter`]:{marginInlineStart:Ue,color:at,fontSize:0,transition:`color ${Ae.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ye,"&.active":{color:Ae.colorPrimary}},[`${Te}-column-sorter-up + ${Te}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Te}-column-sorters:hover ${Te}-column-sorter`]:{color:Ce}}}},Qa=Ae=>{const{componentCls:Te,opacityLoading:Ue,tableScrollThumbBg:Ye,tableScrollThumbBgHover:at,tableScrollThumbSize:Ce,tableScrollBg:Me,zIndexTableSticky:Re,stickyScrollBarBorderRadius:Je}=Ae,qe=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`;return{[`${Te}-wrapper`]:{[`${Te}-sticky`]:{"&-holder":{position:"sticky",zIndex:Re,background:Ae.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ce}px !important`,zIndex:Re,display:"flex",alignItems:"center",background:Me,borderTop:qe,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ce,backgroundColor:Ye,borderRadius:Je,transition:`all ${Ae.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:at}}}}}}},Ri=Ae=>{const{componentCls:Te,lineWidth:Ue,tableBorderColor:Ye}=Ae,at=`${Ue}px ${Ae.lineType} ${Ye}`;return{[`${Te}-wrapper`]:{[`${Te}-summary`]:{position:"relative",zIndex:Ae.zIndexTableFixed,background:Ae.tableBg,"> tr":{"> th, > td":{borderBottom:at}}},[`div${Te}-summary`]:{boxShadow:`0 -${Ue}px 0 ${Ye}`}}}},_a=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`,Ye=`${Te}-expanded-row-cell`;return{[`${Te}-wrapper`]:{[`${Te}-tbody-virtual`]:{[`${Te}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Te}-cell`]:{borderBottom:Ue},[`${Te}-expanded-row`]:{[`${Ye}${Ye}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ae.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Te}-bordered`]:{[`${Te}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ue,position:"absolute"},[`${Te}-cell`]:{borderInlineEnd:Ue,[`&${Te}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ae.lineWidth,borderInlineStart:Ue}}}}}}};const ya=Ae=>{const{componentCls:Te,fontWeightStrong:Ue,tablePaddingVertical:Ye,tablePaddingHorizontal:at,lineWidth:Ce,lineType:Me,tableBorderColor:Re,tableFontSize:Je,tableBg:qe,tableRadius:nt,tableHeaderTextColor:et,motionDurationMid:dt,tableHeaderBg:gt,tableHeaderCellSplitColor:vt,tableRowHoverBg:Wt,tableSelectedRowBg:Nt,tableSelectedRowHoverBg:Vt,tableFooterTextColor:Ot,tableFooterBg:Yt,paddingContentVerticalLG:Qt}=Ae,_n=`${Ce}px ${Me} ${Re}`;return{[`${Te}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ii.dF)()),{[Te]:Object.assign(Object.assign({},(0,Ii.Wf)(Ae)),{fontSize:Je,background:qe,borderRadius:`${nt}px ${nt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${nt}px ${nt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Te}-cell,
${Te}-thead > tr > th,
${Te}-tbody > tr > th,
${Te}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Qt}px ${at}px`,overflowWrap:"break-word"},[`${Te}-title`]:{padding:`${Ye}px ${at}px`},[`${Te}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:et,fontWeight:Ue,textAlign:"start",background:gt,borderBottom:_n,transition:`background ${dt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Te}-selection-column):not(${Te}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:vt,transform:"translateY(-50%)",transition:`background-color ${dt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Te}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${dt}, border-color ${dt}`,borderBottom:_n,[`
> ${Te}-wrapper:only-child,
> ${Te}-expanded-row-fixed > ${Te}-wrapper:only-child
`]:{[Te]:{marginBlock:`-${Ye}px`,marginInline:`${Ae.tableExpandColumnWidth-at}px -${at}px`,[`${Te}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:et,fontWeight:Ue,textAlign:"start",background:gt,borderBottom:_n,transition:`background ${dt} ease`},[`
&${Te}-row:hover > th,
&${Te}-row:hover > td,
> th${Te}-cell-row-hover,
> td${Te}-cell-row-hover
`]:{background:Wt},[`&${Te}-row-selected`]:{"> th, > td":{background:Nt},"&:hover > th, &:hover > td":{background:Vt}}}},[`${Te}-footer`]:{padding:`${Ye}px ${at}px`,color:Ot,background:Yt}})}};var Vr=(0,qo.Z)("Table",Ae=>{const{colorTextHeading:Te,colorSplit:Ue,colorIcon:Ye,colorIconHover:at,opacityLoading:Ce,colorBgContainer:Me,controlInteractiveSize:Re,headerBg:Je,headerColor:qe,headerSortActiveBg:nt,headerSortHoverBg:et,bodySortBg:dt,rowHoverBg:gt,rowSelectedBg:vt,rowSelectedHoverBg:Wt,rowExpandedBg:Nt,cellPaddingBlock:Vt,cellPaddingInline:Ot,cellPaddingBlockMD:Yt,cellPaddingInlineMD:Qt,cellPaddingBlockSM:_n,cellPaddingInlineSM:an,borderColor:vn,footerBg:On,footerColor:Jt,headerBorderRadius:hn,cellFontSize:Tt,cellFontSizeMD:rn,cellFontSizeSM:dn,headerSplitColor:Dn,fixedHeaderSortActiveBg:qn,headerFilterHoverBg:en,filterDropdownBg:Pn,expandIconBg:Mn,selectionColumnWidth:gn,stickyScrollBarBg:Tn}=Ae,kn=new Ai.C(Ye),Qn=new Ai.C(at),Ur=2,tr=(0,Ga.TS)(Ae,{tableFontSize:Tt,tableBg:Me,tableRadius:hn,tablePaddingVertical:Vt,tablePaddingHorizontal:Ot,tablePaddingVerticalMiddle:Yt,tablePaddingHorizontalMiddle:Qt,tablePaddingVerticalSmall:_n,tablePaddingHorizontalSmall:an,tableBorderColor:vn,tableHeaderTextColor:qe,tableHeaderBg:Je,tableFooterTextColor:Jt,tableFooterBg:On,tableHeaderCellSplitColor:Dn,tableHeaderSortBg:nt,tableHeaderSortHoverBg:et,tableHeaderIconColor:kn.clone().setAlpha(kn.getAlpha()*Ce).toRgbString(),tableHeaderIconColorHover:Qn.clone().setAlpha(Qn.getAlpha()*Ce).toRgbString(),tableBodySortBg:dt,tableFixedHeaderSortActiveBg:qn,tableHeaderFilterActiveBg:en,tableFilterDropdownBg:Pn,tableRowHoverBg:gt,tableSelectedRowBg:vt,tableSelectedRowHoverBg:Wt,zIndexTableFixed:Ur,zIndexTableSticky:Ur+1,tableFontSizeMiddle:rn,tableFontSizeSmall:dn,tableSelectionColumnWidth:gn,tableExpandIconBg:Mn,tableExpandColumnWidth:Re+2*Ae.padding,tableExpandedRowBg:Nt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Tn,tableScrollThumbBgHover:Te,tableScrollBg:Ue});return[ya(tr),vs(tr),Ri(tr),or(tr),Sa(tr),fs(tr),Ka(tr),Wa(tr),Ri(tr),Ua(tr),Ya(tr),qi(tr),Qa(tr),xi(tr),Xa(tr),Va(tr),_a(tr)]},Ae=>{const{colorFillAlter:Te,colorBgContainer:Ue,colorTextHeading:Ye,colorFillSecondary:at,colorFillContent:Ce,controlItemBgActive:Me,controlItemBgActiveHover:Re,padding:Je,paddingSM:qe,paddingXS:nt,colorBorderSecondary:et,borderRadiusLG:dt,fontSize:gt,controlHeight:vt,colorTextPlaceholder:Wt}=Ae,Nt=new Ai.C(at).onBackground(Ue).toHexShortString(),Vt=new Ai.C(Ce).onBackground(Ue).toHexShortString(),Ot=new Ai.C(Te).onBackground(Ue).toHexShortString();return{headerBg:Ot,headerColor:Ye,headerSortActiveBg:Nt,headerSortHoverBg:Vt,bodySortBg:Ot,rowHoverBg:Ot,rowSelectedBg:Me,rowSelectedHoverBg:Re,rowExpandedBg:Te,cellPaddingBlock:Je,cellPaddingInline:Je,cellPaddingBlockMD:qe,cellPaddingInlineMD:nt,cellPaddingBlockSM:nt,cellPaddingInlineSM:nt,borderColor:et,headerBorderRadius:dt,footerBg:Ot,footerColor:Ye,cellFontSize:gt,cellFontSizeMD:gt,cellFontSizeSM:gt,headerSplitColor:et,fixedHeaderSortActiveBg:Nt,headerFilterHoverBg:Ce,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:vt,stickyScrollBarBg:Wt,stickyScrollBarBorderRadius:100}});const po=[],qa=(Ae,Te)=>{const{prefixCls:Ue,className:Ye,rootClassName:at,style:Ce,size:Me,bordered:Re,dropdownPrefixCls:Je,dataSource:qe,pagination:nt,rowSelection:et,rowKey:dt="key",rowClassName:gt,columns:vt,children:Wt,childrenColumnName:Nt,onChange:Vt,getPopupContainer:Ot,loading:Yt,expandIcon:Qt,expandable:_n,expandedRowRender:an,expandIconColumnIndex:vn,indentSize:On,scroll:Jt,sortDirections:hn,locale:Tt,showSorterTooltip:rn=!0,virtual:dn}=Ae,Dn=ie.useMemo(()=>vt||xe(Wt),[vt,Wt]),qn=ie.useMemo(()=>Dn.some(Mr=>Mr.responsive),[Dn]),en=(0,Xo.Z)(qn),Pn=ie.useMemo(()=>{const Mr=new Set(Object.keys(en).filter(qr=>en[qr]));return Dn.filter(qr=>!qr.responsive||qr.responsive.some(No=>Mr.has(No)))},[Dn,en]),Mn=(0,ti.Z)(Ae,["className","style","columns"]),{locale:gn=Zo.Z,direction:Tn,table:kn,renderEmpty:Qn,getPrefixCls:Ur,getPopupContainer:tr}=ie.useContext(Ro.E_),Yr=(0,Lo.Z)(Me),_r=Object.assign(Object.assign({},gn.Table),Tt),Ar=qe||po,Tr=Ur("table",Ue),jn=Ur("dropdown",Je),En=Object.assign({childrenColumnName:Nt,expandIconColumnIndex:vn},_n),{childrenColumnName:Bn="children"}=En,$n=ie.useMemo(()=>Ar.some(Mr=>Mr==null?void 0:Mr[Bn])?"nest":an||_n&&_n.expandedRowRender?"row":null,[Ar]),An={body:ie.useRef()},br=ie.useMemo(()=>typeof dt=="function"?dt:Mr=>Mr==null?void 0:Mr[dt],[dt]),[Rn]=Wi(Ar,Bn,br),zn={},hr=function(Mr,qr){let No=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var so,Ho,Vo;const Yo=Object.assign(Object.assign({},zn),Mr);No&&((so=zn.resetPagination)===null||so===void 0||so.call(zn),!((Ho=Yo.pagination)===null||Ho===void 0)&&Ho.current&&(Yo.pagination.current=1),nt&&nt.onChange&&nt.onChange(1,(Vo=Yo.pagination)===null||Vo===void 0?void 0:Vo.pageSize)),Jt&&Jt.scrollToFirstRowOnChange!==!1&&An.body.current&&(0,ni.Z)(0,{getContainer:()=>An.body.current}),Vt==null||Vt(Yo.pagination,Yo.filters,Yo.sorter,{currentDataSource:Zi(Ji(Ar,Yo.sorterStates,Bn),Yo.filterStates),action:qr})},Pr=(Mr,qr)=>{hr({sorter:Mr,sorterStates:qr},"sort",!1)},[Do,bo,nr,mr]=ja({prefixCls:Tr,mergedColumns:Pn,onSorterChange:Pr,sortDirections:hn||["ascend","descend"],tableLocale:_r,showSorterTooltip:rn}),to=ie.useMemo(()=>Ji(Ar,bo,Bn),[Ar,bo]);zn.sorter=mr(),zn.sorterStates=bo;const Ir=(Mr,qr)=>{hr({filters:Mr,filterStates:qr},"filter",!0)},[wr,jo,Cr]=sa({prefixCls:Tr,locale:_r,dropdownPrefixCls:jn,mergedColumns:Pn,onFilterChange:Ir,getPopupContainer:Ot||tr}),xr=Zi(to,jo);zn.filters=Cr,zn.filterStates=jo;const $r=ie.useMemo(()=>{const Mr={};return Object.keys(Cr).forEach(qr=>{Cr[qr]!==null&&(Mr[qr]=Cr[qr])}),Object.assign(Object.assign({},nr),{filters:Mr})},[nr,Cr]),[Jr]=za($r),uo=(Mr,qr)=>{hr({pagination:Object.assign(Object.assign({},zn.pagination),{current:Mr,pageSize:qr})},"paginate")},[ur,To]=Oa(xr.length,uo,nt);zn.pagination=nt===!1?{}:Ia(ur,nt),zn.resetPagination=To;const zo=ie.useMemo(()=>{if(nt===!1||!ur.pageSize)return xr;const{current:Mr=1,total:qr,pageSize:No=ii}=ur;return xr.length<qr?xr.length>No?xr.slice((Mr-1)*No,Mr*No):xr:xr.slice((Mr-1)*No,Mr*No)},[!!nt,xr,ur&&ur.current,ur&&ur.pageSize,ur&&ur.total]),[ei,mi]=Ba({prefixCls:Tr,data:xr,pageData:zo,getRowKey:br,getRecordByKey:Rn,expandType:$n,childrenColumnName:Bn,locale:_r,getPopupContainer:Ot||tr},et),ui=(Mr,qr,No)=>{let so;return typeof gt=="function"?so=Xe()(gt(Mr,qr,No)):so=Xe()(gt),Xe()({[`${Tr}-row-selected`]:mi.has(br(Mr,qr))},so)};En.__PARENT_RENDER_ICON__=En.expandIcon,En.expandIcon=En.expandIcon||Qt||Gn(_r),$n==="nest"&&En.expandIconColumnIndex===void 0?En.expandIconColumnIndex=et?1:0:En.expandIconColumnIndex>0&&et&&(En.expandIconColumnIndex-=1),typeof En.indentSize!="number"&&(En.indentSize=typeof On=="number"?On:15);const ea=ie.useCallback(Mr=>Jr(ei(wr(Do(Mr)))),[Do,wr,ei]);let bi,ai;if(nt!==!1&&(ur!=null&&ur.total)){let Mr;ur.size?Mr=ur.size:Mr=Yr==="small"||Yr==="middle"?"small":void 0;const qr=Ho=>ie.createElement(gi.Z,Object.assign({},ur,{className:Xe()(`${Tr}-pagination ${Tr}-pagination-${Ho}`,ur.className),size:Mr})),No=Tn==="rtl"?"left":"right",{position:so}=ur;if(so!==null&&Array.isArray(so)){const Ho=so.find(Ci=>Ci.includes("top")),Vo=so.find(Ci=>Ci.includes("bottom")),Yo=so.every(Ci=>`${Ci}`=="none");!Ho&&!Vo&&!Yo&&(ai=qr(No)),Ho&&(bi=qr(Ho.toLowerCase().replace("top",""))),Vo&&(ai=qr(Vo.toLowerCase().replace("bottom","")))}else ai=qr(No)}let Ko;typeof Yt=="boolean"?Ko={spinning:Yt}:typeof Yt=="object"&&(Ko=Object.assign({spinning:!0},Yt));const[$o,vo]=Vr(Tr),[,ao]=(0,Cn.Z)(),pi=Xe()(`${Tr}-wrapper`,kn==null?void 0:kn.className,{[`${Tr}-wrapper-rtl`]:Tn==="rtl"},Ye,at,vo),Ti=Object.assign(Object.assign({},kn==null?void 0:kn.style),Ce),Li=Tt&&Tt.emptyText||(Qn==null?void 0:Qn("Table"))||ie.createElement(xo.Z,{componentName:"Table"}),vi=dn?Ha:va,Pa={},ts=ie.useMemo(()=>{const{fontSize:Mr,lineHeight:qr,padding:No,paddingXS:so,paddingSM:Ho}=ao,Vo=Math.floor(Mr*qr);switch(Yr){case"large":return No*2+Vo;case"small":return so*2+Vo;default:return Ho*2+Vo}},[ao,Yr]);return dn&&(Pa.listItemHeight=ts),$o(ie.createElement("div",{ref:Te,className:pi,style:Ti},ie.createElement(Zn.Z,Object.assign({spinning:!1},Ko),bi,ie.createElement(vi,Object.assign({},Pa,Mn,{columns:Pn,direction:Tn,expandable:En,prefixCls:Tr,className:Xe()({[`${Tr}-middle`]:Yr==="middle",[`${Tr}-small`]:Yr==="small",[`${Tr}-bordered`]:Re,[`${Tr}-empty`]:Ar.length===0}),data:zo,rowKey:br,rowClassName:ui,emptyText:Li,internalHooks:ge,internalRefs:An,transformColumns:ea})),ai)))};var Wo=ie.forwardRef(qa);const ws=(Ae,Te)=>{const Ue=ie.useRef(0);return Ue.current+=1,ie.createElement(Wo,Object.assign({},Ae,{ref:Te,_renderTimes:Ue.current}))},di=ie.forwardRef(ws);di.SELECTION_COLUMN=hi,di.EXPAND_COLUMN=ee,di.SELECTION_ALL=Vi,di.SELECTION_INVERT=Yi,di.SELECTION_NONE=Fi,di.Column=wo,di.ColumnGroup=oi,di.Summary=Ie;var es=di,Ui=es},12563:function(ht,Ve,te){"use strict";te.d(Ve,{default:function(){return je}});var ee=te(59301),ge=te(99267),be=te(92310),ve=te.n(be),Se=te(36785),fe=te(47729),ie=te(14088),ue=te(36355),le=te(17313),me=te(37613),ae=te(83116);const he=Le=>{const{paddingXXS:ft,lineWidth:Xe,tagPaddingHorizontal:pt,componentCls:we}=Le,Fe=pt-Xe,He=ft-Xe;return{[we]:Object.assign(Object.assign({},(0,le.Wf)(Le)),{display:"inline-block",height:"auto",marginInlineEnd:Le.marginXS,paddingInline:Fe,fontSize:Le.tagFontSize,lineHeight:Le.tagLineHeight,whiteSpace:"nowrap",background:Le.defaultBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,opacity:1,transition:`all ${Le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${we}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Le.defaultColor},[`${we}-close-icon`]:{marginInlineStart:He,color:Le.colorTextDescription,fontSize:Le.tagIconSize,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,"&:hover":{color:Le.colorTextHeading}},[`&${we}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Le.iconCls}-close, ${Le.iconCls}-close:hover`]:{color:Le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${we}-checkable-checked):hover`]:{color:Le.colorPrimary,backgroundColor:Le.colorFillSecondary},"&:active, &-checked":{color:Le.colorTextLightSolid},"&-checked":{backgroundColor:Le.colorPrimary,"&:hover":{backgroundColor:Le.colorPrimaryHover}},"&:active":{backgroundColor:Le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Le.iconCls} + span, > span + ${Le.iconCls}`]:{marginInlineStart:Fe}}),[`${we}-borderless`]:{borderColor:"transparent",background:Le.tagBorderlessBg}}},oe=Le=>{const{lineWidth:ft,fontSizeIcon:Xe}=Le,pt=Le.fontSizeSM,we=`${Le.lineHeightSM*pt}px`;return(0,me.TS)(Le,{tagFontSize:pt,tagLineHeight:we,tagIconSize:Xe-2*ft,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},ne=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var a=(0,ae.Z)("Tag",Le=>{const ft=oe(Le);return he(ft)},ne),y=function(Le,ft){var Xe={};for(var pt in Le)Object.prototype.hasOwnProperty.call(Le,pt)&&ft.indexOf(pt)<0&&(Xe[pt]=Le[pt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,pt=Object.getOwnPropertySymbols(Le);we<pt.length;we++)ft.indexOf(pt[we])<0&&Object.prototype.propertyIsEnumerable.call(Le,pt[we])&&(Xe[pt[we]]=Le[pt[we]]);return Xe},b=Le=>{const{prefixCls:ft,style:Xe,className:pt,checked:we,onChange:Fe,onClick:He}=Le,st=y(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ke,tag:mt}=ee.useContext(ue.E_),_t=Pt=>{Fe==null||Fe(!we),He==null||He(Pt)},At=Ke("tag",ft),[kt,rt]=a(At),Qe=ve()(At,`${At}-checkable`,{[`${At}-checkable-checked`]:we},mt==null?void 0:mt.className,pt,rt);return kt(ee.createElement("span",Object.assign({},st,{style:Object.assign(Object.assign({},Xe),mt==null?void 0:mt.style),className:Qe,onClick:_t})))},x=te(45157);const z=Le=>(0,x.Z)(Le,(ft,Xe)=>{let{textColor:pt,lightBorderColor:we,lightColor:Fe,darkColor:He}=Xe;return{[`${Le.componentCls}-${ft}`]:{color:pt,background:Fe,borderColor:we,"&-inverse":{color:Le.colorTextLightSolid,background:He,borderColor:He},[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,ae.b)(["Tag","preset"],Le=>{const ft=oe(Le);return z(ft)},ne);function se(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const ce=(Le,ft,Xe)=>{const pt=se(Xe);return{[`${Le.componentCls}-${ft}`]:{color:Le[`color${Xe}`],background:Le[`color${pt}Bg`],borderColor:Le[`color${pt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var _e=(0,ae.b)(["Tag","status"],Le=>{const ft=oe(Le);return[ce(ft,"success","Success"),ce(ft,"processing","Info"),ce(ft,"error","Error"),ce(ft,"warning","Warning")]},ne),ye=function(Le,ft){var Xe={};for(var pt in Le)Object.prototype.hasOwnProperty.call(Le,pt)&&ft.indexOf(pt)<0&&(Xe[pt]=Le[pt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,pt=Object.getOwnPropertySymbols(Le);we<pt.length;we++)ft.indexOf(pt[we])<0&&Object.prototype.propertyIsEnumerable.call(Le,pt[we])&&(Xe[pt[we]]=Le[pt[we]]);return Xe};const De=(Le,ft)=>{const{prefixCls:Xe,className:pt,rootClassName:we,style:Fe,children:He,icon:st,color:Ke,onClose:mt,closeIcon:_t,closable:At,bordered:kt=!0}=Le,rt=ye(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Qe,direction:Pt,tag:zt}=ee.useContext(ue.E_),[Ct,sn]=ee.useState(!0);ee.useEffect(()=>{"visible"in rt&&sn(rt.visible)},[rt.visible]);const Ze=(0,Se.o2)(Ke),St=(0,Se.yT)(Ke),xt=Ze||St,ln=Object.assign(Object.assign({backgroundColor:Ke&&!xt?Ke:void 0},zt==null?void 0:zt.style),Fe),Gt=Qe("tag",Xe),[lt,ct]=a(Gt),Ge=ve()(Gt,zt==null?void 0:zt.className,{[`${Gt}-${Ke}`]:xt,[`${Gt}-has-color`]:Ke&&!xt,[`${Gt}-hidden`]:!Ct,[`${Gt}-rtl`]:Pt==="rtl",[`${Gt}-borderless`]:!kt},pt,we,ct),Ne=ke=>{ke.stopPropagation(),mt==null||mt(ke),!ke.defaultPrevented&&sn(!1)},[,tt]=(0,fe.Z)(At,_t,ke=>ke===null?ee.createElement(ge.Z,{className:`${Gt}-close-icon`,onClick:Ne}):ee.createElement("span",{className:`${Gt}-close-icon`,onClick:Ne},ke),null,!1),Et=typeof rt.onClick=="function"||He&&He.type==="a",Ie=st||null,Oe=Ie?ee.createElement(ee.Fragment,null,Ie,He&&ee.createElement("span",null,He)):He,We=ee.createElement("span",Object.assign({},rt,{ref:ft,className:Ge,style:ln}),Oe,tt,Ze&&ee.createElement(re,{key:"preset",prefixCls:Gt}),St&&ee.createElement(_e,{key:"status",prefixCls:Gt}));return lt(Et?ee.createElement(ie.Z,{component:"Tag"},We):We)},Ee=ee.forwardRef(De);Ee.CheckableTag=b;var je=Ee},17574:function(ht,Ve,te){"use strict";te.d(Ve,{default:function(){return Ke}});var ee=te(54030),ge=te(3300),be=te(52671),ve=te(8657),Se=te(32855),fe=te(59301),ie={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"},ue=ie,le=te(7657),me=function(_t,At){return fe.createElement(le.Z,(0,Se.Z)({},_t,{ref:At,icon:ue}))},ae=fe.forwardRef(me),he=ae,oe=te(92310),ne=te.n(oe),a=te(35654),y=te(71430),E=te(36355),b=te(56082),x=te(62892),z=te(20648);const re=4;function se(mt){const{dropPosition:_t,dropLevelOffset:At,prefixCls:kt,indent:rt,direction:Qe="ltr"}=mt,Pt=Qe==="ltr"?"left":"right",zt=Qe==="ltr"?"right":"left",Ct={[Pt]:-At*rt+re,[zt]:0};switch(_t){case-1:Ct.top=-3;break;case 1:Ct.bottom=-3;break;default:Ct.bottom=-3,Ct[Pt]=rt+re;break}return fe.createElement("div",{style:Ct,className:`${kt}-drop-indicator`})}var ce=te(71997),ye=fe.forwardRef((mt,_t)=>{const{getPrefixCls:At,direction:kt,virtual:rt,tree:Qe}=fe.useContext(E.E_),{prefixCls:Pt,className:zt,showIcon:Ct=!1,showLine:sn,switcherIcon:Ze,blockNode:St=!1,children:xt,checkable:ln=!1,selectable:Gt=!0,draggable:lt,motion:ct,style:Ge}=mt,Ne=At("tree",Pt),tt=At(),Et=ct!=null?ct:Object.assign(Object.assign({},(0,x.Z)(tt)),{motionAppear:!1}),Ie=Object.assign(Object.assign({},mt),{checkable:ln,selectable:Gt,showIcon:Ct,motion:Et,blockNode:St,showLine:!!sn,dropIndicatorRender:se}),[Oe,We]=(0,z.ZP)(Ne),ke=fe.useMemo(()=>{if(!lt)return!1;let it={};switch(typeof lt){case"function":it.nodeDraggable=lt;break;case"object":it=Object.assign({},lt);break;default:break}return it.icon!==!1&&(it.icon=it.icon||fe.createElement(b.Z,null)),it},[lt]),ze=it=>fe.createElement(ce.Z,{prefixCls:Ne,switcherIcon:Ze,treeNodeProps:it,showLine:sn});return Oe(fe.createElement(ee.Z,Object.assign({itemHeight:20,ref:_t,virtual:rt},Ie,{style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Ge),prefixCls:Ne,className:ne()({[`${Ne}-icon-hide`]:!Ct,[`${Ne}-block-node`]:St,[`${Ne}-unselectable`]:!Gt,[`${Ne}-rtl`]:kt==="rtl"},Qe==null?void 0:Qe.className,zt,We),direction:kt,checkable:ln&&fe.createElement("span",{className:`${Ne}-checkbox-inner`}),selectable:Gt,switcherIcon:ze,draggable:ke}),xt))}),De;(function(mt){mt[mt.None=0]="None",mt[mt.Start=1]="Start",mt[mt.End=2]="End"})(De||(De={}));function Ee(mt,_t){function At(kt){const{key:rt,children:Qe}=kt;_t(rt,kt)!==!1&&Ee(Qe||[],_t)}mt.forEach(At)}function je(mt){let{treeData:_t,expandedKeys:At,startKey:kt,endKey:rt}=mt;const Qe=[];let Pt=De.None;if(kt&&kt===rt)return[kt];if(!kt||!rt)return[];function zt(Ct){return Ct===kt||Ct===rt}return Ee(_t,Ct=>{if(Pt===De.End)return!1;if(zt(Ct)){if(Qe.push(Ct),Pt===De.None)Pt=De.Start;else if(Pt===De.Start)return Pt=De.End,!1}else Pt===De.Start&&Qe.push(Ct);return At.includes(Ct)}),Qe}function Le(mt,_t){const At=(0,ge.Z)(_t),kt=[];return Ee(mt,(rt,Qe)=>{const Pt=At.indexOf(rt);return Pt!==-1&&(kt.push(Qe),At.splice(Pt,1)),!!At.length}),kt}var ft=function(mt,_t){var At={};for(var kt in mt)Object.prototype.hasOwnProperty.call(mt,kt)&&_t.indexOf(kt)<0&&(At[kt]=mt[kt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,kt=Object.getOwnPropertySymbols(mt);rt<kt.length;rt++)_t.indexOf(kt[rt])<0&&Object.prototype.propertyIsEnumerable.call(mt,kt[rt])&&(At[kt[rt]]=mt[kt[rt]]);return At};function Xe(mt){const{isLeaf:_t,expanded:At}=mt;return _t?fe.createElement(be.Z,null):At?fe.createElement(ve.Z,null):fe.createElement(he,null)}function pt(mt){let{treeData:_t,children:At}=mt;return _t||(0,y.zn)(At)}const we=(mt,_t)=>{var{defaultExpandAll:At,defaultExpandParent:kt,defaultExpandedKeys:rt}=mt,Qe=ft(mt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Pt=fe.useRef(),zt=fe.useRef(),Ct=()=>{const{keyEntities:ke}=(0,y.I8)(pt(Qe));let ze;return At?ze=Object.keys(ke):kt?ze=(0,a.r7)(Qe.expandedKeys||rt||[],ke):ze=Qe.expandedKeys||rt,ze},[sn,Ze]=fe.useState(Qe.selectedKeys||Qe.defaultSelectedKeys||[]),[St,xt]=fe.useState(()=>Ct());fe.useEffect(()=>{"selectedKeys"in Qe&&Ze(Qe.selectedKeys)},[Qe.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Qe&&xt(Qe.expandedKeys)},[Qe.expandedKeys]);const ln=(ke,ze)=>{var it;return"expandedKeys"in Qe||xt(ke),(it=Qe.onExpand)===null||it===void 0?void 0:it.call(Qe,ke,ze)},Gt=(ke,ze)=>{var it;const{multiple:It}=Qe,{node:Dt,nativeEvent:jt}=ze,{key:Lt=""}=Dt,Ht=pt(Qe),yt=Object.assign(Object.assign({},ze),{selected:!0}),fn=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),un=jt==null?void 0:jt.shiftKey;let bt;It&&fn?(bt=ke,Pt.current=Lt,zt.current=bt,yt.selectedNodes=Le(Ht,bt)):It&&un?(bt=Array.from(new Set([].concat((0,ge.Z)(zt.current||[]),(0,ge.Z)(je({treeData:Ht,expandedKeys:St,startKey:Lt,endKey:Pt.current}))))),yt.selectedNodes=Le(Ht,bt)):(bt=[Lt],Pt.current=Lt,zt.current=bt,yt.selectedNodes=Le(Ht,bt)),(it=Qe.onSelect)===null||it===void 0||it.call(Qe,bt,yt),"selectedKeys"in Qe||Ze(bt)},{getPrefixCls:lt,direction:ct}=fe.useContext(E.E_),{prefixCls:Ge,className:Ne,showIcon:tt=!0,expandAction:Et="click"}=Qe,Ie=ft(Qe,["prefixCls","className","showIcon","expandAction"]),Oe=lt("tree",Ge),We=ne()(`${Oe}-directory`,{[`${Oe}-directory-rtl`]:ct==="rtl"},Ne);return fe.createElement(ye,Object.assign({icon:Xe,ref:_t,blockNode:!0},Ie,{showIcon:tt,expandAction:Et,prefixCls:Oe,className:We,expandedKeys:St,selectedKeys:sn,onSelect:Gt,onExpand:ln}))};var He=fe.forwardRef(we);const st=ye;st.DirectoryTree=He,st.TreeNode=ee.O;var Ke=st},20648:function(ht,Ve,te){"use strict";te.d(Ve,{TM:function(){return oe},Yk:function(){return he}});var ee=te(36237),ge=te(98447),be=te(17313),ve=te(8378),Se=te(37613),fe=te(83116);const ie=new ee.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ue=(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:'""'}}}),me=(ne,a)=>{const{treeCls:y,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:z,nodeHoverBg:re}=a,se=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:ie,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({},ue(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:se},[`${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:re},[`&${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`}}}}})}},ae=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"}}}}}},he=(ne,a)=>{const y=`.${ne}`,E=`${y}-treenode`,b=a.paddingXS/2,x=(0,Se.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[me(ne,x),ae(x)]},oe=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ve.ZP=(0,fe.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,ge.C2)(`${y}-checkbox`,ne)},he(y,ne),(0,ve.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},oe(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},71997:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return E}});var ee=te(32855),ge=te(59301),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,Se=te(7657),fe=function(x,z){return ge.createElement(Se.Z,(0,ee.Z)({},x,{ref:z,icon:ve}))},ie=ge.forwardRef(fe),ue=ie,le=te(52671),me=te(58617),ae=te(15075),he=te(43531),oe=te(92310),ne=te.n(oe),a=te(92343),E=b=>{const{prefixCls:x,switcherIcon:z,treeNodeProps:re,showLine:se}=b,{isLeaf:ce,expanded:_e,loading:ye}=re;if(ye)return ge.createElement(me.Z,{className:`${x}-switcher-loading-icon`});let De;if(se&&typeof se=="object"&&(De=se.showLeafIcon),ce){if(!se)return null;if(typeof De!="boolean"&&De){const Le=typeof De=="function"?De(re):De,ft=`${x}-switcher-line-custom-icon`;return(0,a.l$)(Le)?(0,a.Tm)(Le,{className:ne()(Le.props.className||"",ft)}):Le}return De?ge.createElement(le.Z,{className:`${x}-switcher-line-icon`}):ge.createElement("span",{className:`${x}-switcher-leaf-line`})}const Ee=`${x}-switcher-icon`,je=typeof z=="function"?z(re):z;return(0,a.l$)(je)?(0,a.Tm)(je,{className:ne()(je.props.className||"",Ee)}):je!==void 0?je:se?_e?ge.createElement(ae.Z,{className:`${x}-switcher-line-icon`}):ge.createElement(he.Z,{className:`${x}-switcher-line-icon`}):ge.createElement(ue,{className:Ee})}},3867:function(ht,Ve,te){var ee=te(97671);(function(ge,be){ht.exports=be()})(this,function(){"use strict";function ge(Ie){var Oe=typeof Ie;return Ie!==null&&(Oe==="object"||Oe==="function")}function be(Ie){return typeof Ie=="function"}var ve=void 0;Array.isArray?ve=Array.isArray:ve=function(Ie){return Object.prototype.toString.call(Ie)==="[object Array]"};var Se=ve,fe=0,ie=void 0,ue=void 0,le=function(Oe,We){se[fe]=Oe,se[fe+1]=We,fe+=2,fe===2&&(ue?ue(ce):ye())};function me(Ie){ue=Ie}function ae(Ie){le=Ie}var he=typeof window!="undefined"?window:void 0,oe=he||{},ne=oe.MutationObserver||oe.WebKitMutationObserver,a=typeof self=="undefined"&&typeof ee!="undefined"&&{}.toString.call(ee)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return ee.nextTick(ce)}}function b(){return typeof ie!="undefined"?function(){ie(ce)}:re()}function x(){var Ie=0,Oe=new ne(ce),We=document.createTextNode("");return Oe.observe(We,{characterData:!0}),function(){We.data=Ie=++Ie%2}}function z(){var Ie=new MessageChannel;return Ie.port1.onmessage=ce,function(){return Ie.port2.postMessage(0)}}function re(){var Ie=setTimeout;return function(){return Ie(ce,1)}}var se=new Array(1e3);function ce(){for(var Ie=0;Ie<fe;Ie+=2){var Oe=se[Ie],We=se[Ie+1];Oe(We),se[Ie]=void 0,se[Ie+1]=void 0}fe=0}function _e(){try{var Ie=Function("return this")().require("vertx");return ie=Ie.runOnLoop||Ie.runOnContext,b()}catch(Oe){return re()}}var ye=void 0;a?ye=E():ne?ye=x():y?ye=z():he===void 0?ye=_e():ye=re();function De(Ie,Oe){var We=this,ke=new this.constructor(Le);ke[je]===void 0&&St(ke);var ze=We._state;if(ze){var it=arguments[ze-1];le(function(){return zt(ze,ke,it,We._result)})}else Qe(We,ke,Ie,Oe);return ke}function Ee(Ie){var Oe=this;if(Ie&&typeof Ie=="object"&&Ie.constructor===Oe)return Ie;var We=new Oe(Le);return _t(We,Ie),We}var je=Math.random().toString(36).substring(2);function Le(){}var ft=void 0,Xe=1,pt=2;function we(){return new TypeError("You cannot resolve a promise with itself")}function Fe(){return new TypeError("A promises callback cannot return that same promise.")}function He(Ie,Oe,We,ke){try{Ie.call(Oe,We,ke)}catch(ze){return ze}}function st(Ie,Oe,We){le(function(ke){var ze=!1,it=He(We,Oe,function(It){ze||(ze=!0,Oe!==It?_t(ke,It):kt(ke,It))},function(It){ze||(ze=!0,rt(ke,It))},"Settle: "+(ke._label||" unknown promise"));!ze&&it&&(ze=!0,rt(ke,it))},Ie)}function Ke(Ie,Oe){Oe._state===Xe?kt(Ie,Oe._result):Oe._state===pt?rt(Ie,Oe._result):Qe(Oe,void 0,function(We){return _t(Ie,We)},function(We){return rt(Ie,We)})}function mt(Ie,Oe,We){Oe.constructor===Ie.constructor&&We===De&&Oe.constructor.resolve===Ee?Ke(Ie,Oe):We===void 0?kt(Ie,Oe):be(We)?st(Ie,Oe,We):kt(Ie,Oe)}function _t(Ie,Oe){if(Ie===Oe)rt(Ie,we());else if(ge(Oe)){var We=void 0;try{We=Oe.then}catch(ke){rt(Ie,ke);return}mt(Ie,Oe,We)}else kt(Ie,Oe)}function At(Ie){Ie._onerror&&Ie._onerror(Ie._result),Pt(Ie)}function kt(Ie,Oe){Ie._state===ft&&(Ie._result=Oe,Ie._state=Xe,Ie._subscribers.length!==0&&le(Pt,Ie))}function rt(Ie,Oe){Ie._state===ft&&(Ie._state=pt,Ie._result=Oe,le(At,Ie))}function Qe(Ie,Oe,We,ke){var ze=Ie._subscribers,it=ze.length;Ie._onerror=null,ze[it]=Oe,ze[it+Xe]=We,ze[it+pt]=ke,it===0&&Ie._state&&le(Pt,Ie)}function Pt(Ie){var Oe=Ie._subscribers,We=Ie._state;if(Oe.length!==0){for(var ke=void 0,ze=void 0,it=Ie._result,It=0;It<Oe.length;It+=3)ke=Oe[It],ze=Oe[It+We],ke?zt(We,ke,ze,it):ze(it);Ie._subscribers.length=0}}function zt(Ie,Oe,We,ke){var ze=be(We),it=void 0,It=void 0,Dt=!0;if(ze){try{it=We(ke)}catch(jt){Dt=!1,It=jt}if(Oe===it){rt(Oe,Fe());return}}else it=ke;Oe._state!==ft||(ze&&Dt?_t(Oe,it):Dt===!1?rt(Oe,It):Ie===Xe?kt(Oe,it):Ie===pt&&rt(Oe,it))}function Ct(Ie,Oe){try{Oe(function(ke){_t(Ie,ke)},function(ke){rt(Ie,ke)})}catch(We){rt(Ie,We)}}var sn=0;function Ze(){return sn++}function St(Ie){Ie[je]=sn++,Ie._state=void 0,Ie._result=void 0,Ie._subscribers=[]}function xt(){return new Error("Array Methods must be provided an Array")}var ln=function(){function Ie(Oe,We){this._instanceConstructor=Oe,this.promise=new Oe(Le),this.promise[je]||St(this.promise),Se(We)?(this.length=We.length,this._remaining=We.length,this._result=new Array(this.length),this.length===0?kt(this.promise,this._result):(this.length=this.length||0,this._enumerate(We),this._remaining===0&&kt(this.promise,this._result))):rt(this.promise,xt())}return Ie.prototype._enumerate=function(We){for(var ke=0;this._state===ft&&ke<We.length;ke++)this._eachEntry(We[ke],ke)},Ie.prototype._eachEntry=function(We,ke){var ze=this._instanceConstructor,it=ze.resolve;if(it===Ee){var It=void 0,Dt=void 0,jt=!1;try{It=We.then}catch(Ht){jt=!0,Dt=Ht}if(It===De&&We._state!==ft)this._settledAt(We._state,ke,We._result);else if(typeof It!="function")this._remaining--,this._result[ke]=We;else if(ze===tt){var Lt=new ze(Le);jt?rt(Lt,Dt):mt(Lt,We,It),this._willSettleAt(Lt,ke)}else this._willSettleAt(new ze(function(Ht){return Ht(We)}),ke)}else this._willSettleAt(it(We),ke)},Ie.prototype._settledAt=function(We,ke,ze){var it=this.promise;it._state===ft&&(this._remaining--,We===pt?rt(it,ze):this._result[ke]=ze),this._remaining===0&&kt(it,this._result)},Ie.prototype._willSettleAt=function(We,ke){var ze=this;Qe(We,void 0,function(it){return ze._settledAt(Xe,ke,it)},function(it){return ze._settledAt(pt,ke,it)})},Ie}();function Gt(Ie){return new ln(this,Ie).promise}function lt(Ie){var Oe=this;return Se(Ie)?new Oe(function(We,ke){for(var ze=Ie.length,it=0;it<ze;it++)Oe.resolve(Ie[it]).then(We,ke)}):new Oe(function(We,ke){return ke(new TypeError("You must pass an array to race."))})}function ct(Ie){var Oe=this,We=new Oe(Le);return rt(We,Ie),We}function Ge(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ne(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var tt=function(){function Ie(Oe){this[je]=Ze(),this._result=this._state=void 0,this._subscribers=[],Le!==Oe&&(typeof Oe!="function"&&Ge(),this instanceof Ie?Ct(this,Oe):Ne())}return Ie.prototype.catch=function(We){return this.then(null,We)},Ie.prototype.finally=function(We){var ke=this,ze=ke.constructor;return be(We)?ke.then(function(it){return ze.resolve(We()).then(function(){return it})},function(it){return ze.resolve(We()).then(function(){throw it})}):ke.then(We,We)},Ie}();tt.prototype.then=De,tt.all=Gt,tt.race=lt,tt.resolve=Ee,tt.reject=ct,tt._setScheduler=me,tt._setAsap=ae,tt._asap=le;function Et(){var Ie=void 0;if(typeof te.g!="undefined")Ie=te.g;else if(typeof self!="undefined")Ie=self;else try{Ie=Function("return this")()}catch(ke){throw new Error("polyfill failed because global object is unavailable in this environment")}var Oe=Ie.Promise;if(Oe){var We=null;try{We=Object.prototype.toString.call(Oe.resolve())}catch(ke){}if(We==="[object Promise]"&&!Oe.cast)return}Ie.Promise=tt}return tt.polyfill=Et,tt.Promise=tt,tt})},86204:function(ht){"use strict";var Ve=typeof Reflect=="object"?Reflect:null,te=Ve&&typeof Ve.apply=="function"?Ve.apply:function(z,re,se){return Function.prototype.apply.call(z,re,se)},ee;Ve&&typeof Ve.ownKeys=="function"?ee=Ve.ownKeys:Object.getOwnPropertySymbols?ee=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:ee=function(z){return Object.getOwnPropertyNames(z)};function ge(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(z){return z!==z};function ve(){ve.init.call(this)}ht.exports=ve,ht.exports.once=y,ve.EventEmitter=ve,ve.prototype._events=void 0,ve.prototype._eventsCount=0,ve.prototype._maxListeners=void 0;var Se=10;function fe(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 Se},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+".");Se=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 ie(x){return x._maxListeners===void 0?ve.defaultMaxListeners:x._maxListeners}ve.prototype.getMaxListeners=function(){return ie(this)},ve.prototype.emit=function(z){for(var re=[],se=1;se<arguments.length;se++)re.push(arguments[se]);var ce=z==="error",_e=this._events;if(_e!==void 0)ce=ce&&_e.error===void 0;else if(!ce)return!1;if(ce){var ye;if(re.length>0&&(ye=re[0]),ye instanceof Error)throw ye;var De=new Error("Unhandled error."+(ye?" ("+ye.message+")":""));throw De.context=ye,De}var Ee=_e[z];if(Ee===void 0)return!1;if(typeof Ee=="function")te(Ee,this,re);else for(var je=Ee.length,Le=oe(Ee,je),se=0;se<je;++se)te(Le[se],this,re);return!0};function ue(x,z,re,se){var ce,_e,ye;if(fe(re),_e=x._events,_e===void 0?(_e=x._events=Object.create(null),x._eventsCount=0):(_e.newListener!==void 0&&(x.emit("newListener",z,re.listener?re.listener:re),_e=x._events),ye=_e[z]),ye===void 0)ye=_e[z]=re,++x._eventsCount;else if(typeof ye=="function"?ye=_e[z]=se?[re,ye]:[ye,re]:se?ye.unshift(re):ye.push(re),ce=ie(x),ce>0&&ye.length>ce&&!ye.warned){ye.warned=!0;var De=new Error("Possible EventEmitter memory leak detected. "+ye.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");De.name="MaxListenersExceededWarning",De.emitter=x,De.type=z,De.count=ye.length,ge(De)}return x}ve.prototype.addListener=function(z,re){return ue(this,z,re,!1)},ve.prototype.on=ve.prototype.addListener,ve.prototype.prependListener=function(z,re){return ue(this,z,re,!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 me(x,z,re){var se={fired:!1,wrapFn:void 0,target:x,type:z,listener:re},ce=le.bind(se);return ce.listener=re,se.wrapFn=ce,ce}ve.prototype.once=function(z,re){return fe(re),this.on(z,me(this,z,re)),this},ve.prototype.prependOnceListener=function(z,re){return fe(re),this.prependListener(z,me(this,z,re)),this},ve.prototype.removeListener=function(z,re){var se,ce,_e,ye,De;if(fe(re),ce=this._events,ce===void 0)return this;if(se=ce[z],se===void 0)return this;if(se===re||se.listener===re)--this._eventsCount===0?this._events=Object.create(null):(delete ce[z],ce.removeListener&&this.emit("removeListener",z,se.listener||re));else if(typeof se!="function"){for(_e=-1,ye=se.length-1;ye>=0;ye--)if(se[ye]===re||se[ye].listener===re){De=se[ye].listener,_e=ye;break}if(_e<0)return this;_e===0?se.shift():ne(se,_e),se.length===1&&(ce[z]=se[0]),ce.removeListener!==void 0&&this.emit("removeListener",z,De||re)}return this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.removeAllListeners=function(z){var re,se,ce;if(se=this._events,se===void 0)return this;if(se.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):se[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete se[z]),this;if(arguments.length===0){var _e=Object.keys(se),ye;for(ce=0;ce<_e.length;++ce)ye=_e[ce],ye!=="removeListener"&&this.removeAllListeners(ye);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(re=se[z],typeof re=="function")this.removeListener(z,re);else if(re!==void 0)for(ce=re.length-1;ce>=0;ce--)this.removeListener(z,re[ce]);return this};function ae(x,z,re){var se=x._events;if(se===void 0)return[];var ce=se[z];return ce===void 0?[]:typeof ce=="function"?re?[ce.listener||ce]:[ce]:re?a(ce):oe(ce,ce.length)}ve.prototype.listeners=function(z){return ae(this,z,!0)},ve.prototype.rawListeners=function(z){return ae(this,z,!1)},ve.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):he.call(x,z)},ve.prototype.listenerCount=he;function he(x){var z=this._events;if(z!==void 0){var re=z[x];if(typeof re=="function")return 1;if(re!==void 0)return re.length}return 0}ve.prototype.eventNames=function(){return this._eventsCount>0?ee(this._events):[]};function oe(x,z){for(var re=new Array(z),se=0;se<z;++se)re[se]=x[se];return re}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),re=0;re<z.length;++re)z[re]=x[re].listener||x[re];return z}function y(x,z){return new Promise(function(re,se){function ce(ye){x.removeListener(z,_e),se(ye)}function _e(){typeof x.removeListener=="function"&&x.removeListener("error",ce),re([].slice.call(arguments))}b(x,z,_e,{once:!0}),z!=="error"&&E(x,ce,{once:!0})})}function E(x,z,re){typeof x.on=="function"&&b(x,"error",z,re)}function b(x,z,re,se){if(typeof x.on=="function")se.once?x.once(z,re):x.on(z,re);else if(typeof x.addEventListener=="function")x.addEventListener(z,function ce(_e){se.once&&x.removeEventListener(z,ce),re(_e)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},24334:function(ht,Ve,te){var ee,ge;(function(be,ve){ht.exports=ve(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te.g!="undefined"?te.g:this,function(be){"use strict";be=be||{};var ve=be.Base64,Se="2.6.4",fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(Xe){for(var pt={},we=0,Fe=Xe.length;we<Fe;we++)pt[Xe.charAt(we)]=we;return pt}(fe),ue=String.fromCharCode,le=function(Xe){if(Xe.length<2){var pt=Xe.charCodeAt(0);return pt<128?Xe:pt<2048?ue(192|pt>>>6)+ue(128|pt&63):ue(224|pt>>>12&15)+ue(128|pt>>>6&63)+ue(128|pt&63)}else{var pt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return ue(240|pt>>>18&7)+ue(128|pt>>>12&63)+ue(128|pt>>>6&63)+ue(128|pt&63)}},me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Xe){return Xe.replace(me,le)},he=function(Xe){var pt=[0,2,1][Xe.length%3],we=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),Fe=[fe.charAt(we>>>18),fe.charAt(we>>>12&63),pt>=2?"=":fe.charAt(we>>>6&63),pt>=1?"=":fe.charAt(we&63)];return Fe.join("")},oe=be.btoa&&typeof be.btoa=="function"?function(Xe){return be.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,he)},ne=function(Xe){return oe(ae(String(Xe)))},a=function(Xe){return Xe.replace(/[+\/]/g,function(pt){return pt=="+"?"-":"_"}).replace(/=/g,"")},y=function(Xe,pt){return pt?a(ne(Xe)):ne(Xe)},E=function(Xe){return y(Xe,!0)},b;be.Uint8Array&&(b=function(Xe,pt){for(var we="",Fe=0,He=Xe.length;Fe<He;Fe+=3){var st=Xe[Fe],Ke=Xe[Fe+1],mt=Xe[Fe+2],_t=st<<16|Ke<<8|mt;we+=fe.charAt(_t>>>18)+fe.charAt(_t>>>12&63)+(typeof Ke!="undefined"?fe.charAt(_t>>>6&63):"=")+(typeof mt!="undefined"?fe.charAt(_t&63):"=")}return pt?a(we):we});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,z=function(Xe){switch(Xe.length){case 4:var pt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),we=pt-65536;return ue((we>>>10)+55296)+ue((we&1023)+56320);case 3:return ue((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return ue((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},re=function(Xe){return Xe.replace(x,z)},se=function(Xe){var pt=Xe.length,we=pt%4,Fe=(pt>0?ie[Xe.charAt(0)]<<18:0)|(pt>1?ie[Xe.charAt(1)]<<12:0)|(pt>2?ie[Xe.charAt(2)]<<6:0)|(pt>3?ie[Xe.charAt(3)]:0),He=[ue(Fe>>>16),ue(Fe>>>8&255),ue(Fe&255)];return He.length-=[0,0,2,1][we],He.join("")},ce=be.atob&&typeof be.atob=="function"?function(Xe){return be.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,se)},_e=function(Xe){return ce(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},ye=function(Xe){return re(ce(Xe))},De=function(Xe){return String(Xe).replace(/[-_]/g,function(pt){return pt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Xe){return ye(De(Xe))},je;be.Uint8Array&&(je=function(Xe){return Uint8Array.from(_e(De(Xe)),function(pt){return pt.charCodeAt(0)})});var Le=function(){var Xe=be.Base64;return be.Base64=ve,Xe};if(be.Base64={VERSION:Se,atob:_e,btoa:oe,fromBase64:Ee,toBase64:y,utob:ae,encode:y,encodeURI:E,btou:re,decode:Ee,noConflict:Le,fromUint8Array:b,toUint8Array:je},typeof Object.defineProperty=="function"){var ft=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ft(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",ft(function(Xe){return y(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",ft(function(){return y(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),ht.exports?ht.exports.Base64=be.Base64:(ee=[],ge=function(){return be.Base64}.apply(Ve,ee),ge!==void 0&&(ht.exports=ge)),{Base64:be.Base64}})},39417:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ye}});var ee=te(32855),ge=te(74430),be=te(43079),ve=te(27247),Se=te(33377),fe=te(93912),ie=te(83383),ue=te(18881),le=te(85461),me=te(92310),ae=te.n(me),he=te(26112),oe=te(59301),ne=te(39378),a=function(Ee){for(var je=Ee.prefixCls,Le=Ee.level,ft=Ee.isStart,Xe=Ee.isEnd,pt="".concat(je,"-indent-unit"),we=[],Fe=0;Fe<Le;Fe+=1){var He;we.push(oe.createElement("span",{key:Fe,className:ae()(pt,(He={},(0,ge.Z)(He,"".concat(pt,"-start"),ft[Fe]),(0,ge.Z)(He,"".concat(pt,"-end"),Xe[Fe]),He))}))}return oe.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},we)},y=oe.memo(a),E=te(67841),b=te(71430),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",re="close",se="---",ce=function(De){(0,ue.Z)(je,De);var Ee=(0,le.Z)(je);function je(){var Le;(0,Se.Z)(this,je);for(var ft=arguments.length,Xe=new Array(ft),pt=0;pt<ft;pt++)Xe[pt]=arguments[pt];return Le=Ee.call.apply(Ee,[this].concat(Xe)),Le.state={dragNodeHighlight:!1},Le.selectHandle=void 0,Le.cacheIndent=void 0,Le.onSelectorClick=function(we){var Fe=Le.props.context.onNodeClick;Fe(we,(0,b.F)(Le.props)),Le.isSelectable()?Le.onSelect(we):Le.onCheck(we)},Le.onSelectorDoubleClick=function(we){var Fe=Le.props.context.onNodeDoubleClick;Fe(we,(0,b.F)(Le.props))},Le.onSelect=function(we){if(!Le.isDisabled()){var Fe=Le.props.context.onNodeSelect;Fe(we,(0,b.F)(Le.props))}},Le.onCheck=function(we){if(!Le.isDisabled()){var Fe=Le.props,He=Fe.disableCheckbox,st=Fe.checked,Ke=Le.props.context.onNodeCheck;if(!(!Le.isCheckable()||He)){var mt=!st;Ke(we,(0,b.F)(Le.props),mt)}}},Le.onMouseEnter=function(we){var Fe=Le.props.context.onNodeMouseEnter;Fe(we,(0,b.F)(Le.props))},Le.onMouseLeave=function(we){var Fe=Le.props.context.onNodeMouseLeave;Fe(we,(0,b.F)(Le.props))},Le.onContextMenu=function(we){var Fe=Le.props.context.onNodeContextMenu;Fe(we,(0,b.F)(Le.props))},Le.onDragStart=function(we){var Fe=Le.props.context.onNodeDragStart;we.stopPropagation(),Le.setState({dragNodeHighlight:!0}),Fe(we,(0,ie.Z)(Le));try{we.dataTransfer.setData("text/plain","")}catch(He){}},Le.onDragEnter=function(we){var Fe=Le.props.context.onNodeDragEnter;we.preventDefault(),we.stopPropagation(),Fe(we,(0,ie.Z)(Le))},Le.onDragOver=function(we){var Fe=Le.props.context.onNodeDragOver;we.preventDefault(),we.stopPropagation(),Fe(we,(0,ie.Z)(Le))},Le.onDragLeave=function(we){var Fe=Le.props.context.onNodeDragLeave;we.stopPropagation(),Fe(we,(0,ie.Z)(Le))},Le.onDragEnd=function(we){var Fe=Le.props.context.onNodeDragEnd;we.stopPropagation(),Le.setState({dragNodeHighlight:!1}),Fe(we,(0,ie.Z)(Le))},Le.onDrop=function(we){var Fe=Le.props.context.onNodeDrop;we.preventDefault(),we.stopPropagation(),Le.setState({dragNodeHighlight:!1}),Fe(we,(0,ie.Z)(Le))},Le.onExpand=function(we){var Fe=Le.props,He=Fe.loading,st=Fe.context.onNodeExpand;He||st(we,(0,b.F)(Le.props))},Le.setSelectHandle=function(we){Le.selectHandle=we},Le.getNodeState=function(){var we=Le.props.expanded;return Le.isLeaf()?null:we?z:re},Le.hasChildren=function(){var we=Le.props.eventKey,Fe=Le.props.context.keyEntities,He=(0,E.Z)(Fe,we)||{},st=He.children;return!!(st||[]).length},Le.isLeaf=function(){var we=Le.props,Fe=we.isLeaf,He=we.loaded,st=Le.props.context.loadData,Ke=Le.hasChildren();return Fe===!1?!1:Fe||!st&&!Ke||st&&He&&!Ke},Le.isDisabled=function(){var we=Le.props.disabled,Fe=Le.props.context.disabled;return!!(Fe||we)},Le.isCheckable=function(){var we=Le.props.checkable,Fe=Le.props.context.checkable;return!Fe||we===!1?!1:Fe},Le.syncLoadData=function(we){var Fe=we.expanded,He=we.loading,st=we.loaded,Ke=Le.props.context,mt=Ke.loadData,_t=Ke.onNodeLoad;He||mt&&Fe&&!Le.isLeaf()&&!Le.hasChildren()&&!st&&_t((0,b.F)(Le.props))},Le.isDraggable=function(){var we=Le.props,Fe=we.data,He=we.context.draggable;return!!(He&&(!He.nodeDraggable||He.nodeDraggable(Fe)))},Le.renderDragHandler=function(){var we=Le.props.context,Fe=we.draggable,He=we.prefixCls;return Fe!=null&&Fe.icon?oe.createElement("span",{className:"".concat(He,"-draggable-icon")},Fe.icon):null},Le.renderSwitcherIconDom=function(we){var Fe=Le.props.switcherIcon,He=Le.props.context.switcherIcon,st=Fe||He;return typeof st=="function"?st((0,ve.Z)((0,ve.Z)({},Le.props),{},{isLeaf:we})):st},Le.renderSwitcher=function(){var we=Le.props.expanded,Fe=Le.props.context.prefixCls;if(Le.isLeaf()){var He=Le.renderSwitcherIconDom(!0);return He!==!1?oe.createElement("span",{className:ae()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher-noop"))},He):null}var st=ae()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher_").concat(we?z:re)),Ke=Le.renderSwitcherIconDom(!1);return Ke!==!1?oe.createElement("span",{onClick:Le.onExpand,className:st},Ke):null},Le.renderCheckbox=function(){var we=Le.props,Fe=we.checked,He=we.halfChecked,st=we.disableCheckbox,Ke=Le.props.context.prefixCls,mt=Le.isDisabled(),_t=Le.isCheckable();if(!_t)return null;var At=typeof _t!="boolean"?_t:null;return oe.createElement("span",{className:ae()("".concat(Ke,"-checkbox"),Fe&&"".concat(Ke,"-checkbox-checked"),!Fe&&He&&"".concat(Ke,"-checkbox-indeterminate"),(mt||st)&&"".concat(Ke,"-checkbox-disabled")),onClick:Le.onCheck},At)},Le.renderIcon=function(){var we=Le.props.loading,Fe=Le.props.context.prefixCls;return oe.createElement("span",{className:ae()("".concat(Fe,"-iconEle"),"".concat(Fe,"-icon__").concat(Le.getNodeState()||"docu"),we&&"".concat(Fe,"-icon_loading"))})},Le.renderSelector=function(){var we=Le.state.dragNodeHighlight,Fe=Le.props,He=Fe.title,st=He===void 0?se:He,Ke=Fe.selected,mt=Fe.icon,_t=Fe.loading,At=Fe.data,kt=Le.props.context,rt=kt.prefixCls,Qe=kt.showIcon,Pt=kt.icon,zt=kt.loadData,Ct=kt.titleRender,sn=Le.isDisabled(),Ze="".concat(rt,"-node-content-wrapper"),St;if(Qe){var xt=mt||Pt;St=xt?oe.createElement("span",{className:ae()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof xt=="function"?xt(Le.props):xt):Le.renderIcon()}else zt&&_t&&(St=Le.renderIcon());var ln;typeof st=="function"?ln=st(At):Ct?ln=Ct(At):ln=st;var Gt=oe.createElement("span",{className:"".concat(rt,"-title")},ln);return oe.createElement("span",{ref:Le.setSelectHandle,title:typeof st=="string"?st:"",className:ae()("".concat(Ze),"".concat(Ze,"-").concat(Le.getNodeState()||"normal"),!sn&&(Ke||we)&&"".concat(rt,"-node-selected")),onMouseEnter:Le.onMouseEnter,onMouseLeave:Le.onMouseLeave,onContextMenu:Le.onContextMenu,onClick:Le.onSelectorClick,onDoubleClick:Le.onSelectorDoubleClick},St,Gt,Le.renderDropIndicator())},Le.renderDropIndicator=function(){var we=Le.props,Fe=we.disabled,He=we.eventKey,st=Le.props.context,Ke=st.draggable,mt=st.dropLevelOffset,_t=st.dropPosition,At=st.prefixCls,kt=st.indent,rt=st.dropIndicatorRender,Qe=st.dragOverNodeKey,Pt=st.direction,zt=!!Ke,Ct=!Fe&&zt&&Qe===He,sn=kt!=null?kt:Le.cacheIndent;return Le.cacheIndent=kt,Ct?rt({dropPosition:_t,dropLevelOffset:mt,indent:sn,prefixCls:At,direction:Pt}):null},Le}return(0,fe.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ft=this.props.selectable,Xe=this.props.context.selectable;return typeof ft=="boolean"?ft:Xe}},{key:"render",value:function(){var ft,Xe=this.props,pt=Xe.eventKey,we=Xe.className,Fe=Xe.style,He=Xe.dragOver,st=Xe.dragOverGapTop,Ke=Xe.dragOverGapBottom,mt=Xe.isLeaf,_t=Xe.isStart,At=Xe.isEnd,kt=Xe.expanded,rt=Xe.selected,Qe=Xe.checked,Pt=Xe.halfChecked,zt=Xe.loading,Ct=Xe.domRef,sn=Xe.active,Ze=Xe.data,St=Xe.onMouseMove,xt=Xe.selectable,ln=(0,be.Z)(Xe,x),Gt=this.props.context,lt=Gt.prefixCls,ct=Gt.filterTreeNode,Ge=Gt.keyEntities,Ne=Gt.dropContainerKey,tt=Gt.dropTargetKey,Et=Gt.draggingNodeKey,Ie=this.isDisabled(),Oe=(0,he.Z)(ln,{aria:!0,data:!0}),We=(0,E.Z)(Ge,pt)||{},ke=We.level,ze=At[At.length-1],it=this.isDraggable(),It=!Ie&&it,Dt=Et===pt,jt=xt!==void 0?{"aria-selected":!!xt}:void 0;return oe.createElement("div",(0,ee.Z)({ref:Ct,className:ae()(we,"".concat(lt,"-treenode"),(ft={},(0,ge.Z)(ft,"".concat(lt,"-treenode-disabled"),Ie),(0,ge.Z)(ft,"".concat(lt,"-treenode-switcher-").concat(kt?"open":"close"),!mt),(0,ge.Z)(ft,"".concat(lt,"-treenode-checkbox-checked"),Qe),(0,ge.Z)(ft,"".concat(lt,"-treenode-checkbox-indeterminate"),Pt),(0,ge.Z)(ft,"".concat(lt,"-treenode-selected"),rt),(0,ge.Z)(ft,"".concat(lt,"-treenode-loading"),zt),(0,ge.Z)(ft,"".concat(lt,"-treenode-active"),sn),(0,ge.Z)(ft,"".concat(lt,"-treenode-leaf-last"),ze),(0,ge.Z)(ft,"".concat(lt,"-treenode-draggable"),it),(0,ge.Z)(ft,"dragging",Dt),(0,ge.Z)(ft,"drop-target",tt===pt),(0,ge.Z)(ft,"drop-container",Ne===pt),(0,ge.Z)(ft,"drag-over",!Ie&&He),(0,ge.Z)(ft,"drag-over-gap-top",!Ie&&st),(0,ge.Z)(ft,"drag-over-gap-bottom",!Ie&&Ke),(0,ge.Z)(ft,"filter-node",ct&&ct((0,b.F)(this.props))),ft)),style:Fe,draggable:It,"aria-grabbed":Dt,onDragStart:It?this.onDragStart:void 0,onDragEnter:it?this.onDragEnter:void 0,onDragOver:it?this.onDragOver:void 0,onDragLeave:it?this.onDragLeave:void 0,onDrop:it?this.onDrop:void 0,onDragEnd:it?this.onDragEnd:void 0,onMouseMove:St},jt,Oe),oe.createElement(y,{prefixCls:lt,level:ke,isStart:_t,isEnd:At}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(oe.Component),_e=function(Ee){return oe.createElement(ne.k.Consumer,null,function(je){return oe.createElement(ce,(0,ee.Z)({},Ee,{context:je}))})};_e.displayName="TreeNode",_e.isTreeNode=1;var ye=_e},39378:function(ht,Ve,te){"use strict";te.d(Ve,{k:function(){return ge}});var ee=te(59301),ge=ee.createContext(null)},54030:function(ht,Ve,te){"use strict";te.d(Ve,{O:function(){return ye.Z},Z:function(){return Gt}});var ee=te(32855),ge=te(74430),be=te(34666),ve=te(27247),Se=te(3300),fe=te(33377),ie=te(93912),ue=te(83383),le=te(18881),me=te(85461),ae=te(92310),he=te.n(ae),oe=te(10228),ne=te(26112),a=te(48736),y=te(59301),E=te(39378);function b(lt){var ct=lt.dropPosition,Ge=lt.dropLevelOffset,Ne=lt.indent,tt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ct){case-1:tt.top=0,tt.left=-Ge*Ne;break;case 1:tt.bottom=0,tt.left=-Ge*Ne;break;case 0:tt.bottom=0,tt.left=Ne;break}return y.createElement("div",{style:tt})}function x(lt){if(lt==null)throw new TypeError("Cannot destructure "+lt)}var z=te(11913),re=te(43079),se=te(34280),ce=te(6790),_e=te(77900),ye=te(39417);function De(lt,ct){var Ge=y.useState(!1),Ne=(0,z.Z)(Ge,2),tt=Ne[0],Et=Ne[1];y.useLayoutEffect(function(){if(tt)return lt(),function(){ct()}},[tt]),y.useLayoutEffect(function(){return Et(!0),function(){Et(!1)}},[])}var Ee=te(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Le=function(ct,Ge){var Ne=ct.className,tt=ct.style,Et=ct.motion,Ie=ct.motionNodes,Oe=ct.motionType,We=ct.onMotionStart,ke=ct.onMotionEnd,ze=ct.active,it=ct.treeNodeRequiredProps,It=(0,re.Z)(ct,je),Dt=y.useState(!0),jt=(0,z.Z)(Dt,2),Lt=jt[0],Ht=jt[1],yt=y.useContext(E.k),fn=yt.prefixCls,un=Ie&&Oe!=="hide";(0,se.Z)(function(){Ie&&un!==Lt&&Ht(un)},[Ie]);var bt=function(){Ie&&We()},Sn=y.useRef(!1),pn=function(){Ie&&!Sn.current&&(Sn.current=!0,ke())};De(bt,pn);var Fn=function(Kn){un===Kn&&pn()};return Ie?y.createElement(_e.default,(0,ee.Z)({ref:Ge,visible:Lt},Et,{motionAppear:Oe==="show",onVisibleChanged:Fn}),function(xn,Kn){var er=xn.className,Vn=xn.style;return y.createElement("div",{ref:Kn,className:he()("".concat(fn,"-treenode-motion"),er),style:Vn},Ie.map(function(Yn){var pr=(0,ee.Z)({},(x(Yn.data),Yn.data)),vr=Yn.title,tn=Yn.key,Xn=Yn.isStart,sr=Yn.isEnd;delete pr.children;var Wn=(0,Ee.H8)(tn,it);return y.createElement(ye.Z,(0,ee.Z)({},pr,Wn,{title:vr,active:ze,data:Yn.data,key:tn,isStart:Xn,isEnd:sr}))}))}):y.createElement(ye.Z,(0,ee.Z)({domRef:Ge,className:Ne,style:tt},It,{active:ze}))};Le.displayName="MotionTreeNode";var ft=y.forwardRef(Le),Xe=ft;function pt(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=lt.length,Ne=ct.length;if(Math.abs(Ge-Ne)!==1)return{add:!1,key:null};function tt(Et,Ie){var Oe=new Map;Et.forEach(function(ke){Oe.set(ke,!0)});var We=Ie.filter(function(ke){return!Oe.has(ke)});return We.length===1?We[0]:null}return Ge<Ne?{add:!0,key:tt(lt,ct)}:{add:!1,key:tt(ct,lt)}}function we(lt,ct,Ge){var Ne=lt.findIndex(function(Oe){return Oe.key===Ge}),tt=lt[Ne+1],Et=ct.findIndex(function(Oe){return Oe.key===Ge});if(tt){var Ie=ct.findIndex(function(Oe){return Oe.key===tt.key});return ct.slice(Et+1,Ie)}return ct.slice(Et+1)}var Fe=["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"],He={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},st=function(){},Ke="RC_TREE_MOTION_".concat(Math.random()),mt={key:Ke},_t={key:Ke,level:0,index:0,pos:"0",node:mt,nodes:[mt]},At={parent:null,children:[],pos:_t.pos,data:mt,title:null,key:Ke,isStart:[],isEnd:[]};function kt(lt,ct,Ge,Ne){return ct===!1||!Ge?lt:lt.slice(0,Math.ceil(Ge/Ne)+1)}function rt(lt){var ct=lt.key,Ge=lt.pos;return(0,Ee.km)(ct,Ge)}function Qe(lt){for(var ct=String(lt.data.key),Ge=lt;Ge.parent;)Ge=Ge.parent,ct="".concat(Ge.data.key," > ").concat(ct);return ct}var Pt=y.forwardRef(function(lt,ct){var Ge=lt.prefixCls,Ne=lt.data,tt=lt.selectable,Et=lt.checkable,Ie=lt.expandedKeys,Oe=lt.selectedKeys,We=lt.checkedKeys,ke=lt.loadedKeys,ze=lt.loadingKeys,it=lt.halfCheckedKeys,It=lt.keyEntities,Dt=lt.disabled,jt=lt.dragging,Lt=lt.dragOverNodeKey,Ht=lt.dropPosition,yt=lt.motion,fn=lt.height,un=lt.itemHeight,bt=lt.virtual,Sn=lt.focusable,pn=lt.activeItem,Fn=lt.focused,xn=lt.tabIndex,Kn=lt.onKeyDown,er=lt.onFocus,Vn=lt.onBlur,Yn=lt.onActiveChange,pr=lt.onListChangeStart,vr=lt.onListChangeEnd,tn=(0,re.Z)(lt,Fe),Xn=y.useRef(null),sr=y.useRef(null);y.useImperativeHandle(ct,function(){return{scrollTo:function(Bt){Xn.current.scrollTo(Bt)},getIndentWidth:function(){return sr.current.offsetWidth}}});var Wn=y.useState(Ie),lr=(0,z.Z)(Wn,2),Or=lr[0],Rr=lr[1],Er=y.useState(Ne),Nr=(0,z.Z)(Er,2),cr=Nr[0],Xr=Nr[1],$t=y.useState(Ne),de=(0,z.Z)($t,2),pe=de[0],Pe=de[1],xe=y.useState([]),Be=(0,z.Z)(xe,2),ot=Be[0],ut=Be[1],nn=y.useState(null),Zt=(0,z.Z)(nn,2),qt=Zt[0],bn=Zt[1],Rt=y.useRef(Ne);Rt.current=Ne;function $e(){var wt=Rt.current;Xr(wt),Pe(wt),ut([]),bn(null),vr()}(0,se.Z)(function(){Rr(Ie);var wt=pt(Or,Ie);if(wt.key!==null)if(wt.add){var Bt=cr.findIndex(function(cn){var Ln=cn.key;return Ln===wt.key}),Kt=kt(we(cr,Ne,wt.key),bt,fn,un),Xt=cr.slice();Xt.splice(Bt+1,0,At),Pe(Xt),ut(Kt),bn("show")}else{var yn=Ne.findIndex(function(cn){var Ln=cn.key;return Ln===wt.key}),Nn=kt(we(Ne,cr,wt.key),bt,fn,un),Un=Ne.slice();Un.splice(yn+1,0,At),Pe(Un),ut(Nn),bn("hide")}else cr!==Ne&&(Xr(Ne),Pe(Ne))},[Ie,Ne]),y.useEffect(function(){jt||$e()},[jt]);var Mt=yt?pe:Ne,Ft={expandedKeys:Ie,selectedKeys:Oe,loadedKeys:ke,loadingKeys:ze,checkedKeys:We,halfCheckedKeys:it,dragOverNodeKey:Lt,dropPosition:Ht,keyEntities:It};return y.createElement(y.Fragment,null,Fn&&pn&&y.createElement("span",{style:He,"aria-live":"assertive"},Qe(pn)),y.createElement("div",null,y.createElement("input",{style:He,disabled:Sn===!1||Dt,tabIndex:Sn!==!1?xn:null,onKeyDown:Kn,onFocus:er,onBlur:Vn,value:"",onChange:st,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(Ge,"-indent")},y.createElement("div",{ref:sr,className:"".concat(Ge,"-indent-unit")}))),y.createElement(ce.Z,(0,ee.Z)({},tn,{data:Mt,itemKey:rt,height:fn,fullHeight:!1,virtual:bt,itemHeight:un,prefixCls:"".concat(Ge,"-list"),ref:Xn,onVisibleChange:function(Bt,Kt){var Xt=new Set(Bt),yn=Kt.filter(function(Nn){return!Xt.has(Nn)});yn.some(function(Nn){return rt(Nn)===Ke})&&$e()}}),function(wt){var Bt=wt.pos,Kt=(0,ee.Z)({},(x(wt.data),wt.data)),Xt=wt.title,yn=wt.key,Nn=wt.isStart,Un=wt.isEnd,cn=(0,Ee.km)(yn,Bt);delete Kt.key,delete Kt.children;var Ln=(0,Ee.H8)(cn,Ft);return y.createElement(Xe,(0,ee.Z)({},Kt,Ln,{title:Xt,active:!!pn&&yn===pn.key,pos:Bt,data:wt.data,isStart:Nn,isEnd:Un,motion:yt,motionNodes:yn===Ke?ot:null,motionType:qt,onMotionStart:pr,onMotionEnd:$e,treeNodeRequiredProps:Ft,onMouseMove:function(){Yn(null)}}))}))});Pt.displayName="NodeList";var zt=Pt,Ct=te(35654),sn=te(90782),Ze=te(67841),St=10,xt=function(lt){(0,le.Z)(Ge,lt);var ct=(0,me.Z)(Ge);function Ge(){var Ne;(0,fe.Z)(this,Ge);for(var tt=arguments.length,Et=new Array(tt),Ie=0;Ie<tt;Ie++)Et[Ie]=arguments[Ie];return Ne=ct.call.apply(ct,[this].concat(Et)),Ne.destroyed=!1,Ne.delayedDragEnterLogic=void 0,Ne.loadingRetryTimes={},Ne.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,Ee.w$)()},Ne.dragStartMousePosition=null,Ne.dragNode=void 0,Ne.currentMouseOverDroppableNodeKey=null,Ne.listRef=y.createRef(),Ne.onNodeDragStart=function(Oe,We){var ke=Ne.state,ze=ke.expandedKeys,it=ke.keyEntities,It=Ne.props.onDragStart,Dt=We.props.eventKey;Ne.dragNode=We,Ne.dragStartMousePosition={x:Oe.clientX,y:Oe.clientY};var jt=(0,Ct._5)(ze,Dt);Ne.setState({draggingNodeKey:Dt,dragChildrenKeys:(0,Ct.wA)(Dt,it),indent:Ne.listRef.current.getIndentWidth()}),Ne.setExpandedKeys(jt),window.addEventListener("dragend",Ne.onWindowDragEnd),It==null||It({event:Oe,node:(0,Ee.F)(We.props)})},Ne.onNodeDragEnter=function(Oe,We){var ke=Ne.state,ze=ke.expandedKeys,it=ke.keyEntities,It=ke.dragChildrenKeys,Dt=ke.flattenNodes,jt=ke.indent,Lt=Ne.props,Ht=Lt.onDragEnter,yt=Lt.onExpand,fn=Lt.allowDrop,un=Lt.direction,bt=We.props,Sn=bt.pos,pn=bt.eventKey,Fn=(0,ue.Z)(Ne),xn=Fn.dragNode;if(Ne.currentMouseOverDroppableNodeKey!==pn&&(Ne.currentMouseOverDroppableNodeKey=pn),!xn){Ne.resetDragState();return}var Kn=(0,Ct.OM)(Oe,xn,We,jt,Ne.dragStartMousePosition,fn,Dt,it,ze,un),er=Kn.dropPosition,Vn=Kn.dropLevelOffset,Yn=Kn.dropTargetKey,pr=Kn.dropContainerKey,vr=Kn.dropTargetPos,tn=Kn.dropAllowed,Xn=Kn.dragOverNodeKey;if(It.indexOf(Yn)!==-1||!tn){Ne.resetDragState();return}if(Ne.delayedDragEnterLogic||(Ne.delayedDragEnterLogic={}),Object.keys(Ne.delayedDragEnterLogic).forEach(function(sr){clearTimeout(Ne.delayedDragEnterLogic[sr])}),xn.props.eventKey!==We.props.eventKey&&(Oe.persist(),Ne.delayedDragEnterLogic[Sn]=window.setTimeout(function(){if(Ne.state.draggingNodeKey!==null){var sr=(0,Se.Z)(ze),Wn=(0,Ze.Z)(it,We.props.eventKey);Wn&&(Wn.children||[]).length&&(sr=(0,Ct.L0)(ze,We.props.eventKey)),"expandedKeys"in Ne.props||Ne.setExpandedKeys(sr),yt==null||yt(sr,{node:(0,Ee.F)(We.props),expanded:!0,nativeEvent:Oe.nativeEvent})}},800)),xn.props.eventKey===Yn&&Vn===0){Ne.resetDragState();return}Ne.setState({dragOverNodeKey:Xn,dropPosition:er,dropLevelOffset:Vn,dropTargetKey:Yn,dropContainerKey:pr,dropTargetPos:vr,dropAllowed:tn}),Ht==null||Ht({event:Oe,node:(0,Ee.F)(We.props),expandedKeys:ze})},Ne.onNodeDragOver=function(Oe,We){var ke=Ne.state,ze=ke.dragChildrenKeys,it=ke.flattenNodes,It=ke.keyEntities,Dt=ke.expandedKeys,jt=ke.indent,Lt=Ne.props,Ht=Lt.onDragOver,yt=Lt.allowDrop,fn=Lt.direction,un=(0,ue.Z)(Ne),bt=un.dragNode;if(bt){var Sn=(0,Ct.OM)(Oe,bt,We,jt,Ne.dragStartMousePosition,yt,it,It,Dt,fn),pn=Sn.dropPosition,Fn=Sn.dropLevelOffset,xn=Sn.dropTargetKey,Kn=Sn.dropContainerKey,er=Sn.dropAllowed,Vn=Sn.dropTargetPos,Yn=Sn.dragOverNodeKey;ze.indexOf(xn)!==-1||!er||(bt.props.eventKey===xn&&Fn===0?Ne.state.dropPosition===null&&Ne.state.dropLevelOffset===null&&Ne.state.dropTargetKey===null&&Ne.state.dropContainerKey===null&&Ne.state.dropTargetPos===null&&Ne.state.dropAllowed===!1&&Ne.state.dragOverNodeKey===null||Ne.resetDragState():pn===Ne.state.dropPosition&&Fn===Ne.state.dropLevelOffset&&xn===Ne.state.dropTargetKey&&Kn===Ne.state.dropContainerKey&&Vn===Ne.state.dropTargetPos&&er===Ne.state.dropAllowed&&Yn===Ne.state.dragOverNodeKey||Ne.setState({dropPosition:pn,dropLevelOffset:Fn,dropTargetKey:xn,dropContainerKey:Kn,dropTargetPos:Vn,dropAllowed:er,dragOverNodeKey:Yn}),Ht==null||Ht({event:Oe,node:(0,Ee.F)(We.props)}))}},Ne.onNodeDragLeave=function(Oe,We){Ne.currentMouseOverDroppableNodeKey===We.props.eventKey&&!Oe.currentTarget.contains(Oe.relatedTarget)&&(Ne.resetDragState(),Ne.currentMouseOverDroppableNodeKey=null);var ke=Ne.props.onDragLeave;ke==null||ke({event:Oe,node:(0,Ee.F)(We.props)})},Ne.onWindowDragEnd=function(Oe){Ne.onNodeDragEnd(Oe,null,!0),window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDragEnd=function(Oe,We){var ke=Ne.props.onDragEnd;Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),ke==null||ke({event:Oe,node:(0,Ee.F)(We.props)}),Ne.dragNode=null,window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDrop=function(Oe,We){var ke,ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,it=Ne.state,It=it.dragChildrenKeys,Dt=it.dropPosition,jt=it.dropTargetKey,Lt=it.dropTargetPos,Ht=it.dropAllowed;if(Ht){var yt=Ne.props.onDrop;if(Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),jt!==null){var fn=(0,ve.Z)((0,ve.Z)({},(0,Ee.H8)(jt,Ne.getTreeNodeRequiredProps())),{},{active:((ke=Ne.getActiveItem())===null||ke===void 0?void 0:ke.key)===jt,data:(0,Ze.Z)(Ne.state.keyEntities,jt).node}),un=It.indexOf(jt)!==-1;(0,a.ZP)(!un,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var bt=(0,Ct.yx)(Lt),Sn={event:Oe,node:(0,Ee.F)(fn),dragNode:Ne.dragNode?(0,Ee.F)(Ne.dragNode.props):null,dragNodesKeys:[Ne.dragNode.props.eventKey].concat(It),dropToGap:Dt!==0,dropPosition:Dt+Number(bt[bt.length-1])};ze||yt==null||yt(Sn),Ne.dragNode=null}}},Ne.cleanDragState=function(){var Oe=Ne.state.draggingNodeKey;Oe!==null&&Ne.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ne.dragStartMousePosition=null,Ne.currentMouseOverDroppableNodeKey=null},Ne.triggerExpandActionExpand=function(Oe,We){var ke=Ne.state,ze=ke.expandedKeys,it=ke.flattenNodes,It=We.expanded,Dt=We.key,jt=We.isLeaf;if(!(jt||Oe.shiftKey||Oe.metaKey||Oe.ctrlKey)){var Lt=it.filter(function(yt){return yt.key===Dt})[0],Ht=(0,Ee.F)((0,ve.Z)((0,ve.Z)({},(0,Ee.H8)(Dt,Ne.getTreeNodeRequiredProps())),{},{data:Lt.data}));Ne.setExpandedKeys(It?(0,Ct._5)(ze,Dt):(0,Ct.L0)(ze,Dt)),Ne.onNodeExpand(Oe,Ht)}},Ne.onNodeClick=function(Oe,We){var ke=Ne.props,ze=ke.onClick,it=ke.expandAction;it==="click"&&Ne.triggerExpandActionExpand(Oe,We),ze==null||ze(Oe,We)},Ne.onNodeDoubleClick=function(Oe,We){var ke=Ne.props,ze=ke.onDoubleClick,it=ke.expandAction;it==="doubleClick"&&Ne.triggerExpandActionExpand(Oe,We),ze==null||ze(Oe,We)},Ne.onNodeSelect=function(Oe,We){var ke=Ne.state.selectedKeys,ze=Ne.state,it=ze.keyEntities,It=ze.fieldNames,Dt=Ne.props,jt=Dt.onSelect,Lt=Dt.multiple,Ht=We.selected,yt=We[It.key],fn=!Ht;fn?Lt?ke=(0,Ct.L0)(ke,yt):ke=[yt]:ke=(0,Ct._5)(ke,yt);var un=ke.map(function(bt){var Sn=(0,Ze.Z)(it,bt);return Sn?Sn.node:null}).filter(function(bt){return bt});Ne.setUncontrolledState({selectedKeys:ke}),jt==null||jt(ke,{event:"select",selected:fn,node:We,selectedNodes:un,nativeEvent:Oe.nativeEvent})},Ne.onNodeCheck=function(Oe,We,ke){var ze=Ne.state,it=ze.keyEntities,It=ze.checkedKeys,Dt=ze.halfCheckedKeys,jt=Ne.props,Lt=jt.checkStrictly,Ht=jt.onCheck,yt=We.key,fn,un={event:"check",node:We,checked:ke,nativeEvent:Oe.nativeEvent};if(Lt){var bt=ke?(0,Ct.L0)(It,yt):(0,Ct._5)(It,yt),Sn=(0,Ct._5)(Dt,yt);fn={checked:bt,halfChecked:Sn},un.checkedNodes=bt.map(function(Vn){return(0,Ze.Z)(it,Vn)}).filter(function(Vn){return Vn}).map(function(Vn){return Vn.node}),Ne.setUncontrolledState({checkedKeys:bt})}else{var pn=(0,sn.S)([].concat((0,Se.Z)(It),[yt]),!0,it),Fn=pn.checkedKeys,xn=pn.halfCheckedKeys;if(!ke){var Kn=new Set(Fn);Kn.delete(yt);var er=(0,sn.S)(Array.from(Kn),{checked:!1,halfCheckedKeys:xn},it);Fn=er.checkedKeys,xn=er.halfCheckedKeys}fn=Fn,un.checkedNodes=[],un.checkedNodesPositions=[],un.halfCheckedKeys=xn,Fn.forEach(function(Vn){var Yn=(0,Ze.Z)(it,Vn);if(Yn){var pr=Yn.node,vr=Yn.pos;un.checkedNodes.push(pr),un.checkedNodesPositions.push({node:pr,pos:vr})}}),Ne.setUncontrolledState({checkedKeys:Fn},!1,{halfCheckedKeys:xn})}Ht==null||Ht(fn,un)},Ne.onNodeLoad=function(Oe){var We=Oe.key,ke=new Promise(function(ze,it){Ne.setState(function(It){var Dt=It.loadedKeys,jt=Dt===void 0?[]:Dt,Lt=It.loadingKeys,Ht=Lt===void 0?[]:Lt,yt=Ne.props,fn=yt.loadData,un=yt.onLoad;if(!fn||jt.indexOf(We)!==-1||Ht.indexOf(We)!==-1)return null;var bt=fn(Oe);return bt.then(function(){var Sn=Ne.state.loadedKeys,pn=(0,Ct.L0)(Sn,We);un==null||un(pn,{event:"load",node:Oe}),Ne.setUncontrolledState({loadedKeys:pn}),Ne.setState(function(Fn){return{loadingKeys:(0,Ct._5)(Fn.loadingKeys,We)}}),ze()}).catch(function(Sn){if(Ne.setState(function(Fn){return{loadingKeys:(0,Ct._5)(Fn.loadingKeys,We)}}),Ne.loadingRetryTimes[We]=(Ne.loadingRetryTimes[We]||0)+1,Ne.loadingRetryTimes[We]>=St){var pn=Ne.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ne.setUncontrolledState({loadedKeys:(0,Ct.L0)(pn,We)}),ze()}it(Sn)}),{loadingKeys:(0,Ct.L0)(Ht,We)}})});return ke.catch(function(){}),ke},Ne.onNodeMouseEnter=function(Oe,We){var ke=Ne.props.onMouseEnter;ke==null||ke({event:Oe,node:We})},Ne.onNodeMouseLeave=function(Oe,We){var ke=Ne.props.onMouseLeave;ke==null||ke({event:Oe,node:We})},Ne.onNodeContextMenu=function(Oe,We){var ke=Ne.props.onRightClick;ke&&(Oe.preventDefault(),ke({event:Oe,node:We}))},Ne.onFocus=function(){var Oe=Ne.props.onFocus;Ne.setState({focused:!0});for(var We=arguments.length,ke=new Array(We),ze=0;ze<We;ze++)ke[ze]=arguments[ze];Oe==null||Oe.apply(void 0,ke)},Ne.onBlur=function(){var Oe=Ne.props.onBlur;Ne.setState({focused:!1}),Ne.onActiveChange(null);for(var We=arguments.length,ke=new Array(We),ze=0;ze<We;ze++)ke[ze]=arguments[ze];Oe==null||Oe.apply(void 0,ke)},Ne.getTreeNodeRequiredProps=function(){var Oe=Ne.state,We=Oe.expandedKeys,ke=Oe.selectedKeys,ze=Oe.loadedKeys,it=Oe.loadingKeys,It=Oe.checkedKeys,Dt=Oe.halfCheckedKeys,jt=Oe.dragOverNodeKey,Lt=Oe.dropPosition,Ht=Oe.keyEntities;return{expandedKeys:We||[],selectedKeys:ke||[],loadedKeys:ze||[],loadingKeys:it||[],checkedKeys:It||[],halfCheckedKeys:Dt||[],dragOverNodeKey:jt,dropPosition:Lt,keyEntities:Ht}},Ne.setExpandedKeys=function(Oe){var We=Ne.state,ke=We.treeData,ze=We.fieldNames,it=(0,Ee.oH)(ke,Oe,ze);Ne.setUncontrolledState({expandedKeys:Oe,flattenNodes:it},!0)},Ne.onNodeExpand=function(Oe,We){var ke=Ne.state.expandedKeys,ze=Ne.state,it=ze.listChanging,It=ze.fieldNames,Dt=Ne.props,jt=Dt.onExpand,Lt=Dt.loadData,Ht=We.expanded,yt=We[It.key];if(!it){var fn=ke.indexOf(yt),un=!Ht;if((0,a.ZP)(Ht&&fn!==-1||!Ht&&fn===-1,"Expand state not sync with index check"),un?ke=(0,Ct.L0)(ke,yt):ke=(0,Ct._5)(ke,yt),Ne.setExpandedKeys(ke),jt==null||jt(ke,{node:We,expanded:un,nativeEvent:Oe.nativeEvent}),un&&Lt){var bt=Ne.onNodeLoad(We);bt&&bt.then(function(){var Sn=(0,Ee.oH)(Ne.state.treeData,ke,It);Ne.setUncontrolledState({flattenNodes:Sn})}).catch(function(){var Sn=Ne.state.expandedKeys,pn=(0,Ct._5)(Sn,yt);Ne.setExpandedKeys(pn)})}}},Ne.onListChangeStart=function(){Ne.setUncontrolledState({listChanging:!0})},Ne.onListChangeEnd=function(){setTimeout(function(){Ne.setUncontrolledState({listChanging:!1})})},Ne.onActiveChange=function(Oe){var We=Ne.state.activeKey,ke=Ne.props.onActiveChange;We!==Oe&&(Ne.setState({activeKey:Oe}),Oe!==null&&Ne.scrollTo({key:Oe}),ke==null||ke(Oe))},Ne.getActiveItem=function(){var Oe=Ne.state,We=Oe.activeKey,ke=Oe.flattenNodes;return We===null?null:ke.find(function(ze){var it=ze.key;return it===We})||null},Ne.offsetActiveKey=function(Oe){var We=Ne.state,ke=We.flattenNodes,ze=We.activeKey,it=ke.findIndex(function(jt){var Lt=jt.key;return Lt===ze});it===-1&&Oe<0&&(it=ke.length),it=(it+Oe+ke.length)%ke.length;var It=ke[it];if(It){var Dt=It.key;Ne.onActiveChange(Dt)}else Ne.onActiveChange(null)},Ne.onKeyDown=function(Oe){var We=Ne.state,ke=We.activeKey,ze=We.expandedKeys,it=We.checkedKeys,It=We.fieldNames,Dt=Ne.props,jt=Dt.onKeyDown,Lt=Dt.checkable,Ht=Dt.selectable;switch(Oe.which){case oe.Z.UP:{Ne.offsetActiveKey(-1),Oe.preventDefault();break}case oe.Z.DOWN:{Ne.offsetActiveKey(1),Oe.preventDefault();break}}var yt=Ne.getActiveItem();if(yt&&yt.data){var fn=Ne.getTreeNodeRequiredProps(),un=yt.data.isLeaf===!1||!!(yt.data[It.children]||[]).length,bt=(0,Ee.F)((0,ve.Z)((0,ve.Z)({},(0,Ee.H8)(ke,fn)),{},{data:yt.data,active:!0}));switch(Oe.which){case oe.Z.LEFT:{un&&ze.includes(ke)?Ne.onNodeExpand({},bt):yt.parent&&Ne.onActiveChange(yt.parent.key),Oe.preventDefault();break}case oe.Z.RIGHT:{un&&!ze.includes(ke)?Ne.onNodeExpand({},bt):yt.children&&yt.children.length&&Ne.onActiveChange(yt.children[0].key),Oe.preventDefault();break}case oe.Z.ENTER:case oe.Z.SPACE:{Lt&&!bt.disabled&&bt.checkable!==!1&&!bt.disableCheckbox?Ne.onNodeCheck({},bt,!it.includes(ke)):!Lt&&Ht&&!bt.disabled&&bt.selectable!==!1&&Ne.onNodeSelect({},bt);break}}}jt==null||jt(Oe)},Ne.setUncontrolledState=function(Oe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ne.destroyed){var ze=!1,it=!0,It={};Object.keys(Oe).forEach(function(Dt){if(Dt in Ne.props){it=!1;return}ze=!0,It[Dt]=Oe[Dt]}),ze&&(!We||it)&&Ne.setState((0,ve.Z)((0,ve.Z)({},It),ke))}},Ne.scrollTo=function(Oe){Ne.listRef.current.scrollTo(Oe)},Ne}return(0,ie.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var tt=this.props.activeKey;tt!==void 0&&tt!==this.state.activeKey&&(this.setState({activeKey:tt}),tt!==null&&this.scrollTo({key:tt}))}},{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 tt,Et=this.state,Ie=Et.focused,Oe=Et.flattenNodes,We=Et.keyEntities,ke=Et.draggingNodeKey,ze=Et.activeKey,it=Et.dropLevelOffset,It=Et.dropContainerKey,Dt=Et.dropTargetKey,jt=Et.dropPosition,Lt=Et.dragOverNodeKey,Ht=Et.indent,yt=this.props,fn=yt.prefixCls,un=yt.className,bt=yt.style,Sn=yt.showLine,pn=yt.focusable,Fn=yt.tabIndex,xn=Fn===void 0?0:Fn,Kn=yt.selectable,er=yt.showIcon,Vn=yt.icon,Yn=yt.switcherIcon,pr=yt.draggable,vr=yt.checkable,tn=yt.checkStrictly,Xn=yt.disabled,sr=yt.motion,Wn=yt.loadData,lr=yt.filterTreeNode,Or=yt.height,Rr=yt.itemHeight,Er=yt.virtual,Nr=yt.titleRender,cr=yt.dropIndicatorRender,Xr=yt.onContextMenu,$t=yt.onScroll,de=yt.direction,pe=yt.rootClassName,Pe=yt.rootStyle,xe=(0,ne.Z)(this.props,{aria:!0,data:!0}),Be;return pr&&((0,be.Z)(pr)==="object"?Be=pr:typeof pr=="function"?Be={nodeDraggable:pr}:Be={}),y.createElement(E.k.Provider,{value:{prefixCls:fn,selectable:Kn,showIcon:er,icon:Vn,switcherIcon:Yn,draggable:Be,draggingNodeKey:ke,checkable:vr,checkStrictly:tn,disabled:Xn,keyEntities:We,dropLevelOffset:it,dropContainerKey:It,dropTargetKey:Dt,dropPosition:jt,dragOverNodeKey:Lt,indent:Ht,direction:de,dropIndicatorRender:cr,loadData:Wn,filterTreeNode:lr,titleRender:Nr,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}},y.createElement("div",{role:"tree",className:he()(fn,un,pe,(tt={},(0,ge.Z)(tt,"".concat(fn,"-show-line"),Sn),(0,ge.Z)(tt,"".concat(fn,"-focused"),Ie),(0,ge.Z)(tt,"".concat(fn,"-active-focused"),ze!==null),tt)),style:Pe},y.createElement(zt,(0,ee.Z)({ref:this.listRef,prefixCls:fn,style:bt,data:Oe,disabled:Xn,selectable:Kn,checkable:!!vr,motion:sr,dragging:ke!==null,height:Or,itemHeight:Rr,virtual:Er,focusable:pn,focused:Ie,tabIndex:xn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Xr,onScroll:$t},this.getTreeNodeRequiredProps(),xe))))}}],[{key:"getDerivedStateFromProps",value:function(tt,Et){var Ie=Et.prevProps,Oe={prevProps:tt};function We(pn){return!Ie&&pn in tt||Ie&&Ie[pn]!==tt[pn]}var ke,ze=Et.fieldNames;if(We("fieldNames")&&(ze=(0,Ee.w$)(tt.fieldNames),Oe.fieldNames=ze),We("treeData")?ke=tt.treeData:We("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ke=(0,Ee.zn)(tt.children)),ke){Oe.treeData=ke;var it=(0,Ee.I8)(ke,{fieldNames:ze});Oe.keyEntities=(0,ve.Z)((0,ge.Z)({},Ke,_t),it.keyEntities)}var It=Oe.keyEntities||Et.keyEntities;if(We("expandedKeys")||Ie&&We("autoExpandParent"))Oe.expandedKeys=tt.autoExpandParent||!Ie&&tt.defaultExpandParent?(0,Ct.r7)(tt.expandedKeys,It):tt.expandedKeys;else if(!Ie&&tt.defaultExpandAll){var Dt=(0,ve.Z)({},It);delete Dt[Ke],Oe.expandedKeys=Object.keys(Dt).map(function(pn){return Dt[pn].key})}else!Ie&&tt.defaultExpandedKeys&&(Oe.expandedKeys=tt.autoExpandParent||tt.defaultExpandParent?(0,Ct.r7)(tt.defaultExpandedKeys,It):tt.defaultExpandedKeys);if(Oe.expandedKeys||delete Oe.expandedKeys,ke||Oe.expandedKeys){var jt=(0,Ee.oH)(ke||Et.treeData,Oe.expandedKeys||Et.expandedKeys,ze);Oe.flattenNodes=jt}if(tt.selectable&&(We("selectedKeys")?Oe.selectedKeys=(0,Ct.BT)(tt.selectedKeys,tt):!Ie&&tt.defaultSelectedKeys&&(Oe.selectedKeys=(0,Ct.BT)(tt.defaultSelectedKeys,tt))),tt.checkable){var Lt;if(We("checkedKeys")?Lt=(0,Ct.E6)(tt.checkedKeys)||{}:!Ie&&tt.defaultCheckedKeys?Lt=(0,Ct.E6)(tt.defaultCheckedKeys)||{}:ke&&(Lt=(0,Ct.E6)(tt.checkedKeys)||{checkedKeys:Et.checkedKeys,halfCheckedKeys:Et.halfCheckedKeys}),Lt){var Ht=Lt,yt=Ht.checkedKeys,fn=yt===void 0?[]:yt,un=Ht.halfCheckedKeys,bt=un===void 0?[]:un;if(!tt.checkStrictly){var Sn=(0,sn.S)(fn,!0,It);fn=Sn.checkedKeys,bt=Sn.halfCheckedKeys}Oe.checkedKeys=fn,Oe.halfCheckedKeys=bt}}return We("loadedKeys")&&(Oe.loadedKeys=tt.loadedKeys),Oe}}]),Ge}(y.Component);xt.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:b,allowDrop:function(){return!0},expandAction:!1},xt.TreeNode=ye.Z;var ln=xt,Gt=ln},35654:function(ht,Ve,te){"use strict";te.d(Ve,{BT:function(){return y},E6:function(){return x},L0:function(){return me},OM:function(){return a},_5:function(){return le},r7:function(){return z},wA:function(){return he},yx:function(){return ae}});var ee=te(3300),ge=te(34666),be=te(48736),ve=te(59301),Se=te(39417),fe=te(67841),ie=te(71430),ue=null;function le(re,se){if(!re)return[];var ce=re.slice(),_e=ce.indexOf(se);return _e>=0&&ce.splice(_e,1),ce}function me(re,se){var ce=(re||[]).slice();return ce.indexOf(se)===-1&&ce.push(se),ce}function ae(re){return re.split("-")}function he(re,se){var ce=[],_e=(0,fe.Z)(se,re);function ye(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];De.forEach(function(Ee){var je=Ee.key,Le=Ee.children;ce.push(je),ye(Le)})}return ye(_e.children),ce}function oe(re){if(re.parent){var se=ae(re.pos);return Number(se[se.length-1])===re.parent.children.length-1}return!1}function ne(re){var se=ae(re.pos);return Number(se[se.length-1])===0}function a(re,se,ce,_e,ye,De,Ee,je,Le,ft){var Xe,pt=re.clientX,we=re.clientY,Fe=re.target.getBoundingClientRect(),He=Fe.top,st=Fe.height,Ke=(ft==="rtl"?-1:1)*(((ye==null?void 0:ye.x)||0)-pt),mt=(Ke-12)/_e,_t=(0,fe.Z)(je,ce.props.eventKey);if(we<He+st/2){var At=Ee.findIndex(function(Gt){return Gt.key===_t.key}),kt=At<=0?0:At-1,rt=Ee[kt].key;_t=(0,fe.Z)(je,rt)}var Qe=_t.key,Pt=_t,zt=_t.key,Ct=0,sn=0;if(!Le.includes(Qe))for(var Ze=0;Ze<mt&&oe(_t);Ze+=1)_t=_t.parent,sn+=1;var St=se.props.data,xt=_t.node,ln=!0;return ne(_t)&&_t.level===0&&we<He+st/2&&De({dragNode:St,dropNode:xt,dropPosition:-1})&&_t.key===ce.props.eventKey?Ct=-1:(Pt.children||[]).length&&Le.includes(zt)?De({dragNode:St,dropNode:xt,dropPosition:0})?Ct=0:ln=!1:sn===0?mt>-1.5?De({dragNode:St,dropNode:xt,dropPosition:1})?Ct=1:ln=!1:De({dragNode:St,dropNode:xt,dropPosition:0})?Ct=0:De({dragNode:St,dropNode:xt,dropPosition:1})?Ct=1:ln=!1:De({dragNode:St,dropNode:xt,dropPosition:1})?Ct=1:ln=!1,{dropPosition:Ct,dropLevelOffset:sn,dropTargetKey:_t.key,dropTargetPos:_t.pos,dragOverNodeKey:zt,dropContainerKey:Ct===0?null:((Xe=_t.parent)===null||Xe===void 0?void 0:Xe.key)||null,dropAllowed:ln}}function y(re,se){if(re){var ce=se.multiple;return ce?re.slice():re.length?[re[0]]:re}}var E=function(se){return se};function b(re,se){if(!re)return[];var ce=se||{},_e=ce.processProps,ye=_e===void 0?E:_e,De=Array.isArray(re)?re:[re];return De.map(function(Ee){var je=Ee.children,Le=_objectWithoutProperties(Ee,ue),ft=b(je,se);return React.createElement(TreeNode,_extends({key:Le.key},ye(Le)),ft)})}function x(re){if(!re)return null;var se;if(Array.isArray(re))se={checkedKeys:re,halfCheckedKeys:void 0};else if((0,ge.Z)(re)==="object")se={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return se}function z(re,se){var ce=new Set;function _e(ye){if(!ce.has(ye)){var De=(0,fe.Z)(se,ye);if(De){ce.add(ye);var Ee=De.parent,je=De.node;je.disabled||Ee&&_e(Ee.key)}}}return(re||[]).forEach(function(ye){_e(ye)}),(0,ee.Z)(ce)}},90782:function(ht,Ve,te){"use strict";te.d(Ve,{S:function(){return ie}});var ee=te(48736),ge=te(67841);function be(ue,le){var me=new Set;return ue.forEach(function(ae){le.has(ae)||me.add(ae)}),me}function ve(ue){var le=ue||{},me=le.disabled,ae=le.disableCheckbox,he=le.checkable;return!!(me||ae)||he===!1}function Se(ue,le,me,ae){for(var he=new Set(ue),oe=new Set,ne=0;ne<=me;ne+=1){var a=le.get(ne)||new Set;a.forEach(function(x){var z=x.key,re=x.node,se=x.children,ce=se===void 0?[]:se;he.has(z)&&!ae(re)&&ce.filter(function(_e){return!ae(_e.node)}).forEach(function(_e){he.add(_e.key)})})}for(var y=new Set,E=me;E>=0;E-=1){var b=le.get(E)||new Set;b.forEach(function(x){var z=x.parent,re=x.node;if(!(ae(re)||!x.parent||y.has(x.parent.key))){if(ae(x.parent.node)){y.add(z.key);return}var se=!0,ce=!1;(z.children||[]).filter(function(_e){return!ae(_e.node)}).forEach(function(_e){var ye=_e.key,De=he.has(ye);se&&!De&&(se=!1),!ce&&(De||oe.has(ye))&&(ce=!0)}),se&&he.add(z.key),ce&&oe.add(z.key),y.add(z.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(be(oe,he))}}function fe(ue,le,me,ae,he){for(var oe=new Set(ue),ne=new Set(le),a=0;a<=ae;a+=1){var y=me.get(a)||new Set;y.forEach(function(z){var re=z.key,se=z.node,ce=z.children,_e=ce===void 0?[]:ce;!oe.has(re)&&!ne.has(re)&&!he(se)&&_e.filter(function(ye){return!he(ye.node)}).forEach(function(ye){oe.delete(ye.key)})})}ne=new Set;for(var E=new Set,b=ae;b>=0;b-=1){var x=me.get(b)||new Set;x.forEach(function(z){var re=z.parent,se=z.node;if(!(he(se)||!z.parent||E.has(z.parent.key))){if(he(z.parent.node)){E.add(re.key);return}var ce=!0,_e=!1;(re.children||[]).filter(function(ye){return!he(ye.node)}).forEach(function(ye){var De=ye.key,Ee=oe.has(De);ce&&!Ee&&(ce=!1),!_e&&(Ee||ne.has(De))&&(_e=!0)}),ce||oe.delete(re.key),_e&&ne.add(re.key),E.add(re.key)}})}return{checkedKeys:Array.from(oe),halfCheckedKeys:Array.from(be(ne,oe))}}function ie(ue,le,me,ae){var he=[],oe;ae?oe=ae:oe=ve;var ne=new Set(ue.filter(function(b){var x=!!(0,ge.Z)(me,b);return x||he.push(b),x})),a=new Map,y=0;Object.keys(me).forEach(function(b){var x=me[b],z=x.level,re=a.get(z);re||(re=new Set,a.set(z,re)),re.add(x),y=Math.max(y,z)}),(0,ee.ZP)(!he.length,"Tree missing follow keys: ".concat(he.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return le===!0?E=Se(ne,a,y,oe):E=fe(ne,le.halfCheckedKeys,a,y,oe),E}},67841:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ee}});function ee(ge,be){return ge[be]}},71430:function(ht,Ve,te){"use strict";te.d(Ve,{F:function(){return z},H8:function(){return x},I8:function(){return b},km:function(){return he},oH:function(){return y},w$:function(){return oe},zn:function(){return a}});var ee=te(34666),ge=te(3300),be=te(27247),ve=te(43079),Se=te(11592),fe=te(2738),ie=te(48736),ue=te(67841),le=["children"];function me(re,se){return"".concat(re,"-").concat(se)}function ae(re){return re&&re.type&&re.type.isTreeNode}function he(re,se){return re!=null?re:se}function oe(re){var se=re||{},ce=se.title,_e=se._title,ye=se.key,De=se.children,Ee=ce||"title";return{title:Ee,_title:_e||[Ee],key:ye||"key",children:De||"children"}}function ne(re,se){var ce=new Map;function _e(ye){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ye||[]).forEach(function(Ee){var je=Ee[se.key],Le=Ee[se.children];warning(je!=null,"Tree node must have a certain key: [".concat(De).concat(je,"]"));var ft=String(je);warning(!ce.has(ft)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(ft)),ce.set(ft,!0),_e(Le,"".concat(De).concat(ft," > "))})}_e(re)}function a(re){function se(ce){var _e=(0,Se.Z)(ce);return _e.map(function(ye){if(!ae(ye))return(0,ie.ZP)(!ye,"Tree/TreeNode can only accept TreeNode as children."),null;var De=ye.key,Ee=ye.props,je=Ee.children,Le=(0,ve.Z)(Ee,le),ft=(0,be.Z)({key:De},Le),Xe=se(je);return Xe.length&&(ft.children=Xe),ft}).filter(function(ye){return ye})}return se(re)}function y(re,se,ce){var _e=oe(ce),ye=_e._title,De=_e.key,Ee=_e.children,je=new Set(se===!0?[]:se),Le=[];function ft(Xe){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xe.map(function(we,Fe){for(var He=me(pt?pt.pos:"0",Fe),st=he(we[De],He),Ke,mt=0;mt<ye.length;mt+=1){var _t=ye[mt];if(we[_t]!==void 0){Ke=we[_t];break}}var At=(0,be.Z)((0,be.Z)({},(0,fe.Z)(we,[].concat((0,ge.Z)(ye),[De,Ee]))),{},{title:Ke,key:st,parent:pt,pos:He,children:null,data:we,isStart:[].concat((0,ge.Z)(pt?pt.isStart:[]),[Fe===0]),isEnd:[].concat((0,ge.Z)(pt?pt.isEnd:[]),[Fe===Xe.length-1])});return Le.push(At),se===!0||je.has(st)?At.children=ft(we[Ee]||[],At):At.children=[],At})}return ft(re),Le}function E(re,se,ce){var _e={};(0,ee.Z)(ce)==="object"?_e=ce:_e={externalGetKey:ce},_e=_e||{};var ye=_e,De=ye.childrenPropName,Ee=ye.externalGetKey,je=ye.fieldNames,Le=oe(je),ft=Le.key,Xe=Le.children,pt=De||Xe,we;Ee?typeof Ee=="string"?we=function(st){return st[Ee]}:typeof Ee=="function"&&(we=function(st){return Ee(st)}):we=function(st,Ke){return he(st[ft],Ke)};function Fe(He,st,Ke,mt){var _t=He?He[pt]:re,At=He?me(Ke.pos,st):"0",kt=He?[].concat((0,ge.Z)(mt),[He]):[];if(He){var rt=we(He,At),Qe={node:He,index:st,pos:At,key:rt,parentPos:Ke.node?Ke.pos:null,level:Ke.level+1,nodes:kt};se(Qe)}_t&&_t.forEach(function(Pt,zt){Fe(Pt,zt,{node:He,pos:At,level:Ke?Ke.level+1:-1},kt)})}Fe(null)}function b(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=se.initWrapper,_e=se.processEntity,ye=se.onProcessFinished,De=se.externalGetKey,Ee=se.childrenPropName,je=se.fieldNames,Le=arguments.length>2?arguments[2]:void 0,ft=De||Le,Xe={},pt={},we={posEntities:Xe,keyEntities:pt};return ce&&(we=ce(we)||we),E(re,function(Fe){var He=Fe.node,st=Fe.index,Ke=Fe.pos,mt=Fe.key,_t=Fe.parentPos,At=Fe.level,kt=Fe.nodes,rt={node:He,nodes:kt,index:st,key:mt,pos:Ke,level:At},Qe=he(mt,Ke);Xe[Ke]=rt,pt[Qe]=rt,rt.parent=Xe[_t],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),_e&&_e(rt,we)},{externalGetKey:ft,childrenPropName:Ee,fieldNames:je}),ye&&ye(we),we}function x(re,se){var ce=se.expandedKeys,_e=se.selectedKeys,ye=se.loadedKeys,De=se.loadingKeys,Ee=se.checkedKeys,je=se.halfCheckedKeys,Le=se.dragOverNodeKey,ft=se.dropPosition,Xe=se.keyEntities,pt=(0,ue.Z)(Xe,re),we={eventKey:re,expanded:ce.indexOf(re)!==-1,selected:_e.indexOf(re)!==-1,loaded:ye.indexOf(re)!==-1,loading:De.indexOf(re)!==-1,checked:Ee.indexOf(re)!==-1,halfChecked:je.indexOf(re)!==-1,pos:String(pt?pt.pos:""),dragOver:Le===re&&ft===0,dragOverGapTop:Le===re&&ft===-1,dragOverGapBottom:Le===re&&ft===1};return we}function z(re){var se=re.data,ce=re.expanded,_e=re.selected,ye=re.checked,De=re.loaded,Ee=re.loading,je=re.halfChecked,Le=re.dragOver,ft=re.dragOverGapTop,Xe=re.dragOverGapBottom,pt=re.pos,we=re.active,Fe=re.eventKey,He=(0,be.Z)((0,be.Z)({},se),{},{expanded:ce,selected:_e,checked:ye,loaded:De,loading:Ee,halfChecked:je,dragOver:Le,dragOverGapTop:ft,dragOverGapBottom:Xe,pos:pt,active:we,key:Fe});return"props"in He||Object.defineProperty(He,"props",{get:function(){return(0,ie.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),re}}),He}},8224:function(ht,Ve,te){"use strict";te.d(Ve,{Z:function(){return ge}});var ee=te(4676);function ge(be,ve,Se,fe){var ie=ee.unstable_batchedUpdates?function(le){ee.unstable_batchedUpdates(Se,le)}:Se;return be!=null&&be.addEventListener&&be.addEventListener(ve,ie,fe),{remove:function(){be!=null&&be.removeEventListener&&be.removeEventListener(ve,ie,fe)}}}},55468:function(ht,Ve,te){"use strict";te.d(Ve,{g1:function(){return ae},os:function(){return oe}});var ee=/margin|padding|width|height|max|min|offset/,ge={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function ve(ne){return ne.nodeType===1?ne.ownerDocument.defaultView.getComputedStyle(ne,null):{}}function Se(ne,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ne.offsetHeight;if(a==="width")return ne.offsetWidth}return a in ge||(ge[a]=ee.test(a)),ge[a]?parseFloat(y)||0:y}function fe(ne,a){var y=arguments.length,E=ve(ne);return a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,y===1?E:Se(ne,a,E[a]||ne.style[a])}function ie(ne,a,y){var E=arguments.length;if(a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,E===3)return typeof y=="number"&&ee.test(a)&&(y="".concat(y,"px")),ne.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&ie(ne,b,a[b]);return ve(ne)}function ue(ne){return ne===document.body?document.documentElement.clientWidth:ne.offsetWidth}function le(ne){return ne===document.body?window.innerHeight||document.documentElement.clientHeight:ne.offsetHeight}function me(){var ne=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ne,height:a}}function ae(){var ne=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ne,height:a}}function he(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(ne){var a=ne.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}},24514:function(ht,Ve,te){"use strict";te.d(Ve,{G:function(){return ve}});var ee=te(47273),ge=function(fe){if((0,ee.Z)()&&window.document.documentElement){var ie=Array.isArray(fe)?fe:[fe],ue=window.document.documentElement;return ie.some(function(le){return le in ue.style})}return!1},be=function(fe,ie){if(!ge(fe))return!1;var ue=document.createElement("div"),le=ue.style[fe];return ue.style[fe]=ie,ue.style[fe]!==le};function ve(Se,fe){return!Array.isArray(Se)&&fe!==void 0?be(Se,fe):ge(Se)}},7062:function(ht,Ve,te){var ee=te(19637),ge=te(97573),be=[te(96627)];ht.exports=ee.createStore(ge,be)},96627:function(ht,Ve,te){ht.exports=ee;function ee(){return te(42424),{}}},42424: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(ht){return ht<10?"0"+ht:ht}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(ht){return rx_escapable.lastIndex=0,rx_escapable.test(ht)?'"'+ht.replace(rx_escapable,function(Ve){var te=meta[Ve];return typeof te=="string"?te:"\\u"+("0000"+Ve.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ht+'"'}function str(ht,Ve){var te,ee,ge,be,ve=gap,Se,fe=Ve[ht];switch(fe&&typeof fe=="object"&&typeof fe.toJSON=="function"&&(fe=fe.toJSON(ht)),typeof rep=="function"&&(fe=rep.call(Ve,ht,fe)),typeof fe){case"string":return quote(fe);case"number":return isFinite(fe)?String(fe):"null";case"boolean":case"null":return String(fe);case"object":if(!fe)return"null";if(gap+=indent,Se=[],Object.prototype.toString.apply(fe)==="[object Array]"){for(be=fe.length,te=0;te<be;te+=1)Se[te]=str(te,fe)||"null";return ge=Se.length===0?"[]":gap?`[
`+gap+Se.join(`,
`+gap)+`
`+ve+"]":"["+Se.join(",")+"]",gap=ve,ge}if(rep&&typeof rep=="object")for(be=rep.length,te=0;te<be;te+=1)typeof rep[te]=="string"&&(ee=rep[te],ge=str(ee,fe),ge&&Se.push(quote(ee)+(gap?": ":":")+ge));else for(ee in fe)Object.prototype.hasOwnProperty.call(fe,ee)&&(ge=str(ee,fe),ge&&Se.push(quote(ee)+(gap?": ":":")+ge));return ge=Se.length===0?"{}":gap?`{
`+gap+Se.join(`,
`+gap)+`
`+ve+"}":"{"+Se.join(",")+"}",gap=ve,ge}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(ht,Ve,te){var ee;if(gap="",indent="",typeof te=="number")for(ee=0;ee<te;ee+=1)indent+=" ";else typeof te=="string"&&(indent=te);if(rep=Ve,Ve&&typeof Ve!="function"&&(typeof Ve!="object"||typeof Ve.length!="number"))throw new Error("JSON.stringify");return str("",{"":ht})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(ht,Ve){var te,ee,ge=ht[Ve];if(ge&&typeof ge=="object")for(te in ge)Object.prototype.hasOwnProperty.call(ge,te)&&(ee=walk(ge,te),ee!==void 0?ge[te]=ee:delete ge[te]);return reviver.call(ht,Ve,ge)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(ht){return"\\u"+("0000"+ht.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")})}()},19637:function(ht,Ve,te){var ee=te(67039),ge=ee.slice,be=ee.pluck,ve=ee.each,Se=ee.bind,fe=ee.create,ie=ee.isList,ue=ee.isFunction,le=ee.isObject;ht.exports={createStore:he};var me={version:"2.0.12",enabled:!1,get:function(oe,ne){var a=this.storage.read(this._namespacePrefix+oe);return this._deserialize(a,ne)},set:function(oe,ne){return ne===void 0?this.remove(oe):(this.storage.write(this._namespacePrefix+oe,this._serialize(ne)),ne)},remove:function(oe){this.storage.remove(this._namespacePrefix+oe)},each:function(oe){var ne=this;this.storage.each(function(a,y){oe.call(ne,ne._deserialize(a),(y||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(oe){return this._namespacePrefix=="__storejs_"+oe+"_"},createStore:function(){return he.apply(this,arguments)},addPlugin:function(oe){this._addPlugin(oe)},namespace:function(oe){return he(this.storage,this.plugins,oe)}};function ae(){var oe=typeof console=="undefined"?null:console;if(oe){var ne=oe.warn?oe.warn:oe.log;ne.apply(oe,arguments)}}function he(oe,ne,a){a||(a=""),oe&&!ie(oe)&&(oe=[oe]),ne&&!ie(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(re){try{var se="__storejs__test__";re.write(se,se);var ce=re.read(se)===se;return re.remove(se),ce}catch(_e){return!1}},_assignPluginFnProp:function(re,se){var ce=this[se];this[se]=function(){var ye=ge(arguments,0),De=this;function Ee(){if(ce)return ve(arguments,function(Le,ft){ye[ft]=Le}),ce.apply(De,ye)}var je=[Ee].concat(ye);return re.apply(De,je)}},_serialize:function(re){return JSON.stringify(re)},_deserialize:function(re,se){if(!re)return se;var ce="";try{ce=JSON.parse(re)}catch(_e){ce=re}return ce!==void 0?ce:se},_addStorage:function(re){this.enabled||this._testStorage(re)&&(this.storage=re,this.enabled=!0)},_addPlugin:function(re){var se=this;if(ie(re)){ve(re,function(ye){se._addPlugin(ye)});return}var ce=be(this.plugins,function(ye){return re===ye});if(!ce){if(this.plugins.push(re),!ue(re))throw new Error("Plugins must be function values that return objects");var _e=re.call(this);if(!le(_e))throw new Error("Plugins must return an object of function properties");ve(_e,function(ye,De){if(!ue(ye))throw new Error("Bad plugin property: "+De+" from plugin "+re.name+". Plugins should only return functions.");se._assignPluginFnProp(ye,De)})}},addStorage:function(re){ae("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(re)}},z=fe(x,me,{plugins:[]});return z.raw={},ve(z,function(re,se){ue(re)&&(z.raw[se]=Se(z,re))}),ve(oe,function(re){z._addStorage(re)}),ve(ne,function(re){z._addPlugin(re)}),z}},67039:function(ht,Ve,te){var ee=Se(),ge=fe(),be=ie(),ve=typeof window!="undefined"?window:te.g;ht.exports={assign:ee,create:ge,trim:be,bind:ue,slice:le,each:me,map:ae,pluck:he,isList:oe,isFunction:ne,isObject:a,Global:ve};function Se(){return Object.assign?Object.assign:function(E,b,x,z){for(var re=1;re<arguments.length;re++)me(Object(arguments[re]),function(se,ce){E[ce]=se});return E}}function fe(){if(Object.create)return function(b,x,z,re){var se=le(arguments,1);return ee.apply(this,[Object.create(b)].concat(se))};{let E=function(){};var y=E;return function(x,z,re,se){var ce=le(arguments,1);return E.prototype=x,ee.apply(this,[new E].concat(ce))}}}function ie(){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 ue(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 me(y,E){he(y,function(b,x){return E(b,x),!1})}function ae(y,E){var b=oe(y)?[]:{};return he(y,function(x,z){return b[z]=E(x,z),!1}),b}function he(y,E){if(oe(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 oe(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]"}},97573:function(ht,Ve,te){ht.exports=[te(52496),te(16436),te(76673),te(35701),te(65578),te(65300)]},35701:function(ht,Ve,te){var ee=te(67039),ge=ee.Global,be=ee.trim;ht.exports={name:"cookieStorage",read:Se,write:ie,each:fe,remove:ue,clearAll:le};var ve=ge.document;function Se(ae){if(!ae||!me(ae))return null;var he="(?:^|.*;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ve.cookie.replace(new RegExp(he),"$1"))}function fe(ae){for(var he=ve.cookie.split(/; ?/g),oe=he.length-1;oe>=0;oe--)if(be(he[oe])){var ne=he[oe].split("="),a=unescape(ne[0]),y=unescape(ne[1]);ae(y,a)}}function ie(ae,he){ae&&(ve.cookie=escape(ae)+"="+escape(he)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ue(ae){!ae||!me(ae)||(ve.cookie=escape(ae)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){fe(function(ae,he){ue(he)})}function me(ae){return new RegExp("(?:^|;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ve.cookie)}},52496:function(ht,Ve,te){var ee=te(67039),ge=ee.Global;ht.exports={name:"localStorage",read:ve,write:Se,each:fe,remove:ie,clearAll:ue};function be(){return ge.localStorage}function ve(le){return be().getItem(le)}function Se(le,me){return be().setItem(le,me)}function fe(le){for(var me=be().length-1;me>=0;me--){var ae=be().key(me);le(ve(ae),ae)}}function ie(le){return be().removeItem(le)}function ue(){return be().clear()}},65300:function(ht){ht.exports={name:"memoryStorage",read:te,write:ee,each:ge,remove:be,clearAll:ve};var Ve={};function te(Se){return Ve[Se]}function ee(Se,fe){Ve[Se]=fe}function ge(Se){for(var fe in Ve)Ve.hasOwnProperty(fe)&&Se(Ve[fe],fe)}function be(Se){delete Ve[Se]}function ve(Se){Ve={}}},16436:function(ht,Ve,te){var ee=te(67039),ge=ee.Global;ht.exports={name:"oldFF-globalStorage",read:ve,write:Se,each:fe,remove:ie,clearAll:ue};var be=ge.globalStorage;function ve(le){return be[le]}function Se(le,me){be[le]=me}function fe(le){for(var me=be.length-1;me>=0;me--){var ae=be.key(me);le(be[ae],ae)}}function ie(le){return be.removeItem(le)}function ue(){fe(function(le,me){delete be[le]})}},76673:function(ht,Ve,te){var ee=te(67039),ge=ee.Global;ht.exports={name:"oldIE-userDataStorage",write:ie,read:ue,each:le,remove:me,clearAll:ae};var be="storejs",ve=ge.document,Se=ne(),fe=(ge.navigator?ge.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ie(a,y){if(!fe){var E=oe(a);Se(function(b){b.setAttribute(E,y),b.save(be)})}}function ue(a){if(!fe){var y=oe(a),E=null;return Se(function(b){E=b.getAttribute(y)}),E}}function le(a){Se(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 me(a){var y=oe(a);Se(function(E){E.removeAttribute(y),E.save(be)})}function ae(){Se(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 he=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function oe(a){return a.replace(/^\d/,"___$&").replace(he,"___")}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)}}},65578:function(ht,Ve,te){var ee=te(67039),ge=ee.Global;ht.exports={name:"sessionStorage",read:ve,write:Se,each:fe,remove:ie,clearAll:ue};function be(){return ge.sessionStorage}function ve(le){return be().getItem(le)}function Se(le,me){return be().setItem(le,me)}function fe(le){for(var me=be().length-1;me>=0;me--){var ae=be().key(me);le(ve(ae),ae)}}function ie(le){return be().removeItem(le)}function ue(){return be().clear()}},82059:function(ht){var Ve=arguments[3],te=arguments[4],ee=arguments[5],ge=JSON.stringify;ht.exports=function(be,ve){for(var Se,fe=Object.keys(ee),ie=0,ue=fe.length;ie<ue;ie++){var le=fe[ie],me=ee[le].exports;if(me===be||me&&me.default===be){Se=le;break}}if(!Se){Se=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ae={},ie=0,ue=fe.length;ie<ue;ie++){var le=fe[ie];ae[le]=le}te[Se]=["function(require,module,exports){"+be+"(self); }",ae]}var he=Math.floor(Math.pow(16,8)*Math.random()).toString(16),oe={};oe[Se]=Se,te[he]=["function(require,module,exports){var f = require("+ge(Se)+");(f.default ? f.default : f)(self);}",oe];var ne={};a(he);function a(re){ne[re]=!0;for(var se in te[re][1]){var ce=te[re][1][se];ne[ce]||a(ce)}}var y="("+Ve+")({"+Object.keys(ne).map(function(re){return ge(re)+":["+te[re][0]+","+ge(te[re][1])+"]"}).join(",")+"},{},["+ge(he)+"])",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}},34376:function(ht){(function(Ve,te){if(1)ht.exports=te();else var ee,ge})(window,function(){return function(Ve){var te={};function ee(ge){if(te[ge])return te[ge].exports;var be=te[ge]={i:ge,l:!1,exports:{}};return Ve[ge].call(be.exports,be,be.exports,ee),be.l=!0,be.exports}return ee.m=Ve,ee.c=te,ee.d=function(ge,be,ve){ee.o(ge,be)||Object.defineProperty(ge,be,{enumerable:!0,get:ve})},ee.r=function(ge){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ge,"__esModule",{value:!0})},ee.t=function(ge,be){if(1&be&&(ge=ee(ge)),8&be||4&be&&typeof ge=="object"&&ge&&ge.__esModule)return ge;var ve=Object.create(null);if(ee.r(ve),Object.defineProperty(ve,"default",{enumerable:!0,value:ge}),2&be&&typeof ge!="string")for(var Se in ge)ee.d(ve,Se,function(fe){return ge[fe]}.bind(null,Se));return ve},ee.n=function(ge){var be=ge&&ge.__esModule?function(){return ge.default}:function(){return ge};return ee.d(be,"a",be),be},ee.o=function(ge,be){return Object.prototype.hasOwnProperty.call(ge,be)},ee.p="",ee(ee.s=34)}([function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.forwardEvent=te.EventEmitter=void 0;var ge=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(Se){return ve._listeners.push(Se),{dispose:function(){if(!ve._disposed){for(var fe=0;fe<ve._listeners.length;fe++)if(ve._listeners[fe]===Se)return void ve._listeners.splice(fe,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(ve,Se){for(var fe=[],ie=0;ie<this._listeners.length;ie++)fe.push(this._listeners[ie]);for(ie=0;ie<fe.length;ie++)fe[ie].call(void 0,ve,Se)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();te.EventEmitter=ge,te.forwardEvent=function(be,ve){return be(function(Se){return ve.fire(Se)})}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.IUnicodeService=te.IOptionsService=te.ILogService=te.IInstantiationService=te.IDirtyRowService=te.ICharsetService=te.ICoreService=te.ICoreMouseService=te.IBufferService=void 0;var ge=ee(14);te.IBufferService=ge.createDecorator("BufferService"),te.ICoreMouseService=ge.createDecorator("CoreMouseService"),te.ICoreService=ge.createDecorator("CoreService"),te.ICharsetService=ge.createDecorator("CharsetService"),te.IDirtyRowService=ge.createDecorator("DirtyRowService"),te.IInstantiationService=ge.createDecorator("InstantiationService"),te.ILogService=ge.createDecorator("LogService"),te.IOptionsService=ge.createDecorator("OptionsService"),te.IUnicodeService=ge.createDecorator("UnicodeService")},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.getDisposeArrayDisposable=te.disposeArray=te.Disposable=void 0;var ge=function(){function ve(){this._disposables=[],this._isDisposed=!1}return ve.prototype.dispose=function(){this._isDisposed=!0;for(var Se=0,fe=this._disposables;Se<fe.length;Se++)fe[Se].dispose();this._disposables.length=0},ve.prototype.register=function(Se){return this._disposables.push(Se),Se},ve.prototype.unregister=function(Se){var fe=this._disposables.indexOf(Se);fe!==-1&&this._disposables.splice(fe,1)},ve}();function be(ve){for(var Se=0,fe=ve;Se<fe.length;Se++)fe[Se].dispose();ve.length=0}te.Disposable=ge,te.disposeArray=be,te.getDisposeArrayDisposable=function(ve){return{dispose:function(){return be(ve)}}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WHITESPACE_CELL_CODE=te.WHITESPACE_CELL_WIDTH=te.WHITESPACE_CELL_CHAR=te.NULL_CELL_CODE=te.NULL_CELL_WIDTH=te.NULL_CELL_CHAR=te.CHAR_DATA_CODE_INDEX=te.CHAR_DATA_WIDTH_INDEX=te.CHAR_DATA_CHAR_INDEX=te.CHAR_DATA_ATTR_INDEX=te.DEFAULT_ATTR=te.DEFAULT_COLOR=void 0,te.DEFAULT_COLOR=256,te.DEFAULT_ATTR=256|te.DEFAULT_COLOR<<9,te.CHAR_DATA_ATTR_INDEX=0,te.CHAR_DATA_CHAR_INDEX=1,te.CHAR_DATA_WIDTH_INDEX=2,te.CHAR_DATA_CODE_INDEX=3,te.NULL_CELL_CHAR="",te.NULL_CELL_WIDTH=1,te.NULL_CELL_CODE=0,te.WHITESPACE_CELL_CHAR=" ",te.WHITESPACE_CELL_WIDTH=1,te.WHITESPACE_CELL_CODE=32},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ue,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(ue,le)},function(ue,le){function me(){this.constructor=ue}ge(ue,le),ue.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.CellData=void 0;var ve=ee(8),Se=ee(3),fe=ee(6),ie=function(ue){function le(){var me=ue!==null&&ue.apply(this,arguments)||this;return me.content=0,me.fg=0,me.bg=0,me.extended=new fe.ExtendedAttrs,me.combinedData="",me}return be(le,ue),le.fromCharData=function(me){var ae=new le;return ae.setFromCharData(me),ae},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(me){this.fg=me[Se.CHAR_DATA_ATTR_INDEX],this.bg=0;var ae=!1;if(me[Se.CHAR_DATA_CHAR_INDEX].length>2)ae=!0;else if(me[Se.CHAR_DATA_CHAR_INDEX].length===2){var he=me[Se.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=he&&he<=56319){var oe=me[Se.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=oe&&oe<=57343?this.content=1024*(he-55296)+oe-56320+65536|me[Se.CHAR_DATA_WIDTH_INDEX]<<22:ae=!0}else ae=!0}else this.content=me[Se.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|me[Se.CHAR_DATA_WIDTH_INDEX]<<22;ae&&(this.combinedData=me[Se.CHAR_DATA_CHAR_INDEX],this.content=2097152|me[Se.CHAR_DATA_WIDTH_INDEX]<<22)},le.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},le}(fe.AttributeData);te.CellData=ie},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ISoundService=te.ISelectionService=te.IRenderService=te.IMouseService=te.ICoreBrowserService=te.ICharSizeService=void 0;var ge=ee(14);te.ICharSizeService=ge.createDecorator("CharSizeService"),te.ICoreBrowserService=ge.createDecorator("CoreBrowserService"),te.IMouseService=ge.createDecorator("MouseService"),te.IRenderService=ge.createDecorator("RenderService"),te.ISelectionService=ge.createDecorator("SelectionService"),te.ISoundService=ge.createDecorator("SoundService")},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ExtendedAttrs=te.AttributeData=void 0;var ge=function(){function ve(){this.fg=0,this.bg=0,this.extended=new be}return ve.toColorRGB=function(Se){return[Se>>>16&255,Se>>>8&255,255&Se]},ve.fromColorRGB=function(Se){return(255&Se[0])<<16|(255&Se[1])<<8|255&Se[2]},ve.prototype.clone=function(){var Se=new ve;return Se.fg=this.fg,Se.bg=this.bg,Se.extended=this.extended.clone(),Se},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}();te.AttributeData=ge;var be=function(){function ve(Se,fe){Se===void 0&&(Se=0),fe===void 0&&(fe=-1),this.underlineStyle=Se,this.underlineColor=fe}return ve.prototype.clone=function(){return new ve(this.underlineStyle,this.underlineColor)},ve.prototype.isEmpty=function(){return this.underlineStyle===0},ve}();te.ExtendedAttrs=be},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.addDisposableDomListener=void 0,te.addDisposableDomListener=function(ge,be,ve,Se){ge.addEventListener(be,ve,Se);var fe=!1;return{dispose:function(){fe||(fe=!0,ge.removeEventListener(be,ve,Se))}}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Utf8ToUtf32=te.StringToUtf32=te.utf32ToString=te.stringFromCodePoint=void 0,te.stringFromCodePoint=function(ve){return ve>65535?(ve-=65536,String.fromCharCode(55296+(ve>>10))+String.fromCharCode(ve%1024+56320)):String.fromCharCode(ve)},te.utf32ToString=function(ve,Se,fe){Se===void 0&&(Se=0),fe===void 0&&(fe=ve.length);for(var ie="",ue=Se;ue<fe;++ue){var le=ve[ue];le>65535?(le-=65536,ie+=String.fromCharCode(55296+(le>>10))+String.fromCharCode(le%1024+56320)):ie+=String.fromCharCode(le)}return ie};var ge=function(){function ve(){this._interim=0}return ve.prototype.clear=function(){this._interim=0},ve.prototype.decode=function(Se,fe){var ie=Se.length;if(!ie)return 0;var ue=0,le=0;this._interim&&(56320<=(he=Se.charCodeAt(le++))&&he<=57343?fe[ue++]=1024*(this._interim-55296)+he-56320+65536:(fe[ue++]=this._interim,fe[ue++]=he),this._interim=0);for(var me=le;me<ie;++me){var ae=Se.charCodeAt(me);if(55296<=ae&&ae<=56319){if(++me>=ie)return this._interim=ae,ue;var he;56320<=(he=Se.charCodeAt(me))&&he<=57343?fe[ue++]=1024*(ae-55296)+he-56320+65536:(fe[ue++]=ae,fe[ue++]=he)}else fe[ue++]=ae}return ue},ve}();te.StringToUtf32=ge;var be=function(){function ve(){this.interim=new Uint8Array(3)}return ve.prototype.clear=function(){this.interim.fill(0)},ve.prototype.decode=function(Se,fe){var ie=Se.length;if(!ie)return 0;var ue,le,me,ae,he=0,oe=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>=ie)return 0;if((192&(b=Se[ne++]))!=128){ne--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(x===2?y<128?ne--:fe[he++]=y:x===3?y<2048||y>=55296&&y<=57343||(fe[he++]=y):y<65536||y>1114111||(fe[he++]=y)),this.interim.fill(0)}for(var re=ie-4,se=ne;se<ie;){for(;!(!(se<re)||128&(ue=Se[se])||128&(le=Se[se+1])||128&(me=Se[se+2])||128&(ae=Se[se+3]));)fe[he++]=ue,fe[he++]=le,fe[he++]=me,fe[he++]=ae,se+=4;if((ue=Se[se++])<128)fe[he++]=ue;else if((224&ue)==192){if(se>=ie)return this.interim[0]=ue,he;if((192&(le=Se[se++]))!=128){se--;continue}if((oe=(31&ue)<<6|63&le)<128){se--;continue}fe[he++]=oe}else if((240&ue)==224){if(se>=ie)return this.interim[0]=ue,he;if((192&(le=Se[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=ue,this.interim[1]=le,he;if((192&(me=Se[se++]))!=128){se--;continue}if((oe=(15&ue)<<12|(63&le)<<6|63&me)<2048||oe>=55296&&oe<=57343)continue;fe[he++]=oe}else if((248&ue)==240){if(se>=ie)return this.interim[0]=ue,he;if((192&(le=Se[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=ue,this.interim[1]=le,he;if((192&(me=Se[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=ue,this.interim[1]=le,this.interim[2]=me,he;if((192&(ae=Se[se++]))!=128){se--;continue}if((oe=(7&ue)<<18|(63&le)<<12|(63&me)<<6|63&ae)<65536||oe>1114111)continue;fe[he++]=oe}}return he},ve}();te.Utf8ToUtf32=be},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CHAR_ATLAS_CELL_SPACING=te.DIM_OPACITY=te.INVERTED_DEFAULT_COLOR=void 0,te.INVERTED_DEFAULT_COLOR=257,te.DIM_OPACITY=.5,te.CHAR_ATLAS_CELL_SPACING=1},function(Ve,te,ee){"use strict";var ge,be,ve,Se;function fe(ue){var le=ue.toString(16);return le.length<2?"0"+le:le}function ie(ue,le){return ue<le?(le+.05)/(ue+.05):(ue+.05)/(le+.05)}Object.defineProperty(te,"__esModule",{value:!0}),te.contrastRatio=te.toPaddedHex=te.rgba=te.rgb=te.css=te.color=te.channels=void 0,function(ue){ue.toCss=function(le,me,ae,he){return he!==void 0?"#"+fe(le)+fe(me)+fe(ae)+fe(he):"#"+fe(le)+fe(me)+fe(ae)},ue.toRgba=function(le,me,ae,he){return he===void 0&&(he=255),(le<<24|me<<16|ae<<8|he)>>>0}}(ge=te.channels||(te.channels={})),(be=te.color||(te.color={})).blend=function(ue,le){var me=(255&le.rgba)/255;if(me===1)return{css:le.css,rgba:le.rgba};var ae=le.rgba>>24&255,he=le.rgba>>16&255,oe=le.rgba>>8&255,ne=ue.rgba>>24&255,a=ue.rgba>>16&255,y=ue.rgba>>8&255,E=ne+Math.round((ae-ne)*me),b=a+Math.round((he-a)*me),x=y+Math.round((oe-y)*me);return{css:ge.toCss(E,b,x),rgba:ge.toRgba(E,b,x)}},be.isOpaque=function(ue){return(255&ue.rgba)==255},be.ensureContrastRatio=function(ue,le,me){var ae=Se.ensureContrastRatio(ue.rgba,le.rgba,me);if(ae)return Se.toColor(ae>>24&255,ae>>16&255,ae>>8&255)},be.opaque=function(ue){var le=(255|ue.rgba)>>>0,me=Se.toChannels(le),ae=me[0],he=me[1],oe=me[2];return{css:ge.toCss(ae,he,oe),rgba:le}},be.opacity=function(ue,le){var me=Math.round(255*le),ae=Se.toChannels(ue.rgba),he=ae[0],oe=ae[1],ne=ae[2];return{css:ge.toCss(he,oe,ne,me),rgba:ge.toRgba(he,oe,ne,me)}},(te.css||(te.css={})).toColor=function(ue){switch(ue.length){case 7:return{css:ue,rgba:(parseInt(ue.slice(1),16)<<8|255)>>>0};case 9:return{css:ue,rgba:parseInt(ue.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(ue){function le(me,ae,he){var oe=me/255,ne=ae/255,a=he/255;return .2126*(oe<=.03928?oe/12.92:Math.pow((oe+.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))}ue.relativeLuminance=function(me){return le(me>>16&255,me>>8&255,255&me)},ue.relativeLuminance2=le}(ve=te.rgb||(te.rgb={})),function(ue){function le(ae,he,oe){for(var ne=ae>>24&255,a=ae>>16&255,y=ae>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));z<oe&&(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=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function me(ae,he,oe){for(var ne=ae>>24&255,a=ae>>16&255,y=ae>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));z<oe&&(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=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}ue.ensureContrastRatio=function(ae,he,oe){var ne=ve.relativeLuminance(ae>>8),a=ve.relativeLuminance(he>>8);if(ie(ne,a)<oe)return a<ne?le(ae,he,oe):me(ae,he,oe)},ue.reduceLuminance=le,ue.increaseLuminance=me,ue.toChannels=function(ae){return[ae>>24&255,ae>>16&255,ae>>8&255,255&ae]},ue.toColor=function(ae,he,oe){return{css:ge.toCss(ae,he,oe),rgba:ge.toRgba(ae,he,oe)}}}(Se=te.rgba||(te.rgba={})),te.toPaddedHex=fe,te.contrastRatio=ie},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.isLinux=te.isWindows=te.isIphone=te.isIpad=te.isMac=te.isSafari=te.isFirefox=void 0;var ge=typeof navigator=="undefined",be=ge?"node":navigator.userAgent,ve=ge?"node":navigator.platform;function Se(fe,ie){return fe.indexOf(ie)>=0}te.isFirefox=!!~be.indexOf("Firefox"),te.isSafari=/^((?!chrome|android).)*safari/i.test(be),te.isMac=Se(["Macintosh","MacIntel","MacPPC","Mac68K"],ve),te.isIpad=ve==="iPad",te.isIphone=ve==="iPhone",te.isWindows=Se(["Windows","Win16","Win32","WinCE"],ve),te.isLinux=ve.indexOf("Linux")>=0},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.C1=te.C0=void 0,function(ge){ge.NUL="\0",ge.SOH="",ge.STX="",ge.ETX="",ge.EOT="",ge.ENQ="",ge.ACK="",ge.BEL="\x07",ge.BS="\b",ge.HT=" ",ge.LF=`
`,ge.VT="\v",ge.FF="\f",ge.CR="\r",ge.SO="",ge.SI="",ge.DLE="",ge.DC1="",ge.DC2="",ge.DC3="",ge.DC4="",ge.NAK="",ge.SYN="",ge.ETB="",ge.CAN="",ge.EM="",ge.SUB="",ge.ESC="\x1B",ge.FS="",ge.GS="",ge.RS="",ge.US="",ge.SP=" ",ge.DEL="\x7F"}(te.C0||(te.C0={})),function(ge){ge.PAD="\x80",ge.HOP="\x81",ge.BPH="\x82",ge.NBH="\x83",ge.IND="\x84",ge.NEL="\x85",ge.SSA="\x86",ge.ESA="\x87",ge.HTS="\x88",ge.HTJ="\x89",ge.VTS="\x8A",ge.PLD="\x8B",ge.PLU="\x8C",ge.RI="\x8D",ge.SS2="\x8E",ge.SS3="\x8F",ge.DCS="\x90",ge.PU1="\x91",ge.PU2="\x92",ge.STS="\x93",ge.CCH="\x94",ge.MW="\x95",ge.SPA="\x96",ge.EPA="\x97",ge.SOS="\x98",ge.SGCI="\x99",ge.SCI="\x9A",ge.CSI="\x9B",ge.ST="\x9C",ge.OSC="\x9D",ge.PM="\x9E",ge.APC="\x9F"}(te.C1||(te.C1={}))},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseRenderLayer=void 0;var ge=ee(3),be=ee(9),ve=ee(25),Se=ee(6),fe=ee(28),ie=ee(10),ue=ee(17),le=function(){function me(ae,he,oe,ne,a,y,E,b){this._container=ae,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-"+he+"-layer"),this._canvas.style.zIndex=oe.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return me.prototype.dispose=function(){var ae;ue.removeElementFromParent(this._canvas),(ae=this._charAtlas)===null||ae===void 0||ae.dispose()},me.prototype._initCanvas=function(){this._ctx=fe.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},me.prototype.onOptionsChanged=function(){},me.prototype.onBlur=function(){},me.prototype.onFocus=function(){},me.prototype.onCursorMove=function(){},me.prototype.onGridChanged=function(ae,he){},me.prototype.onSelectionChanged=function(ae,he,oe){oe===void 0&&(oe=!1)},me.prototype.setColors=function(ae){this._refreshCharAtlas(ae)},me.prototype._setTransparency=function(ae){if(ae!==this._alpha){var he=this._canvas;this._alpha=ae,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,he),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},me.prototype._refreshCharAtlas=function(ae){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=ve.acquireCharAtlas(this._optionsService.options,this._rendererId,ae,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},me.prototype.resize=function(ae){this._scaledCellWidth=ae.scaledCellWidth,this._scaledCellHeight=ae.scaledCellHeight,this._scaledCharWidth=ae.scaledCharWidth,this._scaledCharHeight=ae.scaledCharHeight,this._scaledCharLeft=ae.scaledCharLeft,this._scaledCharTop=ae.scaledCharTop,this._canvas.width=ae.scaledCanvasWidth,this._canvas.height=ae.scaledCanvasHeight,this._canvas.style.width=ae.canvasWidth+"px",this._canvas.style.height=ae.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},me.prototype._fillCells=function(ae,he,oe,ne){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight)},me.prototype._fillBottomLineAtCells=function(ae,he,oe){oe===void 0&&(oe=1),this._ctx.fillRect(ae*this._scaledCellWidth,(he+1)*this._scaledCellHeight-window.devicePixelRatio-1,oe*this._scaledCellWidth,window.devicePixelRatio)},me.prototype._fillLeftLineAtCell=function(ae,he,oe){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,window.devicePixelRatio*oe,this._scaledCellHeight)},me.prototype._strokeRectAtCell=function(ae,he,oe,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(ae*this._scaledCellWidth+window.devicePixelRatio/2,he*this._scaledCellHeight+window.devicePixelRatio/2,oe*this._scaledCellWidth-window.devicePixelRatio,ne*this._scaledCellHeight-window.devicePixelRatio)},me.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))},me.prototype._clearCells=function(ae,he,oe,ne){this._alpha?this._ctx.clearRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight))},me.prototype._fillCharTrueColor=function(ae,he,oe){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(oe),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},me.prototype._drawChars=function(ae,he,oe){var ne,a,y=this._getContrastColor(ae);y||ae.isFgRGB()||ae.isBgRGB()?this._drawUncachedChars(ae,he,oe,y):(ae.isInverse()?(ne=ae.isBgDefault()?be.INVERTED_DEFAULT_COLOR:ae.getBgColor(),a=ae.isFgDefault()?be.INVERTED_DEFAULT_COLOR:ae.getFgColor()):(a=ae.isBgDefault()?ge.DEFAULT_COLOR:ae.getBgColor(),ne=ae.isFgDefault()?ge.DEFAULT_COLOR:ae.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=ae.getChars()||ge.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=ae.getCode()||ge.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!ae.isBold(),this._currentGlyphIdentifier.dim=!!ae.isDim(),this._currentGlyphIdentifier.italic=!!ae.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(ae,he,oe))},me.prototype._drawUncachedChars=function(ae,he,oe,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!ae.isBold(),!!ae.isItalic()),this._ctx.textBaseline="middle",ae.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(ae.isBgDefault())this._ctx.fillStyle=ie.color.opaque(this._colors.background).css;else if(ae.isBgRGB())this._ctx.fillStyle="rgb("+Se.AttributeData.toColorRGB(ae.getBgColor()).join(",")+")";else{var a=ae.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(ae.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(ae.isFgRGB())this._ctx.fillStyle="rgb("+Se.AttributeData.toColorRGB(ae.getFgColor()).join(",")+")";else{var y=ae.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(oe),ae.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},me.prototype._clipRow=function(ae){this._ctx.beginPath(),this._ctx.rect(0,ae*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},me.prototype._getFont=function(ae,he){return(he?"italic":"")+" "+(ae?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},me.prototype._getContrastColor=function(ae){if(this._optionsService.options.minimumContrastRatio!==1){var he=this._colors.contrastCache.getColor(ae.bg,ae.fg);if(he!==void 0)return he||void 0;var oe=ae.getFgColor(),ne=ae.getFgColorMode(),a=ae.getBgColor(),y=ae.getBgColorMode(),E=!!ae.isInverse(),b=!!ae.isInverse();if(E){var x=oe;oe=a,a=x;var z=ne;ne=y,y=z}var re=this._resolveBackgroundRgba(y,a,E),se=this._resolveForegroundRgba(ne,oe,E,b),ce=ie.rgba.ensureContrastRatio(re,se,this._optionsService.options.minimumContrastRatio);if(ce){var _e={css:ie.channels.toCss(ce>>24&255,ce>>16&255,ce>>8&255),rgba:ce};return this._colors.contrastCache.setColor(ae.bg,ae.fg,_e),_e}this._colors.contrastCache.setColor(ae.bg,ae.fg,null)}},me.prototype._resolveBackgroundRgba=function(ae,he,oe){switch(ae){case 16777216:case 33554432:return this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return oe?this._colors.foreground.rgba:this._colors.background.rgba}},me.prototype._resolveForegroundRgba=function(ae,he,oe,ne){switch(ae){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&he<8&&(he+=8),this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return oe?this._colors.background.rgba:this._colors.foreground.rgba}},me}();te.BaseRenderLayer=le},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createDecorator=te.getServiceDependencies=te.serviceRegistry=void 0;function ge(be,ve,Se){ve.di$target===ve?ve.di$dependencies.push({id:be,index:Se}):(ve.di$dependencies=[{id:be,index:Se}],ve.di$target=ve)}te.serviceRegistry=new Map,te.getServiceDependencies=function(be){return be.di$dependencies||[]},te.createDecorator=function(be){if(te.serviceRegistry.has(be))return te.serviceRegistry.get(be);var ve=function(Se,fe,ie){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ge(ve,Se,ie)};return ve.toString=function(){return be},te.serviceRegistry.set(be,ve),ve}},function(Ve,te,ee){"use strict";function ge(be,ve,Se,fe){if(Se===void 0&&(Se=0),fe===void 0&&(fe=be.length),Se>=be.length)return be;Se=(be.length+Se)%be.length,fe=fe>=be.length?be.length:(be.length+fe)%be.length;for(var ie=Se;ie<fe;++ie)be[ie]=ve;return be}Object.defineProperty(te,"__esModule",{value:!0}),te.concat=te.fillFallback=te.fill=void 0,te.fill=function(be,ve,Se,fe){return be.fill?be.fill(ve,Se,fe):ge(be,ve,Se,fe)},te.fillFallback=ge,te.concat=function(be,ve){var Se=new be.constructor(be.length+ve.length);return Se.set(be),Se.set(ve,be.length),Se}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferLine=te.DEFAULT_ATTR_DATA=void 0;var ge=ee(8),be=ee(3),ve=ee(4),Se=ee(6);te.DEFAULT_ATTR_DATA=Object.freeze(new Se.AttributeData);var fe=function(){function ie(ue,le,me){me===void 0&&(me=!1),this.isWrapped=me,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*ue);for(var ae=le||ve.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),he=0;he<ue;++he)this.setCell(he,ae);this.length=ue}return ie.prototype.get=function(ue){var le=this._data[3*ue+0],me=2097151&le;return[this._data[3*ue+1],2097152&le?this._combined[ue]:me?ge.stringFromCodePoint(me):"",le>>22,2097152&le?this._combined[ue].charCodeAt(this._combined[ue].length-1):me]},ie.prototype.set=function(ue,le){this._data[3*ue+1]=le[be.CHAR_DATA_ATTR_INDEX],le[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[ue]=le[1],this._data[3*ue+0]=2097152|ue|le[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*ue+0]=le[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|le[be.CHAR_DATA_WIDTH_INDEX]<<22},ie.prototype.getWidth=function(ue){return this._data[3*ue+0]>>22},ie.prototype.hasWidth=function(ue){return 12582912&this._data[3*ue+0]},ie.prototype.getFg=function(ue){return this._data[3*ue+1]},ie.prototype.getBg=function(ue){return this._data[3*ue+2]},ie.prototype.hasContent=function(ue){return 4194303&this._data[3*ue+0]},ie.prototype.getCodePoint=function(ue){var le=this._data[3*ue+0];return 2097152&le?this._combined[ue].charCodeAt(this._combined[ue].length-1):2097151&le},ie.prototype.isCombined=function(ue){return 2097152&this._data[3*ue+0]},ie.prototype.getString=function(ue){var le=this._data[3*ue+0];return 2097152&le?this._combined[ue]:2097151&le?ge.stringFromCodePoint(2097151&le):""},ie.prototype.loadCell=function(ue,le){var me=3*ue;return le.content=this._data[me+0],le.fg=this._data[me+1],le.bg=this._data[me+2],2097152&le.content&&(le.combinedData=this._combined[ue]),268435456&le.bg&&(le.extended=this._extendedAttrs[ue]),le},ie.prototype.setCell=function(ue,le){2097152&le.content&&(this._combined[ue]=le.combinedData),268435456&le.bg&&(this._extendedAttrs[ue]=le.extended),this._data[3*ue+0]=le.content,this._data[3*ue+1]=le.fg,this._data[3*ue+2]=le.bg},ie.prototype.setCellFromCodePoint=function(ue,le,me,ae,he,oe){268435456&he&&(this._extendedAttrs[ue]=oe),this._data[3*ue+0]=le|me<<22,this._data[3*ue+1]=ae,this._data[3*ue+2]=he},ie.prototype.addCodepointToCell=function(ue,le){var me=this._data[3*ue+0];2097152&me?this._combined[ue]+=ge.stringFromCodePoint(le):(2097151&me?(this._combined[ue]=ge.stringFromCodePoint(2097151&me)+ge.stringFromCodePoint(le),me&=-2097152,me|=2097152):me=le|1<<22,this._data[3*ue+0]=me)},ie.prototype.insertCells=function(ue,le,me,ae){if((ue%=this.length)&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs),le<this.length-ue){for(var he=new ve.CellData,oe=this.length-ue-le-1;oe>=0;--oe)this.setCell(ue+le+oe,this.loadCell(ue+oe,he));for(oe=0;oe<le;++oe)this.setCell(ue+oe,me)}else for(oe=ue;oe<this.length;++oe)this.setCell(oe,me);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs)},ie.prototype.deleteCells=function(ue,le,me,ae){if(ue%=this.length,le<this.length-ue){for(var he=new ve.CellData,oe=0;oe<this.length-ue-le;++oe)this.setCell(ue+oe,this.loadCell(ue+le+oe,he));for(oe=this.length-le;oe<this.length;++oe)this.setCell(oe,me)}else for(oe=ue;oe<this.length;++oe)this.setCell(oe,me);ue&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs),this.getWidth(ue)!==0||this.hasContent(ue)||this.setCellFromCodePoint(ue,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs)},ie.prototype.replaceCells=function(ue,le,me,ae){for(ue&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs),le<this.length&&this.getWidth(le-1)===2&&this.setCellFromCodePoint(le,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs);ue<le&&ue<this.length;)this.setCell(ue++,me)},ie.prototype.resize=function(ue,le){if(ue!==this.length){if(ue>this.length){var me=new Uint32Array(3*ue);this.length&&(3*ue<this._data.length?me.set(this._data.subarray(0,3*ue)):me.set(this._data)),this._data=me;for(var ae=this.length;ae<ue;++ae)this.setCell(ae,le)}else if(ue){(me=new Uint32Array(3*ue)).set(this._data.subarray(0,3*ue)),this._data=me;var he=Object.keys(this._combined);for(ae=0;ae<he.length;ae++){var oe=parseInt(he[ae],10);oe>=ue&&delete this._combined[oe]}}else this._data=new Uint32Array(0),this._combined={};this.length=ue}},ie.prototype.fill=function(ue){this._combined={},this._extendedAttrs={};for(var le=0;le<this.length;++le)this.setCell(le,ue)},ie.prototype.copyFrom=function(ue){for(var le in this.length!==ue.length?this._data=new Uint32Array(ue._data):this._data.set(ue._data),this.length=ue.length,this._combined={},ue._combined)this._combined[le]=ue._combined[le];for(var le in this._extendedAttrs={},ue._extendedAttrs)this._extendedAttrs[le]=ue._extendedAttrs[le];this.isWrapped=ue.isWrapped},ie.prototype.clone=function(){var ue=new ie(0);for(var le in ue._data=new Uint32Array(this._data),ue.length=this.length,this._combined)ue._combined[le]=this._combined[le];for(var le in this._extendedAttrs)ue._extendedAttrs[le]=this._extendedAttrs[le];return ue.isWrapped=this.isWrapped,ue},ie.prototype.getTrimmedLength=function(){for(var ue=this.length-1;ue>=0;--ue)if(4194303&this._data[3*ue+0])return ue+(this._data[3*ue+0]>>22);return 0},ie.prototype.copyCellsFrom=function(ue,le,me,ae,he){var oe=ue._data;if(he)for(var ne=ae-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(le+ne)+a];else for(ne=0;ne<ae;ne++)for(a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(le+ne)+a];var y=Object.keys(ue._combined);for(a=0;a<y.length;a++){var E=parseInt(y[a],10);E>=le&&(this._combined[E-le+me]=ue._combined[E])}},ie.prototype.translateToString=function(ue,le,me){ue===void 0&&(ue=!1),le===void 0&&(le=0),me===void 0&&(me=this.length),ue&&(me=Math.min(me,this.getTrimmedLength()));for(var ae="";le<me;){var he=this._data[3*le+0],oe=2097151&he;ae+=2097152&he?this._combined[le]:oe?ge.stringFromCodePoint(oe):be.WHITESPACE_CELL_CHAR,le+=he>>22||1}return ae},ie}();te.BufferLine=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeElementFromParent=void 0,te.removeElementFromParent=function(){for(var ge,be=[],ve=0;ve<arguments.length;ve++)be[ve]=arguments[ve];for(var Se=0,fe=be;Se<fe.length;Se++){var ie=fe[Se];(ge=ie==null?void 0:ie.parentElement)===null||ge===void 0||ge.removeChild(ie)}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.tooMuchOutput=te.promptLabel=void 0,te.promptLabel="Terminal input",te.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(se,ce){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,ye){_e.__proto__=ye}||function(_e,ye){for(var De in ye)ye.hasOwnProperty(De)&&(_e[De]=ye[De])})(se,ce)},function(se,ce){function _e(){this.constructor=se}ge(se,ce),se.prototype=ce===null?Object.create(ce):(_e.prototype=ce.prototype,new _e)});Object.defineProperty(te,"__esModule",{value:!0}),te.InputHandler=te.WindowsOptionsReportType=void 0;var ve,Se=ee(12),fe=ee(20),ie=ee(39),ue=ee(2),le=ee(15),me=ee(8),ae=ee(16),he=ee(0),oe=ee(3),ne=ee(4),a=ee(6),y=ee(22),E=ee(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(se,ce){if(se>24)return ce.setWinLines||!1;switch(se){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(se){se[se.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",se[se.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(ve=te.WindowsOptionsReportType||(te.WindowsOptionsReportType={}));var z=function(){function se(ce,_e,ye,De){this._bufferService=ce,this._coreService=_e,this._logService=ye,this._optionsService=De,this._data=new Uint32Array(0)}return se.prototype.hook=function(ce){this._data=new Uint32Array(0)},se.prototype.put=function(ce,_e,ye){this._data=le.concat(this._data,ce.subarray(_e,ye))},se.prototype.unhook=function(ce){if(ce){var _e=me.utf32ToString(this._data);switch(this._data=new Uint32Array(0),_e){case'"q':return this._coreService.triggerDataEvent(Se.C0.ESC+'P1$r0"q'+Se.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(Se.C0.ESC+'P1$r61;1"p'+Se.C0.ESC+"\\");case"r":var ye=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(Se.C0.ESC+"P1$r"+ye+Se.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(Se.C0.ESC+"P1$r0m"+Se.C0.ESC+"\\");case" q":var De={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return De-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(Se.C0.ESC+"P1$r"+De+" q"+Se.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",_e),this._coreService.triggerDataEvent(Se.C0.ESC+"P0$r"+Se.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},se}(),re=function(se){function ce(_e,ye,De,Ee,je,Le,ft,Xe,pt){pt===void 0&&(pt=new ie.EscapeSequenceParser);var we=se.call(this)||this;we._bufferService=_e,we._charsetService=ye,we._coreService=De,we._dirtyRowService=Ee,we._logService=je,we._optionsService=Le,we._coreMouseService=ft,we._unicodeService=Xe,we._parser=pt,we._parseBuffer=new Uint32Array(4096),we._stringDecoder=new me.StringToUtf32,we._utf8Decoder=new me.Utf8ToUtf32,we._workCell=new ne.CellData,we._windowTitle="",we._iconName="",we._windowTitleStack=[],we._iconNameStack=[],we._curAttrData=ae.DEFAULT_ATTR_DATA.clone(),we._eraseAttrDataInternal=ae.DEFAULT_ATTR_DATA.clone(),we._onRequestBell=new he.EventEmitter,we._onRequestRefreshRows=new he.EventEmitter,we._onRequestReset=new he.EventEmitter,we._onRequestScroll=new he.EventEmitter,we._onRequestSyncScrollBar=new he.EventEmitter,we._onRequestWindowsOptionsReport=new he.EventEmitter,we._onA11yChar=new he.EventEmitter,we._onA11yTab=new he.EventEmitter,we._onCursorMove=new he.EventEmitter,we._onLineFeed=new he.EventEmitter,we._onScroll=new he.EventEmitter,we._onTitleChange=new he.EventEmitter,we.register(we._parser),we._parser.setCsiHandlerFallback(function(Ke,mt){we._logService.debug("Unknown CSI code: ",{identifier:we._parser.identToString(Ke),params:mt.toArray()})}),we._parser.setEscHandlerFallback(function(Ke){we._logService.debug("Unknown ESC code: ",{identifier:we._parser.identToString(Ke)})}),we._parser.setExecuteHandlerFallback(function(Ke){we._logService.debug("Unknown EXECUTE code: ",{code:Ke})}),we._parser.setOscHandlerFallback(function(Ke,mt,_t){we._logService.debug("Unknown OSC code: ",{identifier:Ke,action:mt,data:_t})}),we._parser.setDcsHandlerFallback(function(Ke,mt,_t){mt==="HOOK"&&(_t=_t.toArray()),we._logService.debug("Unknown DCS code: ",{identifier:we._parser.identToString(Ke),action:mt,payload:_t})}),we._parser.setPrintHandler(function(Ke,mt,_t){return we.print(Ke,mt,_t)}),we._parser.setCsiHandler({final:"@"},function(Ke){return we.insertChars(Ke)}),we._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ke){return we.scrollLeft(Ke)}),we._parser.setCsiHandler({final:"A"},function(Ke){return we.cursorUp(Ke)}),we._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ke){return we.scrollRight(Ke)}),we._parser.setCsiHandler({final:"B"},function(Ke){return we.cursorDown(Ke)}),we._parser.setCsiHandler({final:"C"},function(Ke){return we.cursorForward(Ke)}),we._parser.setCsiHandler({final:"D"},function(Ke){return we.cursorBackward(Ke)}),we._parser.setCsiHandler({final:"E"},function(Ke){return we.cursorNextLine(Ke)}),we._parser.setCsiHandler({final:"F"},function(Ke){return we.cursorPrecedingLine(Ke)}),we._parser.setCsiHandler({final:"G"},function(Ke){return we.cursorCharAbsolute(Ke)}),we._parser.setCsiHandler({final:"H"},function(Ke){return we.cursorPosition(Ke)}),we._parser.setCsiHandler({final:"I"},function(Ke){return we.cursorForwardTab(Ke)}),we._parser.setCsiHandler({final:"J"},function(Ke){return we.eraseInDisplay(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"J"},function(Ke){return we.eraseInDisplay(Ke)}),we._parser.setCsiHandler({final:"K"},function(Ke){return we.eraseInLine(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"K"},function(Ke){return we.eraseInLine(Ke)}),we._parser.setCsiHandler({final:"L"},function(Ke){return we.insertLines(Ke)}),we._parser.setCsiHandler({final:"M"},function(Ke){return we.deleteLines(Ke)}),we._parser.setCsiHandler({final:"P"},function(Ke){return we.deleteChars(Ke)}),we._parser.setCsiHandler({final:"S"},function(Ke){return we.scrollUp(Ke)}),we._parser.setCsiHandler({final:"T"},function(Ke){return we.scrollDown(Ke)}),we._parser.setCsiHandler({final:"X"},function(Ke){return we.eraseChars(Ke)}),we._parser.setCsiHandler({final:"Z"},function(Ke){return we.cursorBackwardTab(Ke)}),we._parser.setCsiHandler({final:"`"},function(Ke){return we.charPosAbsolute(Ke)}),we._parser.setCsiHandler({final:"a"},function(Ke){return we.hPositionRelative(Ke)}),we._parser.setCsiHandler({final:"b"},function(Ke){return we.repeatPrecedingCharacter(Ke)}),we._parser.setCsiHandler({final:"c"},function(Ke){return we.sendDeviceAttributesPrimary(Ke)}),we._parser.setCsiHandler({prefix:">",final:"c"},function(Ke){return we.sendDeviceAttributesSecondary(Ke)}),we._parser.setCsiHandler({final:"d"},function(Ke){return we.linePosAbsolute(Ke)}),we._parser.setCsiHandler({final:"e"},function(Ke){return we.vPositionRelative(Ke)}),we._parser.setCsiHandler({final:"f"},function(Ke){return we.hVPosition(Ke)}),we._parser.setCsiHandler({final:"g"},function(Ke){return we.tabClear(Ke)}),we._parser.setCsiHandler({final:"h"},function(Ke){return we.setMode(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"h"},function(Ke){return we.setModePrivate(Ke)}),we._parser.setCsiHandler({final:"l"},function(Ke){return we.resetMode(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"l"},function(Ke){return we.resetModePrivate(Ke)}),we._parser.setCsiHandler({final:"m"},function(Ke){return we.charAttributes(Ke)}),we._parser.setCsiHandler({final:"n"},function(Ke){return we.deviceStatus(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"n"},function(Ke){return we.deviceStatusPrivate(Ke)}),we._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ke){return we.softReset(Ke)}),we._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ke){return we.setCursorStyle(Ke)}),we._parser.setCsiHandler({final:"r"},function(Ke){return we.setScrollRegion(Ke)}),we._parser.setCsiHandler({final:"s"},function(Ke){return we.saveCursor(Ke)}),we._parser.setCsiHandler({final:"t"},function(Ke){return we.windowOptions(Ke)}),we._parser.setCsiHandler({final:"u"},function(Ke){return we.restoreCursor(Ke)}),we._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ke){return we.insertColumns(Ke)}),we._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ke){return we.deleteColumns(Ke)}),we._parser.setExecuteHandler(Se.C0.BEL,function(){return we.bell()}),we._parser.setExecuteHandler(Se.C0.LF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(Se.C0.VT,function(){return we.lineFeed()}),we._parser.setExecuteHandler(Se.C0.FF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(Se.C0.CR,function(){return we.carriageReturn()}),we._parser.setExecuteHandler(Se.C0.BS,function(){return we.backspace()}),we._parser.setExecuteHandler(Se.C0.HT,function(){return we.tab()}),we._parser.setExecuteHandler(Se.C0.SO,function(){return we.shiftOut()}),we._parser.setExecuteHandler(Se.C0.SI,function(){return we.shiftIn()}),we._parser.setExecuteHandler(Se.C1.IND,function(){return we.index()}),we._parser.setExecuteHandler(Se.C1.NEL,function(){return we.nextLine()}),we._parser.setExecuteHandler(Se.C1.HTS,function(){return we.tabSet()}),we._parser.setOscHandler(0,new y.OscHandler(function(Ke){we.setTitle(Ke),we.setIconName(Ke)})),we._parser.setOscHandler(1,new y.OscHandler(function(Ke){return we.setIconName(Ke)})),we._parser.setOscHandler(2,new y.OscHandler(function(Ke){return we.setTitle(Ke)})),we._parser.setEscHandler({final:"7"},function(){return we.saveCursor()}),we._parser.setEscHandler({final:"8"},function(){return we.restoreCursor()}),we._parser.setEscHandler({final:"D"},function(){return we.index()}),we._parser.setEscHandler({final:"E"},function(){return we.nextLine()}),we._parser.setEscHandler({final:"H"},function(){return we.tabSet()}),we._parser.setEscHandler({final:"M"},function(){return we.reverseIndex()}),we._parser.setEscHandler({final:"="},function(){return we.keypadApplicationMode()}),we._parser.setEscHandler({final:">"},function(){return we.keypadNumericMode()}),we._parser.setEscHandler({final:"c"},function(){return we.fullReset()}),we._parser.setEscHandler({final:"n"},function(){return we.setgLevel(2)}),we._parser.setEscHandler({final:"o"},function(){return we.setgLevel(3)}),we._parser.setEscHandler({final:"|"},function(){return we.setgLevel(3)}),we._parser.setEscHandler({final:"}"},function(){return we.setgLevel(2)}),we._parser.setEscHandler({final:"~"},function(){return we.setgLevel(1)}),we._parser.setEscHandler({intermediates:"%",final:"@"},function(){return we.selectDefaultCharset()}),we._parser.setEscHandler({intermediates:"%",final:"G"},function(){return we.selectDefaultCharset()});var Fe=function(Ke){He._parser.setEscHandler({intermediates:"(",final:Ke},function(){return we.selectCharset("("+Ke)}),He._parser.setEscHandler({intermediates:")",final:Ke},function(){return we.selectCharset(")"+Ke)}),He._parser.setEscHandler({intermediates:"*",final:Ke},function(){return we.selectCharset("*"+Ke)}),He._parser.setEscHandler({intermediates:"+",final:Ke},function(){return we.selectCharset("+"+Ke)}),He._parser.setEscHandler({intermediates:"-",final:Ke},function(){return we.selectCharset("-"+Ke)}),He._parser.setEscHandler({intermediates:".",final:Ke},function(){return we.selectCharset("."+Ke)}),He._parser.setEscHandler({intermediates:"/",final:Ke},function(){return we.selectCharset("/"+Ke)})},He=this;for(var st in fe.CHARSETS)Fe(st);return we._parser.setEscHandler({intermediates:"#",final:"8"},function(){return we.screenAlignmentPattern()}),we._parser.setErrorHandler(function(Ke){return we._logService.error("Parsing error: ",Ke),Ke}),we._parser.setDcsHandler({intermediates:"$",final:"q"},new z(we._bufferService,we._coreService,we._logService,we._optionsService)),we}return be(ce,se),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(){se.prototype.dispose.call(this)},ce.prototype.parse=function(_e){var ye=this._bufferService.buffer,De=ye.x,Ee=ye.y;if(this._logService.debug("parsing data",_e),this._parseBuffer.length<_e.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(_e.length,131072))),this._dirtyRowService.clearRange(),_e.length>131072)for(var je=0;je<_e.length;je+=131072){var Le=je+131072<_e.length?je+131072:_e.length,ft=typeof _e=="string"?this._stringDecoder.decode(_e.substring(je,Le),this._parseBuffer):this._utf8Decoder.decode(_e.subarray(je,Le),this._parseBuffer);this._parser.parse(this._parseBuffer,ft)}else ft=typeof _e=="string"?this._stringDecoder.decode(_e,this._parseBuffer):this._utf8Decoder.decode(_e,this._parseBuffer),this._parser.parse(this._parseBuffer,ft);(ye=this._bufferService.buffer).x===De&&ye.y===Ee||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ce.prototype.print=function(_e,ye,De){var Ee,je,Le=this._bufferService.buffer,ft=this._charsetService.charset,Xe=this._optionsService.options.screenReaderMode,pt=this._bufferService.cols,we=this._coreService.decPrivateModes.wraparound,Fe=this._coreService.modes.insertMode,He=this._curAttrData,st=Le.lines.get(Le.ybase+Le.y);this._dirtyRowService.markDirty(Le.y),Le.x&&De-ye>0&&st.getWidth(Le.x-1)===2&&st.setCellFromCodePoint(Le.x-1,0,1,He.fg,He.bg,He.extended);for(var Ke=ye;Ke<De;++Ke){if(Ee=_e[Ke],je=this._unicodeService.wcwidth(Ee),Ee<127&&ft){var mt=ft[String.fromCharCode(Ee)];mt&&(Ee=mt.charCodeAt(0))}if(Xe&&this._onA11yChar.fire(me.stringFromCodePoint(Ee)),je||!Le.x){if(Le.x+je-1>=pt){if(we){for(;Le.x<pt;)st.setCellFromCodePoint(Le.x++,0,1,He.fg,He.bg,He.extended);Le.x=0,Le.y++,Le.y===Le.scrollBottom+1?(Le.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Le.y>=this._bufferService.rows&&(Le.y=this._bufferService.rows-1),Le.lines.get(Le.ybase+Le.y).isWrapped=!0),st=Le.lines.get(Le.ybase+Le.y)}else if(Le.x=pt-1,je===2)continue}if(Fe&&(st.insertCells(Le.x,je,Le.getNullCell(He),He),st.getWidth(pt-1)===2&&st.setCellFromCodePoint(pt-1,oe.NULL_CELL_CODE,oe.NULL_CELL_WIDTH,He.fg,He.bg,He.extended)),st.setCellFromCodePoint(Le.x++,Ee,je,He.fg,He.bg,He.extended),je>0)for(;--je;)st.setCellFromCodePoint(Le.x++,0,0,He.fg,He.bg,He.extended)}else st.getWidth(Le.x-1)?st.addCodepointToCell(Le.x-1,Ee):st.addCodepointToCell(Le.x-2,Ee)}De-ye>0&&(st.loadCell(Le.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),Le.x<pt&&De-ye>0&&st.getWidth(Le.x)===0&&!st.hasContent(Le.x)&&st.setCellFromCodePoint(Le.x,0,1,He.fg,He.bg,He.extended),this._dirtyRowService.markDirty(Le.y)},ce.prototype.addCsiHandler=function(_e,ye){var De=this;return _e.final!=="t"||_e.prefix||_e.intermediates?this._parser.addCsiHandler(_e,ye):this._parser.addCsiHandler(_e,function(Ee){return!x(Ee.params[0],De._optionsService.options.windowOptions)||ye(Ee)})},ce.prototype.addDcsHandler=function(_e,ye){return this._parser.addDcsHandler(_e,new E.DcsHandler(ye))},ce.prototype.addEscHandler=function(_e,ye){return this._parser.addEscHandler(_e,ye)},ce.prototype.addOscHandler=function(_e,ye){return this._parser.addOscHandler(_e,new y.OscHandler(ye))},ce.prototype.bell=function(){this._onRequestBell.fire()},ce.prototype.lineFeed=function(){var _e=this._bufferService.buffer;this._dirtyRowService.markDirty(_e.y),this._optionsService.options.convertEol&&(_e.x=0),_e.y++,_e.y===_e.scrollBottom+1?(_e.y--,this._onRequestScroll.fire(this._eraseAttrData())):_e.y>=this._bufferService.rows&&(_e.y=this._bufferService.rows-1),_e.x>=this._bufferService.cols&&_e.x--,this._dirtyRowService.markDirty(_e.y),this._onLineFeed.fire()},ce.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ce.prototype.backspace=function(){var _e,ye=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(ye.x>0&&ye.x--);if(this._restrictCursor(this._bufferService.cols),ye.x>0)ye.x--;else if(ye.x===0&&ye.y>ye.scrollTop&&ye.y<=ye.scrollBottom&&(!((_e=ye.lines.get(ye.ybase+ye.y))===null||_e===void 0)&&_e.isWrapped)){ye.lines.get(ye.ybase+ye.y).isWrapped=!1,ye.y--,ye.x=this._bufferService.cols-1;var De=ye.lines.get(ye.ybase+ye.y);De.hasWidth(ye.x)&&!De.hasContent(ye.x)&&ye.x--}this._restrictCursor()},ce.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var _e=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-_e)}},ce.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ce.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ce.prototype._restrictCursor=function(_e){_e===void 0&&(_e=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(_e,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(_e,ye){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=_e,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+ye):(this._bufferService.buffer.x=_e,this._bufferService.buffer.y=ye),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype._moveCursor=function(_e,ye){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+_e,this._bufferService.buffer.y+ye)},ce.prototype.cursorUp=function(_e){var ye=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;ye>=0?this._moveCursor(0,-Math.min(ye,_e.params[0]||1)):this._moveCursor(0,-(_e.params[0]||1))},ce.prototype.cursorDown=function(_e){var ye=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;ye>=0?this._moveCursor(0,Math.min(ye,_e.params[0]||1)):this._moveCursor(0,_e.params[0]||1)},ce.prototype.cursorForward=function(_e){this._moveCursor(_e.params[0]||1,0)},ce.prototype.cursorBackward=function(_e){this._moveCursor(-(_e.params[0]||1),0)},ce.prototype.cursorNextLine=function(_e){this.cursorDown(_e),this._bufferService.buffer.x=0},ce.prototype.cursorPrecedingLine=function(_e){this.cursorUp(_e),this._bufferService.buffer.x=0},ce.prototype.cursorCharAbsolute=function(_e){this._setCursor((_e.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.cursorPosition=function(_e){this._setCursor(_e.length>=2?(_e.params[1]||1)-1:0,(_e.params[0]||1)-1)},ce.prototype.charPosAbsolute=function(_e){this._setCursor((_e.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.hPositionRelative=function(_e){this._moveCursor(_e.params[0]||1,0)},ce.prototype.linePosAbsolute=function(_e){this._setCursor(this._bufferService.buffer.x,(_e.params[0]||1)-1)},ce.prototype.vPositionRelative=function(_e){this._moveCursor(0,_e.params[0]||1)},ce.prototype.hVPosition=function(_e){this.cursorPosition(_e)},ce.prototype.tabClear=function(_e){var ye=_e.params[0];ye===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:ye===3&&(this._bufferService.buffer.tabs={})},ce.prototype.cursorForwardTab=function(_e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ye=_e.params[0]||1;ye--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ce.prototype.cursorBackwardTab=function(_e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ye=_e.params[0]||1,De=this._bufferService.buffer;ye--;)De.x=De.prevStop()},ce.prototype._eraseInBufferLine=function(_e,ye,De,Ee){Ee===void 0&&(Ee=!1);var je=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_e);je.replaceCells(ye,De,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ee&&(je.isWrapped=!1)},ce.prototype._resetBufferLine=function(_e){var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_e);ye.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),ye.isWrapped=!1},ce.prototype.eraseInDisplay=function(_e){var ye;switch(this._restrictCursor(),_e.params[0]){case 0:for(ye=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ye),this._eraseInBufferLine(ye++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);ye<this._bufferService.rows;ye++)this._resetBufferLine(ye);this._dirtyRowService.markDirty(ye);break;case 1:for(ye=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ye),this._eraseInBufferLine(ye,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(ye+1).isWrapped=!1);ye--;)this._resetBufferLine(ye);this._dirtyRowService.markDirty(0);break;case 2:for(ye=this._bufferService.rows,this._dirtyRowService.markDirty(ye-1);ye--;)this._resetBufferLine(ye);this._dirtyRowService.markDirty(0);break;case 3:var De=this._bufferService.buffer.lines.length-this._bufferService.rows;De>0&&(this._bufferService.buffer.lines.trimStart(De),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-De,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-De,0),this._onScroll.fire(0))}},ce.prototype.eraseInLine=function(_e){switch(this._restrictCursor(),_e.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(_e){this._restrictCursor();var ye=_e.params[0]||1,De=this._bufferService.buffer;if(!(De.y>De.scrollBottom||De.y<De.scrollTop)){for(var Ee=De.ybase+De.y,je=this._bufferService.rows-1-De.scrollBottom,Le=this._bufferService.rows-1+De.ybase-je+1;ye--;)De.lines.splice(Le-1,1),De.lines.splice(Ee,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.y,De.scrollBottom),De.x=0}},ce.prototype.deleteLines=function(_e){this._restrictCursor();var ye=_e.params[0]||1,De=this._bufferService.buffer;if(!(De.y>De.scrollBottom||De.y<De.scrollTop)){var Ee,je=De.ybase+De.y;for(Ee=this._bufferService.rows-1-De.scrollBottom,Ee=this._bufferService.rows-1+De.ybase-Ee;ye--;)De.lines.splice(je,1),De.lines.splice(Ee,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.y,De.scrollBottom),De.x=0}},ce.prototype.insertChars=function(_e){this._restrictCursor();var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ye&&(ye.insertCells(this._bufferService.buffer.x,_e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.deleteChars=function(_e){this._restrictCursor();var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ye&&(ye.deleteCells(this._bufferService.buffer.x,_e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.scrollUp=function(_e){for(var ye=_e.params[0]||1,De=this._bufferService.buffer;ye--;)De.lines.splice(De.ybase+De.scrollTop,1),De.lines.splice(De.ybase+De.scrollBottom,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.scrollTop,De.scrollBottom)},ce.prototype.scrollDown=function(_e){for(var ye=_e.params[0]||1,De=this._bufferService.buffer;ye--;)De.lines.splice(De.ybase+De.scrollBottom,1),De.lines.splice(De.ybase+De.scrollTop,0,De.getBlankLine(ae.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(De.scrollTop,De.scrollBottom)},ce.prototype.scrollLeft=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=ye.lines.get(ye.ybase+Ee);je.deleteCells(0,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.scrollRight=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=ye.lines.get(ye.ybase+Ee);je.insertCells(0,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.insertColumns=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=this._bufferService.buffer.lines.get(ye.ybase+Ee);je.insertCells(ye.x,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.deleteColumns=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=ye.lines.get(ye.ybase+Ee);je.deleteCells(ye.x,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.eraseChars=function(_e){this._restrictCursor();var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ye&&(ye.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(_e.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.repeatPrecedingCharacter=function(_e){if(this._parser.precedingCodepoint){for(var ye=_e.params[0]||1,De=new Uint32Array(ye),Ee=0;Ee<ye;++Ee)De[Ee]=this._parser.precedingCodepoint;this.print(De,0,De.length)}},ce.prototype.sendDeviceAttributesPrimary=function(_e){_e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(Se.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(Se.C0.ESC+"[?6c"))},ce.prototype.sendDeviceAttributesSecondary=function(_e){_e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(Se.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(Se.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(_e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(Se.C0.ESC+"[>83;40003;0c"))},ce.prototype._is=function(_e){return(this._optionsService.options.termName+"").indexOf(_e)===0},ce.prototype.setMode=function(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){case 4:this._coreService.modes.insertMode=!0}},ce.prototype.setModePrivate=function(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,fe.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(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){case 4:this._coreService.modes.insertMode=!1}},ce.prototype.resetModePrivate=function(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){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(),_e.params[ye]===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(_e,ye,De,Ee,je){return ye===2?(_e|=50331648,_e&=-16777216,_e|=a.AttributeData.fromColorRGB([De,Ee,je])):ye===5&&(_e&=-50331904,_e|=33554432|255&De),_e},ce.prototype._extractColor=function(_e,ye,De){var Ee=[0,0,-1,0,0,0],je=0,Le=0;do{if(Ee[Le+je]=_e.params[ye+Le],_e.hasSubParams(ye+Le)){var ft=_e.getSubParams(ye+Le),Xe=0;do Ee[1]===5&&(je=1),Ee[Le+Xe+1+je]=ft[Xe];while(++Xe<ft.length&&Xe+Le+1+je<Ee.length);break}if(Ee[1]===5&&Le+je>=2||Ee[1]===2&&Le+je>=5)break;Ee[1]&&(je=1)}while(++Le+ye<_e.length&&Le+je<Ee.length);for(Xe=2;Xe<Ee.length;++Xe)Ee[Xe]===-1&&(Ee[Xe]=0);switch(Ee[0]){case 38:De.fg=this._updateAttrColor(De.fg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 48:De.bg=this._updateAttrColor(De.bg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 58:De.extended=De.extended.clone(),De.extended.underlineColor=this._updateAttrColor(De.extended.underlineColor,Ee[1],Ee[3],Ee[4],Ee[5])}return Le},ce.prototype._processUnderline=function(_e,ye){ye.extended=ye.extended.clone(),(!~_e||_e>5)&&(_e=1),ye.extended.underlineStyle=_e,ye.fg|=268435456,_e===0&&(ye.fg&=-268435457),ye.updateExtended()},ce.prototype.charAttributes=function(_e){if(_e.length===1&&_e.params[0]===0)return this._curAttrData.fg=ae.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=ae.DEFAULT_ATTR_DATA.bg);for(var ye,De=_e.length,Ee=this._curAttrData,je=0;je<De;je++)(ye=_e.params[je])>=30&&ye<=37?(Ee.fg&=-50331904,Ee.fg|=16777216|ye-30):ye>=40&&ye<=47?(Ee.bg&=-50331904,Ee.bg|=16777216|ye-40):ye>=90&&ye<=97?(Ee.fg&=-50331904,Ee.fg|=16777224|ye-90):ye>=100&&ye<=107?(Ee.bg&=-50331904,Ee.bg|=16777224|ye-100):ye===0?(Ee.fg=ae.DEFAULT_ATTR_DATA.fg,Ee.bg=ae.DEFAULT_ATTR_DATA.bg):ye===1?Ee.fg|=134217728:ye===3?Ee.bg|=67108864:ye===4?(Ee.fg|=268435456,this._processUnderline(_e.hasSubParams(je)?_e.getSubParams(je)[0]:1,Ee)):ye===5?Ee.fg|=536870912:ye===7?Ee.fg|=67108864:ye===8?Ee.fg|=1073741824:ye===2?Ee.bg|=134217728:ye===21?this._processUnderline(2,Ee):ye===22?(Ee.fg&=-134217729,Ee.bg&=-134217729):ye===23?Ee.bg&=-67108865:ye===24?Ee.fg&=-268435457:ye===25?Ee.fg&=-536870913:ye===27?Ee.fg&=-67108865:ye===28?Ee.fg&=-1073741825:ye===39?(Ee.fg&=-67108864,Ee.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg):ye===49?(Ee.bg&=-67108864,Ee.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):ye===38||ye===48||ye===58?je+=this._extractColor(_e,je,Ee):ye===59?(Ee.extended=Ee.extended.clone(),Ee.extended.underlineColor=-1,Ee.updateExtended()):ye===100?(Ee.fg&=-67108864,Ee.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg,Ee.bg&=-67108864,Ee.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ye)},ce.prototype.deviceStatus=function(_e){switch(_e.params[0]){case 5:this._coreService.triggerDataEvent(Se.C0.ESC+"[0n");break;case 6:var ye=this._bufferService.buffer.y+1,De=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Se.C0.ESC+"["+ye+";"+De+"R")}},ce.prototype.deviceStatusPrivate=function(_e){switch(_e.params[0]){case 6:var ye=this._bufferService.buffer.y+1,De=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Se.C0.ESC+"[?"+ye+";"+De+"R")}},ce.prototype.softReset=function(_e){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=ae.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(_e){var ye=_e.params[0]||1;switch(ye){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 De=ye%2==1;this._optionsService.options.cursorBlink=De},ce.prototype.setScrollRegion=function(_e){var ye,De=_e.params[0]||1;(_e.length<2||(ye=_e.params[1])>this._bufferService.rows||ye===0)&&(ye=this._bufferService.rows),ye>De&&(this._bufferService.buffer.scrollTop=De-1,this._bufferService.buffer.scrollBottom=ye-1,this._setCursor(0,0))},ce.prototype.windowOptions=function(_e){if(x(_e.params[0],this._optionsService.options.windowOptions)){var ye=_e.length>1?_e.params[1]:0;switch(_e.params[0]){case 14:ye!==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(Se.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:ye!==0&&ye!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),ye!==0&&ye!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:ye!==0&&ye!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),ye!==0&&ye!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ce.prototype.saveCursor=function(_e){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(_e){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(_e){this._windowTitle=_e,this._onTitleChange.fire(_e)},ce.prototype.setIconName=function(_e){this._iconName=_e},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,fe.DEFAULT_CHARSET)},ce.prototype.selectCharset=function(_e){_e.length===2?_e[0]!=="/"&&this._charsetService.setgCharset(b[_e[0]],fe.CHARSETS[_e[1]]||fe.DEFAULT_CHARSET):this.selectDefaultCharset()},ce.prototype.index=function(){this._restrictCursor();var _e=this._bufferService.buffer;this._bufferService.buffer.y++,_e.y===_e.scrollBottom+1?(_e.y--,this._onRequestScroll.fire(this._eraseAttrData())):_e.y>=this._bufferService.rows&&(_e.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 _e=this._bufferService.buffer;if(_e.y===_e.scrollTop){var ye=_e.scrollBottom-_e.scrollTop;_e.lines.shiftElements(_e.ybase+_e.y,ye,1),_e.lines.set(_e.ybase+_e.y,_e.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}else _e.y--,this._restrictCursor()},ce.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ce.prototype.reset=function(){this._curAttrData=ae.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=ae.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(_e){this._charsetService.setgLevel(_e)},ce.prototype.screenAlignmentPattern=function(){var _e=new ne.CellData;_e.content=1<<22|69,_e.fg=this._curAttrData.fg,_e.bg=this._curAttrData.bg;var ye=this._bufferService.buffer;this._setCursor(0,0);for(var De=0;De<this._bufferService.rows;++De){var Ee=ye.ybase+ye.y+De,je=ye.lines.get(Ee);je&&(je.fill(_e),je.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ce}(ue.Disposable);te.InputHandler=re},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DEFAULT_CHARSET=te.CHARSETS=void 0,te.CHARSETS={},te.DEFAULT_CHARSET=te.CHARSETS.B,te.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"},te.CHARSETS.A={"#":"\xA3"},te.CHARSETS.B=void 0,te.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},te.CHARSETS.C=te.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},te.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},te.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},te.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},te.CHARSETS.E=te.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},te.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},te.CHARSETS.H=te.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Params=void 0;var ge=function(){function be(ve,Se){if(ve===void 0&&(ve=32),Se===void 0&&(Se=32),this.maxLength=ve,this.maxSubParamsLength=Se,Se>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(ve),this.length=0,this._subParams=new Int32Array(Se),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(ve),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(ve){var Se=new be;if(!ve.length)return Se;for(var fe=ve[0]instanceof Array?1:0;fe<ve.length;++fe){var ie=ve[fe];if(ie instanceof Array)for(var ue=0;ue<ie.length;++ue)Se.addSubParam(ie[ue]);else Se.addParam(ie)}return Se},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=[],Se=0;Se<this.length;++Se){ve.push(this.params[Se]);var fe=this._subParamsIdx[Se]>>8,ie=255&this._subParamsIdx[Se];ie-fe>0&&ve.push(Array.prototype.slice.call(this._subParams,fe,ie))}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 Se=this._subParamsIdx[ve]>>8,fe=255&this._subParamsIdx[ve];return fe-Se>0?this._subParams.subarray(Se,fe):null},be.prototype.getSubParamsAll=function(){for(var ve={},Se=0;Se<this.length;++Se){var fe=this._subParamsIdx[Se]>>8,ie=255&this._subParamsIdx[Se];ie-fe>0&&(ve[Se]=this._subParams.slice(fe,ie))}return ve},be.prototype.addDigit=function(ve){var Se;if(!(this._rejectDigits||!(Se=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var fe=this._digitIsSub?this._subParams:this.params,ie=fe[Se-1];fe[Se-1]=~ie?Math.min(10*ie+ve,2147483647):ve}},be}();te.Params=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OscHandler=te.OscParser=void 0;var ge=ee(23),be=ee(8),ve=function(){function fe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return fe.prototype.addHandler=function(ie,ue){this._handlers[ie]===void 0&&(this._handlers[ie]=[]);var le=this._handlers[ie];return le.push(ue),{dispose:function(){var me=le.indexOf(ue);me!==-1&&le.splice(me,1)}}},fe.prototype.setHandler=function(ie,ue){this._handlers[ie]=[ue]},fe.prototype.clearHandler=function(ie){this._handlers[ie]&&delete this._handlers[ie]},fe.prototype.setHandlerFallback=function(ie){this._handlerFb=ie},fe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},fe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},fe.prototype._start=function(){var ie=this._handlers[this._id];if(ie)for(var ue=ie.length-1;ue>=0;ue--)ie[ue].start();else this._handlerFb(this._id,"START")},fe.prototype._put=function(ie,ue,le){var me=this._handlers[this._id];if(me)for(var ae=me.length-1;ae>=0;ae--)me[ae].put(ie,ue,le);else this._handlerFb(this._id,"PUT",be.utf32ToString(ie,ue,le))},fe.prototype._end=function(ie){var ue=this._handlers[this._id];if(ue){for(var le=ue.length-1;le>=0&&ue[le].end(ie)===!1;le--);for(le--;le>=0;le--)ue[le].end(!1)}else this._handlerFb(this._id,"END",ie)},fe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},fe.prototype.put=function(ie,ue,le){if(this._state!==3){if(this._state===1)for(;ue<le;){var me=ie[ue++];if(me===59){this._state=2,this._start();break}if(me<48||57<me)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+me-48}this._state===2&&le-ue>0&&this._put(ie,ue,le)}},fe.prototype.end=function(ie){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ie)),this._id=-1,this._state=0)},fe}();te.OscParser=ve;var Se=function(){function fe(ie){this._handler=ie,this._data="",this._hitLimit=!1}return fe.prototype.start=function(){this._data="",this._hitLimit=!1},fe.prototype.put=function(ie,ue,le){this._hitLimit||(this._data+=be.utf32ToString(ie,ue,le),this._data.length>ge.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},fe.prototype.end=function(ie){var ue;return this._hitLimit?ue=!1:ie&&(ue=this._handler(this._data)),this._data="",this._hitLimit=!1,ue},fe}();te.OscHandler=Se},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.PAYLOAD_LIMIT=void 0,te.PAYLOAD_LIMIT=1e7},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DcsHandler=te.DcsParser=void 0;var ge=ee(8),be=ee(21),ve=ee(23),Se=[],fe=function(){function ue(){this._handlers=Object.create(null),this._active=Se,this._ident=0,this._handlerFb=function(){}}return ue.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ue.prototype.addHandler=function(le,me){this._handlers[le]===void 0&&(this._handlers[le]=[]);var ae=this._handlers[le];return ae.push(me),{dispose:function(){var he=ae.indexOf(me);he!==-1&&ae.splice(he,1)}}},ue.prototype.setHandler=function(le,me){this._handlers[le]=[me]},ue.prototype.clearHandler=function(le){this._handlers[le]&&delete this._handlers[le]},ue.prototype.setHandlerFallback=function(le){this._handlerFb=le},ue.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=Se,this._ident=0},ue.prototype.hook=function(le,me){if(this.reset(),this._ident=le,this._active=this._handlers[le]||Se,this._active.length)for(var ae=this._active.length-1;ae>=0;ae--)this._active[ae].hook(me);else this._handlerFb(this._ident,"HOOK",me)},ue.prototype.put=function(le,me,ae){if(this._active.length)for(var he=this._active.length-1;he>=0;he--)this._active[he].put(le,me,ae);else this._handlerFb(this._ident,"PUT",ge.utf32ToString(le,me,ae))},ue.prototype.unhook=function(le){if(this._active.length){for(var me=this._active.length-1;me>=0&&this._active[me].unhook(le)===!1;me--);for(me--;me>=0;me--)this._active[me].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",le);this._active=Se,this._ident=0},ue}();te.DcsParser=fe;var ie=function(){function ue(le){this._handler=le,this._data="",this._hitLimit=!1}return ue.prototype.hook=function(le){this._params=le.clone(),this._data="",this._hitLimit=!1},ue.prototype.put=function(le,me,ae){this._hitLimit||(this._data+=ge.utf32ToString(le,me,ae),this._data.length>ve.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ue.prototype.unhook=function(le){var me;return this._hitLimit?me=!1:le&&(me=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,me},ue}();te.DcsHandler=ie},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeTerminalFromCache=te.acquireCharAtlas=void 0;var ge=ee(26),be=ee(43),ve=[];te.acquireCharAtlas=function(Se,fe,ie,ue,le){for(var me=ge.generateConfig(ue,le,Se,ie),ae=0;ae<ve.length;ae++){var he=(oe=ve[ae]).ownedBy.indexOf(fe);if(he>=0){if(ge.configEquals(oe.config,me))return oe.atlas;oe.ownedBy.length===1?(oe.atlas.dispose(),ve.splice(ae,1)):oe.ownedBy.splice(he,1);break}}for(ae=0;ae<ve.length;ae++){var oe=ve[ae];if(ge.configEquals(oe.config,me))return oe.ownedBy.push(fe),oe.atlas}var ne={atlas:new be.DynamicCharAtlas(document,me),config:me,ownedBy:[fe]};return ve.push(ne),ne.atlas},te.removeTerminalFromCache=function(Se){for(var fe=0;fe<ve.length;fe++){var ie=ve[fe].ownedBy.indexOf(Se);if(ie!==-1){ve[fe].ownedBy.length===1?(ve[fe].atlas.dispose(),ve.splice(fe,1)):ve[fe].ownedBy.splice(ie,1);break}}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.is256Color=te.configEquals=te.generateConfig=void 0;var ge=ee(3);te.generateConfig=function(be,ve,Se,fe){var ie={foreground:fe.foreground,background:fe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:fe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:ve,fontFamily:Se.fontFamily,fontSize:Se.fontSize,fontWeight:Se.fontWeight,fontWeightBold:Se.fontWeightBold,allowTransparency:Se.allowTransparency,colors:ie}},te.configEquals=function(be,ve){for(var Se=0;Se<be.colors.ansi.length;Se++)if(be.colors.ansi[Se].rgba!==ve.colors.ansi[Se].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},te.is256Color=function(be){return be<ge.DEFAULT_COLOR}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorManager=te.DEFAULT_ANSI_COLORS=void 0;var ge=ee(10),be=ee(45),ve=ge.css.toColor("#ffffff"),Se=ge.css.toColor("#000000"),fe=ge.css.toColor("#ffffff"),ie=ge.css.toColor("#000000"),ue={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};te.DEFAULT_ANSI_COLORS=function(){for(var me=[ge.css.toColor("#2e3436"),ge.css.toColor("#cc0000"),ge.css.toColor("#4e9a06"),ge.css.toColor("#c4a000"),ge.css.toColor("#3465a4"),ge.css.toColor("#75507b"),ge.css.toColor("#06989a"),ge.css.toColor("#d3d7cf"),ge.css.toColor("#555753"),ge.css.toColor("#ef2929"),ge.css.toColor("#8ae234"),ge.css.toColor("#fce94f"),ge.css.toColor("#729fcf"),ge.css.toColor("#ad7fa8"),ge.css.toColor("#34e2e2"),ge.css.toColor("#eeeeec")],ae=[0,95,135,175,215,255],he=0;he<216;he++){var oe=ae[he/36%6|0],ne=ae[he/6%6|0],a=ae[he%6];me.push({css:ge.channels.toCss(oe,ne,a),rgba:ge.channels.toRgba(oe,ne,a)})}for(he=0;he<24;he++){var y=8+10*he;me.push({css:ge.channels.toCss(y,y,y),rgba:ge.channels.toRgba(y,y,y)})}return me}();var le=function(){function me(ae,he){this.allowTransparency=he;var oe=ae.createElement("canvas");oe.width=1,oe.height=1;var ne=oe.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:Se,cursor:fe,cursorAccent:ie,selectionTransparent:ue,selectionOpaque:ge.color.blend(Se,ue),ansi:te.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return me.prototype.onOptionsChange=function(ae){ae==="minimumContrastRatio"&&this._contrastCache.clear()},me.prototype.setTheme=function(ae){ae===void 0&&(ae={}),this.colors.foreground=this._parseColor(ae.foreground,ve),this.colors.background=this._parseColor(ae.background,Se),this.colors.cursor=this._parseColor(ae.cursor,fe,!0),this.colors.cursorAccent=this._parseColor(ae.cursorAccent,ie,!0),this.colors.selectionTransparent=this._parseColor(ae.selection,ue,!0),this.colors.selectionOpaque=ge.color.blend(this.colors.background,this.colors.selectionTransparent),ge.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=ge.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(ae.black,te.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(ae.red,te.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(ae.green,te.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(ae.yellow,te.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(ae.blue,te.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(ae.magenta,te.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(ae.cyan,te.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(ae.white,te.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(ae.brightBlack,te.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(ae.brightRed,te.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(ae.brightGreen,te.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(ae.brightYellow,te.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(ae.brightBlue,te.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(ae.brightMagenta,te.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(ae.brightCyan,te.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(ae.brightWhite,te.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},me.prototype._parseColor=function(ae,he,oe){if(oe===void 0&&(oe=this.allowTransparency),ae===void 0)return he;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=ae,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+ae+" is invalid using fallback "+he.css),he;this._ctx.fillRect(0,0,1,1);var ne=this._ctx.getImageData(0,0,1,1).data;if(ne[3]!==255){if(!oe)return console.warn("Color: "+ae+" is using transparency, but allowTransparency is false. Using fallback "+he.css+"."),he;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(re){return Number(re)}),y=a[0],E=a[1],b=a[2],x=a[3],z=Math.round(255*x);return{rgba:ge.channels.toRgba(y,E,b,z),css:ae}}return{css:this._ctx.fillStyle,rgba:ge.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},me}();te.ColorManager=le},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.throwIfFalsy=void 0,te.throwIfFalsy=function(ge){if(!ge)throw new Error("value must not be falsy");return ge}},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(le,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,he){ae.__proto__=he}||function(ae,he){for(var oe in he)he.hasOwnProperty(oe)&&(ae[oe]=he[oe])})(le,me)},function(le,me){function ae(){this.constructor=le}ge(le,me),le.prototype=me===null?Object.create(me):(ae.prototype=me.prototype,new ae)});Object.defineProperty(te,"__esModule",{value:!0}),te.CharacterJoinerRegistry=te.JoinedCellData=void 0;var ve=ee(6),Se=ee(3),fe=ee(4),ie=function(le){function me(ae,he,oe){var ne=le.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=ae.fg,ne.bg=ae.bg,ne.combinedData=he,ne._width=oe,ne}return be(me,le),me.prototype.isCombined=function(){return 2097152},me.prototype.getWidth=function(){return this._width},me.prototype.getChars=function(){return this.combinedData},me.prototype.getCode=function(){return 2097151},me.prototype.setFromCharData=function(ae){throw new Error("not implemented")},me.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},me}(ve.AttributeData);te.JoinedCellData=ie;var ue=function(){function le(me){this._bufferService=me,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new fe.CellData}return le.prototype.registerCharacterJoiner=function(me){var ae={id:this._nextCharacterJoinerId++,handler:me};return this._characterJoiners.push(ae),ae.id},le.prototype.deregisterCharacterJoiner=function(me){for(var ae=0;ae<this._characterJoiners.length;ae++)if(this._characterJoiners[ae].id===me)return this._characterJoiners.splice(ae,1),!0;return!1},le.prototype.getJoinedCharacters=function(me){if(this._characterJoiners.length===0)return[];var ae=this._bufferService.buffer.lines.get(me);if(!ae||ae.length===0)return[];for(var he=[],oe=ae.translateToString(!0),ne=0,a=0,y=0,E=ae.getFg(0),b=ae.getBg(0),x=0;x<ae.getTrimmedLength();x++)if(ae.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(oe,y,a,ae,ne),re=0;re<z.length;re++)he.push(z[re]);ne=x,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||Se.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(z=this._getJoinedRanges(oe,y,a,ae,ne),re=0;re<z.length;re++)he.push(z[re]);return he},le.prototype._getJoinedRanges=function(me,ae,he,oe,ne){for(var a=me.substring(ae,he),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,oe,ne),y},le.prototype._stringRangesToCellRanges=function(me,ae,he){var oe=0,ne=!1,a=0,y=me[oe];if(y){for(var E=he;E<this._bufferService.cols;E++){var b=ae.getWidth(E),x=ae.getString(E).length||Se.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=me[++oe]))break;y[0]<=a?(y[0]=E,ne=!0):ne=!1}a+=x}}y&&(y[1]=this._bufferService.cols)}},le._mergeRanges=function(me,ae){for(var he=!1,oe=0;oe<me.length;oe++){var ne=me[oe];if(he){if(ae[1]<=ne[0])return me[oe-1][1]=ae[1],me;if(ae[1]<=ne[1])return me[oe-1][1]=Math.max(ae[1],ne[1]),me.splice(oe,1),me;me.splice(oe,1),oe--}else{if(ae[1]<=ne[0])return me.splice(oe,0,ae),me;if(ae[1]<=ne[1])return ne[0]=Math.min(ae[0],ne[0]),me;ae[0]<ne[1]&&(ne[0]=Math.min(ae[0],ne[0]),he=!0)}}return he?me[me.length-1][1]=ae[1]:me.push(ae),me},le}();te.CharacterJoinerRegistry=ue},function(Ve,te,ee){"use strict";function ge(be,ve){var Se=ve.getBoundingClientRect();return[be.clientX-Se.left,be.clientY-Se.top]}Object.defineProperty(te,"__esModule",{value:!0}),te.getRawByteCoords=te.getCoords=te.getCoordsRelativeToElement=void 0,te.getCoordsRelativeToElement=ge,te.getCoords=function(be,ve,Se,fe,ie,ue,le,me){if(ie){var ae=ge(be,ve);if(ae)return ae[0]=Math.ceil((ae[0]+(me?ue/2:0))/ue),ae[1]=Math.ceil(ae[1]/le),ae[0]=Math.min(Math.max(ae[0],1),Se+(me?1:0)),ae[1]=Math.min(Math.max(ae[1],1),fe),ae}},te.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.RenderDebouncer=void 0;var ge=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,Se,fe){var ie=this;this._rowCount=fe,ve=ve!==void 0?ve:0,Se=Se!==void 0?Se: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,Se):Se,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return ie._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),Se=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(ve,Se)}},be}();te.RenderDebouncer=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(Se,fe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ue){ie.__proto__=ue}||function(ie,ue){for(var le in ue)ue.hasOwnProperty(le)&&(ie[le]=ue[le])})(Se,fe)},function(Se,fe){function ie(){this.constructor=Se}ge(Se,fe),Se.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.ScreenDprMonitor=void 0;var ve=function(Se){function fe(){var ie=Se!==null&&Se.apply(this,arguments)||this;return ie._currentDevicePixelRatio=window.devicePixelRatio,ie}return be(fe,Se),fe.prototype.setListener=function(ie){var ue=this;this._listener&&this.clearListener(),this._listener=ie,this._outerListener=function(){ue._listener&&(ue._listener(window.devicePixelRatio,ue._currentDevicePixelRatio),ue._updateDpr())},this._updateDpr()},fe.prototype.dispose=function(){Se.prototype.dispose.call(this),this.clearListener()},fe.prototype._updateDpr=function(){var ie;this._outerListener&&((ie=this._resolutionMediaMatchList)===null||ie===void 0||ie.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},fe.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)},fe}(ee(2).Disposable);te.ScreenDprMonitor=ve},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.clone=void 0,te.clone=function ge(be,ve){if(ve===void 0&&(ve=5),typeof be!="object")return be;var Se=Array.isArray(be)?[]:{};for(var fe in be)Se[fe]=ve<=1?be[fe]:be[fe]?ge(be[fe],ve-1):be[fe];return Se}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var ge=ee(4),be=ee(35),ve=ee(18),Se=ee(0),fe=ee(83),ie=function(){function oe(ne){this._core=new be.Terminal(ne),this._addonManager=new fe.AddonManager}return oe.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(oe.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new ae(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"unicode",{get:function(){return this._checkProposedApi(),new he(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffer",{get:function(){return this._checkProposedApi(),new le(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),oe.prototype.blur=function(){this._core.blur()},oe.prototype.focus=function(){this._core.focus()},oe.prototype.resize=function(ne,a){this._verifyIntegers(ne,a),this._core.resize(ne,a)},oe.prototype.open=function(ne){this._core.open(ne)},oe.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},oe.prototype.registerLinkMatcher=function(ne,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,a,y)},oe.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},oe.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},oe.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},oe.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},oe.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},oe.prototype.addMarker=function(ne){return this.registerMarker(ne)},oe.prototype.hasSelection=function(){return this._core.hasSelection()},oe.prototype.select=function(ne,a,y){this._verifyIntegers(ne,a,y),this._core.select(ne,a,y)},oe.prototype.getSelection=function(){return this._core.getSelection()},oe.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},oe.prototype.clearSelection=function(){this._core.clearSelection()},oe.prototype.selectAll=function(){this._core.selectAll()},oe.prototype.selectLines=function(ne,a){this._verifyIntegers(ne,a),this._core.selectLines(ne,a)},oe.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},oe.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},oe.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},oe.prototype.scrollToTop=function(){this._core.scrollToTop()},oe.prototype.scrollToBottom=function(){this._core.scrollToBottom()},oe.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},oe.prototype.clear=function(){this._core.clear()},oe.prototype.write=function(ne,a){this._core.write(ne,a)},oe.prototype.writeUtf8=function(ne,a){this._core.write(ne,a)},oe.prototype.writeln=function(ne,a){this._core.write(ne),this._core.write(`\r
`,a)},oe.prototype.paste=function(ne){this._core.paste(ne)},oe.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},oe.prototype.setOption=function(ne,a){this._core.optionsService.setOption(ne,a)},oe.prototype.refresh=function(ne,a){this._verifyIntegers(ne,a),this._core.refresh(ne,a)},oe.prototype.reset=function(){this._core.reset()},oe.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(oe,"strings",{get:function(){return ve},enumerable:!1,configurable:!0}),oe.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")}},oe}();te.Terminal=ie;var ue=function(){function oe(ne,a){this._buffer=ne,this.type=a}return oe.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(oe.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),oe.prototype.getLine=function(ne){var a=this._buffer.lines.get(ne);if(a)return new me(a)},oe.prototype.getNullCell=function(){return new ge.CellData},oe}(),le=function(){function oe(ne){var a=this;this._buffers=ne,this._onBufferChange=new Se.EventEmitter,this._normal=new ue(this._buffers.normal,"normal"),this._alternate=new ue(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return a._onBufferChange.fire(a.active)})}return Object.defineProperty(oe.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.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(oe.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),oe}(),me=function(){function oe(ne){this._line=ne}return Object.defineProperty(oe.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),oe.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 ge.CellData)},oe.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},oe}(),ae=function(){function oe(ne){this._core=ne}return oe.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},oe.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},oe.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,E){return a(y,E.toArray())})},oe.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},oe.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},oe.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},oe.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},oe.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},oe}(),he=function(){function oe(ne){this._core=ne}return oe.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(oe.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),oe}()},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(pt,we){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fe,He){Fe.__proto__=He}||function(Fe,He){for(var st in He)He.hasOwnProperty(st)&&(Fe[st]=He[st])})(pt,we)},function(pt,we){function Fe(){this.constructor=pt}ge(pt,we),pt.prototype=we===null?Object.create(we):(Fe.prototype=we.prototype,new Fe)});Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var ve=ee(36),Se=ee(37),fe=ee(38),ie=ee(12),ue=ee(19),le=ee(40),me=ee(50),ae=ee(51),he=ee(11),oe=ee(7),ne=ee(18),a=ee(54),y=ee(55),E=ee(56),b=ee(57),x=ee(59),z=ee(0),re=ee(16),se=ee(27),ce=ee(60),_e=ee(5),ye=ee(61),De=ee(62),Ee=ee(63),je=ee(64),Le=ee(65),ft=typeof window!="undefined"?window.document:null,Xe=function(pt){function we(Fe){Fe===void 0&&(Fe={});var He=pt.call(this,Fe)||this;return He.browser=he,He._keyDownHandled=!1,He._onCursorMove=new z.EventEmitter,He._onKey=new z.EventEmitter,He._onRender=new z.EventEmitter,He._onSelectionChange=new z.EventEmitter,He._onTitleChange=new z.EventEmitter,He._onFocus=new z.EventEmitter,He._onBlur=new z.EventEmitter,He._onA11yCharEmitter=new z.EventEmitter,He._onA11yTabEmitter=new z.EventEmitter,He._setup(),He.linkifier=He._instantiationService.createInstance(me.Linkifier),He.linkifier2=He.register(He._instantiationService.createInstance(Ee.Linkifier2)),He.register(He._inputHandler.onRequestBell(function(){return He.bell()})),He.register(He._inputHandler.onRequestRefreshRows(function(st,Ke){return He.refresh(st,Ke)})),He.register(He._inputHandler.onRequestReset(function(){return He.reset()})),He.register(He._inputHandler.onRequestScroll(function(st,Ke){return He.scroll(st,Ke||void 0)})),He.register(He._inputHandler.onRequestWindowsOptionsReport(function(st){return He._reportWindowsOptions(st)})),He.register(z.forwardEvent(He._inputHandler.onCursorMove,He._onCursorMove)),He.register(z.forwardEvent(He._inputHandler.onTitleChange,He._onTitleChange)),He.register(z.forwardEvent(He._inputHandler.onA11yChar,He._onA11yCharEmitter)),He.register(z.forwardEvent(He._inputHandler.onA11yTab,He._onA11yTabEmitter)),He.register(He._bufferService.onResize(function(st){return He._afterResize(st.cols,st.rows)})),He}return be(we,pt),Object.defineProperty(we.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),we.prototype.dispose=function(){var Fe,He,st;this._isDisposed||(pt.prototype.dispose.call(this),(Fe=this._renderService)===null||Fe===void 0||Fe.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(st=(He=this.element)===null||He===void 0?void 0:He.parentNode)===null||st===void 0||st.removeChild(this.element))},we.prototype._setup=function(){pt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(we.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),we.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},we.prototype._updateOptions=function(Fe){var He,st,Ke,mt;switch(pt.prototype._updateOptions.call(this,Fe),Fe){case"fontFamily":case"fontSize":(He=this._renderService)===null||He===void 0||He.clear(),(st=this._charSizeService)===null||st===void 0||st.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":(Ke=this.viewport)===null||Ke===void 0||Ke.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((mt=this._accessibilityManager)===null||mt===void 0||mt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},we.prototype._onTextAreaFocus=function(Fe){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[I"),this.updateCursorStyle(Fe),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},we.prototype.blur=function(){var Fe;return(Fe=this.textarea)===null||Fe===void 0?void 0:Fe.blur()},we.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},we.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var Fe=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),He=this._bufferService.buffer.y*Fe,st=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=st+"px",this.textarea.style.top=He+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=Fe+"px",this.textarea.style.lineHeight=Fe+"px",this.textarea.style.zIndex="-5"}},we.prototype._initGlobal=function(){var Fe=this;this._bindKeys(),this.register(oe.addDisposableDomListener(this.element,"copy",function(st){Fe.hasSelection()&&fe.copyHandler(st,Fe._selectionService)}));var He=function(st){return fe.handlePasteEvent(st,Fe.textarea,Fe._coreService)};this.register(oe.addDisposableDomListener(this.textarea,"paste",He)),this.register(oe.addDisposableDomListener(this.element,"paste",He)),he.isFirefox?this.register(oe.addDisposableDomListener(this.element,"mousedown",function(st){st.button===2&&fe.rightClickHandler(st,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})):this.register(oe.addDisposableDomListener(this.element,"contextmenu",function(st){fe.rightClickHandler(st,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})),he.isLinux&&this.register(oe.addDisposableDomListener(this.element,"auxclick",function(st){st.button===1&&fe.moveTextAreaUnderMouseCursor(st,Fe.textarea,Fe.screenElement)}))},we.prototype._bindKeys=function(){var Fe=this;this.register(oe.addDisposableDomListener(this.textarea,"keyup",function(He){return Fe._keyUp(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keydown",function(He){return Fe._keyDown(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keypress",function(He){return Fe._keyPress(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"compositionstart",function(){return Fe._compositionHelper.compositionstart()})),this.register(oe.addDisposableDomListener(this.textarea,"compositionupdate",function(He){return Fe._compositionHelper.compositionupdate(He)})),this.register(oe.addDisposableDomListener(this.textarea,"compositionend",function(){return Fe._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Fe._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(He){return Fe._queueLinkification(He.start,He.end)}))},we.prototype.open=function(Fe){var He=this;if(!Fe)throw new Error("Terminal requires a parent element.");ft.body.contains(Fe)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Fe.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"),Fe.appendChild(this.element);var st=ft.createDocumentFragment();this._viewportElement=ft.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),st.appendChild(this._viewportElement),this._viewportScrollArea=ft.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ft.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ft.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),st.appendChild(this.screenElement),this.textarea=ft.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(oe.addDisposableDomListener(this.textarea,"focus",function(_t){return He._onTextAreaFocus(_t)})),this.register(oe.addDisposableDomListener(this.textarea,"blur",function(){return He._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ke=this._instantiationService.createInstance(je.CoreBrowserService,this.textarea);this._instantiationService.setService(_e.ICoreBrowserService,Ke),this._charSizeService=this._instantiationService.createInstance(ye.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(_e.ICharSizeService,this._charSizeService),this._compositionView=ft.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(st),this._theme=this.options.theme||this._theme,this._colorManager=new se.ColorManager(ft,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(_t){return He._colorManager.onOptionsChange(_t)})),this._colorManager.setTheme(this._theme);var mt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ce.RenderService,mt,this.rows,this.screenElement)),this._instantiationService.setService(_e.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(_t){return He._onRender.fire(_t)})),this.onResize(function(_t){return He._renderService.resize(_t.cols,_t.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(_e.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(De.MouseService),this._instantiationService.setService(_e.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(Se.Viewport,function(_t,At){return He.scrollLines(_t,At)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return He.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){He._renderService.onCursorMove(),He._syncTextArea()})),this.register(this.onResize(function(){return He._renderService.onResize(He.cols,He.rows)})),this.register(this.onBlur(function(){return He._renderService.onBlur()})),this.register(this.onFocus(function(){return He._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return He.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(ae.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(_e.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(_t){return He.scrollLines(_t.amount,_t.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return He._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(_t){return He._renderService.onSelectionChanged(_t.start,_t.end,_t.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(_t){He.textarea.value=_t,He.textarea.focus(),He.textarea.select()})),this.register(this.onScroll(function(){He.viewport.syncScrollArea(),He._selectionService.refresh()})),this.register(oe.addDisposableDomListener(this._viewportElement,"scroll",function(){return He._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return He._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(oe.addDisposableDomListener(this.element,"mousedown",function(_t){return He._selectionService.onMouseDown(_t)})),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()},we.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+'"')}},we.prototype._setTheme=function(Fe){var He,st,Ke;this._theme=Fe,(He=this._colorManager)===null||He===void 0||He.setTheme(Fe),(st=this._renderService)===null||st===void 0||st.setColors(this._colorManager.colors),(Ke=this.viewport)===null||Ke===void 0||Ke.onThemeChange(this._colorManager.colors)},we.prototype.bindMouse=function(){var Fe=this,He=this,st=this.element;function Ke(Qe){var Pt,zt,Ct=He._mouseService.getRawByteCoords(Qe,He.screenElement,He.cols,He.rows);if(!Ct)return!1;switch(Qe.overrideType||Qe.type){case"mousemove":zt=32,Qe.buttons===void 0?(Pt=3,Qe.button!==void 0&&(Pt=Qe.button<3?Qe.button:3)):Pt=1&Qe.buttons?0:4&Qe.buttons?1:2&Qe.buttons?2:3;break;case"mouseup":zt=0,Pt=Qe.button<3?Qe.button:3;break;case"mousedown":zt=1,Pt=Qe.button<3?Qe.button:3;break;case"wheel":Qe.deltaY!==0&&(zt=Qe.deltaY<0?0:1),Pt=4;break;default:return!1}return!(zt===void 0||Pt===void 0||Pt>4)&&He._coreMouseService.triggerMouseEvent({col:Ct.x-33,row:Ct.y-33,button:Pt,action:zt,ctrl:Qe.ctrlKey,alt:Qe.altKey,shift:Qe.shiftKey})}var mt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},_t=function(Qe){return Ke(Qe),Qe.buttons||(Fe._document.removeEventListener("mouseup",mt.mouseup),mt.mousedrag&&Fe._document.removeEventListener("mousemove",mt.mousedrag)),Fe.cancel(Qe)},At=function(Qe){return Ke(Qe),Qe.preventDefault(),Fe.cancel(Qe)},kt=function(Qe){Qe.buttons&&Ke(Qe)},rt=function(Qe){Qe.buttons||Ke(Qe)};this.register(this._coreMouseService.onProtocolChange(function(Qe){Qe?(Fe.optionsService.options.logLevel==="debug"&&Fe._logService.debug("Binding to mouse events:",Fe._coreMouseService.explainEvents(Qe)),Fe.element.classList.add("enable-mouse-events"),Fe._selectionService.disable()):(Fe._logService.debug("Unbinding from mouse events."),Fe.element.classList.remove("enable-mouse-events"),Fe._selectionService.enable()),8&Qe?mt.mousemove||(st.addEventListener("mousemove",rt),mt.mousemove=rt):(st.removeEventListener("mousemove",mt.mousemove),mt.mousemove=null),16&Qe?mt.wheel||(st.addEventListener("wheel",At,{passive:!1}),mt.wheel=At):(st.removeEventListener("wheel",mt.wheel),mt.wheel=null),2&Qe?mt.mouseup||(mt.mouseup=_t):(Fe._document.removeEventListener("mouseup",mt.mouseup),mt.mouseup=null),4&Qe?mt.mousedrag||(mt.mousedrag=kt):(Fe._document.removeEventListener("mousemove",mt.mousedrag),mt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(oe.addDisposableDomListener(st,"mousedown",function(Qe){if(Qe.preventDefault(),Fe.focus(),Fe._coreMouseService.areMouseEventsActive&&!Fe._selectionService.shouldForceSelection(Qe))return Ke(Qe),mt.mouseup&&Fe._document.addEventListener("mouseup",mt.mouseup),mt.mousedrag&&Fe._document.addEventListener("mousemove",mt.mousedrag),Fe.cancel(Qe)})),this.register(oe.addDisposableDomListener(st,"wheel",function(Qe){if(!mt.wheel){if(!Fe.buffer.hasScrollback){var Pt=Fe.viewport.getLinesScrolled(Qe);if(Pt===0)return;for(var zt=ie.C0.ESC+(Fe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Qe.deltaY<0?"A":"B"),Ct="",sn=0;sn<Math.abs(Pt);sn++)Ct+=zt;Fe._coreService.triggerDataEvent(Ct,!0)}}},{passive:!0})),this.register(oe.addDisposableDomListener(st,"wheel",function(Qe){if(!mt.wheel)return Fe.viewport.onWheel(Qe)?void 0:Fe.cancel(Qe)},{passive:!1})),this.register(oe.addDisposableDomListener(st,"touchstart",function(Qe){if(!Fe._coreMouseService.areMouseEventsActive)return Fe.viewport.onTouchStart(Qe),Fe.cancel(Qe)},{passive:!0})),this.register(oe.addDisposableDomListener(st,"touchmove",function(Qe){if(!Fe._coreMouseService.areMouseEventsActive)return Fe.viewport.onTouchMove(Qe)?void 0:Fe.cancel(Qe)},{passive:!1}))},we.prototype.refresh=function(Fe,He){var st;(st=this._renderService)===null||st===void 0||st.refreshRows(Fe,He)},we.prototype._queueLinkification=function(Fe,He){var st;(st=this.linkifier)===null||st===void 0||st.linkifyRows(Fe,He)},we.prototype.updateCursorStyle=function(Fe){this._selectionService&&this._selectionService.shouldColumnSelect(Fe)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},we.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},we.prototype.scrollLines=function(Fe,He){pt.prototype.scrollLines.call(this,Fe,He),this.refresh(0,this.rows-1)},we.prototype.paste=function(Fe){fe.paste(Fe,this.textarea,this._coreService)},we.prototype.attachCustomKeyEventHandler=function(Fe){this._customKeyEventHandler=Fe},we.prototype.registerLinkMatcher=function(Fe,He,st){var Ke=this.linkifier.registerLinkMatcher(Fe,He,st);return this.refresh(0,this.rows-1),Ke},we.prototype.deregisterLinkMatcher=function(Fe){this.linkifier.deregisterLinkMatcher(Fe)&&this.refresh(0,this.rows-1)},we.prototype.registerLinkProvider=function(Fe){return this.linkifier2.registerLinkProvider(Fe)},we.prototype.registerCharacterJoiner=function(Fe){var He=this._renderService.registerCharacterJoiner(Fe);return this.refresh(0,this.rows-1),He},we.prototype.deregisterCharacterJoiner=function(Fe){this._renderService.deregisterCharacterJoiner(Fe)&&this.refresh(0,this.rows-1)},Object.defineProperty(we.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),we.prototype.addMarker=function(Fe){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Fe)},we.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},we.prototype.select=function(Fe,He,st){this._selectionService.setSelection(Fe,He,st)},we.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},we.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]}},we.prototype.clearSelection=function(){var Fe;(Fe=this._selectionService)===null||Fe===void 0||Fe.clearSelection()},we.prototype.selectAll=function(){var Fe;(Fe=this._selectionService)===null||Fe===void 0||Fe.selectAll()},we.prototype.selectLines=function(Fe,He){var st;(st=this._selectionService)===null||st===void 0||st.selectLines(Fe,He)},we.prototype._keyDown=function(Fe){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1)return!1;if(!this._compositionHelper.keydown(Fe))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var He=x.evaluateKeyboardEvent(Fe,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Fe),He.type===3||He.type===2){var st=this.rows-1;return this.scrollLines(He.type===2?-st:st),this.cancel(Fe,!0)}return He.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Fe)||(He.cancel&&this.cancel(Fe,!0),!He.key||(He.key!==ie.C0.ETX&&He.key!==ie.C0.CR||(this.textarea.value=""),this._onKey.fire({key:He.key,domEvent:Fe}),this._showCursor(),this._coreService.triggerDataEvent(He.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Fe,!0)))},we.prototype._isThirdLevelShift=function(Fe,He){var st=Fe.isMac&&!this.options.macOptionIsMeta&&He.altKey&&!He.ctrlKey&&!He.metaKey||Fe.isWindows&&He.altKey&&He.ctrlKey&&!He.metaKey;return He.type==="keypress"?st:st&&(!He.keyCode||He.keyCode>47)},we.prototype._keyUp=function(Fe){this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1||(function(He){return He.keyCode===16||He.keyCode===17||He.keyCode===18}(Fe)||this.focus(),this.updateCursorStyle(Fe))},we.prototype._keyPress=function(Fe){var He;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1)return!1;if(this.cancel(Fe),Fe.charCode)He=Fe.charCode;else if(Fe.which===null||Fe.which===void 0)He=Fe.keyCode;else{if(Fe.which===0||Fe.charCode===0)return!1;He=Fe.which}return!(!He||(Fe.altKey||Fe.ctrlKey||Fe.metaKey)&&!this._isThirdLevelShift(this.browser,Fe))&&(He=String.fromCharCode(He),this._onKey.fire({key:He,domEvent:Fe}),this._showCursor(),this._coreService.triggerDataEvent(He,!0),!0)},we.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},we.prototype.resize=function(Fe,He){Fe!==this.cols||He!==this.rows?pt.prototype.resize.call(this,Fe,He):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},we.prototype._afterResize=function(Fe,He){var st,Ke;(st=this._charSizeService)===null||st===void 0||st.measure(),(Ke=this.viewport)===null||Ke===void 0||Ke.syncScrollArea(!0)},we.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 Fe=1;Fe<this.rows;Fe++)this.buffer.lines.push(this.buffer.getBlankLine(re.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},we.prototype.reset=function(){var Fe,He;this.options.rows=this.rows,this.options.cols=this.cols;var st=this._customKeyEventHandler;this._setup(),pt.prototype.reset.call(this),(Fe=this._selectionService)===null||Fe===void 0||Fe.reset(),this._customKeyEventHandler=st,this.refresh(0,this.rows-1),(He=this.viewport)===null||He===void 0||He.syncScrollArea()},we.prototype._reportWindowsOptions=function(Fe){if(this._renderService)switch(Fe){case ue.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var He=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),st=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[4;"+st+";"+He+"t");break;case ue.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ke=this._renderService.dimensions.scaledCellWidth.toFixed(0),mt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[6;"+mt+";"+Ke+"t")}},we.prototype.cancel=function(Fe,He){if(this.options.cancelEvents||He)return Fe.preventDefault(),Fe.stopPropagation(),!1},we.prototype._visualBell=function(){return!1},we.prototype._soundBell=function(){return this.options.bellStyle==="sound"},we}(Le.CoreTerminal);te.Terminal=Xe},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ie,ue,le,me){var ae,he=arguments.length,oe=he<3?ue:me===null?me=Object.getOwnPropertyDescriptor(ue,le):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,ue,le,me);else for(var ne=ie.length-1;ne>=0;ne--)(ae=ie[ne])&&(oe=(he<3?ae(oe):he>3?ae(ue,le,oe):ae(ue,le))||oe);return he>3&&oe&&Object.defineProperty(ue,le,oe),oe},be=this&&this.__param||function(ie,ue){return function(le,me){ue(le,me,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CompositionHelper=void 0;var ve=ee(5),Se=ee(1),fe=function(){function ie(ue,le,me,ae,he,oe){this._textarea=ue,this._compositionView=le,this._bufferService=me,this._optionsService=ae,this._charSizeService=he,this._coreService=oe,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(ie.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),ie.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},ie.prototype.compositionupdate=function(ue){var le=this;this._compositionView.textContent=ue.data,this.updateCompositionElements(),setTimeout(function(){le._compositionPosition.end=le._textarea.value.length},0)},ie.prototype.compositionend=function(){this._finalizeComposition(!0)},ie.prototype.keydown=function(ue){if(this._isComposing||this._isSendingComposition){if(ue.keyCode===229||ue.keyCode===16||ue.keyCode===17||ue.keyCode===18)return!1;this._finalizeComposition(!1)}return ue.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ie.prototype._finalizeComposition=function(ue){var le=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,ue){var me={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(le._isSendingComposition){le._isSendingComposition=!1;var he=void 0;he=le._isComposing?le._textarea.value.substring(me.start,me.end):le._textarea.value.substring(me.start),le._coreService.triggerDataEvent(he,!0)}},0)}else{this._isSendingComposition=!1;var ae=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(ae,!0)}},ie.prototype._handleAnyTextareaChanges=function(){var ue=this,le=this._textarea.value;setTimeout(function(){if(!ue._isComposing){var me=ue._textarea.value.replace(le,"");me.length>0&&ue._coreService.triggerDataEvent(me,!0)}},0)},ie.prototype.updateCompositionElements=function(ue){var le=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var me=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),ae=this._bufferService.buffer.y*me,he=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=he+"px",this._compositionView.style.top=ae+"px",this._compositionView.style.height=me+"px",this._compositionView.style.lineHeight=me+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var oe=this._compositionView.getBoundingClientRect();this._textarea.style.left=he+"px",this._textarea.style.top=ae+"px",this._textarea.style.width=oe.width+"px",this._textarea.style.height=oe.height+"px",this._textarea.style.lineHeight=oe.height+"px"}ue||setTimeout(function(){return le.updateCompositionElements(!0)},0)}},ie=ge([be(2,Se.IBufferService),be(3,Se.IOptionsService),be(4,ve.ICharSizeService),be(5,Se.ICoreService)],ie)}();te.CompositionHelper=fe},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ve=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Viewport=void 0;var fe=ee(2),ie=ee(7),ue=ee(5),le=ee(1),me=function(ae){function he(oe,ne,a,y,E,b,x){var z=ae.call(this)||this;return z._scrollLines=oe,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(ie.addDisposableDomListener(z._viewportElement,"scroll",z._onScroll.bind(z))),setTimeout(function(){return z.syncScrollArea()},0),z}return be(he,ae),he.prototype.onThemeChange=function(oe){this._viewportElement.style.backgroundColor=oe.background.css},he.prototype._refresh=function(oe){var ne=this;if(oe)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ne._innerRefresh()}))},he.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var oe=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==oe&&(this._lastRecordedBufferHeight=oe,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},he.prototype.syncScrollArea=function(oe){if(oe===void 0&&(oe=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(oe);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(oe)}else this._refresh(oe)},he.prototype._onScroll=function(oe){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)}},he.prototype._bubbleScroll=function(oe,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a<this._lastRecordedBufferHeight)||(oe.cancelable&&oe.preventDefault(),!1)},he.prototype.onWheel=function(oe){var ne=this._getPixelsScrolled(oe);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},he.prototype._getPixelsScrolled=function(oe){if(oe.deltaY===0)return 0;var ne=this._applyScrollModifier(oe.deltaY,oe);return oe.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:oe.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},he.prototype.getLinesScrolled=function(oe){if(oe.deltaY===0)return 0;var ne=this._applyScrollModifier(oe.deltaY,oe);return oe.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):oe.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},he.prototype._applyScrollModifier=function(oe,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?oe*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:oe*this._optionsService.options.scrollSensitivity},he.prototype.onTouchStart=function(oe){this._lastTouchY=oe.touches[0].pageY},he.prototype.onTouchMove=function(oe){var ne=this._lastTouchY-oe.touches[0].pageY;return this._lastTouchY=oe.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},he=ve([Se(3,le.IBufferService),Se(4,le.IOptionsService),Se(5,ue.ICharSizeService),Se(6,ue.IRenderService)],he)}(fe.Disposable);te.Viewport=me},function(Ve,te,ee){"use strict";function ge(fe){return fe.replace(/\r?\n/g,"\r")}function be(fe,ie){return ie?"\x1B[200~"+fe+"\x1B[201~":fe}function ve(fe,ie,ue){fe=be(fe=ge(fe),ue.decPrivateModes.bracketedPasteMode),ue.triggerDataEvent(fe,!0),ie.value=""}function Se(fe,ie,ue){var le=ue.getBoundingClientRect(),me=fe.clientX-le.left-10,ae=fe.clientY-le.top-10;ie.style.width="20px",ie.style.height="20px",ie.style.left=me+"px",ie.style.top=ae+"px",ie.style.zIndex="1000",ie.focus()}Object.defineProperty(te,"__esModule",{value:!0}),te.rightClickHandler=te.moveTextAreaUnderMouseCursor=te.paste=te.handlePasteEvent=te.copyHandler=te.bracketTextForPaste=te.prepareTextForTerminal=void 0,te.prepareTextForTerminal=ge,te.bracketTextForPaste=be,te.copyHandler=function(fe,ie){fe.clipboardData&&fe.clipboardData.setData("text/plain",ie.selectionText),fe.preventDefault()},te.handlePasteEvent=function(fe,ie,ue){fe.stopPropagation(),fe.clipboardData&&ve(fe.clipboardData.getData("text/plain"),ie,ue)},te.paste=ve,te.moveTextAreaUnderMouseCursor=Se,te.rightClickHandler=function(fe,ie,ue,le,me){Se(fe,ie,ue),me&&!le.isClickInSelection(fe)&&le.selectWordAtCursor(fe),ie.value=le.selectionText,ie.select()}},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.EscapeSequenceParser=te.VT500_TRANSITION_TABLE=te.TransitionTable=void 0;var ve=ee(2),Se=ee(15),fe=ee(21),ie=ee(22),ue=ee(24),le=function(){function ae(he){this.table=new Uint8Array(he)}return ae.prototype.setDefault=function(he,oe){Se.fill(this.table,he<<4|oe)},ae.prototype.add=function(he,oe,ne,a){this.table[oe<<8|he]=ne<<4|a},ae.prototype.addMany=function(he,oe,ne,a){for(var y=0;y<he.length;y++)this.table[oe<<8|he[y]]=ne<<4|a},ae}();te.TransitionTable=le,te.VT500_TRANSITION_TABLE=function(){var ae=new le(4095),he=Array.apply(null,Array(256)).map(function(b,x){return x}),oe=function(b,x){return he.slice(b,x)},ne=oe(32,127),a=oe(0,24);a.push(25),a.push.apply(a,oe(28,32));var y,E=oe(0,14);for(y in ae.setDefault(1,0),ae.addMany(ne,0,2,0),E)ae.addMany([24,26,153,154],y,3,0),ae.addMany(oe(128,144),y,3,0),ae.addMany(oe(144,152),y,3,0),ae.add(156,y,0,0),ae.add(27,y,11,1),ae.add(157,y,4,8),ae.addMany([152,158,159],y,0,7),ae.add(155,y,11,3),ae.add(144,y,11,9);return ae.addMany(a,0,3,0),ae.addMany(a,1,3,1),ae.add(127,1,0,1),ae.addMany(a,8,0,8),ae.addMany(a,3,3,3),ae.add(127,3,0,3),ae.addMany(a,4,3,4),ae.add(127,4,0,4),ae.addMany(a,6,3,6),ae.addMany(a,5,3,5),ae.add(127,5,0,5),ae.addMany(a,2,3,2),ae.add(127,2,0,2),ae.add(93,1,4,8),ae.addMany(ne,8,5,8),ae.add(127,8,5,8),ae.addMany([156,27,24,26,7],8,6,0),ae.addMany(oe(28,32),8,0,8),ae.addMany([88,94,95],1,0,7),ae.addMany(ne,7,0,7),ae.addMany(a,7,0,7),ae.add(156,7,0,0),ae.add(127,7,0,7),ae.add(91,1,11,3),ae.addMany(oe(64,127),3,7,0),ae.addMany(oe(48,60),3,8,4),ae.addMany([60,61,62,63],3,9,4),ae.addMany(oe(48,60),4,8,4),ae.addMany(oe(64,127),4,7,0),ae.addMany([60,61,62,63],4,0,6),ae.addMany(oe(32,64),6,0,6),ae.add(127,6,0,6),ae.addMany(oe(64,127),6,0,0),ae.addMany(oe(32,48),3,9,5),ae.addMany(oe(32,48),5,9,5),ae.addMany(oe(48,64),5,0,6),ae.addMany(oe(64,127),5,7,0),ae.addMany(oe(32,48),4,9,5),ae.addMany(oe(32,48),1,9,2),ae.addMany(oe(32,48),2,9,2),ae.addMany(oe(48,127),2,10,0),ae.addMany(oe(48,80),1,10,0),ae.addMany(oe(81,88),1,10,0),ae.addMany([89,90,92],1,10,0),ae.addMany(oe(96,127),1,10,0),ae.add(80,1,11,9),ae.addMany(a,9,0,9),ae.add(127,9,0,9),ae.addMany(oe(28,32),9,0,9),ae.addMany(oe(32,48),9,9,12),ae.addMany(oe(48,60),9,8,10),ae.addMany([60,61,62,63],9,9,10),ae.addMany(a,11,0,11),ae.addMany(oe(32,128),11,0,11),ae.addMany(oe(28,32),11,0,11),ae.addMany(a,10,0,10),ae.add(127,10,0,10),ae.addMany(oe(28,32),10,0,10),ae.addMany(oe(48,60),10,8,10),ae.addMany([60,61,62,63],10,0,11),ae.addMany(oe(32,48),10,9,12),ae.addMany(a,12,0,12),ae.add(127,12,0,12),ae.addMany(oe(28,32),12,0,12),ae.addMany(oe(32,48),12,9,12),ae.addMany(oe(48,64),12,0,11),ae.addMany(oe(64,127),12,12,13),ae.addMany(oe(64,127),10,12,13),ae.addMany(oe(64,127),9,12,13),ae.addMany(a,13,13,13),ae.addMany(ne,13,13,13),ae.add(127,13,0,13),ae.addMany([27,156,24,26],13,14,0),ae.add(160,0,2,0),ae.add(160,8,5,8),ae.add(160,6,0,6),ae.add(160,11,0,11),ae.add(160,13,13,13),ae}();var me=function(ae){function he(oe){oe===void 0&&(oe=te.VT500_TRANSITION_TABLE);var ne=ae.call(this)||this;return ne._transitions=oe,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new fe.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 ie.OscParser,ne._dcsParser=new ue.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return be(he,ae),he.prototype._identifier=function(oe,ne){ne===void 0&&(ne=[64,126]);var a=0;if(oe.prefix){if(oe.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=oe.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(oe.intermediates){if(oe.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<oe.intermediates.length;++y){var E=oe.intermediates.charCodeAt(y);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(oe.final.length!==1)throw new Error("final must be a single byte");var b=oe.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},he.prototype.identToString=function(oe){for(var ne=[];oe;)ne.push(String.fromCharCode(255&oe)),oe>>=8;return ne.reverse().join("")},he.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},he.prototype.setPrintHandler=function(oe){this._printHandler=oe},he.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},he.prototype.addEscHandler=function(oe,ne){var a=this._identifier(oe,[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)}}},he.prototype.setEscHandler=function(oe,ne){this._escHandlers[this._identifier(oe,[48,126])]=[ne]},he.prototype.clearEscHandler=function(oe){this._escHandlers[this._identifier(oe,[48,126])]&&delete this._escHandlers[this._identifier(oe,[48,126])]},he.prototype.setEscHandlerFallback=function(oe){this._escHandlerFb=oe},he.prototype.setExecuteHandler=function(oe,ne){this._executeHandlers[oe.charCodeAt(0)]=ne},he.prototype.clearExecuteHandler=function(oe){this._executeHandlers[oe.charCodeAt(0)]&&delete this._executeHandlers[oe.charCodeAt(0)]},he.prototype.setExecuteHandlerFallback=function(oe){this._executeHandlerFb=oe},he.prototype.addCsiHandler=function(oe,ne){var a=this._identifier(oe);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)}}},he.prototype.setCsiHandler=function(oe,ne){this._csiHandlers[this._identifier(oe)]=[ne]},he.prototype.clearCsiHandler=function(oe){this._csiHandlers[this._identifier(oe)]&&delete this._csiHandlers[this._identifier(oe)]},he.prototype.setCsiHandlerFallback=function(oe){this._csiHandlerFb=oe},he.prototype.addDcsHandler=function(oe,ne){return this._dcsParser.addHandler(this._identifier(oe),ne)},he.prototype.setDcsHandler=function(oe,ne){this._dcsParser.setHandler(this._identifier(oe),ne)},he.prototype.clearDcsHandler=function(oe){this._dcsParser.clearHandler(this._identifier(oe))},he.prototype.setDcsHandlerFallback=function(oe){this._dcsParser.setHandlerFallback(oe)},he.prototype.addOscHandler=function(oe,ne){return this._oscParser.addHandler(oe,ne)},he.prototype.setOscHandler=function(oe,ne){this._oscParser.setHandler(oe,ne)},he.prototype.clearOscHandler=function(oe){this._oscParser.clearHandler(oe)},he.prototype.setOscHandlerFallback=function(oe){this._oscParser.setHandlerFallback(oe)},he.prototype.setErrorHandler=function(oe){this._errorHandler=oe},he.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},he.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},he.prototype.parse=function(oe,ne){for(var a=0,y=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,z=this._collect,re=this._params,se=this._transitions.table,ce=0;ce<ne;++ce){switch((y=se[E<<8|((a=oe[ce])<160?a:160)])>>4){case 2:for(var _e=ce+1;;++_e){if(_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-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:re,abort:!1}).abort)return;break;case 7:for(var ye=this._csiHandlers[z<<8|a],De=ye?ye.length-1:-1;De>=0&&ye[De](re)===!1;De--);De<0&&this._csiHandlerFb(z<<8|a,re),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:re.addParam(0);break;case 58:re.addSubParam(-1);break;default:re.addDigit(a-48)}while(++ce<ne&&(a=oe[ce])>47&&a<60);ce--;break;case 9:z<<=8,z|=a;break;case 10:for(var Ee=this._escHandlers[z<<8|a],je=Ee?Ee.length-1:-1;je>=0&&Ee[je]()===!1;je--);je<0&&this._escHandlerFb(z<<8|a),this.precedingCodepoint=0;break;case 11:re.reset(),re.addParam(0),z=0;break;case 12:x.hook(z<<8|a,re);break;case 13:for(var Le=ce+1;;++Le)if(Le>=ne||(a=oe[Le])===24||a===26||a===27||a>127&&a<160){x.put(oe,ce,Le),ce=Le-1;break}break;case 14:x.unhook(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var ft=ce+1;;ft++)if(ft>=ne||(a=oe[ft])<32||a>127&&a<=159){b.put(oe,ce,ft),ce=ft-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0}E=15&y}this._collect=z,this.currentState=E},he}(ve.Disposable);te.EscapeSequenceParser=me},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var se in re)re.hasOwnProperty(se)&&(z[se]=re[se])})(b,x)},function(b,x){function z(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ve=this&&this.__decorate||function(b,x,z,re){var se,ce=arguments.length,_e=ce<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(b,x,z,re);else for(var ye=b.length-1;ye>=0;ye--)(se=b[ye])&&(_e=(ce<3?se(_e):ce>3?se(x,z,_e):se(x,z))||_e);return ce>3&&_e&&Object.defineProperty(x,z,_e),_e},Se=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Renderer=void 0;var fe=ee(41),ie=ee(47),ue=ee(48),le=ee(49),me=ee(29),ae=ee(2),he=ee(5),oe=ee(1),ne=ee(25),a=ee(0),y=1,E=function(b){function x(z,re,se,ce,_e,ye,De,Ee,je){var Le=b.call(this)||this;Le._colors=z,Le._screenElement=re,Le._bufferService=_e,Le._charSizeService=ye,Le._optionsService=De,Le._id=y++,Le._onRequestRedraw=new a.EventEmitter;var ft=Le._optionsService.options.allowTransparency;return Le._characterJoinerRegistry=new me.CharacterJoinerRegistry(Le._bufferService),Le._renderLayers=[new fe.TextRenderLayer(Le._screenElement,0,Le._colors,Le._characterJoinerRegistry,ft,Le._id,Le._bufferService,De),new ie.SelectionRenderLayer(Le._screenElement,1,Le._colors,Le._id,Le._bufferService,De),new le.LinkRenderLayer(Le._screenElement,2,Le._colors,Le._id,se,ce,Le._bufferService,De),new ue.CursorRenderLayer(Le._screenElement,3,Le._colors,Le._id,Le._onRequestRedraw,Le._bufferService,De,Ee,je)],Le.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},Le._devicePixelRatio=window.devicePixelRatio,Le._updateDimensions(),Le.onOptionsChanged(),Le}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,re=this._renderLayers;z<re.length;z++)re[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 re=0,se=this._renderLayers;re<se.length;re++){var ce=se[re];ce.setColors(this._colors),ce.reset()}},x.prototype.onResize=function(z,re){this._updateDimensions();for(var se=0,ce=this._renderLayers;se<ce.length;se++)ce[se].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,re,se){se===void 0&&(se=!1),this._runOperation(function(ce){return ce.onSelectionChanged(z,re,se)})},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 re=0,se=this._renderLayers;re<se.length;re++)z(se[re])},x.prototype.renderRows=function(z,re){for(var se=0,ce=this._renderLayers;se<ce.length;se++)ce[se].onGridChanged(z,re)},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([Se(4,oe.IBufferService),Se(5,he.ICharSizeService),Se(6,oe.IOptionsService),Se(7,oe.ICoreService),Se(8,he.ICoreBrowserService)],x)}(ae.Disposable);te.Renderer=E},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.TextRenderLayer=void 0;var ve=ee(42),Se=ee(13),fe=ee(6),ie=ee(3),ue=ee(29),le=ee(4),me=function(ae){function he(oe,ne,a,y,E,b,x,z){var re=ae.call(this,oe,"text",ne,E,a,b,x,z)||this;return re._characterWidth=0,re._characterFont="",re._characterOverlapCache={},re._workCell=new le.CellData,re._state=new ve.GridCache,re._characterJoinerRegistry=y,re}return be(he,ae),he.prototype.resize=function(oe){ae.prototype.resize.call(this,oe);var ne=this._getFont(!1,!1);this._characterWidth===oe.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=oe.scaledCharWidth,this._characterFont=ne,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},he.prototype.reset=function(){this._state.clear(),this._clearAll()},he.prototype._forEachCell=function(oe,ne,a,y){for(var E=oe;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),z=a?a.getJoinedCharacters(b):[],re=0;re<this._bufferService.cols;re++){x.loadCell(re,this._workCell);var se=this._workCell,ce=!1,_e=re;if(se.getWidth()!==0){if(z.length>0&&re===z[0][0]){ce=!0;var ye=z.shift();se=new ue.JoinedCellData(this._workCell,x.translateToString(!0,ye[0],ye[1]),ye[1]-ye[0]),_e=ye[1]-1}!ce&&this._isOverlapping(se)&&_e<x.length-1&&x.getCodePoint(_e+1)===ie.NULL_CELL_CODE&&(se.content&=-12582913,se.content|=2<<22),y(se,re,E),re=_e}}},he.prototype._drawBackground=function(oe,ne){var a=this,y=this._ctx,E=this._bufferService.cols,b=0,x=0,z=null;y.save(),this._forEachCell(oe,ne,null,function(re,se,ce){var _e=null;re.isInverse()?_e=re.isFgDefault()?a._colors.foreground.css:re.isFgRGB()?"rgb("+fe.AttributeData.toColorRGB(re.getFgColor()).join(",")+")":a._colors.ansi[re.getFgColor()].css:re.isBgRGB()?_e="rgb("+fe.AttributeData.toColorRGB(re.getBgColor()).join(",")+")":re.isBgPalette()&&(_e=a._colors.ansi[re.getBgColor()].css),z===null&&(b=se,x=ce),ce!==x?(y.fillStyle=z||"",a._fillCells(b,x,E-b,1),b=se,x=ce):z!==_e&&(y.fillStyle=z||"",a._fillCells(b,x,se-b,1),b=se,x=ce),z=_e}),z!==null&&(y.fillStyle=z,this._fillCells(b,x,E-b,1)),y.restore()},he.prototype._drawForeground=function(oe,ne){var a=this;this._forEachCell(oe,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("+fe.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("+fe.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()}})},he.prototype.onGridChanged=function(oe,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,oe,this._bufferService.cols,ne-oe+1),this._drawBackground(oe,ne),this._drawForeground(oe,ne))},he.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},he.prototype._isOverlapping=function(oe){if(oe.getWidth()!==1||oe.getCode()<256)return!1;var ne=oe.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},he}(Se.BaseRenderLayer);te.TextRenderLayer=me},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.GridCache=void 0;var ge=function(){function be(){this.cache=[]}return be.prototype.resize=function(ve,Se){for(var fe=0;fe<ve;fe++){this.cache.length<=fe&&this.cache.push([]);for(var ie=this.cache[fe].length;ie<Se;ie++)this.cache[fe].push(void 0);this.cache[fe].length=Se}this.cache.length=ve},be.prototype.clear=function(){for(var ve=0;ve<this.cache.length;ve++)for(var Se=0;Se<this.cache[ve].length;Se++)this.cache[ve][Se]=void 0},be}();te.GridCache=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(a,y){return(ge=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}ge(a,y),a.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(te,"__esModule",{value:!0}),te.NoneCharAtlas=te.DynamicCharAtlas=te.getGlyphCacheKey=void 0;var ve=ee(9),Se=ee(44),fe=ee(27),ie=ee(46),ue=ee(11),le=ee(28),me=ee(10),ae={css:"rgba(0, 0, 0, 0)",rgba:0};function he(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}te.getGlyphCacheKey=he;var oe=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 re=x._width*x._height;return x._cacheMap=new ie.LRUMap(re),x._cacheMap.prealloc(re),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 re=he(b),se=this._cacheMap.get(re);if(se!=null)return this._drawFromCache(E,se,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 _e=this._drawToCache(b,ce);return this._cacheMap.set(re,_e),this._drawFromCache(E,_e,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 re=this._toCoordinateX(b.index),se=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,re,se,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]:fe.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?ae: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?me.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,re=E.italic?"italic":"";this._tmpCtx.font=re+" "+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 se=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ce=!1;this._config.allowTransparency||(ce=function(Ee,je){for(var Le=!0,ft=je.rgba>>>24,Xe=je.rgba>>>16&255,pt=je.rgba>>>8&255,we=0;we<Ee.data.length;we+=4)Ee.data[we]===ft&&Ee.data[we+1]===Xe&&Ee.data[we+2]===pt?Ee.data[we+3]=0:Le=!1;return Le}(se,x));var _e=this._toCoordinateX(b),ye=this._toCoordinateY(b);this._cacheCtx.putImageData(se,_e,ye);var De={index:b,isEmpty:ce,inBitmap:!1};return this._addGlyphToBitmap(De),De},y.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||ue.isFirefox||ue.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}(Se.BaseCharAtlas);te.DynamicCharAtlas=oe;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}(Se.BaseCharAtlas);te.NoneCharAtlas=ne},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseCharAtlas=void 0;var ge=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}();te.BaseCharAtlas=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorContrastCache=void 0;var ge=function(){function be(){this._color={},this._rgba={}}return be.prototype.clear=function(){this._color={},this._rgba={}},be.prototype.setCss=function(ve,Se,fe){this._rgba[ve]||(this._rgba[ve]={}),this._rgba[ve][Se]=fe},be.prototype.getCss=function(ve,Se){return this._rgba[ve]?this._rgba[ve][Se]:void 0},be.prototype.setColor=function(ve,Se,fe){this._color[ve]||(this._color[ve]={}),this._color[ve][Se]=fe},be.prototype.getColor=function(ve,Se){return this._color[ve]?this._color[ve][Se]:void 0},be}();te.ColorContrastCache=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.LRUMap=void 0;var ge=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 Se=ve.prev,fe=ve.next;ve===this._head&&(this._head=fe),ve===this._tail&&(this._tail=Se),Se!==null&&(Se.next=fe),fe!==null&&(fe.prev=Se)},be.prototype._appendNode=function(ve){var Se=this._tail;Se!==null&&(Se.next=ve),ve.prev=Se,ve.next=null,this._tail=ve,this._head===null&&(this._head=ve)},be.prototype.prealloc=function(ve){for(var Se=this._nodePool,fe=0;fe<ve;fe++)Se.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(ve){var Se=this._map[ve];return Se!==void 0?(this._unlinkNode(Se),this._appendNode(Se),Se.value):null},be.prototype.peekValue=function(ve){var Se=this._map[ve];return Se!==void 0?Se.value:null},be.prototype.peek=function(){var ve=this._head;return ve===null?null:ve.value},be.prototype.set=function(ve,Se){var fe=this._map[ve];if(fe!==void 0)fe=this._map[ve],this._unlinkNode(fe),fe.value=Se;else if(this.size>=this.capacity)fe=this._head,this._unlinkNode(fe),delete this._map[fe.key],fe.key=ve,fe.value=Se,this._map[ve]=fe;else{var ie=this._nodePool;ie.length>0?((fe=ie.pop()).key=ve,fe.value=Se):fe={prev:null,next:null,key:ve,value:Se},this._map[ve]=fe,this.size++}this._appendNode(fe)},be}();te.LRUMap=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(Se,fe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ue){ie.__proto__=ue}||function(ie,ue){for(var le in ue)ue.hasOwnProperty(le)&&(ie[le]=ue[le])})(Se,fe)},function(Se,fe){function ie(){this.constructor=Se}ge(Se,fe),Se.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionRenderLayer=void 0;var ve=function(Se){function fe(ie,ue,le,me,ae,he){var oe=Se.call(this,ie,"selection",ue,!0,le,me,ae,he)||this;return oe._clearState(),oe}return be(fe,Se),fe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},fe.prototype.resize=function(ie){Se.prototype.resize.call(this,ie),this._clearState()},fe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},fe.prototype.onSelectionChanged=function(ie,ue,le){if(this._didStateChange(ie,ue,le,this._bufferService.buffer.ydisp))if(this._clearAll(),ie&&ue){var me=ie[1]-this._bufferService.buffer.ydisp,ae=ue[1]-this._bufferService.buffer.ydisp,he=Math.max(me,0),oe=Math.min(ae,this._bufferService.rows-1);if(!(he>=this._bufferService.rows||oe<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,le){var ne=ie[0],a=ue[0]-ne,y=oe-he+1;this._fillCells(ne,he,a,y)}else{ne=me===he?ie[0]:0;var E=he===oe?ue[0]:this._bufferService.cols;this._fillCells(ne,he,E-ne,1);var b=Math.max(oe-he-1,0);if(this._fillCells(0,he+1,this._bufferService.cols,b),he!==oe){var x=ae===oe?ue[0]:this._bufferService.cols;this._fillCells(0,oe,x,1)}}this._state.start=[ie[0],ie[1]],this._state.end=[ue[0],ue[1]],this._state.columnSelectMode=le,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},fe.prototype._didStateChange=function(ie,ue,le,me){return!this._areCoordinatesEqual(ie,this._state.start)||!this._areCoordinatesEqual(ue,this._state.end)||le!==this._state.columnSelectMode||me!==this._state.ydisp},fe.prototype._areCoordinatesEqual=function(ie,ue){return!(!ie||!ue)&&ie[0]===ue[0]&&ie[1]===ue[1]},fe}(ee(13).BaseRenderLayer);te.SelectionRenderLayer=ve},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ue,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(ue,le)},function(ue,le){function me(){this.constructor=ue}ge(ue,le),ue.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.CursorRenderLayer=void 0;var ve=ee(13),Se=ee(4),fe=function(ue){function le(me,ae,he,oe,ne,a,y,E,b){var x=ue.call(this,me,"cursor",ae,!0,he,oe,a,y)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new Se.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,ue),le.prototype.resize=function(me){ue.prototype.resize.call(this,me),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 me,ae=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ie(this._coreBrowserService.isFocused,function(){ae._render(!0)})):((me=this._cursorBlinkStateManager)===null||me===void 0||me.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(me,ae){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype._render=function(me){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var ae=this._bufferService.buffer.ybase+this._bufferService.buffer.y,he=ae-this._bufferService.buffer.ydisp;if(he<0||he>=this._bufferService.rows)this._clearCursor();else{var oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(ae).loadCell(oe,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](oe,he,this._cell):this._renderBlurCursor(oe,he,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=he,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===oe&&this._state.y===he&&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"](oe,he,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=he,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(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(me,ae,this._optionsService.options.cursorWidth),this._ctx.restore()},le.prototype._renderBlockCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(me,ae,he.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(he,me,ae),this._ctx.restore()},le.prototype._renderUnderlineCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(me,ae),this._ctx.restore()},le.prototype._renderBlurCursor=function(me,ae,he){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(me,ae,he.getWidth(),1),this._ctx.restore()},le}(ve.BaseRenderLayer);te.CursorRenderLayer=fe;var ie=function(){function ue(le,me){this._renderCallback=me,this.isCursorVisible=!0,le&&this._restartInterval()}return Object.defineProperty(ue.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),ue.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)},ue.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})))},ue.prototype._restartInterval=function(le){var me=this;le===void 0&&(le=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(me._animationTimeRestarted){var ae=600-(Date.now()-me._animationTimeRestarted);if(me._animationTimeRestarted=void 0,ae>0)return void me._restartInterval(ae)}me.isCursorVisible=!1,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0}),me._blinkInterval=window.setInterval(function(){if(me._animationTimeRestarted){var he=600-(Date.now()-me._animationTimeRestarted);return me._animationTimeRestarted=void 0,void me._restartInterval(he)}me.isCursorVisible=!me.isCursorVisible,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0})},600)},le)},ue.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)},ue.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},ue}()},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ue,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(ue,le)},function(ue,le){function me(){this.constructor=ue}ge(ue,le),ue.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.LinkRenderLayer=void 0;var ve=ee(13),Se=ee(9),fe=ee(26),ie=function(ue){function le(me,ae,he,oe,ne,a,y,E){var b=ue.call(this,me,"link",ae,!0,he,oe,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,ue),le.prototype.resize=function(me){ue.prototype.resize.call(this,me),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 me=this._state.y2-this._state.y1-1;me>0&&this._clearCells(0,this._state.y1+1,this._state.cols,me),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},le.prototype._onShowLinkUnderline=function(me){if(me.fg===Se.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:me.fg&&fe.is256Color(me.fg)?this._ctx.fillStyle=this._colors.ansi[me.fg].css:this._ctx.fillStyle=this._colors.foreground.css,me.y1===me.y2)this._fillBottomLineAtCells(me.x1,me.y1,me.x2-me.x1);else{this._fillBottomLineAtCells(me.x1,me.y1,me.cols-me.x1);for(var ae=me.y1+1;ae<me.y2;ae++)this._fillBottomLineAtCells(0,ae,me.cols);this._fillBottomLineAtCells(0,me.y2,me.x2)}this._state=me},le.prototype._onHideLinkUnderline=function(me){this._clearCurrentLink()},le}(ve.BaseRenderLayer);te.LinkRenderLayer=ie},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ue,le,me,ae){var he,oe=arguments.length,ne=oe<3?le:ae===null?ae=Object.getOwnPropertyDescriptor(le,me):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(ue,le,me,ae);else for(var a=ue.length-1;a>=0;a--)(he=ue[a])&&(ne=(oe<3?he(ne):oe>3?he(le,me,ne):he(le,me))||ne);return oe>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(ue,le){return function(me,ae){le(me,ae,ue)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZone=te.Linkifier=void 0;var ve=ee(0),Se=ee(1),fe=function(){function ue(le,me,ae){this._bufferService=le,this._logService=me,this._unicodeService=ae,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(ue.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),ue.prototype.attachToDom=function(le,me){this._element=le,this._mouseZoneManager=me},ue.prototype.linkifyRows=function(le,me){var ae=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=le,this._rowsToLinkify.end=me):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,le),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,me)),this._mouseZoneManager.clearAll(le,me),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return ae._linkifyRows()},ue._timeBeforeLatency))},ue.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var le=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var me=le.ydisp+this._rowsToLinkify.start;if(!(me>=le.lines.length)){for(var ae=le.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,he=Math.ceil(2e3/this._bufferService.cols),oe=this._bufferService.buffer.iterator(!1,me,ae,he,he);oe.hasNext();)for(var ne=oe.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")},ue.prototype.registerLinkMatcher=function(le,me,ae){if(ae===void 0&&(ae={}),!me)throw new Error("handler must be defined");var he={id:this._nextLinkMatcherId++,regex:le,handler:me,matchIndex:ae.matchIndex,validationCallback:ae.validationCallback,hoverTooltipCallback:ae.tooltipCallback,hoverLeaveCallback:ae.leaveCallback,willLinkActivate:ae.willLinkActivate,priority:ae.priority||0};return this._addLinkMatcherToList(he),he.id},ue.prototype._addLinkMatcherToList=function(le){if(this._linkMatchers.length!==0){for(var me=this._linkMatchers.length-1;me>=0;me--)if(le.priority<=this._linkMatchers[me].priority)return void this._linkMatchers.splice(me+1,0,le);this._linkMatchers.splice(0,0,le)}else this._linkMatchers.push(le)},ue.prototype.deregisterLinkMatcher=function(le){for(var me=0;me<this._linkMatchers.length;me++)if(this._linkMatchers[me].id===le)return this._linkMatchers.splice(me,1),!0;return!1},ue.prototype._doLinkifyRow=function(le,me,ae){for(var he,oe=this,ne=new RegExp(ae.regex.source,(ae.regex.flags||"")+"g"),a=-1,y=function(){var b=he[typeof ae.matchIndex!="number"?0:ae.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",he,ae),"break";if(a=me.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 re=z.getFg(x[1]),se=re?re>>9&511:void 0;ae.validationCallback?ae.validationCallback(b,function(ce){oe._rowsTimeoutId||ce&&oe._addLink(x[1],x[0]-oe._bufferService.buffer.ydisp,b,ae,se)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,ae,se)},E=this;(he=ne.exec(me))!==null&&y()!=="break";);},ue.prototype._addLink=function(le,me,ae,he,oe){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(ae),y=le%this._bufferService.cols,E=me+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 ie(y+1,E+1,b+1,x+1,function(z){if(he.handler)return he.handler(z,ae);var re=window.open();re?(re.opener=null,re.location.href=ae):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),ne._element.classList.add("xterm-cursor-pointer")},function(z){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),he.hoverTooltipCallback&&he.hoverTooltipCallback(z,ae,{start:{x:y,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),ne._element.classList.remove("xterm-cursor-pointer"),he.hoverLeaveCallback&&he.hoverLeaveCallback()},function(z){return!he.willLinkActivate||he.willLinkActivate(z,ae)}))}},ue.prototype._createLinkHoverEvent=function(le,me,ae,he,oe){return{x1:le,y1:me,x2:ae,y2:he,cols:this._bufferService.cols,fg:oe}},ue._timeBeforeLatency=200,ue=ge([be(0,Se.IBufferService),be(1,Se.ILogService),be(2,Se.IUnicodeService)],ue)}();te.Linkifier=fe;var ie=function(ue,le,me,ae,he,oe,ne,a,y){this.x1=ue,this.y1=le,this.x2=me,this.y2=ae,this.clickCallback=he,this.hoverCallback=oe,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};te.MouseZone=ie},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var se in re)re.hasOwnProperty(se)&&(z[se]=re[se])})(b,x)},function(b,x){function z(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ve=this&&this.__decorate||function(b,x,z,re){var se,ce=arguments.length,_e=ce<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(b,x,z,re);else for(var ye=b.length-1;ye>=0;ye--)(se=b[ye])&&(_e=(ce<3?se(_e):ce>3?se(x,z,_e):se(x,z))||_e);return ce>3&&_e&&Object.defineProperty(x,z,_e),_e},Se=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionService=void 0;var fe=ee(11),ie=ee(52),ue=ee(4),le=ee(0),me=ee(5),ae=ee(1),he=ee(30),oe=ee(53),ne=ee(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function x(z,re,se,ce,_e,ye,De){var Ee=b.call(this)||this;return Ee._element=z,Ee._screenElement=re,Ee._bufferService=se,Ee._coreService=ce,Ee._mouseService=_e,Ee._optionsService=ye,Ee._renderService=De,Ee._dragScrollAmount=0,Ee._enabled=!0,Ee._workCell=new ue.CellData,Ee._mouseDownTimeStamp=0,Ee._onLinuxMouseSelection=Ee.register(new le.EventEmitter),Ee._onRedrawRequest=Ee.register(new le.EventEmitter),Ee._onSelectionChange=Ee.register(new le.EventEmitter),Ee._onRequestScrollLines=Ee.register(new le.EventEmitter),Ee._mouseMoveListener=function(je){return Ee._onMouseMove(je)},Ee._mouseUpListener=function(je){return Ee._onMouseUp(je)},Ee._coreService.onUserInput(function(){Ee.hasSelection&&Ee.clearSelection()}),Ee._trimListener=Ee._bufferService.buffer.lines.onTrim(function(je){return Ee._onTrim(je)}),Ee.register(Ee._bufferService.buffers.onBufferActivate(function(je){return Ee._onBufferActivate(je)})),Ee.enable(),Ee._model=new ie.SelectionModel(Ee._bufferService),Ee._activeSelectionMode=0,Ee}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,re=this._model.finalSelectionEnd;return!(!z||!re)&&(z[0]!==re[0]||z[1]!==re[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var z=this._model.finalSelectionStart,re=this._model.finalSelectionEnd;if(!z||!re)return"";var se=this._bufferService.buffer,ce=[];if(this._activeSelectionMode===3){if(z[0]===re[0])return"";for(var _e=z[1];_e<=re[1];_e++){var ye=se.translateBufferLineToString(_e,!0,z[0],re[0]);ce.push(ye)}}else{var De=z[1]===re[1]?re[0]:void 0;for(ce.push(se.translateBufferLineToString(z[1],!0,z[0],De)),_e=z[1]+1;_e<=re[1]-1;_e++){var Ee=se.lines.get(_e);ye=se.translateBufferLineToString(_e,!0),Ee&&Ee.isWrapped?ce[ce.length-1]+=ye:ce.push(ye)}z[1]!==re[1]&&(Ee=se.lines.get(re[1]),ye=se.translateBufferLineToString(re[1],!0,0,re[0]),Ee&&Ee.isWrapped?ce[ce.length-1]+=ye:ce.push(ye))}return ce.map(function(je){return je.replace(y," ")}).join(fe.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 re=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return re._refresh()})),fe.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 re=this._getMouseBufferCoords(z),se=this._model.finalSelectionStart,ce=this._model.finalSelectionEnd;return!!(se&&ce&&re)&&this._areCoordsInSelection(re,se,ce)},x.prototype._areCoordsInSelection=function(z,re,se){return z[1]>re[1]&&z[1]<se[1]||re[1]===se[1]&&z[1]===re[1]&&z[0]>=re[0]&&z[0]<se[0]||re[1]<se[1]&&z[1]===se[1]&&z[0]<se[0]||re[1]<se[1]&&z[1]===re[1]&&z[0]>=re[0]},x.prototype.selectWordAtCursor=function(z){var re=this._getMouseBufferCoords(z);re&&(this._selectWordAt(re,!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,re){this._model.clearSelection(),z=Math.max(z,0),re=Math.min(re,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,z],this._model.selectionEnd=[this._bufferService.cols,re],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(z){this._model.onTrim(z)&&this.refresh()},x.prototype._getMouseBufferCoords=function(z){var re=this._mouseService.getCoords(z,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(re)return re[0]--,re[1]--,re[1]+=this._bufferService.buffer.ydisp,re},x.prototype._getMouseEventScrollAmount=function(z){var re=he.getCoordsRelativeToElement(z,this._screenElement)[1],se=this._renderService.dimensions.canvasHeight;return re>=0&&re<=se?0:(re>se&&(re-=se),re=Math.min(Math.max(re,-50),50),(re/=50)/Math.abs(re)+Math.round(14*re))},x.prototype.shouldForceSelection=function(z){return fe.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 re=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);re&&re.length!==this._model.selectionStart[0]&&re.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(z){var re=this._getMouseBufferCoords(z);re&&(this._activeSelectionMode=1,this._selectWordAt(re,!0))},x.prototype._onTripleClick=function(z){var re=this._getMouseBufferCoords(z);re&&(this._activeSelectionMode=2,this._selectLineAt(re[1]))},x.prototype.shouldColumnSelect=function(z){return z.altKey&&!(fe.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(z){if(z.stopImmediatePropagation(),this._model.selectionStart){var re=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 se=this._bufferService.buffer;if(this._model.selectionEnd[1]<se.lines.length){var ce=se.lines.get(this._model.selectionEnd[1]);ce&&ce.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}re&&re[0]===this._model.selectionEnd[0]&&re[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 re=z.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&re<500&&z.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var se=this._mouseService.getCoords(z,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(se&&se[0]!==void 0&&se[1]!==void 0){var ce=oe.moveToCellSequence(se[0]-1,se[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 re=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=z.activeBuffer.lines.onTrim(function(se){return re._onTrim(se)})},x.prototype._convertViewportColToCharacterIndex=function(z,re){for(var se=re[0],ce=0;re[0]>=ce;ce++){var _e=z.loadCell(ce,this._workCell).getChars().length;this._workCell.getWidth()===0?se--:_e>1&&re[0]!==ce&&(se+=_e-1)}return se},x.prototype.setSelection=function(z,re,se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[z,re],this._model.selectionStartLength=se,this.refresh()},x.prototype._getWordAt=function(z,re,se,ce){if(se===void 0&&(se=!0),ce===void 0&&(ce=!0),!(z[0]>=this._bufferService.cols)){var _e=this._bufferService.buffer,ye=_e.lines.get(z[1]);if(ye){var De=_e.translateBufferLineToString(z[1],!1),Ee=this._convertViewportColToCharacterIndex(ye,z),je=Ee,Le=z[0]-Ee,ft=0,Xe=0,pt=0,we=0;if(De.charAt(Ee)===" "){for(;Ee>0&&De.charAt(Ee-1)===" ";)Ee--;for(;je<De.length&&De.charAt(je+1)===" ";)je++}else{var Fe=z[0],He=z[0];ye.getWidth(Fe)===0&&(ft++,Fe--),ye.getWidth(He)===2&&(Xe++,He++);var st=ye.getString(He).length;for(st>1&&(we+=st-1,je+=st-1);Fe>0&&Ee>0&&!this._isCharWordSeparator(ye.loadCell(Fe-1,this._workCell));){ye.loadCell(Fe-1,this._workCell);var Ke=this._workCell.getChars().length;this._workCell.getWidth()===0?(ft++,Fe--):Ke>1&&(pt+=Ke-1,Ee-=Ke-1),Ee--,Fe--}for(;He<ye.length&&je+1<De.length&&!this._isCharWordSeparator(ye.loadCell(He+1,this._workCell));){ye.loadCell(He+1,this._workCell);var mt=this._workCell.getChars().length;this._workCell.getWidth()===2?(Xe++,He++):mt>1&&(we+=mt-1,je+=mt-1),je++,He++}}je++;var _t=Ee+Le-ft+pt,At=Math.min(this._bufferService.cols,je-Ee+ft+Xe-pt-we);if(re||De.slice(Ee,je).trim()!==""){if(se&&_t===0&&ye.getCodePoint(0)!==32){var kt=_e.lines.get(z[1]-1);if(kt&&ye.isWrapped&&kt.getCodePoint(this._bufferService.cols-1)!==32){var rt=this._getWordAt([this._bufferService.cols-1,z[1]-1],!1,!0,!1);if(rt){var Qe=this._bufferService.cols-rt.start;_t-=Qe,At+=Qe}}}if(ce&&_t+At===this._bufferService.cols&&ye.getCodePoint(this._bufferService.cols-1)!==32){var Pt=_e.lines.get(z[1]+1);if(Pt&&Pt.isWrapped&&Pt.getCodePoint(0)!==32){var zt=this._getWordAt([0,z[1]+1],!1,!1,!0);zt&&(At+=zt.length)}}return{start:_t,length:At}}}}},x.prototype._selectWordAt=function(z,re){var se=this._getWordAt(z,re);if(se){for(;se.start<0;)se.start+=this._bufferService.cols,z[1]--;this._model.selectionStart=[se.start,z[1]],this._model.selectionStartLength=se.length}},x.prototype._selectToWordAt=function(z){var re=this._getWordAt(z,!0);if(re){for(var se=z[1];re.start<0;)re.start+=this._bufferService.cols,se--;if(!this._model.areSelectionValuesReversed())for(;re.start+re.length>this._bufferService.cols;)re.length-=this._bufferService.cols,se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?re.start:re.start+re.length,se]}},x.prototype._isCharWordSeparator=function(z){return z.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(z.getChars())>=0},x.prototype._selectLineAt=function(z){var re=this._bufferService.buffer.getWrappedRangeForLine(z);this._model.selectionStart=[0,re.first],this._model.selectionEnd=[this._bufferService.cols,re.last],this._model.selectionStartLength=0},x=ve([Se(2,ae.IBufferService),Se(3,ae.ICoreService),Se(4,me.IMouseService),Se(5,ae.IOptionsService),Se(6,me.IRenderService)],x)}(ne.Disposable);te.SelectionService=E},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionModel=void 0;var ge=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,Se=this.selectionEnd;return!(!ve||!Se)&&(ve[1]>Se[1]||ve[1]===Se[1]&&ve[0]>Se[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}();te.SelectionModel=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.moveToCellSequence=void 0;var ge=ee(12);function be(le,me,ae,he){var oe=le-ve(ae,le),ne=me-ve(ae,me);return ue(Math.abs(oe-ne)-function(a,y,E){for(var b=0,x=a-ve(E,a),z=y-ve(E,y),re=0;re<Math.abs(x-z);re++){var se=Se(a,y)==="A"?-1:1,ce=E.buffer.lines.get(x+se*re);ce&&ce.isWrapped&&b++}return b}(le,me,ae),ie(Se(le,me),he))}function ve(le,me){for(var ae=0,he=le.buffer.lines.get(me),oe=he&&he.isWrapped;oe&&me>=0&&me<le.rows;)ae++,oe=(he=le.buffer.lines.get(--me))&&he.isWrapped;return ae}function Se(le,me){return le>me?"A":"B"}function fe(le,me,ae,he,oe,ne){for(var a=le,y=me,E="";a!==ae||y!==he;)a+=oe?1:-1,oe&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,le,a),a=0,le=0,y++):!oe&&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 ie(le,me){var ae=me?"O":"[";return ge.C0.ESC+ae+le}function ue(le,me){le=Math.floor(le);for(var ae="",he=0;he<le;he++)ae+=me;return ae}te.moveToCellSequence=function(le,me,ae,he){var oe,ne=ae.buffer.x,a=ae.buffer.y;if(!ae.buffer.hasScrollback)return function(E,b,x,z,re,se){return be(b,z,re,se).length===0?"":ue(fe(E,b,E,b-ve(re,b),!1,re).length,ie("D",se))}(ne,a,0,me,ae,he)+be(a,me,ae,he)+function(E,b,x,z,re,se){var ce;ce=be(b,z,re,se).length>0?z-ve(re,z):b;var _e=z,ye=function(De,Ee,je,Le,ft,Xe){var pt;return pt=be(je,Le,ft,Xe).length>0?Le-ve(ft,Le):Ee,De<je&&pt<=Le||De>=je&&pt<Le?"C":"D"}(E,b,x,z,re,se);return ue(fe(E,ce,x,_e,ye==="C",re).length,ie(ye,se))}(ne,a,le,me,ae,he);if(a===me)return oe=ne>le?"D":"C",ue(Math.abs(ne-le),ie(oe,he));oe=a>me?"D":"C";var y=Math.abs(a-me);return ue(function(E,b){return b.cols-E}(a>me?le:ne,ae)+(y-1)*ae.cols+1+((a>me?ne:le)-1),ie(oe,he))}},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,ie,ue,le){var me,ae=arguments.length,he=ae<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,ue):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,ie,ue,le);else for(var oe=fe.length-1;oe>=0;oe--)(me=fe[oe])&&(he=(ae<3?me(he):ae>3?me(ie,ue,he):me(ie,ue))||he);return ae>3&&he&&Object.defineProperty(ie,ue,he),he},be=this&&this.__param||function(fe,ie){return function(ue,le){ie(ue,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SoundService=void 0;var ve=ee(1),Se=function(){function fe(ie){this._optionsService=ie}return Object.defineProperty(fe,"audioContext",{get:function(){if(!fe._audioContext){var ie=window.AudioContext||window.webkitAudioContext;if(!ie)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;fe._audioContext=new ie}return fe._audioContext},enumerable:!1,configurable:!0}),fe.prototype.playBellSound=function(){var ie=fe.audioContext;if(ie){var ue=ie.createBufferSource();ie.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(le){ue.buffer=le,ue.connect(ie.destination),ue.start(0)})}},fe.prototype._base64ToArrayBuffer=function(ie){for(var ue=window.atob(ie),le=ue.length,me=new Uint8Array(le),ae=0;ae<le;ae++)me[ae]=ue.charCodeAt(ae);return me.buffer},fe.prototype._removeMimeType=function(ie){return ie.split(",")[1]},fe=ge([be(0,ve.IOptionsService)],fe)}();te.SoundService=Se},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ve=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZoneManager=void 0;var fe=ee(2),ie=ee(7),ue=ee(5),le=ee(1),me=function(ae){function he(oe,ne,a,y,E,b){var x=ae.call(this)||this;return x._element=oe,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(ie.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(he,ae),he.prototype.dispose=function(){ae.prototype.dispose.call(this),this._deactivate()},he.prototype.add=function(oe){this._zones.push(oe),this._zones.length===1&&this._activate()},he.prototype.clearAll=function(oe,ne){if(this._zones.length!==0){oe&&ne||(oe=0,ne=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>oe&&y.y1<=ne+1||y.y2>oe&&y.y2<=ne+1||y.y1<oe&&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()}},he.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))},he.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))},he.prototype._onMouseMove=function(oe){this._lastHoverCoords[0]===oe.pageX&&this._lastHoverCoords[1]===oe.pageY||(this._onHover(oe),this._lastHoverCoords=[oe.pageX,oe.pageY])},he.prototype._onHover=function(oe){var ne=this,a=this._findZoneEventAt(oe);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(oe),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(oe)},this._optionsService.options.linkTooltipHoverDuration)))},he.prototype._onTooltip=function(oe){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(oe);ne&&ne.tooltipCallback&&ne.tooltipCallback(oe)},he.prototype._onMouseDown=function(oe){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(oe);ne!=null&&ne.willLinkActivate(oe)&&(oe.preventDefault(),oe.stopImmediatePropagation())}},he.prototype._onMouseLeave=function(oe){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},he.prototype._onClick=function(oe){var ne=this._findZoneEventAt(oe),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(oe),oe.preventDefault(),oe.stopImmediatePropagation())},he.prototype._getSelectionLength=function(){var oe=this._selectionService.selectionText;return oe?oe.length:0},he.prototype._findZoneEventAt=function(oe){var ne=this._mouseService.getCoords(oe,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}},he=ve([Se(2,le.IBufferService),Se(3,ue.IMouseService),Se(4,ue.ISelectionService),Se(5,le.IOptionsService)],he)}(fe.Disposable);te.MouseZoneManager=me},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(he,oe){return(ge=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])})(he,oe)},function(he,oe){function ne(){this.constructor=he}ge(he,oe),he.prototype=oe===null?Object.create(oe):(ne.prototype=oe.prototype,new ne)});Object.defineProperty(te,"__esModule",{value:!0}),te.AccessibilityManager=void 0;var ve=ee(18),Se=ee(11),fe=ee(31),ie=ee(7),ue=ee(2),le=ee(32),me=ee(17),ae=function(he){function oe(ne,a){var y=he.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 fe.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(ie.addDisposableDomListener(window,"resize",function(){return y._refreshRowsDimensions()})),y}return be(oe,he),oe.prototype.dispose=function(){he.prototype.dispose.call(this),me.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},oe.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()}},oe.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()},oe.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},oe.prototype._onTab=function(ne){for(var a=0;a<ne;a++)this._onChar(" ")},oe.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)),Se.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},oe.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,Se.isMac&&me.removeElementFromParent(this._liveRegion)},oe.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},oe.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},oe.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(),re=this._rowElements[b];re&&(x.length===0?re.innerHTML="&nbsp;":re.textContent=x,re.setAttribute("aria-posinset",z),re.setAttribute("aria-setsize",E))}this._announceCharacters()},oe.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])}},oe.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},oe.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},oe}(ue.Disposable);te.AccessibilityManager=ae},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(y,E){return(ge=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}ge(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,re=arguments.length,se=re<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(y,E,b,x);else for(var ce=y.length-1;ce>=0;ce--)(z=y[ce])&&(se=(re<3?z(se):re>3?z(E,b,se):z(E,b))||se);return re>3&&se&&Object.defineProperty(E,b,se),se},Se=this&&this.__param||function(y,E){return function(b,x){E(b,x,y)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DomRenderer=void 0;var fe=ee(58),ie=ee(9),ue=ee(2),le=ee(5),me=ee(1),ae=ee(0),he=ee(10),oe=ee(17),ne=1,a=function(y){function E(b,x,z,re,se,ce,_e,ye,De){var Ee=y.call(this)||this;return Ee._colors=b,Ee._element=x,Ee._screenElement=z,Ee._viewportElement=re,Ee._linkifier=se,Ee._linkifier2=ce,Ee._charSizeService=_e,Ee._optionsService=ye,Ee._bufferService=De,Ee._terminalClass=ne++,Ee._rowElements=[],Ee._rowContainer=document.createElement("div"),Ee._rowContainer.classList.add("xterm-rows"),Ee._rowContainer.style.lineHeight="normal",Ee._rowContainer.setAttribute("aria-hidden","true"),Ee._refreshRowElements(Ee._bufferService.cols,Ee._bufferService.rows),Ee._selectionContainer=document.createElement("div"),Ee._selectionContainer.classList.add("xterm-selection"),Ee._selectionContainer.setAttribute("aria-hidden","true"),Ee.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},Ee._updateDimensions(),Ee._injectCss(),Ee._rowFactory=new fe.DomRendererRowFactory(document,Ee._optionsService,Ee._colors),Ee._element.classList.add("xterm-dom-renderer-owner-"+Ee._terminalClass),Ee._screenElement.appendChild(Ee._rowContainer),Ee._screenElement.appendChild(Ee._selectionContainer),Ee._linkifier.onShowLinkUnderline(function(je){return Ee._onLinkHover(je)}),Ee._linkifier.onHideLinkUnderline(function(je){return Ee._onLinkLeave(je)}),Ee._linkifier2.onShowLinkUnderline(function(je){return Ee._onLinkHover(je)}),Ee._linkifier2.onHideLinkUnderline(function(je){return Ee._onLinkLeave(je)}),Ee}return be(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new ae.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),oe.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 re=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=re,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(."+fe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+fe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+fe.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) ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+":not(."+fe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.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,re){x+=b._terminalSelector+" .xterm-fg-"+re+" { color: "+z.css+"; }"+b._terminalSelector+" .xterm-bg-"+re+" { background-color: "+z.css+"; }"}),x+=this._terminalSelector+" .xterm-fg-"+ie.INVERTED_DEFAULT_COLOR+" { color: "+he.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+ie.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 re=document.createElement("div");this._rowContainer.appendChild(re),this._rowElements.push(re)}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 re=b[1]-this._bufferService.buffer.ydisp,se=x[1]-this._bufferService.buffer.ydisp,ce=Math.max(re,0),_e=Math.min(se,this._bufferService.rows-1);if(!(ce>=this._bufferService.rows||_e<0)){var ye=document.createDocumentFragment();if(z)ye.appendChild(this._createSelectionElement(ce,b[0],x[0],_e-ce+1));else{var De=re===ce?b[0]:0,Ee=ce===_e?x[0]:this._bufferService.cols;ye.appendChild(this._createSelectionElement(ce,De,Ee));var je=_e-ce-1;if(ye.appendChild(this._createSelectionElement(ce+1,0,this._bufferService.cols,je)),ce!==_e){var Le=se===_e?x[0]:this._bufferService.cols;ye.appendChild(this._createSelectionElement(_e,0,Le))}}this._selectionContainer.appendChild(ye)}}},E.prototype._createSelectionElement=function(b,x,z,re){re===void 0&&(re=1);var se=document.createElement("div");return se.style.height=re*this.dimensions.actualCellHeight+"px",se.style.top=b*this.dimensions.actualCellHeight+"px",se.style.left=x*this.dimensions.actualCellWidth+"px",se.style.width=this.dimensions.actualCellWidth*(z-x)+"px",se},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,re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),se=this._optionsService.options.cursorBlink,ce=b;ce<=x;ce++){var _e=this._rowElements[ce];_e.innerHTML="";var ye=ce+this._bufferService.buffer.ydisp,De=this._bufferService.buffer.lines.get(ye),Ee=this._optionsService.options.cursorStyle;_e.appendChild(this._rowFactory.createRow(De,ye===z,Ee,re,se,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,re,se,ce){for(;b!==x||z!==re;){var _e=this._rowElements[z];if(!_e)return;var ye=_e.children[b];ye&&(ye.style.textDecoration=ce?"underline":"none"),++b>=se&&(b=0,z++)}},E=ve([Se(6,le.ICharSizeService),Se(7,me.IOptionsService),Se(8,me.IBufferService)],E)}(ue.Disposable);te.DomRenderer=a},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DomRendererRowFactory=te.CURSOR_STYLE_UNDERLINE_CLASS=te.CURSOR_STYLE_BAR_CLASS=te.CURSOR_STYLE_BLOCK_CLASS=te.CURSOR_BLINK_CLASS=te.CURSOR_CLASS=te.UNDERLINE_CLASS=te.ITALIC_CLASS=te.DIM_CLASS=te.BOLD_CLASS=void 0;var ge=ee(9),be=ee(3),ve=ee(4),Se=ee(10);te.BOLD_CLASS="xterm-bold",te.DIM_CLASS="xterm-dim",te.ITALIC_CLASS="xterm-italic",te.UNDERLINE_CLASS="xterm-underline",te.CURSOR_CLASS="xterm-cursor",te.CURSOR_BLINK_CLASS="xterm-cursor-blink",te.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",te.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",te.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var fe=function(){function ue(le,me,ae){this._document=le,this._optionsService=me,this._colors=ae,this._workCell=new ve.CellData}return ue.prototype.setColors=function(le){this._colors=le},ue.prototype.createRow=function(le,me,ae,he,oe,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||me&&b===he){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"),me&&b===he)switch(z.classList.add(te.CURSOR_CLASS),oe&&z.classList.add(te.CURSOR_BLINK_CLASS),ae){case"bar":z.classList.add(te.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(te.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(te.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&z.classList.add(te.BOLD_CLASS),this._workCell.isItalic()&&z.classList.add(te.ITALIC_CLASS),this._workCell.isDim()&&z.classList.add(te.DIM_CLASS),this._workCell.isUnderline()&&z.classList.add(te.UNDERLINE_CLASS),this._workCell.isInvisible()?z.textContent=be.WHITESPACE_CELL_CHAR:z.textContent=this._workCell.getChars()||be.WHITESPACE_CELL_CHAR;var re=this._workCell.getFgColor(),se=this._workCell.getFgColorMode(),ce=this._workCell.getBgColor(),_e=this._workCell.getBgColorMode(),ye=!!this._workCell.isInverse();if(ye){var De=re;re=ce,ce=De;var Ee=se;se=_e,_e=Ee}switch(se){case 16777216:case 33554432:this._workCell.isBold()&&re<8&&this._optionsService.options.drawBoldTextInBrightColors&&(re+=8),this._applyMinimumContrast(z,this._colors.background,this._colors.ansi[re])||z.classList.add("xterm-fg-"+re);break;case 50331648:var je=Se.rgba.toColor(re>>16&255,re>>8&255,255&re);this._applyMinimumContrast(z,this._colors.background,je)||this._addStyle(z,"color:#"+ie(re.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(z,this._colors.background,this._colors.foreground)||ye&&z.classList.add("xterm-fg-"+ge.INVERTED_DEFAULT_COLOR)}switch(_e){case 16777216:case 33554432:z.classList.add("xterm-bg-"+ce);break;case 50331648:this._addStyle(z,"background-color:#"+ie(ce.toString(16),"0",6));break;case 0:default:ye&&z.classList.add("xterm-bg-"+ge.INVERTED_DEFAULT_COLOR)}y.appendChild(z)}}return y},ue.prototype._applyMinimumContrast=function(le,me,ae){if(this._optionsService.options.minimumContrastRatio===1)return!1;var he=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return he===void 0&&(he=Se.color.ensureContrastRatio(me,ae,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,he!=null?he:null)),!!he&&(this._addStyle(le,"color:"+he.css),!0)},ue.prototype._addStyle=function(le,me){le.setAttribute("style",""+(le.getAttribute("style")||"")+me+";")},ue}();function ie(ue,le,me){for(;ue.length<me;)ue=le+ue;return ue}te.DomRendererRowFactory=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.evaluateKeyboardEvent=void 0;var ge=ee(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:["'",'"']};te.evaluateKeyboardEvent=function(ve,Se,fe,ie){var ue={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"?ue.key=Se?ge.C0.ESC+"OA":ge.C0.ESC+"[A":ve.key==="UIKeyInputLeftArrow"?ue.key=Se?ge.C0.ESC+"OD":ge.C0.ESC+"[D":ve.key==="UIKeyInputRightArrow"?ue.key=Se?ge.C0.ESC+"OC":ge.C0.ESC+"[C":ve.key==="UIKeyInputDownArrow"&&(ue.key=Se?ge.C0.ESC+"OB":ge.C0.ESC+"[B");break;case 8:if(ve.shiftKey){ue.key=ge.C0.BS;break}if(ve.altKey){ue.key=ge.C0.ESC+ge.C0.DEL;break}ue.key=ge.C0.DEL;break;case 9:if(ve.shiftKey){ue.key=ge.C0.ESC+"[Z";break}ue.key=ge.C0.HT,ue.cancel=!0;break;case 13:ue.key=ve.altKey?ge.C0.ESC+ge.C0.CR:ge.C0.CR,ue.cancel=!0;break;case 27:ue.key=ge.C0.ESC,ve.altKey&&(ue.key=ge.C0.ESC+ge.C0.ESC),ue.cancel=!0;break;case 37:if(ve.metaKey)break;le?(ue.key=ge.C0.ESC+"[1;"+(le+1)+"D",ue.key===ge.C0.ESC+"[1;3D"&&(ue.key=ge.C0.ESC+(fe?"b":"[1;5D"))):ue.key=Se?ge.C0.ESC+"OD":ge.C0.ESC+"[D";break;case 39:if(ve.metaKey)break;le?(ue.key=ge.C0.ESC+"[1;"+(le+1)+"C",ue.key===ge.C0.ESC+"[1;3C"&&(ue.key=ge.C0.ESC+(fe?"f":"[1;5C"))):ue.key=Se?ge.C0.ESC+"OC":ge.C0.ESC+"[C";break;case 38:if(ve.metaKey)break;le?(ue.key=ge.C0.ESC+"[1;"+(le+1)+"A",fe||ue.key!==ge.C0.ESC+"[1;3A"||(ue.key=ge.C0.ESC+"[1;5A")):ue.key=Se?ge.C0.ESC+"OA":ge.C0.ESC+"[A";break;case 40:if(ve.metaKey)break;le?(ue.key=ge.C0.ESC+"[1;"+(le+1)+"B",fe||ue.key!==ge.C0.ESC+"[1;3B"||(ue.key=ge.C0.ESC+"[1;5B")):ue.key=Se?ge.C0.ESC+"OB":ge.C0.ESC+"[B";break;case 45:ve.shiftKey||ve.ctrlKey||(ue.key=ge.C0.ESC+"[2~");break;case 46:ue.key=le?ge.C0.ESC+"[3;"+(le+1)+"~":ge.C0.ESC+"[3~";break;case 36:ue.key=le?ge.C0.ESC+"[1;"+(le+1)+"H":Se?ge.C0.ESC+"OH":ge.C0.ESC+"[H";break;case 35:ue.key=le?ge.C0.ESC+"[1;"+(le+1)+"F":Se?ge.C0.ESC+"OF":ge.C0.ESC+"[F";break;case 33:ve.shiftKey?ue.type=2:ue.key=ge.C0.ESC+"[5~";break;case 34:ve.shiftKey?ue.type=3:ue.key=ge.C0.ESC+"[6~";break;case 112:ue.key=le?ge.C0.ESC+"[1;"+(le+1)+"P":ge.C0.ESC+"OP";break;case 113:ue.key=le?ge.C0.ESC+"[1;"+(le+1)+"Q":ge.C0.ESC+"OQ";break;case 114:ue.key=le?ge.C0.ESC+"[1;"+(le+1)+"R":ge.C0.ESC+"OR";break;case 115:ue.key=le?ge.C0.ESC+"[1;"+(le+1)+"S":ge.C0.ESC+"OS";break;case 116:ue.key=le?ge.C0.ESC+"[15;"+(le+1)+"~":ge.C0.ESC+"[15~";break;case 117:ue.key=le?ge.C0.ESC+"[17;"+(le+1)+"~":ge.C0.ESC+"[17~";break;case 118:ue.key=le?ge.C0.ESC+"[18;"+(le+1)+"~":ge.C0.ESC+"[18~";break;case 119:ue.key=le?ge.C0.ESC+"[19;"+(le+1)+"~":ge.C0.ESC+"[19~";break;case 120:ue.key=le?ge.C0.ESC+"[20;"+(le+1)+"~":ge.C0.ESC+"[20~";break;case 121:ue.key=le?ge.C0.ESC+"[21;"+(le+1)+"~":ge.C0.ESC+"[21~";break;case 122:ue.key=le?ge.C0.ESC+"[23;"+(le+1)+"~":ge.C0.ESC+"[23~";break;case 123:ue.key=le?ge.C0.ESC+"[24;"+(le+1)+"~":ge.C0.ESC+"[24~";break;default:if(!ve.ctrlKey||ve.shiftKey||ve.altKey||ve.metaKey)if(fe&&!ie||!ve.altKey||ve.metaKey)fe&&!ve.altKey&&!ve.ctrlKey&&ve.metaKey?ve.keyCode===65&&(ue.type=1):ve.key&&!ve.ctrlKey&&!ve.altKey&&!ve.metaKey&&ve.keyCode>=48&&ve.key.length===1?ue.key=ve.key:ve.key&&ve.ctrlKey&&ve.key==="_"&&(ue.key=ge.C0.US);else{var me=be[ve.keyCode],ae=me&&me[ve.shiftKey?1:0];if(ae)ue.key=ge.C0.ESC+ae;else if(ve.keyCode>=65&&ve.keyCode<=90){var he=ve.ctrlKey?ve.keyCode-64:ve.keyCode+32;ue.key=ge.C0.ESC+String.fromCharCode(he)}}else ve.keyCode>=65&&ve.keyCode<=90?ue.key=String.fromCharCode(ve.keyCode-64):ve.keyCode===32?ue.key=ge.C0.NUL:ve.keyCode>=51&&ve.keyCode<=55?ue.key=String.fromCharCode(ve.keyCode-51+27):ve.keyCode===56?ue.key=ge.C0.DEL:ve.keyCode===219?ue.key=ge.C0.ESC:ve.keyCode===220?ue.key=ge.C0.FS:ve.keyCode===221&&(ue.key=ge.C0.GS)}return ue}},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ne,a){return(ge=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}ge(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 re=ne.length-1;re>=0;re--)(b=ne[re])&&(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},Se=this&&this.__param||function(ne,a){return function(y,E){a(y,E,ne)}};Object.defineProperty(te,"__esModule",{value:!0}),te.RenderService=void 0;var fe=ee(31),ie=ee(0),ue=ee(2),le=ee(32),me=ee(7),ae=ee(1),he=ee(5),oe=function(ne){function a(y,E,b,x,z,re){var se=ne.call(this)||this;if(se._renderer=y,se._rowCount=E,se._isPaused=!1,se._needsFullRefresh=!1,se._isNextRenderRedrawOnly=!0,se._needsSelectionRefresh=!1,se._canvasWidth=0,se._canvasHeight=0,se._selectionState={start:void 0,end:void 0,columnSelectMode:!1},se._onDimensionsChange=new ie.EventEmitter,se._onRender=new ie.EventEmitter,se._onRefreshRequest=new ie.EventEmitter,se.register({dispose:function(){return se._renderer.dispose()}}),se._renderDebouncer=new fe.RenderDebouncer(function(_e,ye){return se._renderRows(_e,ye)}),se.register(se._renderDebouncer),se._screenDprMonitor=new le.ScreenDprMonitor,se._screenDprMonitor.setListener(function(){return se.onDevicePixelRatioChange()}),se.register(se._screenDprMonitor),se.register(re.onResize(function(_e){return se._fullRefresh()})),se.register(x.onOptionChange(function(){return se._renderer.onOptionsChanged()})),se.register(z.onCharSizeChange(function(){return se.onCharSizeChanged()})),se._renderer.onRequestRedraw(function(_e){return se.refreshRows(_e.start,_e.end,!0)}),se.register(me.addDisposableDomListener(window,"resize",function(){return se.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ce=new IntersectionObserver(function(_e){return se._onIntersectionChange(_e[_e.length-1])},{threshold:0});ce.observe(b),se.register({dispose:function(){return ce.disconnect()}})}return se}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([Se(3,ae.IOptionsService),Se(4,he.ICharSizeService),Se(5,ae.IBufferService)],a)}(ue.Disposable);te.RenderService=oe},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ue,le,me,ae){var he,oe=arguments.length,ne=oe<3?le:ae===null?ae=Object.getOwnPropertyDescriptor(le,me):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(ue,le,me,ae);else for(var a=ue.length-1;a>=0;a--)(he=ue[a])&&(ne=(oe<3?he(ne):oe>3?he(le,me,ne):he(le,me))||ne);return oe>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(ue,le){return function(me,ae){le(me,ae,ue)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CharSizeService=void 0;var ve=ee(1),Se=ee(0),fe=function(){function ue(le,me,ae){this._optionsService=ae,this.width=0,this.height=0,this._onCharSizeChange=new Se.EventEmitter,this._measureStrategy=new ie(le,me,this._optionsService)}return Object.defineProperty(ue.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),ue.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())},ue=ge([be(2,ve.IOptionsService)],ue)}();te.CharSizeService=fe;var ie=function(){function ue(le,me,ae){this._document=le,this._parentElement=me,this._optionsService=ae,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 ue.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},ue}()},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ie,ue,le,me){var ae,he=arguments.length,oe=he<3?ue:me===null?me=Object.getOwnPropertyDescriptor(ue,le):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,ue,le,me);else for(var ne=ie.length-1;ne>=0;ne--)(ae=ie[ne])&&(oe=(he<3?ae(oe):he>3?ae(ue,le,oe):ae(ue,le))||oe);return he>3&&oe&&Object.defineProperty(ue,le,oe),oe},be=this&&this.__param||function(ie,ue){return function(le,me){ue(le,me,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseService=void 0;var ve=ee(5),Se=ee(30),fe=function(){function ie(ue,le){this._renderService=ue,this._charSizeService=le}return ie.prototype.getCoords=function(ue,le,me,ae,he){return Se.getCoords(ue,le,me,ae,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,he)},ie.prototype.getRawByteCoords=function(ue,le,me,ae){var he=this.getCoords(ue,le,me,ae);return Se.getRawByteCoords(he)},ie=ge([be(0,ve.IRenderService),be(1,ve.ICharSizeService)],ie)}();te.MouseService=fe},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ve=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Linkifier2=void 0;var fe=ee(1),ie=ee(0),ue=ee(2),le=ee(7),me=function(ae){function he(oe){var ne=ae.call(this)||this;return ne._bufferService=oe,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new ie.EventEmitter),ne._onHideLinkUnderline=ne.register(new ie.EventEmitter),ne.register(ue.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return be(he,ae),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}),he.prototype.registerLinkProvider=function(oe){var ne=this;return this._linkProviders.push(oe),{dispose:function(){var a=ne._linkProviders.indexOf(oe);a!==-1&&ne._linkProviders.splice(a,1)}}},he.prototype.attachToDom=function(oe,ne,a){var y=this;this._element=oe,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)))},he.prototype._onMouseMove=function(oe){if(this._lastMouseEvent=oe,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(oe,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=oe.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)}}},he.prototype._onHover=function(oe){if(this._activeLine!==oe.y)return this._clearCurrentLink(),void this._askForLink(oe,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,oe)||(this._clearCurrentLink(),this._askForLink(oe,!0))},he.prototype._askForLink=function(oe,ne){var a=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=oe.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,oe,y)):E.provideLinks(oe.y,function(z){var re,se;if(!a._isMouseOut){var ce=z==null?void 0:z.map(function(_e){return{link:_e}});(re=a._activeProviderReplies)===null||re===void 0||re.set(b,ce),y=a._checkLinkProviderResult(b,oe,y),((se=a._activeProviderReplies)===null||se===void 0?void 0:se.size)===a._linkProviders.length&&a._removeIntersectingLinks(oe.y,a._activeProviderReplies)}})})},he.prototype._removeIntersectingLinks=function(oe,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<oe?0:x.link.range.start.x,re=x.link.range.end.y>oe?this._bufferService.cols:x.link.range.end.x,se=z;se<=re;se++){if(a.has(se)){E.splice(b--,1);break}a.add(se)}}},he.prototype._checkLinkProviderResult=function(oe,ne,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(oe),x=!1,z=0;z<oe;z++)this._activeProviderReplies.has(z)&&!this._activeProviderReplies.get(z)||(x=!0);if(!x&&b){var re=b.find(function(ce){return E._linkAtPosition(ce.link,ne)});re&&(a=!0,this._handleNewLink(re))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(z=0;z<this._activeProviderReplies.size;z++){var se=(y=this._activeProviderReplies.get(z))===null||y===void 0?void 0:y.find(function(ce){return E._linkAtPosition(ce.link,ne)});if(se){a=!0,this._handleNewLink(se);break}}return a},he.prototype._onClick=function(oe){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(oe,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(oe,this._currentLink.link.text)}},he.prototype._clearCurrentLink=function(oe,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!oe||!ne||this._currentLink.link.range.start.y>=oe&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,ue.disposeArray(this._linkCacheDisposables))},he.prototype._handleNewLink=function(oe){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(oe.link,a)&&(this._currentLink=oe,this._currentLink.state={decorations:{underline:oe.link.decorations===void 0||oe.link.decorations.underline,pointerCursor:oe.link.decorations===void 0||oe.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,oe.link,this._lastMouseEvent),oe.link.decorations={},Object.defineProperties(oe.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(oe.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)})))}},he.prototype._linkHover=function(oe,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&&oe.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},he.prototype._fireUnderlineEvent=function(oe,ne){var a=oe.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)},he.prototype._linkLeave=function(oe,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&&oe.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},he.prototype._linkAtPosition=function(oe,ne){var a=oe.range.start.y===oe.range.end.y,y=oe.range.start.y<ne.y,E=oe.range.end.y>ne.y;return(a&&oe.range.start.x<=ne.x&&oe.range.end.x>=ne.x||y&&oe.range.end.x>=ne.x||E&&oe.range.start.x<=ne.x||y&&E)&&oe.range.start.y<=ne.y&&oe.range.end.y>=ne.y},he.prototype._positionFromMouseEvent=function(oe,ne,a){var y=a.getCoords(oe,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},he.prototype._createLinkUnderlineEvent=function(oe,ne,a,y,E){return{x1:oe,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},he=ve([Se(0,fe.IBufferService)],he)}(ue.Disposable);te.Linkifier2=me},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CoreBrowserService=void 0;var ge=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}();te.CoreBrowserService=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(z,re){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ce){se.__proto__=ce}||function(se,ce){for(var _e in ce)ce.hasOwnProperty(_e)&&(se[_e]=ce[_e])})(z,re)},function(z,re){function se(){this.constructor=z}ge(z,re),z.prototype=re===null?Object.create(re):(se.prototype=re.prototype,new se)});Object.defineProperty(te,"__esModule",{value:!0}),te.CoreTerminal=void 0;var ve=ee(2),Se=ee(1),fe=ee(66),ie=ee(67),ue=ee(68),le=ee(74),me=ee(75),ae=ee(0),he=ee(76),oe=ee(77),ne=ee(78),a=ee(80),y=ee(81),E=ee(19),b=ee(82),x=function(z){function re(se){var ce=z.call(this)||this;return ce._onBinary=new ae.EventEmitter,ce._onData=new ae.EventEmitter,ce._onLineFeed=new ae.EventEmitter,ce._onResize=new ae.EventEmitter,ce._onScroll=new ae.EventEmitter,ce._instantiationService=new fe.InstantiationService,ce.optionsService=new le.OptionsService(se),ce._instantiationService.setService(Se.IOptionsService,ce.optionsService),ce._bufferService=ce.register(ce._instantiationService.createInstance(ue.BufferService)),ce._instantiationService.setService(Se.IBufferService,ce._bufferService),ce._logService=ce._instantiationService.createInstance(ie.LogService),ce._instantiationService.setService(Se.ILogService,ce._logService),ce._coreService=ce.register(ce._instantiationService.createInstance(me.CoreService,function(){return ce.scrollToBottom()})),ce._instantiationService.setService(Se.ICoreService,ce._coreService),ce._coreMouseService=ce._instantiationService.createInstance(he.CoreMouseService),ce._instantiationService.setService(Se.ICoreMouseService,ce._coreMouseService),ce._dirtyRowService=ce._instantiationService.createInstance(oe.DirtyRowService),ce._instantiationService.setService(Se.IDirtyRowService,ce._dirtyRowService),ce.unicodeService=ce._instantiationService.createInstance(ne.UnicodeService),ce._instantiationService.setService(Se.IUnicodeService,ce.unicodeService),ce._charsetService=ce._instantiationService.createInstance(a.CharsetService),ce._instantiationService.setService(Se.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(ae.forwardEvent(ce._inputHandler.onLineFeed,ce._onLineFeed)),ce.register(ce._inputHandler),ce.register(ae.forwardEvent(ce._bufferService.onResize,ce._onResize)),ce.register(ae.forwardEvent(ce._coreService.onData,ce._onData)),ce.register(ae.forwardEvent(ce._coreService.onBinary,ce._onBinary)),ce.register(ce.optionsService.onOptionChange(function(_e){return ce._updateOptions(_e)})),ce._writeBuffer=new b.WriteBuffer(function(_e){return ce._inputHandler.parse(_e)}),ce}return be(re,z),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),re.prototype.dispose=function(){var se;this._isDisposed||(z.prototype.dispose.call(this),(se=this._windowsMode)===null||se===void 0||se.dispose(),this._windowsMode=void 0)},re.prototype.write=function(se,ce){this._writeBuffer.write(se,ce)},re.prototype.writeSync=function(se){this._writeBuffer.writeSync(se)},re.prototype.resize=function(se,ce){isNaN(se)||isNaN(ce)||(se=Math.max(se,ue.MINIMUM_COLS),ce=Math.max(ce,ue.MINIMUM_ROWS),this._bufferService.resize(se,ce))},re.prototype.scroll=function(se,ce){ce===void 0&&(ce=!1);var _e,ye=this._bufferService.buffer;(_e=this._cachedBlankLine)&&_e.length===this.cols&&_e.getFg(0)===se.fg&&_e.getBg(0)===se.bg||(_e=ye.getBlankLine(se,ce),this._cachedBlankLine=_e),_e.isWrapped=ce;var De=ye.ybase+ye.scrollTop,Ee=ye.ybase+ye.scrollBottom;if(ye.scrollTop===0){var je=ye.lines.isFull;Ee===ye.lines.length-1?je?ye.lines.recycle().copyFrom(_e):ye.lines.push(_e.clone()):ye.lines.splice(Ee+1,0,_e.clone()),je?this._bufferService.isUserScrolling&&(ye.ydisp=Math.max(ye.ydisp-1,0)):(ye.ybase++,this._bufferService.isUserScrolling||ye.ydisp++)}else{var Le=Ee-De+1;ye.lines.shiftElements(De+1,Le-1,-1),ye.lines.set(Ee,_e.clone())}this._bufferService.isUserScrolling||(ye.ydisp=ye.ybase),this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom),this._onScroll.fire(ye.ydisp)},re.prototype.scrollLines=function(se,ce){var _e=this._bufferService.buffer;if(se<0){if(_e.ydisp===0)return;this._bufferService.isUserScrolling=!0}else se+_e.ydisp>=_e.ybase&&(this._bufferService.isUserScrolling=!1);var ye=_e.ydisp;_e.ydisp=Math.max(Math.min(_e.ydisp+se,_e.ybase),0),ye!==_e.ydisp&&(ce||this._onScroll.fire(_e.ydisp))},re.prototype.scrollPages=function(se){this.scrollLines(se*(this.rows-1))},re.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},re.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},re.prototype.scrollToLine=function(se){var ce=se-this._bufferService.buffer.ydisp;ce!==0&&this.scrollLines(ce)},re.prototype.addEscHandler=function(se,ce){return this._inputHandler.addEscHandler(se,ce)},re.prototype.addDcsHandler=function(se,ce){return this._inputHandler.addDcsHandler(se,ce)},re.prototype.addCsiHandler=function(se,ce){return this._inputHandler.addCsiHandler(se,ce)},re.prototype.addOscHandler=function(se,ce){return this._inputHandler.addOscHandler(se,ce)},re.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},re.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},re.prototype._updateOptions=function(se){var ce;switch(se){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)}},re.prototype._enableWindowsMode=function(){var se=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(se._bufferService),!1})),this._windowsMode={dispose:function(){for(var _e=0,ye=ce;_e<ye.length;_e++)ye[_e].dispose()}}}},re}(ve.Disposable);te.CoreTerminal=x},function(Ve,te,ee){"use strict";var ge=this&&this.__spreadArrays||function(){for(var ie=0,ue=0,le=arguments.length;ue<le;ue++)ie+=arguments[ue].length;var me=Array(ie),ae=0;for(ue=0;ue<le;ue++)for(var he=arguments[ue],oe=0,ne=he.length;oe<ne;oe++,ae++)me[ae]=he[oe];return me};Object.defineProperty(te,"__esModule",{value:!0}),te.InstantiationService=te.ServiceCollection=void 0;var be=ee(1),ve=ee(14),Se=function(){function ie(){for(var ue=[],le=0;le<arguments.length;le++)ue[le]=arguments[le];this._entries=new Map;for(var me=0,ae=ue;me<ae.length;me++){var he=ae[me],oe=he[0],ne=he[1];this.set(oe,ne)}}return ie.prototype.set=function(ue,le){var me=this._entries.get(ue);return this._entries.set(ue,le),me},ie.prototype.forEach=function(ue){this._entries.forEach(function(le,me){return ue(me,le)})},ie.prototype.has=function(ue){return this._entries.has(ue)},ie.prototype.get=function(ue){return this._entries.get(ue)},ie}();te.ServiceCollection=Se;var fe=function(){function ie(){this._services=new Se,this._services.set(be.IInstantiationService,this)}return ie.prototype.setService=function(ue,le){this._services.set(ue,le)},ie.prototype.getService=function(ue){return this._services.get(ue)},ie.prototype.createInstance=function(ue){for(var le=[],me=1;me<arguments.length;me++)le[me-1]=arguments[me];for(var ae=ve.getServiceDependencies(ue).sort(function(b,x){return b.index-x.index}),he=[],oe=0,ne=ae;oe<ne.length;oe++){var a=ne[oe],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+ue.name+" depends on UNKNOWN service "+a.id+".");he.push(y)}var E=ae.length>0?ae[0].index:le.length;if(le.length!==E)throw new Error("[createInstance] First service dependency of "+ue.name+" at position "+(E+1)+" conflicts with "+le.length+" static arguments");return new(ue.bind.apply(ue,ge([void 0],ge(le,he))))},ie}();te.InstantiationService=fe},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(le,me,ae,he){var oe,ne=arguments.length,a=ne<3?me:he===null?he=Object.getOwnPropertyDescriptor(me,ae):he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(le,me,ae,he);else for(var y=le.length-1;y>=0;y--)(oe=le[y])&&(a=(ne<3?oe(a):ne>3?oe(me,ae,a):oe(me,ae))||a);return ne>3&&a&&Object.defineProperty(me,ae,a),a},be=this&&this.__param||function(le,me){return function(ae,he){me(ae,he,le)}},ve=this&&this.__spreadArrays||function(){for(var le=0,me=0,ae=arguments.length;me<ae;me++)le+=arguments[me].length;var he=Array(le),oe=0;for(me=0;me<ae;me++)for(var ne=arguments[me],a=0,y=ne.length;a<y;a++,oe++)he[oe]=ne[a];return he};Object.defineProperty(te,"__esModule",{value:!0}),te.LogService=te.LogLevel=void 0;var Se,fe=ee(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"})(Se=te.LogLevel||(te.LogLevel={}));var ie={debug:Se.DEBUG,info:Se.INFO,warn:Se.WARN,error:Se.ERROR,off:Se.OFF},ue=function(){function le(me){var ae=this;this._optionsService=me,this._updateLogLevel(),this._optionsService.onOptionChange(function(he){he==="logLevel"&&ae._updateLogLevel()})}return le.prototype._updateLogLevel=function(){this._logLevel=ie[this._optionsService.options.logLevel]},le.prototype._evalLazyOptionalParams=function(me){for(var ae=0;ae<me.length;ae++)typeof me[ae]=="function"&&(me[ae]=me[ae]())},le.prototype._log=function(me,ae,he){this._evalLazyOptionalParams(he),me.call.apply(me,ve([console,"xterm.js: "+ae],he))},le.prototype.debug=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.DEBUG&&this._log(console.log,me,ae)},le.prototype.info=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.INFO&&this._log(console.info,me,ae)},le.prototype.warn=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.WARN&&this._log(console.warn,me,ae)},le.prototype.error=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.ERROR&&this._log(console.error,me,ae)},le=ge([be(0,fe.IOptionsService)],le)}();te.LogService=ue},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ve=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.BufferService=te.MINIMUM_ROWS=te.MINIMUM_COLS=void 0;var fe=ee(1),ie=ee(69),ue=ee(0),le=ee(2);te.MINIMUM_COLS=2,te.MINIMUM_ROWS=1;var me=function(ae){function he(oe){var ne=ae.call(this)||this;return ne._optionsService=oe,ne.isUserScrolling=!1,ne._onResize=new ue.EventEmitter,ne.cols=Math.max(oe.options.cols,te.MINIMUM_COLS),ne.rows=Math.max(oe.options.rows,te.MINIMUM_ROWS),ne.buffers=new ie.BufferSet(oe,ne),ne}return be(he,ae),Object.defineProperty(he.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),he.prototype.dispose=function(){ae.prototype.dispose.call(this),this.buffers.dispose()},he.prototype.resize=function(oe,ne){this.cols=oe,this.rows=ne,this.buffers.resize(oe,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:oe,rows:ne})},he.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ie.BufferSet(this._optionsService,this),this.isUserScrolling=!1},he=ve([Se(0,fe.IOptionsService)],he)}(le.Disposable);te.BufferService=me},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ie,ue){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,me){le.__proto__=me}||function(le,me){for(var ae in me)me.hasOwnProperty(ae)&&(le[ae]=me[ae])})(ie,ue)},function(ie,ue){function le(){this.constructor=ie}ge(ie,ue),ie.prototype=ue===null?Object.create(ue):(le.prototype=ue.prototype,new le)});Object.defineProperty(te,"__esModule",{value:!0}),te.BufferSet=void 0;var ve=ee(70),Se=ee(0),fe=function(ie){function ue(le,me){var ae=ie.call(this)||this;return ae._onBufferActivate=ae.register(new Se.EventEmitter),ae._normal=new ve.Buffer(!0,le,me),ae._normal.fillViewportRows(),ae._alt=new ve.Buffer(!1,le,me),ae._activeBuffer=ae._normal,ae.setupTabStops(),ae}return be(ue,ie),Object.defineProperty(ue.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),ue.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}))},ue.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}))},ue.prototype.resize=function(le,me){this._normal.resize(le,me),this._alt.resize(le,me)},ue.prototype.setupTabStops=function(le){this._normal.setupTabStops(le),this._alt.setupTabStops(le)},ue}(ee(2).Disposable);te.BufferSet=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferStringIterator=te.Buffer=te.MAX_BUFFER_SIZE=void 0;var ge=ee(71),be=ee(16),ve=ee(4),Se=ee(3),fe=ee(72),ie=ee(73),ue=ee(20),le=ee(6);te.MAX_BUFFER_SIZE=4294967295;var me=function(){function he(oe,ne,a){this._hasScrollback=oe,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=ue.DEFAULT_CHARSET,this.markers=[],this._nullCell=ve.CellData.fromCharData([0,Se.NULL_CELL_CHAR,Se.NULL_CELL_WIDTH,Se.NULL_CELL_CODE]),this._whitespaceCell=ve.CellData.fromCharData([0,Se.WHITESPACE_CELL_CHAR,Se.WHITESPACE_CELL_WIDTH,Se.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ge.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return he.prototype.getNullCell=function(oe){return oe?(this._nullCell.fg=oe.fg,this._nullCell.bg=oe.bg,this._nullCell.extended=oe.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new le.ExtendedAttrs),this._nullCell},he.prototype.getWhitespaceCell=function(oe){return oe?(this._whitespaceCell.fg=oe.fg,this._whitespaceCell.bg=oe.bg,this._whitespaceCell.extended=oe.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new le.ExtendedAttrs),this._whitespaceCell},he.prototype.getBlankLine=function(oe,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(oe),ne)},Object.defineProperty(he.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isCursorInViewport",{get:function(){var oe=this.ybase+this.y-this.ydisp;return oe>=0&&oe<this._rows},enumerable:!1,configurable:!0}),he.prototype._getCorrectBufferLength=function(oe){if(!this._hasScrollback)return oe;var ne=oe+this._optionsService.options.scrollback;return ne>te.MAX_BUFFER_SIZE?te.MAX_BUFFER_SIZE:ne},he.prototype.fillViewportRows=function(oe){if(this.lines.length===0){oe===void 0&&(oe=be.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(oe))}},he.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ge.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},he.prototype.resize=function(oe,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<oe)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(oe,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(oe,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(oe,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,oe-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,oe-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(oe,ne),this._cols>oe))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(oe,a);this._cols=oe,this._rows=ne},Object.defineProperty(he.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),he.prototype._reflow=function(oe,ne){this._cols!==oe&&(oe>this._cols?this._reflowLarger(oe,ne):this._reflowSmaller(oe,ne))},he.prototype._reflowLarger=function(oe,ne){var a=fe.reflowLargerGetLinesToRemove(this.lines,this._cols,oe,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(a.length>0){var y=fe.reflowLargerCreateNewLayout(this.lines,a);fe.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(oe,ne,y.countRemoved)}},he.prototype._reflowLargerAdjustViewport=function(oe,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(oe,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},he.prototype._reflowSmaller=function(oe,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()<=oe)){for(var z=[x];x.isWrapped&&b>0;)x=this.lines.get(--b),z.unshift(x);var re=this.ybase+this.y;if(!(re>=b&&re<b+z.length)){var se=z[z.length-1].getTrimmedLength(),ce=fe.reflowSmallerGetNewLineLengths(z,this._cols,oe),_e=ce.length-z.length,ye=void 0;ye=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+_e):Math.max(0,this.lines.length-this.lines.maxLength+_e);for(var De=[],Ee=0;Ee<_e;Ee++){var je=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);De.push(je)}De.length>0&&(y.push({start:b+z.length+E,newLines:De}),E+=De.length),z.push.apply(z,De);var Le=ce.length-1,ft=ce[Le];ft===0&&(ft=ce[--Le]);for(var Xe=z.length-_e-1,pt=se;Xe>=0;){var we=Math.min(pt,ft);if(z[Le].copyCellsFrom(z[Xe],pt-we,ft-we,we,!0),(ft-=we)===0&&(ft=ce[--Le]),(pt-=we)===0){Xe--;var Fe=Math.max(Xe,0);pt=fe.getWrappedLineTrimmedLength(z,Fe,this._cols)}}for(Ee=0;Ee<z.length;Ee++)ce[Ee]<oe&&z[Ee].setCell(ce[Ee],a);for(var He=_e-ye;He-- >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+_e,this.ybase+ne-1)}}}if(y.length>0){var st=[],Ke=[];for(Ee=0;Ee<this.lines.length;Ee++)Ke.push(this.lines.get(Ee));var mt=this.lines.length,_t=mt-1,At=0,kt=y[At];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var rt=0;for(Ee=Math.min(this.lines.maxLength-1,mt+E-1);Ee>=0;Ee--)if(kt&&kt.start>_t+rt){for(var Qe=kt.newLines.length-1;Qe>=0;Qe--)this.lines.set(Ee--,kt.newLines[Qe]);Ee++,st.push({index:_t+1,amount:kt.newLines.length}),rt+=kt.newLines.length,kt=y[++At]}else this.lines.set(Ee,Ke[_t--]);var Pt=0;for(Ee=st.length-1;Ee>=0;Ee--)st[Ee].index+=Pt,this.lines.onInsertEmitter.fire(st[Ee]),Pt+=st[Ee].amount;var zt=Math.max(0,mt+E-this.lines.maxLength);zt>0&&this.lines.onTrimEmitter.fire(zt)}},he.prototype.stringIndexToBufferIndex=function(oe,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(oe);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b<E;++b)if(y.get(b)[Se.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[Se.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[oe,b];oe++}return[oe,0]},he.prototype.translateBufferLineToString=function(oe,ne,a,y){a===void 0&&(a=0);var E=this.lines.get(oe);return E?E.translateToString(ne,a,y):""},he.prototype.getWrappedRangeForLine=function(oe){for(var ne=oe,a=oe;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}},he.prototype.setupTabStops=function(oe){for(oe!=null?this.tabs[oe]||(oe=this.prevStop(oe)):(this.tabs={},oe=0);oe<this._cols;oe+=this._optionsService.options.tabStopWidth)this.tabs[oe]=!0},he.prototype.prevStop=function(oe){for(oe==null&&(oe=this.x);!this.tabs[--oe]&&oe>0;);return oe>=this._cols?this._cols-1:oe<0?0:oe},he.prototype.nextStop=function(oe){for(oe==null&&(oe=this.x);!this.tabs[++oe]&&oe<this._cols;);return oe>=this._cols?this._cols-1:oe<0?0:oe},he.prototype.addMarker=function(oe){var ne=this,a=new ie.Marker(oe);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},he.prototype._removeMarker=function(oe){this.markers.splice(this.markers.indexOf(oe),1)},he.prototype.iterator=function(oe,ne,a,y,E){return new ae(this,oe,ne,a,y,E)},he}();te.Buffer=me;var ae=function(){function he(oe,ne,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=oe.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=oe,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 he.prototype.hasNext=function(){return this._current<this._endIndex},he.prototype.next=function(){var oe=this._buffer.getWrappedRangeForLine(this._current);oe.first<this._startIndex-this._startOverscan&&(oe.first=this._startIndex-this._startOverscan),oe.last>this._endIndex+this._endOverscan&&(oe.last=this._endIndex+this._endOverscan),oe.first=Math.max(oe.first,0),oe.last=Math.min(oe.last,this._buffer.lines.length);for(var ne="",a=oe.first;a<=oe.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=oe.last+1,{range:oe,content:ne}},he}();te.BufferStringIterator=ae},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CircularList=void 0;var ge=ee(0),be=function(){function ve(Se){this._maxLength=Se,this.onDeleteEmitter=new ge.EventEmitter,this.onInsertEmitter=new ge.EventEmitter,this.onTrimEmitter=new ge.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(Se){if(this._maxLength!==Se){for(var fe=new Array(Se),ie=0;ie<Math.min(Se,this.length);ie++)fe[ie]=this._array[this._getCyclicIndex(ie)];this._array=fe,this._maxLength=Se,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"length",{get:function(){return this._length},set:function(Se){if(Se>this._length)for(var fe=this._length;fe<Se;fe++)this._array[fe]=void 0;this._length=Se},enumerable:!1,configurable:!0}),ve.prototype.get=function(Se){return this._array[this._getCyclicIndex(Se)]},ve.prototype.set=function(Se,fe){this._array[this._getCyclicIndex(Se)]=fe},ve.prototype.push=function(Se){this._array[this._getCyclicIndex(this._length)]=Se,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(Se,fe){for(var ie=[],ue=2;ue<arguments.length;ue++)ie[ue-2]=arguments[ue];if(fe){for(var le=Se;le<this._length-fe;le++)this._array[this._getCyclicIndex(le)]=this._array[this._getCyclicIndex(le+fe)];this._length-=fe}for(le=this._length-1;le>=Se;le--)this._array[this._getCyclicIndex(le+ie.length)]=this._array[this._getCyclicIndex(le)];for(le=0;le<ie.length;le++)this._array[this._getCyclicIndex(Se+le)]=ie[le];if(this._length+ie.length>this._maxLength){var me=this._length+ie.length-this._maxLength;this._startIndex+=me,this._length=this._maxLength,this.onTrimEmitter.fire(me)}else this._length+=ie.length},ve.prototype.trimStart=function(Se){Se>this._length&&(Se=this._length),this._startIndex+=Se,this._length-=Se,this.onTrimEmitter.fire(Se)},ve.prototype.shiftElements=function(Se,fe,ie){if(!(fe<=0)){if(Se<0||Se>=this._length)throw new Error("start argument out of range");if(Se+ie<0)throw new Error("Cannot shift elements in list beyond index 0");if(ie>0){for(var ue=fe-1;ue>=0;ue--)this.set(Se+ue+ie,this.get(Se+ue));var le=Se+fe+ie-this._length;if(le>0)for(this._length+=le;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(ue=0;ue<fe;ue++)this.set(Se+ue+ie,this.get(Se+ue))}},ve.prototype._getCyclicIndex=function(Se){return(this._startIndex+Se)%this._maxLength},ve}();te.CircularList=be},function(Ve,te,ee){"use strict";function ge(be,ve,Se){if(ve===be.length-1)return be[ve].getTrimmedLength();var fe=!be[ve].hasContent(Se-1)&&be[ve].getWidth(Se-1)===1,ie=be[ve+1].getWidth(0)===2;return fe&&ie?Se-1:Se}Object.defineProperty(te,"__esModule",{value:!0}),te.getWrappedLineTrimmedLength=te.reflowSmallerGetNewLineLengths=te.reflowLargerApplyNewLayout=te.reflowLargerCreateNewLayout=te.reflowLargerGetLinesToRemove=void 0,te.reflowLargerGetLinesToRemove=function(be,ve,Se,fe,ie){for(var ue=[],le=0;le<be.length-1;le++){var me=le,ae=be.get(++me);if(ae.isWrapped){for(var he=[be.get(le)];me<be.length&&ae.isWrapped;)he.push(ae),ae=be.get(++me);if(fe>=le&&fe<me)le+=he.length-1;else{for(var oe=0,ne=ge(he,oe,ve),a=1,y=0;a<he.length;){var E=ge(he,a,ve),b=E-y,x=Se-ne,z=Math.min(b,x);he[oe].copyCellsFrom(he[a],y,ne,z,!1),(ne+=z)===Se&&(oe++,ne=0),(y+=z)===E&&(a++,y=0),ne===0&&oe!==0&&he[oe-1].getWidth(Se-1)===2&&(he[oe].copyCellsFrom(he[oe-1],Se-1,ne++,1,!1),he[oe-1].setCell(Se-1,ie))}he[oe].replaceCells(ne,Se,ie);for(var re=0,se=he.length-1;se>0&&(se>oe||he[se].getTrimmedLength()===0);se--)re++;re>0&&(ue.push(le+he.length-re),ue.push(re)),le+=he.length-1}}}return ue},te.reflowLargerCreateNewLayout=function(be,ve){for(var Se=[],fe=0,ie=ve[fe],ue=0,le=0;le<be.length;le++)if(ie===le){var me=ve[++fe];be.onDeleteEmitter.fire({index:le-ue,amount:me}),le+=me-1,ue+=me,ie=ve[++fe]}else Se.push(le);return{layout:Se,countRemoved:ue}},te.reflowLargerApplyNewLayout=function(be,ve){for(var Se=[],fe=0;fe<ve.length;fe++)Se.push(be.get(ve[fe]));for(fe=0;fe<Se.length;fe++)be.set(fe,Se[fe]);be.length=ve.length},te.reflowSmallerGetNewLineLengths=function(be,ve,Se){for(var fe=[],ie=be.map(function(ne,a){return ge(be,a,ve)}).reduce(function(ne,a){return ne+a}),ue=0,le=0,me=0;me<ie;){if(ie-me<Se){fe.push(ie-me);break}ue+=Se;var ae=ge(be,le,ve);ue>ae&&(ue-=ae,le++);var he=be[le].getWidth(ue-1)===2;he&&ue--;var oe=he?Se-1:Se;fe.push(oe),me+=oe}return fe},te.getWrappedLineTrimmedLength=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(fe,ie){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,le){ue.__proto__=le}||function(ue,le){for(var me in le)le.hasOwnProperty(me)&&(ue[me]=le[me])})(fe,ie)},function(fe,ie){function ue(){this.constructor=fe}ge(fe,ie),fe.prototype=ie===null?Object.create(ie):(ue.prototype=ie.prototype,new ue)});Object.defineProperty(te,"__esModule",{value:!0}),te.Marker=void 0;var ve=ee(0),Se=function(fe){function ie(ue){var le=fe.call(this)||this;return le.line=ue,le._id=ie._nextId++,le.isDisposed=!1,le._onDispose=new ve.EventEmitter,le}return be(ie,fe),Object.defineProperty(ie.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),ie.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},ie._nextId=1,ie}(ee(2).Disposable);te.Marker=Se},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OptionsService=te.DEFAULT_OPTIONS=te.DEFAULT_BELL_SOUND=void 0;var ge=ee(0),be=ee(11),ve=ee(33);te.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",te.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:te.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 Se=["cols","rows"],fe=function(){function ie(ue){this._onOptionChange=new ge.EventEmitter,this.options=ve.clone(te.DEFAULT_OPTIONS);for(var le=0,me=Object.keys(ue);le<me.length;le++){var ae=me[le];if(ae in this.options){var he=ue[ae];this.options[ae]=he}}}return Object.defineProperty(ie.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ie.prototype.setOption=function(ue,le){if(!(ue in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+ue+'"');if(Se.indexOf(ue)!==-1)throw new Error('Option "'+ue+'" can only be set in the constructor');this.options[ue]!==le&&(le=this._sanitizeAndValidateOption(ue,le),this.options[ue]!==le&&(this.options[ue]=le,this._onOptionChange.fire(ue)))},ie.prototype._sanitizeAndValidateOption=function(ue,le){switch(ue){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":le||(le=te.DEFAULT_OPTIONS[ue]);break;case"cursorWidth":le=Math.floor(le);case"lineHeight":case"tabStopWidth":if(le<1)throw new Error(ue+" 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(ue+" cannot be less than 0, value: "+le);break;case"fastScrollSensitivity":case"scrollSensitivity":if(le<=0)throw new Error(ue+" cannot be less than or equal to 0, value: "+le)}return le},ie.prototype.getOption=function(ue){if(!(ue in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+ue+'"');return this.options[ue]},ie}();te.OptionsService=fe},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(oe,ne){return(ge=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])})(oe,ne)},function(oe,ne){function a(){this.constructor=oe}ge(oe,ne),oe.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),ve=this&&this.__decorate||function(oe,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(oe,ne,a,y);else for(var z=oe.length-1;z>=0;z--)(E=oe[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},Se=this&&this.__param||function(oe,ne){return function(a,y){ne(a,y,oe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreService=void 0;var fe=ee(1),ie=ee(0),ue=ee(33),le=ee(2),me=Object.freeze({insertMode:!1}),ae=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),he=function(oe){function ne(a,y,E,b){var x=oe.call(this)||this;return x._bufferService=y,x._logService=E,x._optionsService=b,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new ie.EventEmitter),x._onUserInput=x.register(new ie.EventEmitter),x._onBinary=x.register(new ie.EventEmitter),x._scrollToBottom=a,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=ue.clone(me),x.decPrivateModes=ue.clone(ae),x}return be(ne,oe),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=ue.clone(me),this.decPrivateModes=ue.clone(ae)},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([Se(1,fe.IBufferService),Se(2,fe.ILogService),Se(3,fe.IOptionsService)],ne)}(le.Disposable);te.CoreService=he},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},be=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreMouseService=void 0;var ve=ee(1),Se=ee(0),fe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(ae){return ae.button!==4&&ae.action===1&&(ae.ctrl=!1,ae.alt=!1,ae.shift=!1,!0)}},VT200:{events:19,restrict:function(ae){return ae.action!==32}},DRAG:{events:23,restrict:function(ae){return ae.action!==32||ae.button!==3}},ANY:{events:31,restrict:function(ae){return!0}}};function ie(ae,he){var oe=(ae.ctrl?16:0)|(ae.shift?4:0)|(ae.alt?8:0);return ae.button===4?(oe|=64,oe|=ae.action):(oe|=3&ae.button,4&ae.button&&(oe|=64),8&ae.button&&(oe|=128),ae.action===32?oe|=32:ae.action!==0||he||(oe|=3)),oe}var ue=String.fromCharCode,le={DEFAULT:function(ae){var he=[ie(ae,!1)+32,ae.col+32,ae.row+32];return he[0]>255||he[1]>255||he[2]>255?"":"\x1B[M"+ue(he[0])+ue(he[1])+ue(he[2])},SGR:function(ae){var he=ae.action===0&&ae.button!==4?"m":"M";return"\x1B[<"+ie(ae,!0)+";"+ae.col+";"+ae.row+he}},me=function(){function ae(he,oe){this._bufferService=he,this._coreService=oe,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new Se.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(fe);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,fe[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 ae.prototype.addProtocol=function(he,oe){this._protocols[he]=oe},ae.prototype.addEncoding=function(he,oe){this._encodings[he]=oe},Object.defineProperty(ae.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(he){if(!this._protocols[he])throw new Error('unknown protocol "'+he+'"');this._activeProtocol=he,this._onProtocolChange.fire(this._protocols[he].events)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(he){if(!this._encodings[he])throw new Error('unknown encoding "'+he+'"');this._activeEncoding=he},enumerable:!1,configurable:!0}),ae.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(ae.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),ae.prototype.triggerMouseEvent=function(he){if(he.col<0||he.col>=this._bufferService.cols||he.row<0||he.row>=this._bufferService.rows||he.button===4&&he.action===32||he.button===3&&he.action!==32||he.button!==4&&(he.action===2||he.action===3)||(he.col++,he.row++,he.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,he))||!this._protocols[this._activeProtocol].restrict(he))return!1;var oe=this._encodings[this._activeEncoding](he);return oe&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(oe):this._coreService.triggerDataEvent(oe,!0)),this._lastEvent=he,!0},ae.prototype.explainEvents=function(he){return{down:!!(1&he),up:!!(2&he),drag:!!(4&he),move:!!(8&he),wheel:!!(16&he)}},ae.prototype._compareEvents=function(he,oe){return he.col===oe.col&&he.row===oe.row&&he.button===oe.button&&he.action===oe.action&&he.ctrl===oe.ctrl&&he.alt===oe.alt&&he.shift===oe.shift},ae=ge([be(0,ve.IBufferService),be(1,ve.ICoreService)],ae)}();te.CoreMouseService=me},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,ie,ue,le){var me,ae=arguments.length,he=ae<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,ue):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,ie,ue,le);else for(var oe=fe.length-1;oe>=0;oe--)(me=fe[oe])&&(he=(ae<3?me(he):ae>3?me(ie,ue,he):me(ie,ue))||he);return ae>3&&he&&Object.defineProperty(ie,ue,he),he},be=this&&this.__param||function(fe,ie){return function(ue,le){ie(ue,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DirtyRowService=void 0;var ve=ee(1),Se=function(){function fe(ie){this._bufferService=ie,this.clearRange()}return Object.defineProperty(fe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),fe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},fe.prototype.markDirty=function(ie){ie<this._start?this._start=ie:ie>this._end&&(this._end=ie)},fe.prototype.markRangeDirty=function(ie,ue){if(ie>ue){var le=ie;ie=ue,ue=le}ie<this._start&&(this._start=ie),ue>this._end&&(this._end=ue)},fe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},fe=ge([be(0,ve.IBufferService)],fe)}();te.DirtyRowService=Se},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeService=void 0;var ge=ee(0),be=ee(79),ve=function(){function Se(){this._providers=Object.create(null),this._active="",this._onChange=new ge.EventEmitter;var fe=new be.UnicodeV6;this.register(fe),this._active=fe.version,this._activeProvider=fe}return Object.defineProperty(Se.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"activeVersion",{get:function(){return this._active},set:function(fe){if(!this._providers[fe])throw new Error('unknown Unicode version "'+fe+'"');this._active=fe,this._activeProvider=this._providers[fe],this._onChange.fire(fe)},enumerable:!1,configurable:!0}),Se.prototype.register=function(fe){this._providers[fe.version]=fe},Se.prototype.wcwidth=function(fe){return this._activeProvider.wcwidth(fe)},Se.prototype.getStringCellWidth=function(fe){for(var ie=0,ue=fe.length,le=0;le<ue;++le){var me=fe.charCodeAt(le);if(55296<=me&&me<=56319){if(++le>=ue)return ie+this.wcwidth(me);var ae=fe.charCodeAt(le);56320<=ae&&ae<=57343?me=1024*(me-55296)+ae-56320+65536:ie+=this.wcwidth(ae)}ie+=this.wcwidth(me)}return ie},Se}();te.UnicodeService=ve},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeV6=void 0;var ge,be=ee(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]],Se=[[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]],fe=function(){function ie(){if(this.version="6",!ge){ge=new Uint8Array(65536),be.fill(ge,1),ge[0]=0,be.fill(ge,0,1,32),be.fill(ge,0,127,160),be.fill(ge,2,4352,4448),ge[9001]=2,ge[9002]=2,be.fill(ge,2,11904,42192),ge[12351]=1,be.fill(ge,2,44032,55204),be.fill(ge,2,63744,64256),be.fill(ge,2,65040,65050),be.fill(ge,2,65072,65136),be.fill(ge,2,65280,65377),be.fill(ge,2,65504,65511);for(var ue=0;ue<ve.length;++ue)be.fill(ge,0,ve[ue][0],ve[ue][1]+1)}}return ie.prototype.wcwidth=function(ue){return ue<32?0:ue<127?1:ue<65536?ge[ue]:function(le,me){var ae,he=0,oe=me.length-1;if(le<me[0][0]||le>me[oe][1])return!1;for(;oe>=he;)if(le>me[ae=he+oe>>1][1])he=ae+1;else{if(!(le<me[ae][0]))return!0;oe=ae-1}return!1}(ue,Se)?0:ue>=131072&&ue<=196605||ue>=196608&&ue<=262141?2:1},ie}();te.UnicodeV6=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CharsetService=void 0;var ge=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,Se){this._charsets[ve]=Se,this.glevel===ve&&(this.charset=Se)},be}();te.CharsetService=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.updateWindowsModeWrappedState=void 0;var ge=ee(3);te.updateWindowsModeWrappedState=function(be){var ve=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),Se=ve==null?void 0:ve.get(be.cols-1),fe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);fe&&Se&&(fe.isWrapped=Se[ge.CHAR_DATA_CODE_INDEX]!==ge.NULL_CELL_CODE&&Se[ge.CHAR_DATA_CODE_INDEX]!==ge.WHITESPACE_CELL_CODE)}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WriteBuffer=void 0;var ge=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 Se=this._bufferOffset;Se<this._writeBuffer.length;++Se){var fe=this._writeBuffer[Se],ie=this._callbacks[Se];this._action(fe),ie&&ie()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(ve)},be.prototype.write=function(ve,Se){var fe=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 fe._innerWrite()})),this._pendingData+=ve.length,this._writeBuffer.push(ve),this._callbacks.push(Se)},be.prototype._innerWrite=function(){for(var ve=this,Se=Date.now();this._writeBuffer.length>this._bufferOffset;){var fe=this._writeBuffer[this._bufferOffset],ie=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(fe),this._pendingData-=fe.length,ie&&ie(),Date.now()-Se>=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}();te.WriteBuffer=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.AddonManager=void 0;var ge=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,Se){var fe=this,ie={instance:Se,dispose:Se.dispose,isDisposed:!1};this._addons.push(ie),Se.dispose=function(){return fe._wrappedAddonDispose(ie)},Se.activate(ve)},be.prototype._wrappedAddonDispose=function(ve){if(!ve.isDisposed){for(var Se=-1,fe=0;fe<this._addons.length;fe++)if(this._addons[fe]===ve){Se=fe;break}if(Se===-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(Se,1)}},be}();te.AddonManager=ge}])})},62522:function(ht){"use strict";ht.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="}}]);